[PATCH 2/5][Arm] New pattern for CSINV instructions
[official-gcc.git] / libitm / ChangeLog
blobaa6de596474d61ff101ff47e7ea25f8571a14084
1 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
5 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
8         and add BTI c to function entries.
10 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
14 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
16         PR bootstrap/95413
17         * configure: Regenerated.
19 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21         PR bootstrap/95147
22         * configure: Regenerated.
24 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
26         * configure: Regenerated.
28 2020-05-12  Nathan Sidwell  <nathan@acm.org>
30         Fix throw specifiers on interface.
31         * libitm/libitm.h (_ITM_NOTHROW): Define.
32         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
33         (_ITM_cxa_begin_catch): Use it.
34         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
35         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
36         __cxa_get_globals.
37         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
38         (_ITM_cxa_begin_catch): Likewise.
40 2020-05-05  Nathan Sidwell  <nathan@acm.org>
42         * testsuite/lib/libitm.exp (libitm_init): Add
43         -fdiagnostics-color=never to options.
45 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
47         PR libstdc++/79193
48         PR libstdc++/88999
50         * configure: Regenerated.
52 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
54         * configure.ac: Handle `--with-toolexeclibdir='.
55         * Makefile.in: Regenerate.
56         * aclocal.m4: Regenerate.
57         * configure: Regenerate.
58         * testsuite/Makefile.in: Regenerate.
60 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
62         Update copyright years.
64         * libitm.texi: Bump @copying's copyright year.
66 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
68         PR libgomp/91938
69         * configure.tgt: Avoid IE tls on *-*-musl*.
71 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
73         * configure: Regenerate.
75 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
77         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
79 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
81         * configure.tgt: Handle *-*-uclinux*.
82         * configure: Regenerate.
84 2019-09-06  Florian Weimer  <fweimer@redhat.com>
86         * configure: Regenerate.
88 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
90         PR other/79543
91         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
92         scanning to conform to the GNU Coding Standards.
93         * configure: Regenerate.
95 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
97         * Makefile.am (finclude): Remove.
98         * Makefile.in: Regenerated.
100 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
102         Update copyright years.
104 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
106         * libitm.texi: Bump @copying's copyright year.
108 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
110         PR c++/88482
111         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
112         void * to void (*) (void *).
113         (_ITM_cxa_throw): Likewise.
114         * libitm.h (_ITM_cxa_throw): Likewise.
115         * libitm.texi (_ITM_cxa_throw): Likewise.
117 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
119         * config/powerpc/target.h (htm_available):  Add support for
120         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
122 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
124         PR bootstrap/82856
125         * Makefile.am: Include multilib.am.
126         (AUTOMAKE_OPTIONS): Add info-in-builddir.
127         (CLEANFILES): Remove libitm.info.
128         * configure.ac: Remove AC_PREREQ.
129         * testsuite/Makefile.am (RUNTEST): Remove quotes.
130         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
131         Regenerate.
133 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
135         PR libitm/86293
136         * method-serial.cc: Mark varible as potentially unused
137         to silence warning.
139 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
141         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
142         absolute relocation in a shared library.
144 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
146         PR libitm/85988
147         * config/linux/x86/tls.h (SEG_READ): Use the offset of
148         __private_tm as base.
149         (SEG_WRITE): Likewise.
150         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
151         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
152         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
153         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
154         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
156 2018-05-17  Jason Merrill  <jason@redhat.com>
158         * beginend.cc (save): Disable -Werror=deprecated-copy.
160 2018-05-02  Tom de Vries  <tom@codesourcery.com>
162         PR testsuite/85106
163         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
165 2018-05-02  Tom de Vries  <tom@codesourcery.com>
167         PR testsuite/85106
168         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
170 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
172         * config/x86/sjlj.S (_ITM_beginTransaction): Add
173         (__CET__ & 2) != 0 check for shadow stack.
174         (GTM_longjmp): Likewise.
176 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
178         * configure: Regenerated.
180 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
182         PR target/85489
183         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
185 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
187         * configure: Regenerated.
189 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
191         PR jit/85384
192         * configure: Regenerate.
194 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
196         PR target/84148
197         * configure: Regenerate.
199 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
201         Update copyright years.
203         * libitm.texi: Bump @copying's copyright year.
205 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
207         * Makefile.in: Regenerate.
208         * acinclude.m4: Add enable.m4 and cet.m4.
209         * config/x86/sjlj.S: Include cet.h.
210         (_ITM_beginTransaction): Add _CET_ENDBR.
211         Save Shadow Stack pointer.
212         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
213         * config/x86/target.h (struct gtm_jmpbuf):
214         Add new field for Shadow Stack pointer.
215         * configure: Regenerate.
216         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
217         * configure.ac: Update libtool_VERSION for x86.
218         * testsuite/Makefile.in: Regenerate.
220 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
222         * libitm/config/x86/target.h: Add new field (ssp).
223         * libitm/config/x86/sjlj.S: Change offsets.
225 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
227         * testsuite/lib/libitm.exp: Load scanlang.exp.
229 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
231         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
233 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
235         PR other/79046
236         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
237         of cat to get version from BASE-VER file.
238         * testsuite/Makefile.in: Regenerated.
240 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
242         * config/x86/target.h (htm_available): Determine vendor from
243         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
245 2017-01-18  Torvald Riegel  <triegel@redhat.com>
247         * config/x86/target.h (htm_available): Add check for some processors
248         on which TSX is broken.
250 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
252         PR other/79046
253         * configure.ac: Add GCC_BASE_VER.
254         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
255         get version from BASE-VER file.
256         * testsuite/Makefile.in: Regenerated.
257         * configure: Regenerated.
258         * Makefile.in: Regenerated.
260 2017-01-04  Alan Modra  <amodra@gmail.com>
262         * Makefile.in: Regenerate.
263         * testsuite/Makefile.in: Regenerate.
265 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
267         Update copyright years.
269         * libitm.texi: Bump @copying's copyright year.
271 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
273         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
274         * aclocal.m4: Regenerate.
275         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
276         LIBITM_CHECK_LINKER_HWCAP.
278 2016-11-15  Matthias Klose  <doko@ubuntu.com>
280         * configure: Regenerate.
282 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
284         PR libitm/70456
285         * util.cc (xmalloc): Use posix_memalign to allocate memory on
286         on cache line if requested.
288 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
290         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
291         function attribute to disable floating point in begin_transaction() on
292         S/390.
293         * beginend.cc (begin_transaction): Use
294         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
296 2016-01-22  Torvald Riegel  <triegel@redhat.com>
298         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
299         boundary.
300         (htm_fastpath): Remove.
301         (gtm_thread::begin_transaction): Fix HTM fastpath.
302         (_ITM_commitTransaction): Adapt.
303         (_ITM_commitTransactionEH): Adapt.
304         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
305         and accessors.
306         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
307         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
308         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
309         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
310         * libitm/method-serial.cc (htm_mg): Adapt.
311         (gtm_thread::serialirr_mode): Adapt.
312         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
314 2016-01-21  Torvald Riegel  <triegel@redhat.com>
316         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
317         or AIX.
319 2016-01-19  Richard Henderson  <rth@redhat.com>
321         PR bootstrap/69343
322         PR bootstrap/69339
323         Revert:
324         2016-01-13  Richard Henderson  <rth@redhat.com>
326         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
327         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
328         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
329         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
330         * configure.ac (ARCH_AARCH64): New conditional.
331         (ARCH_PPC, ARCH_S390): Likewise.
332         * Makefile.in, configure: Rebuild.
334         * libitm.h (_ITM_TYPE_M128): Always define.
335         * vect64.cc: Split ...
336         * vect128.cc: ... out of...
337         * config/x86/x86_sse.cc: ... here.
338         * config/arm/neon.cc: New file.
340 2016-01-19  Torvald Riegel  <triegel@redhat.com>
342         * local_type_traits: Remove file.
343         * libitm_i.h: Don't include it anymore.
344         (sized_integral): Remove.
346 2016-01-16  Torvald Riegel  <triegel@redhat.com>
348         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
349         safety.
350         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
351         * libitm/testsuite/libitm.c/priv-1.c: New.
353 2015-01-15  Torvald Riegel  <triegel@redhat.com>
355         testsuite/libitm.c++/libstdc++-safeexc.C: New.
357 2016-01-13  Torvald Riegel  <triegel@redhat.com>
359         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
360         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
361         (gtm_rwlock::write_unlock): Likewise.
363 2016-01-13  Richard Henderson  <rth@redhat.com>
365         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
366         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
367         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
368         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
369         * configure.ac (ARCH_AARCH64): New conditional.
370         (ARCH_PPC, ARCH_S390): Likewise.
371         * Makefile.in, configure: Rebuild.
373         * libitm.h (_ITM_TYPE_M128): Always define.
374         * vect64.cc: Split ...
375         * vect128.cc: ... out of...
376         * config/x86/x86_sse.cc: ... here.
377         * config/arm/neon.cc: New file.
379 2016-01-13  Torvald Riegel  <triegel@redhat.com>
381         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
382         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
383         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
384         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
385         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
386         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
387         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
388         (serialirr_dispatch::snapshot_most_recent): New.
389         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
391 2016-01-12  Torvald Riegel  <triegel@redhat.com>
393         * libitm_i.h (gtm_mask_stack): Remove.
394         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
395         * stmlock.h: Remove file.
396         * config/alpha/cacheline.h: Likewise.
397         * config/generic/cacheline.h: Likewise.
398         * config/powerpc/cacheline.h: Likewise.
399         * config/sparc/cacheline.h: Likewise.
400         * config/x86/cacheline.h: Likewise.
402 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
404         Update copyright years.
406         * libitm.texi: Bump @copying's copyright year.
408 2015-11-26  Torvald Riegel  <triegel@redhat.com>
410         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
411         (ml_wt_dispatch::pre_write): Adapt.
412         (ml_wt_dispatch::pre_load): Likewise.
414 2015-11-22  Torvald Riegel  <triegel@redhat.com>
416         * libitm_i.h (gtm_alloc_action): Remove union.
417         * testsuite/libitm.c/alloc-1.c: New.
419 2015-11-19  Torvald Riegel  <triegel@redhat.com>
421         * testsuite/libitm.c++/eh-5.C: New.
422         * libitm.h (_ITM_cxa_free_exception): New.
423         * libitm.map (_ITM_cxa_free_exception): Add it.
424         * libitm.texi: Update ABI docs.
425         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
426         (gtm_transaction_cp::cxa_uncaught_count): Add.
427         (gtm_thread::cxa_unthrown): Remove.
428         (gtm_thread::cxa_uncaught_count_ptr): Add.
429         (gtm_thread::cxa_uncaught_count): Add.
430         (gtm_thread::drop_references_allocations): Rename to...
431         (gtm_thread::discard_allocation): ... this and adapt.
432         (gtm_thread::init_cpp_exceptions): New.
433         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
434         (gtm_thread::begin_transaction): Likewise.
435         (gtm_transaction_cp::save): Likewise.
436         (gtm_thread::trycommit): Likewise.
437         * eh_cpp.cc: Add overview comments.
438         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
439         (free_any_exception, _ITM_cxa_free_exception): New.
440         (gtm_thread::init_cpp_exceptions): Define.
441         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
442         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
443         (gtm_thread::revert_cpp_exceptions): Likewise.
445 2015-11-09  Torvald Riegel  <triegel@redhat.com>
447         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
448         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
449         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
450         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
451         (gtm_thread::forget_allocations): New overload with size_t argument.
452         * alloc.c (gtm_thread::forget_allocation): Define new overload and
453         adapt existing one.
454         (gtm_thread::record_allocation): Adapt.
455         (gtm_thread::commit_allocations_1): Adapt.
456         (gtm_thread::commit_allocations_2): Adapt.
457         * testsuite/libitm.c++/newdelete.C: New.
459 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
460             Joseph Myers  <joseph@codesourcery.com>
461             Mark Shinwell  <shinwell@codesourcery.com>
462             Andrew Stubbs  <ams@codesourcery.com>
463             Rich Felker <dalias@libc.org>
465         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
466         GTM_begin_transaction for compatibility with FDPIC.
468 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
470         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
471         using load_gcc_lib.
473 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
475         PR libitm/61164
476         * local_atomic (__always_inline): Rename to...
477         (__libitm_always_inline): ... this.
479 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
481         PR target/52482
482         * config/powerpc/sjlj.S: Port to Xcode 2.5.
484 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
486         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
487         operands "op" and "val" to int.
489 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
491         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
492         "op" and "val" to int.
494 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
496         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
497         "op" and "val" to int.
499 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
501         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
502         Declare as static int.
503         (FUTEX_PRIVATE_FLAG): Remove L suffix.
504         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
506 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
508         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
509         sys_futex0 function.
511 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
513         * Makefile.in: Regenerated with automake-1.11.6.
514         * aclocal.m4: Likewise.
515         * configure: Likewise.
516         * testsuite/Makefile.in: Likewise.
518 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
520         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
521         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
523 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
525         PR libitm/64360
526         * libitm.c/stackundo.c (test2): Make it static.
527         (test1): Likewise.
529 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
531         Update copyright years.
533 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
535         * libitm.texi: Bump @copying's copyright year.
537 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
539         * testsuite/lib/libitm.exp: Load target-utils.exp.
540         Move load of target-supports.exp earlier.
542 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
544         * configure.tgt (x86_64): Tune -m32 multilib to generic.
546 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
548         PR bootstrap/63784
549         * configure: Regenerated.
551 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
553         PR target/63610
554         * configure: Regenerate.
556 2014-10-06  Marek Polacek  <polacek@redhat.com>
558         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
559         * testsuite/libitm.c/memset-1.c: Likewise.
561 2014-07-24  Richard Henderson  <rth@redhat.com>
563         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
564         addressing mode in epilogue.
566 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
568         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
569         -mclear-hwcap instead.
570         * configure: Regenerate.
571         * clearcap.map: Remove.
573 2014-05-21  John Marino  <gnugcc@marino.st>
575         * configure.tgt (*-*-dragonfly*): New target.
577 2014-05-19  Richard Henderson  <rth@redhat.com>
579         * config/aarch64/sjlj.S: New file.
580         * config/aarch64/target.h: New file.
581         * configure.tgt: Enable aarch64.
583 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
585         * config/generic/asmcfi.h: Also check for
586         __GCC_HAVE_DWARF2_CFI_ASM.
588 2013-04-02  Richard Henderson  <rth@redhat.com>
590         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
591         * config/arm/target.h, config/sh/target.h: Likewise.
592         * config/sparc/target.h, config/x86/target.h: Likewise.
594 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
596         * config/linux/futex_bits.h: Include errno.h.
597         (sys_futex0): If syscall returns -1, return -errno rather than
598         -1.
600 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
602         * libitm.texi (Index): Rename to Library Index.
604 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
606         PR libitm/53113
607         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
608         (x86_avx.lo): Append -mavx to CXXFLAGS.
609         * Makefile.in: Regenerate.
611 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
613         Update copyright years
615 2014-01-02  Tobias Burnus  <burnus@net-b.de>
617         * libitm.texi: Bump @copying's copyright year.
619 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
621         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
622         (FUNC): Define ELFv2 variant.
623         (END): Likewise.
624         (HIDDEN): Likewise.
625         (CALL): Likewise.
626         (BASE): Likewise.
627         (LR_SAVE): Likewise.
629 2013-09-20  Alan Modra  <amodra@gmail.com>
631         * configure: Regenerate.
633 2013-08-30  Torvald Riegel  <triegel@redhat.com>
635         * config/posix/rwlock.cc: Fix initialization order.
637 2013-08-30  Torvald Riegel  <triegel@redhat.com>
639         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
640         (htm_fastpath): Assign an asm name.
641         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
642         HTM fast paths.
643         (_ITM_actions): Likewise.
644         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
645         x86_64.
646         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
647         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
648         field to the start of the structure.
649         * config/linux/rwlock.h (gtm_rwlock): Update comments.
650         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
651         handling for custom HTM fast paths.
653 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
654         Revert:
655         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
657         * configure.tgt: Add -msoft-float to XCFLAGS.
659 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
661         * configure.tgt: Add -msoft-float to XCFLAGS.
663 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
665         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
666         (htm_transaction_active): Enable zEC12 instructions in the
667         assembler.
668         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
670 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
672         * acinclude.m4: Add htm asm check for s390.
673         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
674         * configure: Regenerate.
675         * config/s390/target.h: Remove __HTM__ check.
676         (htm_available): Call getauxval to get hwcaps and check whether
677         HTM is available or not.
679 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
681         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
682         * configure.ac: Use it.
683         (AC_CHECK_HEADERS): Check for sys/auxv.h.
684         (AC_CHECK_FUNCS): Check for getauxval.
685         * config.h.in, configure: Rebuild.
686         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
687         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
688         (USE_HTM_FASTPATH): Define.
689         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
690         _HTM_RETRIES) New macros.
691         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
692         htm_begin_success, htm_commit, htm_transaction_active): New functions.
694 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
696         * config/s390/target.h: Include htmintrin.h.
697         (_HTM_ITM_RETRIES): New macro definition.
698         (htm_available, htm_init, htm_begin, htm_begin_success)
699         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
701 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
702             Cesar Philippidis  <cesar@codesourcery.com>
704         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
705         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
706         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
707         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
709 2013-06-20  Torvald Riegel  <triegel@redhat.com>
711         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
712         (_ITM_getTransactionId): Same.
713         * config/x86/target.h (htm_transaction_active): New.
715 2013-06-20  Torvald Riegel  <triegel@redhat.com>
717         PR libitm/57643
718         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
719         the HTM fastpath.
721 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
723         PR bootstrap/56714
724         * local_atomic (__always_inline): Always define our version.
725         (__calculate_memory_order): Mark inline.
726         (atomic_thread_fence): Ditto.
727         (atomic_signal_fence): Ditto.
728         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
729         (atomic_bool::atomic_flag_clear_explicit): Ditto.
730         (atomic_bool::atomic_flag_test_and_set): Ditto.
731         (atomic_bool::atomic_flag_clear): Ditto.
733 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
735         * config/s390/sjlj.S: New file.
736         * config/s390/target.h: New file.
737         * configure.tgt: Set options for S/390.
739 2013-03-23  Andi Kleen  <ak@linux.intel.com>
741         * local_atomic (__always_inline): Add.
742         (__calculate_memory_order, atomic_thread_fence,
743          atomic_signal_fence, test_and_set, clear, store, load,
744          exchange, compare_exchange_weak, compare_exchange_strong,
745          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
746         Add __always_inline to force inlining.
748 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
749             Jack Howarth  <howarth@bromo.med.uc.edu>
750             Patrick Marlier  <patrick.marlier@gmail.com>
752         PR libitm/55693
753         * alloc_cpp.cc: Enable function declarations on darwin.
754         * eh_cpp.cc: Likewise.
756 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
758         Update copyright years.
760 2012-11-09  Torvald Riegel  <triegel@redhat.com>
762         * beginend.cc (htm_fastpath): New.
763         (gtm_thread::begin_transaction, _ITM_commitTransaction,
764         _ITM_commitTransactionEH): Add HTM fastpath handling.
765         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
766         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
767         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
768         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
769         * configure.tgt: Add -mrtm to XCFLAGS.
770         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
771         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
772         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
773         * retry.cc (parse_default_method): Add HTM method parsing.
774         (gtm_thread::number_of_threads_changed): Use HTM by default if
775         available.
777 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
779         * configure: Regenerate.
781 2012-10-31  Richard Henderson  <rth@redhat.com>
783         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
784         * configure.ac: Use it.
785         * config.h.in, configure: Rebuild.
786         * testsuite/Makefile.in: Rebuild.
788 2012-10-24  Torvald Riegel  <triegel@redhat.com>
790         * libitm.texi: Clarify ABI requirements for data-logging functions.
792 2012-10-24  Torvald Riegel  <triegel@redhat.com>
794         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
795         it requires serial mode instead of assuming that for certain
796         dispatchs.
797         * dispatch.h (abi_dispatch::requires_serial): New.
798         (abi_dispatch::abi_dispatch): Adapt.
799         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
800         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
801         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
802         serial_dispatch::serial_dispatch,
803         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
805 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
807         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
808         and ia32 declarations some more.
809         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
811 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
813         PR other/43620
814         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
815         * configure: Regenerate.
816         * Makefile.in: Regenerate.
818 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
820         * configure: Regenerated.
822 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
824         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
826 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
828         * eh_cpp.cc: Fix __cxa_end_catch declaration.
830 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
832         * configure: Regenerated.
834 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
836         PR libitm/52854
837         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
838         for x86-64.
840 2012-04-03  Tristan Gingold  <gingold@adacore.com>
842         * configure: Regenerate.
844 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
846         PR bootstrap/52812
847         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
849 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
851         * testsuite/lib/libitm.exp: load fortran-modules.exp
853 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
855         * configure.tgt (*-*-irix6*): Remove.
857 2012-03-13  Torvald Riegel  <triegel@redhat.com>
859         PR libitm/52526
860         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
861         wake-up.
863 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
865         * configure.tgt (*-*-osf*): Remove.
866         * configure: Regenerate.
868 2012-03-05  Torvald Riegel  <triegel@redhat.com>
870         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
871         memtransfer/memset if size isn't larger than zero.
873 2012-03-02  Torvald Riegel  <triegel@redhat.com>
875         * libitm.texi: Link to specification and add a usage example.
877 2012-02-24  Torvald Riegel  <triegel@redhat.com>
879         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
880         default dispatch for more than 1 thread to ml_wt.
882 2012-02-20  Torvald Riegel  <triegel@redhat.com>
884         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
886 2012-02-20  Torvald Riegel  <triegel@redhat.com>
888         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
890 2012-02-20  Torvald Riegel  <triegel@redhat.com>
892         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
893         serial mode corner cases made obsolete by prior gtm_rwlock changes.
894         (gl_wt_dispatch.rollback): Same.
896 2012-02-20  Torvald Riegel  <triegel@redhat.com>
898         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
900 2012-02-20  Torvald Riegel  <triegel@redhat.com>
902         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
903         for RfW src.  Optimize number of calls to gtm_thr.
905 2012-02-20  Torvald Riegel  <triegel@redhat.com>
907         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
908         acquisition to ...
909         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
910         (default_dispatch): Make atomic.
911         (GTM::gtm_thread::set_default_dispatch): Access atomically.
912         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
913         use decide_begin_dispatch() if default_dispatch might have changed.
914         (GTM::gtm_thread::number_of_threads_changed): Initialize
915         default_dispatch here.
917 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
918             Patrick Marlier  <patrick.marlier@gmail.com>
920         PR libitm/52220
921         * alloc_cpp.cc: No dummy definitions for darwin.
922         * eh_cpp.cc: Likewise.
924 2012-02-14  Richard Henderson  <rth@redhat.com>
926         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
928 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
930         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
932 2012-02-14  Torvald Riegel  <triegel@redhat.com>
934         * libitm_i.h (GTM::gtm_rwlog_entry): New.
935         (GTM::gtm_thread): Add read and write logs.
936         (GTM::dispatch_ml_wt): Declare.
937         * retry.cc (parse_default_method): Support ml_wt.
938         * method-ml.cc: New file.
939         * Makefile.am: Add method-ml.cc.
940         * Makefile.in: Regenerate.
942 2012-02-14  Torvald Riegel  <triegel@redhat.com>
944         * dispatch.h (GTM::abi_dispatch::supports): New.
945         (GTM::method_group::reinit): New.
946         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
947         (GTM::gtm_thread::number_of_threads_changed): Check that the method
948         supports the current situation.
950 2012-02-14  Torvald Riegel  <triegel@redhat.com>
952         * util.cc (GTM::xcalloc): New.
953         * common.h (GTM::xcalloc): Declare.
955 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
957         * config/sparc/target.h (cpu_relax): Read from CC register.
958         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
960 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
962         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
964 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
966         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
967         * config/sparc/cacheline.h: New file.
968         * config/sparc/target.h: Likewise.
969         * config/sparc/sjlj.S: Likewise.
970         * config/linux/sparc/futex_bits.h: Likewise.
972 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
974         * configure.ac (link_itm): Fix comment.
975         * configure: Regenerate.
976         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
978 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
980         PR libitm/51822
981         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
982         Correct libgomp references.
984 2012-01-24  Torvald Riegel  <triegel@redhat.com>
986         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
987         wake-up.
989 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
991         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
992         end of structure.
993         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
994         offset values.  Do not copy return address.  Decrement stack
995         by 56 bytes only.
996         (GTM_longjump) [__x86_64__]: Update offset values.
998 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1000         PR libitm/51830
1001         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1002         the first function argument to %eax.
1004 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1006         * libitm.h (_ITM_getThreadnum): Remove.
1007         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1009 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1011         * clearcap.map: New file.
1012         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1013         * configure.ac: Call it.
1014         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1015         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1016         * configure: Regenerate.
1017         * Makefile.in: Regenerate.
1018         * testsuite/Makefile.in: Regenerate.
1020 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1022         PR libitm/51173
1023         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1024         include, exclude options.
1026 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1028         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1029         rolling back.
1030         * containers.h (GTM::vector::set_size): New.
1032 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1034         PR libitm/51855
1035         * config/generic/tls.h (GTM::mask_stack_top): New.
1036         (GTM::mask_stack_bottom): Declare.
1037         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1038         * local.cc (gtm_undolog::rollback): Filter out any updates that
1039         overlap the libitm stack.  Add current transaction as parameter.
1040         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1041         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1042         * testsuite/libitm.c/stackundo.c: New test.
1044 2012-01-10  Richard Henderson  <rth@redhat.com>
1046         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1047         * eh_cpp.cc (_Unwind_DeleteException): Define for
1048         !HAVE_ELF_STYLE_WEAKREF.
1050 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1052         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1053         (GTM::gtm_thread::drop_references_undolog): Remove.
1054         (GTM::gtm_thread::commit_undolog,
1055         GTM::gtm_thread::rollback_undolog): Move to ...
1056         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1057         (GTM::gtm_undolog_entry): Remove.
1058         (GTM::gtm_thread): Adapt.
1059         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1060         (GTM::gtm_thread::trycommit): Adapt.
1061         * method-serial.cc (serial_dispatch::log): Adapt.
1062         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1063         (gl_wt_dispatch::store): Fix likely/unlikely.
1064         * containers.h (GTM::vector::resize): Add additional_capacity
1065         parameter and handle it.
1066         (GTM::vector::resize_noinline): New/adapt.
1067         (GTM::vector::push): New.
1069 2012-01-06  Richard Henderson  <rth@redhat.com>
1071         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1072         * config/linux/powerpc/futex_bits.h: New file.
1073         * config/powerpc/cacheline.h: New file.
1074         * config/powerpc/sjlj.S: New file.
1075         * config/powerpc/target.h: New file.
1076         * config/generic/asmcfi.h (cfi_offset): New.
1077         (cfi_restore, cfi_undefined): New.
1079 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1081         PR other/51171
1082         * testsuite/libitm.c/reentrant.c: Remove xfail.
1083         (thread): Pass x to pure().
1084         From Patrik Marlier <patrick.marlier@gmail.com>.
1086 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1088         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1089         privatization safety if already in serial mode.
1091 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1093         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1094         finish_serial_upgrade parameter.
1095         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1096         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1097         Don't unset reader flag.
1098         (GTM::gtm_rwlock::write_upgrade_finish): New.
1099         * config/posix/rwlock.cc: Same.
1100         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1101         Declare.
1102         * config/posix/rwlock.h: Same.
1103         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1104         flag after commit or after rollback when restarting.
1106 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1108         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1109         (GTM::gtm_thread::try_commit): Changed memory order.
1110         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1111         as parameter.
1112         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1113         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1114         * config/linux/futex_bits.h (sys_futex0): Same.
1115         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1116         * config/linux/futex.h (futex_wait, futex_wake): Same.
1117         * config/linux/rwlock.h (gtm_rwlock::writers,
1118         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1119         ints.
1120         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1121         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1122         gtm_rwlock::write_unlock): Fix memory orders and fences.
1123         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1124         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1125         gtm_rwlock::write_unlock): Same.
1126         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1127         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1128         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1129         Add comments.
1130         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1131         gl_wt_dispatch::load, gl_wt_dispatch::store,
1132         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1133         orders and fences.  Add comments.
1135 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1137         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1138         * Makefile.in: Regenerated.
1140 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1142         * configure.tgt: Add sh* case.
1143         * config/sh/target.h: New file.
1144         * config/sh/sjlj.S: New file.
1145         * config/linux/sh/futex_bits.h: New file.
1147 2011-12-14  Richard Henderson  <rth@redhat.com>
1149         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1150         * config/arm/sjlj.S, config/arm/target.h: New files.
1151         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1152         (cfi_rel_offset): New.
1153         * config/linux/futex_bits.h: New file.
1154         * config/linux/futex.cc: Include futex_bits.h here...
1155         * config/linux/futex.h: ... not here.
1156         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1157         * configure.ac (ARCH_AM): New conditional.
1158         * Makefile.in, configure: Rebuild.
1159         * configure.tgt: Handle ARM.
1161 2011-12-13  Richard Henderson  <rth@redhat.com>
1163         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1164         signed/unsigned comparison werror.
1166         * local_atomic: New file.
1167         * libitm_i.h: Include it.
1168         (gtm_thread::shared_state): Use atomic template.
1169         * beginend.cc (GTM::gtm_clock): Use atomic template.
1170         (global_tid): Use atomic template if 64-bit atomics available.
1171         (gtm_thread::gtm_thread): Update shared_state access.
1172         (gtm_thread::trycommit): Likewise.
1173         (choose_code_path): Update global_tid access.
1174         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1175         * stmlock.h (GTM::gtm_clock): Use atomic template.
1176         (gtm_get_clock, gtm_inc_clock): Update accesses.
1177         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1178         redundant __sync_synchronize after atomic shared_state access.
1179         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1180         (gtm_rwlock::write_lock_generic): Likewise.
1181         (gtm_rwlock::read_unlock): Likewise.
1182         * config/alpha/target.h (atomic_read_barrier): Remove.
1183         (atomic_write_barrier): Remove.
1184         * config/x86/target.h (atomic_read_barrier): Remove.
1185         (atomic_write_barrier): Remove.
1187 2011-11-30  Richard Henderson  <rth@redhat.com>
1189         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1190         * beginend.c (_ITM_abortTransaction): Update to match.
1191         (GTM::gtm_thread::restart): Likewise.
1192         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1193         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1195 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1197         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1198         * Makefile.in: Regenerate.
1200 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1202         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1203         * alloc_cpp.cc: Generate dummy functions if we don't
1204         HAVE_ELF_STYLE_WEAKREF.
1205         * eh_cpp.cc: Likewise.
1206         * configure: Regenerate.
1207         * aclocal.m4:  Likewise.
1208         * config.h.in: Likewise.
1209         * Makefile.in: Likewise.
1210         * testsuite/Makefile.in: Likewise.
1212 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1214         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1215         __USER_LABEL_PREFIX__ for targets that use it.
1216         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1217         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1218         in portability to non-elf targets.
1219         (GTM_longjmp): Likewise.
1220         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1221         where required.
1223 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1225         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1226         * testsuite/libitm.c/memset-1.c: Likewise.
1228 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1230         * configure: Regenerate.
1232 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1234         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1235         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1236         * Makefile.am: Handle sun style versioning.
1237         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1238         * configure: Regenerate.
1239         * Makefile.in: Regenerate.
1241 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1243         * config/generic/asmcfi.h: Fix comment.
1244         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1245         sequence without .hidden support, error for non-ELF targets.
1246         (GTM_longjmp) [__ELF__]: Only use .hidden if
1247         HAVE_ATTRIBUTE_VISIBILITY.
1249 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1251         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1252         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1253         Dummy functions.
1254         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1255         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1257 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1259         PR bootstrap/51098
1260         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1261         * configure: Regenerate.
1263 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1265         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1267 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1269         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1270         .hidden.
1271         (.note.GNU-stack): Only use if __linux__.
1272         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1273         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1274         * testsuite/libitm.c/reentrant.c: Likewise.
1275         * testsuite/libitm.c/simple-2.c: Likewise.
1276         * testsuite/libitm.c/txrelease.c: Likewise.
1277         * testsuite/libitm.c++/static_ctor.C: Likewise.
1279 2011-11-10  Richard Henderson  <rth@redhat.com>
1281         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1282         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1283         * configure.ac (ARCH_X86_AVX): New conditional.
1284         * Makefile.in, configure: Rebuild.
1286 2011-11-09  Richard Henderson  <rth@redhat.com>
1288         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1289         * configure.ac: Use it.
1290         * config.h.in, configure: Rebuild.
1291         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1293 2011-11-09  Richard Henderson  <rth@redhat.com>
1295         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1296         * config/alpha/unaligned.h: Remove file.
1297         * config/generic/unaligned.h: Remove file.
1298         * config/x86/unaligned.h: Remove file.
1299         * config/generic/cachepage.h: Remove file.
1300         * config/posix/cachepage.cc: Remove file.
1301         * config/generic/cacheline.cc: Remove file.
1302         * config/x86/cacheline.cc: Remove file.
1303         * config/generic/cacheline.h (gtm_cacheline): Remove the
1304         store_mask, copy_mask, copy_mask_wb methods.
1305         * config/x86/cacheline.h: Likewise.
1306         * config/alpha/cacheline.h: Fall back to generic after setting size.
1307         * config/generic/tls.cc (gtm_mask_stack): Remove.
1308         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1309         (GTM_vpalignr_table): Remove.
1310         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1311         (GTM_pshift_table): Remove.
1312         * config/libitm_i.h: Don't include cachepage.h.
1313         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1314         * Makefile.in, testsuite/Makefile.in: Rebuild.
1316 2011-11-09  Richard Henderson  <rth@redhat.com>
1318         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1319         to emit branch prediction hint.
1321         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1322         Protect .note.GNU-stack with __linux__.
1324         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1325         * configure, aclocal.m4, config.h.in: Rebuild.
1326         * config/generic/asmcfi.h: New file.
1327         * config/x86/sjlj.S: Use it.
1329 2011-11-08  Richard Henderson  <rth@redhat.com>
1331         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1333 2011-11-08  Richard Henderson  <rth@redhat.com>
1335         * configure.tgt: Test correct directory for supported cpus.
1337         * configure.ac: Exit if unsupported.
1338         * configure: Rebuild.
1339         * configure.tgt: Delete boilerplate from libgomp for unsupported
1340         targets.  Set UNSUPPORTED for unsupported targets.
1342 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1344         * configure.tgt: Handle i386 like i[456]86.
1345         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1346         take address.
1347         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1348         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1350 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1352         * method-wbetl.cc: Update copyright notice.
1353         * aatree.cc: Same.
1354         * util.cc: Same.
1355         * libitm.h: Same.
1356         * memset.cc: Same.
1357         * eh_cpp.cc: Same.
1358         * barrier.tpl: Same.
1359         * useraction.cc: Same.
1360         * stmlock.h: Same.
1361         * memcpy.cc: Same.
1362         * common.h: Same.
1363         * config/generic/tls.cc: Same.
1364         * config/generic/cacheline.h: Same.
1365         * config/generic/cachepage.h: Same.
1366         * config/generic/cacheline.cc: Same.
1367         * config/generic/unaligned.h: Same.
1368         * config/x86/cacheline.h: Same.
1369         * config/x86/cacheline.cc: Same.
1370         * config/x86/unaligned.h: Same.
1371         * config/alpha/cacheline.h: Same.
1372         * config/alpha/unaligned.h: Same.
1373         * config/alpha/sjlj.S: Same.
1374         * config/posix/cachepage.cc: Same.
1375         * config/linux/futex.h: Same.
1376         * config/linux/alpha/futex_bits.h: Same.
1378 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1380         * libitm.texi: No cover text and invariant sections.
1382 2011-11-03  Richard Henderson  <rth@redhat.com>
1384         * local_type_traits: New file.
1385         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1387 2011-11-03  Richard Henderson  <rth@redhat.com>
1389         * configure.ac: Don't test for gfortran.
1390         * configure: Rebuild.
1392         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1393         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1395 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1397         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1398         * testsuite/libitm.c/memset-1.c: Same.
1399         * testsuite/libitm.c/c.exp: Same.
1400         * testsuite/lib/libitm-dg.exp: Same.
1401         * testsuite/lib/libitm.exp: Same.
1402         * testsuite/libitm.c++/c++.exp: Same.
1404 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1406         * testsuite/config/default.exp: Update copyright date.
1407         * configure.ac: Add copyright info.
1408         * configure.tgt: Same.
1410 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1412         * testsuite/libitm.c/reentrant.c: XFAIL.
1413         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1415 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1417         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1418         handle aborts.
1419         (_ITM_abortTransaction): Handle aborts of outer transactions.
1420         * libitm_i.h: Same.
1421         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1422         * libitm.texi: Document aborts of outer transactions.
1423         * testsuite/libitm.c/cancel.c: New file.
1425 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1427         * testsuite/*: Change __transaction to __transaction_atomic or
1428         __transaction_relaxed.
1430 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1432         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1433         (gtm_thr): Same.
1435 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1437         * libitm_i.h: Add gl_wt dispatch.
1438         * retry.cc (parse_default_method): Same.
1439         * method-gl.cc: New file.
1440         * Makefile.am: Use method-gl.cc.
1441         * Makefile.in: Rebuild.
1443 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1445         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1446         safety if requested by a TM method.
1447         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1448         privatization safety.
1449         * method-serial.cc: Same.
1451 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1453         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1454         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1455         undolog-related member functions from *_local to *_undolog.
1456         * local.cc (gtm_thread::commit_undolog): Same.
1457         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1458         (GTM::gtm_thread::rollback): Roll back undolog before
1459         dispatch-specific rollback.
1461 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1463         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1464         re-initialization of the current method group.
1465         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1467 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1469         * alloc.cc (commit_allocations_2): Do not free transaction-local
1470         memory when committing a nested transaction.
1472 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1474         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1475         serial-irrevocable dispatch, not serial.
1477 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1479         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1480         declarations.
1481         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1482         * method-serial.cc: Implement begin_or_restart().
1483         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1484         dispatch-specific begin_or_restart().
1485         (GTM::gtm_thread::restart): Same.
1487 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1489         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1490         restarting without switching to serial mode.
1491         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1492         transaction state. Choose closed-nesting alternative if available.
1493         (GTM::gtm_thread::set_default_dispatch): New.
1494         (parse_default_method): New.
1495         (GTM::gtm_thread::number_of_threads_changed): New.
1496         * method-serial.cc (GTM::serial_mg): New method group class.
1497         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1498         fini.
1499         (GTM::serial_dispatch): Same.
1500         (GTM::serialirr_onwrite_dispatch): Same.
1501         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1502         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1503         registered threads.
1504         (GTM::gtm_thread::gtm_thread): Same.
1505         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1506         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1507         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1508         choose dispatch but set state according to dispatch here.
1509         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1510         (GTM::method_group): New class.
1511         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1512         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1513         * libitm.texi: Document TM methods, method groups, method life cycle.
1514         Rename method sets to method groups.
1516 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1518         * config/x86/tls.h: Moved to ...
1519         * config/linux/x86/tls.h: ... here.
1521 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1523         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1524         Add X32 support.
1525         * config/x86/sjlj.S: Same.
1527 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1529         * config/linux/rwlock.h: New file.
1530         * config/linux/rwlock.c: New file.
1531         * configure.ac: Reenable futex support (undo SVN rev 157758).
1532         * Makefile.am: Same.
1533         * configure.tgt: Same.
1534         * config/linux/alpha/futex_bits.h: Same.
1535         * config/linux/futex.h: Same. Return number of woken processes.
1536         * config/linux/futex.cc: Same.
1537         (futex_wait): Remove spinning.
1538         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1539         Use __x86_64__ instead of __LP64__.
1540         * aclocal.m4: Include generic futex checks.
1541         * configure: Rebuild.
1542         * Makefile.in: Rebuild.
1543         * testsuite/Makefile.in: Rebuild.
1544         * beginend.cc: Include pthread.h.
1545         * config/posix/cachepage.cc: Same.
1547 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1549         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1550         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1551         (set_gtm_thr): New.
1552         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1553         (set_gtm_thr): New.
1554         (GTM::gtm_thread::thread_num): Removed.
1555         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1556         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1557         tx-to-thread renaming.
1558         * beginend.cc: Adapted to tx-to-thread renaming.
1559         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1560         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1561         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1562         gtm_transaction to gtm_thread.
1563         (_ITM_getThreadnum): Removed. Not supported anymore.
1564         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1565         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1566         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1567         gtm_tx-to-gtm_thr renaming if necessary.
1568         * eh_cpp.cc: Same.
1569         * local.cc: Same.
1570         * retry.cc: Same.
1571         * clone.cc: Same.
1572         * alloc.cc: Same.
1573         * alloc_c.cc: Same.
1574         * alloc_cpp.cc: Same.
1575         * method-serial.cc: Same.
1576         * config/generic/tls.cc: Same.
1577         * config/posix/rwlock.h (gtm_rwlock): Same.
1578         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1580 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1582         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1583         implementation.
1584         (gtm_rwlock::read_unlock): Same.
1585         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1586         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1587         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1588         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1589         w_upgrade. Replaced by per-transaction flags (in shared_state).
1590         Added c_confirmed_writers.
1591         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1592         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1593         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1594         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1595         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1596         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1597         * libitm.texi: Document locking conventions and implementations in
1598         libitm.
1600 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1602         * libitm_i.h (next_tx): Add list of all threads' transaction.
1603         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1604         transaction with list of transactions and ...
1605         (thread_exit_handler): ... deregister here.
1606         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1607         * config/x86/target.h: Same.
1609 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1611         * testsuite/libitm.c++/static_ctor.C: New file.
1613 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1615         * testsuite/libitm.c/reentrant.c: New file.
1617 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1619         * config/generic/tls.h: Remove the free list for transactions and ...
1620         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1621         (GTM::gtm_transaction::operator delete): ... and release here.
1622         (thread_exit_handler): New. Delete tx when thread terminates.
1623         (thread_exit_init): New.
1624         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1625         * testsuite/libitm.c/txrelease.c: New file.
1627 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1629         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1630         * testsuite/libitm.c/notx.c: New file.
1632 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1634         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1635         * libitm_i.h (local_tid): ... to here.
1636         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1637         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1639 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1641         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1642         serialirr_onwrite_dispatch as new default for now.
1643         * method-serial.cc (serialirr_onwrite_dispatch): New.
1644         (GTM::dispatch_serialirr_onwrite): New.
1645         * libitm_i.h: Same.
1647 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1649         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1650         * query.cc (_ITM_getTransactionId): There is no active transaction if
1651         the current nesting level is zero.
1653 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1655         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1656         rollback.
1658 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1660         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1661         transaction properties from the caller instead of from the
1662         transaction object.
1663         * libitm_i.h: Same.
1664         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1666 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1668         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1669         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1670         * dispatch.h: Same.
1671         * method-serial.cc: Same.
1672         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1673         flat nesting as default, and closed nesting on demand.
1674         (GTM::gtm_transaction::rollback): Same.
1675         (_ITM_abortTransaction): Same.
1676         (GTM::gtm_transaction::restart): Same.
1677         (GTM::gtm_transaction::trycommit): Same.
1678         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1679         (choose_code_path): New.
1680         (GTM::gtm_transaction_cp::save): New.
1681         (GTM::gtm_transaction_cp::commit): New.
1682         * query.cc (_ITM_inTransaction): Support flat nesting.
1683         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1684         (GTM::gtm_transaction): Support flat and closed nesting.
1685         * alloc.cc (commit_allocations_2): New.
1686         (commit_cb_data): New helper struct.
1687         (GTM::gtm_transaction::commit_allocations): Handle nested
1688         commits/rollbacks.
1689         * libitm.texi: Update user action section, add description of nesting.
1691 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1693         * libitm_i.h: Add closed nesting as restart reason.
1694         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1696 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1698         * useraction.cc: Use vector instead of list to store actions.
1699         Also support partial rollbacks for closed nesting.
1700         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1701         * beginend.cc: Same.
1703 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1705         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1706         closed_nesting flags, as well as a closed nesting alternative.
1707         * method-serial.cc: Same.
1708         (serial_dispatch): Renamed to serialirr_dispatch.
1709         (GTM::dispatch_serialirr): Same.
1710         (serial_dispatch_ul): Renamed to serial_dispatch.
1711         (GTM::dispatch_serial): Same.
1713 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1715         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1717 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1719         * aatree.h (aa_tree::remove): New.
1720         (aa_tree::operator new): Add placement new.
1722 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1724         * containers.h: New file.
1725         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1726         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1727         * common.h: ... to here.
1728         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1729         * local.cc: Same.
1731 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1733         * libitm_i.h (STATE_ABORTING): Remove.
1734         * beginend.cc (_ITM_abortTransaction): Same.
1735         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1736         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1737         (_ITM_rollbackTransaction): Remove.
1738         * beginend.cc: Same.
1739         * libitm.map: Same.
1740         * libitm.texi: Document these ABI changes.
1742 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1744         * libitm.texi: New file.
1745         * Makefile.am: Add libitm.texi.
1746         * Makefile.in: Rebuild.
1748 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1750         * libitm_i.h: Move parts to common.h and dispatch.h.
1751         * common.h: New file.
1752         * dispatch.h: New file, new dispatch class.
1753         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1754         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1755         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1756         decision to retry.cc.
1757         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1758         only.
1759         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1760         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1761         logging.
1762         * barrier.cc: Use new barriers definitions.
1763         (abi_dispatch::memmove_overlap_check): New.
1764         * config/x86/x86_sse.cc: Same.
1765         * config/x86/x86_avx.cc: Same.
1766         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1767         memcpy.cc.
1768         * Makefile.in: Rebuild.
1769         * method-readonly.cc: Remove.
1770         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1771         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1773 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1775         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1776         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1777         * testsuite/libitm.c/dropref-2.c: Same.
1778         * testsuite/libitm.c/dropref.c: Same.
1780 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1782         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1783         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1784         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1785         * alloc_c.cc: Same.
1786         * barrier.tpl: Same.
1787         * beginend.c: Same.
1788         * config/generic/tls.h: Same.
1789         * config/x86/tls.h: Same.
1790         * libitm_i.h: Same.
1791         * memcpy.cc: Same.
1792         * memset.cc: Same.
1793         * method-readonly.cc: Same.
1794         * method-serial.cc: Same.
1795         * method-wbetl.cc: Same.
1796         * retry.cc: Same.
1798 2011-03-03  Richard Henderson  <rth@redhat.com>
1800         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1801         From Patrik Marlier <patrick.marlier@unine.ch>.
1803 2011-02-03  Richard Henderson  <rth@redhat.com>
1805         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1806         * configure.ac: Use it.
1807         * configure, config.h.in: Rebuild.
1808         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1809         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1810         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1811         * libitm.map: Use wildcards to match size_t mangling.
1813 2010-12-14  Richard Henderson  <rth@redhat.com>
1815         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1816         blocks of TIDs per thread.
1817         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1818         (setup_gtm_thr): Return the thread structure.
1819         * config/x86/tls.h (setup_gtm_thr): Likewise.
1821 2010-12-14  Richard Henderson  <rth@redhat.com>
1823         * clone.cc (table_lock): Remove.
1824         (find_clone): Don't take it.
1825         (ExcludeTransaction): New helper class.
1826         (_ITM_registerTMCloneTable): Use it.
1827         (_ITM_deregisterTMCloneTable): Likewise.
1829 2010-12-14  Richard Henderson  <rth@redhat.com>
1831         * config/x86/tls.h: New file.
1833 2010-07-15  Richard Henderson  <rth@redhat.com>
1835         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1836         * Makefile.in: Rebuild.
1838 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1840         * method-wbetl.cc (trydropreference): Fix source line.
1842 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1844         * libitm.h: Add comment.
1845         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1847 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1849         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1850         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1851         available, use pthread mutexes.
1852         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1853         * config.h.in: Regenerate.
1854         * configure: Regenerate.
1856 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1858         * libitm.h (ITM_PURE): Define.
1859         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1861 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1863         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1864         (validate): Add comment.
1865         (trydropreference): New.
1866         * method-readonly.cc (class readonly_dispatch): Add
1867         trydropreference.
1868         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1869         Call trydropreference().
1870         * libitm.h (_ITM_dropReferences): Remove const attribute.
1871         * method-serial.cc (class serial_dispatch): Add trydropreference.
1872         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1874 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1876         * memcpy.cc (do_memcpy): Comment.
1878 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1880         * barrier.tpl: Add comments throughout.
1882 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1884         * method-wbetl.cc (struct w_entry): Add comments.
1885         (trycommit): Same.
1886         (rollback): Same.
1888 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1890         * alloc_c.cc (_ITM_dropReferences): New.
1891         * libitm.map (_ITM_dropReferences): Add.
1892         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1893         * libitm_i.h (struct gtm_transaction): Declare
1894         drop_references_allocations and drop_references_local.
1895         * local.cc (rollback_local): Ignore memory when applicable.
1896         (drop_references_local): New.
1898 2010-06-23  Richard Henderson  <rth@redhat.com>
1900         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1901         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1902         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1903         * config/alpha/target.h: Likewise.
1904         * config/generic/tls.cc (gtm_mask_stack): Use it.
1906 2010-06-23  Richard Henderson  <rth@redhat.com>
1908         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1909         a mutex instead of trying a lock-free compare-and-swap on the list.
1910         (gtm_cacheline_page::operator delete): Likewise.
1912 2010-06-16  Richard Henderson  <rth@redhat.com>
1914         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1915         that overlap the libitm stack.
1916         * barrier.tpl: Mark incoming stack.
1917         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1918         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1919         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1920         * memcpy.cc, memset.cc: Likewise.
1921         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1922         * config/generic/tls.h (gtm_thread): Add stack_top member.
1923         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1924         * libitm_i.h (gtm_mask_stack): Declare.
1925         * config/generic/tls.cc: New file.
1926         * Makefile.am (libitm_la_SOURCES): Add it.
1927         (AM_CXXFLAGS): Turn off exceptions.
1928         * Makefile.in: Rebuild.
1930 2010-06-16  Richard Henderson  <rth@redhat.com>
1932         * alloc.cc (struct gtm_alloc_action): Move definition ...
1933         * libitm_i.h: ... here.
1934         (class gtm_transaction): Declare new and delete.
1935         * beginend.cc (alloc_tx): Reformulate as operator new.
1936         (free_tx): Reformulate as operator delete.
1937         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1939 2010-06-11  Richard Henderson  <rth@redhat.com>
1941         * clone.cc (clone_entry_compare): Fix typo.
1942         From Patrik Marlier <patrick.marlier@unine.ch>.
1944 2010-05-13  Richard Henderson  <rth@redhat.com>
1946         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1947         in extern "C".
1949 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1951         * libitm_i.h (struct gtm_transaction): Remove
1952         get_allocation_size.
1953         (record_allocation): Remove size parameter.
1954         * libitm.map (_ITM_realloc): Remove.
1955         * alloc_c.cc (_ITM_realloc): Remove.
1956         (_ITM_malloc): Remove size argument to record_allocation.
1957         (_ITM_calloc): Same.
1958         * alloc_cpp.cc (_ZGTtnwm): Same.
1959         (_ZGTtnwmRKSt9nothrow_t): Same.
1960         (_ZGTtnam): Same.
1961         (_ZGTtnamRKSt9nothrow_t): Same.
1962         * alloc.cc (struct gtm_alloc_action): Remove size.
1963         (get_allocation_size): Remove.
1964         (commit_allocations): Add comment.
1965         (record_allocation): Remove size parameter.
1966         (forget_allocation): Remove set of size.
1968 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1970         * Makefile.am (abi_version): New.
1971         (AM_CXXFLAGS): Pass abi_version.
1972         * Makefile.in: Regenerate.
1973         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1975 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1977         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1978         _ITM_getTMCloneOrIrrevokable.
1979         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1980         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1982 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1984         * configure.ac: Remove Linux futex support.
1985         * configure.tgt (config_path): Same.
1986         * Makefile.am: Same.
1987         * config/linux: Remove entire directory.
1988         * configure: Rebuild.
1989         * Makefile.in: Rebuild.
1990         * testsuite/Makefile.in: Rebuild.
1992 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1994         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1995         switching to serial mode.
1996         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1998 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2000         * configure.tgt: Add emacs -*- tags.
2001         * barrier.tpl: Same.
2003 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2005         * Makefile.am: Rename serial.cc to method-serial.cc.
2006         * Makefile.in: Regenerate with automake 1.11.1.
2007         * testsuite/Makefile.in: Same.
2008         * aclocal.m4: Regenerate with aclocal 1.11.1.
2009         * method-serial.cc: Rename from serial.cc.
2010         * libitm_i.h (struct gtm_transaction): Update comment on
2011         serialirr_mode.
2013 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2015         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2016         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2018 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2020         * configure: Rebuild.
2022 2009-11-12  Richard Henderson  <rth@redhat.com>
2024         * Rewrite everything in C++.
2026 2009-11-03  Richard Henderson  <rth@redhat.com>
2028         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2029         * Makefile.am (libitm_la_SOURCES): Add them.
2030         * configure.ac (ARCH_X86): New conditional.
2031         * Makefile.in, configure: Rebuild.
2032         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2033         Move futex setup into "other system configury" case.
2034         * local.c (rollback_local): Merge into ...
2035         (GTM_rollback_local): ... here.
2036         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2037         (_ITM_LB): Define as an alias to GTM_LB.
2039 2009-11-03  Richard Henderson  <rth@redhat.com>
2041         * method-readonly.c: New file.
2042         * Makefile.am (libitm_la_SOURCES): Add it.
2043         * Makefile.in: Rebuild.
2044         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2045         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2046         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2047         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2048         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2049         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2050         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2051         gtm_get_clock, gtm_inc_clock): New.
2052         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2053         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2054         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2055         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2056         replace uses with new libitm_i.h symbols.
2057         (dispatch_wbetl): Rename from wbetl_dispatch.
2058         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2059         away from dispatch_readonly; abort if the beginTransaction call
2060         asserted that the transaction was readonly.
2062 2009-11-03  Richard Henderson  <rth@redhat.com>
2064         * memset.c: New file.
2065         * Makefile.am (libitm_la_SOURCES): Add it.
2066         * Makefile.in: Rebuild.
2067         * testsuite/libitm.c/memset-1.c: New.
2069 2009-11-03  Richard Henderson  <rth@redhat.com>
2071         * dispatch.c: Remove file.
2072         * useraction.c (struct gtm_user_action): Move from libitm.h.
2073         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2074         (serial_memset, serial_memmove, serial_memcpy): Remove.
2075         (serial_W*, serial_R*): Remove.
2076         (serial_dispatch): Update to match.
2077         * configure.ac: Move Werror down below configure checks.  Don't
2078         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2079         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2080         Use GCC_AC_FUNC_MMAP_BLACKLIST
2081         * libitm.h: Split out all internal items to...
2082         * libitm_i.h: ... here.  New file.
2083         * copymask.c: New file.
2084         * local.c (struct gtm_local_undo): Move from libitm.h.
2085         (GTM_alloc_local): Rename from alloc_local; export.
2086         * memcpy.c: New file.
2087         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2088         * config/posix/page.c: New file.
2089         * config/posix/target_tls.h: Remove file.
2090         * barrier.c: New file.
2091         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2092         copymask.c, page.c.
2093         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2094         * method-wbetl.c: Rewrite for new cacheline methods.
2095         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2097         * config/alpha/sjlj.S: Fix typo.
2098         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2099         * config/alpha/copymask.c: New file.
2100         * config/alpha/target.h (CACHELINE_SIZE): New.
2101         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2103         * config/x86/target_i.h: Copy functions from x86/target.h.
2104         * config/x86/copymask.c: New file.
2105         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2106         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2107         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2108         * config/x86/target_tls.h: Move contents to target_i.h.
2110         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2111         * testsuite/libitm.c/memcpy-1.c: New.
2113 2009-10-22  Richard Henderson  <rth@redhat.com>
2115         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2116         (AM_CCASFLAGS): New.
2117         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2118         saving/restoring _AC_ARG_VAR_PRECIOUS.
2119         * Makefile.in, aclocal.m4, config.h.in, configure,
2120         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2122 2009-10-22  Richard Henderson  <rth@redhat.com>
2124         * testsuite/*: Update for new compiler syntax.
2126 2009-10-21  Richard Henderson  <rth@redhat.com>
2128         * libitm.h (_ITM_abortReason): Add outerAbort.
2130 2009-08-03  Richard Henderson  <rth@redhat.com>
2132         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2133         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2134         * method-wbetl.c (struct w_entry): Remove mask.
2135         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2136         adjust all callers.
2138 2009-07-22  Richard Henderson  <rth@redhat.com>
2140         * eh_cpp.c: New file.
2141         * Makefile.am (libitm_la_SOURCES): Add it.
2142         * Makefile.in: Rebuild.
2143         * beginend.c (GTM_rollback_transaction): Undo exception state.
2144         (GTM_trycommit_transaction): Mark inline.
2145         (GTM_trycommit_and_finalize_transaction): Split out from ...
2146         (_ITM_commitTransaction): ... here.
2147         (_ITM_commitTransactionEH): New function.
2148         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2149         cxa_unthrown, eh_in_flight; reorder.
2151         * testsuite/libitm.c++/c++.exp: New.
2152         * testsuite/libitm.c++/eh-1.C: New.
2154         * aatree.c (aa_free): Remove REGPARM.
2155         * aatree.h: Remove all REGPARM.
2157 2009-07-18  Richard Henderson  <rth@redhat.com>
2159         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2160         * Makefile.am (libitm_la_SOURCES): Add them.
2161         * Makefile.in: Rebuild.
2162         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2163         (GTM_trycommit_transaction): Likewise.
2164         * libitm.h: Include aatree.h
2165         (struct gtm_alloc_action): New.
2166         (struct gtm_transaction): Add alloc_actions.
2167         (GTM_record_allocation, GTM_forget_allocation): Declare.
2168         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2169         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2170         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2171         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2172         _ZGTtdaPvRKSt9nothrow_t): Export.
2174 2009-07-18  Richard Henderson  <rth@redhat.com>
2176         * target_tls.h: Move ...
2177         * config/posix/target_tls.h: ... here.
2179 2009-07-07  Richard Henderson  <rth@redhat.com>
2181         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2183 2009-07-07  Richard Henderson  <rth@redhat.com>
2185         * Update to GPL3.
2187 2009-07-07  Richard Henderson  <rth@redhat.com>
2189         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2190         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2192         * configure.tgt: Don't use -ftls-model for x86 linux.
2193         * libitm.h: Include target.h after standard includes.
2194         (_gtm_thr): Rename from gtm_thr.
2195         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2196         (gtm_disp, set_gtm_disp): New.
2197         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2198         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2199         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2201 2009-07-07  Richard Henderson  <rth@redhat.com>
2203         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2205 2009-07-06  Richard Henderson  <rth@redhat.com>
2207         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2208         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2209         (_ITM_beginTransaction): Take variadic arguments.
2210         (_ITM_registerThrownObject): Declare.
2211         * beginend.c, serial.c: Update.
2212         * libitm.map: Add _ITM_registerThrownObject.
2214 2009-01-28  Richard Henderson  <rth@redhat.com>
2216         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2217         * Makefile.in: Rebuild.
2218         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2219         (GTM_restart_transaction): Fix uninstrumented code check.
2220         * retry.c (GTM_decide_retry_strategy): Add serial check.
2221         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2222         automatically go irrevokable when in serial mode.
2223         * clone.c: New file.
2224         * libitm.h, libitm.map: Update.
2226 2009-01-27  Richard Henderson  <rth@redhat.com>
2228         * Makefile.am (LTCCASCOMPILE): Define.
2229         (libitm_la_SOURCES): Add methid-wbetl.c.
2230         * testsuite/Makefile.am: New
2231         * configure.ac: Add testsuite/Makefile.
2232         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2233         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2234         (_ITM_abortTransaction): Finalize implementation method; pass
2235         transaction properties to longjmp.
2236         (GTM_restart_transaction): Split out from ...
2237         (_ITM_commitTransaction): ... here.
2238         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2239         Move to config/x86/target.h.
2240         * config/linux/alpha/futex_bits.h: New.
2241         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2242         * config/x86/target.h: Disable target types for 32-bit.
2243         * config/alpha/sjlj.S, config/alpha/target.h: New.
2244         * libitm.h (struct gtm_dispatch): Add init, fini.
2245         (enum restart_reason): New.
2246         (struct gtm_transaction): Add method and restarts.
2247         * retry.c (GTM_decide_retry_strategy): Implement.
2248         * serial.c (serial_init, serial_fini): New.
2249         (GTM_serialmode): Finialize outgoing method.
2250         * method-wbetl.c: New.
2252 2008-12-09  Richard Henderson  <rth@redhat.com>
2254         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2255         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2256         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2257         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2258         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2259         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2260         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2261         * serial.c (serial_R##T, serial_W##T): Likewise.
2263 2008-11-21  Richard Henderson  <rth@redhat.com>
2265         * Initial commit.
2267 Copyright (C) 2008-2020 Free Software Foundation, Inc.
2269 Copying and distribution of this file, with or without modification,
2270 are permitted in any medium without royalty provided the copyright
2271 notice and this notice are preserved.