[42/46] Add vec_info::replace_stmt
[official-gcc.git] / libitm / ChangeLog
blob729603a97215e0454364a0bb18f3488157b905b5
1 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3         PR libitm/85988
4         * config/linux/x86/tls.h (SEG_READ): Use the offset of
5         __private_tm as base.
6         (SEG_WRITE): Likewise.
7         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
8         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
9         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
10         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
11         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
13 2018-05-17  Jason Merrill  <jason@redhat.com>
15         * beginend.cc (save): Disable -Werror=deprecated-copy.
17 2018-05-02  Tom de Vries  <tom@codesourcery.com>
19         PR testsuite/85106
20         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
22 2018-05-02  Tom de Vries  <tom@codesourcery.com>
24         PR testsuite/85106
25         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
27 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
29         * config/x86/sjlj.S (_ITM_beginTransaction): Add
30         (__CET__ & 2) != 0 check for shadow stack.
31         (GTM_longjmp): Likewise.
33 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
35         * configure: Regenerated.
37 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
39         PR target/85489
40         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
42 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
44         * configure: Regenerated.
46 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
48         PR jit/85384
49         * configure: Regenerate.
51 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
53         PR target/84148
54         * configure: Regenerate.
56 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
58         Update copyright years.
60         * libitm.texi: Bump @copying's copyright year.
62 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
64         * Makefile.in: Regenerate.
65         * acinclude.m4: Add enable.m4 and cet.m4.
66         * config/x86/sjlj.S: Include cet.h.
67         (_ITM_beginTransaction): Add _CET_ENDBR.
68         Save Shadow Stack pointer.
69         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
70         * config/x86/target.h (struct gtm_jmpbuf):
71         Add new field for Shadow Stack pointer.
72         * configure: Regenerate.
73         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
74         * configure.ac: Update libtool_VERSION for x86.
75         * testsuite/Makefile.in: Regenerate.
77 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
79         * libitm/config/x86/target.h: Add new field (ssp).
80         * libitm/config/x86/sjlj.S: Change offsets.
82 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
84         * testsuite/lib/libitm.exp: Load scanlang.exp.
86 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
88         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
90 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
92         PR other/79046
93         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
94         of cat to get version from BASE-VER file.
95         * testsuite/Makefile.in: Regenerated.
97 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
99         * config/x86/target.h (htm_available): Determine vendor from
100         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
102 2017-01-18  Torvald Riegel  <triegel@redhat.com>
104         * config/x86/target.h (htm_available): Add check for some processors
105         on which TSX is broken.
107 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
109         PR other/79046
110         * configure.ac: Add GCC_BASE_VER.
111         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
112         get version from BASE-VER file.
113         * testsuite/Makefile.in: Regenerated.
114         * configure: Regenerated.
115         * Makefile.in: Regenerated.
117 2017-01-04  Alan Modra  <amodra@gmail.com>
119         * Makefile.in: Regenerate.
120         * testsuite/Makefile.in: Regenerate.
122 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
124         Update copyright years.
126         * libitm.texi: Bump @copying's copyright year.
128 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
130         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
131         * aclocal.m4: Regenerate.
132         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
133         LIBITM_CHECK_LINKER_HWCAP.
135 2016-11-15  Matthias Klose  <doko@ubuntu.com>
137         * configure: Regenerate.
139 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
141         PR libitm/70456
142         * util.cc (xmalloc): Use posix_memalign to allocate memory on
143         on cache line if requested.
145 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
147         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
148         function attribute to disable floating point in begin_transaction() on
149         S/390.
150         * beginend.cc (begin_transaction): Use
151         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
153 2016-01-22  Torvald Riegel  <triegel@redhat.com>
155         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
156         boundary.
157         (htm_fastpath): Remove.
158         (gtm_thread::begin_transaction): Fix HTM fastpath.
159         (_ITM_commitTransaction): Adapt.
160         (_ITM_commitTransactionEH): Adapt.
161         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
162         and accessors.
163         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
164         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
165         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
166         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
167         * libitm/method-serial.cc (htm_mg): Adapt.
168         (gtm_thread::serialirr_mode): Adapt.
169         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
171 2016-01-21  Torvald Riegel  <triegel@redhat.com>
173         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
174         or AIX.
176 2016-01-19  Richard Henderson  <rth@redhat.com>
178         PR bootstrap/69343
179         PR bootstrap/69339
180         Revert:
181         2016-01-13  Richard Henderson  <rth@redhat.com>
183         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
184         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
185         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
186         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
187         * configure.ac (ARCH_AARCH64): New conditional.
188         (ARCH_PPC, ARCH_S390): Likewise.
189         * Makefile.in, configure: Rebuild.
191         * libitm.h (_ITM_TYPE_M128): Always define.
192         * vect64.cc: Split ...
193         * vect128.cc: ... out of...
194         * config/x86/x86_sse.cc: ... here.
195         * config/arm/neon.cc: New file.
197 2016-01-19  Torvald Riegel  <triegel@redhat.com>
199         * local_type_traits: Remove file.
200         * libitm_i.h: Don't include it anymore.
201         (sized_integral): Remove.
203 2016-01-16  Torvald Riegel  <triegel@redhat.com>
205         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
206         safety.
207         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
208         * libitm/testsuite/libitm.c/priv-1.c: New.
210 2015-01-15  Torvald Riegel  <triegel@redhat.com>
212         testsuite/libitm.c++/libstdc++-safeexc.C: New.
214 2016-01-13  Torvald Riegel  <triegel@redhat.com>
216         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
217         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
218         (gtm_rwlock::write_unlock): Likewise.
220 2016-01-13  Richard Henderson  <rth@redhat.com>
222         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
223         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
224         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
225         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
226         * configure.ac (ARCH_AARCH64): New conditional.
227         (ARCH_PPC, ARCH_S390): Likewise.
228         * Makefile.in, configure: Rebuild.
230         * libitm.h (_ITM_TYPE_M128): Always define.
231         * vect64.cc: Split ...
232         * vect128.cc: ... out of...
233         * config/x86/x86_sse.cc: ... here.
234         * config/arm/neon.cc: New file.
236 2016-01-13  Torvald Riegel  <triegel@redhat.com>
238         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
239         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
240         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
241         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
242         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
243         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
244         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
245         (serialirr_dispatch::snapshot_most_recent): New.
246         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
248 2016-01-12  Torvald Riegel  <triegel@redhat.com>
250         * libitm_i.h (gtm_mask_stack): Remove.
251         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
252         * stmlock.h: Remove file.
253         * config/alpha/cacheline.h: Likewise.
254         * config/generic/cacheline.h: Likewise.
255         * config/powerpc/cacheline.h: Likewise.
256         * config/sparc/cacheline.h: Likewise.
257         * config/x86/cacheline.h: Likewise.
259 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
261         Update copyright years.
263         * libitm.texi: Bump @copying's copyright year.
265 2015-11-26  Torvald Riegel  <triegel@redhat.com>
267         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
268         (ml_wt_dispatch::pre_write): Adapt.
269         (ml_wt_dispatch::pre_load): Likewise.
271 2015-11-22  Torvald Riegel  <triegel@redhat.com>
273         * libitm_i.h (gtm_alloc_action): Remove union.
274         * testsuite/libitm.c/alloc-1.c: New.
276 2015-11-19  Torvald Riegel  <triegel@redhat.com>
278         * testsuite/libitm.c++/eh-5.C: New.
279         * libitm.h (_ITM_cxa_free_exception): New.
280         * libitm.map (_ITM_cxa_free_exception): Add it.
281         * libitm.texi: Update ABI docs.
282         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
283         (gtm_transaction_cp::cxa_uncaught_count): Add.
284         (gtm_thread::cxa_unthrown): Remove.
285         (gtm_thread::cxa_uncaught_count_ptr): Add.
286         (gtm_thread::cxa_uncaught_count): Add.
287         (gtm_thread::drop_references_allocations): Rename to...
288         (gtm_thread::discard_allocation): ... this and adapt.
289         (gtm_thread::init_cpp_exceptions): New.
290         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
291         (gtm_thread::begin_transaction): Likewise.
292         (gtm_transaction_cp::save): Likewise.
293         (gtm_thread::trycommit): Likewise.
294         * eh_cpp.cc: Add overview comments.
295         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
296         (free_any_exception, _ITM_cxa_free_exception): New.
297         (gtm_thread::init_cpp_exceptions): Define.
298         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
299         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
300         (gtm_thread::revert_cpp_exceptions): Likewise.
302 2015-11-09  Torvald Riegel  <triegel@redhat.com>
304         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
305         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
306         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
307         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
308         (gtm_thread::forget_allocations): New overload with size_t argument.
309         * alloc.c (gtm_thread::forget_allocation): Define new overload and
310         adapt existing one.
311         (gtm_thread::record_allocation): Adapt.
312         (gtm_thread::commit_allocations_1): Adapt.
313         (gtm_thread::commit_allocations_2): Adapt.
314         * testsuite/libitm.c++/newdelete.C: New.
316 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
317             Joseph Myers  <joseph@codesourcery.com>
318             Mark Shinwell  <shinwell@codesourcery.com>
319             Andrew Stubbs  <ams@codesourcery.com>
320             Rich Felker <dalias@libc.org>
322         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
323         GTM_begin_transaction for compatibility with FDPIC.
325 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
327         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
328         using load_gcc_lib.
330 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
332         PR libitm/61164
333         * local_atomic (__always_inline): Rename to...
334         (__libitm_always_inline): ... this.
336 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
338         PR target/52482
339         * config/powerpc/sjlj.S: Port to Xcode 2.5.
341 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
343         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
344         operands "op" and "val" to int.
346 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
348         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
349         "op" and "val" to int.
351 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
353         * config/linux/alpha/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/futex.cc (gtm_futex_wait, gtm_futex_wake):
359         Declare as static int.
360         (FUTEX_PRIVATE_FLAG): Remove L suffix.
361         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
363 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
365         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
366         sys_futex0 function.
368 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
370         * Makefile.in: Regenerated with automake-1.11.6.
371         * aclocal.m4: Likewise.
372         * configure: Likewise.
373         * testsuite/Makefile.in: Likewise.
375 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
377         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
378         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
380 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
382         PR libitm/64360
383         * libitm.c/stackundo.c (test2): Make it static.
384         (test1): Likewise.
386 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
388         Update copyright years.
390 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
392         * libitm.texi: Bump @copying's copyright year.
394 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
396         * testsuite/lib/libitm.exp: Load target-utils.exp.
397         Move load of target-supports.exp earlier.
399 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
401         * configure.tgt (x86_64): Tune -m32 multilib to generic.
403 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
405         PR bootstrap/63784
406         * configure: Regenerated.
408 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
410         PR target/63610
411         * configure: Regenerate.
413 2014-10-06  Marek Polacek  <polacek@redhat.com>
415         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
416         * testsuite/libitm.c/memset-1.c: Likewise.
418 2014-07-24  Richard Henderson  <rth@redhat.com>
420         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
421         addressing mode in epilogue.
423 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
425         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
426         -mclear-hwcap instead.
427         * configure: Regenerate.
428         * clearcap.map: Remove.
430 2014-05-21  John Marino  <gnugcc@marino.st>
432         * configure.tgt (*-*-dragonfly*): New target.
434 2014-05-19  Richard Henderson  <rth@redhat.com>
436         * config/aarch64/sjlj.S: New file.
437         * config/aarch64/target.h: New file.
438         * configure.tgt: Enable aarch64.
440 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
442         * config/generic/asmcfi.h: Also check for
443         __GCC_HAVE_DWARF2_CFI_ASM.
445 2013-04-02  Richard Henderson  <rth@redhat.com>
447         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
448         * config/arm/target.h, config/sh/target.h: Likewise.
449         * config/sparc/target.h, config/x86/target.h: Likewise.
451 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
453         * config/linux/futex_bits.h: Include errno.h.
454         (sys_futex0): If syscall returns -1, return -errno rather than
455         -1.
457 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
459         * libitm.texi (Index): Rename to Library Index.
461 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
463         PR libitm/53113
464         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
465         (x86_avx.lo): Append -mavx to CXXFLAGS.
466         * Makefile.in: Regenerate.
468 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
470         Update copyright years
472 2014-01-02  Tobias Burnus  <burnus@net-b.de>
474         * libitm.texi: Bump @copying's copyright year.
476 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
478         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
479         (FUNC): Define ELFv2 variant.
480         (END): Likewise.
481         (HIDDEN): Likewise.
482         (CALL): Likewise.
483         (BASE): Likewise.
484         (LR_SAVE): Likewise.
486 2013-09-20  Alan Modra  <amodra@gmail.com>
488         * configure: Regenerate.
490 2013-08-30  Torvald Riegel  <triegel@redhat.com>
492         * config/posix/rwlock.cc: Fix initialization order.
494 2013-08-30  Torvald Riegel  <triegel@redhat.com>
496         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
497         (htm_fastpath): Assign an asm name.
498         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
499         HTM fast paths.
500         (_ITM_actions): Likewise.
501         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
502         x86_64.
503         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
504         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
505         field to the start of the structure.
506         * config/linux/rwlock.h (gtm_rwlock): Update comments.
507         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
508         handling for custom HTM fast paths.
510 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
511         Revert:
512         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
514         * configure.tgt: Add -msoft-float to XCFLAGS.
516 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
518         * configure.tgt: Add -msoft-float to XCFLAGS.
520 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
522         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
523         (htm_transaction_active): Enable zEC12 instructions in the
524         assembler.
525         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
527 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
529         * acinclude.m4: Add htm asm check for s390.
530         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
531         * configure: Regenerate.
532         * config/s390/target.h: Remove __HTM__ check.
533         (htm_available): Call getauxval to get hwcaps and check whether
534         HTM is available or not.
536 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
538         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
539         * configure.ac: Use it.
540         (AC_CHECK_HEADERS): Check for sys/auxv.h.
541         (AC_CHECK_FUNCS): Check for getauxval.
542         * config.h.in, configure: Rebuild.
543         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
544         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
545         (USE_HTM_FASTPATH): Define.
546         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
547         _HTM_RETRIES) New macros.
548         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
549         htm_begin_success, htm_commit, htm_transaction_active): New functions.
551 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
553         * config/s390/target.h: Include htmintrin.h.
554         (_HTM_ITM_RETRIES): New macro definition.
555         (htm_available, htm_init, htm_begin, htm_begin_success)
556         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
558 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
559             Cesar Philippidis  <cesar@codesourcery.com>
561         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
562         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
563         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
564         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
566 2013-06-20  Torvald Riegel  <triegel@redhat.com>
568         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
569         (_ITM_getTransactionId): Same.
570         * config/x86/target.h (htm_transaction_active): New.
572 2013-06-20  Torvald Riegel  <triegel@redhat.com>
574         PR libitm/57643
575         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
576         the HTM fastpath.
578 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
580         PR bootstrap/56714
581         * local_atomic (__always_inline): Always define our version.
582         (__calculate_memory_order): Mark inline.
583         (atomic_thread_fence): Ditto.
584         (atomic_signal_fence): Ditto.
585         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
586         (atomic_bool::atomic_flag_clear_explicit): Ditto.
587         (atomic_bool::atomic_flag_test_and_set): Ditto.
588         (atomic_bool::atomic_flag_clear): Ditto.
590 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
592         * config/s390/sjlj.S: New file.
593         * config/s390/target.h: New file.
594         * configure.tgt: Set options for S/390.
596 2013-03-23  Andi Kleen  <ak@linux.intel.com>
598         * local_atomic (__always_inline): Add.
599         (__calculate_memory_order, atomic_thread_fence,
600          atomic_signal_fence, test_and_set, clear, store, load,
601          exchange, compare_exchange_weak, compare_exchange_strong,
602          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
603         Add __always_inline to force inlining.
605 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
606             Jack Howarth  <howarth@bromo.med.uc.edu>
607             Patrick Marlier  <patrick.marlier@gmail.com>
609         PR libitm/55693
610         * alloc_cpp.cc: Enable function declarations on darwin.
611         * eh_cpp.cc: Likewise.
613 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
615         Update copyright years.
617 2012-11-09  Torvald Riegel  <triegel@redhat.com>
619         * beginend.cc (htm_fastpath): New.
620         (gtm_thread::begin_transaction, _ITM_commitTransaction,
621         _ITM_commitTransactionEH): Add HTM fastpath handling.
622         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
623         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
624         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
625         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
626         * configure.tgt: Add -mrtm to XCFLAGS.
627         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
628         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
629         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
630         * retry.cc (parse_default_method): Add HTM method parsing.
631         (gtm_thread::number_of_threads_changed): Use HTM by default if
632         available.
634 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
636         * configure: Regenerate.
638 2012-10-31  Richard Henderson  <rth@redhat.com>
640         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
641         * configure.ac: Use it.
642         * config.h.in, configure: Rebuild.
643         * testsuite/Makefile.in: Rebuild.
645 2012-10-24  Torvald Riegel  <triegel@redhat.com>
647         * libitm.texi: Clarify ABI requirements for data-logging functions.
649 2012-10-24  Torvald Riegel  <triegel@redhat.com>
651         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
652         it requires serial mode instead of assuming that for certain
653         dispatchs.
654         * dispatch.h (abi_dispatch::requires_serial): New.
655         (abi_dispatch::abi_dispatch): Adapt.
656         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
657         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
658         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
659         serial_dispatch::serial_dispatch,
660         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
662 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
664         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
665         and ia32 declarations some more.
666         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
668 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
670         PR other/43620
671         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
672         * configure: Regenerate.
673         * Makefile.in: Regenerate.
675 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
677         * configure: Regenerated.
679 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
681         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
683 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
685         * eh_cpp.cc: Fix __cxa_end_catch declaration.
687 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
689         * configure: Regenerated.
691 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
693         PR libitm/52854
694         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
695         for x86-64.
697 2012-04-03  Tristan Gingold  <gingold@adacore.com>
699         * configure: Regenerate.
701 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
703         PR bootstrap/52812
704         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
706 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
708         * testsuite/lib/libitm.exp: load fortran-modules.exp
710 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
712         * configure.tgt (*-*-irix6*): Remove.
714 2012-03-13  Torvald Riegel  <triegel@redhat.com>
716         PR libitm/52526
717         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
718         wake-up.
720 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
722         * configure.tgt (*-*-osf*): Remove.
723         * configure: Regenerate.
725 2012-03-05  Torvald Riegel  <triegel@redhat.com>
727         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
728         memtransfer/memset if size isn't larger than zero.
730 2012-03-02  Torvald Riegel  <triegel@redhat.com>
732         * libitm.texi: Link to specification and add a usage example.
734 2012-02-24  Torvald Riegel  <triegel@redhat.com>
736         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
737         default dispatch for more than 1 thread to ml_wt.
739 2012-02-20  Torvald Riegel  <triegel@redhat.com>
741         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
743 2012-02-20  Torvald Riegel  <triegel@redhat.com>
745         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
747 2012-02-20  Torvald Riegel  <triegel@redhat.com>
749         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
750         serial mode corner cases made obsolete by prior gtm_rwlock changes.
751         (gl_wt_dispatch.rollback): Same.
753 2012-02-20  Torvald Riegel  <triegel@redhat.com>
755         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
757 2012-02-20  Torvald Riegel  <triegel@redhat.com>
759         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
760         for RfW src.  Optimize number of calls to gtm_thr.
762 2012-02-20  Torvald Riegel  <triegel@redhat.com>
764         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
765         acquisition to ...
766         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
767         (default_dispatch): Make atomic.
768         (GTM::gtm_thread::set_default_dispatch): Access atomically.
769         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
770         use decide_begin_dispatch() if default_dispatch might have changed.
771         (GTM::gtm_thread::number_of_threads_changed): Initialize
772         default_dispatch here.
774 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
775             Patrick Marlier  <patrick.marlier@gmail.com>
777         PR libitm/52220
778         * alloc_cpp.cc: No dummy definitions for darwin.
779         * eh_cpp.cc: Likewise.
781 2012-02-14  Richard Henderson  <rth@redhat.com>
783         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
785 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
787         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
789 2012-02-14  Torvald Riegel  <triegel@redhat.com>
791         * libitm_i.h (GTM::gtm_rwlog_entry): New.
792         (GTM::gtm_thread): Add read and write logs.
793         (GTM::dispatch_ml_wt): Declare.
794         * retry.cc (parse_default_method): Support ml_wt.
795         * method-ml.cc: New file.
796         * Makefile.am: Add method-ml.cc.
797         * Makefile.in: Regenerate.
799 2012-02-14  Torvald Riegel  <triegel@redhat.com>
801         * dispatch.h (GTM::abi_dispatch::supports): New.
802         (GTM::method_group::reinit): New.
803         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
804         (GTM::gtm_thread::number_of_threads_changed): Check that the method
805         supports the current situation.
807 2012-02-14  Torvald Riegel  <triegel@redhat.com>
809         * util.cc (GTM::xcalloc): New.
810         * common.h (GTM::xcalloc): Declare.
812 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
814         * config/sparc/target.h (cpu_relax): Read from CC register.
815         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
817 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
819         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
821 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
823         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
824         * config/sparc/cacheline.h: New file.
825         * config/sparc/target.h: Likewise.
826         * config/sparc/sjlj.S: Likewise.
827         * config/linux/sparc/futex_bits.h: Likewise.
829 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
831         * configure.ac (link_itm): Fix comment.
832         * configure: Regenerate.
833         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
835 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
837         PR libitm/51822
838         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
839         Correct libgomp references.
841 2012-01-24  Torvald Riegel  <triegel@redhat.com>
843         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
844         wake-up.
846 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
848         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
849         end of structure.
850         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
851         offset values.  Do not copy return address.  Decrement stack
852         by 56 bytes only.
853         (GTM_longjump) [__x86_64__]: Update offset values.
855 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
857         PR libitm/51830
858         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
859         the first function argument to %eax.
861 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
863         * libitm.h (_ITM_getThreadnum): Remove.
864         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
866 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
868         * clearcap.map: New file.
869         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
870         * configure.ac: Call it.
871         Clear HWCAP_LDFLAGS if defaulting to -mavx.
872         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
873         * configure: Regenerate.
874         * Makefile.in: Regenerate.
875         * testsuite/Makefile.in: Regenerate.
877 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
879         PR libitm/51173
880         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
881         include, exclude options.
883 2012-01-14  Torvald Riegel  <triegel@redhat.com>
885         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
886         rolling back.
887         * containers.h (GTM::vector::set_size): New.
889 2012-01-14  Torvald Riegel  <triegel@redhat.com>
891         PR libitm/51855
892         * config/generic/tls.h (GTM::mask_stack_top): New.
893         (GTM::mask_stack_bottom): Declare.
894         * config/generic/tls.c (GTM::mask_stack_bottom): New.
895         * local.cc (gtm_undolog::rollback): Filter out any updates that
896         overlap the libitm stack.  Add current transaction as parameter.
897         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
898         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
899         * testsuite/libitm.c/stackundo.c: New test.
901 2012-01-10  Richard Henderson  <rth@redhat.com>
903         * libitm_i.h (_Unwind_DeleteException): Declare weak.
904         * eh_cpp.cc (_Unwind_DeleteException): Define for
905         !HAVE_ELF_STYLE_WEAKREF.
907 2012-01-08  Torvald Riegel  <triegel@redhat.com>
909         * local.cc (GTM_LB): Use GTM::gtm_undolog.
910         (GTM::gtm_thread::drop_references_undolog): Remove.
911         (GTM::gtm_thread::commit_undolog,
912         GTM::gtm_thread::rollback_undolog): Move to ...
913         * libitm_i.h (GTM::gtm_undolog): ...here. New.
914         (GTM::gtm_undolog_entry): Remove.
915         (GTM::gtm_thread): Adapt.
916         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
917         (GTM::gtm_thread::trycommit): Adapt.
918         * method-serial.cc (serial_dispatch::log): Adapt.
919         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
920         (gl_wt_dispatch::store): Fix likely/unlikely.
921         * containers.h (GTM::vector::resize): Add additional_capacity
922         parameter and handle it.
923         (GTM::vector::resize_noinline): New/adapt.
924         (GTM::vector::push): New.
926 2012-01-06  Richard Henderson  <rth@redhat.com>
928         * configure.tgt: Support powerpc-linux and powerpc-darwin.
929         * config/linux/powerpc/futex_bits.h: New file.
930         * config/powerpc/cacheline.h: New file.
931         * config/powerpc/sjlj.S: New file.
932         * config/powerpc/target.h: New file.
933         * config/generic/asmcfi.h (cfi_offset): New.
934         (cfi_restore, cfi_undefined): New.
936 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
938         PR other/51171
939         * testsuite/libitm.c/reentrant.c: Remove xfail.
940         (thread): Pass x to pure().
941         From Patrik Marlier <patrick.marlier@gmail.com>.
943 2011-12-24  Torvald Riegel  <triegel@redhat.com>
945         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
946         privatization safety if already in serial mode.
948 2011-12-24  Torvald Riegel  <triegel@redhat.com>
950         * beginend.cc (GTM::gtm_thread::restart): Add and handle
951         finish_serial_upgrade parameter.
952         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
953         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
954         Don't unset reader flag.
955         (GTM::gtm_rwlock::write_upgrade_finish): New.
956         * config/posix/rwlock.cc: Same.
957         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
958         Declare.
959         * config/posix/rwlock.h: Same.
960         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
961         flag after commit or after rollback when restarting.
963 2011-12-24  Torvald Riegel  <triegel@redhat.com>
965         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
966         (GTM::gtm_thread::try_commit): Changed memory order.
967         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
968         as parameter.
969         * config/linux/x86/futex_bits.h (sys_futex0): Same.
970         * config/linux/sh/futex_bits.h (sys_futex0): Same.
971         * config/linux/futex_bits.h (sys_futex0): Same.
972         * config/linux/futex.cc (futex_wait, futex_wake): Same.
973         * config/linux/futex.h (futex_wait, futex_wake): Same.
974         * config/linux/rwlock.h (gtm_rwlock::writers,
975         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
976         ints.
977         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
978         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
979         gtm_rwlock::write_unlock): Fix memory orders and fences.
980         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
981         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
982         gtm_rwlock::write_unlock): Same.
983         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
984         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
985         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
986         Add comments.
987         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
988         gl_wt_dispatch::load, gl_wt_dispatch::store,
989         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
990         orders and fences.  Add comments.
992 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
994         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
995         * Makefile.in: Regenerated.
997 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
999         * configure.tgt: Add sh* case.
1000         * config/sh/target.h: New file.
1001         * config/sh/sjlj.S: New file.
1002         * config/linux/sh/futex_bits.h: New file.
1004 2011-12-14  Richard Henderson  <rth@redhat.com>
1006         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1007         * config/arm/sjlj.S, config/arm/target.h: New files.
1008         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1009         (cfi_rel_offset): New.
1010         * config/linux/futex_bits.h: New file.
1011         * config/linux/futex.cc: Include futex_bits.h here...
1012         * config/linux/futex.h: ... not here.
1013         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1014         * configure.ac (ARCH_AM): New conditional.
1015         * Makefile.in, configure: Rebuild.
1016         * configure.tgt: Handle ARM.
1018 2011-12-13  Richard Henderson  <rth@redhat.com>
1020         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1021         signed/unsigned comparison werror.
1023         * local_atomic: New file.
1024         * libitm_i.h: Include it.
1025         (gtm_thread::shared_state): Use atomic template.
1026         * beginend.cc (GTM::gtm_clock): Use atomic template.
1027         (global_tid): Use atomic template if 64-bit atomics available.
1028         (gtm_thread::gtm_thread): Update shared_state access.
1029         (gtm_thread::trycommit): Likewise.
1030         (choose_code_path): Update global_tid access.
1031         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1032         * stmlock.h (GTM::gtm_clock): Use atomic template.
1033         (gtm_get_clock, gtm_inc_clock): Update accesses.
1034         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1035         redundant __sync_synchronize after atomic shared_state access.
1036         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1037         (gtm_rwlock::write_lock_generic): Likewise.
1038         (gtm_rwlock::read_unlock): Likewise.
1039         * config/alpha/target.h (atomic_read_barrier): Remove.
1040         (atomic_write_barrier): Remove.
1041         * config/x86/target.h (atomic_read_barrier): Remove.
1042         (atomic_write_barrier): Remove.
1044 2011-11-30  Richard Henderson  <rth@redhat.com>
1046         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1047         * beginend.c (_ITM_abortTransaction): Update to match.
1048         (GTM::gtm_thread::restart): Likewise.
1049         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1050         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1052 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1054         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1055         * Makefile.in: Regenerate.
1057 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1059         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1060         * alloc_cpp.cc: Generate dummy functions if we don't
1061         HAVE_ELF_STYLE_WEAKREF.
1062         * eh_cpp.cc: Likewise.
1063         * configure: Regenerate.
1064         * aclocal.m4:  Likewise.
1065         * config.h.in: Likewise.
1066         * Makefile.in: Likewise.
1067         * testsuite/Makefile.in: Likewise.
1069 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1071         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1072         __USER_LABEL_PREFIX__ for targets that use it.
1073         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1074         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1075         in portability to non-elf targets.
1076         (GTM_longjmp): Likewise.
1077         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1078         where required.
1080 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1082         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1083         * testsuite/libitm.c/memset-1.c: Likewise.
1085 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1087         * configure: Regenerate.
1089 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1091         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1092         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1093         * Makefile.am: Handle sun style versioning.
1094         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1095         * configure: Regenerate.
1096         * Makefile.in: Regenerate.
1098 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1100         * config/generic/asmcfi.h: Fix comment.
1101         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1102         sequence without .hidden support, error for non-ELF targets.
1103         (GTM_longjmp) [__ELF__]: Only use .hidden if
1104         HAVE_ATTRIBUTE_VISIBILITY.
1106 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1108         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1109         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1110         Dummy functions.
1111         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1112         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1114 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1116         PR bootstrap/51098
1117         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1118         * configure: Regenerate.
1120 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1122         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1124 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1126         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1127         .hidden.
1128         (.note.GNU-stack): Only use if __linux__.
1129         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1130         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1131         * testsuite/libitm.c/reentrant.c: Likewise.
1132         * testsuite/libitm.c/simple-2.c: Likewise.
1133         * testsuite/libitm.c/txrelease.c: Likewise.
1134         * testsuite/libitm.c++/static_ctor.C: Likewise.
1136 2011-11-10  Richard Henderson  <rth@redhat.com>
1138         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1139         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1140         * configure.ac (ARCH_X86_AVX): New conditional.
1141         * Makefile.in, configure: Rebuild.
1143 2011-11-09  Richard Henderson  <rth@redhat.com>
1145         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1146         * configure.ac: Use it.
1147         * config.h.in, configure: Rebuild.
1148         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1150 2011-11-09  Richard Henderson  <rth@redhat.com>
1152         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1153         * config/alpha/unaligned.h: Remove file.
1154         * config/generic/unaligned.h: Remove file.
1155         * config/x86/unaligned.h: Remove file.
1156         * config/generic/cachepage.h: Remove file.
1157         * config/posix/cachepage.cc: Remove file.
1158         * config/generic/cacheline.cc: Remove file.
1159         * config/x86/cacheline.cc: Remove file.
1160         * config/generic/cacheline.h (gtm_cacheline): Remove the
1161         store_mask, copy_mask, copy_mask_wb methods.
1162         * config/x86/cacheline.h: Likewise.
1163         * config/alpha/cacheline.h: Fall back to generic after setting size.
1164         * config/generic/tls.cc (gtm_mask_stack): Remove.
1165         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1166         (GTM_vpalignr_table): Remove.
1167         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1168         (GTM_pshift_table): Remove.
1169         * config/libitm_i.h: Don't include cachepage.h.
1170         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1171         * Makefile.in, testsuite/Makefile.in: Rebuild.
1173 2011-11-09  Richard Henderson  <rth@redhat.com>
1175         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1176         to emit branch prediction hint.
1178         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1179         Protect .note.GNU-stack with __linux__.
1181         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1182         * configure, aclocal.m4, config.h.in: Rebuild.
1183         * config/generic/asmcfi.h: New file.
1184         * config/x86/sjlj.S: Use it.
1186 2011-11-08  Richard Henderson  <rth@redhat.com>
1188         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1190 2011-11-08  Richard Henderson  <rth@redhat.com>
1192         * configure.tgt: Test correct directory for supported cpus.
1194         * configure.ac: Exit if unsupported.
1195         * configure: Rebuild.
1196         * configure.tgt: Delete boilerplate from libgomp for unsupported
1197         targets.  Set UNSUPPORTED for unsupported targets.
1199 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1201         * configure.tgt: Handle i386 like i[456]86.
1202         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1203         take address.
1204         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1205         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1207 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1209         * method-wbetl.cc: Update copyright notice.
1210         * aatree.cc: Same.
1211         * util.cc: Same.
1212         * libitm.h: Same.
1213         * memset.cc: Same.
1214         * eh_cpp.cc: Same.
1215         * barrier.tpl: Same.
1216         * useraction.cc: Same.
1217         * stmlock.h: Same.
1218         * memcpy.cc: Same.
1219         * common.h: Same.
1220         * config/generic/tls.cc: Same.
1221         * config/generic/cacheline.h: Same.
1222         * config/generic/cachepage.h: Same.
1223         * config/generic/cacheline.cc: Same.
1224         * config/generic/unaligned.h: Same.
1225         * config/x86/cacheline.h: Same.
1226         * config/x86/cacheline.cc: Same.
1227         * config/x86/unaligned.h: Same.
1228         * config/alpha/cacheline.h: Same.
1229         * config/alpha/unaligned.h: Same.
1230         * config/alpha/sjlj.S: Same.
1231         * config/posix/cachepage.cc: Same.
1232         * config/linux/futex.h: Same.
1233         * config/linux/alpha/futex_bits.h: Same.
1235 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1237         * libitm.texi: No cover text and invariant sections.
1239 2011-11-03  Richard Henderson  <rth@redhat.com>
1241         * local_type_traits: New file.
1242         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1244 2011-11-03  Richard Henderson  <rth@redhat.com>
1246         * configure.ac: Don't test for gfortran.
1247         * configure: Rebuild.
1249         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1250         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1252 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1254         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1255         * testsuite/libitm.c/memset-1.c: Same.
1256         * testsuite/libitm.c/c.exp: Same.
1257         * testsuite/lib/libitm-dg.exp: Same.
1258         * testsuite/lib/libitm.exp: Same.
1259         * testsuite/libitm.c++/c++.exp: Same.
1261 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1263         * testsuite/config/default.exp: Update copyright date.
1264         * configure.ac: Add copyright info.
1265         * configure.tgt: Same.
1267 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1269         * testsuite/libitm.c/reentrant.c: XFAIL.
1270         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1272 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1274         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1275         handle aborts.
1276         (_ITM_abortTransaction): Handle aborts of outer transactions.
1277         * libitm_i.h: Same.
1278         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1279         * libitm.texi: Document aborts of outer transactions.
1280         * testsuite/libitm.c/cancel.c: New file.
1282 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1284         * testsuite/*: Change __transaction to __transaction_atomic or
1285         __transaction_relaxed.
1287 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1289         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1290         (gtm_thr): Same.
1292 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1294         * libitm_i.h: Add gl_wt dispatch.
1295         * retry.cc (parse_default_method): Same.
1296         * method-gl.cc: New file.
1297         * Makefile.am: Use method-gl.cc.
1298         * Makefile.in: Rebuild.
1300 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1302         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1303         safety if requested by a TM method.
1304         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1305         privatization safety.
1306         * method-serial.cc: Same.
1308 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1310         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1311         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1312         undolog-related member functions from *_local to *_undolog.
1313         * local.cc (gtm_thread::commit_undolog): Same.
1314         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1315         (GTM::gtm_thread::rollback): Roll back undolog before
1316         dispatch-specific rollback.
1318 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1320         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1321         re-initialization of the current method group.
1322         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1324 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1326         * alloc.cc (commit_allocations_2): Do not free transaction-local
1327         memory when committing a nested transaction.
1329 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1331         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1332         serial-irrevocable dispatch, not serial.
1334 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1336         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1337         declarations.
1338         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1339         * method-serial.cc: Implement begin_or_restart().
1340         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1341         dispatch-specific begin_or_restart().
1342         (GTM::gtm_thread::restart): Same.
1344 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1346         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1347         restarting without switching to serial mode.
1348         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1349         transaction state. Choose closed-nesting alternative if available.
1350         (GTM::gtm_thread::set_default_dispatch): New.
1351         (parse_default_method): New.
1352         (GTM::gtm_thread::number_of_threads_changed): New.
1353         * method-serial.cc (GTM::serial_mg): New method group class.
1354         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1355         fini.
1356         (GTM::serial_dispatch): Same.
1357         (GTM::serialirr_onwrite_dispatch): Same.
1358         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1359         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1360         registered threads.
1361         (GTM::gtm_thread::gtm_thread): Same.
1362         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1363         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1364         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1365         choose dispatch but set state according to dispatch here.
1366         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1367         (GTM::method_group): New class.
1368         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1369         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1370         * libitm.texi: Document TM methods, method groups, method life cycle.
1371         Rename method sets to method groups.
1373 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1375         * config/x86/tls.h: Moved to ...
1376         * config/linux/x86/tls.h: ... here.
1378 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1380         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1381         Add X32 support.
1382         * config/x86/sjlj.S: Same.
1384 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1386         * config/linux/rwlock.h: New file.
1387         * config/linux/rwlock.c: New file.
1388         * configure.ac: Reenable futex support (undo SVN rev 157758).
1389         * Makefile.am: Same.
1390         * configure.tgt: Same.
1391         * config/linux/alpha/futex_bits.h: Same.
1392         * config/linux/futex.h: Same. Return number of woken processes.
1393         * config/linux/futex.cc: Same.
1394         (futex_wait): Remove spinning.
1395         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1396         Use __x86_64__ instead of __LP64__.
1397         * aclocal.m4: Include generic futex checks.
1398         * configure: Rebuild.
1399         * Makefile.in: Rebuild.
1400         * testsuite/Makefile.in: Rebuild.
1401         * beginend.cc: Include pthread.h.
1402         * config/posix/cachepage.cc: Same.
1404 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1406         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1407         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1408         (set_gtm_thr): New.
1409         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1410         (set_gtm_thr): New.
1411         (GTM::gtm_thread::thread_num): Removed.
1412         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1413         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1414         tx-to-thread renaming.
1415         * beginend.cc: Adapted to tx-to-thread renaming.
1416         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1417         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1418         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1419         gtm_transaction to gtm_thread.
1420         (_ITM_getThreadnum): Removed. Not supported anymore.
1421         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1422         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1423         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1424         gtm_tx-to-gtm_thr renaming if necessary.
1425         * eh_cpp.cc: Same.
1426         * local.cc: Same.
1427         * retry.cc: Same.
1428         * clone.cc: Same.
1429         * alloc.cc: Same.
1430         * alloc_c.cc: Same.
1431         * alloc_cpp.cc: Same.
1432         * method-serial.cc: Same.
1433         * config/generic/tls.cc: Same.
1434         * config/posix/rwlock.h (gtm_rwlock): Same.
1435         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1437 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1439         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1440         implementation.
1441         (gtm_rwlock::read_unlock): Same.
1442         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1443         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1444         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1445         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1446         w_upgrade. Replaced by per-transaction flags (in shared_state).
1447         Added c_confirmed_writers.
1448         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1449         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1450         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1451         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1452         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1453         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1454         * libitm.texi: Document locking conventions and implementations in
1455         libitm.
1457 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1459         * libitm_i.h (next_tx): Add list of all threads' transaction.
1460         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1461         transaction with list of transactions and ...
1462         (thread_exit_handler): ... deregister here.
1463         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1464         * config/x86/target.h: Same.
1466 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1468         * testsuite/libitm.c++/static_ctor.C: New file.
1470 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1472         * testsuite/libitm.c/reentrant.c: New file.
1474 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1476         * config/generic/tls.h: Remove the free list for transactions and ...
1477         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1478         (GTM::gtm_transaction::operator delete): ... and release here.
1479         (thread_exit_handler): New. Delete tx when thread terminates.
1480         (thread_exit_init): New.
1481         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1482         * testsuite/libitm.c/txrelease.c: New file.
1484 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1486         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1487         * testsuite/libitm.c/notx.c: New file.
1489 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1491         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1492         * libitm_i.h (local_tid): ... to here.
1493         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1494         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1496 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1498         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1499         serialirr_onwrite_dispatch as new default for now.
1500         * method-serial.cc (serialirr_onwrite_dispatch): New.
1501         (GTM::dispatch_serialirr_onwrite): New.
1502         * libitm_i.h: Same.
1504 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1506         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1507         * query.cc (_ITM_getTransactionId): There is no active transaction if
1508         the current nesting level is zero.
1510 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1512         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1513         rollback.
1515 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1517         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1518         transaction properties from the caller instead of from the
1519         transaction object.
1520         * libitm_i.h: Same.
1521         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1523 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1525         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1526         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1527         * dispatch.h: Same.
1528         * method-serial.cc: Same.
1529         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1530         flat nesting as default, and closed nesting on demand.
1531         (GTM::gtm_transaction::rollback): Same.
1532         (_ITM_abortTransaction): Same.
1533         (GTM::gtm_transaction::restart): Same.
1534         (GTM::gtm_transaction::trycommit): Same.
1535         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1536         (choose_code_path): New.
1537         (GTM::gtm_transaction_cp::save): New.
1538         (GTM::gtm_transaction_cp::commit): New.
1539         * query.cc (_ITM_inTransaction): Support flat nesting.
1540         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1541         (GTM::gtm_transaction): Support flat and closed nesting.
1542         * alloc.cc (commit_allocations_2): New.
1543         (commit_cb_data): New helper struct.
1544         (GTM::gtm_transaction::commit_allocations): Handle nested
1545         commits/rollbacks.
1546         * libitm.texi: Update user action section, add description of nesting.
1548 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1550         * libitm_i.h: Add closed nesting as restart reason.
1551         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1553 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1555         * useraction.cc: Use vector instead of list to store actions.
1556         Also support partial rollbacks for closed nesting.
1557         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1558         * beginend.cc: Same.
1560 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1562         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1563         closed_nesting flags, as well as a closed nesting alternative.
1564         * method-serial.cc: Same.
1565         (serial_dispatch): Renamed to serialirr_dispatch.
1566         (GTM::dispatch_serialirr): Same.
1567         (serial_dispatch_ul): Renamed to serial_dispatch.
1568         (GTM::dispatch_serial): Same.
1570 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1572         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1574 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1576         * aatree.h (aa_tree::remove): New.
1577         (aa_tree::operator new): Add placement new.
1579 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1581         * containers.h: New file.
1582         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1583         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1584         * common.h: ... to here.
1585         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1586         * local.cc: Same.
1588 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1590         * libitm_i.h (STATE_ABORTING): Remove.
1591         * beginend.cc (_ITM_abortTransaction): Same.
1592         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1593         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1594         (_ITM_rollbackTransaction): Remove.
1595         * beginend.cc: Same.
1596         * libitm.map: Same.
1597         * libitm.texi: Document these ABI changes.
1599 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1601         * libitm.texi: New file.
1602         * Makefile.am: Add libitm.texi.
1603         * Makefile.in: Rebuild.
1605 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1607         * libitm_i.h: Move parts to common.h and dispatch.h.
1608         * common.h: New file.
1609         * dispatch.h: New file, new dispatch class.
1610         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1611         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1612         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1613         decision to retry.cc.
1614         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1615         only.
1616         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1617         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1618         logging.
1619         * barrier.cc: Use new barriers definitions.
1620         (abi_dispatch::memmove_overlap_check): New.
1621         * config/x86/x86_sse.cc: Same.
1622         * config/x86/x86_avx.cc: Same.
1623         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1624         memcpy.cc.
1625         * Makefile.in: Rebuild.
1626         * method-readonly.cc: Remove.
1627         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1628         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1630 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1632         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1633         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1634         * testsuite/libitm.c/dropref-2.c: Same.
1635         * testsuite/libitm.c/dropref.c: Same.
1637 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1639         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1640         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1641         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1642         * alloc_c.cc: Same.
1643         * barrier.tpl: Same.
1644         * beginend.c: Same.
1645         * config/generic/tls.h: Same.
1646         * config/x86/tls.h: Same.
1647         * libitm_i.h: Same.
1648         * memcpy.cc: Same.
1649         * memset.cc: Same.
1650         * method-readonly.cc: Same.
1651         * method-serial.cc: Same.
1652         * method-wbetl.cc: Same.
1653         * retry.cc: Same.
1655 2011-03-03  Richard Henderson  <rth@redhat.com>
1657         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1658         From Patrik Marlier <patrick.marlier@unine.ch>.
1660 2011-02-03  Richard Henderson  <rth@redhat.com>
1662         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1663         * configure.ac: Use it.
1664         * configure, config.h.in: Rebuild.
1665         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1666         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1667         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1668         * libitm.map: Use wildcards to match size_t mangling.
1670 2010-12-14  Richard Henderson  <rth@redhat.com>
1672         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1673         blocks of TIDs per thread.
1674         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1675         (setup_gtm_thr): Return the thread structure.
1676         * config/x86/tls.h (setup_gtm_thr): Likewise.
1678 2010-12-14  Richard Henderson  <rth@redhat.com>
1680         * clone.cc (table_lock): Remove.
1681         (find_clone): Don't take it.
1682         (ExcludeTransaction): New helper class.
1683         (_ITM_registerTMCloneTable): Use it.
1684         (_ITM_deregisterTMCloneTable): Likewise.
1686 2010-12-14  Richard Henderson  <rth@redhat.com>
1688         * config/x86/tls.h: New file.
1690 2010-07-15  Richard Henderson  <rth@redhat.com>
1692         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1693         * Makefile.in: Rebuild.
1695 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1697         * method-wbetl.cc (trydropreference): Fix source line.
1699 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1701         * libitm.h: Add comment.
1702         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1704 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1706         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1707         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1708         available, use pthread mutexes.
1709         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1710         * config.h.in: Regenerate.
1711         * configure: Regenerate.
1713 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1715         * libitm.h (ITM_PURE): Define.
1716         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1718 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1720         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1721         (validate): Add comment.
1722         (trydropreference): New.
1723         * method-readonly.cc (class readonly_dispatch): Add
1724         trydropreference.
1725         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1726         Call trydropreference().
1727         * libitm.h (_ITM_dropReferences): Remove const attribute.
1728         * method-serial.cc (class serial_dispatch): Add trydropreference.
1729         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1731 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1733         * memcpy.cc (do_memcpy): Comment.
1735 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1737         * barrier.tpl: Add comments throughout.
1739 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1741         * method-wbetl.cc (struct w_entry): Add comments.
1742         (trycommit): Same.
1743         (rollback): Same.
1745 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1747         * alloc_c.cc (_ITM_dropReferences): New.
1748         * libitm.map (_ITM_dropReferences): Add.
1749         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1750         * libitm_i.h (struct gtm_transaction): Declare
1751         drop_references_allocations and drop_references_local.
1752         * local.cc (rollback_local): Ignore memory when applicable.
1753         (drop_references_local): New.
1755 2010-06-23  Richard Henderson  <rth@redhat.com>
1757         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1758         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1759         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1760         * config/alpha/target.h: Likewise.
1761         * config/generic/tls.cc (gtm_mask_stack): Use it.
1763 2010-06-23  Richard Henderson  <rth@redhat.com>
1765         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1766         a mutex instead of trying a lock-free compare-and-swap on the list.
1767         (gtm_cacheline_page::operator delete): Likewise.
1769 2010-06-16  Richard Henderson  <rth@redhat.com>
1771         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1772         that overlap the libitm stack.
1773         * barrier.tpl: Mark incoming stack.
1774         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1775         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1776         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1777         * memcpy.cc, memset.cc: Likewise.
1778         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1779         * config/generic/tls.h (gtm_thread): Add stack_top member.
1780         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1781         * libitm_i.h (gtm_mask_stack): Declare.
1782         * config/generic/tls.cc: New file.
1783         * Makefile.am (libitm_la_SOURCES): Add it.
1784         (AM_CXXFLAGS): Turn off exceptions.
1785         * Makefile.in: Rebuild.
1787 2010-06-16  Richard Henderson  <rth@redhat.com>
1789         * alloc.cc (struct gtm_alloc_action): Move definition ...
1790         * libitm_i.h: ... here.
1791         (class gtm_transaction): Declare new and delete.
1792         * beginend.cc (alloc_tx): Reformulate as operator new.
1793         (free_tx): Reformulate as operator delete.
1794         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1796 2010-06-11  Richard Henderson  <rth@redhat.com>
1798         * clone.cc (clone_entry_compare): Fix typo.
1799         From Patrik Marlier <patrick.marlier@unine.ch>.
1801 2010-05-13  Richard Henderson  <rth@redhat.com>
1803         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1804         in extern "C".
1806 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1808         * libitm_i.h (struct gtm_transaction): Remove
1809         get_allocation_size.
1810         (record_allocation): Remove size parameter.
1811         * libitm.map (_ITM_realloc): Remove.
1812         * alloc_c.cc (_ITM_realloc): Remove.
1813         (_ITM_malloc): Remove size argument to record_allocation.
1814         (_ITM_calloc): Same.
1815         * alloc_cpp.cc (_ZGTtnwm): Same.
1816         (_ZGTtnwmRKSt9nothrow_t): Same.
1817         (_ZGTtnam): Same.
1818         (_ZGTtnamRKSt9nothrow_t): Same.
1819         * alloc.cc (struct gtm_alloc_action): Remove size.
1820         (get_allocation_size): Remove.
1821         (commit_allocations): Add comment.
1822         (record_allocation): Remove size parameter.
1823         (forget_allocation): Remove set of size.
1825 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1827         * Makefile.am (abi_version): New.
1828         (AM_CXXFLAGS): Pass abi_version.
1829         * Makefile.in: Regenerate.
1830         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1832 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1834         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1835         _ITM_getTMCloneOrIrrevokable.
1836         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1837         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1839 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1841         * configure.ac: Remove Linux futex support.
1842         * configure.tgt (config_path): Same.
1843         * Makefile.am: Same.
1844         * config/linux: Remove entire directory.
1845         * configure: Rebuild.
1846         * Makefile.in: Rebuild.
1847         * testsuite/Makefile.in: Rebuild.
1849 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1851         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1852         switching to serial mode.
1853         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1855 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1857         * configure.tgt: Add emacs -*- tags.
1858         * barrier.tpl: Same.
1860 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1862         * Makefile.am: Rename serial.cc to method-serial.cc.
1863         * Makefile.in: Regenerate with automake 1.11.1.
1864         * testsuite/Makefile.in: Same.
1865         * aclocal.m4: Regenerate with aclocal 1.11.1.
1866         * method-serial.cc: Rename from serial.cc.
1867         * libitm_i.h (struct gtm_transaction): Update comment on
1868         serialirr_mode.
1870 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1872         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1873         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1875 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1877         * configure: Rebuild.
1879 2009-11-12  Richard Henderson  <rth@redhat.com>
1881         * Rewrite everything in C++.
1883 2009-11-03  Richard Henderson  <rth@redhat.com>
1885         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1886         * Makefile.am (libitm_la_SOURCES): Add them.
1887         * configure.ac (ARCH_X86): New conditional.
1888         * Makefile.in, configure: Rebuild.
1889         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1890         Move futex setup into "other system configury" case.
1891         * local.c (rollback_local): Merge into ...
1892         (GTM_rollback_local): ... here.
1893         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1894         (_ITM_LB): Define as an alias to GTM_LB.
1896 2009-11-03  Richard Henderson  <rth@redhat.com>
1898         * method-readonly.c: New file.
1899         * Makefile.am (libitm_la_SOURCES): Add it.
1900         * Makefile.in: Rebuild.
1901         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1902         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1903         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1904         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1905         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1906         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1907         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1908         gtm_get_clock, gtm_inc_clock): New.
1909         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1910         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1911         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1912         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1913         replace uses with new libitm_i.h symbols.
1914         (dispatch_wbetl): Rename from wbetl_dispatch.
1915         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1916         away from dispatch_readonly; abort if the beginTransaction call
1917         asserted that the transaction was readonly.
1919 2009-11-03  Richard Henderson  <rth@redhat.com>
1921         * memset.c: New file.
1922         * Makefile.am (libitm_la_SOURCES): Add it.
1923         * Makefile.in: Rebuild.
1924         * testsuite/libitm.c/memset-1.c: New.
1926 2009-11-03  Richard Henderson  <rth@redhat.com>
1928         * dispatch.c: Remove file.
1929         * useraction.c (struct gtm_user_action): Move from libitm.h.
1930         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1931         (serial_memset, serial_memmove, serial_memcpy): Remove.
1932         (serial_W*, serial_R*): Remove.
1933         (serial_dispatch): Update to match.
1934         * configure.ac: Move Werror down below configure checks.  Don't
1935         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1936         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1937         Use GCC_AC_FUNC_MMAP_BLACKLIST
1938         * libitm.h: Split out all internal items to...
1939         * libitm_i.h: ... here.  New file.
1940         * copymask.c: New file.
1941         * local.c (struct gtm_local_undo): Move from libitm.h.
1942         (GTM_alloc_local): Rename from alloc_local; export.
1943         * memcpy.c: New file.
1944         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1945         * config/posix/page.c: New file.
1946         * config/posix/target_tls.h: Remove file.
1947         * barrier.c: New file.
1948         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1949         copymask.c, page.c.
1950         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1951         * method-wbetl.c: Rewrite for new cacheline methods.
1952         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1954         * config/alpha/sjlj.S: Fix typo.
1955         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1956         * config/alpha/copymask.c: New file.
1957         * config/alpha/target.h (CACHELINE_SIZE): New.
1958         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1960         * config/x86/target_i.h: Copy functions from x86/target.h.
1961         * config/x86/copymask.c: New file.
1962         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1963         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1964         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1965         * config/x86/target_tls.h: Move contents to target_i.h.
1967         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1968         * testsuite/libitm.c/memcpy-1.c: New.
1970 2009-10-22  Richard Henderson  <rth@redhat.com>
1972         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1973         (AM_CCASFLAGS): New.
1974         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1975         saving/restoring _AC_ARG_VAR_PRECIOUS.
1976         * Makefile.in, aclocal.m4, config.h.in, configure,
1977         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1979 2009-10-22  Richard Henderson  <rth@redhat.com>
1981         * testsuite/*: Update for new compiler syntax.
1983 2009-10-21  Richard Henderson  <rth@redhat.com>
1985         * libitm.h (_ITM_abortReason): Add outerAbort.
1987 2009-08-03  Richard Henderson  <rth@redhat.com>
1989         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1990         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1991         * method-wbetl.c (struct w_entry): Remove mask.
1992         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1993         adjust all callers.
1995 2009-07-22  Richard Henderson  <rth@redhat.com>
1997         * eh_cpp.c: New file.
1998         * Makefile.am (libitm_la_SOURCES): Add it.
1999         * Makefile.in: Rebuild.
2000         * beginend.c (GTM_rollback_transaction): Undo exception state.
2001         (GTM_trycommit_transaction): Mark inline.
2002         (GTM_trycommit_and_finalize_transaction): Split out from ...
2003         (_ITM_commitTransaction): ... here.
2004         (_ITM_commitTransactionEH): New function.
2005         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2006         cxa_unthrown, eh_in_flight; reorder.
2008         * testsuite/libitm.c++/c++.exp: New.
2009         * testsuite/libitm.c++/eh-1.C: New.
2011         * aatree.c (aa_free): Remove REGPARM.
2012         * aatree.h: Remove all REGPARM.
2014 2009-07-18  Richard Henderson  <rth@redhat.com>
2016         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2017         * Makefile.am (libitm_la_SOURCES): Add them.
2018         * Makefile.in: Rebuild.
2019         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2020         (GTM_trycommit_transaction): Likewise.
2021         * libitm.h: Include aatree.h
2022         (struct gtm_alloc_action): New.
2023         (struct gtm_transaction): Add alloc_actions.
2024         (GTM_record_allocation, GTM_forget_allocation): Declare.
2025         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2026         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2027         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2028         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2029         _ZGTtdaPvRKSt9nothrow_t): Export.
2031 2009-07-18  Richard Henderson  <rth@redhat.com>
2033         * target_tls.h: Move ...
2034         * config/posix/target_tls.h: ... here.
2036 2009-07-07  Richard Henderson  <rth@redhat.com>
2038         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2040 2009-07-07  Richard Henderson  <rth@redhat.com>
2042         * Update to GPL3.
2044 2009-07-07  Richard Henderson  <rth@redhat.com>
2046         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2047         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2049         * configure.tgt: Don't use -ftls-model for x86 linux.
2050         * libitm.h: Include target.h after standard includes.
2051         (_gtm_thr): Rename from gtm_thr.
2052         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2053         (gtm_disp, set_gtm_disp): New.
2054         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2055         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2056         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2058 2009-07-07  Richard Henderson  <rth@redhat.com>
2060         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2062 2009-07-06  Richard Henderson  <rth@redhat.com>
2064         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2065         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2066         (_ITM_beginTransaction): Take variadic arguments.
2067         (_ITM_registerThrownObject): Declare.
2068         * beginend.c, serial.c: Update.
2069         * libitm.map: Add _ITM_registerThrownObject.
2071 2009-01-28  Richard Henderson  <rth@redhat.com>
2073         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2074         * Makefile.in: Rebuild.
2075         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2076         (GTM_restart_transaction): Fix uninstrumented code check.
2077         * retry.c (GTM_decide_retry_strategy): Add serial check.
2078         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2079         automatically go irrevokable when in serial mode.
2080         * clone.c: New file.
2081         * libitm.h, libitm.map: Update.
2083 2009-01-27  Richard Henderson  <rth@redhat.com>
2085         * Makefile.am (LTCCASCOMPILE): Define.
2086         (libitm_la_SOURCES): Add methid-wbetl.c.
2087         * testsuite/Makefile.am: New
2088         * configure.ac: Add testsuite/Makefile.
2089         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2090         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2091         (_ITM_abortTransaction): Finalize implementation method; pass
2092         transaction properties to longjmp.
2093         (GTM_restart_transaction): Split out from ...
2094         (_ITM_commitTransaction): ... here.
2095         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2096         Move to config/x86/target.h.
2097         * config/linux/alpha/futex_bits.h: New.
2098         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2099         * config/x86/target.h: Disable target types for 32-bit.
2100         * config/alpha/sjlj.S, config/alpha/target.h: New.
2101         * libitm.h (struct gtm_dispatch): Add init, fini.
2102         (enum restart_reason): New.
2103         (struct gtm_transaction): Add method and restarts.
2104         * retry.c (GTM_decide_retry_strategy): Implement.
2105         * serial.c (serial_init, serial_fini): New.
2106         (GTM_serialmode): Finialize outgoing method.
2107         * method-wbetl.c: New.
2109 2008-12-09  Richard Henderson  <rth@redhat.com>
2111         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2112         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2113         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2114         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2115         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2116         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2117         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2118         * serial.c (serial_R##T, serial_W##T): Likewise.
2120 2008-11-21  Richard Henderson  <rth@redhat.com>
2122         * Initial commit.
2124 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2126 Copying and distribution of this file, with or without modification,
2127 are permitted in any medium without royalty provided the copyright
2128 notice and this notice are preserved.