PR c++/84961
[official-gcc.git] / libitm / ChangeLog
blobc5ca3875fa5da8aa83ba2c97cda2844243730e2a
1 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3         PR target/84148
4         * configure: Regenerate.
6 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
8         Update copyright years.
10         * libitm.texi: Bump @copying's copyright year.
12 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
14         * Makefile.in: Regenerate.
15         * acinclude.m4: Add enable.m4 and cet.m4.
16         * config/x86/sjlj.S: Include cet.h.
17         (_ITM_beginTransaction): Add _CET_ENDBR.
18         Save Shadow Stack pointer.
19         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
20         * config/x86/target.h (struct gtm_jmpbuf):
21         Add new field for Shadow Stack pointer.
22         * configure: Regenerate.
23         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
24         * configure.ac: Update libtool_VERSION for x86.
25         * testsuite/Makefile.in: Regenerate.
27 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
29         * libitm/config/x86/target.h: Add new field (ssp).
30         * libitm/config/x86/sjlj.S: Change offsets.
32 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34         * testsuite/lib/libitm.exp: Load scanlang.exp.
36 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
38         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
40 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
42         PR other/79046
43         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
44         of cat to get version from BASE-VER file.
45         * testsuite/Makefile.in: Regenerated.
47 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
49         * config/x86/target.h (htm_available): Determine vendor from
50         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
52 2017-01-18  Torvald Riegel  <triegel@redhat.com>
54         * config/x86/target.h (htm_available): Add check for some processors
55         on which TSX is broken.
57 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
59         PR other/79046
60         * configure.ac: Add GCC_BASE_VER.
61         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
62         get version from BASE-VER file.
63         * testsuite/Makefile.in: Regenerated.
64         * configure: Regenerated.
65         * Makefile.in: Regenerated.
67 2017-01-04  Alan Modra  <amodra@gmail.com>
69         * Makefile.in: Regenerate.
70         * testsuite/Makefile.in: Regenerate.
72 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
74         Update copyright years.
76         * libitm.texi: Bump @copying's copyright year.
78 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
80         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
81         * aclocal.m4: Regenerate.
82         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
83         LIBITM_CHECK_LINKER_HWCAP.
85 2016-11-15  Matthias Klose  <doko@ubuntu.com>
87         * configure: Regenerate.
89 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
91         PR libitm/70456
92         * util.cc (xmalloc): Use posix_memalign to allocate memory on
93         on cache line if requested.
95 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
97         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
98         function attribute to disable floating point in begin_transaction() on
99         S/390.
100         * beginend.cc (begin_transaction): Use
101         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
103 2016-01-22  Torvald Riegel  <triegel@redhat.com>
105         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
106         boundary.
107         (htm_fastpath): Remove.
108         (gtm_thread::begin_transaction): Fix HTM fastpath.
109         (_ITM_commitTransaction): Adapt.
110         (_ITM_commitTransactionEH): Adapt.
111         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
112         and accessors.
113         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
114         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
115         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
116         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
117         * libitm/method-serial.cc (htm_mg): Adapt.
118         (gtm_thread::serialirr_mode): Adapt.
119         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
121 2016-01-21  Torvald Riegel  <triegel@redhat.com>
123         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
124         or AIX.
126 2016-01-19  Richard Henderson  <rth@redhat.com>
128         PR bootstrap/69343
129         PR bootstrap/69339
130         Revert:
131         2016-01-13  Richard Henderson  <rth@redhat.com>
133         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
134         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
135         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
136         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
137         * configure.ac (ARCH_AARCH64): New conditional.
138         (ARCH_PPC, ARCH_S390): Likewise.
139         * Makefile.in, configure: Rebuild.
141         * libitm.h (_ITM_TYPE_M128): Always define.
142         * vect64.cc: Split ...
143         * vect128.cc: ... out of...
144         * config/x86/x86_sse.cc: ... here.
145         * config/arm/neon.cc: New file.
147 2016-01-19  Torvald Riegel  <triegel@redhat.com>
149         * local_type_traits: Remove file.
150         * libitm_i.h: Don't include it anymore.
151         (sized_integral): Remove.
153 2016-01-16  Torvald Riegel  <triegel@redhat.com>
155         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
156         safety.
157         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
158         * libitm/testsuite/libitm.c/priv-1.c: New.
160 2015-01-15  Torvald Riegel  <triegel@redhat.com>
162         testsuite/libitm.c++/libstdc++-safeexc.C: New.
164 2016-01-13  Torvald Riegel  <triegel@redhat.com>
166         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
167         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
168         (gtm_rwlock::write_unlock): Likewise.
170 2016-01-13  Richard Henderson  <rth@redhat.com>
172         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
173         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
174         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
175         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
176         * configure.ac (ARCH_AARCH64): New conditional.
177         (ARCH_PPC, ARCH_S390): Likewise.
178         * Makefile.in, configure: Rebuild.
180         * libitm.h (_ITM_TYPE_M128): Always define.
181         * vect64.cc: Split ...
182         * vect128.cc: ... out of...
183         * config/x86/x86_sse.cc: ... here.
184         * config/arm/neon.cc: New file.
186 2016-01-13  Torvald Riegel  <triegel@redhat.com>
188         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
189         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
190         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
191         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
192         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
193         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
194         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
195         (serialirr_dispatch::snapshot_most_recent): New.
196         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
198 2016-01-12  Torvald Riegel  <triegel@redhat.com>
200         * libitm_i.h (gtm_mask_stack): Remove.
201         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
202         * stmlock.h: Remove file.
203         * config/alpha/cacheline.h: Likewise.
204         * config/generic/cacheline.h: Likewise.
205         * config/powerpc/cacheline.h: Likewise.
206         * config/sparc/cacheline.h: Likewise.
207         * config/x86/cacheline.h: Likewise.
209 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
211         Update copyright years.
213         * libitm.texi: Bump @copying's copyright year.
215 2015-11-26  Torvald Riegel  <triegel@redhat.com>
217         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
218         (ml_wt_dispatch::pre_write): Adapt.
219         (ml_wt_dispatch::pre_load): Likewise.
221 2015-11-22  Torvald Riegel  <triegel@redhat.com>
223         * libitm_i.h (gtm_alloc_action): Remove union.
224         * testsuite/libitm.c/alloc-1.c: New.
226 2015-11-19  Torvald Riegel  <triegel@redhat.com>
228         * testsuite/libitm.c++/eh-5.C: New.
229         * libitm.h (_ITM_cxa_free_exception): New.
230         * libitm.map (_ITM_cxa_free_exception): Add it.
231         * libitm.texi: Update ABI docs.
232         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
233         (gtm_transaction_cp::cxa_uncaught_count): Add.
234         (gtm_thread::cxa_unthrown): Remove.
235         (gtm_thread::cxa_uncaught_count_ptr): Add.
236         (gtm_thread::cxa_uncaught_count): Add.
237         (gtm_thread::drop_references_allocations): Rename to...
238         (gtm_thread::discard_allocation): ... this and adapt.
239         (gtm_thread::init_cpp_exceptions): New.
240         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
241         (gtm_thread::begin_transaction): Likewise.
242         (gtm_transaction_cp::save): Likewise.
243         (gtm_thread::trycommit): Likewise.
244         * eh_cpp.cc: Add overview comments.
245         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
246         (free_any_exception, _ITM_cxa_free_exception): New.
247         (gtm_thread::init_cpp_exceptions): Define.
248         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
249         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
250         (gtm_thread::revert_cpp_exceptions): Likewise.
252 2015-11-09  Torvald Riegel  <triegel@redhat.com>
254         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
255         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
256         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
257         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
258         (gtm_thread::forget_allocations): New overload with size_t argument.
259         * alloc.c (gtm_thread::forget_allocation): Define new overload and
260         adapt existing one.
261         (gtm_thread::record_allocation): Adapt.
262         (gtm_thread::commit_allocations_1): Adapt.
263         (gtm_thread::commit_allocations_2): Adapt.
264         * testsuite/libitm.c++/newdelete.C: New.
266 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
267             Joseph Myers  <joseph@codesourcery.com>
268             Mark Shinwell  <shinwell@codesourcery.com>
269             Andrew Stubbs  <ams@codesourcery.com>
270             Rich Felker <dalias@libc.org>
272         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
273         GTM_begin_transaction for compatibility with FDPIC.
275 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
277         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
278         using load_gcc_lib.
280 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
282         PR libitm/61164
283         * local_atomic (__always_inline): Rename to...
284         (__libitm_always_inline): ... this.
286 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
288         PR target/52482
289         * config/powerpc/sjlj.S: Port to Xcode 2.5.
291 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
293         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
294         operands "op" and "val" to int.
296 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
298         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
299         "op" and "val" to int.
301 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
303         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
304         "op" and "val" to int.
306 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
308         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
309         Declare as static int.
310         (FUTEX_PRIVATE_FLAG): Remove L suffix.
311         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
313 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
315         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
316         sys_futex0 function.
318 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
320         * Makefile.in: Regenerated with automake-1.11.6.
321         * aclocal.m4: Likewise.
322         * configure: Likewise.
323         * testsuite/Makefile.in: Likewise.
325 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
327         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
328         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
330 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
332         PR libitm/64360
333         * libitm.c/stackundo.c (test2): Make it static.
334         (test1): Likewise.
336 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
338         Update copyright years.
340 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
342         * libitm.texi: Bump @copying's copyright year.
344 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
346         * testsuite/lib/libitm.exp: Load target-utils.exp.
347         Move load of target-supports.exp earlier.
349 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
351         * configure.tgt (x86_64): Tune -m32 multilib to generic.
353 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
355         PR bootstrap/63784
356         * configure: Regenerated.
358 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
360         PR target/63610
361         * configure: Regenerate.
363 2014-10-06  Marek Polacek  <polacek@redhat.com>
365         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
366         * testsuite/libitm.c/memset-1.c: Likewise.
368 2014-07-24  Richard Henderson  <rth@redhat.com>
370         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
371         addressing mode in epilogue.
373 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
375         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
376         -mclear-hwcap instead.
377         * configure: Regenerate.
378         * clearcap.map: Remove.
380 2014-05-21  John Marino  <gnugcc@marino.st>
382         * configure.tgt (*-*-dragonfly*): New target.
384 2014-05-19  Richard Henderson  <rth@redhat.com>
386         * config/aarch64/sjlj.S: New file.
387         * config/aarch64/target.h: New file.
388         * configure.tgt: Enable aarch64.
390 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
392         * config/generic/asmcfi.h: Also check for
393         __GCC_HAVE_DWARF2_CFI_ASM.
395 2013-04-02  Richard Henderson  <rth@redhat.com>
397         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
398         * config/arm/target.h, config/sh/target.h: Likewise.
399         * config/sparc/target.h, config/x86/target.h: Likewise.
401 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
403         * config/linux/futex_bits.h: Include errno.h.
404         (sys_futex0): If syscall returns -1, return -errno rather than
405         -1.
407 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
409         * libitm.texi (Index): Rename to Library Index.
411 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
413         PR libitm/53113
414         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
415         (x86_avx.lo): Append -mavx to CXXFLAGS.
416         * Makefile.in: Regenerate.
418 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
420         Update copyright years
422 2014-01-02  Tobias Burnus  <burnus@net-b.de>
424         * libitm.texi: Bump @copying's copyright year.
426 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
428         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
429         (FUNC): Define ELFv2 variant.
430         (END): Likewise.
431         (HIDDEN): Likewise.
432         (CALL): Likewise.
433         (BASE): Likewise.
434         (LR_SAVE): Likewise.
436 2013-09-20  Alan Modra  <amodra@gmail.com>
438         * configure: Regenerate.
440 2013-08-30  Torvald Riegel  <triegel@redhat.com>
442         * config/posix/rwlock.cc: Fix initialization order.
444 2013-08-30  Torvald Riegel  <triegel@redhat.com>
446         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
447         (htm_fastpath): Assign an asm name.
448         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
449         HTM fast paths.
450         (_ITM_actions): Likewise.
451         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
452         x86_64.
453         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
454         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
455         field to the start of the structure.
456         * config/linux/rwlock.h (gtm_rwlock): Update comments.
457         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
458         handling for custom HTM fast paths.
460 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
461         Revert:
462         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
464         * configure.tgt: Add -msoft-float to XCFLAGS.
466 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
468         * configure.tgt: Add -msoft-float to XCFLAGS.
470 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
472         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
473         (htm_transaction_active): Enable zEC12 instructions in the
474         assembler.
475         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
477 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
479         * acinclude.m4: Add htm asm check for s390.
480         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
481         * configure: Regenerate.
482         * config/s390/target.h: Remove __HTM__ check.
483         (htm_available): Call getauxval to get hwcaps and check whether
484         HTM is available or not.
486 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
488         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
489         * configure.ac: Use it.
490         (AC_CHECK_HEADERS): Check for sys/auxv.h.
491         (AC_CHECK_FUNCS): Check for getauxval.
492         * config.h.in, configure: Rebuild.
493         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
494         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
495         (USE_HTM_FASTPATH): Define.
496         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
497         _HTM_RETRIES) New macros.
498         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
499         htm_begin_success, htm_commit, htm_transaction_active): New functions.
501 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
503         * config/s390/target.h: Include htmintrin.h.
504         (_HTM_ITM_RETRIES): New macro definition.
505         (htm_available, htm_init, htm_begin, htm_begin_success)
506         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
508 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
509             Cesar Philippidis  <cesar@codesourcery.com>
511         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
512         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
513         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
514         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
516 2013-06-20  Torvald Riegel  <triegel@redhat.com>
518         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
519         (_ITM_getTransactionId): Same.
520         * config/x86/target.h (htm_transaction_active): New.
522 2013-06-20  Torvald Riegel  <triegel@redhat.com>
524         PR libitm/57643
525         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
526         the HTM fastpath.
528 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
530         PR bootstrap/56714
531         * local_atomic (__always_inline): Always define our version.
532         (__calculate_memory_order): Mark inline.
533         (atomic_thread_fence): Ditto.
534         (atomic_signal_fence): Ditto.
535         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
536         (atomic_bool::atomic_flag_clear_explicit): Ditto.
537         (atomic_bool::atomic_flag_test_and_set): Ditto.
538         (atomic_bool::atomic_flag_clear): Ditto.
540 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
542         * config/s390/sjlj.S: New file.
543         * config/s390/target.h: New file.
544         * configure.tgt: Set options for S/390.
546 2013-03-23  Andi Kleen  <ak@linux.intel.com>
548         * local_atomic (__always_inline): Add.
549         (__calculate_memory_order, atomic_thread_fence,
550          atomic_signal_fence, test_and_set, clear, store, load,
551          exchange, compare_exchange_weak, compare_exchange_strong,
552          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
553         Add __always_inline to force inlining.
555 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
556             Jack Howarth  <howarth@bromo.med.uc.edu>
557             Patrick Marlier  <patrick.marlier@gmail.com>
559         PR libitm/55693
560         * alloc_cpp.cc: Enable function declarations on darwin.
561         * eh_cpp.cc: Likewise.
563 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
565         Update copyright years.
567 2012-11-09  Torvald Riegel  <triegel@redhat.com>
569         * beginend.cc (htm_fastpath): New.
570         (gtm_thread::begin_transaction, _ITM_commitTransaction,
571         _ITM_commitTransactionEH): Add HTM fastpath handling.
572         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
573         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
574         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
575         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
576         * configure.tgt: Add -mrtm to XCFLAGS.
577         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
578         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
579         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
580         * retry.cc (parse_default_method): Add HTM method parsing.
581         (gtm_thread::number_of_threads_changed): Use HTM by default if
582         available.
584 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
586         * configure: Regenerate.
588 2012-10-31  Richard Henderson  <rth@redhat.com>
590         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
591         * configure.ac: Use it.
592         * config.h.in, configure: Rebuild.
593         * testsuite/Makefile.in: Rebuild.
595 2012-10-24  Torvald Riegel  <triegel@redhat.com>
597         * libitm.texi: Clarify ABI requirements for data-logging functions.
599 2012-10-24  Torvald Riegel  <triegel@redhat.com>
601         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
602         it requires serial mode instead of assuming that for certain
603         dispatchs.
604         * dispatch.h (abi_dispatch::requires_serial): New.
605         (abi_dispatch::abi_dispatch): Adapt.
606         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
607         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
608         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
609         serial_dispatch::serial_dispatch,
610         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
612 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
614         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
615         and ia32 declarations some more.
616         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
618 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
620         PR other/43620
621         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
622         * configure: Regenerate.
623         * Makefile.in: Regenerate.
625 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
627         * configure: Regenerated.
629 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
631         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
633 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
635         * eh_cpp.cc: Fix __cxa_end_catch declaration.
637 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
639         * configure: Regenerated.
641 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
643         PR libitm/52854
644         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
645         for x86-64.
647 2012-04-03  Tristan Gingold  <gingold@adacore.com>
649         * configure: Regenerate.
651 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
653         PR bootstrap/52812
654         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
656 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
658         * testsuite/lib/libitm.exp: load fortran-modules.exp
660 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
662         * configure.tgt (*-*-irix6*): Remove.
664 2012-03-13  Torvald Riegel  <triegel@redhat.com>
666         PR libitm/52526
667         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
668         wake-up.
670 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
672         * configure.tgt (*-*-osf*): Remove.
673         * configure: Regenerate.
675 2012-03-05  Torvald Riegel  <triegel@redhat.com>
677         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
678         memtransfer/memset if size isn't larger than zero.
680 2012-03-02  Torvald Riegel  <triegel@redhat.com>
682         * libitm.texi: Link to specification and add a usage example.
684 2012-02-24  Torvald Riegel  <triegel@redhat.com>
686         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
687         default dispatch for more than 1 thread to ml_wt.
689 2012-02-20  Torvald Riegel  <triegel@redhat.com>
691         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
693 2012-02-20  Torvald Riegel  <triegel@redhat.com>
695         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
697 2012-02-20  Torvald Riegel  <triegel@redhat.com>
699         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
700         serial mode corner cases made obsolete by prior gtm_rwlock changes.
701         (gl_wt_dispatch.rollback): Same.
703 2012-02-20  Torvald Riegel  <triegel@redhat.com>
705         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
707 2012-02-20  Torvald Riegel  <triegel@redhat.com>
709         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
710         for RfW src.  Optimize number of calls to gtm_thr.
712 2012-02-20  Torvald Riegel  <triegel@redhat.com>
714         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
715         acquisition to ...
716         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
717         (default_dispatch): Make atomic.
718         (GTM::gtm_thread::set_default_dispatch): Access atomically.
719         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
720         use decide_begin_dispatch() if default_dispatch might have changed.
721         (GTM::gtm_thread::number_of_threads_changed): Initialize
722         default_dispatch here.
724 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
725             Patrick Marlier  <patrick.marlier@gmail.com>
727         PR libitm/52220
728         * alloc_cpp.cc: No dummy definitions for darwin.
729         * eh_cpp.cc: Likewise.
731 2012-02-14  Richard Henderson  <rth@redhat.com>
733         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
735 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
737         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
739 2012-02-14  Torvald Riegel  <triegel@redhat.com>
741         * libitm_i.h (GTM::gtm_rwlog_entry): New.
742         (GTM::gtm_thread): Add read and write logs.
743         (GTM::dispatch_ml_wt): Declare.
744         * retry.cc (parse_default_method): Support ml_wt.
745         * method-ml.cc: New file.
746         * Makefile.am: Add method-ml.cc.
747         * Makefile.in: Regenerate.
749 2012-02-14  Torvald Riegel  <triegel@redhat.com>
751         * dispatch.h (GTM::abi_dispatch::supports): New.
752         (GTM::method_group::reinit): New.
753         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
754         (GTM::gtm_thread::number_of_threads_changed): Check that the method
755         supports the current situation.
757 2012-02-14  Torvald Riegel  <triegel@redhat.com>
759         * util.cc (GTM::xcalloc): New.
760         * common.h (GTM::xcalloc): Declare.
762 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
764         * config/sparc/target.h (cpu_relax): Read from CC register.
765         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
767 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
769         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
771 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
773         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
774         * config/sparc/cacheline.h: New file.
775         * config/sparc/target.h: Likewise.
776         * config/sparc/sjlj.S: Likewise.
777         * config/linux/sparc/futex_bits.h: Likewise.
779 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
781         * configure.ac (link_itm): Fix comment.
782         * configure: Regenerate.
783         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
785 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
787         PR libitm/51822
788         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
789         Correct libgomp references.
791 2012-01-24  Torvald Riegel  <triegel@redhat.com>
793         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
794         wake-up.
796 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
798         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
799         end of structure.
800         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
801         offset values.  Do not copy return address.  Decrement stack
802         by 56 bytes only.
803         (GTM_longjump) [__x86_64__]: Update offset values.
805 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
807         PR libitm/51830
808         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
809         the first function argument to %eax.
811 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
813         * libitm.h (_ITM_getThreadnum): Remove.
814         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
816 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
818         * clearcap.map: New file.
819         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
820         * configure.ac: Call it.
821         Clear HWCAP_LDFLAGS if defaulting to -mavx.
822         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
823         * configure: Regenerate.
824         * Makefile.in: Regenerate.
825         * testsuite/Makefile.in: Regenerate.
827 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
829         PR libitm/51173
830         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
831         include, exclude options.
833 2012-01-14  Torvald Riegel  <triegel@redhat.com>
835         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
836         rolling back.
837         * containers.h (GTM::vector::set_size): New.
839 2012-01-14  Torvald Riegel  <triegel@redhat.com>
841         PR libitm/51855
842         * config/generic/tls.h (GTM::mask_stack_top): New.
843         (GTM::mask_stack_bottom): Declare.
844         * config/generic/tls.c (GTM::mask_stack_bottom): New.
845         * local.cc (gtm_undolog::rollback): Filter out any updates that
846         overlap the libitm stack.  Add current transaction as parameter.
847         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
848         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
849         * testsuite/libitm.c/stackundo.c: New test.
851 2012-01-10  Richard Henderson  <rth@redhat.com>
853         * libitm_i.h (_Unwind_DeleteException): Declare weak.
854         * eh_cpp.cc (_Unwind_DeleteException): Define for
855         !HAVE_ELF_STYLE_WEAKREF.
857 2012-01-08  Torvald Riegel  <triegel@redhat.com>
859         * local.cc (GTM_LB): Use GTM::gtm_undolog.
860         (GTM::gtm_thread::drop_references_undolog): Remove.
861         (GTM::gtm_thread::commit_undolog,
862         GTM::gtm_thread::rollback_undolog): Move to ...
863         * libitm_i.h (GTM::gtm_undolog): ...here. New.
864         (GTM::gtm_undolog_entry): Remove.
865         (GTM::gtm_thread): Adapt.
866         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
867         (GTM::gtm_thread::trycommit): Adapt.
868         * method-serial.cc (serial_dispatch::log): Adapt.
869         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
870         (gl_wt_dispatch::store): Fix likely/unlikely.
871         * containers.h (GTM::vector::resize): Add additional_capacity
872         parameter and handle it.
873         (GTM::vector::resize_noinline): New/adapt.
874         (GTM::vector::push): New.
876 2012-01-06  Richard Henderson  <rth@redhat.com>
878         * configure.tgt: Support powerpc-linux and powerpc-darwin.
879         * config/linux/powerpc/futex_bits.h: New file.
880         * config/powerpc/cacheline.h: New file.
881         * config/powerpc/sjlj.S: New file.
882         * config/powerpc/target.h: New file.
883         * config/generic/asmcfi.h (cfi_offset): New.
884         (cfi_restore, cfi_undefined): New.
886 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
888         PR other/51171
889         * testsuite/libitm.c/reentrant.c: Remove xfail.
890         (thread): Pass x to pure().
891         From Patrik Marlier <patrick.marlier@gmail.com>.
893 2011-12-24  Torvald Riegel  <triegel@redhat.com>
895         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
896         privatization safety if already in serial mode.
898 2011-12-24  Torvald Riegel  <triegel@redhat.com>
900         * beginend.cc (GTM::gtm_thread::restart): Add and handle
901         finish_serial_upgrade parameter.
902         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
903         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
904         Don't unset reader flag.
905         (GTM::gtm_rwlock::write_upgrade_finish): New.
906         * config/posix/rwlock.cc: Same.
907         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
908         Declare.
909         * config/posix/rwlock.h: Same.
910         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
911         flag after commit or after rollback when restarting.
913 2011-12-24  Torvald Riegel  <triegel@redhat.com>
915         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
916         (GTM::gtm_thread::try_commit): Changed memory order.
917         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
918         as parameter.
919         * config/linux/x86/futex_bits.h (sys_futex0): Same.
920         * config/linux/sh/futex_bits.h (sys_futex0): Same.
921         * config/linux/futex_bits.h (sys_futex0): Same.
922         * config/linux/futex.cc (futex_wait, futex_wake): Same.
923         * config/linux/futex.h (futex_wait, futex_wake): Same.
924         * config/linux/rwlock.h (gtm_rwlock::writers,
925         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
926         ints.
927         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
928         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
929         gtm_rwlock::write_unlock): Fix memory orders and fences.
930         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
931         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
932         gtm_rwlock::write_unlock): Same.
933         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
934         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
935         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
936         Add comments.
937         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
938         gl_wt_dispatch::load, gl_wt_dispatch::store,
939         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
940         orders and fences.  Add comments.
942 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
944         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
945         * Makefile.in: Regenerated.
947 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
949         * configure.tgt: Add sh* case.
950         * config/sh/target.h: New file.
951         * config/sh/sjlj.S: New file.
952         * config/linux/sh/futex_bits.h: New file.
954 2011-12-14  Richard Henderson  <rth@redhat.com>
956         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
957         * config/arm/sjlj.S, config/arm/target.h: New files.
958         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
959         (cfi_rel_offset): New.
960         * config/linux/futex_bits.h: New file.
961         * config/linux/futex.cc: Include futex_bits.h here...
962         * config/linux/futex.h: ... not here.
963         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
964         * configure.ac (ARCH_AM): New conditional.
965         * Makefile.in, configure: Rebuild.
966         * configure.tgt: Handle ARM.
968 2011-12-13  Richard Henderson  <rth@redhat.com>
970         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
971         signed/unsigned comparison werror.
973         * local_atomic: New file.
974         * libitm_i.h: Include it.
975         (gtm_thread::shared_state): Use atomic template.
976         * beginend.cc (GTM::gtm_clock): Use atomic template.
977         (global_tid): Use atomic template if 64-bit atomics available.
978         (gtm_thread::gtm_thread): Update shared_state access.
979         (gtm_thread::trycommit): Likewise.
980         (choose_code_path): Update global_tid access.
981         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
982         * stmlock.h (GTM::gtm_clock): Use atomic template.
983         (gtm_get_clock, gtm_inc_clock): Update accesses.
984         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
985         redundant __sync_synchronize after atomic shared_state access.
986         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
987         (gtm_rwlock::write_lock_generic): Likewise.
988         (gtm_rwlock::read_unlock): Likewise.
989         * config/alpha/target.h (atomic_read_barrier): Remove.
990         (atomic_write_barrier): Remove.
991         * config/x86/target.h (atomic_read_barrier): Remove.
992         (atomic_write_barrier): Remove.
994 2011-11-30  Richard Henderson  <rth@redhat.com>
996         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
997         * beginend.c (_ITM_abortTransaction): Update to match.
998         (GTM::gtm_thread::restart): Likewise.
999         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1000         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1002 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1004         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1005         * Makefile.in: Regenerate.
1007 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1009         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1010         * alloc_cpp.cc: Generate dummy functions if we don't
1011         HAVE_ELF_STYLE_WEAKREF.
1012         * eh_cpp.cc: Likewise.
1013         * configure: Regenerate.
1014         * aclocal.m4:  Likewise.
1015         * config.h.in: Likewise.
1016         * Makefile.in: Likewise.
1017         * testsuite/Makefile.in: Likewise.
1019 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1021         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1022         __USER_LABEL_PREFIX__ for targets that use it.
1023         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1024         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1025         in portability to non-elf targets.
1026         (GTM_longjmp): Likewise.
1027         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1028         where required.
1030 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1032         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1033         * testsuite/libitm.c/memset-1.c: Likewise.
1035 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1037         * configure: Regenerate.
1039 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1041         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1042         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1043         * Makefile.am: Handle sun style versioning.
1044         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1045         * configure: Regenerate.
1046         * Makefile.in: Regenerate.
1048 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1050         * config/generic/asmcfi.h: Fix comment.
1051         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1052         sequence without .hidden support, error for non-ELF targets.
1053         (GTM_longjmp) [__ELF__]: Only use .hidden if
1054         HAVE_ATTRIBUTE_VISIBILITY.
1056 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1058         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1059         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1060         Dummy functions.
1061         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1062         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1064 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1066         PR bootstrap/51098
1067         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1068         * configure: Regenerate.
1070 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1072         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1074 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1076         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1077         .hidden.
1078         (.note.GNU-stack): Only use if __linux__.
1079         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1080         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1081         * testsuite/libitm.c/reentrant.c: Likewise.
1082         * testsuite/libitm.c/simple-2.c: Likewise.
1083         * testsuite/libitm.c/txrelease.c: Likewise.
1084         * testsuite/libitm.c++/static_ctor.C: Likewise.
1086 2011-11-10  Richard Henderson  <rth@redhat.com>
1088         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1089         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1090         * configure.ac (ARCH_X86_AVX): New conditional.
1091         * Makefile.in, configure: Rebuild.
1093 2011-11-09  Richard Henderson  <rth@redhat.com>
1095         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1096         * configure.ac: Use it.
1097         * config.h.in, configure: Rebuild.
1098         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1100 2011-11-09  Richard Henderson  <rth@redhat.com>
1102         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1103         * config/alpha/unaligned.h: Remove file.
1104         * config/generic/unaligned.h: Remove file.
1105         * config/x86/unaligned.h: Remove file.
1106         * config/generic/cachepage.h: Remove file.
1107         * config/posix/cachepage.cc: Remove file.
1108         * config/generic/cacheline.cc: Remove file.
1109         * config/x86/cacheline.cc: Remove file.
1110         * config/generic/cacheline.h (gtm_cacheline): Remove the
1111         store_mask, copy_mask, copy_mask_wb methods.
1112         * config/x86/cacheline.h: Likewise.
1113         * config/alpha/cacheline.h: Fall back to generic after setting size.
1114         * config/generic/tls.cc (gtm_mask_stack): Remove.
1115         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1116         (GTM_vpalignr_table): Remove.
1117         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1118         (GTM_pshift_table): Remove.
1119         * config/libitm_i.h: Don't include cachepage.h.
1120         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1121         * Makefile.in, testsuite/Makefile.in: Rebuild.
1123 2011-11-09  Richard Henderson  <rth@redhat.com>
1125         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1126         to emit branch prediction hint.
1128         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1129         Protect .note.GNU-stack with __linux__.
1131         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1132         * configure, aclocal.m4, config.h.in: Rebuild.
1133         * config/generic/asmcfi.h: New file.
1134         * config/x86/sjlj.S: Use it.
1136 2011-11-08  Richard Henderson  <rth@redhat.com>
1138         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1140 2011-11-08  Richard Henderson  <rth@redhat.com>
1142         * configure.tgt: Test correct directory for supported cpus.
1144         * configure.ac: Exit if unsupported.
1145         * configure: Rebuild.
1146         * configure.tgt: Delete boilerplate from libgomp for unsupported
1147         targets.  Set UNSUPPORTED for unsupported targets.
1149 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1151         * configure.tgt: Handle i386 like i[456]86.
1152         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1153         take address.
1154         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1155         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1157 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1159         * method-wbetl.cc: Update copyright notice.
1160         * aatree.cc: Same.
1161         * util.cc: Same.
1162         * libitm.h: Same.
1163         * memset.cc: Same.
1164         * eh_cpp.cc: Same.
1165         * barrier.tpl: Same.
1166         * useraction.cc: Same.
1167         * stmlock.h: Same.
1168         * memcpy.cc: Same.
1169         * common.h: Same.
1170         * config/generic/tls.cc: Same.
1171         * config/generic/cacheline.h: Same.
1172         * config/generic/cachepage.h: Same.
1173         * config/generic/cacheline.cc: Same.
1174         * config/generic/unaligned.h: Same.
1175         * config/x86/cacheline.h: Same.
1176         * config/x86/cacheline.cc: Same.
1177         * config/x86/unaligned.h: Same.
1178         * config/alpha/cacheline.h: Same.
1179         * config/alpha/unaligned.h: Same.
1180         * config/alpha/sjlj.S: Same.
1181         * config/posix/cachepage.cc: Same.
1182         * config/linux/futex.h: Same.
1183         * config/linux/alpha/futex_bits.h: Same.
1185 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1187         * libitm.texi: No cover text and invariant sections.
1189 2011-11-03  Richard Henderson  <rth@redhat.com>
1191         * local_type_traits: New file.
1192         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1194 2011-11-03  Richard Henderson  <rth@redhat.com>
1196         * configure.ac: Don't test for gfortran.
1197         * configure: Rebuild.
1199         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1200         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1202 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1204         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1205         * testsuite/libitm.c/memset-1.c: Same.
1206         * testsuite/libitm.c/c.exp: Same.
1207         * testsuite/lib/libitm-dg.exp: Same.
1208         * testsuite/lib/libitm.exp: Same.
1209         * testsuite/libitm.c++/c++.exp: Same.
1211 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1213         * testsuite/config/default.exp: Update copyright date.
1214         * configure.ac: Add copyright info.
1215         * configure.tgt: Same.
1217 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1219         * testsuite/libitm.c/reentrant.c: XFAIL.
1220         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1222 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1224         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1225         handle aborts.
1226         (_ITM_abortTransaction): Handle aborts of outer transactions.
1227         * libitm_i.h: Same.
1228         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1229         * libitm.texi: Document aborts of outer transactions.
1230         * testsuite/libitm.c/cancel.c: New file.
1232 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1234         * testsuite/*: Change __transaction to __transaction_atomic or
1235         __transaction_relaxed.
1237 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1239         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1240         (gtm_thr): Same.
1242 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1244         * libitm_i.h: Add gl_wt dispatch.
1245         * retry.cc (parse_default_method): Same.
1246         * method-gl.cc: New file.
1247         * Makefile.am: Use method-gl.cc.
1248         * Makefile.in: Rebuild.
1250 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1252         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1253         safety if requested by a TM method.
1254         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1255         privatization safety.
1256         * method-serial.cc: Same.
1258 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1260         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1261         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1262         undolog-related member functions from *_local to *_undolog.
1263         * local.cc (gtm_thread::commit_undolog): Same.
1264         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1265         (GTM::gtm_thread::rollback): Roll back undolog before
1266         dispatch-specific rollback.
1268 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1270         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1271         re-initialization of the current method group.
1272         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1274 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1276         * alloc.cc (commit_allocations_2): Do not free transaction-local
1277         memory when committing a nested transaction.
1279 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1281         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1282         serial-irrevocable dispatch, not serial.
1284 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1286         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1287         declarations.
1288         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1289         * method-serial.cc: Implement begin_or_restart().
1290         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1291         dispatch-specific begin_or_restart().
1292         (GTM::gtm_thread::restart): Same.
1294 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1296         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1297         restarting without switching to serial mode.
1298         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1299         transaction state. Choose closed-nesting alternative if available.
1300         (GTM::gtm_thread::set_default_dispatch): New.
1301         (parse_default_method): New.
1302         (GTM::gtm_thread::number_of_threads_changed): New.
1303         * method-serial.cc (GTM::serial_mg): New method group class.
1304         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1305         fini.
1306         (GTM::serial_dispatch): Same.
1307         (GTM::serialirr_onwrite_dispatch): Same.
1308         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1309         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1310         registered threads.
1311         (GTM::gtm_thread::gtm_thread): Same.
1312         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1313         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1314         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1315         choose dispatch but set state according to dispatch here.
1316         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1317         (GTM::method_group): New class.
1318         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1319         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1320         * libitm.texi: Document TM methods, method groups, method life cycle.
1321         Rename method sets to method groups.
1323 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1325         * config/x86/tls.h: Moved to ...
1326         * config/linux/x86/tls.h: ... here.
1328 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1330         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1331         Add X32 support.
1332         * config/x86/sjlj.S: Same.
1334 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1336         * config/linux/rwlock.h: New file.
1337         * config/linux/rwlock.c: New file.
1338         * configure.ac: Reenable futex support (undo SVN rev 157758).
1339         * Makefile.am: Same.
1340         * configure.tgt: Same.
1341         * config/linux/alpha/futex_bits.h: Same.
1342         * config/linux/futex.h: Same. Return number of woken processes.
1343         * config/linux/futex.cc: Same.
1344         (futex_wait): Remove spinning.
1345         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1346         Use __x86_64__ instead of __LP64__.
1347         * aclocal.m4: Include generic futex checks.
1348         * configure: Rebuild.
1349         * Makefile.in: Rebuild.
1350         * testsuite/Makefile.in: Rebuild.
1351         * beginend.cc: Include pthread.h.
1352         * config/posix/cachepage.cc: Same.
1354 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1356         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1357         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1358         (set_gtm_thr): New.
1359         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1360         (set_gtm_thr): New.
1361         (GTM::gtm_thread::thread_num): Removed.
1362         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1363         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1364         tx-to-thread renaming.
1365         * beginend.cc: Adapted to tx-to-thread renaming.
1366         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1367         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1368         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1369         gtm_transaction to gtm_thread.
1370         (_ITM_getThreadnum): Removed. Not supported anymore.
1371         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1372         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1373         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1374         gtm_tx-to-gtm_thr renaming if necessary.
1375         * eh_cpp.cc: Same.
1376         * local.cc: Same.
1377         * retry.cc: Same.
1378         * clone.cc: Same.
1379         * alloc.cc: Same.
1380         * alloc_c.cc: Same.
1381         * alloc_cpp.cc: Same.
1382         * method-serial.cc: Same.
1383         * config/generic/tls.cc: Same.
1384         * config/posix/rwlock.h (gtm_rwlock): Same.
1385         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1387 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1389         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1390         implementation.
1391         (gtm_rwlock::read_unlock): Same.
1392         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1393         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1394         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1395         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1396         w_upgrade. Replaced by per-transaction flags (in shared_state).
1397         Added c_confirmed_writers.
1398         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1399         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1400         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1401         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1402         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1403         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1404         * libitm.texi: Document locking conventions and implementations in
1405         libitm.
1407 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1409         * libitm_i.h (next_tx): Add list of all threads' transaction.
1410         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1411         transaction with list of transactions and ...
1412         (thread_exit_handler): ... deregister here.
1413         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1414         * config/x86/target.h: Same.
1416 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1418         * testsuite/libitm.c++/static_ctor.C: New file.
1420 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1422         * testsuite/libitm.c/reentrant.c: New file.
1424 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1426         * config/generic/tls.h: Remove the free list for transactions and ...
1427         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1428         (GTM::gtm_transaction::operator delete): ... and release here.
1429         (thread_exit_handler): New. Delete tx when thread terminates.
1430         (thread_exit_init): New.
1431         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1432         * testsuite/libitm.c/txrelease.c: New file.
1434 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1436         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1437         * testsuite/libitm.c/notx.c: New file.
1439 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1441         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1442         * libitm_i.h (local_tid): ... to here.
1443         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1444         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1446 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1448         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1449         serialirr_onwrite_dispatch as new default for now.
1450         * method-serial.cc (serialirr_onwrite_dispatch): New.
1451         (GTM::dispatch_serialirr_onwrite): New.
1452         * libitm_i.h: Same.
1454 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1456         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1457         * query.cc (_ITM_getTransactionId): There is no active transaction if
1458         the current nesting level is zero.
1460 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1462         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1463         rollback.
1465 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1467         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1468         transaction properties from the caller instead of from the
1469         transaction object.
1470         * libitm_i.h: Same.
1471         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1473 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1475         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1476         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1477         * dispatch.h: Same.
1478         * method-serial.cc: Same.
1479         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1480         flat nesting as default, and closed nesting on demand.
1481         (GTM::gtm_transaction::rollback): Same.
1482         (_ITM_abortTransaction): Same.
1483         (GTM::gtm_transaction::restart): Same.
1484         (GTM::gtm_transaction::trycommit): Same.
1485         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1486         (choose_code_path): New.
1487         (GTM::gtm_transaction_cp::save): New.
1488         (GTM::gtm_transaction_cp::commit): New.
1489         * query.cc (_ITM_inTransaction): Support flat nesting.
1490         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1491         (GTM::gtm_transaction): Support flat and closed nesting.
1492         * alloc.cc (commit_allocations_2): New.
1493         (commit_cb_data): New helper struct.
1494         (GTM::gtm_transaction::commit_allocations): Handle nested
1495         commits/rollbacks.
1496         * libitm.texi: Update user action section, add description of nesting.
1498 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1500         * libitm_i.h: Add closed nesting as restart reason.
1501         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1503 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1505         * useraction.cc: Use vector instead of list to store actions.
1506         Also support partial rollbacks for closed nesting.
1507         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1508         * beginend.cc: Same.
1510 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1512         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1513         closed_nesting flags, as well as a closed nesting alternative.
1514         * method-serial.cc: Same.
1515         (serial_dispatch): Renamed to serialirr_dispatch.
1516         (GTM::dispatch_serialirr): Same.
1517         (serial_dispatch_ul): Renamed to serial_dispatch.
1518         (GTM::dispatch_serial): Same.
1520 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1522         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1524 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1526         * aatree.h (aa_tree::remove): New.
1527         (aa_tree::operator new): Add placement new.
1529 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1531         * containers.h: New file.
1532         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1533         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1534         * common.h: ... to here.
1535         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1536         * local.cc: Same.
1538 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1540         * libitm_i.h (STATE_ABORTING): Remove.
1541         * beginend.cc (_ITM_abortTransaction): Same.
1542         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1543         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1544         (_ITM_rollbackTransaction): Remove.
1545         * beginend.cc: Same.
1546         * libitm.map: Same.
1547         * libitm.texi: Document these ABI changes.
1549 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1551         * libitm.texi: New file.
1552         * Makefile.am: Add libitm.texi.
1553         * Makefile.in: Rebuild.
1555 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1557         * libitm_i.h: Move parts to common.h and dispatch.h.
1558         * common.h: New file.
1559         * dispatch.h: New file, new dispatch class.
1560         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1561         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1562         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1563         decision to retry.cc.
1564         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1565         only.
1566         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1567         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1568         logging.
1569         * barrier.cc: Use new barriers definitions.
1570         (abi_dispatch::memmove_overlap_check): New.
1571         * config/x86/x86_sse.cc: Same.
1572         * config/x86/x86_avx.cc: Same.
1573         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1574         memcpy.cc.
1575         * Makefile.in: Rebuild.
1576         * method-readonly.cc: Remove.
1577         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1578         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1580 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1582         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1583         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1584         * testsuite/libitm.c/dropref-2.c: Same.
1585         * testsuite/libitm.c/dropref.c: Same.
1587 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1589         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1590         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1591         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1592         * alloc_c.cc: Same.
1593         * barrier.tpl: Same.
1594         * beginend.c: Same.
1595         * config/generic/tls.h: Same.
1596         * config/x86/tls.h: Same.
1597         * libitm_i.h: Same.
1598         * memcpy.cc: Same.
1599         * memset.cc: Same.
1600         * method-readonly.cc: Same.
1601         * method-serial.cc: Same.
1602         * method-wbetl.cc: Same.
1603         * retry.cc: Same.
1605 2011-03-03  Richard Henderson  <rth@redhat.com>
1607         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1608         From Patrik Marlier <patrick.marlier@unine.ch>.
1610 2011-02-03  Richard Henderson  <rth@redhat.com>
1612         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1613         * configure.ac: Use it.
1614         * configure, config.h.in: Rebuild.
1615         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1616         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1617         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1618         * libitm.map: Use wildcards to match size_t mangling.
1620 2010-12-14  Richard Henderson  <rth@redhat.com>
1622         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1623         blocks of TIDs per thread.
1624         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1625         (setup_gtm_thr): Return the thread structure.
1626         * config/x86/tls.h (setup_gtm_thr): Likewise.
1628 2010-12-14  Richard Henderson  <rth@redhat.com>
1630         * clone.cc (table_lock): Remove.
1631         (find_clone): Don't take it.
1632         (ExcludeTransaction): New helper class.
1633         (_ITM_registerTMCloneTable): Use it.
1634         (_ITM_deregisterTMCloneTable): Likewise.
1636 2010-12-14  Richard Henderson  <rth@redhat.com>
1638         * config/x86/tls.h: New file.
1640 2010-07-15  Richard Henderson  <rth@redhat.com>
1642         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1643         * Makefile.in: Rebuild.
1645 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1647         * method-wbetl.cc (trydropreference): Fix source line.
1649 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1651         * libitm.h: Add comment.
1652         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1654 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1656         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1657         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1658         available, use pthread mutexes.
1659         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1660         * config.h.in: Regenerate.
1661         * configure: Regenerate.
1663 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1665         * libitm.h (ITM_PURE): Define.
1666         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1668 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1670         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1671         (validate): Add comment.
1672         (trydropreference): New.
1673         * method-readonly.cc (class readonly_dispatch): Add
1674         trydropreference.
1675         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1676         Call trydropreference().
1677         * libitm.h (_ITM_dropReferences): Remove const attribute.
1678         * method-serial.cc (class serial_dispatch): Add trydropreference.
1679         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1681 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1683         * memcpy.cc (do_memcpy): Comment.
1685 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1687         * barrier.tpl: Add comments throughout.
1689 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1691         * method-wbetl.cc (struct w_entry): Add comments.
1692         (trycommit): Same.
1693         (rollback): Same.
1695 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1697         * alloc_c.cc (_ITM_dropReferences): New.
1698         * libitm.map (_ITM_dropReferences): Add.
1699         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1700         * libitm_i.h (struct gtm_transaction): Declare
1701         drop_references_allocations and drop_references_local.
1702         * local.cc (rollback_local): Ignore memory when applicable.
1703         (drop_references_local): New.
1705 2010-06-23  Richard Henderson  <rth@redhat.com>
1707         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1708         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1709         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1710         * config/alpha/target.h: Likewise.
1711         * config/generic/tls.cc (gtm_mask_stack): Use it.
1713 2010-06-23  Richard Henderson  <rth@redhat.com>
1715         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1716         a mutex instead of trying a lock-free compare-and-swap on the list.
1717         (gtm_cacheline_page::operator delete): Likewise.
1719 2010-06-16  Richard Henderson  <rth@redhat.com>
1721         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1722         that overlap the libitm stack.
1723         * barrier.tpl: Mark incoming stack.
1724         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1725         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1726         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1727         * memcpy.cc, memset.cc: Likewise.
1728         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1729         * config/generic/tls.h (gtm_thread): Add stack_top member.
1730         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1731         * libitm_i.h (gtm_mask_stack): Declare.
1732         * config/generic/tls.cc: New file.
1733         * Makefile.am (libitm_la_SOURCES): Add it.
1734         (AM_CXXFLAGS): Turn off exceptions.
1735         * Makefile.in: Rebuild.
1737 2010-06-16  Richard Henderson  <rth@redhat.com>
1739         * alloc.cc (struct gtm_alloc_action): Move definition ...
1740         * libitm_i.h: ... here.
1741         (class gtm_transaction): Declare new and delete.
1742         * beginend.cc (alloc_tx): Reformulate as operator new.
1743         (free_tx): Reformulate as operator delete.
1744         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1746 2010-06-11  Richard Henderson  <rth@redhat.com>
1748         * clone.cc (clone_entry_compare): Fix typo.
1749         From Patrik Marlier <patrick.marlier@unine.ch>.
1751 2010-05-13  Richard Henderson  <rth@redhat.com>
1753         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1754         in extern "C".
1756 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1758         * libitm_i.h (struct gtm_transaction): Remove
1759         get_allocation_size.
1760         (record_allocation): Remove size parameter.
1761         * libitm.map (_ITM_realloc): Remove.
1762         * alloc_c.cc (_ITM_realloc): Remove.
1763         (_ITM_malloc): Remove size argument to record_allocation.
1764         (_ITM_calloc): Same.
1765         * alloc_cpp.cc (_ZGTtnwm): Same.
1766         (_ZGTtnwmRKSt9nothrow_t): Same.
1767         (_ZGTtnam): Same.
1768         (_ZGTtnamRKSt9nothrow_t): Same.
1769         * alloc.cc (struct gtm_alloc_action): Remove size.
1770         (get_allocation_size): Remove.
1771         (commit_allocations): Add comment.
1772         (record_allocation): Remove size parameter.
1773         (forget_allocation): Remove set of size.
1775 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1777         * Makefile.am (abi_version): New.
1778         (AM_CXXFLAGS): Pass abi_version.
1779         * Makefile.in: Regenerate.
1780         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1782 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1784         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1785         _ITM_getTMCloneOrIrrevokable.
1786         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1787         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1789 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1791         * configure.ac: Remove Linux futex support.
1792         * configure.tgt (config_path): Same.
1793         * Makefile.am: Same.
1794         * config/linux: Remove entire directory.
1795         * configure: Rebuild.
1796         * Makefile.in: Rebuild.
1797         * testsuite/Makefile.in: Rebuild.
1799 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1801         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1802         switching to serial mode.
1803         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1805 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1807         * configure.tgt: Add emacs -*- tags.
1808         * barrier.tpl: Same.
1810 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1812         * Makefile.am: Rename serial.cc to method-serial.cc.
1813         * Makefile.in: Regenerate with automake 1.11.1.
1814         * testsuite/Makefile.in: Same.
1815         * aclocal.m4: Regenerate with aclocal 1.11.1.
1816         * method-serial.cc: Rename from serial.cc.
1817         * libitm_i.h (struct gtm_transaction): Update comment on
1818         serialirr_mode.
1820 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1822         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1823         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1825 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1827         * configure: Rebuild.
1829 2009-11-12  Richard Henderson  <rth@redhat.com>
1831         * Rewrite everything in C++.
1833 2009-11-03  Richard Henderson  <rth@redhat.com>
1835         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1836         * Makefile.am (libitm_la_SOURCES): Add them.
1837         * configure.ac (ARCH_X86): New conditional.
1838         * Makefile.in, configure: Rebuild.
1839         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1840         Move futex setup into "other system configury" case.
1841         * local.c (rollback_local): Merge into ...
1842         (GTM_rollback_local): ... here.
1843         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1844         (_ITM_LB): Define as an alias to GTM_LB.
1846 2009-11-03  Richard Henderson  <rth@redhat.com>
1848         * method-readonly.c: New file.
1849         * Makefile.am (libitm_la_SOURCES): Add it.
1850         * Makefile.in: Rebuild.
1851         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1852         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1853         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1854         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1855         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1856         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1857         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1858         gtm_get_clock, gtm_inc_clock): New.
1859         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1860         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1861         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1862         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1863         replace uses with new libitm_i.h symbols.
1864         (dispatch_wbetl): Rename from wbetl_dispatch.
1865         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1866         away from dispatch_readonly; abort if the beginTransaction call
1867         asserted that the transaction was readonly.
1869 2009-11-03  Richard Henderson  <rth@redhat.com>
1871         * memset.c: New file.
1872         * Makefile.am (libitm_la_SOURCES): Add it.
1873         * Makefile.in: Rebuild.
1874         * testsuite/libitm.c/memset-1.c: New.
1876 2009-11-03  Richard Henderson  <rth@redhat.com>
1878         * dispatch.c: Remove file.
1879         * useraction.c (struct gtm_user_action): Move from libitm.h.
1880         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1881         (serial_memset, serial_memmove, serial_memcpy): Remove.
1882         (serial_W*, serial_R*): Remove.
1883         (serial_dispatch): Update to match.
1884         * configure.ac: Move Werror down below configure checks.  Don't
1885         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1886         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1887         Use GCC_AC_FUNC_MMAP_BLACKLIST
1888         * libitm.h: Split out all internal items to...
1889         * libitm_i.h: ... here.  New file.
1890         * copymask.c: New file.
1891         * local.c (struct gtm_local_undo): Move from libitm.h.
1892         (GTM_alloc_local): Rename from alloc_local; export.
1893         * memcpy.c: New file.
1894         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1895         * config/posix/page.c: New file.
1896         * config/posix/target_tls.h: Remove file.
1897         * barrier.c: New file.
1898         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1899         copymask.c, page.c.
1900         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1901         * method-wbetl.c: Rewrite for new cacheline methods.
1902         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1904         * config/alpha/sjlj.S: Fix typo.
1905         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1906         * config/alpha/copymask.c: New file.
1907         * config/alpha/target.h (CACHELINE_SIZE): New.
1908         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1910         * config/x86/target_i.h: Copy functions from x86/target.h.
1911         * config/x86/copymask.c: New file.
1912         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1913         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1914         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1915         * config/x86/target_tls.h: Move contents to target_i.h.
1917         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1918         * testsuite/libitm.c/memcpy-1.c: New.
1920 2009-10-22  Richard Henderson  <rth@redhat.com>
1922         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1923         (AM_CCASFLAGS): New.
1924         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1925         saving/restoring _AC_ARG_VAR_PRECIOUS.
1926         * Makefile.in, aclocal.m4, config.h.in, configure,
1927         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1929 2009-10-22  Richard Henderson  <rth@redhat.com>
1931         * testsuite/*: Update for new compiler syntax.
1933 2009-10-21  Richard Henderson  <rth@redhat.com>
1935         * libitm.h (_ITM_abortReason): Add outerAbort.
1937 2009-08-03  Richard Henderson  <rth@redhat.com>
1939         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1940         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1941         * method-wbetl.c (struct w_entry): Remove mask.
1942         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1943         adjust all callers.
1945 2009-07-22  Richard Henderson  <rth@redhat.com>
1947         * eh_cpp.c: New file.
1948         * Makefile.am (libitm_la_SOURCES): Add it.
1949         * Makefile.in: Rebuild.
1950         * beginend.c (GTM_rollback_transaction): Undo exception state.
1951         (GTM_trycommit_transaction): Mark inline.
1952         (GTM_trycommit_and_finalize_transaction): Split out from ...
1953         (_ITM_commitTransaction): ... here.
1954         (_ITM_commitTransactionEH): New function.
1955         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1956         cxa_unthrown, eh_in_flight; reorder.
1958         * testsuite/libitm.c++/c++.exp: New.
1959         * testsuite/libitm.c++/eh-1.C: New.
1961         * aatree.c (aa_free): Remove REGPARM.
1962         * aatree.h: Remove all REGPARM.
1964 2009-07-18  Richard Henderson  <rth@redhat.com>
1966         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1967         * Makefile.am (libitm_la_SOURCES): Add them.
1968         * Makefile.in: Rebuild.
1969         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1970         (GTM_trycommit_transaction): Likewise.
1971         * libitm.h: Include aatree.h
1972         (struct gtm_alloc_action): New.
1973         (struct gtm_transaction): Add alloc_actions.
1974         (GTM_record_allocation, GTM_forget_allocation): Declare.
1975         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1976         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1977         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1978         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1979         _ZGTtdaPvRKSt9nothrow_t): Export.
1981 2009-07-18  Richard Henderson  <rth@redhat.com>
1983         * target_tls.h: Move ...
1984         * config/posix/target_tls.h: ... here.
1986 2009-07-07  Richard Henderson  <rth@redhat.com>
1988         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1990 2009-07-07  Richard Henderson  <rth@redhat.com>
1992         * Update to GPL3.
1994 2009-07-07  Richard Henderson  <rth@redhat.com>
1996         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1997         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1999         * configure.tgt: Don't use -ftls-model for x86 linux.
2000         * libitm.h: Include target.h after standard includes.
2001         (_gtm_thr): Rename from gtm_thr.
2002         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2003         (gtm_disp, set_gtm_disp): New.
2004         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2005         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2006         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2008 2009-07-07  Richard Henderson  <rth@redhat.com>
2010         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2012 2009-07-06  Richard Henderson  <rth@redhat.com>
2014         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2015         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2016         (_ITM_beginTransaction): Take variadic arguments.
2017         (_ITM_registerThrownObject): Declare.
2018         * beginend.c, serial.c: Update.
2019         * libitm.map: Add _ITM_registerThrownObject.
2021 2009-01-28  Richard Henderson  <rth@redhat.com>
2023         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2024         * Makefile.in: Rebuild.
2025         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2026         (GTM_restart_transaction): Fix uninstrumented code check.
2027         * retry.c (GTM_decide_retry_strategy): Add serial check.
2028         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2029         automatically go irrevokable when in serial mode.
2030         * clone.c: New file.
2031         * libitm.h, libitm.map: Update.
2033 2009-01-27  Richard Henderson  <rth@redhat.com>
2035         * Makefile.am (LTCCASCOMPILE): Define.
2036         (libitm_la_SOURCES): Add methid-wbetl.c.
2037         * testsuite/Makefile.am: New
2038         * configure.ac: Add testsuite/Makefile.
2039         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2040         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2041         (_ITM_abortTransaction): Finalize implementation method; pass
2042         transaction properties to longjmp.
2043         (GTM_restart_transaction): Split out from ...
2044         (_ITM_commitTransaction): ... here.
2045         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2046         Move to config/x86/target.h.
2047         * config/linux/alpha/futex_bits.h: New.
2048         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2049         * config/x86/target.h: Disable target types for 32-bit.
2050         * config/alpha/sjlj.S, config/alpha/target.h: New.
2051         * libitm.h (struct gtm_dispatch): Add init, fini.
2052         (enum restart_reason): New.
2053         (struct gtm_transaction): Add method and restarts.
2054         * retry.c (GTM_decide_retry_strategy): Implement.
2055         * serial.c (serial_init, serial_fini): New.
2056         (GTM_serialmode): Finialize outgoing method.
2057         * method-wbetl.c: New.
2059 2008-12-09  Richard Henderson  <rth@redhat.com>
2061         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2062         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2063         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2064         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2065         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2066         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2067         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2068         * serial.c (serial_R##T, serial_W##T): Likewise.
2070 2008-11-21  Richard Henderson  <rth@redhat.com>
2072         * Initial commit.
2074 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2076 Copying and distribution of this file, with or without modification,
2077 are permitted in any medium without royalty provided the copyright
2078 notice and this notice are preserved.