* config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace
[official-gcc.git] / libitm / ChangeLog
blob53fe89749a9fa7b3b0c495f674ba4281eba17630
1 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
3         * configure: Regenerated.
5 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
7         PR jit/85384
8         * configure: Regenerate.
10 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12         PR target/84148
13         * configure: Regenerate.
15 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
17         Update copyright years.
19         * libitm.texi: Bump @copying's copyright year.
21 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
23         * Makefile.in: Regenerate.
24         * acinclude.m4: Add enable.m4 and cet.m4.
25         * config/x86/sjlj.S: Include cet.h.
26         (_ITM_beginTransaction): Add _CET_ENDBR.
27         Save Shadow Stack pointer.
28         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
29         * config/x86/target.h (struct gtm_jmpbuf):
30         Add new field for Shadow Stack pointer.
31         * configure: Regenerate.
32         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
33         * configure.ac: Update libtool_VERSION for x86.
34         * testsuite/Makefile.in: Regenerate.
36 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
38         * libitm/config/x86/target.h: Add new field (ssp).
39         * libitm/config/x86/sjlj.S: Change offsets.
41 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43         * testsuite/lib/libitm.exp: Load scanlang.exp.
45 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
47         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
49 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
51         PR other/79046
52         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
53         of cat to get version from BASE-VER file.
54         * testsuite/Makefile.in: Regenerated.
56 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
58         * config/x86/target.h (htm_available): Determine vendor from
59         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
61 2017-01-18  Torvald Riegel  <triegel@redhat.com>
63         * config/x86/target.h (htm_available): Add check for some processors
64         on which TSX is broken.
66 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
68         PR other/79046
69         * configure.ac: Add GCC_BASE_VER.
70         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
71         get version from BASE-VER file.
72         * testsuite/Makefile.in: Regenerated.
73         * configure: Regenerated.
74         * Makefile.in: Regenerated.
76 2017-01-04  Alan Modra  <amodra@gmail.com>
78         * Makefile.in: Regenerate.
79         * testsuite/Makefile.in: Regenerate.
81 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
83         Update copyright years.
85         * libitm.texi: Bump @copying's copyright year.
87 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
89         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
90         * aclocal.m4: Regenerate.
91         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
92         LIBITM_CHECK_LINKER_HWCAP.
94 2016-11-15  Matthias Klose  <doko@ubuntu.com>
96         * configure: Regenerate.
98 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
100         PR libitm/70456
101         * util.cc (xmalloc): Use posix_memalign to allocate memory on
102         on cache line if requested.
104 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
106         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
107         function attribute to disable floating point in begin_transaction() on
108         S/390.
109         * beginend.cc (begin_transaction): Use
110         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
112 2016-01-22  Torvald Riegel  <triegel@redhat.com>
114         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
115         boundary.
116         (htm_fastpath): Remove.
117         (gtm_thread::begin_transaction): Fix HTM fastpath.
118         (_ITM_commitTransaction): Adapt.
119         (_ITM_commitTransactionEH): Adapt.
120         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
121         and accessors.
122         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
123         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
124         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
125         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
126         * libitm/method-serial.cc (htm_mg): Adapt.
127         (gtm_thread::serialirr_mode): Adapt.
128         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
130 2016-01-21  Torvald Riegel  <triegel@redhat.com>
132         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
133         or AIX.
135 2016-01-19  Richard Henderson  <rth@redhat.com>
137         PR bootstrap/69343
138         PR bootstrap/69339
139         Revert:
140         2016-01-13  Richard Henderson  <rth@redhat.com>
142         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
143         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
144         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
145         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
146         * configure.ac (ARCH_AARCH64): New conditional.
147         (ARCH_PPC, ARCH_S390): Likewise.
148         * Makefile.in, configure: Rebuild.
150         * libitm.h (_ITM_TYPE_M128): Always define.
151         * vect64.cc: Split ...
152         * vect128.cc: ... out of...
153         * config/x86/x86_sse.cc: ... here.
154         * config/arm/neon.cc: New file.
156 2016-01-19  Torvald Riegel  <triegel@redhat.com>
158         * local_type_traits: Remove file.
159         * libitm_i.h: Don't include it anymore.
160         (sized_integral): Remove.
162 2016-01-16  Torvald Riegel  <triegel@redhat.com>
164         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
165         safety.
166         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
167         * libitm/testsuite/libitm.c/priv-1.c: New.
169 2015-01-15  Torvald Riegel  <triegel@redhat.com>
171         testsuite/libitm.c++/libstdc++-safeexc.C: New.
173 2016-01-13  Torvald Riegel  <triegel@redhat.com>
175         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
176         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
177         (gtm_rwlock::write_unlock): Likewise.
179 2016-01-13  Richard Henderson  <rth@redhat.com>
181         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
182         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
183         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
184         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
185         * configure.ac (ARCH_AARCH64): New conditional.
186         (ARCH_PPC, ARCH_S390): Likewise.
187         * Makefile.in, configure: Rebuild.
189         * libitm.h (_ITM_TYPE_M128): Always define.
190         * vect64.cc: Split ...
191         * vect128.cc: ... out of...
192         * config/x86/x86_sse.cc: ... here.
193         * config/arm/neon.cc: New file.
195 2016-01-13  Torvald Riegel  <triegel@redhat.com>
197         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
198         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
199         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
200         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
201         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
202         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
203         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
204         (serialirr_dispatch::snapshot_most_recent): New.
205         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
207 2016-01-12  Torvald Riegel  <triegel@redhat.com>
209         * libitm_i.h (gtm_mask_stack): Remove.
210         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
211         * stmlock.h: Remove file.
212         * config/alpha/cacheline.h: Likewise.
213         * config/generic/cacheline.h: Likewise.
214         * config/powerpc/cacheline.h: Likewise.
215         * config/sparc/cacheline.h: Likewise.
216         * config/x86/cacheline.h: Likewise.
218 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
220         Update copyright years.
222         * libitm.texi: Bump @copying's copyright year.
224 2015-11-26  Torvald Riegel  <triegel@redhat.com>
226         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
227         (ml_wt_dispatch::pre_write): Adapt.
228         (ml_wt_dispatch::pre_load): Likewise.
230 2015-11-22  Torvald Riegel  <triegel@redhat.com>
232         * libitm_i.h (gtm_alloc_action): Remove union.
233         * testsuite/libitm.c/alloc-1.c: New.
235 2015-11-19  Torvald Riegel  <triegel@redhat.com>
237         * testsuite/libitm.c++/eh-5.C: New.
238         * libitm.h (_ITM_cxa_free_exception): New.
239         * libitm.map (_ITM_cxa_free_exception): Add it.
240         * libitm.texi: Update ABI docs.
241         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
242         (gtm_transaction_cp::cxa_uncaught_count): Add.
243         (gtm_thread::cxa_unthrown): Remove.
244         (gtm_thread::cxa_uncaught_count_ptr): Add.
245         (gtm_thread::cxa_uncaught_count): Add.
246         (gtm_thread::drop_references_allocations): Rename to...
247         (gtm_thread::discard_allocation): ... this and adapt.
248         (gtm_thread::init_cpp_exceptions): New.
249         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
250         (gtm_thread::begin_transaction): Likewise.
251         (gtm_transaction_cp::save): Likewise.
252         (gtm_thread::trycommit): Likewise.
253         * eh_cpp.cc: Add overview comments.
254         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
255         (free_any_exception, _ITM_cxa_free_exception): New.
256         (gtm_thread::init_cpp_exceptions): Define.
257         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
258         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
259         (gtm_thread::revert_cpp_exceptions): Likewise.
261 2015-11-09  Torvald Riegel  <triegel@redhat.com>
263         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
264         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
265         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
266         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
267         (gtm_thread::forget_allocations): New overload with size_t argument.
268         * alloc.c (gtm_thread::forget_allocation): Define new overload and
269         adapt existing one.
270         (gtm_thread::record_allocation): Adapt.
271         (gtm_thread::commit_allocations_1): Adapt.
272         (gtm_thread::commit_allocations_2): Adapt.
273         * testsuite/libitm.c++/newdelete.C: New.
275 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
276             Joseph Myers  <joseph@codesourcery.com>
277             Mark Shinwell  <shinwell@codesourcery.com>
278             Andrew Stubbs  <ams@codesourcery.com>
279             Rich Felker <dalias@libc.org>
281         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
282         GTM_begin_transaction for compatibility with FDPIC.
284 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
286         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
287         using load_gcc_lib.
289 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
291         PR libitm/61164
292         * local_atomic (__always_inline): Rename to...
293         (__libitm_always_inline): ... this.
295 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
297         PR target/52482
298         * config/powerpc/sjlj.S: Port to Xcode 2.5.
300 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
302         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
303         operands "op" and "val" to int.
305 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
307         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
308         "op" and "val" to int.
310 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
312         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
313         "op" and "val" to int.
315 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
317         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
318         Declare as static int.
319         (FUTEX_PRIVATE_FLAG): Remove L suffix.
320         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
322 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
324         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
325         sys_futex0 function.
327 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
329         * Makefile.in: Regenerated with automake-1.11.6.
330         * aclocal.m4: Likewise.
331         * configure: Likewise.
332         * testsuite/Makefile.in: Likewise.
334 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
336         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
337         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
339 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
341         PR libitm/64360
342         * libitm.c/stackundo.c (test2): Make it static.
343         (test1): Likewise.
345 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
347         Update copyright years.
349 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
351         * libitm.texi: Bump @copying's copyright year.
353 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
355         * testsuite/lib/libitm.exp: Load target-utils.exp.
356         Move load of target-supports.exp earlier.
358 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
360         * configure.tgt (x86_64): Tune -m32 multilib to generic.
362 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
364         PR bootstrap/63784
365         * configure: Regenerated.
367 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
369         PR target/63610
370         * configure: Regenerate.
372 2014-10-06  Marek Polacek  <polacek@redhat.com>
374         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
375         * testsuite/libitm.c/memset-1.c: Likewise.
377 2014-07-24  Richard Henderson  <rth@redhat.com>
379         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
380         addressing mode in epilogue.
382 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
384         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
385         -mclear-hwcap instead.
386         * configure: Regenerate.
387         * clearcap.map: Remove.
389 2014-05-21  John Marino  <gnugcc@marino.st>
391         * configure.tgt (*-*-dragonfly*): New target.
393 2014-05-19  Richard Henderson  <rth@redhat.com>
395         * config/aarch64/sjlj.S: New file.
396         * config/aarch64/target.h: New file.
397         * configure.tgt: Enable aarch64.
399 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
401         * config/generic/asmcfi.h: Also check for
402         __GCC_HAVE_DWARF2_CFI_ASM.
404 2013-04-02  Richard Henderson  <rth@redhat.com>
406         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
407         * config/arm/target.h, config/sh/target.h: Likewise.
408         * config/sparc/target.h, config/x86/target.h: Likewise.
410 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
412         * config/linux/futex_bits.h: Include errno.h.
413         (sys_futex0): If syscall returns -1, return -errno rather than
414         -1.
416 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
418         * libitm.texi (Index): Rename to Library Index.
420 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
422         PR libitm/53113
423         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
424         (x86_avx.lo): Append -mavx to CXXFLAGS.
425         * Makefile.in: Regenerate.
427 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
429         Update copyright years
431 2014-01-02  Tobias Burnus  <burnus@net-b.de>
433         * libitm.texi: Bump @copying's copyright year.
435 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
437         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
438         (FUNC): Define ELFv2 variant.
439         (END): Likewise.
440         (HIDDEN): Likewise.
441         (CALL): Likewise.
442         (BASE): Likewise.
443         (LR_SAVE): Likewise.
445 2013-09-20  Alan Modra  <amodra@gmail.com>
447         * configure: Regenerate.
449 2013-08-30  Torvald Riegel  <triegel@redhat.com>
451         * config/posix/rwlock.cc: Fix initialization order.
453 2013-08-30  Torvald Riegel  <triegel@redhat.com>
455         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
456         (htm_fastpath): Assign an asm name.
457         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
458         HTM fast paths.
459         (_ITM_actions): Likewise.
460         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
461         x86_64.
462         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
463         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
464         field to the start of the structure.
465         * config/linux/rwlock.h (gtm_rwlock): Update comments.
466         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
467         handling for custom HTM fast paths.
469 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
470         Revert:
471         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
473         * configure.tgt: Add -msoft-float to XCFLAGS.
475 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
477         * configure.tgt: Add -msoft-float to XCFLAGS.
479 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
481         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
482         (htm_transaction_active): Enable zEC12 instructions in the
483         assembler.
484         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
486 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
488         * acinclude.m4: Add htm asm check for s390.
489         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
490         * configure: Regenerate.
491         * config/s390/target.h: Remove __HTM__ check.
492         (htm_available): Call getauxval to get hwcaps and check whether
493         HTM is available or not.
495 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
497         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
498         * configure.ac: Use it.
499         (AC_CHECK_HEADERS): Check for sys/auxv.h.
500         (AC_CHECK_FUNCS): Check for getauxval.
501         * config.h.in, configure: Rebuild.
502         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
503         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
504         (USE_HTM_FASTPATH): Define.
505         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
506         _HTM_RETRIES) New macros.
507         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
508         htm_begin_success, htm_commit, htm_transaction_active): New functions.
510 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
512         * config/s390/target.h: Include htmintrin.h.
513         (_HTM_ITM_RETRIES): New macro definition.
514         (htm_available, htm_init, htm_begin, htm_begin_success)
515         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
517 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
518             Cesar Philippidis  <cesar@codesourcery.com>
520         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
521         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
522         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
523         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
525 2013-06-20  Torvald Riegel  <triegel@redhat.com>
527         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
528         (_ITM_getTransactionId): Same.
529         * config/x86/target.h (htm_transaction_active): New.
531 2013-06-20  Torvald Riegel  <triegel@redhat.com>
533         PR libitm/57643
534         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
535         the HTM fastpath.
537 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
539         PR bootstrap/56714
540         * local_atomic (__always_inline): Always define our version.
541         (__calculate_memory_order): Mark inline.
542         (atomic_thread_fence): Ditto.
543         (atomic_signal_fence): Ditto.
544         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
545         (atomic_bool::atomic_flag_clear_explicit): Ditto.
546         (atomic_bool::atomic_flag_test_and_set): Ditto.
547         (atomic_bool::atomic_flag_clear): Ditto.
549 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
551         * config/s390/sjlj.S: New file.
552         * config/s390/target.h: New file.
553         * configure.tgt: Set options for S/390.
555 2013-03-23  Andi Kleen  <ak@linux.intel.com>
557         * local_atomic (__always_inline): Add.
558         (__calculate_memory_order, atomic_thread_fence,
559          atomic_signal_fence, test_and_set, clear, store, load,
560          exchange, compare_exchange_weak, compare_exchange_strong,
561          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
562         Add __always_inline to force inlining.
564 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
565             Jack Howarth  <howarth@bromo.med.uc.edu>
566             Patrick Marlier  <patrick.marlier@gmail.com>
568         PR libitm/55693
569         * alloc_cpp.cc: Enable function declarations on darwin.
570         * eh_cpp.cc: Likewise.
572 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
574         Update copyright years.
576 2012-11-09  Torvald Riegel  <triegel@redhat.com>
578         * beginend.cc (htm_fastpath): New.
579         (gtm_thread::begin_transaction, _ITM_commitTransaction,
580         _ITM_commitTransactionEH): Add HTM fastpath handling.
581         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
582         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
583         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
584         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
585         * configure.tgt: Add -mrtm to XCFLAGS.
586         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
587         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
588         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
589         * retry.cc (parse_default_method): Add HTM method parsing.
590         (gtm_thread::number_of_threads_changed): Use HTM by default if
591         available.
593 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
595         * configure: Regenerate.
597 2012-10-31  Richard Henderson  <rth@redhat.com>
599         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
600         * configure.ac: Use it.
601         * config.h.in, configure: Rebuild.
602         * testsuite/Makefile.in: Rebuild.
604 2012-10-24  Torvald Riegel  <triegel@redhat.com>
606         * libitm.texi: Clarify ABI requirements for data-logging functions.
608 2012-10-24  Torvald Riegel  <triegel@redhat.com>
610         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
611         it requires serial mode instead of assuming that for certain
612         dispatchs.
613         * dispatch.h (abi_dispatch::requires_serial): New.
614         (abi_dispatch::abi_dispatch): Adapt.
615         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
616         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
617         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
618         serial_dispatch::serial_dispatch,
619         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
621 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
623         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
624         and ia32 declarations some more.
625         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
627 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
629         PR other/43620
630         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
631         * configure: Regenerate.
632         * Makefile.in: Regenerate.
634 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
636         * configure: Regenerated.
638 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
640         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
642 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
644         * eh_cpp.cc: Fix __cxa_end_catch declaration.
646 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
648         * configure: Regenerated.
650 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
652         PR libitm/52854
653         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
654         for x86-64.
656 2012-04-03  Tristan Gingold  <gingold@adacore.com>
658         * configure: Regenerate.
660 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
662         PR bootstrap/52812
663         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
665 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
667         * testsuite/lib/libitm.exp: load fortran-modules.exp
669 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
671         * configure.tgt (*-*-irix6*): Remove.
673 2012-03-13  Torvald Riegel  <triegel@redhat.com>
675         PR libitm/52526
676         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
677         wake-up.
679 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
681         * configure.tgt (*-*-osf*): Remove.
682         * configure: Regenerate.
684 2012-03-05  Torvald Riegel  <triegel@redhat.com>
686         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
687         memtransfer/memset if size isn't larger than zero.
689 2012-03-02  Torvald Riegel  <triegel@redhat.com>
691         * libitm.texi: Link to specification and add a usage example.
693 2012-02-24  Torvald Riegel  <triegel@redhat.com>
695         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
696         default dispatch for more than 1 thread to ml_wt.
698 2012-02-20  Torvald Riegel  <triegel@redhat.com>
700         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
702 2012-02-20  Torvald Riegel  <triegel@redhat.com>
704         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
706 2012-02-20  Torvald Riegel  <triegel@redhat.com>
708         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
709         serial mode corner cases made obsolete by prior gtm_rwlock changes.
710         (gl_wt_dispatch.rollback): Same.
712 2012-02-20  Torvald Riegel  <triegel@redhat.com>
714         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
716 2012-02-20  Torvald Riegel  <triegel@redhat.com>
718         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
719         for RfW src.  Optimize number of calls to gtm_thr.
721 2012-02-20  Torvald Riegel  <triegel@redhat.com>
723         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
724         acquisition to ...
725         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
726         (default_dispatch): Make atomic.
727         (GTM::gtm_thread::set_default_dispatch): Access atomically.
728         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
729         use decide_begin_dispatch() if default_dispatch might have changed.
730         (GTM::gtm_thread::number_of_threads_changed): Initialize
731         default_dispatch here.
733 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
734             Patrick Marlier  <patrick.marlier@gmail.com>
736         PR libitm/52220
737         * alloc_cpp.cc: No dummy definitions for darwin.
738         * eh_cpp.cc: Likewise.
740 2012-02-14  Richard Henderson  <rth@redhat.com>
742         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
744 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
746         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
748 2012-02-14  Torvald Riegel  <triegel@redhat.com>
750         * libitm_i.h (GTM::gtm_rwlog_entry): New.
751         (GTM::gtm_thread): Add read and write logs.
752         (GTM::dispatch_ml_wt): Declare.
753         * retry.cc (parse_default_method): Support ml_wt.
754         * method-ml.cc: New file.
755         * Makefile.am: Add method-ml.cc.
756         * Makefile.in: Regenerate.
758 2012-02-14  Torvald Riegel  <triegel@redhat.com>
760         * dispatch.h (GTM::abi_dispatch::supports): New.
761         (GTM::method_group::reinit): New.
762         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
763         (GTM::gtm_thread::number_of_threads_changed): Check that the method
764         supports the current situation.
766 2012-02-14  Torvald Riegel  <triegel@redhat.com>
768         * util.cc (GTM::xcalloc): New.
769         * common.h (GTM::xcalloc): Declare.
771 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
773         * config/sparc/target.h (cpu_relax): Read from CC register.
774         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
776 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
778         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
780 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
782         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
783         * config/sparc/cacheline.h: New file.
784         * config/sparc/target.h: Likewise.
785         * config/sparc/sjlj.S: Likewise.
786         * config/linux/sparc/futex_bits.h: Likewise.
788 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
790         * configure.ac (link_itm): Fix comment.
791         * configure: Regenerate.
792         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
794 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
796         PR libitm/51822
797         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
798         Correct libgomp references.
800 2012-01-24  Torvald Riegel  <triegel@redhat.com>
802         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
803         wake-up.
805 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
807         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
808         end of structure.
809         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
810         offset values.  Do not copy return address.  Decrement stack
811         by 56 bytes only.
812         (GTM_longjump) [__x86_64__]: Update offset values.
814 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
816         PR libitm/51830
817         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
818         the first function argument to %eax.
820 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
822         * libitm.h (_ITM_getThreadnum): Remove.
823         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
825 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
827         * clearcap.map: New file.
828         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
829         * configure.ac: Call it.
830         Clear HWCAP_LDFLAGS if defaulting to -mavx.
831         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
832         * configure: Regenerate.
833         * Makefile.in: Regenerate.
834         * testsuite/Makefile.in: Regenerate.
836 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
838         PR libitm/51173
839         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
840         include, exclude options.
842 2012-01-14  Torvald Riegel  <triegel@redhat.com>
844         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
845         rolling back.
846         * containers.h (GTM::vector::set_size): New.
848 2012-01-14  Torvald Riegel  <triegel@redhat.com>
850         PR libitm/51855
851         * config/generic/tls.h (GTM::mask_stack_top): New.
852         (GTM::mask_stack_bottom): Declare.
853         * config/generic/tls.c (GTM::mask_stack_bottom): New.
854         * local.cc (gtm_undolog::rollback): Filter out any updates that
855         overlap the libitm stack.  Add current transaction as parameter.
856         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
857         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
858         * testsuite/libitm.c/stackundo.c: New test.
860 2012-01-10  Richard Henderson  <rth@redhat.com>
862         * libitm_i.h (_Unwind_DeleteException): Declare weak.
863         * eh_cpp.cc (_Unwind_DeleteException): Define for
864         !HAVE_ELF_STYLE_WEAKREF.
866 2012-01-08  Torvald Riegel  <triegel@redhat.com>
868         * local.cc (GTM_LB): Use GTM::gtm_undolog.
869         (GTM::gtm_thread::drop_references_undolog): Remove.
870         (GTM::gtm_thread::commit_undolog,
871         GTM::gtm_thread::rollback_undolog): Move to ...
872         * libitm_i.h (GTM::gtm_undolog): ...here. New.
873         (GTM::gtm_undolog_entry): Remove.
874         (GTM::gtm_thread): Adapt.
875         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
876         (GTM::gtm_thread::trycommit): Adapt.
877         * method-serial.cc (serial_dispatch::log): Adapt.
878         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
879         (gl_wt_dispatch::store): Fix likely/unlikely.
880         * containers.h (GTM::vector::resize): Add additional_capacity
881         parameter and handle it.
882         (GTM::vector::resize_noinline): New/adapt.
883         (GTM::vector::push): New.
885 2012-01-06  Richard Henderson  <rth@redhat.com>
887         * configure.tgt: Support powerpc-linux and powerpc-darwin.
888         * config/linux/powerpc/futex_bits.h: New file.
889         * config/powerpc/cacheline.h: New file.
890         * config/powerpc/sjlj.S: New file.
891         * config/powerpc/target.h: New file.
892         * config/generic/asmcfi.h (cfi_offset): New.
893         (cfi_restore, cfi_undefined): New.
895 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
897         PR other/51171
898         * testsuite/libitm.c/reentrant.c: Remove xfail.
899         (thread): Pass x to pure().
900         From Patrik Marlier <patrick.marlier@gmail.com>.
902 2011-12-24  Torvald Riegel  <triegel@redhat.com>
904         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
905         privatization safety if already in serial mode.
907 2011-12-24  Torvald Riegel  <triegel@redhat.com>
909         * beginend.cc (GTM::gtm_thread::restart): Add and handle
910         finish_serial_upgrade parameter.
911         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
912         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
913         Don't unset reader flag.
914         (GTM::gtm_rwlock::write_upgrade_finish): New.
915         * config/posix/rwlock.cc: Same.
916         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
917         Declare.
918         * config/posix/rwlock.h: Same.
919         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
920         flag after commit or after rollback when restarting.
922 2011-12-24  Torvald Riegel  <triegel@redhat.com>
924         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
925         (GTM::gtm_thread::try_commit): Changed memory order.
926         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
927         as parameter.
928         * config/linux/x86/futex_bits.h (sys_futex0): Same.
929         * config/linux/sh/futex_bits.h (sys_futex0): Same.
930         * config/linux/futex_bits.h (sys_futex0): Same.
931         * config/linux/futex.cc (futex_wait, futex_wake): Same.
932         * config/linux/futex.h (futex_wait, futex_wake): Same.
933         * config/linux/rwlock.h (gtm_rwlock::writers,
934         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
935         ints.
936         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
937         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
938         gtm_rwlock::write_unlock): Fix memory orders and fences.
939         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
940         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
941         gtm_rwlock::write_unlock): Same.
942         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
943         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
944         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
945         Add comments.
946         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
947         gl_wt_dispatch::load, gl_wt_dispatch::store,
948         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
949         orders and fences.  Add comments.
951 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
953         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
954         * Makefile.in: Regenerated.
956 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
958         * configure.tgt: Add sh* case.
959         * config/sh/target.h: New file.
960         * config/sh/sjlj.S: New file.
961         * config/linux/sh/futex_bits.h: New file.
963 2011-12-14  Richard Henderson  <rth@redhat.com>
965         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
966         * config/arm/sjlj.S, config/arm/target.h: New files.
967         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
968         (cfi_rel_offset): New.
969         * config/linux/futex_bits.h: New file.
970         * config/linux/futex.cc: Include futex_bits.h here...
971         * config/linux/futex.h: ... not here.
972         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
973         * configure.ac (ARCH_AM): New conditional.
974         * Makefile.in, configure: Rebuild.
975         * configure.tgt: Handle ARM.
977 2011-12-13  Richard Henderson  <rth@redhat.com>
979         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
980         signed/unsigned comparison werror.
982         * local_atomic: New file.
983         * libitm_i.h: Include it.
984         (gtm_thread::shared_state): Use atomic template.
985         * beginend.cc (GTM::gtm_clock): Use atomic template.
986         (global_tid): Use atomic template if 64-bit atomics available.
987         (gtm_thread::gtm_thread): Update shared_state access.
988         (gtm_thread::trycommit): Likewise.
989         (choose_code_path): Update global_tid access.
990         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
991         * stmlock.h (GTM::gtm_clock): Use atomic template.
992         (gtm_get_clock, gtm_inc_clock): Update accesses.
993         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
994         redundant __sync_synchronize after atomic shared_state access.
995         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
996         (gtm_rwlock::write_lock_generic): Likewise.
997         (gtm_rwlock::read_unlock): Likewise.
998         * config/alpha/target.h (atomic_read_barrier): Remove.
999         (atomic_write_barrier): Remove.
1000         * config/x86/target.h (atomic_read_barrier): Remove.
1001         (atomic_write_barrier): Remove.
1003 2011-11-30  Richard Henderson  <rth@redhat.com>
1005         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1006         * beginend.c (_ITM_abortTransaction): Update to match.
1007         (GTM::gtm_thread::restart): Likewise.
1008         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1009         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1011 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1013         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1014         * Makefile.in: Regenerate.
1016 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1018         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1019         * alloc_cpp.cc: Generate dummy functions if we don't
1020         HAVE_ELF_STYLE_WEAKREF.
1021         * eh_cpp.cc: Likewise.
1022         * configure: Regenerate.
1023         * aclocal.m4:  Likewise.
1024         * config.h.in: Likewise.
1025         * Makefile.in: Likewise.
1026         * testsuite/Makefile.in: Likewise.
1028 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1030         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1031         __USER_LABEL_PREFIX__ for targets that use it.
1032         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1033         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1034         in portability to non-elf targets.
1035         (GTM_longjmp): Likewise.
1036         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1037         where required.
1039 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1041         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1042         * testsuite/libitm.c/memset-1.c: Likewise.
1044 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1046         * configure: Regenerate.
1048 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1050         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1051         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1052         * Makefile.am: Handle sun style versioning.
1053         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1054         * configure: Regenerate.
1055         * Makefile.in: Regenerate.
1057 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1059         * config/generic/asmcfi.h: Fix comment.
1060         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1061         sequence without .hidden support, error for non-ELF targets.
1062         (GTM_longjmp) [__ELF__]: Only use .hidden if
1063         HAVE_ATTRIBUTE_VISIBILITY.
1065 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1067         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1068         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1069         Dummy functions.
1070         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1071         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1073 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1075         PR bootstrap/51098
1076         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1077         * configure: Regenerate.
1079 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1081         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1083 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1085         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1086         .hidden.
1087         (.note.GNU-stack): Only use if __linux__.
1088         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1089         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1090         * testsuite/libitm.c/reentrant.c: Likewise.
1091         * testsuite/libitm.c/simple-2.c: Likewise.
1092         * testsuite/libitm.c/txrelease.c: Likewise.
1093         * testsuite/libitm.c++/static_ctor.C: Likewise.
1095 2011-11-10  Richard Henderson  <rth@redhat.com>
1097         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1098         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1099         * configure.ac (ARCH_X86_AVX): New conditional.
1100         * Makefile.in, configure: Rebuild.
1102 2011-11-09  Richard Henderson  <rth@redhat.com>
1104         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1105         * configure.ac: Use it.
1106         * config.h.in, configure: Rebuild.
1107         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1109 2011-11-09  Richard Henderson  <rth@redhat.com>
1111         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1112         * config/alpha/unaligned.h: Remove file.
1113         * config/generic/unaligned.h: Remove file.
1114         * config/x86/unaligned.h: Remove file.
1115         * config/generic/cachepage.h: Remove file.
1116         * config/posix/cachepage.cc: Remove file.
1117         * config/generic/cacheline.cc: Remove file.
1118         * config/x86/cacheline.cc: Remove file.
1119         * config/generic/cacheline.h (gtm_cacheline): Remove the
1120         store_mask, copy_mask, copy_mask_wb methods.
1121         * config/x86/cacheline.h: Likewise.
1122         * config/alpha/cacheline.h: Fall back to generic after setting size.
1123         * config/generic/tls.cc (gtm_mask_stack): Remove.
1124         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1125         (GTM_vpalignr_table): Remove.
1126         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1127         (GTM_pshift_table): Remove.
1128         * config/libitm_i.h: Don't include cachepage.h.
1129         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1130         * Makefile.in, testsuite/Makefile.in: Rebuild.
1132 2011-11-09  Richard Henderson  <rth@redhat.com>
1134         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1135         to emit branch prediction hint.
1137         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1138         Protect .note.GNU-stack with __linux__.
1140         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1141         * configure, aclocal.m4, config.h.in: Rebuild.
1142         * config/generic/asmcfi.h: New file.
1143         * config/x86/sjlj.S: Use it.
1145 2011-11-08  Richard Henderson  <rth@redhat.com>
1147         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1149 2011-11-08  Richard Henderson  <rth@redhat.com>
1151         * configure.tgt: Test correct directory for supported cpus.
1153         * configure.ac: Exit if unsupported.
1154         * configure: Rebuild.
1155         * configure.tgt: Delete boilerplate from libgomp for unsupported
1156         targets.  Set UNSUPPORTED for unsupported targets.
1158 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1160         * configure.tgt: Handle i386 like i[456]86.
1161         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1162         take address.
1163         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1164         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1166 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1168         * method-wbetl.cc: Update copyright notice.
1169         * aatree.cc: Same.
1170         * util.cc: Same.
1171         * libitm.h: Same.
1172         * memset.cc: Same.
1173         * eh_cpp.cc: Same.
1174         * barrier.tpl: Same.
1175         * useraction.cc: Same.
1176         * stmlock.h: Same.
1177         * memcpy.cc: Same.
1178         * common.h: Same.
1179         * config/generic/tls.cc: Same.
1180         * config/generic/cacheline.h: Same.
1181         * config/generic/cachepage.h: Same.
1182         * config/generic/cacheline.cc: Same.
1183         * config/generic/unaligned.h: Same.
1184         * config/x86/cacheline.h: Same.
1185         * config/x86/cacheline.cc: Same.
1186         * config/x86/unaligned.h: Same.
1187         * config/alpha/cacheline.h: Same.
1188         * config/alpha/unaligned.h: Same.
1189         * config/alpha/sjlj.S: Same.
1190         * config/posix/cachepage.cc: Same.
1191         * config/linux/futex.h: Same.
1192         * config/linux/alpha/futex_bits.h: Same.
1194 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1196         * libitm.texi: No cover text and invariant sections.
1198 2011-11-03  Richard Henderson  <rth@redhat.com>
1200         * local_type_traits: New file.
1201         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1203 2011-11-03  Richard Henderson  <rth@redhat.com>
1205         * configure.ac: Don't test for gfortran.
1206         * configure: Rebuild.
1208         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1209         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1211 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1213         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1214         * testsuite/libitm.c/memset-1.c: Same.
1215         * testsuite/libitm.c/c.exp: Same.
1216         * testsuite/lib/libitm-dg.exp: Same.
1217         * testsuite/lib/libitm.exp: Same.
1218         * testsuite/libitm.c++/c++.exp: Same.
1220 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1222         * testsuite/config/default.exp: Update copyright date.
1223         * configure.ac: Add copyright info.
1224         * configure.tgt: Same.
1226 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1228         * testsuite/libitm.c/reentrant.c: XFAIL.
1229         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1231 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1233         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1234         handle aborts.
1235         (_ITM_abortTransaction): Handle aborts of outer transactions.
1236         * libitm_i.h: Same.
1237         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1238         * libitm.texi: Document aborts of outer transactions.
1239         * testsuite/libitm.c/cancel.c: New file.
1241 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1243         * testsuite/*: Change __transaction to __transaction_atomic or
1244         __transaction_relaxed.
1246 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1248         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1249         (gtm_thr): Same.
1251 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1253         * libitm_i.h: Add gl_wt dispatch.
1254         * retry.cc (parse_default_method): Same.
1255         * method-gl.cc: New file.
1256         * Makefile.am: Use method-gl.cc.
1257         * Makefile.in: Rebuild.
1259 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1261         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1262         safety if requested by a TM method.
1263         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1264         privatization safety.
1265         * method-serial.cc: Same.
1267 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1269         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1270         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1271         undolog-related member functions from *_local to *_undolog.
1272         * local.cc (gtm_thread::commit_undolog): Same.
1273         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1274         (GTM::gtm_thread::rollback): Roll back undolog before
1275         dispatch-specific rollback.
1277 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1279         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1280         re-initialization of the current method group.
1281         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1283 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1285         * alloc.cc (commit_allocations_2): Do not free transaction-local
1286         memory when committing a nested transaction.
1288 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1290         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1291         serial-irrevocable dispatch, not serial.
1293 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1295         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1296         declarations.
1297         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1298         * method-serial.cc: Implement begin_or_restart().
1299         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1300         dispatch-specific begin_or_restart().
1301         (GTM::gtm_thread::restart): Same.
1303 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1305         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1306         restarting without switching to serial mode.
1307         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1308         transaction state. Choose closed-nesting alternative if available.
1309         (GTM::gtm_thread::set_default_dispatch): New.
1310         (parse_default_method): New.
1311         (GTM::gtm_thread::number_of_threads_changed): New.
1312         * method-serial.cc (GTM::serial_mg): New method group class.
1313         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1314         fini.
1315         (GTM::serial_dispatch): Same.
1316         (GTM::serialirr_onwrite_dispatch): Same.
1317         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1318         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1319         registered threads.
1320         (GTM::gtm_thread::gtm_thread): Same.
1321         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1322         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1323         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1324         choose dispatch but set state according to dispatch here.
1325         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1326         (GTM::method_group): New class.
1327         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1328         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1329         * libitm.texi: Document TM methods, method groups, method life cycle.
1330         Rename method sets to method groups.
1332 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1334         * config/x86/tls.h: Moved to ...
1335         * config/linux/x86/tls.h: ... here.
1337 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1339         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1340         Add X32 support.
1341         * config/x86/sjlj.S: Same.
1343 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1345         * config/linux/rwlock.h: New file.
1346         * config/linux/rwlock.c: New file.
1347         * configure.ac: Reenable futex support (undo SVN rev 157758).
1348         * Makefile.am: Same.
1349         * configure.tgt: Same.
1350         * config/linux/alpha/futex_bits.h: Same.
1351         * config/linux/futex.h: Same. Return number of woken processes.
1352         * config/linux/futex.cc: Same.
1353         (futex_wait): Remove spinning.
1354         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1355         Use __x86_64__ instead of __LP64__.
1356         * aclocal.m4: Include generic futex checks.
1357         * configure: Rebuild.
1358         * Makefile.in: Rebuild.
1359         * testsuite/Makefile.in: Rebuild.
1360         * beginend.cc: Include pthread.h.
1361         * config/posix/cachepage.cc: Same.
1363 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1365         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1366         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1367         (set_gtm_thr): New.
1368         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1369         (set_gtm_thr): New.
1370         (GTM::gtm_thread::thread_num): Removed.
1371         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1372         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1373         tx-to-thread renaming.
1374         * beginend.cc: Adapted to tx-to-thread renaming.
1375         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1376         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1377         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1378         gtm_transaction to gtm_thread.
1379         (_ITM_getThreadnum): Removed. Not supported anymore.
1380         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1381         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1382         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1383         gtm_tx-to-gtm_thr renaming if necessary.
1384         * eh_cpp.cc: Same.
1385         * local.cc: Same.
1386         * retry.cc: Same.
1387         * clone.cc: Same.
1388         * alloc.cc: Same.
1389         * alloc_c.cc: Same.
1390         * alloc_cpp.cc: Same.
1391         * method-serial.cc: Same.
1392         * config/generic/tls.cc: Same.
1393         * config/posix/rwlock.h (gtm_rwlock): Same.
1394         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1396 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1398         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1399         implementation.
1400         (gtm_rwlock::read_unlock): Same.
1401         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1402         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1403         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1404         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1405         w_upgrade. Replaced by per-transaction flags (in shared_state).
1406         Added c_confirmed_writers.
1407         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1408         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1409         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1410         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1411         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1412         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1413         * libitm.texi: Document locking conventions and implementations in
1414         libitm.
1416 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1418         * libitm_i.h (next_tx): Add list of all threads' transaction.
1419         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1420         transaction with list of transactions and ...
1421         (thread_exit_handler): ... deregister here.
1422         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1423         * config/x86/target.h: Same.
1425 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1427         * testsuite/libitm.c++/static_ctor.C: New file.
1429 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1431         * testsuite/libitm.c/reentrant.c: New file.
1433 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1435         * config/generic/tls.h: Remove the free list for transactions and ...
1436         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1437         (GTM::gtm_transaction::operator delete): ... and release here.
1438         (thread_exit_handler): New. Delete tx when thread terminates.
1439         (thread_exit_init): New.
1440         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1441         * testsuite/libitm.c/txrelease.c: New file.
1443 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1445         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1446         * testsuite/libitm.c/notx.c: New file.
1448 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1450         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1451         * libitm_i.h (local_tid): ... to here.
1452         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1453         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1455 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1457         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1458         serialirr_onwrite_dispatch as new default for now.
1459         * method-serial.cc (serialirr_onwrite_dispatch): New.
1460         (GTM::dispatch_serialirr_onwrite): New.
1461         * libitm_i.h: Same.
1463 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1465         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1466         * query.cc (_ITM_getTransactionId): There is no active transaction if
1467         the current nesting level is zero.
1469 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1471         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1472         rollback.
1474 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1476         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1477         transaction properties from the caller instead of from the
1478         transaction object.
1479         * libitm_i.h: Same.
1480         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1482 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1484         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1485         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1486         * dispatch.h: Same.
1487         * method-serial.cc: Same.
1488         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1489         flat nesting as default, and closed nesting on demand.
1490         (GTM::gtm_transaction::rollback): Same.
1491         (_ITM_abortTransaction): Same.
1492         (GTM::gtm_transaction::restart): Same.
1493         (GTM::gtm_transaction::trycommit): Same.
1494         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1495         (choose_code_path): New.
1496         (GTM::gtm_transaction_cp::save): New.
1497         (GTM::gtm_transaction_cp::commit): New.
1498         * query.cc (_ITM_inTransaction): Support flat nesting.
1499         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1500         (GTM::gtm_transaction): Support flat and closed nesting.
1501         * alloc.cc (commit_allocations_2): New.
1502         (commit_cb_data): New helper struct.
1503         (GTM::gtm_transaction::commit_allocations): Handle nested
1504         commits/rollbacks.
1505         * libitm.texi: Update user action section, add description of nesting.
1507 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1509         * libitm_i.h: Add closed nesting as restart reason.
1510         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1512 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1514         * useraction.cc: Use vector instead of list to store actions.
1515         Also support partial rollbacks for closed nesting.
1516         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1517         * beginend.cc: Same.
1519 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1521         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1522         closed_nesting flags, as well as a closed nesting alternative.
1523         * method-serial.cc: Same.
1524         (serial_dispatch): Renamed to serialirr_dispatch.
1525         (GTM::dispatch_serialirr): Same.
1526         (serial_dispatch_ul): Renamed to serial_dispatch.
1527         (GTM::dispatch_serial): Same.
1529 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1531         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1533 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1535         * aatree.h (aa_tree::remove): New.
1536         (aa_tree::operator new): Add placement new.
1538 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1540         * containers.h: New file.
1541         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1542         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1543         * common.h: ... to here.
1544         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1545         * local.cc: Same.
1547 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1549         * libitm_i.h (STATE_ABORTING): Remove.
1550         * beginend.cc (_ITM_abortTransaction): Same.
1551         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1552         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1553         (_ITM_rollbackTransaction): Remove.
1554         * beginend.cc: Same.
1555         * libitm.map: Same.
1556         * libitm.texi: Document these ABI changes.
1558 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1560         * libitm.texi: New file.
1561         * Makefile.am: Add libitm.texi.
1562         * Makefile.in: Rebuild.
1564 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1566         * libitm_i.h: Move parts to common.h and dispatch.h.
1567         * common.h: New file.
1568         * dispatch.h: New file, new dispatch class.
1569         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1570         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1571         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1572         decision to retry.cc.
1573         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1574         only.
1575         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1576         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1577         logging.
1578         * barrier.cc: Use new barriers definitions.
1579         (abi_dispatch::memmove_overlap_check): New.
1580         * config/x86/x86_sse.cc: Same.
1581         * config/x86/x86_avx.cc: Same.
1582         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1583         memcpy.cc.
1584         * Makefile.in: Rebuild.
1585         * method-readonly.cc: Remove.
1586         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1587         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1589 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1591         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1592         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1593         * testsuite/libitm.c/dropref-2.c: Same.
1594         * testsuite/libitm.c/dropref.c: Same.
1596 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1598         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1599         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1600         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1601         * alloc_c.cc: Same.
1602         * barrier.tpl: Same.
1603         * beginend.c: Same.
1604         * config/generic/tls.h: Same.
1605         * config/x86/tls.h: Same.
1606         * libitm_i.h: Same.
1607         * memcpy.cc: Same.
1608         * memset.cc: Same.
1609         * method-readonly.cc: Same.
1610         * method-serial.cc: Same.
1611         * method-wbetl.cc: Same.
1612         * retry.cc: Same.
1614 2011-03-03  Richard Henderson  <rth@redhat.com>
1616         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1617         From Patrik Marlier <patrick.marlier@unine.ch>.
1619 2011-02-03  Richard Henderson  <rth@redhat.com>
1621         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1622         * configure.ac: Use it.
1623         * configure, config.h.in: Rebuild.
1624         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1625         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1626         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1627         * libitm.map: Use wildcards to match size_t mangling.
1629 2010-12-14  Richard Henderson  <rth@redhat.com>
1631         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1632         blocks of TIDs per thread.
1633         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1634         (setup_gtm_thr): Return the thread structure.
1635         * config/x86/tls.h (setup_gtm_thr): Likewise.
1637 2010-12-14  Richard Henderson  <rth@redhat.com>
1639         * clone.cc (table_lock): Remove.
1640         (find_clone): Don't take it.
1641         (ExcludeTransaction): New helper class.
1642         (_ITM_registerTMCloneTable): Use it.
1643         (_ITM_deregisterTMCloneTable): Likewise.
1645 2010-12-14  Richard Henderson  <rth@redhat.com>
1647         * config/x86/tls.h: New file.
1649 2010-07-15  Richard Henderson  <rth@redhat.com>
1651         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1652         * Makefile.in: Rebuild.
1654 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1656         * method-wbetl.cc (trydropreference): Fix source line.
1658 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1660         * libitm.h: Add comment.
1661         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1663 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1665         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1666         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1667         available, use pthread mutexes.
1668         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1669         * config.h.in: Regenerate.
1670         * configure: Regenerate.
1672 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1674         * libitm.h (ITM_PURE): Define.
1675         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1677 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1679         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1680         (validate): Add comment.
1681         (trydropreference): New.
1682         * method-readonly.cc (class readonly_dispatch): Add
1683         trydropreference.
1684         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1685         Call trydropreference().
1686         * libitm.h (_ITM_dropReferences): Remove const attribute.
1687         * method-serial.cc (class serial_dispatch): Add trydropreference.
1688         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1690 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1692         * memcpy.cc (do_memcpy): Comment.
1694 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1696         * barrier.tpl: Add comments throughout.
1698 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1700         * method-wbetl.cc (struct w_entry): Add comments.
1701         (trycommit): Same.
1702         (rollback): Same.
1704 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1706         * alloc_c.cc (_ITM_dropReferences): New.
1707         * libitm.map (_ITM_dropReferences): Add.
1708         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1709         * libitm_i.h (struct gtm_transaction): Declare
1710         drop_references_allocations and drop_references_local.
1711         * local.cc (rollback_local): Ignore memory when applicable.
1712         (drop_references_local): New.
1714 2010-06-23  Richard Henderson  <rth@redhat.com>
1716         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1717         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1718         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1719         * config/alpha/target.h: Likewise.
1720         * config/generic/tls.cc (gtm_mask_stack): Use it.
1722 2010-06-23  Richard Henderson  <rth@redhat.com>
1724         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1725         a mutex instead of trying a lock-free compare-and-swap on the list.
1726         (gtm_cacheline_page::operator delete): Likewise.
1728 2010-06-16  Richard Henderson  <rth@redhat.com>
1730         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1731         that overlap the libitm stack.
1732         * barrier.tpl: Mark incoming stack.
1733         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1734         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1735         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1736         * memcpy.cc, memset.cc: Likewise.
1737         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1738         * config/generic/tls.h (gtm_thread): Add stack_top member.
1739         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1740         * libitm_i.h (gtm_mask_stack): Declare.
1741         * config/generic/tls.cc: New file.
1742         * Makefile.am (libitm_la_SOURCES): Add it.
1743         (AM_CXXFLAGS): Turn off exceptions.
1744         * Makefile.in: Rebuild.
1746 2010-06-16  Richard Henderson  <rth@redhat.com>
1748         * alloc.cc (struct gtm_alloc_action): Move definition ...
1749         * libitm_i.h: ... here.
1750         (class gtm_transaction): Declare new and delete.
1751         * beginend.cc (alloc_tx): Reformulate as operator new.
1752         (free_tx): Reformulate as operator delete.
1753         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1755 2010-06-11  Richard Henderson  <rth@redhat.com>
1757         * clone.cc (clone_entry_compare): Fix typo.
1758         From Patrik Marlier <patrick.marlier@unine.ch>.
1760 2010-05-13  Richard Henderson  <rth@redhat.com>
1762         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1763         in extern "C".
1765 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1767         * libitm_i.h (struct gtm_transaction): Remove
1768         get_allocation_size.
1769         (record_allocation): Remove size parameter.
1770         * libitm.map (_ITM_realloc): Remove.
1771         * alloc_c.cc (_ITM_realloc): Remove.
1772         (_ITM_malloc): Remove size argument to record_allocation.
1773         (_ITM_calloc): Same.
1774         * alloc_cpp.cc (_ZGTtnwm): Same.
1775         (_ZGTtnwmRKSt9nothrow_t): Same.
1776         (_ZGTtnam): Same.
1777         (_ZGTtnamRKSt9nothrow_t): Same.
1778         * alloc.cc (struct gtm_alloc_action): Remove size.
1779         (get_allocation_size): Remove.
1780         (commit_allocations): Add comment.
1781         (record_allocation): Remove size parameter.
1782         (forget_allocation): Remove set of size.
1784 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1786         * Makefile.am (abi_version): New.
1787         (AM_CXXFLAGS): Pass abi_version.
1788         * Makefile.in: Regenerate.
1789         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1791 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1793         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1794         _ITM_getTMCloneOrIrrevokable.
1795         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1796         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1798 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1800         * configure.ac: Remove Linux futex support.
1801         * configure.tgt (config_path): Same.
1802         * Makefile.am: Same.
1803         * config/linux: Remove entire directory.
1804         * configure: Rebuild.
1805         * Makefile.in: Rebuild.
1806         * testsuite/Makefile.in: Rebuild.
1808 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1810         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1811         switching to serial mode.
1812         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1814 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1816         * configure.tgt: Add emacs -*- tags.
1817         * barrier.tpl: Same.
1819 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1821         * Makefile.am: Rename serial.cc to method-serial.cc.
1822         * Makefile.in: Regenerate with automake 1.11.1.
1823         * testsuite/Makefile.in: Same.
1824         * aclocal.m4: Regenerate with aclocal 1.11.1.
1825         * method-serial.cc: Rename from serial.cc.
1826         * libitm_i.h (struct gtm_transaction): Update comment on
1827         serialirr_mode.
1829 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1831         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1832         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1834 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1836         * configure: Rebuild.
1838 2009-11-12  Richard Henderson  <rth@redhat.com>
1840         * Rewrite everything in C++.
1842 2009-11-03  Richard Henderson  <rth@redhat.com>
1844         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1845         * Makefile.am (libitm_la_SOURCES): Add them.
1846         * configure.ac (ARCH_X86): New conditional.
1847         * Makefile.in, configure: Rebuild.
1848         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1849         Move futex setup into "other system configury" case.
1850         * local.c (rollback_local): Merge into ...
1851         (GTM_rollback_local): ... here.
1852         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1853         (_ITM_LB): Define as an alias to GTM_LB.
1855 2009-11-03  Richard Henderson  <rth@redhat.com>
1857         * method-readonly.c: New file.
1858         * Makefile.am (libitm_la_SOURCES): Add it.
1859         * Makefile.in: Rebuild.
1860         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1861         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1862         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1863         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1864         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1865         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1866         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1867         gtm_get_clock, gtm_inc_clock): New.
1868         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1869         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1870         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1871         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1872         replace uses with new libitm_i.h symbols.
1873         (dispatch_wbetl): Rename from wbetl_dispatch.
1874         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1875         away from dispatch_readonly; abort if the beginTransaction call
1876         asserted that the transaction was readonly.
1878 2009-11-03  Richard Henderson  <rth@redhat.com>
1880         * memset.c: New file.
1881         * Makefile.am (libitm_la_SOURCES): Add it.
1882         * Makefile.in: Rebuild.
1883         * testsuite/libitm.c/memset-1.c: New.
1885 2009-11-03  Richard Henderson  <rth@redhat.com>
1887         * dispatch.c: Remove file.
1888         * useraction.c (struct gtm_user_action): Move from libitm.h.
1889         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1890         (serial_memset, serial_memmove, serial_memcpy): Remove.
1891         (serial_W*, serial_R*): Remove.
1892         (serial_dispatch): Update to match.
1893         * configure.ac: Move Werror down below configure checks.  Don't
1894         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1895         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1896         Use GCC_AC_FUNC_MMAP_BLACKLIST
1897         * libitm.h: Split out all internal items to...
1898         * libitm_i.h: ... here.  New file.
1899         * copymask.c: New file.
1900         * local.c (struct gtm_local_undo): Move from libitm.h.
1901         (GTM_alloc_local): Rename from alloc_local; export.
1902         * memcpy.c: New file.
1903         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1904         * config/posix/page.c: New file.
1905         * config/posix/target_tls.h: Remove file.
1906         * barrier.c: New file.
1907         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1908         copymask.c, page.c.
1909         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1910         * method-wbetl.c: Rewrite for new cacheline methods.
1911         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1913         * config/alpha/sjlj.S: Fix typo.
1914         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1915         * config/alpha/copymask.c: New file.
1916         * config/alpha/target.h (CACHELINE_SIZE): New.
1917         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1919         * config/x86/target_i.h: Copy functions from x86/target.h.
1920         * config/x86/copymask.c: New file.
1921         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1922         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1923         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1924         * config/x86/target_tls.h: Move contents to target_i.h.
1926         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1927         * testsuite/libitm.c/memcpy-1.c: New.
1929 2009-10-22  Richard Henderson  <rth@redhat.com>
1931         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1932         (AM_CCASFLAGS): New.
1933         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1934         saving/restoring _AC_ARG_VAR_PRECIOUS.
1935         * Makefile.in, aclocal.m4, config.h.in, configure,
1936         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1938 2009-10-22  Richard Henderson  <rth@redhat.com>
1940         * testsuite/*: Update for new compiler syntax.
1942 2009-10-21  Richard Henderson  <rth@redhat.com>
1944         * libitm.h (_ITM_abortReason): Add outerAbort.
1946 2009-08-03  Richard Henderson  <rth@redhat.com>
1948         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1949         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1950         * method-wbetl.c (struct w_entry): Remove mask.
1951         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1952         adjust all callers.
1954 2009-07-22  Richard Henderson  <rth@redhat.com>
1956         * eh_cpp.c: New file.
1957         * Makefile.am (libitm_la_SOURCES): Add it.
1958         * Makefile.in: Rebuild.
1959         * beginend.c (GTM_rollback_transaction): Undo exception state.
1960         (GTM_trycommit_transaction): Mark inline.
1961         (GTM_trycommit_and_finalize_transaction): Split out from ...
1962         (_ITM_commitTransaction): ... here.
1963         (_ITM_commitTransactionEH): New function.
1964         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1965         cxa_unthrown, eh_in_flight; reorder.
1967         * testsuite/libitm.c++/c++.exp: New.
1968         * testsuite/libitm.c++/eh-1.C: New.
1970         * aatree.c (aa_free): Remove REGPARM.
1971         * aatree.h: Remove all REGPARM.
1973 2009-07-18  Richard Henderson  <rth@redhat.com>
1975         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1976         * Makefile.am (libitm_la_SOURCES): Add them.
1977         * Makefile.in: Rebuild.
1978         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1979         (GTM_trycommit_transaction): Likewise.
1980         * libitm.h: Include aatree.h
1981         (struct gtm_alloc_action): New.
1982         (struct gtm_transaction): Add alloc_actions.
1983         (GTM_record_allocation, GTM_forget_allocation): Declare.
1984         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1985         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1986         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1987         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1988         _ZGTtdaPvRKSt9nothrow_t): Export.
1990 2009-07-18  Richard Henderson  <rth@redhat.com>
1992         * target_tls.h: Move ...
1993         * config/posix/target_tls.h: ... here.
1995 2009-07-07  Richard Henderson  <rth@redhat.com>
1997         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1999 2009-07-07  Richard Henderson  <rth@redhat.com>
2001         * Update to GPL3.
2003 2009-07-07  Richard Henderson  <rth@redhat.com>
2005         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2006         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2008         * configure.tgt: Don't use -ftls-model for x86 linux.
2009         * libitm.h: Include target.h after standard includes.
2010         (_gtm_thr): Rename from gtm_thr.
2011         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2012         (gtm_disp, set_gtm_disp): New.
2013         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2014         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2015         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2017 2009-07-07  Richard Henderson  <rth@redhat.com>
2019         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2021 2009-07-06  Richard Henderson  <rth@redhat.com>
2023         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2024         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2025         (_ITM_beginTransaction): Take variadic arguments.
2026         (_ITM_registerThrownObject): Declare.
2027         * beginend.c, serial.c: Update.
2028         * libitm.map: Add _ITM_registerThrownObject.
2030 2009-01-28  Richard Henderson  <rth@redhat.com>
2032         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2033         * Makefile.in: Rebuild.
2034         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2035         (GTM_restart_transaction): Fix uninstrumented code check.
2036         * retry.c (GTM_decide_retry_strategy): Add serial check.
2037         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2038         automatically go irrevokable when in serial mode.
2039         * clone.c: New file.
2040         * libitm.h, libitm.map: Update.
2042 2009-01-27  Richard Henderson  <rth@redhat.com>
2044         * Makefile.am (LTCCASCOMPILE): Define.
2045         (libitm_la_SOURCES): Add methid-wbetl.c.
2046         * testsuite/Makefile.am: New
2047         * configure.ac: Add testsuite/Makefile.
2048         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2049         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2050         (_ITM_abortTransaction): Finalize implementation method; pass
2051         transaction properties to longjmp.
2052         (GTM_restart_transaction): Split out from ...
2053         (_ITM_commitTransaction): ... here.
2054         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2055         Move to config/x86/target.h.
2056         * config/linux/alpha/futex_bits.h: New.
2057         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2058         * config/x86/target.h: Disable target types for 32-bit.
2059         * config/alpha/sjlj.S, config/alpha/target.h: New.
2060         * libitm.h (struct gtm_dispatch): Add init, fini.
2061         (enum restart_reason): New.
2062         (struct gtm_transaction): Add method and restarts.
2063         * retry.c (GTM_decide_retry_strategy): Implement.
2064         * serial.c (serial_init, serial_fini): New.
2065         (GTM_serialmode): Finialize outgoing method.
2066         * method-wbetl.c: New.
2068 2008-12-09  Richard Henderson  <rth@redhat.com>
2070         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2071         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2072         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2073         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2074         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2075         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2076         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2077         * serial.c (serial_R##T, serial_W##T): Likewise.
2079 2008-11-21  Richard Henderson  <rth@redhat.com>
2081         * Initial commit.
2083 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2085 Copying and distribution of this file, with or without modification,
2086 are permitted in any medium without royalty provided the copyright
2087 notice and this notice are preserved.