2018-09-11 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libitm / ChangeLog
blob940520011bf75b6ce1b2027a8a0fef2e1ba42db1
1 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
3         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
4         absolute relocation in a shared library.
6 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
8         PR libitm/85988
9         * config/linux/x86/tls.h (SEG_READ): Use the offset of
10         __private_tm as base.
11         (SEG_WRITE): Likewise.
12         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
13         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
14         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
15         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
16         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
18 2018-05-17  Jason Merrill  <jason@redhat.com>
20         * beginend.cc (save): Disable -Werror=deprecated-copy.
22 2018-05-02  Tom de Vries  <tom@codesourcery.com>
24         PR testsuite/85106
25         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
27 2018-05-02  Tom de Vries  <tom@codesourcery.com>
29         PR testsuite/85106
30         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
32 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
34         * config/x86/sjlj.S (_ITM_beginTransaction): Add
35         (__CET__ & 2) != 0 check for shadow stack.
36         (GTM_longjmp): Likewise.
38 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
40         * configure: Regenerated.
42 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
44         PR target/85489
45         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
47 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
49         * configure: Regenerated.
51 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
53         PR jit/85384
54         * configure: Regenerate.
56 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
58         PR target/84148
59         * configure: Regenerate.
61 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
63         Update copyright years.
65         * libitm.texi: Bump @copying's copyright year.
67 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
69         * Makefile.in: Regenerate.
70         * acinclude.m4: Add enable.m4 and cet.m4.
71         * config/x86/sjlj.S: Include cet.h.
72         (_ITM_beginTransaction): Add _CET_ENDBR.
73         Save Shadow Stack pointer.
74         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
75         * config/x86/target.h (struct gtm_jmpbuf):
76         Add new field for Shadow Stack pointer.
77         * configure: Regenerate.
78         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
79         * configure.ac: Update libtool_VERSION for x86.
80         * testsuite/Makefile.in: Regenerate.
82 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
84         * libitm/config/x86/target.h: Add new field (ssp).
85         * libitm/config/x86/sjlj.S: Change offsets.
87 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
89         * testsuite/lib/libitm.exp: Load scanlang.exp.
91 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
93         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
95 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
97         PR other/79046
98         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
99         of cat to get version from BASE-VER file.
100         * testsuite/Makefile.in: Regenerated.
102 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
104         * config/x86/target.h (htm_available): Determine vendor from
105         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
107 2017-01-18  Torvald Riegel  <triegel@redhat.com>
109         * config/x86/target.h (htm_available): Add check for some processors
110         on which TSX is broken.
112 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
114         PR other/79046
115         * configure.ac: Add GCC_BASE_VER.
116         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
117         get version from BASE-VER file.
118         * testsuite/Makefile.in: Regenerated.
119         * configure: Regenerated.
120         * Makefile.in: Regenerated.
122 2017-01-04  Alan Modra  <amodra@gmail.com>
124         * Makefile.in: Regenerate.
125         * testsuite/Makefile.in: Regenerate.
127 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
129         Update copyright years.
131         * libitm.texi: Bump @copying's copyright year.
133 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
136         * aclocal.m4: Regenerate.
137         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
138         LIBITM_CHECK_LINKER_HWCAP.
140 2016-11-15  Matthias Klose  <doko@ubuntu.com>
142         * configure: Regenerate.
144 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
146         PR libitm/70456
147         * util.cc (xmalloc): Use posix_memalign to allocate memory on
148         on cache line if requested.
150 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
152         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
153         function attribute to disable floating point in begin_transaction() on
154         S/390.
155         * beginend.cc (begin_transaction): Use
156         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
158 2016-01-22  Torvald Riegel  <triegel@redhat.com>
160         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
161         boundary.
162         (htm_fastpath): Remove.
163         (gtm_thread::begin_transaction): Fix HTM fastpath.
164         (_ITM_commitTransaction): Adapt.
165         (_ITM_commitTransactionEH): Adapt.
166         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
167         and accessors.
168         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
169         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
170         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
171         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
172         * libitm/method-serial.cc (htm_mg): Adapt.
173         (gtm_thread::serialirr_mode): Adapt.
174         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
176 2016-01-21  Torvald Riegel  <triegel@redhat.com>
178         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
179         or AIX.
181 2016-01-19  Richard Henderson  <rth@redhat.com>
183         PR bootstrap/69343
184         PR bootstrap/69339
185         Revert:
186         2016-01-13  Richard Henderson  <rth@redhat.com>
188         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
189         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
190         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
191         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
192         * configure.ac (ARCH_AARCH64): New conditional.
193         (ARCH_PPC, ARCH_S390): Likewise.
194         * Makefile.in, configure: Rebuild.
196         * libitm.h (_ITM_TYPE_M128): Always define.
197         * vect64.cc: Split ...
198         * vect128.cc: ... out of...
199         * config/x86/x86_sse.cc: ... here.
200         * config/arm/neon.cc: New file.
202 2016-01-19  Torvald Riegel  <triegel@redhat.com>
204         * local_type_traits: Remove file.
205         * libitm_i.h: Don't include it anymore.
206         (sized_integral): Remove.
208 2016-01-16  Torvald Riegel  <triegel@redhat.com>
210         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
211         safety.
212         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
213         * libitm/testsuite/libitm.c/priv-1.c: New.
215 2015-01-15  Torvald Riegel  <triegel@redhat.com>
217         testsuite/libitm.c++/libstdc++-safeexc.C: New.
219 2016-01-13  Torvald Riegel  <triegel@redhat.com>
221         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
222         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
223         (gtm_rwlock::write_unlock): Likewise.
225 2016-01-13  Richard Henderson  <rth@redhat.com>
227         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
228         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
229         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
230         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
231         * configure.ac (ARCH_AARCH64): New conditional.
232         (ARCH_PPC, ARCH_S390): Likewise.
233         * Makefile.in, configure: Rebuild.
235         * libitm.h (_ITM_TYPE_M128): Always define.
236         * vect64.cc: Split ...
237         * vect128.cc: ... out of...
238         * config/x86/x86_sse.cc: ... here.
239         * config/arm/neon.cc: New file.
241 2016-01-13  Torvald Riegel  <triegel@redhat.com>
243         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
244         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
245         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
246         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
247         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
248         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
249         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
250         (serialirr_dispatch::snapshot_most_recent): New.
251         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
253 2016-01-12  Torvald Riegel  <triegel@redhat.com>
255         * libitm_i.h (gtm_mask_stack): Remove.
256         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
257         * stmlock.h: Remove file.
258         * config/alpha/cacheline.h: Likewise.
259         * config/generic/cacheline.h: Likewise.
260         * config/powerpc/cacheline.h: Likewise.
261         * config/sparc/cacheline.h: Likewise.
262         * config/x86/cacheline.h: Likewise.
264 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
266         Update copyright years.
268         * libitm.texi: Bump @copying's copyright year.
270 2015-11-26  Torvald Riegel  <triegel@redhat.com>
272         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
273         (ml_wt_dispatch::pre_write): Adapt.
274         (ml_wt_dispatch::pre_load): Likewise.
276 2015-11-22  Torvald Riegel  <triegel@redhat.com>
278         * libitm_i.h (gtm_alloc_action): Remove union.
279         * testsuite/libitm.c/alloc-1.c: New.
281 2015-11-19  Torvald Riegel  <triegel@redhat.com>
283         * testsuite/libitm.c++/eh-5.C: New.
284         * libitm.h (_ITM_cxa_free_exception): New.
285         * libitm.map (_ITM_cxa_free_exception): Add it.
286         * libitm.texi: Update ABI docs.
287         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
288         (gtm_transaction_cp::cxa_uncaught_count): Add.
289         (gtm_thread::cxa_unthrown): Remove.
290         (gtm_thread::cxa_uncaught_count_ptr): Add.
291         (gtm_thread::cxa_uncaught_count): Add.
292         (gtm_thread::drop_references_allocations): Rename to...
293         (gtm_thread::discard_allocation): ... this and adapt.
294         (gtm_thread::init_cpp_exceptions): New.
295         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
296         (gtm_thread::begin_transaction): Likewise.
297         (gtm_transaction_cp::save): Likewise.
298         (gtm_thread::trycommit): Likewise.
299         * eh_cpp.cc: Add overview comments.
300         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
301         (free_any_exception, _ITM_cxa_free_exception): New.
302         (gtm_thread::init_cpp_exceptions): Define.
303         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
304         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
305         (gtm_thread::revert_cpp_exceptions): Likewise.
307 2015-11-09  Torvald Riegel  <triegel@redhat.com>
309         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
310         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
311         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
312         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
313         (gtm_thread::forget_allocations): New overload with size_t argument.
314         * alloc.c (gtm_thread::forget_allocation): Define new overload and
315         adapt existing one.
316         (gtm_thread::record_allocation): Adapt.
317         (gtm_thread::commit_allocations_1): Adapt.
318         (gtm_thread::commit_allocations_2): Adapt.
319         * testsuite/libitm.c++/newdelete.C: New.
321 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
322             Joseph Myers  <joseph@codesourcery.com>
323             Mark Shinwell  <shinwell@codesourcery.com>
324             Andrew Stubbs  <ams@codesourcery.com>
325             Rich Felker <dalias@libc.org>
327         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
328         GTM_begin_transaction for compatibility with FDPIC.
330 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
332         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
333         using load_gcc_lib.
335 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
337         PR libitm/61164
338         * local_atomic (__always_inline): Rename to...
339         (__libitm_always_inline): ... this.
341 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
343         PR target/52482
344         * config/powerpc/sjlj.S: Port to Xcode 2.5.
346 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
348         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
349         operands "op" and "val" to int.
351 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
353         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
354         "op" and "val" to int.
356 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
358         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
359         "op" and "val" to int.
361 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
363         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
364         Declare as static int.
365         (FUTEX_PRIVATE_FLAG): Remove L suffix.
366         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
368 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
370         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
371         sys_futex0 function.
373 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
375         * Makefile.in: Regenerated with automake-1.11.6.
376         * aclocal.m4: Likewise.
377         * configure: Likewise.
378         * testsuite/Makefile.in: Likewise.
380 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
382         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
383         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
385 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
387         PR libitm/64360
388         * libitm.c/stackundo.c (test2): Make it static.
389         (test1): Likewise.
391 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
393         Update copyright years.
395 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
397         * libitm.texi: Bump @copying's copyright year.
399 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
401         * testsuite/lib/libitm.exp: Load target-utils.exp.
402         Move load of target-supports.exp earlier.
404 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
406         * configure.tgt (x86_64): Tune -m32 multilib to generic.
408 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
410         PR bootstrap/63784
411         * configure: Regenerated.
413 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
415         PR target/63610
416         * configure: Regenerate.
418 2014-10-06  Marek Polacek  <polacek@redhat.com>
420         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
421         * testsuite/libitm.c/memset-1.c: Likewise.
423 2014-07-24  Richard Henderson  <rth@redhat.com>
425         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
426         addressing mode in epilogue.
428 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
430         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
431         -mclear-hwcap instead.
432         * configure: Regenerate.
433         * clearcap.map: Remove.
435 2014-05-21  John Marino  <gnugcc@marino.st>
437         * configure.tgt (*-*-dragonfly*): New target.
439 2014-05-19  Richard Henderson  <rth@redhat.com>
441         * config/aarch64/sjlj.S: New file.
442         * config/aarch64/target.h: New file.
443         * configure.tgt: Enable aarch64.
445 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
447         * config/generic/asmcfi.h: Also check for
448         __GCC_HAVE_DWARF2_CFI_ASM.
450 2013-04-02  Richard Henderson  <rth@redhat.com>
452         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
453         * config/arm/target.h, config/sh/target.h: Likewise.
454         * config/sparc/target.h, config/x86/target.h: Likewise.
456 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
458         * config/linux/futex_bits.h: Include errno.h.
459         (sys_futex0): If syscall returns -1, return -errno rather than
460         -1.
462 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
464         * libitm.texi (Index): Rename to Library Index.
466 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
468         PR libitm/53113
469         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
470         (x86_avx.lo): Append -mavx to CXXFLAGS.
471         * Makefile.in: Regenerate.
473 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
475         Update copyright years
477 2014-01-02  Tobias Burnus  <burnus@net-b.de>
479         * libitm.texi: Bump @copying's copyright year.
481 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
483         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
484         (FUNC): Define ELFv2 variant.
485         (END): Likewise.
486         (HIDDEN): Likewise.
487         (CALL): Likewise.
488         (BASE): Likewise.
489         (LR_SAVE): Likewise.
491 2013-09-20  Alan Modra  <amodra@gmail.com>
493         * configure: Regenerate.
495 2013-08-30  Torvald Riegel  <triegel@redhat.com>
497         * config/posix/rwlock.cc: Fix initialization order.
499 2013-08-30  Torvald Riegel  <triegel@redhat.com>
501         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
502         (htm_fastpath): Assign an asm name.
503         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
504         HTM fast paths.
505         (_ITM_actions): Likewise.
506         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
507         x86_64.
508         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
509         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
510         field to the start of the structure.
511         * config/linux/rwlock.h (gtm_rwlock): Update comments.
512         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
513         handling for custom HTM fast paths.
515 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
516         Revert:
517         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
519         * configure.tgt: Add -msoft-float to XCFLAGS.
521 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
523         * configure.tgt: Add -msoft-float to XCFLAGS.
525 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
527         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
528         (htm_transaction_active): Enable zEC12 instructions in the
529         assembler.
530         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
532 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
534         * acinclude.m4: Add htm asm check for s390.
535         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
536         * configure: Regenerate.
537         * config/s390/target.h: Remove __HTM__ check.
538         (htm_available): Call getauxval to get hwcaps and check whether
539         HTM is available or not.
541 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
543         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
544         * configure.ac: Use it.
545         (AC_CHECK_HEADERS): Check for sys/auxv.h.
546         (AC_CHECK_FUNCS): Check for getauxval.
547         * config.h.in, configure: Rebuild.
548         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
549         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
550         (USE_HTM_FASTPATH): Define.
551         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
552         _HTM_RETRIES) New macros.
553         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
554         htm_begin_success, htm_commit, htm_transaction_active): New functions.
556 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
558         * config/s390/target.h: Include htmintrin.h.
559         (_HTM_ITM_RETRIES): New macro definition.
560         (htm_available, htm_init, htm_begin, htm_begin_success)
561         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
563 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
564             Cesar Philippidis  <cesar@codesourcery.com>
566         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
567         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
568         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
569         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
571 2013-06-20  Torvald Riegel  <triegel@redhat.com>
573         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
574         (_ITM_getTransactionId): Same.
575         * config/x86/target.h (htm_transaction_active): New.
577 2013-06-20  Torvald Riegel  <triegel@redhat.com>
579         PR libitm/57643
580         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
581         the HTM fastpath.
583 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
585         PR bootstrap/56714
586         * local_atomic (__always_inline): Always define our version.
587         (__calculate_memory_order): Mark inline.
588         (atomic_thread_fence): Ditto.
589         (atomic_signal_fence): Ditto.
590         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
591         (atomic_bool::atomic_flag_clear_explicit): Ditto.
592         (atomic_bool::atomic_flag_test_and_set): Ditto.
593         (atomic_bool::atomic_flag_clear): Ditto.
595 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
597         * config/s390/sjlj.S: New file.
598         * config/s390/target.h: New file.
599         * configure.tgt: Set options for S/390.
601 2013-03-23  Andi Kleen  <ak@linux.intel.com>
603         * local_atomic (__always_inline): Add.
604         (__calculate_memory_order, atomic_thread_fence,
605          atomic_signal_fence, test_and_set, clear, store, load,
606          exchange, compare_exchange_weak, compare_exchange_strong,
607          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
608         Add __always_inline to force inlining.
610 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
611             Jack Howarth  <howarth@bromo.med.uc.edu>
612             Patrick Marlier  <patrick.marlier@gmail.com>
614         PR libitm/55693
615         * alloc_cpp.cc: Enable function declarations on darwin.
616         * eh_cpp.cc: Likewise.
618 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
620         Update copyright years.
622 2012-11-09  Torvald Riegel  <triegel@redhat.com>
624         * beginend.cc (htm_fastpath): New.
625         (gtm_thread::begin_transaction, _ITM_commitTransaction,
626         _ITM_commitTransactionEH): Add HTM fastpath handling.
627         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
628         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
629         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
630         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
631         * configure.tgt: Add -mrtm to XCFLAGS.
632         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
633         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
634         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
635         * retry.cc (parse_default_method): Add HTM method parsing.
636         (gtm_thread::number_of_threads_changed): Use HTM by default if
637         available.
639 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
641         * configure: Regenerate.
643 2012-10-31  Richard Henderson  <rth@redhat.com>
645         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
646         * configure.ac: Use it.
647         * config.h.in, configure: Rebuild.
648         * testsuite/Makefile.in: Rebuild.
650 2012-10-24  Torvald Riegel  <triegel@redhat.com>
652         * libitm.texi: Clarify ABI requirements for data-logging functions.
654 2012-10-24  Torvald Riegel  <triegel@redhat.com>
656         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
657         it requires serial mode instead of assuming that for certain
658         dispatchs.
659         * dispatch.h (abi_dispatch::requires_serial): New.
660         (abi_dispatch::abi_dispatch): Adapt.
661         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
662         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
663         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
664         serial_dispatch::serial_dispatch,
665         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
667 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
669         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
670         and ia32 declarations some more.
671         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
673 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
675         PR other/43620
676         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
677         * configure: Regenerate.
678         * Makefile.in: Regenerate.
680 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
682         * configure: Regenerated.
684 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
686         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
688 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
690         * eh_cpp.cc: Fix __cxa_end_catch declaration.
692 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
694         * configure: Regenerated.
696 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
698         PR libitm/52854
699         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
700         for x86-64.
702 2012-04-03  Tristan Gingold  <gingold@adacore.com>
704         * configure: Regenerate.
706 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
708         PR bootstrap/52812
709         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
711 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
713         * testsuite/lib/libitm.exp: load fortran-modules.exp
715 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
717         * configure.tgt (*-*-irix6*): Remove.
719 2012-03-13  Torvald Riegel  <triegel@redhat.com>
721         PR libitm/52526
722         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
723         wake-up.
725 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
727         * configure.tgt (*-*-osf*): Remove.
728         * configure: Regenerate.
730 2012-03-05  Torvald Riegel  <triegel@redhat.com>
732         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
733         memtransfer/memset if size isn't larger than zero.
735 2012-03-02  Torvald Riegel  <triegel@redhat.com>
737         * libitm.texi: Link to specification and add a usage example.
739 2012-02-24  Torvald Riegel  <triegel@redhat.com>
741         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
742         default dispatch for more than 1 thread to ml_wt.
744 2012-02-20  Torvald Riegel  <triegel@redhat.com>
746         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
748 2012-02-20  Torvald Riegel  <triegel@redhat.com>
750         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
752 2012-02-20  Torvald Riegel  <triegel@redhat.com>
754         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
755         serial mode corner cases made obsolete by prior gtm_rwlock changes.
756         (gl_wt_dispatch.rollback): Same.
758 2012-02-20  Torvald Riegel  <triegel@redhat.com>
760         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
762 2012-02-20  Torvald Riegel  <triegel@redhat.com>
764         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
765         for RfW src.  Optimize number of calls to gtm_thr.
767 2012-02-20  Torvald Riegel  <triegel@redhat.com>
769         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
770         acquisition to ...
771         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
772         (default_dispatch): Make atomic.
773         (GTM::gtm_thread::set_default_dispatch): Access atomically.
774         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
775         use decide_begin_dispatch() if default_dispatch might have changed.
776         (GTM::gtm_thread::number_of_threads_changed): Initialize
777         default_dispatch here.
779 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
780             Patrick Marlier  <patrick.marlier@gmail.com>
782         PR libitm/52220
783         * alloc_cpp.cc: No dummy definitions for darwin.
784         * eh_cpp.cc: Likewise.
786 2012-02-14  Richard Henderson  <rth@redhat.com>
788         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
790 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
792         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
794 2012-02-14  Torvald Riegel  <triegel@redhat.com>
796         * libitm_i.h (GTM::gtm_rwlog_entry): New.
797         (GTM::gtm_thread): Add read and write logs.
798         (GTM::dispatch_ml_wt): Declare.
799         * retry.cc (parse_default_method): Support ml_wt.
800         * method-ml.cc: New file.
801         * Makefile.am: Add method-ml.cc.
802         * Makefile.in: Regenerate.
804 2012-02-14  Torvald Riegel  <triegel@redhat.com>
806         * dispatch.h (GTM::abi_dispatch::supports): New.
807         (GTM::method_group::reinit): New.
808         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
809         (GTM::gtm_thread::number_of_threads_changed): Check that the method
810         supports the current situation.
812 2012-02-14  Torvald Riegel  <triegel@redhat.com>
814         * util.cc (GTM::xcalloc): New.
815         * common.h (GTM::xcalloc): Declare.
817 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
819         * config/sparc/target.h (cpu_relax): Read from CC register.
820         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
822 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
824         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
826 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
828         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
829         * config/sparc/cacheline.h: New file.
830         * config/sparc/target.h: Likewise.
831         * config/sparc/sjlj.S: Likewise.
832         * config/linux/sparc/futex_bits.h: Likewise.
834 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
836         * configure.ac (link_itm): Fix comment.
837         * configure: Regenerate.
838         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
840 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
842         PR libitm/51822
843         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
844         Correct libgomp references.
846 2012-01-24  Torvald Riegel  <triegel@redhat.com>
848         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
849         wake-up.
851 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
853         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
854         end of structure.
855         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
856         offset values.  Do not copy return address.  Decrement stack
857         by 56 bytes only.
858         (GTM_longjump) [__x86_64__]: Update offset values.
860 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
862         PR libitm/51830
863         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
864         the first function argument to %eax.
866 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
868         * libitm.h (_ITM_getThreadnum): Remove.
869         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
871 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
873         * clearcap.map: New file.
874         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
875         * configure.ac: Call it.
876         Clear HWCAP_LDFLAGS if defaulting to -mavx.
877         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
878         * configure: Regenerate.
879         * Makefile.in: Regenerate.
880         * testsuite/Makefile.in: Regenerate.
882 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
884         PR libitm/51173
885         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
886         include, exclude options.
888 2012-01-14  Torvald Riegel  <triegel@redhat.com>
890         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
891         rolling back.
892         * containers.h (GTM::vector::set_size): New.
894 2012-01-14  Torvald Riegel  <triegel@redhat.com>
896         PR libitm/51855
897         * config/generic/tls.h (GTM::mask_stack_top): New.
898         (GTM::mask_stack_bottom): Declare.
899         * config/generic/tls.c (GTM::mask_stack_bottom): New.
900         * local.cc (gtm_undolog::rollback): Filter out any updates that
901         overlap the libitm stack.  Add current transaction as parameter.
902         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
903         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
904         * testsuite/libitm.c/stackundo.c: New test.
906 2012-01-10  Richard Henderson  <rth@redhat.com>
908         * libitm_i.h (_Unwind_DeleteException): Declare weak.
909         * eh_cpp.cc (_Unwind_DeleteException): Define for
910         !HAVE_ELF_STYLE_WEAKREF.
912 2012-01-08  Torvald Riegel  <triegel@redhat.com>
914         * local.cc (GTM_LB): Use GTM::gtm_undolog.
915         (GTM::gtm_thread::drop_references_undolog): Remove.
916         (GTM::gtm_thread::commit_undolog,
917         GTM::gtm_thread::rollback_undolog): Move to ...
918         * libitm_i.h (GTM::gtm_undolog): ...here. New.
919         (GTM::gtm_undolog_entry): Remove.
920         (GTM::gtm_thread): Adapt.
921         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
922         (GTM::gtm_thread::trycommit): Adapt.
923         * method-serial.cc (serial_dispatch::log): Adapt.
924         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
925         (gl_wt_dispatch::store): Fix likely/unlikely.
926         * containers.h (GTM::vector::resize): Add additional_capacity
927         parameter and handle it.
928         (GTM::vector::resize_noinline): New/adapt.
929         (GTM::vector::push): New.
931 2012-01-06  Richard Henderson  <rth@redhat.com>
933         * configure.tgt: Support powerpc-linux and powerpc-darwin.
934         * config/linux/powerpc/futex_bits.h: New file.
935         * config/powerpc/cacheline.h: New file.
936         * config/powerpc/sjlj.S: New file.
937         * config/powerpc/target.h: New file.
938         * config/generic/asmcfi.h (cfi_offset): New.
939         (cfi_restore, cfi_undefined): New.
941 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
943         PR other/51171
944         * testsuite/libitm.c/reentrant.c: Remove xfail.
945         (thread): Pass x to pure().
946         From Patrik Marlier <patrick.marlier@gmail.com>.
948 2011-12-24  Torvald Riegel  <triegel@redhat.com>
950         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
951         privatization safety if already in serial mode.
953 2011-12-24  Torvald Riegel  <triegel@redhat.com>
955         * beginend.cc (GTM::gtm_thread::restart): Add and handle
956         finish_serial_upgrade parameter.
957         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
958         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
959         Don't unset reader flag.
960         (GTM::gtm_rwlock::write_upgrade_finish): New.
961         * config/posix/rwlock.cc: Same.
962         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
963         Declare.
964         * config/posix/rwlock.h: Same.
965         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
966         flag after commit or after rollback when restarting.
968 2011-12-24  Torvald Riegel  <triegel@redhat.com>
970         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
971         (GTM::gtm_thread::try_commit): Changed memory order.
972         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
973         as parameter.
974         * config/linux/x86/futex_bits.h (sys_futex0): Same.
975         * config/linux/sh/futex_bits.h (sys_futex0): Same.
976         * config/linux/futex_bits.h (sys_futex0): Same.
977         * config/linux/futex.cc (futex_wait, futex_wake): Same.
978         * config/linux/futex.h (futex_wait, futex_wake): Same.
979         * config/linux/rwlock.h (gtm_rwlock::writers,
980         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
981         ints.
982         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
983         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
984         gtm_rwlock::write_unlock): Fix memory orders and fences.
985         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
986         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
987         gtm_rwlock::write_unlock): Same.
988         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
989         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
990         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
991         Add comments.
992         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
993         gl_wt_dispatch::load, gl_wt_dispatch::store,
994         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
995         orders and fences.  Add comments.
997 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
999         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1000         * Makefile.in: Regenerated.
1002 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1004         * configure.tgt: Add sh* case.
1005         * config/sh/target.h: New file.
1006         * config/sh/sjlj.S: New file.
1007         * config/linux/sh/futex_bits.h: New file.
1009 2011-12-14  Richard Henderson  <rth@redhat.com>
1011         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1012         * config/arm/sjlj.S, config/arm/target.h: New files.
1013         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1014         (cfi_rel_offset): New.
1015         * config/linux/futex_bits.h: New file.
1016         * config/linux/futex.cc: Include futex_bits.h here...
1017         * config/linux/futex.h: ... not here.
1018         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1019         * configure.ac (ARCH_AM): New conditional.
1020         * Makefile.in, configure: Rebuild.
1021         * configure.tgt: Handle ARM.
1023 2011-12-13  Richard Henderson  <rth@redhat.com>
1025         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1026         signed/unsigned comparison werror.
1028         * local_atomic: New file.
1029         * libitm_i.h: Include it.
1030         (gtm_thread::shared_state): Use atomic template.
1031         * beginend.cc (GTM::gtm_clock): Use atomic template.
1032         (global_tid): Use atomic template if 64-bit atomics available.
1033         (gtm_thread::gtm_thread): Update shared_state access.
1034         (gtm_thread::trycommit): Likewise.
1035         (choose_code_path): Update global_tid access.
1036         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1037         * stmlock.h (GTM::gtm_clock): Use atomic template.
1038         (gtm_get_clock, gtm_inc_clock): Update accesses.
1039         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1040         redundant __sync_synchronize after atomic shared_state access.
1041         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1042         (gtm_rwlock::write_lock_generic): Likewise.
1043         (gtm_rwlock::read_unlock): Likewise.
1044         * config/alpha/target.h (atomic_read_barrier): Remove.
1045         (atomic_write_barrier): Remove.
1046         * config/x86/target.h (atomic_read_barrier): Remove.
1047         (atomic_write_barrier): Remove.
1049 2011-11-30  Richard Henderson  <rth@redhat.com>
1051         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1052         * beginend.c (_ITM_abortTransaction): Update to match.
1053         (GTM::gtm_thread::restart): Likewise.
1054         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1055         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1057 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1059         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1060         * Makefile.in: Regenerate.
1062 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1064         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1065         * alloc_cpp.cc: Generate dummy functions if we don't
1066         HAVE_ELF_STYLE_WEAKREF.
1067         * eh_cpp.cc: Likewise.
1068         * configure: Regenerate.
1069         * aclocal.m4:  Likewise.
1070         * config.h.in: Likewise.
1071         * Makefile.in: Likewise.
1072         * testsuite/Makefile.in: Likewise.
1074 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1076         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1077         __USER_LABEL_PREFIX__ for targets that use it.
1078         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1079         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1080         in portability to non-elf targets.
1081         (GTM_longjmp): Likewise.
1082         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1083         where required.
1085 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1087         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1088         * testsuite/libitm.c/memset-1.c: Likewise.
1090 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1092         * configure: Regenerate.
1094 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1096         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1097         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1098         * Makefile.am: Handle sun style versioning.
1099         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1100         * configure: Regenerate.
1101         * Makefile.in: Regenerate.
1103 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1105         * config/generic/asmcfi.h: Fix comment.
1106         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1107         sequence without .hidden support, error for non-ELF targets.
1108         (GTM_longjmp) [__ELF__]: Only use .hidden if
1109         HAVE_ATTRIBUTE_VISIBILITY.
1111 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1113         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1114         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1115         Dummy functions.
1116         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1117         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1119 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1121         PR bootstrap/51098
1122         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1123         * configure: Regenerate.
1125 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1127         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1129 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1131         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1132         .hidden.
1133         (.note.GNU-stack): Only use if __linux__.
1134         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1135         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1136         * testsuite/libitm.c/reentrant.c: Likewise.
1137         * testsuite/libitm.c/simple-2.c: Likewise.
1138         * testsuite/libitm.c/txrelease.c: Likewise.
1139         * testsuite/libitm.c++/static_ctor.C: Likewise.
1141 2011-11-10  Richard Henderson  <rth@redhat.com>
1143         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1144         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1145         * configure.ac (ARCH_X86_AVX): New conditional.
1146         * Makefile.in, configure: Rebuild.
1148 2011-11-09  Richard Henderson  <rth@redhat.com>
1150         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1151         * configure.ac: Use it.
1152         * config.h.in, configure: Rebuild.
1153         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1155 2011-11-09  Richard Henderson  <rth@redhat.com>
1157         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1158         * config/alpha/unaligned.h: Remove file.
1159         * config/generic/unaligned.h: Remove file.
1160         * config/x86/unaligned.h: Remove file.
1161         * config/generic/cachepage.h: Remove file.
1162         * config/posix/cachepage.cc: Remove file.
1163         * config/generic/cacheline.cc: Remove file.
1164         * config/x86/cacheline.cc: Remove file.
1165         * config/generic/cacheline.h (gtm_cacheline): Remove the
1166         store_mask, copy_mask, copy_mask_wb methods.
1167         * config/x86/cacheline.h: Likewise.
1168         * config/alpha/cacheline.h: Fall back to generic after setting size.
1169         * config/generic/tls.cc (gtm_mask_stack): Remove.
1170         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1171         (GTM_vpalignr_table): Remove.
1172         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1173         (GTM_pshift_table): Remove.
1174         * config/libitm_i.h: Don't include cachepage.h.
1175         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1176         * Makefile.in, testsuite/Makefile.in: Rebuild.
1178 2011-11-09  Richard Henderson  <rth@redhat.com>
1180         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1181         to emit branch prediction hint.
1183         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1184         Protect .note.GNU-stack with __linux__.
1186         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1187         * configure, aclocal.m4, config.h.in: Rebuild.
1188         * config/generic/asmcfi.h: New file.
1189         * config/x86/sjlj.S: Use it.
1191 2011-11-08  Richard Henderson  <rth@redhat.com>
1193         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1195 2011-11-08  Richard Henderson  <rth@redhat.com>
1197         * configure.tgt: Test correct directory for supported cpus.
1199         * configure.ac: Exit if unsupported.
1200         * configure: Rebuild.
1201         * configure.tgt: Delete boilerplate from libgomp for unsupported
1202         targets.  Set UNSUPPORTED for unsupported targets.
1204 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1206         * configure.tgt: Handle i386 like i[456]86.
1207         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1208         take address.
1209         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1210         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1212 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1214         * method-wbetl.cc: Update copyright notice.
1215         * aatree.cc: Same.
1216         * util.cc: Same.
1217         * libitm.h: Same.
1218         * memset.cc: Same.
1219         * eh_cpp.cc: Same.
1220         * barrier.tpl: Same.
1221         * useraction.cc: Same.
1222         * stmlock.h: Same.
1223         * memcpy.cc: Same.
1224         * common.h: Same.
1225         * config/generic/tls.cc: Same.
1226         * config/generic/cacheline.h: Same.
1227         * config/generic/cachepage.h: Same.
1228         * config/generic/cacheline.cc: Same.
1229         * config/generic/unaligned.h: Same.
1230         * config/x86/cacheline.h: Same.
1231         * config/x86/cacheline.cc: Same.
1232         * config/x86/unaligned.h: Same.
1233         * config/alpha/cacheline.h: Same.
1234         * config/alpha/unaligned.h: Same.
1235         * config/alpha/sjlj.S: Same.
1236         * config/posix/cachepage.cc: Same.
1237         * config/linux/futex.h: Same.
1238         * config/linux/alpha/futex_bits.h: Same.
1240 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1242         * libitm.texi: No cover text and invariant sections.
1244 2011-11-03  Richard Henderson  <rth@redhat.com>
1246         * local_type_traits: New file.
1247         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1249 2011-11-03  Richard Henderson  <rth@redhat.com>
1251         * configure.ac: Don't test for gfortran.
1252         * configure: Rebuild.
1254         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1255         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1257 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1259         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1260         * testsuite/libitm.c/memset-1.c: Same.
1261         * testsuite/libitm.c/c.exp: Same.
1262         * testsuite/lib/libitm-dg.exp: Same.
1263         * testsuite/lib/libitm.exp: Same.
1264         * testsuite/libitm.c++/c++.exp: Same.
1266 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1268         * testsuite/config/default.exp: Update copyright date.
1269         * configure.ac: Add copyright info.
1270         * configure.tgt: Same.
1272 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1274         * testsuite/libitm.c/reentrant.c: XFAIL.
1275         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1277 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1279         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1280         handle aborts.
1281         (_ITM_abortTransaction): Handle aborts of outer transactions.
1282         * libitm_i.h: Same.
1283         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1284         * libitm.texi: Document aborts of outer transactions.
1285         * testsuite/libitm.c/cancel.c: New file.
1287 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1289         * testsuite/*: Change __transaction to __transaction_atomic or
1290         __transaction_relaxed.
1292 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1294         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1295         (gtm_thr): Same.
1297 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1299         * libitm_i.h: Add gl_wt dispatch.
1300         * retry.cc (parse_default_method): Same.
1301         * method-gl.cc: New file.
1302         * Makefile.am: Use method-gl.cc.
1303         * Makefile.in: Rebuild.
1305 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1307         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1308         safety if requested by a TM method.
1309         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1310         privatization safety.
1311         * method-serial.cc: Same.
1313 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1315         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1316         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1317         undolog-related member functions from *_local to *_undolog.
1318         * local.cc (gtm_thread::commit_undolog): Same.
1319         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1320         (GTM::gtm_thread::rollback): Roll back undolog before
1321         dispatch-specific rollback.
1323 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1325         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1326         re-initialization of the current method group.
1327         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1329 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1331         * alloc.cc (commit_allocations_2): Do not free transaction-local
1332         memory when committing a nested transaction.
1334 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1336         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1337         serial-irrevocable dispatch, not serial.
1339 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1341         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1342         declarations.
1343         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1344         * method-serial.cc: Implement begin_or_restart().
1345         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1346         dispatch-specific begin_or_restart().
1347         (GTM::gtm_thread::restart): Same.
1349 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1351         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1352         restarting without switching to serial mode.
1353         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1354         transaction state. Choose closed-nesting alternative if available.
1355         (GTM::gtm_thread::set_default_dispatch): New.
1356         (parse_default_method): New.
1357         (GTM::gtm_thread::number_of_threads_changed): New.
1358         * method-serial.cc (GTM::serial_mg): New method group class.
1359         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1360         fini.
1361         (GTM::serial_dispatch): Same.
1362         (GTM::serialirr_onwrite_dispatch): Same.
1363         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1364         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1365         registered threads.
1366         (GTM::gtm_thread::gtm_thread): Same.
1367         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1368         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1369         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1370         choose dispatch but set state according to dispatch here.
1371         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1372         (GTM::method_group): New class.
1373         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1374         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1375         * libitm.texi: Document TM methods, method groups, method life cycle.
1376         Rename method sets to method groups.
1378 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1380         * config/x86/tls.h: Moved to ...
1381         * config/linux/x86/tls.h: ... here.
1383 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1385         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1386         Add X32 support.
1387         * config/x86/sjlj.S: Same.
1389 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1391         * config/linux/rwlock.h: New file.
1392         * config/linux/rwlock.c: New file.
1393         * configure.ac: Reenable futex support (undo SVN rev 157758).
1394         * Makefile.am: Same.
1395         * configure.tgt: Same.
1396         * config/linux/alpha/futex_bits.h: Same.
1397         * config/linux/futex.h: Same. Return number of woken processes.
1398         * config/linux/futex.cc: Same.
1399         (futex_wait): Remove spinning.
1400         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1401         Use __x86_64__ instead of __LP64__.
1402         * aclocal.m4: Include generic futex checks.
1403         * configure: Rebuild.
1404         * Makefile.in: Rebuild.
1405         * testsuite/Makefile.in: Rebuild.
1406         * beginend.cc: Include pthread.h.
1407         * config/posix/cachepage.cc: Same.
1409 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1411         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1412         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1413         (set_gtm_thr): New.
1414         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1415         (set_gtm_thr): New.
1416         (GTM::gtm_thread::thread_num): Removed.
1417         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1418         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1419         tx-to-thread renaming.
1420         * beginend.cc: Adapted to tx-to-thread renaming.
1421         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1422         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1423         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1424         gtm_transaction to gtm_thread.
1425         (_ITM_getThreadnum): Removed. Not supported anymore.
1426         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1427         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1428         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1429         gtm_tx-to-gtm_thr renaming if necessary.
1430         * eh_cpp.cc: Same.
1431         * local.cc: Same.
1432         * retry.cc: Same.
1433         * clone.cc: Same.
1434         * alloc.cc: Same.
1435         * alloc_c.cc: Same.
1436         * alloc_cpp.cc: Same.
1437         * method-serial.cc: Same.
1438         * config/generic/tls.cc: Same.
1439         * config/posix/rwlock.h (gtm_rwlock): Same.
1440         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1442 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1444         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1445         implementation.
1446         (gtm_rwlock::read_unlock): Same.
1447         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1448         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1449         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1450         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1451         w_upgrade. Replaced by per-transaction flags (in shared_state).
1452         Added c_confirmed_writers.
1453         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1454         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1455         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1456         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1457         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1458         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1459         * libitm.texi: Document locking conventions and implementations in
1460         libitm.
1462 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1464         * libitm_i.h (next_tx): Add list of all threads' transaction.
1465         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1466         transaction with list of transactions and ...
1467         (thread_exit_handler): ... deregister here.
1468         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1469         * config/x86/target.h: Same.
1471 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1473         * testsuite/libitm.c++/static_ctor.C: New file.
1475 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1477         * testsuite/libitm.c/reentrant.c: New file.
1479 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1481         * config/generic/tls.h: Remove the free list for transactions and ...
1482         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1483         (GTM::gtm_transaction::operator delete): ... and release here.
1484         (thread_exit_handler): New. Delete tx when thread terminates.
1485         (thread_exit_init): New.
1486         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1487         * testsuite/libitm.c/txrelease.c: New file.
1489 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1491         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1492         * testsuite/libitm.c/notx.c: New file.
1494 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1496         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1497         * libitm_i.h (local_tid): ... to here.
1498         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1499         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1501 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1503         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1504         serialirr_onwrite_dispatch as new default for now.
1505         * method-serial.cc (serialirr_onwrite_dispatch): New.
1506         (GTM::dispatch_serialirr_onwrite): New.
1507         * libitm_i.h: Same.
1509 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1511         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1512         * query.cc (_ITM_getTransactionId): There is no active transaction if
1513         the current nesting level is zero.
1515 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1517         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1518         rollback.
1520 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1522         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1523         transaction properties from the caller instead of from the
1524         transaction object.
1525         * libitm_i.h: Same.
1526         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1528 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1530         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1531         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1532         * dispatch.h: Same.
1533         * method-serial.cc: Same.
1534         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1535         flat nesting as default, and closed nesting on demand.
1536         (GTM::gtm_transaction::rollback): Same.
1537         (_ITM_abortTransaction): Same.
1538         (GTM::gtm_transaction::restart): Same.
1539         (GTM::gtm_transaction::trycommit): Same.
1540         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1541         (choose_code_path): New.
1542         (GTM::gtm_transaction_cp::save): New.
1543         (GTM::gtm_transaction_cp::commit): New.
1544         * query.cc (_ITM_inTransaction): Support flat nesting.
1545         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1546         (GTM::gtm_transaction): Support flat and closed nesting.
1547         * alloc.cc (commit_allocations_2): New.
1548         (commit_cb_data): New helper struct.
1549         (GTM::gtm_transaction::commit_allocations): Handle nested
1550         commits/rollbacks.
1551         * libitm.texi: Update user action section, add description of nesting.
1553 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1555         * libitm_i.h: Add closed nesting as restart reason.
1556         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1558 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1560         * useraction.cc: Use vector instead of list to store actions.
1561         Also support partial rollbacks for closed nesting.
1562         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1563         * beginend.cc: Same.
1565 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1567         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1568         closed_nesting flags, as well as a closed nesting alternative.
1569         * method-serial.cc: Same.
1570         (serial_dispatch): Renamed to serialirr_dispatch.
1571         (GTM::dispatch_serialirr): Same.
1572         (serial_dispatch_ul): Renamed to serial_dispatch.
1573         (GTM::dispatch_serial): Same.
1575 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1577         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1579 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1581         * aatree.h (aa_tree::remove): New.
1582         (aa_tree::operator new): Add placement new.
1584 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1586         * containers.h: New file.
1587         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1588         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1589         * common.h: ... to here.
1590         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1591         * local.cc: Same.
1593 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1595         * libitm_i.h (STATE_ABORTING): Remove.
1596         * beginend.cc (_ITM_abortTransaction): Same.
1597         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1598         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1599         (_ITM_rollbackTransaction): Remove.
1600         * beginend.cc: Same.
1601         * libitm.map: Same.
1602         * libitm.texi: Document these ABI changes.
1604 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1606         * libitm.texi: New file.
1607         * Makefile.am: Add libitm.texi.
1608         * Makefile.in: Rebuild.
1610 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1612         * libitm_i.h: Move parts to common.h and dispatch.h.
1613         * common.h: New file.
1614         * dispatch.h: New file, new dispatch class.
1615         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1616         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1617         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1618         decision to retry.cc.
1619         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1620         only.
1621         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1622         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1623         logging.
1624         * barrier.cc: Use new barriers definitions.
1625         (abi_dispatch::memmove_overlap_check): New.
1626         * config/x86/x86_sse.cc: Same.
1627         * config/x86/x86_avx.cc: Same.
1628         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1629         memcpy.cc.
1630         * Makefile.in: Rebuild.
1631         * method-readonly.cc: Remove.
1632         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1633         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1635 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1637         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1638         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1639         * testsuite/libitm.c/dropref-2.c: Same.
1640         * testsuite/libitm.c/dropref.c: Same.
1642 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1644         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1645         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1646         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1647         * alloc_c.cc: Same.
1648         * barrier.tpl: Same.
1649         * beginend.c: Same.
1650         * config/generic/tls.h: Same.
1651         * config/x86/tls.h: Same.
1652         * libitm_i.h: Same.
1653         * memcpy.cc: Same.
1654         * memset.cc: Same.
1655         * method-readonly.cc: Same.
1656         * method-serial.cc: Same.
1657         * method-wbetl.cc: Same.
1658         * retry.cc: Same.
1660 2011-03-03  Richard Henderson  <rth@redhat.com>
1662         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1663         From Patrik Marlier <patrick.marlier@unine.ch>.
1665 2011-02-03  Richard Henderson  <rth@redhat.com>
1667         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1668         * configure.ac: Use it.
1669         * configure, config.h.in: Rebuild.
1670         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1671         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1672         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1673         * libitm.map: Use wildcards to match size_t mangling.
1675 2010-12-14  Richard Henderson  <rth@redhat.com>
1677         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1678         blocks of TIDs per thread.
1679         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1680         (setup_gtm_thr): Return the thread structure.
1681         * config/x86/tls.h (setup_gtm_thr): Likewise.
1683 2010-12-14  Richard Henderson  <rth@redhat.com>
1685         * clone.cc (table_lock): Remove.
1686         (find_clone): Don't take it.
1687         (ExcludeTransaction): New helper class.
1688         (_ITM_registerTMCloneTable): Use it.
1689         (_ITM_deregisterTMCloneTable): Likewise.
1691 2010-12-14  Richard Henderson  <rth@redhat.com>
1693         * config/x86/tls.h: New file.
1695 2010-07-15  Richard Henderson  <rth@redhat.com>
1697         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1698         * Makefile.in: Rebuild.
1700 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1702         * method-wbetl.cc (trydropreference): Fix source line.
1704 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1706         * libitm.h: Add comment.
1707         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1709 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1711         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1712         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1713         available, use pthread mutexes.
1714         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1715         * config.h.in: Regenerate.
1716         * configure: Regenerate.
1718 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1720         * libitm.h (ITM_PURE): Define.
1721         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1723 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1725         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1726         (validate): Add comment.
1727         (trydropreference): New.
1728         * method-readonly.cc (class readonly_dispatch): Add
1729         trydropreference.
1730         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1731         Call trydropreference().
1732         * libitm.h (_ITM_dropReferences): Remove const attribute.
1733         * method-serial.cc (class serial_dispatch): Add trydropreference.
1734         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1736 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1738         * memcpy.cc (do_memcpy): Comment.
1740 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1742         * barrier.tpl: Add comments throughout.
1744 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1746         * method-wbetl.cc (struct w_entry): Add comments.
1747         (trycommit): Same.
1748         (rollback): Same.
1750 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1752         * alloc_c.cc (_ITM_dropReferences): New.
1753         * libitm.map (_ITM_dropReferences): Add.
1754         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1755         * libitm_i.h (struct gtm_transaction): Declare
1756         drop_references_allocations and drop_references_local.
1757         * local.cc (rollback_local): Ignore memory when applicable.
1758         (drop_references_local): New.
1760 2010-06-23  Richard Henderson  <rth@redhat.com>
1762         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1763         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1764         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1765         * config/alpha/target.h: Likewise.
1766         * config/generic/tls.cc (gtm_mask_stack): Use it.
1768 2010-06-23  Richard Henderson  <rth@redhat.com>
1770         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1771         a mutex instead of trying a lock-free compare-and-swap on the list.
1772         (gtm_cacheline_page::operator delete): Likewise.
1774 2010-06-16  Richard Henderson  <rth@redhat.com>
1776         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1777         that overlap the libitm stack.
1778         * barrier.tpl: Mark incoming stack.
1779         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1780         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1781         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1782         * memcpy.cc, memset.cc: Likewise.
1783         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1784         * config/generic/tls.h (gtm_thread): Add stack_top member.
1785         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1786         * libitm_i.h (gtm_mask_stack): Declare.
1787         * config/generic/tls.cc: New file.
1788         * Makefile.am (libitm_la_SOURCES): Add it.
1789         (AM_CXXFLAGS): Turn off exceptions.
1790         * Makefile.in: Rebuild.
1792 2010-06-16  Richard Henderson  <rth@redhat.com>
1794         * alloc.cc (struct gtm_alloc_action): Move definition ...
1795         * libitm_i.h: ... here.
1796         (class gtm_transaction): Declare new and delete.
1797         * beginend.cc (alloc_tx): Reformulate as operator new.
1798         (free_tx): Reformulate as operator delete.
1799         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1801 2010-06-11  Richard Henderson  <rth@redhat.com>
1803         * clone.cc (clone_entry_compare): Fix typo.
1804         From Patrik Marlier <patrick.marlier@unine.ch>.
1806 2010-05-13  Richard Henderson  <rth@redhat.com>
1808         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1809         in extern "C".
1811 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1813         * libitm_i.h (struct gtm_transaction): Remove
1814         get_allocation_size.
1815         (record_allocation): Remove size parameter.
1816         * libitm.map (_ITM_realloc): Remove.
1817         * alloc_c.cc (_ITM_realloc): Remove.
1818         (_ITM_malloc): Remove size argument to record_allocation.
1819         (_ITM_calloc): Same.
1820         * alloc_cpp.cc (_ZGTtnwm): Same.
1821         (_ZGTtnwmRKSt9nothrow_t): Same.
1822         (_ZGTtnam): Same.
1823         (_ZGTtnamRKSt9nothrow_t): Same.
1824         * alloc.cc (struct gtm_alloc_action): Remove size.
1825         (get_allocation_size): Remove.
1826         (commit_allocations): Add comment.
1827         (record_allocation): Remove size parameter.
1828         (forget_allocation): Remove set of size.
1830 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1832         * Makefile.am (abi_version): New.
1833         (AM_CXXFLAGS): Pass abi_version.
1834         * Makefile.in: Regenerate.
1835         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1837 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1839         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1840         _ITM_getTMCloneOrIrrevokable.
1841         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1842         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1844 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1846         * configure.ac: Remove Linux futex support.
1847         * configure.tgt (config_path): Same.
1848         * Makefile.am: Same.
1849         * config/linux: Remove entire directory.
1850         * configure: Rebuild.
1851         * Makefile.in: Rebuild.
1852         * testsuite/Makefile.in: Rebuild.
1854 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1856         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1857         switching to serial mode.
1858         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1860 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1862         * configure.tgt: Add emacs -*- tags.
1863         * barrier.tpl: Same.
1865 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1867         * Makefile.am: Rename serial.cc to method-serial.cc.
1868         * Makefile.in: Regenerate with automake 1.11.1.
1869         * testsuite/Makefile.in: Same.
1870         * aclocal.m4: Regenerate with aclocal 1.11.1.
1871         * method-serial.cc: Rename from serial.cc.
1872         * libitm_i.h (struct gtm_transaction): Update comment on
1873         serialirr_mode.
1875 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1877         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1878         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1880 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1882         * configure: Rebuild.
1884 2009-11-12  Richard Henderson  <rth@redhat.com>
1886         * Rewrite everything in C++.
1888 2009-11-03  Richard Henderson  <rth@redhat.com>
1890         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1891         * Makefile.am (libitm_la_SOURCES): Add them.
1892         * configure.ac (ARCH_X86): New conditional.
1893         * Makefile.in, configure: Rebuild.
1894         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1895         Move futex setup into "other system configury" case.
1896         * local.c (rollback_local): Merge into ...
1897         (GTM_rollback_local): ... here.
1898         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1899         (_ITM_LB): Define as an alias to GTM_LB.
1901 2009-11-03  Richard Henderson  <rth@redhat.com>
1903         * method-readonly.c: New file.
1904         * Makefile.am (libitm_la_SOURCES): Add it.
1905         * Makefile.in: Rebuild.
1906         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1907         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1908         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1909         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1910         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1911         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1912         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1913         gtm_get_clock, gtm_inc_clock): New.
1914         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1915         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1916         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1917         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1918         replace uses with new libitm_i.h symbols.
1919         (dispatch_wbetl): Rename from wbetl_dispatch.
1920         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1921         away from dispatch_readonly; abort if the beginTransaction call
1922         asserted that the transaction was readonly.
1924 2009-11-03  Richard Henderson  <rth@redhat.com>
1926         * memset.c: New file.
1927         * Makefile.am (libitm_la_SOURCES): Add it.
1928         * Makefile.in: Rebuild.
1929         * testsuite/libitm.c/memset-1.c: New.
1931 2009-11-03  Richard Henderson  <rth@redhat.com>
1933         * dispatch.c: Remove file.
1934         * useraction.c (struct gtm_user_action): Move from libitm.h.
1935         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1936         (serial_memset, serial_memmove, serial_memcpy): Remove.
1937         (serial_W*, serial_R*): Remove.
1938         (serial_dispatch): Update to match.
1939         * configure.ac: Move Werror down below configure checks.  Don't
1940         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1941         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1942         Use GCC_AC_FUNC_MMAP_BLACKLIST
1943         * libitm.h: Split out all internal items to...
1944         * libitm_i.h: ... here.  New file.
1945         * copymask.c: New file.
1946         * local.c (struct gtm_local_undo): Move from libitm.h.
1947         (GTM_alloc_local): Rename from alloc_local; export.
1948         * memcpy.c: New file.
1949         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1950         * config/posix/page.c: New file.
1951         * config/posix/target_tls.h: Remove file.
1952         * barrier.c: New file.
1953         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1954         copymask.c, page.c.
1955         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1956         * method-wbetl.c: Rewrite for new cacheline methods.
1957         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1959         * config/alpha/sjlj.S: Fix typo.
1960         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1961         * config/alpha/copymask.c: New file.
1962         * config/alpha/target.h (CACHELINE_SIZE): New.
1963         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1965         * config/x86/target_i.h: Copy functions from x86/target.h.
1966         * config/x86/copymask.c: New file.
1967         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1968         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1969         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1970         * config/x86/target_tls.h: Move contents to target_i.h.
1972         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1973         * testsuite/libitm.c/memcpy-1.c: New.
1975 2009-10-22  Richard Henderson  <rth@redhat.com>
1977         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1978         (AM_CCASFLAGS): New.
1979         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1980         saving/restoring _AC_ARG_VAR_PRECIOUS.
1981         * Makefile.in, aclocal.m4, config.h.in, configure,
1982         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1984 2009-10-22  Richard Henderson  <rth@redhat.com>
1986         * testsuite/*: Update for new compiler syntax.
1988 2009-10-21  Richard Henderson  <rth@redhat.com>
1990         * libitm.h (_ITM_abortReason): Add outerAbort.
1992 2009-08-03  Richard Henderson  <rth@redhat.com>
1994         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1995         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1996         * method-wbetl.c (struct w_entry): Remove mask.
1997         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1998         adjust all callers.
2000 2009-07-22  Richard Henderson  <rth@redhat.com>
2002         * eh_cpp.c: New file.
2003         * Makefile.am (libitm_la_SOURCES): Add it.
2004         * Makefile.in: Rebuild.
2005         * beginend.c (GTM_rollback_transaction): Undo exception state.
2006         (GTM_trycommit_transaction): Mark inline.
2007         (GTM_trycommit_and_finalize_transaction): Split out from ...
2008         (_ITM_commitTransaction): ... here.
2009         (_ITM_commitTransactionEH): New function.
2010         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2011         cxa_unthrown, eh_in_flight; reorder.
2013         * testsuite/libitm.c++/c++.exp: New.
2014         * testsuite/libitm.c++/eh-1.C: New.
2016         * aatree.c (aa_free): Remove REGPARM.
2017         * aatree.h: Remove all REGPARM.
2019 2009-07-18  Richard Henderson  <rth@redhat.com>
2021         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2022         * Makefile.am (libitm_la_SOURCES): Add them.
2023         * Makefile.in: Rebuild.
2024         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2025         (GTM_trycommit_transaction): Likewise.
2026         * libitm.h: Include aatree.h
2027         (struct gtm_alloc_action): New.
2028         (struct gtm_transaction): Add alloc_actions.
2029         (GTM_record_allocation, GTM_forget_allocation): Declare.
2030         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2031         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2032         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2033         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2034         _ZGTtdaPvRKSt9nothrow_t): Export.
2036 2009-07-18  Richard Henderson  <rth@redhat.com>
2038         * target_tls.h: Move ...
2039         * config/posix/target_tls.h: ... here.
2041 2009-07-07  Richard Henderson  <rth@redhat.com>
2043         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2045 2009-07-07  Richard Henderson  <rth@redhat.com>
2047         * Update to GPL3.
2049 2009-07-07  Richard Henderson  <rth@redhat.com>
2051         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2052         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2054         * configure.tgt: Don't use -ftls-model for x86 linux.
2055         * libitm.h: Include target.h after standard includes.
2056         (_gtm_thr): Rename from gtm_thr.
2057         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2058         (gtm_disp, set_gtm_disp): New.
2059         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2060         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2061         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2063 2009-07-07  Richard Henderson  <rth@redhat.com>
2065         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2067 2009-07-06  Richard Henderson  <rth@redhat.com>
2069         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2070         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2071         (_ITM_beginTransaction): Take variadic arguments.
2072         (_ITM_registerThrownObject): Declare.
2073         * beginend.c, serial.c: Update.
2074         * libitm.map: Add _ITM_registerThrownObject.
2076 2009-01-28  Richard Henderson  <rth@redhat.com>
2078         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2079         * Makefile.in: Rebuild.
2080         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2081         (GTM_restart_transaction): Fix uninstrumented code check.
2082         * retry.c (GTM_decide_retry_strategy): Add serial check.
2083         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2084         automatically go irrevokable when in serial mode.
2085         * clone.c: New file.
2086         * libitm.h, libitm.map: Update.
2088 2009-01-27  Richard Henderson  <rth@redhat.com>
2090         * Makefile.am (LTCCASCOMPILE): Define.
2091         (libitm_la_SOURCES): Add methid-wbetl.c.
2092         * testsuite/Makefile.am: New
2093         * configure.ac: Add testsuite/Makefile.
2094         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2095         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2096         (_ITM_abortTransaction): Finalize implementation method; pass
2097         transaction properties to longjmp.
2098         (GTM_restart_transaction): Split out from ...
2099         (_ITM_commitTransaction): ... here.
2100         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2101         Move to config/x86/target.h.
2102         * config/linux/alpha/futex_bits.h: New.
2103         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2104         * config/x86/target.h: Disable target types for 32-bit.
2105         * config/alpha/sjlj.S, config/alpha/target.h: New.
2106         * libitm.h (struct gtm_dispatch): Add init, fini.
2107         (enum restart_reason): New.
2108         (struct gtm_transaction): Add method and restarts.
2109         * retry.c (GTM_decide_retry_strategy): Implement.
2110         * serial.c (serial_init, serial_fini): New.
2111         (GTM_serialmode): Finialize outgoing method.
2112         * method-wbetl.c: New.
2114 2008-12-09  Richard Henderson  <rth@redhat.com>
2116         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2117         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2118         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2119         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2120         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2121         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2122         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2123         * serial.c (serial_R##T, serial_W##T): Likewise.
2125 2008-11-21  Richard Henderson  <rth@redhat.com>
2127         * Initial commit.
2129 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2131 Copying and distribution of this file, with or without modification,
2132 are permitted in any medium without royalty provided the copyright
2133 notice and this notice are preserved.