Support TI mode and soft float on PA64
[official-gcc.git] / libitm / ChangeLog
blobcffd7e1afa9e3c62cc7a6857c369156cc7aac180
1 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
3         PR libstdc++/91488
4         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
6 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
8         PR target/70454
9         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
10         be added through preprocessor check on
11         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15         * configure: Re-generate.
17 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
19         * libitm.texi: Bump @copying's copyright year.
21 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
23         PR target/97865
24         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
25         * configure: Regenerate.
27 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
29         * configure: Regenerate.
31 2020-10-01  Alan Modra  <amodra@gmail.com>
33         * config/powerpc/sjlj.S: Support __PCREL__ code.
35 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
37         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
39 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
41         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
42         and add BTI c to function entries.
44 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
46         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
48 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
50         PR bootstrap/95413
51         * configure: Regenerated.
53 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
55         PR bootstrap/95147
56         * configure: Regenerated.
58 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
60         * configure: Regenerated.
62 2020-05-12  Nathan Sidwell  <nathan@acm.org>
64         Fix throw specifiers on interface.
65         * libitm/libitm.h (_ITM_NOTHROW): Define.
66         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
67         (_ITM_cxa_begin_catch): Use it.
68         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
69         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
70         __cxa_get_globals.
71         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
72         (_ITM_cxa_begin_catch): Likewise.
74 2020-05-05  Nathan Sidwell  <nathan@acm.org>
76         * testsuite/lib/libitm.exp (libitm_init): Add
77         -fdiagnostics-color=never to options.
79 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
81         PR libstdc++/79193
82         PR libstdc++/88999
84         * configure: Regenerated.
86 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
88         * configure.ac: Handle `--with-toolexeclibdir='.
89         * Makefile.in: Regenerate.
90         * aclocal.m4: Regenerate.
91         * configure: Regenerate.
92         * testsuite/Makefile.in: Regenerate.
94 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
96         Update copyright years.
98         * libitm.texi: Bump @copying's copyright year.
100 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
102         PR libgomp/91938
103         * configure.tgt: Avoid IE tls on *-*-musl*.
105 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
107         * configure: Regenerate.
109 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
111         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
113 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
115         * configure.tgt: Handle *-*-uclinux*.
116         * configure: Regenerate.
118 2019-09-06  Florian Weimer  <fweimer@redhat.com>
120         * configure: Regenerate.
122 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
124         PR other/79543
125         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
126         scanning to conform to the GNU Coding Standards.
127         * configure: Regenerate.
129 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
131         * Makefile.am (finclude): Remove.
132         * Makefile.in: Regenerated.
134 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
136         Update copyright years.
138 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
140         * libitm.texi: Bump @copying's copyright year.
142 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
144         PR c++/88482
145         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
146         void * to void (*) (void *).
147         (_ITM_cxa_throw): Likewise.
148         * libitm.h (_ITM_cxa_throw): Likewise.
149         * libitm.texi (_ITM_cxa_throw): Likewise.
151 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
153         * config/powerpc/target.h (htm_available):  Add support for
154         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
156 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
158         PR bootstrap/82856
159         * Makefile.am: Include multilib.am.
160         (AUTOMAKE_OPTIONS): Add info-in-builddir.
161         (CLEANFILES): Remove libitm.info.
162         * configure.ac: Remove AC_PREREQ.
163         * testsuite/Makefile.am (RUNTEST): Remove quotes.
164         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
165         Regenerate.
167 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
169         PR libitm/86293
170         * method-serial.cc: Mark varible as potentially unused
171         to silence warning.
173 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
175         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
176         absolute relocation in a shared library.
178 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
180         PR libitm/85988
181         * config/linux/x86/tls.h (SEG_READ): Use the offset of
182         __private_tm as base.
183         (SEG_WRITE): Likewise.
184         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
185         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
186         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
187         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
188         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
190 2018-05-17  Jason Merrill  <jason@redhat.com>
192         * beginend.cc (save): Disable -Werror=deprecated-copy.
194 2018-05-02  Tom de Vries  <tom@codesourcery.com>
196         PR testsuite/85106
197         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
199 2018-05-02  Tom de Vries  <tom@codesourcery.com>
201         PR testsuite/85106
202         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
204 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
206         * config/x86/sjlj.S (_ITM_beginTransaction): Add
207         (__CET__ & 2) != 0 check for shadow stack.
208         (GTM_longjmp): Likewise.
210 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
212         * configure: Regenerated.
214 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
216         PR target/85489
217         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
219 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
221         * configure: Regenerated.
223 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
225         PR jit/85384
226         * configure: Regenerate.
228 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
230         PR target/84148
231         * configure: Regenerate.
233 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
235         Update copyright years.
237         * libitm.texi: Bump @copying's copyright year.
239 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
241         * Makefile.in: Regenerate.
242         * acinclude.m4: Add enable.m4 and cet.m4.
243         * config/x86/sjlj.S: Include cet.h.
244         (_ITM_beginTransaction): Add _CET_ENDBR.
245         Save Shadow Stack pointer.
246         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
247         * config/x86/target.h (struct gtm_jmpbuf):
248         Add new field for Shadow Stack pointer.
249         * configure: Regenerate.
250         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
251         * configure.ac: Update libtool_VERSION for x86.
252         * testsuite/Makefile.in: Regenerate.
254 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
256         * libitm/config/x86/target.h: Add new field (ssp).
257         * libitm/config/x86/sjlj.S: Change offsets.
259 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
261         * testsuite/lib/libitm.exp: Load scanlang.exp.
263 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
265         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
267 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
269         PR other/79046
270         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
271         of cat to get version from BASE-VER file.
272         * testsuite/Makefile.in: Regenerated.
274 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
276         * config/x86/target.h (htm_available): Determine vendor from
277         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
279 2017-01-18  Torvald Riegel  <triegel@redhat.com>
281         * config/x86/target.h (htm_available): Add check for some processors
282         on which TSX is broken.
284 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
286         PR other/79046
287         * configure.ac: Add GCC_BASE_VER.
288         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
289         get version from BASE-VER file.
290         * testsuite/Makefile.in: Regenerated.
291         * configure: Regenerated.
292         * Makefile.in: Regenerated.
294 2017-01-04  Alan Modra  <amodra@gmail.com>
296         * Makefile.in: Regenerate.
297         * testsuite/Makefile.in: Regenerate.
299 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
301         Update copyright years.
303         * libitm.texi: Bump @copying's copyright year.
305 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
307         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
308         * aclocal.m4: Regenerate.
309         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
310         LIBITM_CHECK_LINKER_HWCAP.
312 2016-11-15  Matthias Klose  <doko@ubuntu.com>
314         * configure: Regenerate.
316 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
318         PR libitm/70456
319         * util.cc (xmalloc): Use posix_memalign to allocate memory on
320         on cache line if requested.
322 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
324         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
325         function attribute to disable floating point in begin_transaction() on
326         S/390.
327         * beginend.cc (begin_transaction): Use
328         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
330 2016-01-22  Torvald Riegel  <triegel@redhat.com>
332         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
333         boundary.
334         (htm_fastpath): Remove.
335         (gtm_thread::begin_transaction): Fix HTM fastpath.
336         (_ITM_commitTransaction): Adapt.
337         (_ITM_commitTransactionEH): Adapt.
338         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
339         and accessors.
340         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
341         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
342         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
343         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
344         * libitm/method-serial.cc (htm_mg): Adapt.
345         (gtm_thread::serialirr_mode): Adapt.
346         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
348 2016-01-21  Torvald Riegel  <triegel@redhat.com>
350         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
351         or AIX.
353 2016-01-19  Richard Henderson  <rth@redhat.com>
355         PR bootstrap/69343
356         PR bootstrap/69339
357         Revert:
358         2016-01-13  Richard Henderson  <rth@redhat.com>
360         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
361         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
362         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
363         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
364         * configure.ac (ARCH_AARCH64): New conditional.
365         (ARCH_PPC, ARCH_S390): Likewise.
366         * Makefile.in, configure: Rebuild.
368         * libitm.h (_ITM_TYPE_M128): Always define.
369         * vect64.cc: Split ...
370         * vect128.cc: ... out of...
371         * config/x86/x86_sse.cc: ... here.
372         * config/arm/neon.cc: New file.
374 2016-01-19  Torvald Riegel  <triegel@redhat.com>
376         * local_type_traits: Remove file.
377         * libitm_i.h: Don't include it anymore.
378         (sized_integral): Remove.
380 2016-01-16  Torvald Riegel  <triegel@redhat.com>
382         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
383         safety.
384         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
385         * libitm/testsuite/libitm.c/priv-1.c: New.
387 2015-01-15  Torvald Riegel  <triegel@redhat.com>
389         testsuite/libitm.c++/libstdc++-safeexc.C: New.
391 2016-01-13  Torvald Riegel  <triegel@redhat.com>
393         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
394         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
395         (gtm_rwlock::write_unlock): Likewise.
397 2016-01-13  Richard Henderson  <rth@redhat.com>
399         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
400         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
401         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
402         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
403         * configure.ac (ARCH_AARCH64): New conditional.
404         (ARCH_PPC, ARCH_S390): Likewise.
405         * Makefile.in, configure: Rebuild.
407         * libitm.h (_ITM_TYPE_M128): Always define.
408         * vect64.cc: Split ...
409         * vect128.cc: ... out of...
410         * config/x86/x86_sse.cc: ... here.
411         * config/arm/neon.cc: New file.
413 2016-01-13  Torvald Riegel  <triegel@redhat.com>
415         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
416         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
417         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
418         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
419         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
420         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
421         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
422         (serialirr_dispatch::snapshot_most_recent): New.
423         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
425 2016-01-12  Torvald Riegel  <triegel@redhat.com>
427         * libitm_i.h (gtm_mask_stack): Remove.
428         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
429         * stmlock.h: Remove file.
430         * config/alpha/cacheline.h: Likewise.
431         * config/generic/cacheline.h: Likewise.
432         * config/powerpc/cacheline.h: Likewise.
433         * config/sparc/cacheline.h: Likewise.
434         * config/x86/cacheline.h: Likewise.
436 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
438         Update copyright years.
440         * libitm.texi: Bump @copying's copyright year.
442 2015-11-26  Torvald Riegel  <triegel@redhat.com>
444         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
445         (ml_wt_dispatch::pre_write): Adapt.
446         (ml_wt_dispatch::pre_load): Likewise.
448 2015-11-22  Torvald Riegel  <triegel@redhat.com>
450         * libitm_i.h (gtm_alloc_action): Remove union.
451         * testsuite/libitm.c/alloc-1.c: New.
453 2015-11-19  Torvald Riegel  <triegel@redhat.com>
455         * testsuite/libitm.c++/eh-5.C: New.
456         * libitm.h (_ITM_cxa_free_exception): New.
457         * libitm.map (_ITM_cxa_free_exception): Add it.
458         * libitm.texi: Update ABI docs.
459         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
460         (gtm_transaction_cp::cxa_uncaught_count): Add.
461         (gtm_thread::cxa_unthrown): Remove.
462         (gtm_thread::cxa_uncaught_count_ptr): Add.
463         (gtm_thread::cxa_uncaught_count): Add.
464         (gtm_thread::drop_references_allocations): Rename to...
465         (gtm_thread::discard_allocation): ... this and adapt.
466         (gtm_thread::init_cpp_exceptions): New.
467         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
468         (gtm_thread::begin_transaction): Likewise.
469         (gtm_transaction_cp::save): Likewise.
470         (gtm_thread::trycommit): Likewise.
471         * eh_cpp.cc: Add overview comments.
472         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
473         (free_any_exception, _ITM_cxa_free_exception): New.
474         (gtm_thread::init_cpp_exceptions): Define.
475         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
476         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
477         (gtm_thread::revert_cpp_exceptions): Likewise.
479 2015-11-09  Torvald Riegel  <triegel@redhat.com>
481         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
482         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
483         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
484         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
485         (gtm_thread::forget_allocations): New overload with size_t argument.
486         * alloc.c (gtm_thread::forget_allocation): Define new overload and
487         adapt existing one.
488         (gtm_thread::record_allocation): Adapt.
489         (gtm_thread::commit_allocations_1): Adapt.
490         (gtm_thread::commit_allocations_2): Adapt.
491         * testsuite/libitm.c++/newdelete.C: New.
493 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
494             Joseph Myers  <joseph@codesourcery.com>
495             Mark Shinwell  <shinwell@codesourcery.com>
496             Andrew Stubbs  <ams@codesourcery.com>
497             Rich Felker <dalias@libc.org>
499         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
500         GTM_begin_transaction for compatibility with FDPIC.
502 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
504         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
505         using load_gcc_lib.
507 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
509         PR libitm/61164
510         * local_atomic (__always_inline): Rename to...
511         (__libitm_always_inline): ... this.
513 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
515         PR target/52482
516         * config/powerpc/sjlj.S: Port to Xcode 2.5.
518 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
520         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
521         operands "op" and "val" to int.
523 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
525         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
526         "op" and "val" to int.
528 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
530         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
531         "op" and "val" to int.
533 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
535         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
536         Declare as static int.
537         (FUTEX_PRIVATE_FLAG): Remove L suffix.
538         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
540 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
542         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
543         sys_futex0 function.
545 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
547         * Makefile.in: Regenerated with automake-1.11.6.
548         * aclocal.m4: Likewise.
549         * configure: Likewise.
550         * testsuite/Makefile.in: Likewise.
552 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
554         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
555         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
557 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
559         PR libitm/64360
560         * libitm.c/stackundo.c (test2): Make it static.
561         (test1): Likewise.
563 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
565         Update copyright years.
567 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
569         * libitm.texi: Bump @copying's copyright year.
571 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
573         * testsuite/lib/libitm.exp: Load target-utils.exp.
574         Move load of target-supports.exp earlier.
576 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
578         * configure.tgt (x86_64): Tune -m32 multilib to generic.
580 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
582         PR bootstrap/63784
583         * configure: Regenerated.
585 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
587         PR target/63610
588         * configure: Regenerate.
590 2014-10-06  Marek Polacek  <polacek@redhat.com>
592         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
593         * testsuite/libitm.c/memset-1.c: Likewise.
595 2014-07-24  Richard Henderson  <rth@redhat.com>
597         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
598         addressing mode in epilogue.
600 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
602         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
603         -mclear-hwcap instead.
604         * configure: Regenerate.
605         * clearcap.map: Remove.
607 2014-05-21  John Marino  <gnugcc@marino.st>
609         * configure.tgt (*-*-dragonfly*): New target.
611 2014-05-19  Richard Henderson  <rth@redhat.com>
613         * config/aarch64/sjlj.S: New file.
614         * config/aarch64/target.h: New file.
615         * configure.tgt: Enable aarch64.
617 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
619         * config/generic/asmcfi.h: Also check for
620         __GCC_HAVE_DWARF2_CFI_ASM.
622 2013-04-02  Richard Henderson  <rth@redhat.com>
624         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
625         * config/arm/target.h, config/sh/target.h: Likewise.
626         * config/sparc/target.h, config/x86/target.h: Likewise.
628 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
630         * config/linux/futex_bits.h: Include errno.h.
631         (sys_futex0): If syscall returns -1, return -errno rather than
632         -1.
634 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
636         * libitm.texi (Index): Rename to Library Index.
638 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
640         PR libitm/53113
641         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
642         (x86_avx.lo): Append -mavx to CXXFLAGS.
643         * Makefile.in: Regenerate.
645 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
647         Update copyright years
649 2014-01-02  Tobias Burnus  <burnus@net-b.de>
651         * libitm.texi: Bump @copying's copyright year.
653 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
655         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
656         (FUNC): Define ELFv2 variant.
657         (END): Likewise.
658         (HIDDEN): Likewise.
659         (CALL): Likewise.
660         (BASE): Likewise.
661         (LR_SAVE): Likewise.
663 2013-09-20  Alan Modra  <amodra@gmail.com>
665         * configure: Regenerate.
667 2013-08-30  Torvald Riegel  <triegel@redhat.com>
669         * config/posix/rwlock.cc: Fix initialization order.
671 2013-08-30  Torvald Riegel  <triegel@redhat.com>
673         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
674         (htm_fastpath): Assign an asm name.
675         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
676         HTM fast paths.
677         (_ITM_actions): Likewise.
678         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
679         x86_64.
680         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
681         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
682         field to the start of the structure.
683         * config/linux/rwlock.h (gtm_rwlock): Update comments.
684         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
685         handling for custom HTM fast paths.
687 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
688         Revert:
689         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
691         * configure.tgt: Add -msoft-float to XCFLAGS.
693 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
695         * configure.tgt: Add -msoft-float to XCFLAGS.
697 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
699         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
700         (htm_transaction_active): Enable zEC12 instructions in the
701         assembler.
702         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
704 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
706         * acinclude.m4: Add htm asm check for s390.
707         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
708         * configure: Regenerate.
709         * config/s390/target.h: Remove __HTM__ check.
710         (htm_available): Call getauxval to get hwcaps and check whether
711         HTM is available or not.
713 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
715         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
716         * configure.ac: Use it.
717         (AC_CHECK_HEADERS): Check for sys/auxv.h.
718         (AC_CHECK_FUNCS): Check for getauxval.
719         * config.h.in, configure: Rebuild.
720         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
721         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
722         (USE_HTM_FASTPATH): Define.
723         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
724         _HTM_RETRIES) New macros.
725         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
726         htm_begin_success, htm_commit, htm_transaction_active): New functions.
728 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
730         * config/s390/target.h: Include htmintrin.h.
731         (_HTM_ITM_RETRIES): New macro definition.
732         (htm_available, htm_init, htm_begin, htm_begin_success)
733         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
735 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
736             Cesar Philippidis  <cesar@codesourcery.com>
738         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
739         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
740         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
741         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
743 2013-06-20  Torvald Riegel  <triegel@redhat.com>
745         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
746         (_ITM_getTransactionId): Same.
747         * config/x86/target.h (htm_transaction_active): New.
749 2013-06-20  Torvald Riegel  <triegel@redhat.com>
751         PR libitm/57643
752         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
753         the HTM fastpath.
755 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
757         PR bootstrap/56714
758         * local_atomic (__always_inline): Always define our version.
759         (__calculate_memory_order): Mark inline.
760         (atomic_thread_fence): Ditto.
761         (atomic_signal_fence): Ditto.
762         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
763         (atomic_bool::atomic_flag_clear_explicit): Ditto.
764         (atomic_bool::atomic_flag_test_and_set): Ditto.
765         (atomic_bool::atomic_flag_clear): Ditto.
767 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
769         * config/s390/sjlj.S: New file.
770         * config/s390/target.h: New file.
771         * configure.tgt: Set options for S/390.
773 2013-03-23  Andi Kleen  <ak@linux.intel.com>
775         * local_atomic (__always_inline): Add.
776         (__calculate_memory_order, atomic_thread_fence,
777          atomic_signal_fence, test_and_set, clear, store, load,
778          exchange, compare_exchange_weak, compare_exchange_strong,
779          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
780         Add __always_inline to force inlining.
782 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
783             Jack Howarth  <howarth@bromo.med.uc.edu>
784             Patrick Marlier  <patrick.marlier@gmail.com>
786         PR libitm/55693
787         * alloc_cpp.cc: Enable function declarations on darwin.
788         * eh_cpp.cc: Likewise.
790 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
792         Update copyright years.
794 2012-11-09  Torvald Riegel  <triegel@redhat.com>
796         * beginend.cc (htm_fastpath): New.
797         (gtm_thread::begin_transaction, _ITM_commitTransaction,
798         _ITM_commitTransactionEH): Add HTM fastpath handling.
799         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
800         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
801         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
802         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
803         * configure.tgt: Add -mrtm to XCFLAGS.
804         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
805         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
806         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
807         * retry.cc (parse_default_method): Add HTM method parsing.
808         (gtm_thread::number_of_threads_changed): Use HTM by default if
809         available.
811 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
813         * configure: Regenerate.
815 2012-10-31  Richard Henderson  <rth@redhat.com>
817         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
818         * configure.ac: Use it.
819         * config.h.in, configure: Rebuild.
820         * testsuite/Makefile.in: Rebuild.
822 2012-10-24  Torvald Riegel  <triegel@redhat.com>
824         * libitm.texi: Clarify ABI requirements for data-logging functions.
826 2012-10-24  Torvald Riegel  <triegel@redhat.com>
828         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
829         it requires serial mode instead of assuming that for certain
830         dispatchs.
831         * dispatch.h (abi_dispatch::requires_serial): New.
832         (abi_dispatch::abi_dispatch): Adapt.
833         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
834         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
835         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
836         serial_dispatch::serial_dispatch,
837         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
839 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
841         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
842         and ia32 declarations some more.
843         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
845 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
847         PR other/43620
848         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
849         * configure: Regenerate.
850         * Makefile.in: Regenerate.
852 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
854         * configure: Regenerated.
856 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
858         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
860 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
862         * eh_cpp.cc: Fix __cxa_end_catch declaration.
864 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
866         * configure: Regenerated.
868 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
870         PR libitm/52854
871         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
872         for x86-64.
874 2012-04-03  Tristan Gingold  <gingold@adacore.com>
876         * configure: Regenerate.
878 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
880         PR bootstrap/52812
881         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
883 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
885         * testsuite/lib/libitm.exp: load fortran-modules.exp
887 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
889         * configure.tgt (*-*-irix6*): Remove.
891 2012-03-13  Torvald Riegel  <triegel@redhat.com>
893         PR libitm/52526
894         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
895         wake-up.
897 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
899         * configure.tgt (*-*-osf*): Remove.
900         * configure: Regenerate.
902 2012-03-05  Torvald Riegel  <triegel@redhat.com>
904         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
905         memtransfer/memset if size isn't larger than zero.
907 2012-03-02  Torvald Riegel  <triegel@redhat.com>
909         * libitm.texi: Link to specification and add a usage example.
911 2012-02-24  Torvald Riegel  <triegel@redhat.com>
913         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
914         default dispatch for more than 1 thread to ml_wt.
916 2012-02-20  Torvald Riegel  <triegel@redhat.com>
918         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
920 2012-02-20  Torvald Riegel  <triegel@redhat.com>
922         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
924 2012-02-20  Torvald Riegel  <triegel@redhat.com>
926         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
927         serial mode corner cases made obsolete by prior gtm_rwlock changes.
928         (gl_wt_dispatch.rollback): Same.
930 2012-02-20  Torvald Riegel  <triegel@redhat.com>
932         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
934 2012-02-20  Torvald Riegel  <triegel@redhat.com>
936         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
937         for RfW src.  Optimize number of calls to gtm_thr.
939 2012-02-20  Torvald Riegel  <triegel@redhat.com>
941         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
942         acquisition to ...
943         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
944         (default_dispatch): Make atomic.
945         (GTM::gtm_thread::set_default_dispatch): Access atomically.
946         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
947         use decide_begin_dispatch() if default_dispatch might have changed.
948         (GTM::gtm_thread::number_of_threads_changed): Initialize
949         default_dispatch here.
951 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
952             Patrick Marlier  <patrick.marlier@gmail.com>
954         PR libitm/52220
955         * alloc_cpp.cc: No dummy definitions for darwin.
956         * eh_cpp.cc: Likewise.
958 2012-02-14  Richard Henderson  <rth@redhat.com>
960         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
962 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
964         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
966 2012-02-14  Torvald Riegel  <triegel@redhat.com>
968         * libitm_i.h (GTM::gtm_rwlog_entry): New.
969         (GTM::gtm_thread): Add read and write logs.
970         (GTM::dispatch_ml_wt): Declare.
971         * retry.cc (parse_default_method): Support ml_wt.
972         * method-ml.cc: New file.
973         * Makefile.am: Add method-ml.cc.
974         * Makefile.in: Regenerate.
976 2012-02-14  Torvald Riegel  <triegel@redhat.com>
978         * dispatch.h (GTM::abi_dispatch::supports): New.
979         (GTM::method_group::reinit): New.
980         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
981         (GTM::gtm_thread::number_of_threads_changed): Check that the method
982         supports the current situation.
984 2012-02-14  Torvald Riegel  <triegel@redhat.com>
986         * util.cc (GTM::xcalloc): New.
987         * common.h (GTM::xcalloc): Declare.
989 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
991         * config/sparc/target.h (cpu_relax): Read from CC register.
992         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
994 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
996         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
998 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1000         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1001         * config/sparc/cacheline.h: New file.
1002         * config/sparc/target.h: Likewise.
1003         * config/sparc/sjlj.S: Likewise.
1004         * config/linux/sparc/futex_bits.h: Likewise.
1006 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1008         * configure.ac (link_itm): Fix comment.
1009         * configure: Regenerate.
1010         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1012 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1014         PR libitm/51822
1015         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1016         Correct libgomp references.
1018 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1020         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1021         wake-up.
1023 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1025         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1026         end of structure.
1027         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1028         offset values.  Do not copy return address.  Decrement stack
1029         by 56 bytes only.
1030         (GTM_longjump) [__x86_64__]: Update offset values.
1032 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1034         PR libitm/51830
1035         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1036         the first function argument to %eax.
1038 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1040         * libitm.h (_ITM_getThreadnum): Remove.
1041         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1043 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1045         * clearcap.map: New file.
1046         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1047         * configure.ac: Call it.
1048         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1049         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1050         * configure: Regenerate.
1051         * Makefile.in: Regenerate.
1052         * testsuite/Makefile.in: Regenerate.
1054 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1056         PR libitm/51173
1057         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1058         include, exclude options.
1060 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1062         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1063         rolling back.
1064         * containers.h (GTM::vector::set_size): New.
1066 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1068         PR libitm/51855
1069         * config/generic/tls.h (GTM::mask_stack_top): New.
1070         (GTM::mask_stack_bottom): Declare.
1071         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1072         * local.cc (gtm_undolog::rollback): Filter out any updates that
1073         overlap the libitm stack.  Add current transaction as parameter.
1074         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1075         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1076         * testsuite/libitm.c/stackundo.c: New test.
1078 2012-01-10  Richard Henderson  <rth@redhat.com>
1080         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1081         * eh_cpp.cc (_Unwind_DeleteException): Define for
1082         !HAVE_ELF_STYLE_WEAKREF.
1084 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1086         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1087         (GTM::gtm_thread::drop_references_undolog): Remove.
1088         (GTM::gtm_thread::commit_undolog,
1089         GTM::gtm_thread::rollback_undolog): Move to ...
1090         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1091         (GTM::gtm_undolog_entry): Remove.
1092         (GTM::gtm_thread): Adapt.
1093         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1094         (GTM::gtm_thread::trycommit): Adapt.
1095         * method-serial.cc (serial_dispatch::log): Adapt.
1096         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1097         (gl_wt_dispatch::store): Fix likely/unlikely.
1098         * containers.h (GTM::vector::resize): Add additional_capacity
1099         parameter and handle it.
1100         (GTM::vector::resize_noinline): New/adapt.
1101         (GTM::vector::push): New.
1103 2012-01-06  Richard Henderson  <rth@redhat.com>
1105         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1106         * config/linux/powerpc/futex_bits.h: New file.
1107         * config/powerpc/cacheline.h: New file.
1108         * config/powerpc/sjlj.S: New file.
1109         * config/powerpc/target.h: New file.
1110         * config/generic/asmcfi.h (cfi_offset): New.
1111         (cfi_restore, cfi_undefined): New.
1113 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1115         PR other/51171
1116         * testsuite/libitm.c/reentrant.c: Remove xfail.
1117         (thread): Pass x to pure().
1118         From Patrik Marlier <patrick.marlier@gmail.com>.
1120 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1122         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1123         privatization safety if already in serial mode.
1125 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1127         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1128         finish_serial_upgrade parameter.
1129         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1130         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1131         Don't unset reader flag.
1132         (GTM::gtm_rwlock::write_upgrade_finish): New.
1133         * config/posix/rwlock.cc: Same.
1134         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1135         Declare.
1136         * config/posix/rwlock.h: Same.
1137         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1138         flag after commit or after rollback when restarting.
1140 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1142         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1143         (GTM::gtm_thread::try_commit): Changed memory order.
1144         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1145         as parameter.
1146         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1147         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1148         * config/linux/futex_bits.h (sys_futex0): Same.
1149         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1150         * config/linux/futex.h (futex_wait, futex_wake): Same.
1151         * config/linux/rwlock.h (gtm_rwlock::writers,
1152         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1153         ints.
1154         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1155         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1156         gtm_rwlock::write_unlock): Fix memory orders and fences.
1157         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1158         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1159         gtm_rwlock::write_unlock): Same.
1160         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1161         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1162         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1163         Add comments.
1164         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1165         gl_wt_dispatch::load, gl_wt_dispatch::store,
1166         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1167         orders and fences.  Add comments.
1169 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1171         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1172         * Makefile.in: Regenerated.
1174 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1176         * configure.tgt: Add sh* case.
1177         * config/sh/target.h: New file.
1178         * config/sh/sjlj.S: New file.
1179         * config/linux/sh/futex_bits.h: New file.
1181 2011-12-14  Richard Henderson  <rth@redhat.com>
1183         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1184         * config/arm/sjlj.S, config/arm/target.h: New files.
1185         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1186         (cfi_rel_offset): New.
1187         * config/linux/futex_bits.h: New file.
1188         * config/linux/futex.cc: Include futex_bits.h here...
1189         * config/linux/futex.h: ... not here.
1190         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1191         * configure.ac (ARCH_AM): New conditional.
1192         * Makefile.in, configure: Rebuild.
1193         * configure.tgt: Handle ARM.
1195 2011-12-13  Richard Henderson  <rth@redhat.com>
1197         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1198         signed/unsigned comparison werror.
1200         * local_atomic: New file.
1201         * libitm_i.h: Include it.
1202         (gtm_thread::shared_state): Use atomic template.
1203         * beginend.cc (GTM::gtm_clock): Use atomic template.
1204         (global_tid): Use atomic template if 64-bit atomics available.
1205         (gtm_thread::gtm_thread): Update shared_state access.
1206         (gtm_thread::trycommit): Likewise.
1207         (choose_code_path): Update global_tid access.
1208         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1209         * stmlock.h (GTM::gtm_clock): Use atomic template.
1210         (gtm_get_clock, gtm_inc_clock): Update accesses.
1211         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1212         redundant __sync_synchronize after atomic shared_state access.
1213         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1214         (gtm_rwlock::write_lock_generic): Likewise.
1215         (gtm_rwlock::read_unlock): Likewise.
1216         * config/alpha/target.h (atomic_read_barrier): Remove.
1217         (atomic_write_barrier): Remove.
1218         * config/x86/target.h (atomic_read_barrier): Remove.
1219         (atomic_write_barrier): Remove.
1221 2011-11-30  Richard Henderson  <rth@redhat.com>
1223         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1224         * beginend.c (_ITM_abortTransaction): Update to match.
1225         (GTM::gtm_thread::restart): Likewise.
1226         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1227         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1229 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1231         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1232         * Makefile.in: Regenerate.
1234 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1236         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1237         * alloc_cpp.cc: Generate dummy functions if we don't
1238         HAVE_ELF_STYLE_WEAKREF.
1239         * eh_cpp.cc: Likewise.
1240         * configure: Regenerate.
1241         * aclocal.m4:  Likewise.
1242         * config.h.in: Likewise.
1243         * Makefile.in: Likewise.
1244         * testsuite/Makefile.in: Likewise.
1246 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1248         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1249         __USER_LABEL_PREFIX__ for targets that use it.
1250         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1251         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1252         in portability to non-elf targets.
1253         (GTM_longjmp): Likewise.
1254         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1255         where required.
1257 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1259         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1260         * testsuite/libitm.c/memset-1.c: Likewise.
1262 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1264         * configure: Regenerate.
1266 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1268         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1269         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1270         * Makefile.am: Handle sun style versioning.
1271         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1272         * configure: Regenerate.
1273         * Makefile.in: Regenerate.
1275 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1277         * config/generic/asmcfi.h: Fix comment.
1278         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1279         sequence without .hidden support, error for non-ELF targets.
1280         (GTM_longjmp) [__ELF__]: Only use .hidden if
1281         HAVE_ATTRIBUTE_VISIBILITY.
1283 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1285         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1286         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1287         Dummy functions.
1288         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1289         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1291 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1293         PR bootstrap/51098
1294         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1295         * configure: Regenerate.
1297 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1299         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1301 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1303         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1304         .hidden.
1305         (.note.GNU-stack): Only use if __linux__.
1306         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1307         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1308         * testsuite/libitm.c/reentrant.c: Likewise.
1309         * testsuite/libitm.c/simple-2.c: Likewise.
1310         * testsuite/libitm.c/txrelease.c: Likewise.
1311         * testsuite/libitm.c++/static_ctor.C: Likewise.
1313 2011-11-10  Richard Henderson  <rth@redhat.com>
1315         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1316         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1317         * configure.ac (ARCH_X86_AVX): New conditional.
1318         * Makefile.in, configure: Rebuild.
1320 2011-11-09  Richard Henderson  <rth@redhat.com>
1322         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1323         * configure.ac: Use it.
1324         * config.h.in, configure: Rebuild.
1325         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1327 2011-11-09  Richard Henderson  <rth@redhat.com>
1329         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1330         * config/alpha/unaligned.h: Remove file.
1331         * config/generic/unaligned.h: Remove file.
1332         * config/x86/unaligned.h: Remove file.
1333         * config/generic/cachepage.h: Remove file.
1334         * config/posix/cachepage.cc: Remove file.
1335         * config/generic/cacheline.cc: Remove file.
1336         * config/x86/cacheline.cc: Remove file.
1337         * config/generic/cacheline.h (gtm_cacheline): Remove the
1338         store_mask, copy_mask, copy_mask_wb methods.
1339         * config/x86/cacheline.h: Likewise.
1340         * config/alpha/cacheline.h: Fall back to generic after setting size.
1341         * config/generic/tls.cc (gtm_mask_stack): Remove.
1342         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1343         (GTM_vpalignr_table): Remove.
1344         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1345         (GTM_pshift_table): Remove.
1346         * config/libitm_i.h: Don't include cachepage.h.
1347         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1348         * Makefile.in, testsuite/Makefile.in: Rebuild.
1350 2011-11-09  Richard Henderson  <rth@redhat.com>
1352         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1353         to emit branch prediction hint.
1355         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1356         Protect .note.GNU-stack with __linux__.
1358         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1359         * configure, aclocal.m4, config.h.in: Rebuild.
1360         * config/generic/asmcfi.h: New file.
1361         * config/x86/sjlj.S: Use it.
1363 2011-11-08  Richard Henderson  <rth@redhat.com>
1365         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1367 2011-11-08  Richard Henderson  <rth@redhat.com>
1369         * configure.tgt: Test correct directory for supported cpus.
1371         * configure.ac: Exit if unsupported.
1372         * configure: Rebuild.
1373         * configure.tgt: Delete boilerplate from libgomp for unsupported
1374         targets.  Set UNSUPPORTED for unsupported targets.
1376 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1378         * configure.tgt: Handle i386 like i[456]86.
1379         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1380         take address.
1381         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1382         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1384 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1386         * method-wbetl.cc: Update copyright notice.
1387         * aatree.cc: Same.
1388         * util.cc: Same.
1389         * libitm.h: Same.
1390         * memset.cc: Same.
1391         * eh_cpp.cc: Same.
1392         * barrier.tpl: Same.
1393         * useraction.cc: Same.
1394         * stmlock.h: Same.
1395         * memcpy.cc: Same.
1396         * common.h: Same.
1397         * config/generic/tls.cc: Same.
1398         * config/generic/cacheline.h: Same.
1399         * config/generic/cachepage.h: Same.
1400         * config/generic/cacheline.cc: Same.
1401         * config/generic/unaligned.h: Same.
1402         * config/x86/cacheline.h: Same.
1403         * config/x86/cacheline.cc: Same.
1404         * config/x86/unaligned.h: Same.
1405         * config/alpha/cacheline.h: Same.
1406         * config/alpha/unaligned.h: Same.
1407         * config/alpha/sjlj.S: Same.
1408         * config/posix/cachepage.cc: Same.
1409         * config/linux/futex.h: Same.
1410         * config/linux/alpha/futex_bits.h: Same.
1412 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1414         * libitm.texi: No cover text and invariant sections.
1416 2011-11-03  Richard Henderson  <rth@redhat.com>
1418         * local_type_traits: New file.
1419         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1421 2011-11-03  Richard Henderson  <rth@redhat.com>
1423         * configure.ac: Don't test for gfortran.
1424         * configure: Rebuild.
1426         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1427         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1429 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1431         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1432         * testsuite/libitm.c/memset-1.c: Same.
1433         * testsuite/libitm.c/c.exp: Same.
1434         * testsuite/lib/libitm-dg.exp: Same.
1435         * testsuite/lib/libitm.exp: Same.
1436         * testsuite/libitm.c++/c++.exp: Same.
1438 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1440         * testsuite/config/default.exp: Update copyright date.
1441         * configure.ac: Add copyright info.
1442         * configure.tgt: Same.
1444 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1446         * testsuite/libitm.c/reentrant.c: XFAIL.
1447         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1449 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1451         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1452         handle aborts.
1453         (_ITM_abortTransaction): Handle aborts of outer transactions.
1454         * libitm_i.h: Same.
1455         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1456         * libitm.texi: Document aborts of outer transactions.
1457         * testsuite/libitm.c/cancel.c: New file.
1459 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1461         * testsuite/*: Change __transaction to __transaction_atomic or
1462         __transaction_relaxed.
1464 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1466         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1467         (gtm_thr): Same.
1469 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1471         * libitm_i.h: Add gl_wt dispatch.
1472         * retry.cc (parse_default_method): Same.
1473         * method-gl.cc: New file.
1474         * Makefile.am: Use method-gl.cc.
1475         * Makefile.in: Rebuild.
1477 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1479         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1480         safety if requested by a TM method.
1481         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1482         privatization safety.
1483         * method-serial.cc: Same.
1485 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1487         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1488         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1489         undolog-related member functions from *_local to *_undolog.
1490         * local.cc (gtm_thread::commit_undolog): Same.
1491         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1492         (GTM::gtm_thread::rollback): Roll back undolog before
1493         dispatch-specific rollback.
1495 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1497         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1498         re-initialization of the current method group.
1499         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1501 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1503         * alloc.cc (commit_allocations_2): Do not free transaction-local
1504         memory when committing a nested transaction.
1506 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1508         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1509         serial-irrevocable dispatch, not serial.
1511 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1513         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1514         declarations.
1515         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1516         * method-serial.cc: Implement begin_or_restart().
1517         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1518         dispatch-specific begin_or_restart().
1519         (GTM::gtm_thread::restart): Same.
1521 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1523         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1524         restarting without switching to serial mode.
1525         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1526         transaction state. Choose closed-nesting alternative if available.
1527         (GTM::gtm_thread::set_default_dispatch): New.
1528         (parse_default_method): New.
1529         (GTM::gtm_thread::number_of_threads_changed): New.
1530         * method-serial.cc (GTM::serial_mg): New method group class.
1531         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1532         fini.
1533         (GTM::serial_dispatch): Same.
1534         (GTM::serialirr_onwrite_dispatch): Same.
1535         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1536         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1537         registered threads.
1538         (GTM::gtm_thread::gtm_thread): Same.
1539         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1540         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1541         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1542         choose dispatch but set state according to dispatch here.
1543         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1544         (GTM::method_group): New class.
1545         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1546         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1547         * libitm.texi: Document TM methods, method groups, method life cycle.
1548         Rename method sets to method groups.
1550 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1552         * config/x86/tls.h: Moved to ...
1553         * config/linux/x86/tls.h: ... here.
1555 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1557         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1558         Add X32 support.
1559         * config/x86/sjlj.S: Same.
1561 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1563         * config/linux/rwlock.h: New file.
1564         * config/linux/rwlock.c: New file.
1565         * configure.ac: Reenable futex support (undo SVN rev 157758).
1566         * Makefile.am: Same.
1567         * configure.tgt: Same.
1568         * config/linux/alpha/futex_bits.h: Same.
1569         * config/linux/futex.h: Same. Return number of woken processes.
1570         * config/linux/futex.cc: Same.
1571         (futex_wait): Remove spinning.
1572         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1573         Use __x86_64__ instead of __LP64__.
1574         * aclocal.m4: Include generic futex checks.
1575         * configure: Rebuild.
1576         * Makefile.in: Rebuild.
1577         * testsuite/Makefile.in: Rebuild.
1578         * beginend.cc: Include pthread.h.
1579         * config/posix/cachepage.cc: Same.
1581 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1583         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1584         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1585         (set_gtm_thr): New.
1586         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1587         (set_gtm_thr): New.
1588         (GTM::gtm_thread::thread_num): Removed.
1589         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1590         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1591         tx-to-thread renaming.
1592         * beginend.cc: Adapted to tx-to-thread renaming.
1593         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1594         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1595         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1596         gtm_transaction to gtm_thread.
1597         (_ITM_getThreadnum): Removed. Not supported anymore.
1598         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1599         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1600         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1601         gtm_tx-to-gtm_thr renaming if necessary.
1602         * eh_cpp.cc: Same.
1603         * local.cc: Same.
1604         * retry.cc: Same.
1605         * clone.cc: Same.
1606         * alloc.cc: Same.
1607         * alloc_c.cc: Same.
1608         * alloc_cpp.cc: Same.
1609         * method-serial.cc: Same.
1610         * config/generic/tls.cc: Same.
1611         * config/posix/rwlock.h (gtm_rwlock): Same.
1612         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1614 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1616         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1617         implementation.
1618         (gtm_rwlock::read_unlock): Same.
1619         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1620         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1621         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1622         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1623         w_upgrade. Replaced by per-transaction flags (in shared_state).
1624         Added c_confirmed_writers.
1625         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1626         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1627         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1628         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1629         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1630         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1631         * libitm.texi: Document locking conventions and implementations in
1632         libitm.
1634 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1636         * libitm_i.h (next_tx): Add list of all threads' transaction.
1637         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1638         transaction with list of transactions and ...
1639         (thread_exit_handler): ... deregister here.
1640         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1641         * config/x86/target.h: Same.
1643 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1645         * testsuite/libitm.c++/static_ctor.C: New file.
1647 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1649         * testsuite/libitm.c/reentrant.c: New file.
1651 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1653         * config/generic/tls.h: Remove the free list for transactions and ...
1654         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1655         (GTM::gtm_transaction::operator delete): ... and release here.
1656         (thread_exit_handler): New. Delete tx when thread terminates.
1657         (thread_exit_init): New.
1658         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1659         * testsuite/libitm.c/txrelease.c: New file.
1661 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1663         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1664         * testsuite/libitm.c/notx.c: New file.
1666 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1668         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1669         * libitm_i.h (local_tid): ... to here.
1670         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1671         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1673 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1675         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1676         serialirr_onwrite_dispatch as new default for now.
1677         * method-serial.cc (serialirr_onwrite_dispatch): New.
1678         (GTM::dispatch_serialirr_onwrite): New.
1679         * libitm_i.h: Same.
1681 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1683         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1684         * query.cc (_ITM_getTransactionId): There is no active transaction if
1685         the current nesting level is zero.
1687 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1689         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1690         rollback.
1692 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1694         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1695         transaction properties from the caller instead of from the
1696         transaction object.
1697         * libitm_i.h: Same.
1698         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1700 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1702         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1703         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1704         * dispatch.h: Same.
1705         * method-serial.cc: Same.
1706         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1707         flat nesting as default, and closed nesting on demand.
1708         (GTM::gtm_transaction::rollback): Same.
1709         (_ITM_abortTransaction): Same.
1710         (GTM::gtm_transaction::restart): Same.
1711         (GTM::gtm_transaction::trycommit): Same.
1712         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1713         (choose_code_path): New.
1714         (GTM::gtm_transaction_cp::save): New.
1715         (GTM::gtm_transaction_cp::commit): New.
1716         * query.cc (_ITM_inTransaction): Support flat nesting.
1717         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1718         (GTM::gtm_transaction): Support flat and closed nesting.
1719         * alloc.cc (commit_allocations_2): New.
1720         (commit_cb_data): New helper struct.
1721         (GTM::gtm_transaction::commit_allocations): Handle nested
1722         commits/rollbacks.
1723         * libitm.texi: Update user action section, add description of nesting.
1725 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1727         * libitm_i.h: Add closed nesting as restart reason.
1728         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1730 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1732         * useraction.cc: Use vector instead of list to store actions.
1733         Also support partial rollbacks for closed nesting.
1734         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1735         * beginend.cc: Same.
1737 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1739         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1740         closed_nesting flags, as well as a closed nesting alternative.
1741         * method-serial.cc: Same.
1742         (serial_dispatch): Renamed to serialirr_dispatch.
1743         (GTM::dispatch_serialirr): Same.
1744         (serial_dispatch_ul): Renamed to serial_dispatch.
1745         (GTM::dispatch_serial): Same.
1747 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1749         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1751 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1753         * aatree.h (aa_tree::remove): New.
1754         (aa_tree::operator new): Add placement new.
1756 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1758         * containers.h: New file.
1759         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1760         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1761         * common.h: ... to here.
1762         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1763         * local.cc: Same.
1765 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1767         * libitm_i.h (STATE_ABORTING): Remove.
1768         * beginend.cc (_ITM_abortTransaction): Same.
1769         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1770         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1771         (_ITM_rollbackTransaction): Remove.
1772         * beginend.cc: Same.
1773         * libitm.map: Same.
1774         * libitm.texi: Document these ABI changes.
1776 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1778         * libitm.texi: New file.
1779         * Makefile.am: Add libitm.texi.
1780         * Makefile.in: Rebuild.
1782 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1784         * libitm_i.h: Move parts to common.h and dispatch.h.
1785         * common.h: New file.
1786         * dispatch.h: New file, new dispatch class.
1787         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1788         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1789         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1790         decision to retry.cc.
1791         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1792         only.
1793         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1794         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1795         logging.
1796         * barrier.cc: Use new barriers definitions.
1797         (abi_dispatch::memmove_overlap_check): New.
1798         * config/x86/x86_sse.cc: Same.
1799         * config/x86/x86_avx.cc: Same.
1800         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1801         memcpy.cc.
1802         * Makefile.in: Rebuild.
1803         * method-readonly.cc: Remove.
1804         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1805         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1807 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1809         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1810         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1811         * testsuite/libitm.c/dropref-2.c: Same.
1812         * testsuite/libitm.c/dropref.c: Same.
1814 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1816         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1817         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1818         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1819         * alloc_c.cc: Same.
1820         * barrier.tpl: Same.
1821         * beginend.c: Same.
1822         * config/generic/tls.h: Same.
1823         * config/x86/tls.h: Same.
1824         * libitm_i.h: Same.
1825         * memcpy.cc: Same.
1826         * memset.cc: Same.
1827         * method-readonly.cc: Same.
1828         * method-serial.cc: Same.
1829         * method-wbetl.cc: Same.
1830         * retry.cc: Same.
1832 2011-03-03  Richard Henderson  <rth@redhat.com>
1834         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1835         From Patrik Marlier <patrick.marlier@unine.ch>.
1837 2011-02-03  Richard Henderson  <rth@redhat.com>
1839         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1840         * configure.ac: Use it.
1841         * configure, config.h.in: Rebuild.
1842         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1843         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1844         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1845         * libitm.map: Use wildcards to match size_t mangling.
1847 2010-12-14  Richard Henderson  <rth@redhat.com>
1849         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1850         blocks of TIDs per thread.
1851         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1852         (setup_gtm_thr): Return the thread structure.
1853         * config/x86/tls.h (setup_gtm_thr): Likewise.
1855 2010-12-14  Richard Henderson  <rth@redhat.com>
1857         * clone.cc (table_lock): Remove.
1858         (find_clone): Don't take it.
1859         (ExcludeTransaction): New helper class.
1860         (_ITM_registerTMCloneTable): Use it.
1861         (_ITM_deregisterTMCloneTable): Likewise.
1863 2010-12-14  Richard Henderson  <rth@redhat.com>
1865         * config/x86/tls.h: New file.
1867 2010-07-15  Richard Henderson  <rth@redhat.com>
1869         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1870         * Makefile.in: Rebuild.
1872 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1874         * method-wbetl.cc (trydropreference): Fix source line.
1876 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1878         * libitm.h: Add comment.
1879         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1881 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1883         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1884         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1885         available, use pthread mutexes.
1886         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1887         * config.h.in: Regenerate.
1888         * configure: Regenerate.
1890 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1892         * libitm.h (ITM_PURE): Define.
1893         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1895 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1897         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1898         (validate): Add comment.
1899         (trydropreference): New.
1900         * method-readonly.cc (class readonly_dispatch): Add
1901         trydropreference.
1902         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1903         Call trydropreference().
1904         * libitm.h (_ITM_dropReferences): Remove const attribute.
1905         * method-serial.cc (class serial_dispatch): Add trydropreference.
1906         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1908 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1910         * memcpy.cc (do_memcpy): Comment.
1912 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1914         * barrier.tpl: Add comments throughout.
1916 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1918         * method-wbetl.cc (struct w_entry): Add comments.
1919         (trycommit): Same.
1920         (rollback): Same.
1922 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1924         * alloc_c.cc (_ITM_dropReferences): New.
1925         * libitm.map (_ITM_dropReferences): Add.
1926         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1927         * libitm_i.h (struct gtm_transaction): Declare
1928         drop_references_allocations and drop_references_local.
1929         * local.cc (rollback_local): Ignore memory when applicable.
1930         (drop_references_local): New.
1932 2010-06-23  Richard Henderson  <rth@redhat.com>
1934         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1935         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1936         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1937         * config/alpha/target.h: Likewise.
1938         * config/generic/tls.cc (gtm_mask_stack): Use it.
1940 2010-06-23  Richard Henderson  <rth@redhat.com>
1942         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1943         a mutex instead of trying a lock-free compare-and-swap on the list.
1944         (gtm_cacheline_page::operator delete): Likewise.
1946 2010-06-16  Richard Henderson  <rth@redhat.com>
1948         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1949         that overlap the libitm stack.
1950         * barrier.tpl: Mark incoming stack.
1951         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1952         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1953         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1954         * memcpy.cc, memset.cc: Likewise.
1955         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1956         * config/generic/tls.h (gtm_thread): Add stack_top member.
1957         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1958         * libitm_i.h (gtm_mask_stack): Declare.
1959         * config/generic/tls.cc: New file.
1960         * Makefile.am (libitm_la_SOURCES): Add it.
1961         (AM_CXXFLAGS): Turn off exceptions.
1962         * Makefile.in: Rebuild.
1964 2010-06-16  Richard Henderson  <rth@redhat.com>
1966         * alloc.cc (struct gtm_alloc_action): Move definition ...
1967         * libitm_i.h: ... here.
1968         (class gtm_transaction): Declare new and delete.
1969         * beginend.cc (alloc_tx): Reformulate as operator new.
1970         (free_tx): Reformulate as operator delete.
1971         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1973 2010-06-11  Richard Henderson  <rth@redhat.com>
1975         * clone.cc (clone_entry_compare): Fix typo.
1976         From Patrik Marlier <patrick.marlier@unine.ch>.
1978 2010-05-13  Richard Henderson  <rth@redhat.com>
1980         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1981         in extern "C".
1983 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1985         * libitm_i.h (struct gtm_transaction): Remove
1986         get_allocation_size.
1987         (record_allocation): Remove size parameter.
1988         * libitm.map (_ITM_realloc): Remove.
1989         * alloc_c.cc (_ITM_realloc): Remove.
1990         (_ITM_malloc): Remove size argument to record_allocation.
1991         (_ITM_calloc): Same.
1992         * alloc_cpp.cc (_ZGTtnwm): Same.
1993         (_ZGTtnwmRKSt9nothrow_t): Same.
1994         (_ZGTtnam): Same.
1995         (_ZGTtnamRKSt9nothrow_t): Same.
1996         * alloc.cc (struct gtm_alloc_action): Remove size.
1997         (get_allocation_size): Remove.
1998         (commit_allocations): Add comment.
1999         (record_allocation): Remove size parameter.
2000         (forget_allocation): Remove set of size.
2002 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2004         * Makefile.am (abi_version): New.
2005         (AM_CXXFLAGS): Pass abi_version.
2006         * Makefile.in: Regenerate.
2007         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2009 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2011         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2012         _ITM_getTMCloneOrIrrevokable.
2013         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2014         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2016 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2018         * configure.ac: Remove Linux futex support.
2019         * configure.tgt (config_path): Same.
2020         * Makefile.am: Same.
2021         * config/linux: Remove entire directory.
2022         * configure: Rebuild.
2023         * Makefile.in: Rebuild.
2024         * testsuite/Makefile.in: Rebuild.
2026 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2028         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2029         switching to serial mode.
2030         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2032 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2034         * configure.tgt: Add emacs -*- tags.
2035         * barrier.tpl: Same.
2037 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2039         * Makefile.am: Rename serial.cc to method-serial.cc.
2040         * Makefile.in: Regenerate with automake 1.11.1.
2041         * testsuite/Makefile.in: Same.
2042         * aclocal.m4: Regenerate with aclocal 1.11.1.
2043         * method-serial.cc: Rename from serial.cc.
2044         * libitm_i.h (struct gtm_transaction): Update comment on
2045         serialirr_mode.
2047 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2049         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2050         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2052 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2054         * configure: Rebuild.
2056 2009-11-12  Richard Henderson  <rth@redhat.com>
2058         * Rewrite everything in C++.
2060 2009-11-03  Richard Henderson  <rth@redhat.com>
2062         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2063         * Makefile.am (libitm_la_SOURCES): Add them.
2064         * configure.ac (ARCH_X86): New conditional.
2065         * Makefile.in, configure: Rebuild.
2066         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2067         Move futex setup into "other system configury" case.
2068         * local.c (rollback_local): Merge into ...
2069         (GTM_rollback_local): ... here.
2070         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2071         (_ITM_LB): Define as an alias to GTM_LB.
2073 2009-11-03  Richard Henderson  <rth@redhat.com>
2075         * method-readonly.c: New file.
2076         * Makefile.am (libitm_la_SOURCES): Add it.
2077         * Makefile.in: Rebuild.
2078         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2079         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2080         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2081         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2082         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2083         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2084         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2085         gtm_get_clock, gtm_inc_clock): New.
2086         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2087         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2088         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2089         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2090         replace uses with new libitm_i.h symbols.
2091         (dispatch_wbetl): Rename from wbetl_dispatch.
2092         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2093         away from dispatch_readonly; abort if the beginTransaction call
2094         asserted that the transaction was readonly.
2096 2009-11-03  Richard Henderson  <rth@redhat.com>
2098         * memset.c: New file.
2099         * Makefile.am (libitm_la_SOURCES): Add it.
2100         * Makefile.in: Rebuild.
2101         * testsuite/libitm.c/memset-1.c: New.
2103 2009-11-03  Richard Henderson  <rth@redhat.com>
2105         * dispatch.c: Remove file.
2106         * useraction.c (struct gtm_user_action): Move from libitm.h.
2107         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2108         (serial_memset, serial_memmove, serial_memcpy): Remove.
2109         (serial_W*, serial_R*): Remove.
2110         (serial_dispatch): Update to match.
2111         * configure.ac: Move Werror down below configure checks.  Don't
2112         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2113         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2114         Use GCC_AC_FUNC_MMAP_BLACKLIST
2115         * libitm.h: Split out all internal items to...
2116         * libitm_i.h: ... here.  New file.
2117         * copymask.c: New file.
2118         * local.c (struct gtm_local_undo): Move from libitm.h.
2119         (GTM_alloc_local): Rename from alloc_local; export.
2120         * memcpy.c: New file.
2121         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2122         * config/posix/page.c: New file.
2123         * config/posix/target_tls.h: Remove file.
2124         * barrier.c: New file.
2125         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2126         copymask.c, page.c.
2127         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2128         * method-wbetl.c: Rewrite for new cacheline methods.
2129         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2131         * config/alpha/sjlj.S: Fix typo.
2132         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2133         * config/alpha/copymask.c: New file.
2134         * config/alpha/target.h (CACHELINE_SIZE): New.
2135         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2137         * config/x86/target_i.h: Copy functions from x86/target.h.
2138         * config/x86/copymask.c: New file.
2139         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2140         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2141         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2142         * config/x86/target_tls.h: Move contents to target_i.h.
2144         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2145         * testsuite/libitm.c/memcpy-1.c: New.
2147 2009-10-22  Richard Henderson  <rth@redhat.com>
2149         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2150         (AM_CCASFLAGS): New.
2151         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2152         saving/restoring _AC_ARG_VAR_PRECIOUS.
2153         * Makefile.in, aclocal.m4, config.h.in, configure,
2154         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2156 2009-10-22  Richard Henderson  <rth@redhat.com>
2158         * testsuite/*: Update for new compiler syntax.
2160 2009-10-21  Richard Henderson  <rth@redhat.com>
2162         * libitm.h (_ITM_abortReason): Add outerAbort.
2164 2009-08-03  Richard Henderson  <rth@redhat.com>
2166         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2167         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2168         * method-wbetl.c (struct w_entry): Remove mask.
2169         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2170         adjust all callers.
2172 2009-07-22  Richard Henderson  <rth@redhat.com>
2174         * eh_cpp.c: New file.
2175         * Makefile.am (libitm_la_SOURCES): Add it.
2176         * Makefile.in: Rebuild.
2177         * beginend.c (GTM_rollback_transaction): Undo exception state.
2178         (GTM_trycommit_transaction): Mark inline.
2179         (GTM_trycommit_and_finalize_transaction): Split out from ...
2180         (_ITM_commitTransaction): ... here.
2181         (_ITM_commitTransactionEH): New function.
2182         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2183         cxa_unthrown, eh_in_flight; reorder.
2185         * testsuite/libitm.c++/c++.exp: New.
2186         * testsuite/libitm.c++/eh-1.C: New.
2188         * aatree.c (aa_free): Remove REGPARM.
2189         * aatree.h: Remove all REGPARM.
2191 2009-07-18  Richard Henderson  <rth@redhat.com>
2193         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2194         * Makefile.am (libitm_la_SOURCES): Add them.
2195         * Makefile.in: Rebuild.
2196         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2197         (GTM_trycommit_transaction): Likewise.
2198         * libitm.h: Include aatree.h
2199         (struct gtm_alloc_action): New.
2200         (struct gtm_transaction): Add alloc_actions.
2201         (GTM_record_allocation, GTM_forget_allocation): Declare.
2202         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2203         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2204         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2205         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2206         _ZGTtdaPvRKSt9nothrow_t): Export.
2208 2009-07-18  Richard Henderson  <rth@redhat.com>
2210         * target_tls.h: Move ...
2211         * config/posix/target_tls.h: ... here.
2213 2009-07-07  Richard Henderson  <rth@redhat.com>
2215         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2217 2009-07-07  Richard Henderson  <rth@redhat.com>
2219         * Update to GPL3.
2221 2009-07-07  Richard Henderson  <rth@redhat.com>
2223         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2224         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2226         * configure.tgt: Don't use -ftls-model for x86 linux.
2227         * libitm.h: Include target.h after standard includes.
2228         (_gtm_thr): Rename from gtm_thr.
2229         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2230         (gtm_disp, set_gtm_disp): New.
2231         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2232         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2233         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2235 2009-07-07  Richard Henderson  <rth@redhat.com>
2237         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2239 2009-07-06  Richard Henderson  <rth@redhat.com>
2241         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2242         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2243         (_ITM_beginTransaction): Take variadic arguments.
2244         (_ITM_registerThrownObject): Declare.
2245         * beginend.c, serial.c: Update.
2246         * libitm.map: Add _ITM_registerThrownObject.
2248 2009-01-28  Richard Henderson  <rth@redhat.com>
2250         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2251         * Makefile.in: Rebuild.
2252         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2253         (GTM_restart_transaction): Fix uninstrumented code check.
2254         * retry.c (GTM_decide_retry_strategy): Add serial check.
2255         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2256         automatically go irrevokable when in serial mode.
2257         * clone.c: New file.
2258         * libitm.h, libitm.map: Update.
2260 2009-01-27  Richard Henderson  <rth@redhat.com>
2262         * Makefile.am (LTCCASCOMPILE): Define.
2263         (libitm_la_SOURCES): Add methid-wbetl.c.
2264         * testsuite/Makefile.am: New
2265         * configure.ac: Add testsuite/Makefile.
2266         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2267         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2268         (_ITM_abortTransaction): Finalize implementation method; pass
2269         transaction properties to longjmp.
2270         (GTM_restart_transaction): Split out from ...
2271         (_ITM_commitTransaction): ... here.
2272         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2273         Move to config/x86/target.h.
2274         * config/linux/alpha/futex_bits.h: New.
2275         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2276         * config/x86/target.h: Disable target types for 32-bit.
2277         * config/alpha/sjlj.S, config/alpha/target.h: New.
2278         * libitm.h (struct gtm_dispatch): Add init, fini.
2279         (enum restart_reason): New.
2280         (struct gtm_transaction): Add method and restarts.
2281         * retry.c (GTM_decide_retry_strategy): Implement.
2282         * serial.c (serial_init, serial_fini): New.
2283         (GTM_serialmode): Finialize outgoing method.
2284         * method-wbetl.c: New.
2286 2008-12-09  Richard Henderson  <rth@redhat.com>
2288         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2289         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2290         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2291         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2292         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2293         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2294         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2295         * serial.c (serial_R##T, serial_W##T): Likewise.
2297 2008-11-21  Richard Henderson  <rth@redhat.com>
2299         * Initial commit.
2301 Copyright (C) 2008-2021 Free Software Foundation, Inc.
2303 Copying and distribution of this file, with or without modification,
2304 are permitted in any medium without royalty provided the copyright
2305 notice and this notice are preserved.