]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Improve wording in GCC 4.7 Solaris update to install.texi
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
b24513a1
RO
12012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * configure.tgt (*-*-irix6*): Remove.
4
0d23faac
TR
52012-03-13 Torvald Riegel <triegel@redhat.com>
6
7 PR libitm/52526
8 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
9 wake-up.
10
5c30094f
RO
112012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12
13 * configure.tgt (*-*-osf*): Remove.
14 * configure: Regenerate.
15
d28b0b08
TR
162012-03-05 Torvald Riegel <triegel@redhat.com>
17
18 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
19 memtransfer/memset if size isn't larger than zero.
20
034209bc
TR
212012-03-02 Torvald Riegel <triegel@redhat.com>
22
23 * libitm.texi: Link to specification and add a usage example.
24
bc8da6ba
TR
252012-02-24 Torvald Riegel <triegel@redhat.com>
26
27 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
28 default dispatch for more than 1 thread to ml_wt.
29
63b08143
TR
302012-02-20 Torvald Riegel <triegel@redhat.com>
31
32 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
33
4c9bd6ac
TR
342012-02-20 Torvald Riegel <triegel@redhat.com>
35
36 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
37
651ff415
TR
382012-02-20 Torvald Riegel <triegel@redhat.com>
39
40 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
41 serial mode corner cases made obsolete by prior gtm_rwlock changes.
42 (gl_wt_dispatch.rollback): Same.
43
efee0113
TR
442012-02-20 Torvald Riegel <triegel@redhat.com>
45
46 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
47
33a03827
TR
482012-02-20 Torvald Riegel <triegel@redhat.com>
49
50 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
51 for RfW src. Optimize number of calls to gtm_thr.
52
a19db3f2
TR
532012-02-20 Torvald Riegel <triegel@redhat.com>
54
55 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
56 acquisition to ...
57 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
58 (default_dispatch): Make atomic.
59 (GTM::gtm_thread::set_default_dispatch): Access atomically.
60 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
61 use decide_begin_dispatch() if default_dispatch might have changed.
62 (GTM::gtm_thread::number_of_threads_changed): Initialize
63 default_dispatch here.
64
e948a1fb
IS
652012-02-15 Iain Sandoe <iains@gcc.gnu.org>
66 Patrick Marlier <patrick.marlier@gmail.com>
67
68 PR libitm/52220
69 * alloc_cpp.cc: No dummy definitions for darwin.
70 * eh_cpp.cc: Likewise.
71
72824d5e
RH
722012-02-14 Richard Henderson <rth@redhat.com>
73
74 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
75
1f319dba
UB
762012-02-14 Uros Bizjak <ubizjak@gmail.com>
77
78 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
79
31772c95
TR
802012-02-14 Torvald Riegel <triegel@redhat.com>
81
82 * libitm_i.h (GTM::gtm_rwlog_entry): New.
83 (GTM::gtm_thread): Add read and write logs.
84 (GTM::dispatch_ml_wt): Declare.
85 * retry.cc (parse_default_method): Support ml_wt.
86 * method-ml.cc: New file.
87 * Makefile.am: Add method-ml.cc.
88 * Makefile.in: Regenerate.
89
5b9cf5d2
TR
902012-02-14 Torvald Riegel <triegel@redhat.com>
91
92 * dispatch.h (GTM::abi_dispatch::supports): New.
93 (GTM::method_group::reinit): New.
94 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
95 (GTM::gtm_thread::number_of_threads_changed): Check that the method
96 supports the current situation.
97
7d33bcb7
TR
982012-02-14 Torvald Riegel <triegel@redhat.com>
99
100 * util.cc (GTM::xcalloc): New.
101 * common.h (GTM::xcalloc): Declare.
102
62513f7b
EB
1032012-02-14 Eric Botcazou <ebotcazou@adacore.com>
104
105 * config/sparc/target.h (cpu_relax): Read from CC register.
106 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
107
1082012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
109
110 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
111
f3f5e3c3
EB
1122012-02-13 Eric Botcazou <ebotcazou@adacore.com>
113
62513f7b 114 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
115 * config/sparc/cacheline.h: New file.
116 * config/sparc/target.h: Likewise.
117 * config/sparc/sjlj.S: Likewise.
118 * config/linux/sparc/futex_bits.h: Likewise.
119
1202012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
121
122 * configure.ac (link_itm): Fix comment.
123 * configure: Regenerate.
124 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
125
681355e3
RO
1262012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127
fc985d2f 128 PR libitm/51822
62513f7b 129 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
130 Correct libgomp references.
131
999bcff5
TR
1322012-01-24 Torvald Riegel <triegel@redhat.com>
133
134 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
135 wake-up.
136
9848887a
UB
1372012-01-24 Uros Bizjak <ubizjak@gmail.com>
138
139 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
140 end of structure.
141 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
142 offset values. Do not copy return address. Decrement stack
143 by 56 bytes only.
144 (GTM_longjump) [__x86_64__]: Update offset values.
145
5752c591
UB
1462012-01-23 Uros Bizjak <ubizjak@gmail.com>
147
148 PR libitm/51830
149 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
150 the first function argument to %eax.
151
61e72ca4
RO
1522012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153
154 * libitm.h (_ITM_getThreadnum): Remove.
155 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
156
9ce91011
RO
1572012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
158
159 * clearcap.map: New file.
160 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
161 * configure.ac: Call it.
162 Clear HWCAP_LDFLAGS if defaulting to -mavx.
163 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
164 * configure: Regenerate.
165 * Makefile.in: Regenerate.
166 * testsuite/Makefile.in: Regenerate.
167
3b4f05ec
RO
1682012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
169
170 PR libitm/51173
171 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
172 include, exclude options.
173
aab74ee9
TR
1742012-01-14 Torvald Riegel <triegel@redhat.com>
175
176 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
177 rolling back.
178 * containers.h (GTM::vector::set_size): New.
179
07b6642b
TR
1802012-01-14 Torvald Riegel <triegel@redhat.com>
181
182 PR libitm/51855
183 * config/generic/tls.h (GTM::mask_stack_top): New.
184 (GTM::mask_stack_bottom): Declare.
185 * config/generic/tls.c (GTM::mask_stack_bottom): New.
186 * local.cc (gtm_undolog::rollback): Filter out any updates that
187 overlap the libitm stack. Add current transaction as parameter.
188 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
189 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
190 * testsuite/libitm.c/stackundo.c: New test.
191
8377e5e5
RH
1922012-01-10 Richard Henderson <rth@redhat.com>
193
194 * libitm_i.h (_Unwind_DeleteException): Declare weak.
195 * eh_cpp.cc (_Unwind_DeleteException): Define for
196 !HAVE_ELF_STYLE_WEAKREF.
197
11f30bb0
TR
1982012-01-08 Torvald Riegel <triegel@redhat.com>
199
200 * local.cc (GTM_LB): Use GTM::gtm_undolog.
201 (GTM::gtm_thread::drop_references_undolog): Remove.
202 (GTM::gtm_thread::commit_undolog,
203 GTM::gtm_thread::rollback_undolog): Move to ...
204 * libitm_i.h (GTM::gtm_undolog): ...here. New.
205 (GTM::gtm_undolog_entry): Remove.
206 (GTM::gtm_thread): Adapt.
207 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
208 (GTM::gtm_thread::trycommit): Adapt.
209 * method-serial.cc (serial_dispatch::log): Adapt.
210 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
211 (gl_wt_dispatch::store): Fix likely/unlikely.
212 * containers.h (GTM::vector::resize): Add additional_capacity
213 parameter and handle it.
214 (GTM::vector::resize_noinline): New/adapt.
215 (GTM::vector::push): New.
216
a32e5e93
RH
2172012-01-06 Richard Henderson <rth@redhat.com>
218
219 * configure.tgt: Support powerpc-linux and powerpc-darwin.
220 * config/linux/powerpc/futex_bits.h: New file.
221 * config/powerpc/cacheline.h: New file.
222 * config/powerpc/sjlj.S: New file.
223 * config/powerpc/target.h: New file.
224 * config/generic/asmcfi.h (cfi_offset): New.
225 (cfi_restore, cfi_undefined): New.
226
1f53a8e6
AH
2272012-01-05 Aldy Hernandez <aldyh@redhat.com>
228
229 PR other/51171
230 * testsuite/libitm.c/reentrant.c: Remove xfail.
231 (thread): Pass x to pure().
be223aaf 232 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 233
c898f7b8
TR
2342011-12-24 Torvald Riegel <triegel@redhat.com>
235
236 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
237 privatization safety if already in serial mode.
238
610e3901
TR
2392011-12-24 Torvald Riegel <triegel@redhat.com>
240
241 * beginend.cc (GTM::gtm_thread::restart): Add and handle
242 finish_serial_upgrade parameter.
243 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
244 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
245 Don't unset reader flag.
246 (GTM::gtm_rwlock::write_upgrade_finish): New.
247 * config/posix/rwlock.cc: Same.
248 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
249 Declare.
250 * config/posix/rwlock.h: Same.
251 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
252 flag after commit or after rollback when restarting.
253
799142bf
TR
2542011-12-24 Torvald Riegel <triegel@redhat.com>
255
256 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
257 (GTM::gtm_thread::try_commit): Changed memory order.
258 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
259 as parameter.
260 * config/linux/x86/futex_bits.h (sys_futex0): Same.
261 * config/linux/sh/futex_bits.h (sys_futex0): Same.
262 * config/linux/futex_bits.h (sys_futex0): Same.
263 * config/linux/futex.cc (futex_wait, futex_wake): Same.
264 * config/linux/futex.h (futex_wait, futex_wake): Same.
265 * config/linux/rwlock.h (gtm_rwlock::writers,
266 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
267 ints.
268 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
269 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
270 gtm_rwlock::write_unlock): Fix memory orders and fences.
271 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
272 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
273 gtm_rwlock::write_unlock): Same.
274 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
275 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
276 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
277 Add comments.
278 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
279 gl_wt_dispatch::load, gl_wt_dispatch::store,
280 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
281 orders and fences. Add comments.
282
b0f96e35
JJ
2832011-12-21 Jakub Jelinek <jakub@redhat.com>
284
285 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
286 * Makefile.in: Regenerated.
287
cc163247
KK
2882011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
289
290 * configure.tgt: Add sh* case.
291 * config/sh/target.h: New file.
292 * config/sh/sjlj.S: New file.
293 * config/linux/sh/futex_bits.h: New file.
294
aebac0ca
RH
2952011-12-14 Richard Henderson <rth@redhat.com>
296
297 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
298 * config/arm/sjlj.S, config/arm/target.h: New files.
299 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
300 (cfi_rel_offset): New.
301 * config/linux/futex_bits.h: New file.
302 * config/linux/futex.cc: Include futex_bits.h here...
303 * config/linux/futex.h: ... not here.
304 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
305 * configure.ac (ARCH_AM): New conditional.
306 * Makefile.in, configure: Rebuild.
307 * configure.tgt: Handle ARM.
308
36cfbee1
RH
3092011-12-13 Richard Henderson <rth@redhat.com>
310
5d9d05d3
RH
311 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
312 signed/unsigned comparison werror.
313
36cfbee1
RH
314 * local_atomic: New file.
315 * libitm_i.h: Include it.
316 (gtm_thread::shared_state): Use atomic template.
317 * beginend.cc (GTM::gtm_clock): Use atomic template.
318 (global_tid): Use atomic template if 64-bit atomics available.
319 (gtm_thread::gtm_thread): Update shared_state access.
320 (gtm_thread::trycommit): Likewise.
321 (choose_code_path): Update global_tid access.
322 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
323 * stmlock.h (GTM::gtm_clock): Use atomic template.
324 (gtm_get_clock, gtm_inc_clock): Update accesses.
325 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
326 redundant __sync_synchronize after atomic shared_state access.
327 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
328 (gtm_rwlock::write_lock_generic): Likewise.
329 (gtm_rwlock::read_unlock): Likewise.
330 * config/alpha/target.h (atomic_read_barrier): Remove.
331 (atomic_write_barrier): Remove.
332 * config/x86/target.h (atomic_read_barrier): Remove.
333 (atomic_write_barrier): Remove.
334
062f93f2
RH
3352011-11-30 Richard Henderson <rth@redhat.com>
336
337 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
338 * beginend.c (_ITM_abortTransaction): Update to match.
339 (GTM::gtm_thread::restart): Likewise.
340 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
341 * config/x86/sjlj.S (GTM_longjmp): Likewise.
342
bd8aaa86
IS
3432011-11-23 Iain Sandoe <iains@gcc.gnu.org>
344
345 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
346 * Makefile.in: Regenerate.
347
8cf36bb3
IS
3482011-11-22 Iain Sandoe <iains@gcc.gnu.org>
349
350 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
351 * alloc_cpp.cc: Generate dummy functions if we don't
352 HAVE_ELF_STYLE_WEAKREF.
353 * eh_cpp.cc: Likewise.
354 * configure: Regenerate.
355 * aclocal.m4: Likewise.
356 * config.h.in: Likewise.
357 * Makefile.in: Likewise.
358 * testsuite/Makefile.in: Likewise.
359
0b41ebef
IS
3602011-11-22 Iain Sandoe <iains@gcc.gnu.org>
361
362 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
363 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 364 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
365 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
366 in portability to non-elf targets.
8cf36bb3 367 (GTM_longjmp): Likewise.
0b41ebef
IS
368 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
369 where required.
370
9c9d352a
IS
3712011-11-22 Iain Sandoe <iains@gcc.gnu.org>
372
373 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
374 * testsuite/libitm.c/memset-1.c: Likewise.
375
c6084f68
AT
3762011-11-21 Andreas Tobler <andreast@fgznet.ch>
377
378 * configure: Regenerate.
379
adcd36bc
RO
3802011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
383 (LIBITM_ENABLE_SYMVERS): Handle sun style.
384 * Makefile.am: Handle sun style versioning.
385 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
386 * configure: Regenerate.
387 * Makefile.in: Regenerate.
388
59659b59
RO
3892011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
390
391 * config/generic/asmcfi.h: Fix comment.
392 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
393 sequence without .hidden support, error for non-ELF targets.
394 (GTM_longjmp) [__ELF__]: Only use .hidden if
395 HAVE_ATTRIBUTE_VISIBILITY.
396
d846e425
RO
3972011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
398
399 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
400 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
401 Dummy functions.
402 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
403 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
404
80713347
UB
4052011-11-16 Uros Bizjak <ubizjak@gmail.com>
406
407 PR bootstrap/51098
408 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
409 * configure: Regenerate.
410
2841f85e
L
4112011-11-14 H.J. Lu <hongjiu.lu@intel.com>
412
413 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
414
8851b429
RO
4152011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
416
417 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
418 .hidden.
419 (.note.GNU-stack): Only use if __linux__.
420 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
421 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
422 * testsuite/libitm.c/reentrant.c: Likewise.
423 * testsuite/libitm.c/simple-2.c: Likewise.
424 * testsuite/libitm.c/txrelease.c: Likewise.
425 * testsuite/libitm.c++/static_ctor.C: Likewise.
426
d4b17902
RH
4272011-11-10 Richard Henderson <rth@redhat.com>
428
429 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
430 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
431 * configure.ac (ARCH_X86_AVX): New conditional.
432 * Makefile.in, configure: Rebuild.
433
430616e7
RH
4342011-11-09 Richard Henderson <rth@redhat.com>
435
436 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
437 * configure.ac: Use it.
438 * config.h.in, configure: Rebuild.
439 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
440
79b1edb6
RH
4412011-11-09 Richard Henderson <rth@redhat.com>
442
443 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
444 * config/alpha/unaligned.h: Remove file.
445 * config/generic/unaligned.h: Remove file.
446 * config/x86/unaligned.h: Remove file.
447 * config/generic/cachepage.h: Remove file.
448 * config/posix/cachepage.cc: Remove file.
449 * config/generic/cacheline.cc: Remove file.
450 * config/x86/cacheline.cc: Remove file.
451 * config/generic/cacheline.h (gtm_cacheline): Remove the
452 store_mask, copy_mask, copy_mask_wb methods.
453 * config/x86/cacheline.h: Likewise.
454 * config/alpha/cacheline.h: Fall back to generic after setting size.
455 * config/generic/tls.cc (gtm_mask_stack): Remove.
456 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
457 (GTM_vpalignr_table): Remove.
458 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
459 (GTM_pshift_table): Remove.
460 * config/libitm_i.h: Don't include cachepage.h.
461 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
462 * Makefile.in, testsuite/Makefile.in: Rebuild.
463
4bdd090f
RH
4642011-11-09 Richard Henderson <rth@redhat.com>
465
8ee9fac2
RH
466 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
467 to emit branch prediction hint.
468
9bdc6343
RH
469 * config/x86/sjlj.S: Protect elf directives with __ELF__.
470 Protect .note.GNU-stack with __linux__.
471
4bdd090f
RH
472 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
473 * configure, aclocal.m4, config.h.in: Rebuild.
474 * config/generic/asmcfi.h: New file.
475 * config/x86/sjlj.S: Use it.
476
4408b086
RH
4772011-11-08 Richard Henderson <rth@redhat.com>
478
479 * local.cc (_ITM_LB): Use a normal call, not a function alias.
480
01f3428c
RH
4812011-11-08 Richard Henderson <rth@redhat.com>
482
3d3b05ff
RH
483 * configure.tgt: Test correct directory for supported cpus.
484
01f3428c
RH
485 * configure.ac: Exit if unsupported.
486 * configure: Rebuild.
487 * configure.tgt: Delete boilerplate from libgomp for unsupported
488 targets. Set UNSUPPORTED for unsupported targets.
489
07f03cd3
RO
4902011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
491
492 * configure.tgt: Handle i386 like i[456]86.
493 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
494 take address.
495 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
496 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
497
0a35513e
AH
4982011-11-05 Aldy Hernandez <aldyh@redhat.com>
499
500 * method-wbetl.cc: Update copyright notice.
501 * aatree.cc: Same.
502 * util.cc: Same.
503 * libitm.h: Same.
504 * memset.cc: Same.
505 * eh_cpp.cc: Same.
506 * barrier.tpl: Same.
507 * useraction.cc: Same.
508 * stmlock.h: Same.
509 * memcpy.cc: Same.
510 * common.h: Same.
511 * config/generic/tls.cc: Same.
512 * config/generic/cacheline.h: Same.
513 * config/generic/cachepage.h: Same.
514 * config/generic/cacheline.cc: Same.
515 * config/generic/unaligned.h: Same.
516 * config/x86/cacheline.h: Same.
517 * config/x86/cacheline.cc: Same.
518 * config/x86/unaligned.h: Same.
519 * config/alpha/cacheline.h: Same.
520 * config/alpha/unaligned.h: Same.
521 * config/alpha/sjlj.S: Same.
522 * config/posix/cachepage.cc: Same.
523 * config/linux/futex.h: Same.
524 * config/linux/alpha/futex_bits.h: Same.
525
5262011-11-04 Torvald Riegel <triegel@redhat.com>
527
528 * libitm.texi: No cover text and invariant sections.
529
5302011-11-03 Richard Henderson <rth@redhat.com>
531
532 * local_type_traits: New file.
533 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
534
5352011-11-03 Richard Henderson <rth@redhat.com>
536
537 * configure.ac: Don't test for gfortran.
538 * configure: Rebuild.
539
540 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
541 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
542
5432011-11-03 Aldy Hernandez <aldyh@redhat.com>
544
545 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
546 * testsuite/libitm.c/memset-1.c: Same.
547 * testsuite/libitm.c/c.exp: Same.
548 * testsuite/lib/libitm-dg.exp: Same.
549 * testsuite/lib/libitm.exp: Same.
550 * testsuite/libitm.c++/c++.exp: Same.
551
5522011-11-03 Aldy Hernandez <aldyh@redhat.com>
553
554 * testsuite/config/default.exp: Update copyright date.
555 * configure.ac: Add copyright info.
556 * configure.tgt: Same.
557
5582011-11-03 Aldy Hernandez <aldyh@redhat.com>
559
560 * testsuite/libitm.c/reentrant.c: XFAIL.
561 * testsuite/libitm.c++/static_ctor.C: XFAIL.
562
5632011-10-29 Torvald Riegel <triegel@redhat.com>
564
565 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
566 handle aborts.
567 (_ITM_abortTransaction): Handle aborts of outer transactions.
568 * libitm_i.h: Same.
569 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
570 * libitm.texi: Document aborts of outer transactions.
571 * testsuite/libitm.c/cancel.c: New file.
572
5732011-10-19 Torvald Riegel <triegel@redhat.com>
574
575 * testsuite/*: Change __transaction to __transaction_atomic or
576 __transaction_relaxed.
577
5782011-10-19 Torvald Riegel <triegel@redhat.com>
579
580 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
581 (gtm_thr): Same.
582
5832011-10-19 Torvald Riegel <triegel@redhat.com>
584
585 * libitm_i.h: Add gl_wt dispatch.
586 * retry.cc (parse_default_method): Same.
587 * method-gl.cc: New file.
588 * Makefile.am: Use method-gl.cc.
589 * Makefile.in: Rebuild.
590
5912011-10-19 Torvald Riegel <triegel@redhat.com>
592
593 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
594 safety if requested by a TM method.
595 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
596 privatization safety.
597 * method-serial.cc: Same.
598
5992011-10-19 Torvald Riegel <triegel@redhat.com>
600
601 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
602 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
603 undolog-related member functions from *_local to *_undolog.
604 * local.cc (gtm_thread::commit_undolog): Same.
605 * beginend.cc (GTM::gtm_thread::trycommit): Same.
606 (GTM::gtm_thread::rollback): Roll back undolog before
607 dispatch-specific rollback.
608
6092011-10-19 Torvald Riegel <triegel@redhat.com>
610
611 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
612 re-initialization of the current method group.
613 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
614
6152011-10-19 Torvald Riegel <triegel@redhat.com>
616
617 * alloc.cc (commit_allocations_2): Do not free transaction-local
618 memory when committing a nested transaction.
619
6202011-10-19 Torvald Riegel <triegel@redhat.com>
621
622 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
623 serial-irrevocable dispatch, not serial.
624
6252011-10-19 Torvald Riegel <triegel@redhat.com>
626
627 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
628 declarations.
629 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
630 * method-serial.cc: Implement begin_or_restart().
631 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
632 dispatch-specific begin_or_restart().
633 (GTM::gtm_thread::restart): Same.
634
6352011-08-23 Torvald Riegel <triegel@redhat.com>
636
637 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
638 restarting without switching to serial mode.
639 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
640 transaction state. Choose closed-nesting alternative if available.
641 (GTM::gtm_thread::set_default_dispatch): New.
642 (parse_default_method): New.
643 (GTM::gtm_thread::number_of_threads_changed): New.
644 * method-serial.cc (GTM::serial_mg): New method group class.
645 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
646 fini.
647 (GTM::serial_dispatch): Same.
648 (GTM::serialirr_onwrite_dispatch): Same.
649 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
650 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
651 registered threads.
652 (GTM::gtm_thread::gtm_thread): Same.
653 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
654 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
655 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
656 choose dispatch but set state according to dispatch here.
657 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
658 (GTM::method_group): New class.
659 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
660 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
661 * libitm.texi: Document TM methods, method groups, method life cycle.
662 Rename method sets to method groups.
663
6642011-08-23 Torvald Riegel <triegel@redhat.com>
665
666 * config/x86/tls.h: Moved to ...
667 * config/linux/x86/tls.h: ... here.
668
6692011-08-23 Torvald Riegel <triegel@redhat.com>
670
671 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
672 Add X32 support.
673 * config/x86/sjlj.S: Same.
674
6752011-08-19 Torvald Riegel <triegel@redhat.com>
676
677 * config/linux/rwlock.h: New file.
678 * config/linux/rwlock.c: New file.
679 * configure.ac: Reenable futex support (undo SVN rev 157758).
680 * Makefile.am: Same.
681 * configure.tgt: Same.
682 * config/linux/alpha/futex_bits.h: Same.
683 * config/linux/futex.h: Same. Return number of woken processes.
684 * config/linux/futex.cc: Same.
685 (futex_wait): Remove spinning.
686 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
687 Use __x86_64__ instead of __LP64__.
688 * aclocal.m4: Include generic futex checks.
689 * configure: Rebuild.
690 * Makefile.in: Rebuild.
691 * testsuite/Makefile.in: Rebuild.
692 * beginend.cc: Include pthread.h.
693 * config/posix/cachepage.cc: Same.
694
6952011-08-12 Torvald Riegel <triegel@redhat.com>
696
697 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
698 (abi_disp, set_abi_disp): Move to tx's TLS slot.
699 (set_gtm_thr): New.
700 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
701 (set_gtm_thr): New.
702 (GTM::gtm_thread::thread_num): Removed.
703 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
704 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
705 tx-to-thread renaming.
706 * beginend.cc: Adapted to tx-to-thread renaming.
707 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
708 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
709 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
710 gtm_transaction to gtm_thread.
711 (_ITM_getThreadnum): Removed. Not supported anymore.
712 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
713 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
714 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
715 gtm_tx-to-gtm_thr renaming if necessary.
716 * eh_cpp.cc: Same.
717 * local.cc: Same.
718 * retry.cc: Same.
719 * clone.cc: Same.
720 * alloc.cc: Same.
721 * alloc_c.cc: Same.
722 * alloc_cpp.cc: Same.
723 * method-serial.cc: Same.
724 * config/generic/tls.cc: Same.
725 * config/posix/rwlock.h (gtm_rwlock): Same.
726 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
727
7282011-08-12 Torvald Riegel <triegel@redhat.com>
729
730 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
731 implementation.
732 (gtm_rwlock::read_unlock): Same.
733 (gtm_rwlock::write_lock_generic): New. Generalized from ...
734 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
735 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
736 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
737 w_upgrade. Replaced by per-transaction flags (in shared_state).
738 Added c_confirmed_writers.
739 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
740 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
741 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
742 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
743 * beginend.cc (GTM::gtm_transaction::begin_transaction,
744 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
745 * libitm.texi: Document locking conventions and implementations in
746 libitm.
747
7482011-08-12 Torvald Riegel <triegel@redhat.com>
749
750 * libitm_i.h (next_tx): Add list of all threads' transaction.
751 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
752 transaction with list of transactions and ...
753 (thread_exit_handler): ... deregister here.
754 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
755 * config/x86/target.h: Same.
756
7572011-08-12 Torvald Riegel <triegel@redhat.com>
758
759 * testsuite/libitm.c++/static_ctor.C: New file.
760
7612011-08-12 Torvald Riegel <triegel@redhat.com>
762
763 * testsuite/libitm.c/reentrant.c: New file.
764
7652011-08-12 Torvald Riegel <triegel@redhat.com>
766
767 * config/generic/tls.h: Remove the free list for transactions and ...
768 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
769 (GTM::gtm_transaction::operator delete): ... and release here.
770 (thread_exit_handler): New. Delete tx when thread terminates.
771 (thread_exit_init): New.
772 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
773 * testsuite/libitm.c/txrelease.c: New file.
774
7752011-08-12 Torvald Riegel <triegel@redhat.com>
776
777 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
778 * testsuite/libitm.c/notx.c: New file.
779
7802011-08-12 Torvald Riegel <triegel@redhat.com>
781
782 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
783 * libitm_i.h (local_tid): ... to here.
784 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
785 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
786
7872011-08-12 Torvald Riegel <triegel@redhat.com>
788
789 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
790 serialirr_onwrite_dispatch as new default for now.
791 * method-serial.cc (serialirr_onwrite_dispatch): New.
792 (GTM::dispatch_serialirr_onwrite): New.
793 * libitm_i.h: Same.
794
7952011-08-12 Torvald Riegel <triegel@redhat.com>
796
797 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
798 * query.cc (_ITM_getTransactionId): There is no active transaction if
799 the current nesting level is zero.
800
8012011-07-28 Torvald Riegel <triegel@redhat.com>
802
803 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
804 rollback.
805
8062011-07-28 Torvald Riegel <triegel@redhat.com>
807
808 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
809 transaction properties from the caller instead of from the
810 transaction object.
811 * libitm_i.h: Same.
812 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
813
8142011-07-28 Torvald Riegel <triegel@redhat.com>
815
816 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
817 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
818 * dispatch.h: Same.
819 * method-serial.cc: Same.
820 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
821 flat nesting as default, and closed nesting on demand.
822 (GTM::gtm_transaction::rollback): Same.
823 (_ITM_abortTransaction): Same.
824 (GTM::gtm_transaction::restart): Same.
825 (GTM::gtm_transaction::trycommit): Same.
826 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
827 (choose_code_path): New.
828 (GTM::gtm_transaction_cp::save): New.
829 (GTM::gtm_transaction_cp::commit): New.
830 * query.cc (_ITM_inTransaction): Support flat nesting.
831 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
832 (GTM::gtm_transaction): Support flat and closed nesting.
833 * alloc.cc (commit_allocations_2): New.
834 (commit_cb_data): New helper struct.
835 (GTM::gtm_transaction::commit_allocations): Handle nested
836 commits/rollbacks.
837 * libitm.texi: Update user action section, add description of nesting.
838
8392011-07-28 Torvald Riegel <triegel@redhat.com>
840
841 * libitm_i.h: Add closed nesting as restart reason.
842 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
843
8442011-07-28 Torvald Riegel <triegel@redhat.com>
845
846 * useraction.cc: Use vector instead of list to store actions.
847 Also support partial rollbacks for closed nesting.
848 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
849 * beginend.cc: Same.
850
8512011-07-28 Torvald Riegel <triegel@redhat.com>
852
853 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
854 closed_nesting flags, as well as a closed nesting alternative.
855 * method-serial.cc: Same.
856 (serial_dispatch): Renamed to serialirr_dispatch.
857 (GTM::dispatch_serialirr): Same.
858 (serial_dispatch_ul): Renamed to serial_dispatch.
859 (GTM::dispatch_serial): Same.
860
8612011-07-28 Torvald Riegel <triegel@redhat.com>
862
863 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
864
8652011-07-28 Torvald Riegel <triegel@redhat.com>
866
867 * aatree.h (aa_tree::remove): New.
868 (aa_tree::operator new): Add placement new.
869
8702011-07-02 Torvald Riegel <triegel@redhat.com>
871
872 * containers.h: New file.
873 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
874 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
875 * common.h: ... to here.
876 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
877 * local.cc: Same.
878
8792011-06-30 Torvald Riegel <triegel@redhat.com>
880
881 * libitm_i.h (STATE_ABORTING): Remove.
882 * beginend.cc (_ITM_abortTransaction): Same.
883 (GTM::gtm_transaction::trycommit_and_finalize): Same.
884 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
885 (_ITM_rollbackTransaction): Remove.
886 * beginend.cc: Same.
887 * libitm.map: Same.
888 * libitm.texi: Document these ABI changes.
889
8902011-06-30 Torvald Riegel <triegel@redhat.com>
891
892 * libitm.texi: New file.
893 * Makefile.am: Add libitm.texi.
894 * Makefile.in: Rebuild.
895
8962011-06-30 Torvald Riegel <triegel@redhat.com>
897
898 * libitm_i.h: Move parts to common.h and dispatch.h.
899 * common.h: New file.
900 * dispatch.h: New file, new dispatch class.
901 Rename GTM::abi_dispatch::lock_type to ls_modifier.
902 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
903 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
904 decision to retry.cc.
905 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
906 only.
907 (GTM::gtm_transaction::decide_begin_dispatch): Same.
908 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
909 logging.
910 * barrier.cc: Use new barriers definitions.
911 (abi_dispatch::memmove_overlap_check): New.
912 * config/x86/x86_sse.cc: Same.
913 * config/x86/x86_avx.cc: Same.
914 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
915 memcpy.cc.
916 * Makefile.in: Rebuild.
917 * method-readonly.cc: Remove.
918 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
919 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
920
9212011-06-30 Torvald Riegel <triegel@redhat.com>
922
923 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
924 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
925 * testsuite/libitm.c/dropref-2.c: Same.
926 * testsuite/libitm.c/dropref.c: Same.
927
9282011-06-30 Torvald Riegel <triegel@redhat.com>
929
930 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
931 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
932 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
933 * alloc_c.cc: Same.
934 * barrier.tpl: Same.
935 * beginend.c: Same.
936 * config/generic/tls.h: Same.
937 * config/x86/tls.h: Same.
938 * libitm_i.h: Same.
939 * memcpy.cc: Same.
940 * memset.cc: Same.
941 * method-readonly.cc: Same.
942 * method-serial.cc: Same.
943 * method-wbetl.cc: Same.
944 * retry.cc: Same.
945
9462011-03-03 Richard Henderson <rth@redhat.com>
947
948 * config/posix/rwlock.cc (write_upgrade): Add missing case.
949 From Patrik Marlier <patrick.marlier@unine.ch>.
950
9512011-02-03 Richard Henderson <rth@redhat.com>
952
953 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
954 * configure.ac: Use it.
955 * configure, config.h.in: Rebuild.
956 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
957 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
958 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
959 * libitm.map: Use wildcards to match size_t mangling.
960
9612010-12-14 Richard Henderson <rth@redhat.com>
962
963 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
964 blocks of TIDs per thread.
965 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
966 (setup_gtm_thr): Return the thread structure.
967 * config/x86/tls.h (setup_gtm_thr): Likewise.
968
9692010-12-14 Richard Henderson <rth@redhat.com>
970
971 * clone.cc (table_lock): Remove.
972 (find_clone): Don't take it.
973 (ExcludeTransaction): New helper class.
974 (_ITM_registerTMCloneTable): Use it.
975 (_ITM_deregisterTMCloneTable): Likewise.
976
9772010-12-14 Richard Henderson <rth@redhat.com>
978
979 * config/x86/tls.h: New file.
980
9812010-07-15 Richard Henderson <rth@redhat.com>
982
983 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
984 * Makefile.in: Rebuild.
985
9862010-07-13 Aldy Hernandez <aldyh@redhat.com>
987
988 * method-wbetl.cc (trydropreference): Fix source line.
989
9902010-07-13 Aldy Hernandez <aldyh@redhat.com>
991
992 * libitm.h: Add comment.
993 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
994
9952010-07-07 Aldy Hernandez <aldyh@redhat.com>
996
997 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
998 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
999 available, use pthread mutexes.
1000 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1001 * config.h.in: Regenerate.
1002 * configure: Regenerate.
1003
10042010-07-06 Aldy Hernandez <aldyh@redhat.com>
1005
1006 * libitm.h (ITM_PURE): Define.
1007 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1008
10092010-06-28 Aldy Hernandez <aldyh@redhat.com>
1010
1011 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1012 (validate): Add comment.
1013 (trydropreference): New.
1014 * method-readonly.cc (class readonly_dispatch): Add
1015 trydropreference.
1016 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1017 Call trydropreference().
1018 * libitm.h (_ITM_dropReferences): Remove const attribute.
1019 * method-serial.cc (class serial_dispatch): Add trydropreference.
1020 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1021
10222010-06-28 Aldy Hernandez <aldyh@redhat.com>
1023
1024 * memcpy.cc (do_memcpy): Comment.
1025
10262010-06-25 Aldy Hernandez <aldyh@redhat.com>
1027
1028 * barrier.tpl: Add comments throughout.
1029
10302010-06-24 Aldy Hernandez <aldyh@redhat.com>
1031
1032 * method-wbetl.cc (struct w_entry): Add comments.
1033 (trycommit): Same.
1034 (rollback): Same.
1035
10362010-06-24 Aldy Hernandez <aldyh@redhat.com>
1037
1038 * alloc_c.cc (_ITM_dropReferences): New.
1039 * libitm.map (_ITM_dropReferences): Add.
1040 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1041 * libitm_i.h (struct gtm_transaction): Declare
1042 drop_references_allocations and drop_references_local.
1043 * local.cc (rollback_local): Ignore memory when applicable.
1044 (drop_references_local): New.
1045
10462010-06-23 Richard Henderson <rth@redhat.com>
1047
1048 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1049 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1050 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1051 * config/alpha/target.h: Likewise.
1052 * config/generic/tls.cc (gtm_mask_stack): Use it.
1053
10542010-06-23 Richard Henderson <rth@redhat.com>
1055
1056 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1057 a mutex instead of trying a lock-free compare-and-swap on the list.
1058 (gtm_cacheline_page::operator delete): Likewise.
1059
10602010-06-16 Richard Henderson <rth@redhat.com>
1061
1062 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1063 that overlap the libitm stack.
1064 * barrier.tpl: Mark incoming stack.
1065 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1066 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1067 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1068 * memcpy.cc, memset.cc: Likewise.
1069 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1070 * config/generic/tls.h (gtm_thread): Add stack_top member.
1071 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1072 * libitm_i.h (gtm_mask_stack): Declare.
1073 * config/generic/tls.cc: New file.
1074 * Makefile.am (libitm_la_SOURCES): Add it.
1075 (AM_CXXFLAGS): Turn off exceptions.
1076 * Makefile.in: Rebuild.
1077
10782010-06-16 Richard Henderson <rth@redhat.com>
1079
1080 * alloc.cc (struct gtm_alloc_action): Move definition ...
1081 * libitm_i.h: ... here.
1082 (class gtm_transaction): Declare new and delete.
1083 * beginend.cc (alloc_tx): Reformulate as operator new.
1084 (free_tx): Reformulate as operator delete.
1085 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1086
10872010-06-11 Richard Henderson <rth@redhat.com>
1088
1089 * clone.cc (clone_entry_compare): Fix typo.
1090 From Patrik Marlier <patrick.marlier@unine.ch>.
1091
10922010-05-13 Richard Henderson <rth@redhat.com>
1093
1094 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1095 in extern "C".
1096
10972010-05-07 Aldy Hernandez <aldyh@redhat.com>
1098
1099 * libitm_i.h (struct gtm_transaction): Remove
1100 get_allocation_size.
1101 (record_allocation): Remove size parameter.
1102 * libitm.map (_ITM_realloc): Remove.
1103 * alloc_c.cc (_ITM_realloc): Remove.
1104 (_ITM_malloc): Remove size argument to record_allocation.
1105 (_ITM_calloc): Same.
1106 * alloc_cpp.cc (_ZGTtnwm): Same.
1107 (_ZGTtnwmRKSt9nothrow_t): Same.
1108 (_ZGTtnam): Same.
1109 (_ZGTtnamRKSt9nothrow_t): Same.
1110 * alloc.cc (struct gtm_alloc_action): Remove size.
1111 (get_allocation_size): Remove.
1112 (commit_allocations): Add comment.
1113 (record_allocation): Remove size parameter.
1114 (forget_allocation): Remove set of size.
1115
11162010-04-19 Aldy Hernandez <aldyh@redhat.com>
1117
1118 * Makefile.am (abi_version): New.
1119 (AM_CXXFLAGS): Pass abi_version.
1120 * Makefile.in: Regenerate.
1121 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1122
11232010-04-06 Aldy Hernandez <aldyh@redhat.com>
1124
1125 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1126 _ITM_getTMCloneOrIrrevokable.
1127 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1128 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1129
11302010-03-26 Aldy Hernandez <aldyh@redhat.com>
1131
1132 * configure.ac: Remove Linux futex support.
1133 * configure.tgt (config_path): Same.
1134 * Makefile.am: Same.
1135 * config/linux: Remove entire directory.
1136 * configure: Rebuild.
1137 * Makefile.in: Rebuild.
1138 * testsuite/Makefile.in: Rebuild.
1139
11402010-03-09 Aldy Hernandez <aldyh@redhat.com>
1141
1142 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1143 switching to serial mode.
1144 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1145
11462010-03-03 Aldy Hernandez <aldyh@redhat.com>
1147
1148 * configure.tgt: Add emacs -*- tags.
1149 * barrier.tpl: Same.
1150
11512010-02-23 Aldy Hernandez <aldyh@redhat.com>
1152
1153 * Makefile.am: Rename serial.cc to method-serial.cc.
1154 * Makefile.in: Regenerate with automake 1.11.1.
1155 * testsuite/Makefile.in: Same.
1156 * aclocal.m4: Regenerate with aclocal 1.11.1.
1157 * method-serial.cc: Rename from serial.cc.
1158 * libitm_i.h (struct gtm_transaction): Update comment on
1159 serialirr_mode.
1160
11612010-02-22 Aldy Hernandez <aldyh@redhat.com>
1162
1163 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1164 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1165
11662010-02-11 Aldy Hernandez <aldyh@redhat.com>
1167
1168 * configure: Rebuild.
1169
11702009-11-12 Richard Henderson <rth@redhat.com>
1171
1172 * Rewrite everything in C++.
1173
11742009-11-03 Richard Henderson <rth@redhat.com>
1175
1176 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1177 * Makefile.am (libitm_la_SOURCES): Add them.
1178 * configure.ac (ARCH_X86): New conditional.
1179 * Makefile.in, configure: Rebuild.
1180 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1181 Move futex setup into "other system configury" case.
1182 * local.c (rollback_local): Merge into ...
1183 (GTM_rollback_local): ... here.
1184 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1185 (_ITM_LB): Define as an alias to GTM_LB.
1186
11872009-11-03 Richard Henderson <rth@redhat.com>
1188
1189 * method-readonly.c: New file.
1190 * Makefile.am (libitm_la_SOURCES): Add it.
1191 * Makefile.in: Rebuild.
1192 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1193 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1194 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1195 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1196 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1197 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1198 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1199 gtm_get_clock, gtm_inc_clock): New.
1200 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1201 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1202 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1203 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1204 replace uses with new libitm_i.h symbols.
1205 (dispatch_wbetl): Rename from wbetl_dispatch.
1206 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1207 away from dispatch_readonly; abort if the beginTransaction call
1208 asserted that the transaction was readonly.
1209
12102009-11-03 Richard Henderson <rth@redhat.com>
1211
1212 * memset.c: New file.
1213 * Makefile.am (libitm_la_SOURCES): Add it.
1214 * Makefile.in: Rebuild.
1215 * testsuite/libitm.c/memset-1.c: New.
1216
12172009-11-03 Richard Henderson <rth@redhat.com>
1218
1219 * dispatch.c: Remove file.
1220 * useraction.c (struct gtm_user_action): Move from libitm.h.
1221 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1222 (serial_memset, serial_memmove, serial_memcpy): Remove.
1223 (serial_W*, serial_R*): Remove.
1224 (serial_dispatch): Update to match.
1225 * configure.ac: Move Werror down below configure checks. Don't
1226 check for sys/loadavg.h, do check for malloc.h. Don't check for
1227 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1228 Use GCC_AC_FUNC_MMAP_BLACKLIST
1229 * libitm.h: Split out all internal items to...
1230 * libitm_i.h: ... here. New file.
1231 * copymask.c: New file.
1232 * local.c (struct gtm_local_undo): Move from libitm.h.
1233 (GTM_alloc_local): Rename from alloc_local; export.
1234 * memcpy.c: New file.
1235 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1236 * config/posix/page.c: New file.
1237 * config/posix/target_tls.h: Remove file.
1238 * barrier.c: New file.
1239 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1240 copymask.c, page.c.
1241 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1242 * method-wbetl.c: Rewrite for new cacheline methods.
1243 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1244
1245 * config/alpha/sjlj.S: Fix typo.
1246 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1247 * config/alpha/copymask.c: New file.
1248 * config/alpha/target.h (CACHELINE_SIZE): New.
1249 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1250
1251 * config/x86/target_i.h: Copy functions from x86/target.h.
1252 * config/x86/copymask.c: New file.
1253 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1254 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1255 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1256 * config/x86/target_tls.h: Move contents to target_i.h.
1257
1258 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1259 * testsuite/libitm.c/memcpy-1.c: New.
1260
12612009-10-22 Richard Henderson <rth@redhat.com>
1262
1263 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1264 (AM_CCASFLAGS): New.
1265 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1266 saving/restoring _AC_ARG_VAR_PRECIOUS.
1267 * Makefile.in, aclocal.m4, config.h.in, configure,
1268 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1269
12702009-10-22 Richard Henderson <rth@redhat.com>
1271
1272 * testsuite/*: Update for new compiler syntax.
1273
12742009-10-21 Richard Henderson <rth@redhat.com>
1275
1276 * libitm.h (_ITM_abortReason): Add outerAbort.
1277
12782009-08-03 Richard Henderson <rth@redhat.com>
1279
1280 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1281 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1282 * method-wbetl.c (struct w_entry): Remove mask.
1283 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1284 adjust all callers.
1285
12862009-07-22 Richard Henderson <rth@redhat.com>
1287
1288 * eh_cpp.c: New file.
1289 * Makefile.am (libitm_la_SOURCES): Add it.
1290 * Makefile.in: Rebuild.
1291 * beginend.c (GTM_rollback_transaction): Undo exception state.
1292 (GTM_trycommit_transaction): Mark inline.
1293 (GTM_trycommit_and_finalize_transaction): Split out from ...
1294 (_ITM_commitTransaction): ... here.
1295 (_ITM_commitTransactionEH): New function.
1296 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1297 cxa_unthrown, eh_in_flight; reorder.
1298
1299 * testsuite/libitm.c++/c++.exp: New.
1300 * testsuite/libitm.c++/eh-1.C: New.
1301
1302 * aatree.c (aa_free): Remove REGPARM.
1303 * aatree.h: Remove all REGPARM.
1304
13052009-07-18 Richard Henderson <rth@redhat.com>
1306
1307 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1308 * Makefile.am (libitm_la_SOURCES): Add them.
1309 * Makefile.in: Rebuild.
1310 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1311 (GTM_trycommit_transaction): Likewise.
1312 * libitm.h: Include aatree.h
1313 (struct gtm_alloc_action): New.
1314 (struct gtm_transaction): Add alloc_actions.
1315 (GTM_record_allocation, GTM_forget_allocation): Declare.
1316 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1317 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1318 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1319 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1320 _ZGTtdaPvRKSt9nothrow_t): Export.
1321
13222009-07-18 Richard Henderson <rth@redhat.com>
1323
1324 * target_tls.h: Move ...
1325 * config/posix/target_tls.h: ... here.
1326
13272009-07-07 Richard Henderson <rth@redhat.com>
1328
1329 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1330
13312009-07-07 Richard Henderson <rth@redhat.com>
1332
1333 * Update to GPL3.
1334
13352009-07-07 Richard Henderson <rth@redhat.com>
1336
1337 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1338 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1339
1340 * configure.tgt: Don't use -ftls-model for x86 linux.
1341 * libitm.h: Include target.h after standard includes.
1342 (_gtm_thr): Rename from gtm_thr.
1343 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1344 (gtm_disp, set_gtm_disp): New.
1345 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1346 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1347 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1348
13492009-07-07 Richard Henderson <rth@redhat.com>
1350
1351 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1352
13532009-07-06 Richard Henderson <rth@redhat.com>
1354
1355 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1356 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1357 (_ITM_beginTransaction): Take variadic arguments.
1358 (_ITM_registerThrownObject): Declare.
1359 * beginend.c, serial.c: Update.
1360 * libitm.map: Add _ITM_registerThrownObject.
1361
13622009-01-28 Richard Henderson <rth@redhat.com>
1363
1364 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1365 * Makefile.in: Rebuild.
1366 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1367 (GTM_restart_transaction): Fix uninstrumented code check.
1368 * retry.c (GTM_decide_retry_strategy): Add serial check.
1369 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1370 automatically go irrevokable when in serial mode.
1371 * clone.c: New file.
1372 * libitm.h, libitm.map: Update.
1373
13742009-01-27 Richard Henderson <rth@redhat.com>
1375
1376 * Makefile.am (LTCCASCOMPILE): Define.
1377 (libitm_la_SOURCES): Add methid-wbetl.c.
1378 * testsuite/Makefile.am: New
1379 * configure.ac: Add testsuite/Makefile.
1380 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1381 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1382 (_ITM_abortTransaction): Finalize implementation method; pass
1383 transaction properties to longjmp.
1384 (GTM_restart_transaction): Split out from ...
1385 (_ITM_commitTransaction): ... here.
1386 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1387 Move to config/x86/target.h.
1388 * config/linux/alpha/futex_bits.h: New.
1389 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1390 * config/x86/target.h: Disable target types for 32-bit.
1391 * config/alpha/sjlj.S, config/alpha/target.h: New.
1392 * libitm.h (struct gtm_dispatch): Add init, fini.
1393 (enum restart_reason): New.
1394 (struct gtm_transaction): Add method and restarts.
1395 * retry.c (GTM_decide_retry_strategy): Implement.
1396 * serial.c (serial_init, serial_fini): New.
1397 (GTM_serialmode): Finialize outgoing method.
1398 * method-wbetl.c: New.
1399
14002008-12-09 Richard Henderson <rth@redhat.com>
1401
1402 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1403 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1404 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1405 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1406 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1407 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1408 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1409 * serial.c (serial_R##T, serial_W##T): Likewise.
1410
14112008-11-21 Richard Henderson <rth@redhat.com>
1412
1413 * Initial commit.