Fix previous commit
[official-gcc.git] / libitm / ChangeLog
blob21035c05b8c1016ef0e558d6c2491c43a54432df
1 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
3         * configure: Regenerate.
5 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
7         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
9 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
11         * configure.tgt: Handle *-*-uclinux*.
12         * configure: Regenerate.
14 2019-09-06  Florian Weimer  <fweimer@redhat.com>
16         * configure: Regenerate.
18 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
20         PR other/79543
21         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
22         scanning to conform to the GNU Coding Standards.
23         * configure: Regenerate.
25 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
27         * Makefile.am (finclude): Remove.
28         * Makefile.in: Regenerated.
30 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
32         Update copyright years.
34 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
36         * libitm.texi: Bump @copying's copyright year.
38 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
40         PR c++/88482
41         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
42         void * to void (*) (void *).
43         (_ITM_cxa_throw): Likewise.
44         * libitm.h (_ITM_cxa_throw): Likewise.
45         * libitm.texi (_ITM_cxa_throw): Likewise.
47 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
49         * config/powerpc/target.h (htm_available):  Add support for
50         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
52 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
54         PR bootstrap/82856
55         * Makefile.am: Include multilib.am.
56         (AUTOMAKE_OPTIONS): Add info-in-builddir.
57         (CLEANFILES): Remove libitm.info.
58         * configure.ac: Remove AC_PREREQ.
59         * testsuite/Makefile.am (RUNTEST): Remove quotes.
60         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
61         Regenerate.
63 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
65         PR libitm/86293
66         * method-serial.cc: Mark varible as potentially unused
67         to silence warning.
69 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
71         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
72         absolute relocation in a shared library.
74 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
76         PR libitm/85988
77         * config/linux/x86/tls.h (SEG_READ): Use the offset of
78         __private_tm as base.
79         (SEG_WRITE): Likewise.
80         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
81         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
82         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
83         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
84         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
86 2018-05-17  Jason Merrill  <jason@redhat.com>
88         * beginend.cc (save): Disable -Werror=deprecated-copy.
90 2018-05-02  Tom de Vries  <tom@codesourcery.com>
92         PR testsuite/85106
93         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
95 2018-05-02  Tom de Vries  <tom@codesourcery.com>
97         PR testsuite/85106
98         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
100 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
102         * config/x86/sjlj.S (_ITM_beginTransaction): Add
103         (__CET__ & 2) != 0 check for shadow stack.
104         (GTM_longjmp): Likewise.
106 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
108         * configure: Regenerated.
110 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
112         PR target/85489
113         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
115 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
117         * configure: Regenerated.
119 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
121         PR jit/85384
122         * configure: Regenerate.
124 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
126         PR target/84148
127         * configure: Regenerate.
129 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
131         Update copyright years.
133         * libitm.texi: Bump @copying's copyright year.
135 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
137         * Makefile.in: Regenerate.
138         * acinclude.m4: Add enable.m4 and cet.m4.
139         * config/x86/sjlj.S: Include cet.h.
140         (_ITM_beginTransaction): Add _CET_ENDBR.
141         Save Shadow Stack pointer.
142         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
143         * config/x86/target.h (struct gtm_jmpbuf):
144         Add new field for Shadow Stack pointer.
145         * configure: Regenerate.
146         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
147         * configure.ac: Update libtool_VERSION for x86.
148         * testsuite/Makefile.in: Regenerate.
150 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
152         * libitm/config/x86/target.h: Add new field (ssp).
153         * libitm/config/x86/sjlj.S: Change offsets.
155 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
157         * testsuite/lib/libitm.exp: Load scanlang.exp.
159 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
161         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
163 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
165         PR other/79046
166         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
167         of cat to get version from BASE-VER file.
168         * testsuite/Makefile.in: Regenerated.
170 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
172         * config/x86/target.h (htm_available): Determine vendor from
173         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
175 2017-01-18  Torvald Riegel  <triegel@redhat.com>
177         * config/x86/target.h (htm_available): Add check for some processors
178         on which TSX is broken.
180 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
182         PR other/79046
183         * configure.ac: Add GCC_BASE_VER.
184         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
185         get version from BASE-VER file.
186         * testsuite/Makefile.in: Regenerated.
187         * configure: Regenerated.
188         * Makefile.in: Regenerated.
190 2017-01-04  Alan Modra  <amodra@gmail.com>
192         * Makefile.in: Regenerate.
193         * testsuite/Makefile.in: Regenerate.
195 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
197         Update copyright years.
199         * libitm.texi: Bump @copying's copyright year.
201 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
203         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
204         * aclocal.m4: Regenerate.
205         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
206         LIBITM_CHECK_LINKER_HWCAP.
208 2016-11-15  Matthias Klose  <doko@ubuntu.com>
210         * configure: Regenerate.
212 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
214         PR libitm/70456
215         * util.cc (xmalloc): Use posix_memalign to allocate memory on
216         on cache line if requested.
218 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
220         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
221         function attribute to disable floating point in begin_transaction() on
222         S/390.
223         * beginend.cc (begin_transaction): Use
224         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
226 2016-01-22  Torvald Riegel  <triegel@redhat.com>
228         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
229         boundary.
230         (htm_fastpath): Remove.
231         (gtm_thread::begin_transaction): Fix HTM fastpath.
232         (_ITM_commitTransaction): Adapt.
233         (_ITM_commitTransactionEH): Adapt.
234         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
235         and accessors.
236         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
237         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
238         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
239         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
240         * libitm/method-serial.cc (htm_mg): Adapt.
241         (gtm_thread::serialirr_mode): Adapt.
242         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
244 2016-01-21  Torvald Riegel  <triegel@redhat.com>
246         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
247         or AIX.
249 2016-01-19  Richard Henderson  <rth@redhat.com>
251         PR bootstrap/69343
252         PR bootstrap/69339
253         Revert:
254         2016-01-13  Richard Henderson  <rth@redhat.com>
256         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
257         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
258         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
259         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
260         * configure.ac (ARCH_AARCH64): New conditional.
261         (ARCH_PPC, ARCH_S390): Likewise.
262         * Makefile.in, configure: Rebuild.
264         * libitm.h (_ITM_TYPE_M128): Always define.
265         * vect64.cc: Split ...
266         * vect128.cc: ... out of...
267         * config/x86/x86_sse.cc: ... here.
268         * config/arm/neon.cc: New file.
270 2016-01-19  Torvald Riegel  <triegel@redhat.com>
272         * local_type_traits: Remove file.
273         * libitm_i.h: Don't include it anymore.
274         (sized_integral): Remove.
276 2016-01-16  Torvald Riegel  <triegel@redhat.com>
278         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
279         safety.
280         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
281         * libitm/testsuite/libitm.c/priv-1.c: New.
283 2015-01-15  Torvald Riegel  <triegel@redhat.com>
285         testsuite/libitm.c++/libstdc++-safeexc.C: New.
287 2016-01-13  Torvald Riegel  <triegel@redhat.com>
289         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
290         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
291         (gtm_rwlock::write_unlock): Likewise.
293 2016-01-13  Richard Henderson  <rth@redhat.com>
295         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
296         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
297         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
298         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
299         * configure.ac (ARCH_AARCH64): New conditional.
300         (ARCH_PPC, ARCH_S390): Likewise.
301         * Makefile.in, configure: Rebuild.
303         * libitm.h (_ITM_TYPE_M128): Always define.
304         * vect64.cc: Split ...
305         * vect128.cc: ... out of...
306         * config/x86/x86_sse.cc: ... here.
307         * config/arm/neon.cc: New file.
309 2016-01-13  Torvald Riegel  <triegel@redhat.com>
311         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
312         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
313         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
314         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
315         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
316         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
317         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
318         (serialirr_dispatch::snapshot_most_recent): New.
319         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
321 2016-01-12  Torvald Riegel  <triegel@redhat.com>
323         * libitm_i.h (gtm_mask_stack): Remove.
324         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
325         * stmlock.h: Remove file.
326         * config/alpha/cacheline.h: Likewise.
327         * config/generic/cacheline.h: Likewise.
328         * config/powerpc/cacheline.h: Likewise.
329         * config/sparc/cacheline.h: Likewise.
330         * config/x86/cacheline.h: Likewise.
332 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
334         Update copyright years.
336         * libitm.texi: Bump @copying's copyright year.
338 2015-11-26  Torvald Riegel  <triegel@redhat.com>
340         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
341         (ml_wt_dispatch::pre_write): Adapt.
342         (ml_wt_dispatch::pre_load): Likewise.
344 2015-11-22  Torvald Riegel  <triegel@redhat.com>
346         * libitm_i.h (gtm_alloc_action): Remove union.
347         * testsuite/libitm.c/alloc-1.c: New.
349 2015-11-19  Torvald Riegel  <triegel@redhat.com>
351         * testsuite/libitm.c++/eh-5.C: New.
352         * libitm.h (_ITM_cxa_free_exception): New.
353         * libitm.map (_ITM_cxa_free_exception): Add it.
354         * libitm.texi: Update ABI docs.
355         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
356         (gtm_transaction_cp::cxa_uncaught_count): Add.
357         (gtm_thread::cxa_unthrown): Remove.
358         (gtm_thread::cxa_uncaught_count_ptr): Add.
359         (gtm_thread::cxa_uncaught_count): Add.
360         (gtm_thread::drop_references_allocations): Rename to...
361         (gtm_thread::discard_allocation): ... this and adapt.
362         (gtm_thread::init_cpp_exceptions): New.
363         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
364         (gtm_thread::begin_transaction): Likewise.
365         (gtm_transaction_cp::save): Likewise.
366         (gtm_thread::trycommit): Likewise.
367         * eh_cpp.cc: Add overview comments.
368         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
369         (free_any_exception, _ITM_cxa_free_exception): New.
370         (gtm_thread::init_cpp_exceptions): Define.
371         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
372         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
373         (gtm_thread::revert_cpp_exceptions): Likewise.
375 2015-11-09  Torvald Riegel  <triegel@redhat.com>
377         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
378         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
379         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
380         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
381         (gtm_thread::forget_allocations): New overload with size_t argument.
382         * alloc.c (gtm_thread::forget_allocation): Define new overload and
383         adapt existing one.
384         (gtm_thread::record_allocation): Adapt.
385         (gtm_thread::commit_allocations_1): Adapt.
386         (gtm_thread::commit_allocations_2): Adapt.
387         * testsuite/libitm.c++/newdelete.C: New.
389 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
390             Joseph Myers  <joseph@codesourcery.com>
391             Mark Shinwell  <shinwell@codesourcery.com>
392             Andrew Stubbs  <ams@codesourcery.com>
393             Rich Felker <dalias@libc.org>
395         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
396         GTM_begin_transaction for compatibility with FDPIC.
398 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
400         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
401         using load_gcc_lib.
403 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
405         PR libitm/61164
406         * local_atomic (__always_inline): Rename to...
407         (__libitm_always_inline): ... this.
409 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
411         PR target/52482
412         * config/powerpc/sjlj.S: Port to Xcode 2.5.
414 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
416         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
417         operands "op" and "val" to int.
419 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
421         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
422         "op" and "val" to int.
424 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
426         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
427         "op" and "val" to int.
429 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
431         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
432         Declare as static int.
433         (FUTEX_PRIVATE_FLAG): Remove L suffix.
434         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
436 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
438         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
439         sys_futex0 function.
441 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
443         * Makefile.in: Regenerated with automake-1.11.6.
444         * aclocal.m4: Likewise.
445         * configure: Likewise.
446         * testsuite/Makefile.in: Likewise.
448 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
450         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
451         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
453 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
455         PR libitm/64360
456         * libitm.c/stackundo.c (test2): Make it static.
457         (test1): Likewise.
459 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
461         Update copyright years.
463 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
465         * libitm.texi: Bump @copying's copyright year.
467 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
469         * testsuite/lib/libitm.exp: Load target-utils.exp.
470         Move load of target-supports.exp earlier.
472 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
474         * configure.tgt (x86_64): Tune -m32 multilib to generic.
476 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
478         PR bootstrap/63784
479         * configure: Regenerated.
481 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
483         PR target/63610
484         * configure: Regenerate.
486 2014-10-06  Marek Polacek  <polacek@redhat.com>
488         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
489         * testsuite/libitm.c/memset-1.c: Likewise.
491 2014-07-24  Richard Henderson  <rth@redhat.com>
493         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
494         addressing mode in epilogue.
496 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
498         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
499         -mclear-hwcap instead.
500         * configure: Regenerate.
501         * clearcap.map: Remove.
503 2014-05-21  John Marino  <gnugcc@marino.st>
505         * configure.tgt (*-*-dragonfly*): New target.
507 2014-05-19  Richard Henderson  <rth@redhat.com>
509         * config/aarch64/sjlj.S: New file.
510         * config/aarch64/target.h: New file.
511         * configure.tgt: Enable aarch64.
513 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
515         * config/generic/asmcfi.h: Also check for
516         __GCC_HAVE_DWARF2_CFI_ASM.
518 2013-04-02  Richard Henderson  <rth@redhat.com>
520         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
521         * config/arm/target.h, config/sh/target.h: Likewise.
522         * config/sparc/target.h, config/x86/target.h: Likewise.
524 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
526         * config/linux/futex_bits.h: Include errno.h.
527         (sys_futex0): If syscall returns -1, return -errno rather than
528         -1.
530 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
532         * libitm.texi (Index): Rename to Library Index.
534 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
536         PR libitm/53113
537         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
538         (x86_avx.lo): Append -mavx to CXXFLAGS.
539         * Makefile.in: Regenerate.
541 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
543         Update copyright years
545 2014-01-02  Tobias Burnus  <burnus@net-b.de>
547         * libitm.texi: Bump @copying's copyright year.
549 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
551         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
552         (FUNC): Define ELFv2 variant.
553         (END): Likewise.
554         (HIDDEN): Likewise.
555         (CALL): Likewise.
556         (BASE): Likewise.
557         (LR_SAVE): Likewise.
559 2013-09-20  Alan Modra  <amodra@gmail.com>
561         * configure: Regenerate.
563 2013-08-30  Torvald Riegel  <triegel@redhat.com>
565         * config/posix/rwlock.cc: Fix initialization order.
567 2013-08-30  Torvald Riegel  <triegel@redhat.com>
569         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
570         (htm_fastpath): Assign an asm name.
571         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
572         HTM fast paths.
573         (_ITM_actions): Likewise.
574         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
575         x86_64.
576         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
577         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
578         field to the start of the structure.
579         * config/linux/rwlock.h (gtm_rwlock): Update comments.
580         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
581         handling for custom HTM fast paths.
583 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
584         Revert:
585         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
587         * configure.tgt: Add -msoft-float to XCFLAGS.
589 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
591         * configure.tgt: Add -msoft-float to XCFLAGS.
593 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
595         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
596         (htm_transaction_active): Enable zEC12 instructions in the
597         assembler.
598         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
600 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
602         * acinclude.m4: Add htm asm check for s390.
603         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
604         * configure: Regenerate.
605         * config/s390/target.h: Remove __HTM__ check.
606         (htm_available): Call getauxval to get hwcaps and check whether
607         HTM is available or not.
609 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
611         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
612         * configure.ac: Use it.
613         (AC_CHECK_HEADERS): Check for sys/auxv.h.
614         (AC_CHECK_FUNCS): Check for getauxval.
615         * config.h.in, configure: Rebuild.
616         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
617         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
618         (USE_HTM_FASTPATH): Define.
619         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
620         _HTM_RETRIES) New macros.
621         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
622         htm_begin_success, htm_commit, htm_transaction_active): New functions.
624 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
626         * config/s390/target.h: Include htmintrin.h.
627         (_HTM_ITM_RETRIES): New macro definition.
628         (htm_available, htm_init, htm_begin, htm_begin_success)
629         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
631 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
632             Cesar Philippidis  <cesar@codesourcery.com>
634         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
635         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
636         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
637         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
639 2013-06-20  Torvald Riegel  <triegel@redhat.com>
641         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
642         (_ITM_getTransactionId): Same.
643         * config/x86/target.h (htm_transaction_active): New.
645 2013-06-20  Torvald Riegel  <triegel@redhat.com>
647         PR libitm/57643
648         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
649         the HTM fastpath.
651 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
653         PR bootstrap/56714
654         * local_atomic (__always_inline): Always define our version.
655         (__calculate_memory_order): Mark inline.
656         (atomic_thread_fence): Ditto.
657         (atomic_signal_fence): Ditto.
658         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
659         (atomic_bool::atomic_flag_clear_explicit): Ditto.
660         (atomic_bool::atomic_flag_test_and_set): Ditto.
661         (atomic_bool::atomic_flag_clear): Ditto.
663 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
665         * config/s390/sjlj.S: New file.
666         * config/s390/target.h: New file.
667         * configure.tgt: Set options for S/390.
669 2013-03-23  Andi Kleen  <ak@linux.intel.com>
671         * local_atomic (__always_inline): Add.
672         (__calculate_memory_order, atomic_thread_fence,
673          atomic_signal_fence, test_and_set, clear, store, load,
674          exchange, compare_exchange_weak, compare_exchange_strong,
675          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
676         Add __always_inline to force inlining.
678 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
679             Jack Howarth  <howarth@bromo.med.uc.edu>
680             Patrick Marlier  <patrick.marlier@gmail.com>
682         PR libitm/55693
683         * alloc_cpp.cc: Enable function declarations on darwin.
684         * eh_cpp.cc: Likewise.
686 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
688         Update copyright years.
690 2012-11-09  Torvald Riegel  <triegel@redhat.com>
692         * beginend.cc (htm_fastpath): New.
693         (gtm_thread::begin_transaction, _ITM_commitTransaction,
694         _ITM_commitTransactionEH): Add HTM fastpath handling.
695         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
696         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
697         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
698         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
699         * configure.tgt: Add -mrtm to XCFLAGS.
700         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
701         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
702         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
703         * retry.cc (parse_default_method): Add HTM method parsing.
704         (gtm_thread::number_of_threads_changed): Use HTM by default if
705         available.
707 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
709         * configure: Regenerate.
711 2012-10-31  Richard Henderson  <rth@redhat.com>
713         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
714         * configure.ac: Use it.
715         * config.h.in, configure: Rebuild.
716         * testsuite/Makefile.in: Rebuild.
718 2012-10-24  Torvald Riegel  <triegel@redhat.com>
720         * libitm.texi: Clarify ABI requirements for data-logging functions.
722 2012-10-24  Torvald Riegel  <triegel@redhat.com>
724         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
725         it requires serial mode instead of assuming that for certain
726         dispatchs.
727         * dispatch.h (abi_dispatch::requires_serial): New.
728         (abi_dispatch::abi_dispatch): Adapt.
729         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
730         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
731         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
732         serial_dispatch::serial_dispatch,
733         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
735 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
737         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
738         and ia32 declarations some more.
739         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
741 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
743         PR other/43620
744         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
745         * configure: Regenerate.
746         * Makefile.in: Regenerate.
748 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
750         * configure: Regenerated.
752 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
754         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
756 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
758         * eh_cpp.cc: Fix __cxa_end_catch declaration.
760 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
762         * configure: Regenerated.
764 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
766         PR libitm/52854
767         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
768         for x86-64.
770 2012-04-03  Tristan Gingold  <gingold@adacore.com>
772         * configure: Regenerate.
774 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
776         PR bootstrap/52812
777         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
779 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
781         * testsuite/lib/libitm.exp: load fortran-modules.exp
783 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
785         * configure.tgt (*-*-irix6*): Remove.
787 2012-03-13  Torvald Riegel  <triegel@redhat.com>
789         PR libitm/52526
790         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
791         wake-up.
793 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
795         * configure.tgt (*-*-osf*): Remove.
796         * configure: Regenerate.
798 2012-03-05  Torvald Riegel  <triegel@redhat.com>
800         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
801         memtransfer/memset if size isn't larger than zero.
803 2012-03-02  Torvald Riegel  <triegel@redhat.com>
805         * libitm.texi: Link to specification and add a usage example.
807 2012-02-24  Torvald Riegel  <triegel@redhat.com>
809         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
810         default dispatch for more than 1 thread to ml_wt.
812 2012-02-20  Torvald Riegel  <triegel@redhat.com>
814         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
816 2012-02-20  Torvald Riegel  <triegel@redhat.com>
818         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
820 2012-02-20  Torvald Riegel  <triegel@redhat.com>
822         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
823         serial mode corner cases made obsolete by prior gtm_rwlock changes.
824         (gl_wt_dispatch.rollback): Same.
826 2012-02-20  Torvald Riegel  <triegel@redhat.com>
828         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
830 2012-02-20  Torvald Riegel  <triegel@redhat.com>
832         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
833         for RfW src.  Optimize number of calls to gtm_thr.
835 2012-02-20  Torvald Riegel  <triegel@redhat.com>
837         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
838         acquisition to ...
839         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
840         (default_dispatch): Make atomic.
841         (GTM::gtm_thread::set_default_dispatch): Access atomically.
842         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
843         use decide_begin_dispatch() if default_dispatch might have changed.
844         (GTM::gtm_thread::number_of_threads_changed): Initialize
845         default_dispatch here.
847 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
848             Patrick Marlier  <patrick.marlier@gmail.com>
850         PR libitm/52220
851         * alloc_cpp.cc: No dummy definitions for darwin.
852         * eh_cpp.cc: Likewise.
854 2012-02-14  Richard Henderson  <rth@redhat.com>
856         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
858 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
860         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
862 2012-02-14  Torvald Riegel  <triegel@redhat.com>
864         * libitm_i.h (GTM::gtm_rwlog_entry): New.
865         (GTM::gtm_thread): Add read and write logs.
866         (GTM::dispatch_ml_wt): Declare.
867         * retry.cc (parse_default_method): Support ml_wt.
868         * method-ml.cc: New file.
869         * Makefile.am: Add method-ml.cc.
870         * Makefile.in: Regenerate.
872 2012-02-14  Torvald Riegel  <triegel@redhat.com>
874         * dispatch.h (GTM::abi_dispatch::supports): New.
875         (GTM::method_group::reinit): New.
876         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
877         (GTM::gtm_thread::number_of_threads_changed): Check that the method
878         supports the current situation.
880 2012-02-14  Torvald Riegel  <triegel@redhat.com>
882         * util.cc (GTM::xcalloc): New.
883         * common.h (GTM::xcalloc): Declare.
885 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
887         * config/sparc/target.h (cpu_relax): Read from CC register.
888         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
890 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
892         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
894 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
896         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
897         * config/sparc/cacheline.h: New file.
898         * config/sparc/target.h: Likewise.
899         * config/sparc/sjlj.S: Likewise.
900         * config/linux/sparc/futex_bits.h: Likewise.
902 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
904         * configure.ac (link_itm): Fix comment.
905         * configure: Regenerate.
906         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
908 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
910         PR libitm/51822
911         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
912         Correct libgomp references.
914 2012-01-24  Torvald Riegel  <triegel@redhat.com>
916         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
917         wake-up.
919 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
921         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
922         end of structure.
923         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
924         offset values.  Do not copy return address.  Decrement stack
925         by 56 bytes only.
926         (GTM_longjump) [__x86_64__]: Update offset values.
928 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
930         PR libitm/51830
931         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
932         the first function argument to %eax.
934 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
936         * libitm.h (_ITM_getThreadnum): Remove.
937         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
939 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
941         * clearcap.map: New file.
942         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
943         * configure.ac: Call it.
944         Clear HWCAP_LDFLAGS if defaulting to -mavx.
945         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
946         * configure: Regenerate.
947         * Makefile.in: Regenerate.
948         * testsuite/Makefile.in: Regenerate.
950 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
952         PR libitm/51173
953         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
954         include, exclude options.
956 2012-01-14  Torvald Riegel  <triegel@redhat.com>
958         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
959         rolling back.
960         * containers.h (GTM::vector::set_size): New.
962 2012-01-14  Torvald Riegel  <triegel@redhat.com>
964         PR libitm/51855
965         * config/generic/tls.h (GTM::mask_stack_top): New.
966         (GTM::mask_stack_bottom): Declare.
967         * config/generic/tls.c (GTM::mask_stack_bottom): New.
968         * local.cc (gtm_undolog::rollback): Filter out any updates that
969         overlap the libitm stack.  Add current transaction as parameter.
970         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
971         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
972         * testsuite/libitm.c/stackundo.c: New test.
974 2012-01-10  Richard Henderson  <rth@redhat.com>
976         * libitm_i.h (_Unwind_DeleteException): Declare weak.
977         * eh_cpp.cc (_Unwind_DeleteException): Define for
978         !HAVE_ELF_STYLE_WEAKREF.
980 2012-01-08  Torvald Riegel  <triegel@redhat.com>
982         * local.cc (GTM_LB): Use GTM::gtm_undolog.
983         (GTM::gtm_thread::drop_references_undolog): Remove.
984         (GTM::gtm_thread::commit_undolog,
985         GTM::gtm_thread::rollback_undolog): Move to ...
986         * libitm_i.h (GTM::gtm_undolog): ...here. New.
987         (GTM::gtm_undolog_entry): Remove.
988         (GTM::gtm_thread): Adapt.
989         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
990         (GTM::gtm_thread::trycommit): Adapt.
991         * method-serial.cc (serial_dispatch::log): Adapt.
992         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
993         (gl_wt_dispatch::store): Fix likely/unlikely.
994         * containers.h (GTM::vector::resize): Add additional_capacity
995         parameter and handle it.
996         (GTM::vector::resize_noinline): New/adapt.
997         (GTM::vector::push): New.
999 2012-01-06  Richard Henderson  <rth@redhat.com>
1001         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1002         * config/linux/powerpc/futex_bits.h: New file.
1003         * config/powerpc/cacheline.h: New file.
1004         * config/powerpc/sjlj.S: New file.
1005         * config/powerpc/target.h: New file.
1006         * config/generic/asmcfi.h (cfi_offset): New.
1007         (cfi_restore, cfi_undefined): New.
1009 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1011         PR other/51171
1012         * testsuite/libitm.c/reentrant.c: Remove xfail.
1013         (thread): Pass x to pure().
1014         From Patrik Marlier <patrick.marlier@gmail.com>.
1016 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1018         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1019         privatization safety if already in serial mode.
1021 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1023         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1024         finish_serial_upgrade parameter.
1025         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1026         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1027         Don't unset reader flag.
1028         (GTM::gtm_rwlock::write_upgrade_finish): New.
1029         * config/posix/rwlock.cc: Same.
1030         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1031         Declare.
1032         * config/posix/rwlock.h: Same.
1033         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1034         flag after commit or after rollback when restarting.
1036 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1038         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1039         (GTM::gtm_thread::try_commit): Changed memory order.
1040         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1041         as parameter.
1042         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1043         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1044         * config/linux/futex_bits.h (sys_futex0): Same.
1045         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1046         * config/linux/futex.h (futex_wait, futex_wake): Same.
1047         * config/linux/rwlock.h (gtm_rwlock::writers,
1048         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1049         ints.
1050         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1051         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1052         gtm_rwlock::write_unlock): Fix memory orders and fences.
1053         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1054         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1055         gtm_rwlock::write_unlock): Same.
1056         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1057         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1058         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1059         Add comments.
1060         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1061         gl_wt_dispatch::load, gl_wt_dispatch::store,
1062         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1063         orders and fences.  Add comments.
1065 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1067         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1068         * Makefile.in: Regenerated.
1070 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1072         * configure.tgt: Add sh* case.
1073         * config/sh/target.h: New file.
1074         * config/sh/sjlj.S: New file.
1075         * config/linux/sh/futex_bits.h: New file.
1077 2011-12-14  Richard Henderson  <rth@redhat.com>
1079         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1080         * config/arm/sjlj.S, config/arm/target.h: New files.
1081         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1082         (cfi_rel_offset): New.
1083         * config/linux/futex_bits.h: New file.
1084         * config/linux/futex.cc: Include futex_bits.h here...
1085         * config/linux/futex.h: ... not here.
1086         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1087         * configure.ac (ARCH_AM): New conditional.
1088         * Makefile.in, configure: Rebuild.
1089         * configure.tgt: Handle ARM.
1091 2011-12-13  Richard Henderson  <rth@redhat.com>
1093         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1094         signed/unsigned comparison werror.
1096         * local_atomic: New file.
1097         * libitm_i.h: Include it.
1098         (gtm_thread::shared_state): Use atomic template.
1099         * beginend.cc (GTM::gtm_clock): Use atomic template.
1100         (global_tid): Use atomic template if 64-bit atomics available.
1101         (gtm_thread::gtm_thread): Update shared_state access.
1102         (gtm_thread::trycommit): Likewise.
1103         (choose_code_path): Update global_tid access.
1104         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1105         * stmlock.h (GTM::gtm_clock): Use atomic template.
1106         (gtm_get_clock, gtm_inc_clock): Update accesses.
1107         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1108         redundant __sync_synchronize after atomic shared_state access.
1109         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1110         (gtm_rwlock::write_lock_generic): Likewise.
1111         (gtm_rwlock::read_unlock): Likewise.
1112         * config/alpha/target.h (atomic_read_barrier): Remove.
1113         (atomic_write_barrier): Remove.
1114         * config/x86/target.h (atomic_read_barrier): Remove.
1115         (atomic_write_barrier): Remove.
1117 2011-11-30  Richard Henderson  <rth@redhat.com>
1119         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1120         * beginend.c (_ITM_abortTransaction): Update to match.
1121         (GTM::gtm_thread::restart): Likewise.
1122         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1123         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1125 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1127         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1128         * Makefile.in: Regenerate.
1130 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1132         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1133         * alloc_cpp.cc: Generate dummy functions if we don't
1134         HAVE_ELF_STYLE_WEAKREF.
1135         * eh_cpp.cc: Likewise.
1136         * configure: Regenerate.
1137         * aclocal.m4:  Likewise.
1138         * config.h.in: Likewise.
1139         * Makefile.in: Likewise.
1140         * testsuite/Makefile.in: Likewise.
1142 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1144         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1145         __USER_LABEL_PREFIX__ for targets that use it.
1146         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1147         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1148         in portability to non-elf targets.
1149         (GTM_longjmp): Likewise.
1150         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1151         where required.
1153 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1155         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1156         * testsuite/libitm.c/memset-1.c: Likewise.
1158 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1160         * configure: Regenerate.
1162 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1164         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1165         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1166         * Makefile.am: Handle sun style versioning.
1167         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1168         * configure: Regenerate.
1169         * Makefile.in: Regenerate.
1171 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1173         * config/generic/asmcfi.h: Fix comment.
1174         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1175         sequence without .hidden support, error for non-ELF targets.
1176         (GTM_longjmp) [__ELF__]: Only use .hidden if
1177         HAVE_ATTRIBUTE_VISIBILITY.
1179 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1181         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1182         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1183         Dummy functions.
1184         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1185         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1187 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1189         PR bootstrap/51098
1190         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1191         * configure: Regenerate.
1193 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1195         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1197 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1199         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1200         .hidden.
1201         (.note.GNU-stack): Only use if __linux__.
1202         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1203         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1204         * testsuite/libitm.c/reentrant.c: Likewise.
1205         * testsuite/libitm.c/simple-2.c: Likewise.
1206         * testsuite/libitm.c/txrelease.c: Likewise.
1207         * testsuite/libitm.c++/static_ctor.C: Likewise.
1209 2011-11-10  Richard Henderson  <rth@redhat.com>
1211         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1212         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1213         * configure.ac (ARCH_X86_AVX): New conditional.
1214         * Makefile.in, configure: Rebuild.
1216 2011-11-09  Richard Henderson  <rth@redhat.com>
1218         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1219         * configure.ac: Use it.
1220         * config.h.in, configure: Rebuild.
1221         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1223 2011-11-09  Richard Henderson  <rth@redhat.com>
1225         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1226         * config/alpha/unaligned.h: Remove file.
1227         * config/generic/unaligned.h: Remove file.
1228         * config/x86/unaligned.h: Remove file.
1229         * config/generic/cachepage.h: Remove file.
1230         * config/posix/cachepage.cc: Remove file.
1231         * config/generic/cacheline.cc: Remove file.
1232         * config/x86/cacheline.cc: Remove file.
1233         * config/generic/cacheline.h (gtm_cacheline): Remove the
1234         store_mask, copy_mask, copy_mask_wb methods.
1235         * config/x86/cacheline.h: Likewise.
1236         * config/alpha/cacheline.h: Fall back to generic after setting size.
1237         * config/generic/tls.cc (gtm_mask_stack): Remove.
1238         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1239         (GTM_vpalignr_table): Remove.
1240         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1241         (GTM_pshift_table): Remove.
1242         * config/libitm_i.h: Don't include cachepage.h.
1243         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1244         * Makefile.in, testsuite/Makefile.in: Rebuild.
1246 2011-11-09  Richard Henderson  <rth@redhat.com>
1248         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1249         to emit branch prediction hint.
1251         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1252         Protect .note.GNU-stack with __linux__.
1254         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1255         * configure, aclocal.m4, config.h.in: Rebuild.
1256         * config/generic/asmcfi.h: New file.
1257         * config/x86/sjlj.S: Use it.
1259 2011-11-08  Richard Henderson  <rth@redhat.com>
1261         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1263 2011-11-08  Richard Henderson  <rth@redhat.com>
1265         * configure.tgt: Test correct directory for supported cpus.
1267         * configure.ac: Exit if unsupported.
1268         * configure: Rebuild.
1269         * configure.tgt: Delete boilerplate from libgomp for unsupported
1270         targets.  Set UNSUPPORTED for unsupported targets.
1272 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1274         * configure.tgt: Handle i386 like i[456]86.
1275         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1276         take address.
1277         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1278         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1280 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1282         * method-wbetl.cc: Update copyright notice.
1283         * aatree.cc: Same.
1284         * util.cc: Same.
1285         * libitm.h: Same.
1286         * memset.cc: Same.
1287         * eh_cpp.cc: Same.
1288         * barrier.tpl: Same.
1289         * useraction.cc: Same.
1290         * stmlock.h: Same.
1291         * memcpy.cc: Same.
1292         * common.h: Same.
1293         * config/generic/tls.cc: Same.
1294         * config/generic/cacheline.h: Same.
1295         * config/generic/cachepage.h: Same.
1296         * config/generic/cacheline.cc: Same.
1297         * config/generic/unaligned.h: Same.
1298         * config/x86/cacheline.h: Same.
1299         * config/x86/cacheline.cc: Same.
1300         * config/x86/unaligned.h: Same.
1301         * config/alpha/cacheline.h: Same.
1302         * config/alpha/unaligned.h: Same.
1303         * config/alpha/sjlj.S: Same.
1304         * config/posix/cachepage.cc: Same.
1305         * config/linux/futex.h: Same.
1306         * config/linux/alpha/futex_bits.h: Same.
1308 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1310         * libitm.texi: No cover text and invariant sections.
1312 2011-11-03  Richard Henderson  <rth@redhat.com>
1314         * local_type_traits: New file.
1315         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1317 2011-11-03  Richard Henderson  <rth@redhat.com>
1319         * configure.ac: Don't test for gfortran.
1320         * configure: Rebuild.
1322         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1323         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1325 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1327         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1328         * testsuite/libitm.c/memset-1.c: Same.
1329         * testsuite/libitm.c/c.exp: Same.
1330         * testsuite/lib/libitm-dg.exp: Same.
1331         * testsuite/lib/libitm.exp: Same.
1332         * testsuite/libitm.c++/c++.exp: Same.
1334 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1336         * testsuite/config/default.exp: Update copyright date.
1337         * configure.ac: Add copyright info.
1338         * configure.tgt: Same.
1340 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1342         * testsuite/libitm.c/reentrant.c: XFAIL.
1343         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1345 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1347         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1348         handle aborts.
1349         (_ITM_abortTransaction): Handle aborts of outer transactions.
1350         * libitm_i.h: Same.
1351         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1352         * libitm.texi: Document aborts of outer transactions.
1353         * testsuite/libitm.c/cancel.c: New file.
1355 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1357         * testsuite/*: Change __transaction to __transaction_atomic or
1358         __transaction_relaxed.
1360 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1362         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1363         (gtm_thr): Same.
1365 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1367         * libitm_i.h: Add gl_wt dispatch.
1368         * retry.cc (parse_default_method): Same.
1369         * method-gl.cc: New file.
1370         * Makefile.am: Use method-gl.cc.
1371         * Makefile.in: Rebuild.
1373 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1375         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1376         safety if requested by a TM method.
1377         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1378         privatization safety.
1379         * method-serial.cc: Same.
1381 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1383         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1384         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1385         undolog-related member functions from *_local to *_undolog.
1386         * local.cc (gtm_thread::commit_undolog): Same.
1387         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1388         (GTM::gtm_thread::rollback): Roll back undolog before
1389         dispatch-specific rollback.
1391 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1393         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1394         re-initialization of the current method group.
1395         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1397 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1399         * alloc.cc (commit_allocations_2): Do not free transaction-local
1400         memory when committing a nested transaction.
1402 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1404         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1405         serial-irrevocable dispatch, not serial.
1407 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1409         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1410         declarations.
1411         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1412         * method-serial.cc: Implement begin_or_restart().
1413         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1414         dispatch-specific begin_or_restart().
1415         (GTM::gtm_thread::restart): Same.
1417 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1419         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1420         restarting without switching to serial mode.
1421         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1422         transaction state. Choose closed-nesting alternative if available.
1423         (GTM::gtm_thread::set_default_dispatch): New.
1424         (parse_default_method): New.
1425         (GTM::gtm_thread::number_of_threads_changed): New.
1426         * method-serial.cc (GTM::serial_mg): New method group class.
1427         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1428         fini.
1429         (GTM::serial_dispatch): Same.
1430         (GTM::serialirr_onwrite_dispatch): Same.
1431         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1432         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1433         registered threads.
1434         (GTM::gtm_thread::gtm_thread): Same.
1435         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1436         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1437         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1438         choose dispatch but set state according to dispatch here.
1439         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1440         (GTM::method_group): New class.
1441         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1442         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1443         * libitm.texi: Document TM methods, method groups, method life cycle.
1444         Rename method sets to method groups.
1446 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1448         * config/x86/tls.h: Moved to ...
1449         * config/linux/x86/tls.h: ... here.
1451 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1453         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1454         Add X32 support.
1455         * config/x86/sjlj.S: Same.
1457 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1459         * config/linux/rwlock.h: New file.
1460         * config/linux/rwlock.c: New file.
1461         * configure.ac: Reenable futex support (undo SVN rev 157758).
1462         * Makefile.am: Same.
1463         * configure.tgt: Same.
1464         * config/linux/alpha/futex_bits.h: Same.
1465         * config/linux/futex.h: Same. Return number of woken processes.
1466         * config/linux/futex.cc: Same.
1467         (futex_wait): Remove spinning.
1468         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1469         Use __x86_64__ instead of __LP64__.
1470         * aclocal.m4: Include generic futex checks.
1471         * configure: Rebuild.
1472         * Makefile.in: Rebuild.
1473         * testsuite/Makefile.in: Rebuild.
1474         * beginend.cc: Include pthread.h.
1475         * config/posix/cachepage.cc: Same.
1477 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1479         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1480         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1481         (set_gtm_thr): New.
1482         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1483         (set_gtm_thr): New.
1484         (GTM::gtm_thread::thread_num): Removed.
1485         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1486         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1487         tx-to-thread renaming.
1488         * beginend.cc: Adapted to tx-to-thread renaming.
1489         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1490         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1491         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1492         gtm_transaction to gtm_thread.
1493         (_ITM_getThreadnum): Removed. Not supported anymore.
1494         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1495         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1496         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1497         gtm_tx-to-gtm_thr renaming if necessary.
1498         * eh_cpp.cc: Same.
1499         * local.cc: Same.
1500         * retry.cc: Same.
1501         * clone.cc: Same.
1502         * alloc.cc: Same.
1503         * alloc_c.cc: Same.
1504         * alloc_cpp.cc: Same.
1505         * method-serial.cc: Same.
1506         * config/generic/tls.cc: Same.
1507         * config/posix/rwlock.h (gtm_rwlock): Same.
1508         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1510 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1512         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1513         implementation.
1514         (gtm_rwlock::read_unlock): Same.
1515         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1516         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1517         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1518         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1519         w_upgrade. Replaced by per-transaction flags (in shared_state).
1520         Added c_confirmed_writers.
1521         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1522         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1523         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1524         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1525         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1526         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1527         * libitm.texi: Document locking conventions and implementations in
1528         libitm.
1530 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1532         * libitm_i.h (next_tx): Add list of all threads' transaction.
1533         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1534         transaction with list of transactions and ...
1535         (thread_exit_handler): ... deregister here.
1536         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1537         * config/x86/target.h: Same.
1539 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1541         * testsuite/libitm.c++/static_ctor.C: New file.
1543 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1545         * testsuite/libitm.c/reentrant.c: New file.
1547 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1549         * config/generic/tls.h: Remove the free list for transactions and ...
1550         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1551         (GTM::gtm_transaction::operator delete): ... and release here.
1552         (thread_exit_handler): New. Delete tx when thread terminates.
1553         (thread_exit_init): New.
1554         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1555         * testsuite/libitm.c/txrelease.c: New file.
1557 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1559         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1560         * testsuite/libitm.c/notx.c: New file.
1562 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1564         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1565         * libitm_i.h (local_tid): ... to here.
1566         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1567         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1569 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1571         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1572         serialirr_onwrite_dispatch as new default for now.
1573         * method-serial.cc (serialirr_onwrite_dispatch): New.
1574         (GTM::dispatch_serialirr_onwrite): New.
1575         * libitm_i.h: Same.
1577 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1579         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1580         * query.cc (_ITM_getTransactionId): There is no active transaction if
1581         the current nesting level is zero.
1583 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1585         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1586         rollback.
1588 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1590         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1591         transaction properties from the caller instead of from the
1592         transaction object.
1593         * libitm_i.h: Same.
1594         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1596 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1598         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1599         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1600         * dispatch.h: Same.
1601         * method-serial.cc: Same.
1602         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1603         flat nesting as default, and closed nesting on demand.
1604         (GTM::gtm_transaction::rollback): Same.
1605         (_ITM_abortTransaction): Same.
1606         (GTM::gtm_transaction::restart): Same.
1607         (GTM::gtm_transaction::trycommit): Same.
1608         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1609         (choose_code_path): New.
1610         (GTM::gtm_transaction_cp::save): New.
1611         (GTM::gtm_transaction_cp::commit): New.
1612         * query.cc (_ITM_inTransaction): Support flat nesting.
1613         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1614         (GTM::gtm_transaction): Support flat and closed nesting.
1615         * alloc.cc (commit_allocations_2): New.
1616         (commit_cb_data): New helper struct.
1617         (GTM::gtm_transaction::commit_allocations): Handle nested
1618         commits/rollbacks.
1619         * libitm.texi: Update user action section, add description of nesting.
1621 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1623         * libitm_i.h: Add closed nesting as restart reason.
1624         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1626 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1628         * useraction.cc: Use vector instead of list to store actions.
1629         Also support partial rollbacks for closed nesting.
1630         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1631         * beginend.cc: Same.
1633 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1635         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1636         closed_nesting flags, as well as a closed nesting alternative.
1637         * method-serial.cc: Same.
1638         (serial_dispatch): Renamed to serialirr_dispatch.
1639         (GTM::dispatch_serialirr): Same.
1640         (serial_dispatch_ul): Renamed to serial_dispatch.
1641         (GTM::dispatch_serial): Same.
1643 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1645         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1647 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1649         * aatree.h (aa_tree::remove): New.
1650         (aa_tree::operator new): Add placement new.
1652 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1654         * containers.h: New file.
1655         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1656         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1657         * common.h: ... to here.
1658         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1659         * local.cc: Same.
1661 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1663         * libitm_i.h (STATE_ABORTING): Remove.
1664         * beginend.cc (_ITM_abortTransaction): Same.
1665         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1666         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1667         (_ITM_rollbackTransaction): Remove.
1668         * beginend.cc: Same.
1669         * libitm.map: Same.
1670         * libitm.texi: Document these ABI changes.
1672 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1674         * libitm.texi: New file.
1675         * Makefile.am: Add libitm.texi.
1676         * Makefile.in: Rebuild.
1678 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1680         * libitm_i.h: Move parts to common.h and dispatch.h.
1681         * common.h: New file.
1682         * dispatch.h: New file, new dispatch class.
1683         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1684         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1685         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1686         decision to retry.cc.
1687         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1688         only.
1689         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1690         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1691         logging.
1692         * barrier.cc: Use new barriers definitions.
1693         (abi_dispatch::memmove_overlap_check): New.
1694         * config/x86/x86_sse.cc: Same.
1695         * config/x86/x86_avx.cc: Same.
1696         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1697         memcpy.cc.
1698         * Makefile.in: Rebuild.
1699         * method-readonly.cc: Remove.
1700         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1701         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1703 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1705         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1706         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1707         * testsuite/libitm.c/dropref-2.c: Same.
1708         * testsuite/libitm.c/dropref.c: Same.
1710 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1712         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1713         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1714         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1715         * alloc_c.cc: Same.
1716         * barrier.tpl: Same.
1717         * beginend.c: Same.
1718         * config/generic/tls.h: Same.
1719         * config/x86/tls.h: Same.
1720         * libitm_i.h: Same.
1721         * memcpy.cc: Same.
1722         * memset.cc: Same.
1723         * method-readonly.cc: Same.
1724         * method-serial.cc: Same.
1725         * method-wbetl.cc: Same.
1726         * retry.cc: Same.
1728 2011-03-03  Richard Henderson  <rth@redhat.com>
1730         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1731         From Patrik Marlier <patrick.marlier@unine.ch>.
1733 2011-02-03  Richard Henderson  <rth@redhat.com>
1735         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1736         * configure.ac: Use it.
1737         * configure, config.h.in: Rebuild.
1738         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1739         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1740         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1741         * libitm.map: Use wildcards to match size_t mangling.
1743 2010-12-14  Richard Henderson  <rth@redhat.com>
1745         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1746         blocks of TIDs per thread.
1747         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1748         (setup_gtm_thr): Return the thread structure.
1749         * config/x86/tls.h (setup_gtm_thr): Likewise.
1751 2010-12-14  Richard Henderson  <rth@redhat.com>
1753         * clone.cc (table_lock): Remove.
1754         (find_clone): Don't take it.
1755         (ExcludeTransaction): New helper class.
1756         (_ITM_registerTMCloneTable): Use it.
1757         (_ITM_deregisterTMCloneTable): Likewise.
1759 2010-12-14  Richard Henderson  <rth@redhat.com>
1761         * config/x86/tls.h: New file.
1763 2010-07-15  Richard Henderson  <rth@redhat.com>
1765         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1766         * Makefile.in: Rebuild.
1768 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1770         * method-wbetl.cc (trydropreference): Fix source line.
1772 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1774         * libitm.h: Add comment.
1775         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1777 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1779         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1780         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1781         available, use pthread mutexes.
1782         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1783         * config.h.in: Regenerate.
1784         * configure: Regenerate.
1786 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1788         * libitm.h (ITM_PURE): Define.
1789         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1791 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1793         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1794         (validate): Add comment.
1795         (trydropreference): New.
1796         * method-readonly.cc (class readonly_dispatch): Add
1797         trydropreference.
1798         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1799         Call trydropreference().
1800         * libitm.h (_ITM_dropReferences): Remove const attribute.
1801         * method-serial.cc (class serial_dispatch): Add trydropreference.
1802         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1804 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1806         * memcpy.cc (do_memcpy): Comment.
1808 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1810         * barrier.tpl: Add comments throughout.
1812 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1814         * method-wbetl.cc (struct w_entry): Add comments.
1815         (trycommit): Same.
1816         (rollback): Same.
1818 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1820         * alloc_c.cc (_ITM_dropReferences): New.
1821         * libitm.map (_ITM_dropReferences): Add.
1822         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1823         * libitm_i.h (struct gtm_transaction): Declare
1824         drop_references_allocations and drop_references_local.
1825         * local.cc (rollback_local): Ignore memory when applicable.
1826         (drop_references_local): New.
1828 2010-06-23  Richard Henderson  <rth@redhat.com>
1830         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1831         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1832         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1833         * config/alpha/target.h: Likewise.
1834         * config/generic/tls.cc (gtm_mask_stack): Use it.
1836 2010-06-23  Richard Henderson  <rth@redhat.com>
1838         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1839         a mutex instead of trying a lock-free compare-and-swap on the list.
1840         (gtm_cacheline_page::operator delete): Likewise.
1842 2010-06-16  Richard Henderson  <rth@redhat.com>
1844         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1845         that overlap the libitm stack.
1846         * barrier.tpl: Mark incoming stack.
1847         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1848         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1849         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1850         * memcpy.cc, memset.cc: Likewise.
1851         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1852         * config/generic/tls.h (gtm_thread): Add stack_top member.
1853         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1854         * libitm_i.h (gtm_mask_stack): Declare.
1855         * config/generic/tls.cc: New file.
1856         * Makefile.am (libitm_la_SOURCES): Add it.
1857         (AM_CXXFLAGS): Turn off exceptions.
1858         * Makefile.in: Rebuild.
1860 2010-06-16  Richard Henderson  <rth@redhat.com>
1862         * alloc.cc (struct gtm_alloc_action): Move definition ...
1863         * libitm_i.h: ... here.
1864         (class gtm_transaction): Declare new and delete.
1865         * beginend.cc (alloc_tx): Reformulate as operator new.
1866         (free_tx): Reformulate as operator delete.
1867         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1869 2010-06-11  Richard Henderson  <rth@redhat.com>
1871         * clone.cc (clone_entry_compare): Fix typo.
1872         From Patrik Marlier <patrick.marlier@unine.ch>.
1874 2010-05-13  Richard Henderson  <rth@redhat.com>
1876         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1877         in extern "C".
1879 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1881         * libitm_i.h (struct gtm_transaction): Remove
1882         get_allocation_size.
1883         (record_allocation): Remove size parameter.
1884         * libitm.map (_ITM_realloc): Remove.
1885         * alloc_c.cc (_ITM_realloc): Remove.
1886         (_ITM_malloc): Remove size argument to record_allocation.
1887         (_ITM_calloc): Same.
1888         * alloc_cpp.cc (_ZGTtnwm): Same.
1889         (_ZGTtnwmRKSt9nothrow_t): Same.
1890         (_ZGTtnam): Same.
1891         (_ZGTtnamRKSt9nothrow_t): Same.
1892         * alloc.cc (struct gtm_alloc_action): Remove size.
1893         (get_allocation_size): Remove.
1894         (commit_allocations): Add comment.
1895         (record_allocation): Remove size parameter.
1896         (forget_allocation): Remove set of size.
1898 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1900         * Makefile.am (abi_version): New.
1901         (AM_CXXFLAGS): Pass abi_version.
1902         * Makefile.in: Regenerate.
1903         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1905 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1907         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1908         _ITM_getTMCloneOrIrrevokable.
1909         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1910         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1912 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1914         * configure.ac: Remove Linux futex support.
1915         * configure.tgt (config_path): Same.
1916         * Makefile.am: Same.
1917         * config/linux: Remove entire directory.
1918         * configure: Rebuild.
1919         * Makefile.in: Rebuild.
1920         * testsuite/Makefile.in: Rebuild.
1922 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1924         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1925         switching to serial mode.
1926         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1928 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1930         * configure.tgt: Add emacs -*- tags.
1931         * barrier.tpl: Same.
1933 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1935         * Makefile.am: Rename serial.cc to method-serial.cc.
1936         * Makefile.in: Regenerate with automake 1.11.1.
1937         * testsuite/Makefile.in: Same.
1938         * aclocal.m4: Regenerate with aclocal 1.11.1.
1939         * method-serial.cc: Rename from serial.cc.
1940         * libitm_i.h (struct gtm_transaction): Update comment on
1941         serialirr_mode.
1943 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1945         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1946         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1948 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1950         * configure: Rebuild.
1952 2009-11-12  Richard Henderson  <rth@redhat.com>
1954         * Rewrite everything in C++.
1956 2009-11-03  Richard Henderson  <rth@redhat.com>
1958         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1959         * Makefile.am (libitm_la_SOURCES): Add them.
1960         * configure.ac (ARCH_X86): New conditional.
1961         * Makefile.in, configure: Rebuild.
1962         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1963         Move futex setup into "other system configury" case.
1964         * local.c (rollback_local): Merge into ...
1965         (GTM_rollback_local): ... here.
1966         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1967         (_ITM_LB): Define as an alias to GTM_LB.
1969 2009-11-03  Richard Henderson  <rth@redhat.com>
1971         * method-readonly.c: New file.
1972         * Makefile.am (libitm_la_SOURCES): Add it.
1973         * Makefile.in: Rebuild.
1974         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1975         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1976         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1977         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1978         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1979         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1980         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1981         gtm_get_clock, gtm_inc_clock): New.
1982         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1983         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1984         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1985         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1986         replace uses with new libitm_i.h symbols.
1987         (dispatch_wbetl): Rename from wbetl_dispatch.
1988         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1989         away from dispatch_readonly; abort if the beginTransaction call
1990         asserted that the transaction was readonly.
1992 2009-11-03  Richard Henderson  <rth@redhat.com>
1994         * memset.c: New file.
1995         * Makefile.am (libitm_la_SOURCES): Add it.
1996         * Makefile.in: Rebuild.
1997         * testsuite/libitm.c/memset-1.c: New.
1999 2009-11-03  Richard Henderson  <rth@redhat.com>
2001         * dispatch.c: Remove file.
2002         * useraction.c (struct gtm_user_action): Move from libitm.h.
2003         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2004         (serial_memset, serial_memmove, serial_memcpy): Remove.
2005         (serial_W*, serial_R*): Remove.
2006         (serial_dispatch): Update to match.
2007         * configure.ac: Move Werror down below configure checks.  Don't
2008         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2009         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2010         Use GCC_AC_FUNC_MMAP_BLACKLIST
2011         * libitm.h: Split out all internal items to...
2012         * libitm_i.h: ... here.  New file.
2013         * copymask.c: New file.
2014         * local.c (struct gtm_local_undo): Move from libitm.h.
2015         (GTM_alloc_local): Rename from alloc_local; export.
2016         * memcpy.c: New file.
2017         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2018         * config/posix/page.c: New file.
2019         * config/posix/target_tls.h: Remove file.
2020         * barrier.c: New file.
2021         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2022         copymask.c, page.c.
2023         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2024         * method-wbetl.c: Rewrite for new cacheline methods.
2025         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2027         * config/alpha/sjlj.S: Fix typo.
2028         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2029         * config/alpha/copymask.c: New file.
2030         * config/alpha/target.h (CACHELINE_SIZE): New.
2031         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2033         * config/x86/target_i.h: Copy functions from x86/target.h.
2034         * config/x86/copymask.c: New file.
2035         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2036         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2037         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2038         * config/x86/target_tls.h: Move contents to target_i.h.
2040         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2041         * testsuite/libitm.c/memcpy-1.c: New.
2043 2009-10-22  Richard Henderson  <rth@redhat.com>
2045         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2046         (AM_CCASFLAGS): New.
2047         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2048         saving/restoring _AC_ARG_VAR_PRECIOUS.
2049         * Makefile.in, aclocal.m4, config.h.in, configure,
2050         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2052 2009-10-22  Richard Henderson  <rth@redhat.com>
2054         * testsuite/*: Update for new compiler syntax.
2056 2009-10-21  Richard Henderson  <rth@redhat.com>
2058         * libitm.h (_ITM_abortReason): Add outerAbort.
2060 2009-08-03  Richard Henderson  <rth@redhat.com>
2062         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2063         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2064         * method-wbetl.c (struct w_entry): Remove mask.
2065         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2066         adjust all callers.
2068 2009-07-22  Richard Henderson  <rth@redhat.com>
2070         * eh_cpp.c: New file.
2071         * Makefile.am (libitm_la_SOURCES): Add it.
2072         * Makefile.in: Rebuild.
2073         * beginend.c (GTM_rollback_transaction): Undo exception state.
2074         (GTM_trycommit_transaction): Mark inline.
2075         (GTM_trycommit_and_finalize_transaction): Split out from ...
2076         (_ITM_commitTransaction): ... here.
2077         (_ITM_commitTransactionEH): New function.
2078         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2079         cxa_unthrown, eh_in_flight; reorder.
2081         * testsuite/libitm.c++/c++.exp: New.
2082         * testsuite/libitm.c++/eh-1.C: New.
2084         * aatree.c (aa_free): Remove REGPARM.
2085         * aatree.h: Remove all REGPARM.
2087 2009-07-18  Richard Henderson  <rth@redhat.com>
2089         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2090         * Makefile.am (libitm_la_SOURCES): Add them.
2091         * Makefile.in: Rebuild.
2092         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2093         (GTM_trycommit_transaction): Likewise.
2094         * libitm.h: Include aatree.h
2095         (struct gtm_alloc_action): New.
2096         (struct gtm_transaction): Add alloc_actions.
2097         (GTM_record_allocation, GTM_forget_allocation): Declare.
2098         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2099         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2100         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2101         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2102         _ZGTtdaPvRKSt9nothrow_t): Export.
2104 2009-07-18  Richard Henderson  <rth@redhat.com>
2106         * target_tls.h: Move ...
2107         * config/posix/target_tls.h: ... here.
2109 2009-07-07  Richard Henderson  <rth@redhat.com>
2111         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2113 2009-07-07  Richard Henderson  <rth@redhat.com>
2115         * Update to GPL3.
2117 2009-07-07  Richard Henderson  <rth@redhat.com>
2119         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2120         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2122         * configure.tgt: Don't use -ftls-model for x86 linux.
2123         * libitm.h: Include target.h after standard includes.
2124         (_gtm_thr): Rename from gtm_thr.
2125         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2126         (gtm_disp, set_gtm_disp): New.
2127         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2128         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2129         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2131 2009-07-07  Richard Henderson  <rth@redhat.com>
2133         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2135 2009-07-06  Richard Henderson  <rth@redhat.com>
2137         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2138         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2139         (_ITM_beginTransaction): Take variadic arguments.
2140         (_ITM_registerThrownObject): Declare.
2141         * beginend.c, serial.c: Update.
2142         * libitm.map: Add _ITM_registerThrownObject.
2144 2009-01-28  Richard Henderson  <rth@redhat.com>
2146         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2147         * Makefile.in: Rebuild.
2148         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2149         (GTM_restart_transaction): Fix uninstrumented code check.
2150         * retry.c (GTM_decide_retry_strategy): Add serial check.
2151         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2152         automatically go irrevokable when in serial mode.
2153         * clone.c: New file.
2154         * libitm.h, libitm.map: Update.
2156 2009-01-27  Richard Henderson  <rth@redhat.com>
2158         * Makefile.am (LTCCASCOMPILE): Define.
2159         (libitm_la_SOURCES): Add methid-wbetl.c.
2160         * testsuite/Makefile.am: New
2161         * configure.ac: Add testsuite/Makefile.
2162         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2163         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2164         (_ITM_abortTransaction): Finalize implementation method; pass
2165         transaction properties to longjmp.
2166         (GTM_restart_transaction): Split out from ...
2167         (_ITM_commitTransaction): ... here.
2168         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2169         Move to config/x86/target.h.
2170         * config/linux/alpha/futex_bits.h: New.
2171         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2172         * config/x86/target.h: Disable target types for 32-bit.
2173         * config/alpha/sjlj.S, config/alpha/target.h: New.
2174         * libitm.h (struct gtm_dispatch): Add init, fini.
2175         (enum restart_reason): New.
2176         (struct gtm_transaction): Add method and restarts.
2177         * retry.c (GTM_decide_retry_strategy): Implement.
2178         * serial.c (serial_init, serial_fini): New.
2179         (GTM_serialmode): Finialize outgoing method.
2180         * method-wbetl.c: New.
2182 2008-12-09  Richard Henderson  <rth@redhat.com>
2184         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2185         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2186         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2187         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2188         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2189         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2190         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2191         * serial.c (serial_R##T, serial_W##T): Likewise.
2193 2008-11-21  Richard Henderson  <rth@redhat.com>
2195         * Initial commit.
2197 Copyright (C) 2008-2019 Free Software Foundation, Inc.
2199 Copying and distribution of this file, with or without modification,
2200 are permitted in any medium without royalty provided the copyright
2201 notice and this notice are preserved.