1 2022-02-03 David Seifert <soap@gentoo.org>
2 Jakub Jelinek <jakub@redhat.com>
4 * configure.ac: Support --disable-werror.
5 * configure: Regenerate.
7 2022-01-31 Martin Liska <mliska@suse.cz>
9 * acinclude.m4: Detect *_ld_is_mold and use it.
10 * configure: Regenerate.
12 2022-01-03 Jakub Jelinek <jakub@redhat.com>
14 * libitm.texi: Bump @copying's copyright year.
16 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
18 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
19 target does not support HAVE_ELF_STYLE_WEAKREF then do not
20 try to test the __cxa_get_globals against NULL.
22 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
25 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
27 2021-01-15 Jakub Jelinek <jakub@redhat.com>
30 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
31 be added through preprocessor check on
32 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
34 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
36 * configure: Re-generate.
38 2021-01-01 Jakub Jelinek <jakub@redhat.com>
40 * libitm.texi: Bump @copying's copyright year.
42 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
45 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
46 * configure: Regenerate.
48 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
50 * configure: Regenerate.
52 2020-10-01 Alan Modra <amodra@gmail.com>
54 * config/powerpc/sjlj.S: Support __PCREL__ code.
56 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
58 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
60 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
62 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
63 and add BTI c to function entries.
65 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
67 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
69 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
72 * configure: Regenerated.
74 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
77 * configure: Regenerated.
79 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
81 * configure: Regenerated.
83 2020-05-12 Nathan Sidwell <nathan@acm.org>
85 Fix throw specifiers on interface.
86 * libitm/libitm.h (_ITM_NOTHROW): Define.
87 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
88 (_ITM_cxa_begin_catch): Use it.
89 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
90 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
92 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
93 (_ITM_cxa_begin_catch): Likewise.
95 2020-05-05 Nathan Sidwell <nathan@acm.org>
97 * testsuite/lib/libitm.exp (libitm_init): Add
98 -fdiagnostics-color=never to options.
100 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
105 * configure: Regenerated.
107 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
109 * configure.ac: Handle `--with-toolexeclibdir='.
110 * Makefile.in: Regenerate.
111 * aclocal.m4: Regenerate.
112 * configure: Regenerate.
113 * testsuite/Makefile.in: Regenerate.
115 2020-01-01 Jakub Jelinek <jakub@redhat.com>
117 Update copyright years.
119 * libitm.texi: Bump @copying's copyright year.
121 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
124 * configure.tgt: Avoid IE tls on *-*-musl*.
126 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
128 * configure: Regenerate.
130 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
132 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
134 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
136 * configure.tgt: Handle *-*-uclinux*.
137 * configure: Regenerate.
139 2019-09-06 Florian Weimer <fweimer@redhat.com>
141 * configure: Regenerate.
143 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
146 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
147 scanning to conform to the GNU Coding Standards.
148 * configure: Regenerate.
150 2019-05-03 Jakub Jelinek <jakub@redhat.com>
152 * Makefile.am (finclude): Remove.
153 * Makefile.in: Regenerated.
155 2019-01-01 Jakub Jelinek <jakub@redhat.com>
157 Update copyright years.
159 2019-01-01 Jakub Jelinek <jakub@redhat.com>
161 * libitm.texi: Bump @copying's copyright year.
163 2018-12-16 Jakub Jelinek <jakub@redhat.com>
166 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
167 void * to void (*) (void *).
168 (_ITM_cxa_throw): Likewise.
169 * libitm.h (_ITM_cxa_throw): Likewise.
170 * libitm.texi (_ITM_cxa_throw): Likewise.
172 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
174 * config/powerpc/target.h (htm_available): Add support for
175 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
177 2018-10-31 Joseph Myers <joseph@codesourcery.com>
180 * Makefile.am: Include multilib.am.
181 (AUTOMAKE_OPTIONS): Add info-in-builddir.
182 (CLEANFILES): Remove libitm.info.
183 * configure.ac: Remove AC_PREREQ.
184 * testsuite/Makefile.am (RUNTEST): Remove quotes.
185 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
188 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
191 * method-serial.cc: Mark varible as potentially unused
194 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
196 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
197 absolute relocation in a shared library.
199 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
202 * config/linux/x86/tls.h (SEG_READ): Use the offset of
203 __private_tm as base.
204 (SEG_WRITE): Likewise.
205 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
206 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
207 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
208 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
209 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
211 2018-05-17 Jason Merrill <jason@redhat.com>
213 * beginend.cc (save): Disable -Werror=deprecated-copy.
215 2018-05-02 Tom de Vries <tom@codesourcery.com>
218 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
220 2018-05-02 Tom de Vries <tom@codesourcery.com>
223 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
225 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
227 * config/x86/sjlj.S (_ITM_beginTransaction): Add
228 (__CET__ & 2) != 0 check for shadow stack.
229 (GTM_longjmp): Likewise.
231 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
233 * configure: Regenerated.
235 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
238 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
240 2018-04-19 Jakub Jelinek <jakub@redhat.com>
242 * configure: Regenerated.
244 2018-04-18 David Malcolm <dmalcolm@redhat.com>
247 * configure: Regenerate.
249 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
252 * configure: Regenerate.
254 2018-01-03 Jakub Jelinek <jakub@redhat.com>
256 Update copyright years.
258 * libitm.texi: Bump @copying's copyright year.
260 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
262 * Makefile.in: Regenerate.
263 * acinclude.m4: Add enable.m4 and cet.m4.
264 * config/x86/sjlj.S: Include cet.h.
265 (_ITM_beginTransaction): Add _CET_ENDBR.
266 Save Shadow Stack pointer.
267 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
268 * config/x86/target.h (struct gtm_jmpbuf):
269 Add new field for Shadow Stack pointer.
270 * configure: Regenerate.
271 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
272 * configure.ac: Update libtool_VERSION for x86.
273 * testsuite/Makefile.in: Regenerate.
275 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
277 * libitm/config/x86/target.h: Add new field (ssp).
278 * libitm/config/x86/sjlj.S: Change offsets.
280 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
282 * testsuite/lib/libitm.exp: Load scanlang.exp.
284 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
286 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
288 2017-01-21 Jakub Jelinek <jakub@redhat.com>
291 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
292 of cat to get version from BASE-VER file.
293 * testsuite/Makefile.in: Regenerated.
295 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
297 * config/x86/target.h (htm_available): Determine vendor from
298 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
300 2017-01-18 Torvald Riegel <triegel@redhat.com>
302 * config/x86/target.h (htm_available): Add check for some processors
303 on which TSX is broken.
305 2017-01-17 Jakub Jelinek <jakub@redhat.com>
308 * configure.ac: Add GCC_BASE_VER.
309 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
310 get version from BASE-VER file.
311 * testsuite/Makefile.in: Regenerated.
312 * configure: Regenerated.
313 * Makefile.in: Regenerated.
315 2017-01-04 Alan Modra <amodra@gmail.com>
317 * Makefile.in: Regenerate.
318 * testsuite/Makefile.in: Regenerate.
320 2017-01-01 Jakub Jelinek <jakub@redhat.com>
322 Update copyright years.
324 * libitm.texi: Bump @copying's copyright year.
326 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
329 * aclocal.m4: Regenerate.
330 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
331 LIBITM_CHECK_LINKER_HWCAP.
333 2016-11-15 Matthias Klose <doko@ubuntu.com>
335 * configure: Regenerate.
337 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
340 * util.cc (xmalloc): Use posix_memalign to allocate memory on
341 on cache line if requested.
343 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
345 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
346 function attribute to disable floating point in begin_transaction() on
348 * beginend.cc (begin_transaction): Use
349 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
351 2016-01-22 Torvald Riegel <triegel@redhat.com>
353 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
355 (htm_fastpath): Remove.
356 (gtm_thread::begin_transaction): Fix HTM fastpath.
357 (_ITM_commitTransaction): Adapt.
358 (_ITM_commitTransactionEH): Adapt.
359 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
361 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
362 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
363 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
364 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
365 * libitm/method-serial.cc (htm_mg): Adapt.
366 (gtm_thread::serialirr_mode): Adapt.
367 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
369 2016-01-21 Torvald Riegel <triegel@redhat.com>
371 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
374 2016-01-19 Richard Henderson <rth@redhat.com>
379 2016-01-13 Richard Henderson <rth@redhat.com>
381 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
382 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
383 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
384 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
385 * configure.ac (ARCH_AARCH64): New conditional.
386 (ARCH_PPC, ARCH_S390): Likewise.
387 * Makefile.in, configure: Rebuild.
389 * libitm.h (_ITM_TYPE_M128): Always define.
390 * vect64.cc: Split ...
391 * vect128.cc: ... out of...
392 * config/x86/x86_sse.cc: ... here.
393 * config/arm/neon.cc: New file.
395 2016-01-19 Torvald Riegel <triegel@redhat.com>
397 * local_type_traits: Remove file.
398 * libitm_i.h: Don't include it anymore.
399 (sized_integral): Remove.
401 2016-01-16 Torvald Riegel <triegel@redhat.com>
403 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
405 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
406 * libitm/testsuite/libitm.c/priv-1.c: New.
408 2015-01-15 Torvald Riegel <triegel@redhat.com>
410 testsuite/libitm.c++/libstdc++-safeexc.C: New.
412 2016-01-13 Torvald Riegel <triegel@redhat.com>
414 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
415 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
416 (gtm_rwlock::write_unlock): Likewise.
418 2016-01-13 Richard Henderson <rth@redhat.com>
420 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
421 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
422 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
423 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
424 * configure.ac (ARCH_AARCH64): New conditional.
425 (ARCH_PPC, ARCH_S390): Likewise.
426 * Makefile.in, configure: Rebuild.
428 * libitm.h (_ITM_TYPE_M128): Always define.
429 * vect64.cc: Split ...
430 * vect128.cc: ... out of...
431 * config/x86/x86_sse.cc: ... here.
432 * config/arm/neon.cc: New file.
434 2016-01-13 Torvald Riegel <triegel@redhat.com>
436 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
437 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
438 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
439 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
440 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
441 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
442 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
443 (serialirr_dispatch::snapshot_most_recent): New.
444 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
446 2016-01-12 Torvald Riegel <triegel@redhat.com>
448 * libitm_i.h (gtm_mask_stack): Remove.
449 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
450 * stmlock.h: Remove file.
451 * config/alpha/cacheline.h: Likewise.
452 * config/generic/cacheline.h: Likewise.
453 * config/powerpc/cacheline.h: Likewise.
454 * config/sparc/cacheline.h: Likewise.
455 * config/x86/cacheline.h: Likewise.
457 2016-01-04 Jakub Jelinek <jakub@redhat.com>
459 Update copyright years.
461 * libitm.texi: Bump @copying's copyright year.
463 2015-11-26 Torvald Riegel <triegel@redhat.com>
465 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
466 (ml_wt_dispatch::pre_write): Adapt.
467 (ml_wt_dispatch::pre_load): Likewise.
469 2015-11-22 Torvald Riegel <triegel@redhat.com>
471 * libitm_i.h (gtm_alloc_action): Remove union.
472 * testsuite/libitm.c/alloc-1.c: New.
474 2015-11-19 Torvald Riegel <triegel@redhat.com>
476 * testsuite/libitm.c++/eh-5.C: New.
477 * libitm.h (_ITM_cxa_free_exception): New.
478 * libitm.map (_ITM_cxa_free_exception): Add it.
479 * libitm.texi: Update ABI docs.
480 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
481 (gtm_transaction_cp::cxa_uncaught_count): Add.
482 (gtm_thread::cxa_unthrown): Remove.
483 (gtm_thread::cxa_uncaught_count_ptr): Add.
484 (gtm_thread::cxa_uncaught_count): Add.
485 (gtm_thread::drop_references_allocations): Rename to...
486 (gtm_thread::discard_allocation): ... this and adapt.
487 (gtm_thread::init_cpp_exceptions): New.
488 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
489 (gtm_thread::begin_transaction): Likewise.
490 (gtm_transaction_cp::save): Likewise.
491 (gtm_thread::trycommit): Likewise.
492 * eh_cpp.cc: Add overview comments.
493 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
494 (free_any_exception, _ITM_cxa_free_exception): New.
495 (gtm_thread::init_cpp_exceptions): Define.
496 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
497 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
498 (gtm_thread::revert_cpp_exceptions): Likewise.
500 2015-11-09 Torvald Riegel <triegel@redhat.com>
502 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
503 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
504 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
505 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
506 (gtm_thread::forget_allocations): New overload with size_t argument.
507 * alloc.c (gtm_thread::forget_allocation): Define new overload and
509 (gtm_thread::record_allocation): Adapt.
510 (gtm_thread::commit_allocations_1): Adapt.
511 (gtm_thread::commit_allocations_2): Adapt.
512 * testsuite/libitm.c++/newdelete.C: New.
514 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
515 Joseph Myers <joseph@codesourcery.com>
516 Mark Shinwell <shinwell@codesourcery.com>
517 Andrew Stubbs <ams@codesourcery.com>
518 Rich Felker <dalias@libc.org>
520 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
521 GTM_begin_transaction for compatibility with FDPIC.
523 2015-10-09 David Malcolm <dmalcolm@redhat.com>
525 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
528 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
531 * local_atomic (__always_inline): Rename to...
532 (__libitm_always_inline): ... this.
534 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
537 * config/powerpc/sjlj.S: Port to Xcode 2.5.
539 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
541 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
542 operands "op" and "val" to int.
544 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
546 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
547 "op" and "val" to int.
549 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
551 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
552 "op" and "val" to int.
554 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
556 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
557 Declare as static int.
558 (FUTEX_PRIVATE_FLAG): Remove L suffix.
559 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
561 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
563 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
566 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
568 * Makefile.in: Regenerated with automake-1.11.6.
569 * aclocal.m4: Likewise.
570 * configure: Likewise.
571 * testsuite/Makefile.in: Likewise.
573 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
575 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
576 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
578 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
581 * libitm.c/stackundo.c (test2): Make it static.
584 2015-01-05 Jakub Jelinek <jakub@redhat.com>
586 Update copyright years.
588 2015-01-05 Jakub Jelinek <jakub@redhat.com>
590 * libitm.texi: Bump @copying's copyright year.
592 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
594 * testsuite/lib/libitm.exp: Load target-utils.exp.
595 Move load of target-supports.exp earlier.
597 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
599 * configure.tgt (x86_64): Tune -m32 multilib to generic.
601 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
604 * configure: Regenerated.
606 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
609 * configure: Regenerate.
611 2014-10-06 Marek Polacek <polacek@redhat.com>
613 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
614 * testsuite/libitm.c/memset-1.c: Likewise.
616 2014-07-24 Richard Henderson <rth@redhat.com>
618 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
619 addressing mode in epilogue.
621 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
623 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
624 -mclear-hwcap instead.
625 * configure: Regenerate.
626 * clearcap.map: Remove.
628 2014-05-21 John Marino <gnugcc@marino.st>
630 * configure.tgt (*-*-dragonfly*): New target.
632 2014-05-19 Richard Henderson <rth@redhat.com>
634 * config/aarch64/sjlj.S: New file.
635 * config/aarch64/target.h: New file.
636 * configure.tgt: Enable aarch64.
638 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
640 * config/generic/asmcfi.h: Also check for
641 __GCC_HAVE_DWARF2_CFI_ASM.
643 2013-04-02 Richard Henderson <rth@redhat.com>
645 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
646 * config/arm/target.h, config/sh/target.h: Likewise.
647 * config/sparc/target.h, config/x86/target.h: Likewise.
649 2014-03-26 Jakub Jelinek <jakub@redhat.com>
651 * config/linux/futex_bits.h: Include errno.h.
652 (sys_futex0): If syscall returns -1, return -errno rather than
655 2014-03-26 Joseph Myers <joseph@codesourcery.com>
657 * libitm.texi (Index): Rename to Library Index.
659 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
662 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
663 (x86_avx.lo): Append -mavx to CXXFLAGS.
664 * Makefile.in: Regenerate.
666 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
668 Update copyright years
670 2014-01-02 Tobias Burnus <burnus@net-b.de>
672 * libitm.texi: Bump @copying's copyright year.
674 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
676 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
677 (FUNC): Define ELFv2 variant.
684 2013-09-20 Alan Modra <amodra@gmail.com>
686 * configure: Regenerate.
688 2013-08-30 Torvald Riegel <triegel@redhat.com>
690 * config/posix/rwlock.cc: Fix initialization order.
692 2013-08-30 Torvald Riegel <triegel@redhat.com>
694 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
695 (htm_fastpath): Assign an asm name.
696 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
698 (_ITM_actions): Likewise.
699 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
701 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
702 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
703 field to the start of the structure.
704 * config/linux/rwlock.h (gtm_rwlock): Update comments.
705 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
706 handling for custom HTM fast paths.
708 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
710 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
712 * configure.tgt: Add -msoft-float to XCFLAGS.
714 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
716 * configure.tgt: Add -msoft-float to XCFLAGS.
718 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
720 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
721 (htm_transaction_active): Enable zEC12 instructions in the
723 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
725 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
727 * acinclude.m4: Add htm asm check for s390.
728 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
729 * configure: Regenerate.
730 * config/s390/target.h: Remove __HTM__ check.
731 (htm_available): Call getauxval to get hwcaps and check whether
732 HTM is available or not.
734 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
736 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
737 * configure.ac: Use it.
738 (AC_CHECK_HEADERS): Check for sys/auxv.h.
739 (AC_CHECK_FUNCS): Check for getauxval.
740 * config.h.in, configure: Rebuild.
741 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
742 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
743 (USE_HTM_FASTPATH): Define.
744 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
745 _HTM_RETRIES) New macros.
746 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
747 htm_begin_success, htm_commit, htm_transaction_active): New functions.
749 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
751 * config/s390/target.h: Include htmintrin.h.
752 (_HTM_ITM_RETRIES): New macro definition.
753 (htm_available, htm_init, htm_begin, htm_begin_success)
754 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
756 2013-06-20 Iain Sandoe <iain@codesourcery.com>
757 Cesar Philippidis <cesar@codesourcery.com>
759 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
760 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
761 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
762 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
764 2013-06-20 Torvald Riegel <triegel@redhat.com>
766 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
767 (_ITM_getTransactionId): Same.
768 * config/x86/target.h (htm_transaction_active): New.
770 2013-06-20 Torvald Riegel <triegel@redhat.com>
773 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
776 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
779 * local_atomic (__always_inline): Always define our version.
780 (__calculate_memory_order): Mark inline.
781 (atomic_thread_fence): Ditto.
782 (atomic_signal_fence): Ditto.
783 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
784 (atomic_bool::atomic_flag_clear_explicit): Ditto.
785 (atomic_bool::atomic_flag_test_and_set): Ditto.
786 (atomic_bool::atomic_flag_clear): Ditto.
788 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
790 * config/s390/sjlj.S: New file.
791 * config/s390/target.h: New file.
792 * configure.tgt: Set options for S/390.
794 2013-03-23 Andi Kleen <ak@linux.intel.com>
796 * local_atomic (__always_inline): Add.
797 (__calculate_memory_order, atomic_thread_fence,
798 atomic_signal_fence, test_and_set, clear, store, load,
799 exchange, compare_exchange_weak, compare_exchange_strong,
800 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
801 Add __always_inline to force inlining.
803 2013-02-11 Iain Sandoe <iain@codesourcery.com>
804 Jack Howarth <howarth@bromo.med.uc.edu>
805 Patrick Marlier <patrick.marlier@gmail.com>
808 * alloc_cpp.cc: Enable function declarations on darwin.
809 * eh_cpp.cc: Likewise.
811 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
813 Update copyright years.
815 2012-11-09 Torvald Riegel <triegel@redhat.com>
817 * beginend.cc (htm_fastpath): New.
818 (gtm_thread::begin_transaction, _ITM_commitTransaction,
819 _ITM_commitTransactionEH): Add HTM fastpath handling.
820 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
821 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
822 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
823 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
824 * configure.tgt: Add -mrtm to XCFLAGS.
825 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
826 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
827 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
828 * retry.cc (parse_default_method): Add HTM method parsing.
829 (gtm_thread::number_of_threads_changed): Use HTM by default if
832 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
834 * configure: Regenerate.
836 2012-10-31 Richard Henderson <rth@redhat.com>
838 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
839 * configure.ac: Use it.
840 * config.h.in, configure: Rebuild.
841 * testsuite/Makefile.in: Rebuild.
843 2012-10-24 Torvald Riegel <triegel@redhat.com>
845 * libitm.texi: Clarify ABI requirements for data-logging functions.
847 2012-10-24 Torvald Riegel <triegel@redhat.com>
849 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
850 it requires serial mode instead of assuming that for certain
852 * dispatch.h (abi_dispatch::requires_serial): New.
853 (abi_dispatch::abi_dispatch): Adapt.
854 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
855 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
856 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
857 serial_dispatch::serial_dispatch,
858 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
860 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
862 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
863 and ia32 declarations some more.
864 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
866 2012-09-20 Jakub Jelinek <jakub@redhat.com>
869 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
870 * configure: Regenerate.
871 * Makefile.in: Regenerate.
873 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
875 * configure: Regenerated.
877 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
879 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
881 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
883 * eh_cpp.cc: Fix __cxa_end_catch declaration.
885 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
887 * configure: Regenerated.
889 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
892 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
895 2012-04-03 Tristan Gingold <gingold@adacore.com>
897 * configure: Regenerate.
899 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
902 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
904 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
906 * testsuite/lib/libitm.exp: load fortran-modules.exp
908 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
910 * configure.tgt (*-*-irix6*): Remove.
912 2012-03-13 Torvald Riegel <triegel@redhat.com>
915 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
918 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
920 * configure.tgt (*-*-osf*): Remove.
921 * configure: Regenerate.
923 2012-03-05 Torvald Riegel <triegel@redhat.com>
925 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
926 memtransfer/memset if size isn't larger than zero.
928 2012-03-02 Torvald Riegel <triegel@redhat.com>
930 * libitm.texi: Link to specification and add a usage example.
932 2012-02-24 Torvald Riegel <triegel@redhat.com>
934 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
935 default dispatch for more than 1 thread to ml_wt.
937 2012-02-20 Torvald Riegel <triegel@redhat.com>
939 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
941 2012-02-20 Torvald Riegel <triegel@redhat.com>
943 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
945 2012-02-20 Torvald Riegel <triegel@redhat.com>
947 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
948 serial mode corner cases made obsolete by prior gtm_rwlock changes.
949 (gl_wt_dispatch.rollback): Same.
951 2012-02-20 Torvald Riegel <triegel@redhat.com>
953 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
955 2012-02-20 Torvald Riegel <triegel@redhat.com>
957 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
958 for RfW src. Optimize number of calls to gtm_thr.
960 2012-02-20 Torvald Riegel <triegel@redhat.com>
962 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
964 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
965 (default_dispatch): Make atomic.
966 (GTM::gtm_thread::set_default_dispatch): Access atomically.
967 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
968 use decide_begin_dispatch() if default_dispatch might have changed.
969 (GTM::gtm_thread::number_of_threads_changed): Initialize
970 default_dispatch here.
972 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
973 Patrick Marlier <patrick.marlier@gmail.com>
976 * alloc_cpp.cc: No dummy definitions for darwin.
977 * eh_cpp.cc: Likewise.
979 2012-02-14 Richard Henderson <rth@redhat.com>
981 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
983 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
985 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
987 2012-02-14 Torvald Riegel <triegel@redhat.com>
989 * libitm_i.h (GTM::gtm_rwlog_entry): New.
990 (GTM::gtm_thread): Add read and write logs.
991 (GTM::dispatch_ml_wt): Declare.
992 * retry.cc (parse_default_method): Support ml_wt.
993 * method-ml.cc: New file.
994 * Makefile.am: Add method-ml.cc.
995 * Makefile.in: Regenerate.
997 2012-02-14 Torvald Riegel <triegel@redhat.com>
999 * dispatch.h (GTM::abi_dispatch::supports): New.
1000 (GTM::method_group::reinit): New.
1001 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1002 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1003 supports the current situation.
1005 2012-02-14 Torvald Riegel <triegel@redhat.com>
1007 * util.cc (GTM::xcalloc): New.
1008 * common.h (GTM::xcalloc): Declare.
1010 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1012 * config/sparc/target.h (cpu_relax): Read from CC register.
1013 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1015 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1017 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1019 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1021 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1022 * config/sparc/cacheline.h: New file.
1023 * config/sparc/target.h: Likewise.
1024 * config/sparc/sjlj.S: Likewise.
1025 * config/linux/sparc/futex_bits.h: Likewise.
1027 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1029 * configure.ac (link_itm): Fix comment.
1030 * configure: Regenerate.
1031 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1033 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1036 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1037 Correct libgomp references.
1039 2012-01-24 Torvald Riegel <triegel@redhat.com>
1041 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1044 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1046 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1048 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1049 offset values. Do not copy return address. Decrement stack
1051 (GTM_longjump) [__x86_64__]: Update offset values.
1053 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1056 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1057 the first function argument to %eax.
1059 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1061 * libitm.h (_ITM_getThreadnum): Remove.
1062 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1064 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1066 * clearcap.map: New file.
1067 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1068 * configure.ac: Call it.
1069 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1070 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1071 * configure: Regenerate.
1072 * Makefile.in: Regenerate.
1073 * testsuite/Makefile.in: Regenerate.
1075 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1078 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1079 include, exclude options.
1081 2012-01-14 Torvald Riegel <triegel@redhat.com>
1083 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1085 * containers.h (GTM::vector::set_size): New.
1087 2012-01-14 Torvald Riegel <triegel@redhat.com>
1090 * config/generic/tls.h (GTM::mask_stack_top): New.
1091 (GTM::mask_stack_bottom): Declare.
1092 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1093 * local.cc (gtm_undolog::rollback): Filter out any updates that
1094 overlap the libitm stack. Add current transaction as parameter.
1095 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1096 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1097 * testsuite/libitm.c/stackundo.c: New test.
1099 2012-01-10 Richard Henderson <rth@redhat.com>
1101 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1102 * eh_cpp.cc (_Unwind_DeleteException): Define for
1103 !HAVE_ELF_STYLE_WEAKREF.
1105 2012-01-08 Torvald Riegel <triegel@redhat.com>
1107 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1108 (GTM::gtm_thread::drop_references_undolog): Remove.
1109 (GTM::gtm_thread::commit_undolog,
1110 GTM::gtm_thread::rollback_undolog): Move to ...
1111 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1112 (GTM::gtm_undolog_entry): Remove.
1113 (GTM::gtm_thread): Adapt.
1114 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1115 (GTM::gtm_thread::trycommit): Adapt.
1116 * method-serial.cc (serial_dispatch::log): Adapt.
1117 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1118 (gl_wt_dispatch::store): Fix likely/unlikely.
1119 * containers.h (GTM::vector::resize): Add additional_capacity
1120 parameter and handle it.
1121 (GTM::vector::resize_noinline): New/adapt.
1122 (GTM::vector::push): New.
1124 2012-01-06 Richard Henderson <rth@redhat.com>
1126 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1127 * config/linux/powerpc/futex_bits.h: New file.
1128 * config/powerpc/cacheline.h: New file.
1129 * config/powerpc/sjlj.S: New file.
1130 * config/powerpc/target.h: New file.
1131 * config/generic/asmcfi.h (cfi_offset): New.
1132 (cfi_restore, cfi_undefined): New.
1134 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1137 * testsuite/libitm.c/reentrant.c: Remove xfail.
1138 (thread): Pass x to pure().
1139 From Patrik Marlier <patrick.marlier@gmail.com>.
1141 2011-12-24 Torvald Riegel <triegel@redhat.com>
1143 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1144 privatization safety if already in serial mode.
1146 2011-12-24 Torvald Riegel <triegel@redhat.com>
1148 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1149 finish_serial_upgrade parameter.
1150 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1151 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1152 Don't unset reader flag.
1153 (GTM::gtm_rwlock::write_upgrade_finish): New.
1154 * config/posix/rwlock.cc: Same.
1155 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1157 * config/posix/rwlock.h: Same.
1158 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1159 flag after commit or after rollback when restarting.
1161 2011-12-24 Torvald Riegel <triegel@redhat.com>
1163 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1164 (GTM::gtm_thread::try_commit): Changed memory order.
1165 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1167 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1168 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1169 * config/linux/futex_bits.h (sys_futex0): Same.
1170 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1171 * config/linux/futex.h (futex_wait, futex_wake): Same.
1172 * config/linux/rwlock.h (gtm_rwlock::writers,
1173 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1175 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1176 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1177 gtm_rwlock::write_unlock): Fix memory orders and fences.
1178 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1179 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1180 gtm_rwlock::write_unlock): Same.
1181 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1182 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1183 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1185 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1186 gl_wt_dispatch::load, gl_wt_dispatch::store,
1187 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1188 orders and fences. Add comments.
1190 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1192 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1193 * Makefile.in: Regenerated.
1195 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1197 * configure.tgt: Add sh* case.
1198 * config/sh/target.h: New file.
1199 * config/sh/sjlj.S: New file.
1200 * config/linux/sh/futex_bits.h: New file.
1202 2011-12-14 Richard Henderson <rth@redhat.com>
1204 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1205 * config/arm/sjlj.S, config/arm/target.h: New files.
1206 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1207 (cfi_rel_offset): New.
1208 * config/linux/futex_bits.h: New file.
1209 * config/linux/futex.cc: Include futex_bits.h here...
1210 * config/linux/futex.h: ... not here.
1211 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1212 * configure.ac (ARCH_AM): New conditional.
1213 * Makefile.in, configure: Rebuild.
1214 * configure.tgt: Handle ARM.
1216 2011-12-13 Richard Henderson <rth@redhat.com>
1218 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1219 signed/unsigned comparison werror.
1221 * local_atomic: New file.
1222 * libitm_i.h: Include it.
1223 (gtm_thread::shared_state): Use atomic template.
1224 * beginend.cc (GTM::gtm_clock): Use atomic template.
1225 (global_tid): Use atomic template if 64-bit atomics available.
1226 (gtm_thread::gtm_thread): Update shared_state access.
1227 (gtm_thread::trycommit): Likewise.
1228 (choose_code_path): Update global_tid access.
1229 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1230 * stmlock.h (GTM::gtm_clock): Use atomic template.
1231 (gtm_get_clock, gtm_inc_clock): Update accesses.
1232 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1233 redundant __sync_synchronize after atomic shared_state access.
1234 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1235 (gtm_rwlock::write_lock_generic): Likewise.
1236 (gtm_rwlock::read_unlock): Likewise.
1237 * config/alpha/target.h (atomic_read_barrier): Remove.
1238 (atomic_write_barrier): Remove.
1239 * config/x86/target.h (atomic_read_barrier): Remove.
1240 (atomic_write_barrier): Remove.
1242 2011-11-30 Richard Henderson <rth@redhat.com>
1244 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1245 * beginend.c (_ITM_abortTransaction): Update to match.
1246 (GTM::gtm_thread::restart): Likewise.
1247 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1248 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1250 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1252 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1253 * Makefile.in: Regenerate.
1255 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1257 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1258 * alloc_cpp.cc: Generate dummy functions if we don't
1259 HAVE_ELF_STYLE_WEAKREF.
1260 * eh_cpp.cc: Likewise.
1261 * configure: Regenerate.
1262 * aclocal.m4: Likewise.
1263 * config.h.in: Likewise.
1264 * Makefile.in: Likewise.
1265 * testsuite/Makefile.in: Likewise.
1267 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1269 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1270 __USER_LABEL_PREFIX__ for targets that use it.
1271 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1272 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1273 in portability to non-elf targets.
1274 (GTM_longjmp): Likewise.
1275 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1278 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1280 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1281 * testsuite/libitm.c/memset-1.c: Likewise.
1283 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1285 * configure: Regenerate.
1287 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1289 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1290 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1291 * Makefile.am: Handle sun style versioning.
1292 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1293 * configure: Regenerate.
1294 * Makefile.in: Regenerate.
1296 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1298 * config/generic/asmcfi.h: Fix comment.
1299 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1300 sequence without .hidden support, error for non-ELF targets.
1301 (GTM_longjmp) [__ELF__]: Only use .hidden if
1302 HAVE_ATTRIBUTE_VISIBILITY.
1304 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1306 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1307 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1309 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1310 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1312 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1315 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1316 * configure: Regenerate.
1318 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1320 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1322 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1324 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1326 (.note.GNU-stack): Only use if __linux__.
1327 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1328 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1329 * testsuite/libitm.c/reentrant.c: Likewise.
1330 * testsuite/libitm.c/simple-2.c: Likewise.
1331 * testsuite/libitm.c/txrelease.c: Likewise.
1332 * testsuite/libitm.c++/static_ctor.C: Likewise.
1334 2011-11-10 Richard Henderson <rth@redhat.com>
1336 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1337 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1338 * configure.ac (ARCH_X86_AVX): New conditional.
1339 * Makefile.in, configure: Rebuild.
1341 2011-11-09 Richard Henderson <rth@redhat.com>
1343 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1344 * configure.ac: Use it.
1345 * config.h.in, configure: Rebuild.
1346 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1348 2011-11-09 Richard Henderson <rth@redhat.com>
1350 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1351 * config/alpha/unaligned.h: Remove file.
1352 * config/generic/unaligned.h: Remove file.
1353 * config/x86/unaligned.h: Remove file.
1354 * config/generic/cachepage.h: Remove file.
1355 * config/posix/cachepage.cc: Remove file.
1356 * config/generic/cacheline.cc: Remove file.
1357 * config/x86/cacheline.cc: Remove file.
1358 * config/generic/cacheline.h (gtm_cacheline): Remove the
1359 store_mask, copy_mask, copy_mask_wb methods.
1360 * config/x86/cacheline.h: Likewise.
1361 * config/alpha/cacheline.h: Fall back to generic after setting size.
1362 * config/generic/tls.cc (gtm_mask_stack): Remove.
1363 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1364 (GTM_vpalignr_table): Remove.
1365 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1366 (GTM_pshift_table): Remove.
1367 * config/libitm_i.h: Don't include cachepage.h.
1368 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1369 * Makefile.in, testsuite/Makefile.in: Rebuild.
1371 2011-11-09 Richard Henderson <rth@redhat.com>
1373 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1374 to emit branch prediction hint.
1376 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1377 Protect .note.GNU-stack with __linux__.
1379 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1380 * configure, aclocal.m4, config.h.in: Rebuild.
1381 * config/generic/asmcfi.h: New file.
1382 * config/x86/sjlj.S: Use it.
1384 2011-11-08 Richard Henderson <rth@redhat.com>
1386 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1388 2011-11-08 Richard Henderson <rth@redhat.com>
1390 * configure.tgt: Test correct directory for supported cpus.
1392 * configure.ac: Exit if unsupported.
1393 * configure: Rebuild.
1394 * configure.tgt: Delete boilerplate from libgomp for unsupported
1395 targets. Set UNSUPPORTED for unsupported targets.
1397 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1399 * configure.tgt: Handle i386 like i[456]86.
1400 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1402 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1403 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1405 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1407 * method-wbetl.cc: Update copyright notice.
1413 * barrier.tpl: Same.
1414 * useraction.cc: Same.
1418 * config/generic/tls.cc: Same.
1419 * config/generic/cacheline.h: Same.
1420 * config/generic/cachepage.h: Same.
1421 * config/generic/cacheline.cc: Same.
1422 * config/generic/unaligned.h: Same.
1423 * config/x86/cacheline.h: Same.
1424 * config/x86/cacheline.cc: Same.
1425 * config/x86/unaligned.h: Same.
1426 * config/alpha/cacheline.h: Same.
1427 * config/alpha/unaligned.h: Same.
1428 * config/alpha/sjlj.S: Same.
1429 * config/posix/cachepage.cc: Same.
1430 * config/linux/futex.h: Same.
1431 * config/linux/alpha/futex_bits.h: Same.
1433 2011-11-04 Torvald Riegel <triegel@redhat.com>
1435 * libitm.texi: No cover text and invariant sections.
1437 2011-11-03 Richard Henderson <rth@redhat.com>
1439 * local_type_traits: New file.
1440 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1442 2011-11-03 Richard Henderson <rth@redhat.com>
1444 * configure.ac: Don't test for gfortran.
1445 * configure: Rebuild.
1447 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1448 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1450 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1452 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1453 * testsuite/libitm.c/memset-1.c: Same.
1454 * testsuite/libitm.c/c.exp: Same.
1455 * testsuite/lib/libitm-dg.exp: Same.
1456 * testsuite/lib/libitm.exp: Same.
1457 * testsuite/libitm.c++/c++.exp: Same.
1459 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1461 * testsuite/config/default.exp: Update copyright date.
1462 * configure.ac: Add copyright info.
1463 * configure.tgt: Same.
1465 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1467 * testsuite/libitm.c/reentrant.c: XFAIL.
1468 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1470 2011-10-29 Torvald Riegel <triegel@redhat.com>
1472 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1474 (_ITM_abortTransaction): Handle aborts of outer transactions.
1476 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1477 * libitm.texi: Document aborts of outer transactions.
1478 * testsuite/libitm.c/cancel.c: New file.
1480 2011-10-19 Torvald Riegel <triegel@redhat.com>
1482 * testsuite/*: Change __transaction to __transaction_atomic or
1483 __transaction_relaxed.
1485 2011-10-19 Torvald Riegel <triegel@redhat.com>
1487 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1490 2011-10-19 Torvald Riegel <triegel@redhat.com>
1492 * libitm_i.h: Add gl_wt dispatch.
1493 * retry.cc (parse_default_method): Same.
1494 * method-gl.cc: New file.
1495 * Makefile.am: Use method-gl.cc.
1496 * Makefile.in: Rebuild.
1498 2011-10-19 Torvald Riegel <triegel@redhat.com>
1500 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1501 safety if requested by a TM method.
1502 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1503 privatization safety.
1504 * method-serial.cc: Same.
1506 2011-10-19 Torvald Riegel <triegel@redhat.com>
1508 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1509 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1510 undolog-related member functions from *_local to *_undolog.
1511 * local.cc (gtm_thread::commit_undolog): Same.
1512 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1513 (GTM::gtm_thread::rollback): Roll back undolog before
1514 dispatch-specific rollback.
1516 2011-10-19 Torvald Riegel <triegel@redhat.com>
1518 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1519 re-initialization of the current method group.
1520 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1522 2011-10-19 Torvald Riegel <triegel@redhat.com>
1524 * alloc.cc (commit_allocations_2): Do not free transaction-local
1525 memory when committing a nested transaction.
1527 2011-10-19 Torvald Riegel <triegel@redhat.com>
1529 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1530 serial-irrevocable dispatch, not serial.
1532 2011-10-19 Torvald Riegel <triegel@redhat.com>
1534 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1536 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1537 * method-serial.cc: Implement begin_or_restart().
1538 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1539 dispatch-specific begin_or_restart().
1540 (GTM::gtm_thread::restart): Same.
1542 2011-08-23 Torvald Riegel <triegel@redhat.com>
1544 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1545 restarting without switching to serial mode.
1546 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1547 transaction state. Choose closed-nesting alternative if available.
1548 (GTM::gtm_thread::set_default_dispatch): New.
1549 (parse_default_method): New.
1550 (GTM::gtm_thread::number_of_threads_changed): New.
1551 * method-serial.cc (GTM::serial_mg): New method group class.
1552 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1554 (GTM::serial_dispatch): Same.
1555 (GTM::serialirr_onwrite_dispatch): Same.
1556 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1557 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1559 (GTM::gtm_thread::gtm_thread): Same.
1560 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1561 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1562 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1563 choose dispatch but set state according to dispatch here.
1564 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1565 (GTM::method_group): New class.
1566 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1567 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1568 * libitm.texi: Document TM methods, method groups, method life cycle.
1569 Rename method sets to method groups.
1571 2011-08-23 Torvald Riegel <triegel@redhat.com>
1573 * config/x86/tls.h: Moved to ...
1574 * config/linux/x86/tls.h: ... here.
1576 2011-08-23 Torvald Riegel <triegel@redhat.com>
1578 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1580 * config/x86/sjlj.S: Same.
1582 2011-08-19 Torvald Riegel <triegel@redhat.com>
1584 * config/linux/rwlock.h: New file.
1585 * config/linux/rwlock.c: New file.
1586 * configure.ac: Reenable futex support (undo SVN rev 157758).
1587 * Makefile.am: Same.
1588 * configure.tgt: Same.
1589 * config/linux/alpha/futex_bits.h: Same.
1590 * config/linux/futex.h: Same. Return number of woken processes.
1591 * config/linux/futex.cc: Same.
1592 (futex_wait): Remove spinning.
1593 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1594 Use __x86_64__ instead of __LP64__.
1595 * aclocal.m4: Include generic futex checks.
1596 * configure: Rebuild.
1597 * Makefile.in: Rebuild.
1598 * testsuite/Makefile.in: Rebuild.
1599 * beginend.cc: Include pthread.h.
1600 * config/posix/cachepage.cc: Same.
1602 2011-08-12 Torvald Riegel <triegel@redhat.com>
1604 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1605 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1607 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1609 (GTM::gtm_thread::thread_num): Removed.
1610 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1611 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1612 tx-to-thread renaming.
1613 * beginend.cc: Adapted to tx-to-thread renaming.
1614 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1615 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1616 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1617 gtm_transaction to gtm_thread.
1618 (_ITM_getThreadnum): Removed. Not supported anymore.
1619 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1620 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1621 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1622 gtm_tx-to-gtm_thr renaming if necessary.
1629 * alloc_cpp.cc: Same.
1630 * method-serial.cc: Same.
1631 * config/generic/tls.cc: Same.
1632 * config/posix/rwlock.h (gtm_rwlock): Same.
1633 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1635 2011-08-12 Torvald Riegel <triegel@redhat.com>
1637 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1639 (gtm_rwlock::read_unlock): Same.
1640 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1641 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1642 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1643 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1644 w_upgrade. Replaced by per-transaction flags (in shared_state).
1645 Added c_confirmed_writers.
1646 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1647 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1648 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1649 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1650 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1651 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1652 * libitm.texi: Document locking conventions and implementations in
1655 2011-08-12 Torvald Riegel <triegel@redhat.com>
1657 * libitm_i.h (next_tx): Add list of all threads' transaction.
1658 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1659 transaction with list of transactions and ...
1660 (thread_exit_handler): ... deregister here.
1661 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1662 * config/x86/target.h: Same.
1664 2011-08-12 Torvald Riegel <triegel@redhat.com>
1666 * testsuite/libitm.c++/static_ctor.C: New file.
1668 2011-08-12 Torvald Riegel <triegel@redhat.com>
1670 * testsuite/libitm.c/reentrant.c: New file.
1672 2011-08-12 Torvald Riegel <triegel@redhat.com>
1674 * config/generic/tls.h: Remove the free list for transactions and ...
1675 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1676 (GTM::gtm_transaction::operator delete): ... and release here.
1677 (thread_exit_handler): New. Delete tx when thread terminates.
1678 (thread_exit_init): New.
1679 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1680 * testsuite/libitm.c/txrelease.c: New file.
1682 2011-08-12 Torvald Riegel <triegel@redhat.com>
1684 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1685 * testsuite/libitm.c/notx.c: New file.
1687 2011-08-12 Torvald Riegel <triegel@redhat.com>
1689 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1690 * libitm_i.h (local_tid): ... to here.
1691 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1692 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1694 2011-08-12 Torvald Riegel <triegel@redhat.com>
1696 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1697 serialirr_onwrite_dispatch as new default for now.
1698 * method-serial.cc (serialirr_onwrite_dispatch): New.
1699 (GTM::dispatch_serialirr_onwrite): New.
1702 2011-08-12 Torvald Riegel <triegel@redhat.com>
1704 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1705 * query.cc (_ITM_getTransactionId): There is no active transaction if
1706 the current nesting level is zero.
1708 2011-07-28 Torvald Riegel <triegel@redhat.com>
1710 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1713 2011-07-28 Torvald Riegel <triegel@redhat.com>
1715 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1716 transaction properties from the caller instead of from the
1719 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1721 2011-07-28 Torvald Riegel <triegel@redhat.com>
1723 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1724 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1726 * method-serial.cc: Same.
1727 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1728 flat nesting as default, and closed nesting on demand.
1729 (GTM::gtm_transaction::rollback): Same.
1730 (_ITM_abortTransaction): Same.
1731 (GTM::gtm_transaction::restart): Same.
1732 (GTM::gtm_transaction::trycommit): Same.
1733 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1734 (choose_code_path): New.
1735 (GTM::gtm_transaction_cp::save): New.
1736 (GTM::gtm_transaction_cp::commit): New.
1737 * query.cc (_ITM_inTransaction): Support flat nesting.
1738 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1739 (GTM::gtm_transaction): Support flat and closed nesting.
1740 * alloc.cc (commit_allocations_2): New.
1741 (commit_cb_data): New helper struct.
1742 (GTM::gtm_transaction::commit_allocations): Handle nested
1744 * libitm.texi: Update user action section, add description of nesting.
1746 2011-07-28 Torvald Riegel <triegel@redhat.com>
1748 * libitm_i.h: Add closed nesting as restart reason.
1749 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1751 2011-07-28 Torvald Riegel <triegel@redhat.com>
1753 * useraction.cc: Use vector instead of list to store actions.
1754 Also support partial rollbacks for closed nesting.
1755 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1756 * beginend.cc: Same.
1758 2011-07-28 Torvald Riegel <triegel@redhat.com>
1760 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1761 closed_nesting flags, as well as a closed nesting alternative.
1762 * method-serial.cc: Same.
1763 (serial_dispatch): Renamed to serialirr_dispatch.
1764 (GTM::dispatch_serialirr): Same.
1765 (serial_dispatch_ul): Renamed to serial_dispatch.
1766 (GTM::dispatch_serial): Same.
1768 2011-07-28 Torvald Riegel <triegel@redhat.com>
1770 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1772 2011-07-28 Torvald Riegel <triegel@redhat.com>
1774 * aatree.h (aa_tree::remove): New.
1775 (aa_tree::operator new): Add placement new.
1777 2011-07-02 Torvald Riegel <triegel@redhat.com>
1779 * containers.h: New file.
1780 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1781 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1782 * common.h: ... to here.
1783 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1786 2011-06-30 Torvald Riegel <triegel@redhat.com>
1788 * libitm_i.h (STATE_ABORTING): Remove.
1789 * beginend.cc (_ITM_abortTransaction): Same.
1790 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1791 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1792 (_ITM_rollbackTransaction): Remove.
1793 * beginend.cc: Same.
1795 * libitm.texi: Document these ABI changes.
1797 2011-06-30 Torvald Riegel <triegel@redhat.com>
1799 * libitm.texi: New file.
1800 * Makefile.am: Add libitm.texi.
1801 * Makefile.in: Rebuild.
1803 2011-06-30 Torvald Riegel <triegel@redhat.com>
1805 * libitm_i.h: Move parts to common.h and dispatch.h.
1806 * common.h: New file.
1807 * dispatch.h: New file, new dispatch class.
1808 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1809 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1810 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1811 decision to retry.cc.
1812 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1814 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1815 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1817 * barrier.cc: Use new barriers definitions.
1818 (abi_dispatch::memmove_overlap_check): New.
1819 * config/x86/x86_sse.cc: Same.
1820 * config/x86/x86_avx.cc: Same.
1821 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1823 * Makefile.in: Rebuild.
1824 * method-readonly.cc: Remove.
1825 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1826 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1828 2011-06-30 Torvald Riegel <triegel@redhat.com>
1830 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1831 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1832 * testsuite/libitm.c/dropref-2.c: Same.
1833 * testsuite/libitm.c/dropref.c: Same.
1835 2011-06-30 Torvald Riegel <triegel@redhat.com>
1837 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1838 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1839 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1841 * barrier.tpl: Same.
1843 * config/generic/tls.h: Same.
1844 * config/x86/tls.h: Same.
1848 * method-readonly.cc: Same.
1849 * method-serial.cc: Same.
1850 * method-wbetl.cc: Same.
1853 2011-03-03 Richard Henderson <rth@redhat.com>
1855 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1856 From Patrik Marlier <patrick.marlier@unine.ch>.
1858 2011-02-03 Richard Henderson <rth@redhat.com>
1860 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1861 * configure.ac: Use it.
1862 * configure, config.h.in: Rebuild.
1863 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1864 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1865 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1866 * libitm.map: Use wildcards to match size_t mangling.
1868 2010-12-14 Richard Henderson <rth@redhat.com>
1870 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1871 blocks of TIDs per thread.
1872 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1873 (setup_gtm_thr): Return the thread structure.
1874 * config/x86/tls.h (setup_gtm_thr): Likewise.
1876 2010-12-14 Richard Henderson <rth@redhat.com>
1878 * clone.cc (table_lock): Remove.
1879 (find_clone): Don't take it.
1880 (ExcludeTransaction): New helper class.
1881 (_ITM_registerTMCloneTable): Use it.
1882 (_ITM_deregisterTMCloneTable): Likewise.
1884 2010-12-14 Richard Henderson <rth@redhat.com>
1886 * config/x86/tls.h: New file.
1888 2010-07-15 Richard Henderson <rth@redhat.com>
1890 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1891 * Makefile.in: Rebuild.
1893 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1895 * method-wbetl.cc (trydropreference): Fix source line.
1897 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1899 * libitm.h: Add comment.
1900 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1902 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1904 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1905 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1906 available, use pthread mutexes.
1907 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1908 * config.h.in: Regenerate.
1909 * configure: Regenerate.
1911 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1913 * libitm.h (ITM_PURE): Define.
1914 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1916 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1918 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1919 (validate): Add comment.
1920 (trydropreference): New.
1921 * method-readonly.cc (class readonly_dispatch): Add
1923 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1924 Call trydropreference().
1925 * libitm.h (_ITM_dropReferences): Remove const attribute.
1926 * method-serial.cc (class serial_dispatch): Add trydropreference.
1927 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1929 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1931 * memcpy.cc (do_memcpy): Comment.
1933 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1935 * barrier.tpl: Add comments throughout.
1937 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1939 * method-wbetl.cc (struct w_entry): Add comments.
1943 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1945 * alloc_c.cc (_ITM_dropReferences): New.
1946 * libitm.map (_ITM_dropReferences): Add.
1947 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1948 * libitm_i.h (struct gtm_transaction): Declare
1949 drop_references_allocations and drop_references_local.
1950 * local.cc (rollback_local): Ignore memory when applicable.
1951 (drop_references_local): New.
1953 2010-06-23 Richard Henderson <rth@redhat.com>
1955 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1956 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1957 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1958 * config/alpha/target.h: Likewise.
1959 * config/generic/tls.cc (gtm_mask_stack): Use it.
1961 2010-06-23 Richard Henderson <rth@redhat.com>
1963 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1964 a mutex instead of trying a lock-free compare-and-swap on the list.
1965 (gtm_cacheline_page::operator delete): Likewise.
1967 2010-06-16 Richard Henderson <rth@redhat.com>
1969 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1970 that overlap the libitm stack.
1971 * barrier.tpl: Mark incoming stack.
1972 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1973 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1974 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1975 * memcpy.cc, memset.cc: Likewise.
1976 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1977 * config/generic/tls.h (gtm_thread): Add stack_top member.
1978 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1979 * libitm_i.h (gtm_mask_stack): Declare.
1980 * config/generic/tls.cc: New file.
1981 * Makefile.am (libitm_la_SOURCES): Add it.
1982 (AM_CXXFLAGS): Turn off exceptions.
1983 * Makefile.in: Rebuild.
1985 2010-06-16 Richard Henderson <rth@redhat.com>
1987 * alloc.cc (struct gtm_alloc_action): Move definition ...
1988 * libitm_i.h: ... here.
1989 (class gtm_transaction): Declare new and delete.
1990 * beginend.cc (alloc_tx): Reformulate as operator new.
1991 (free_tx): Reformulate as operator delete.
1992 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1994 2010-06-11 Richard Henderson <rth@redhat.com>
1996 * clone.cc (clone_entry_compare): Fix typo.
1997 From Patrik Marlier <patrick.marlier@unine.ch>.
1999 2010-05-13 Richard Henderson <rth@redhat.com>
2001 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2004 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2006 * libitm_i.h (struct gtm_transaction): Remove
2007 get_allocation_size.
2008 (record_allocation): Remove size parameter.
2009 * libitm.map (_ITM_realloc): Remove.
2010 * alloc_c.cc (_ITM_realloc): Remove.
2011 (_ITM_malloc): Remove size argument to record_allocation.
2012 (_ITM_calloc): Same.
2013 * alloc_cpp.cc (_ZGTtnwm): Same.
2014 (_ZGTtnwmRKSt9nothrow_t): Same.
2016 (_ZGTtnamRKSt9nothrow_t): Same.
2017 * alloc.cc (struct gtm_alloc_action): Remove size.
2018 (get_allocation_size): Remove.
2019 (commit_allocations): Add comment.
2020 (record_allocation): Remove size parameter.
2021 (forget_allocation): Remove set of size.
2023 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2025 * Makefile.am (abi_version): New.
2026 (AM_CXXFLAGS): Pass abi_version.
2027 * Makefile.in: Regenerate.
2028 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2030 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2032 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2033 _ITM_getTMCloneOrIrrevokable.
2034 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2035 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2037 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2039 * configure.ac: Remove Linux futex support.
2040 * configure.tgt (config_path): Same.
2041 * Makefile.am: Same.
2042 * config/linux: Remove entire directory.
2043 * configure: Rebuild.
2044 * Makefile.in: Rebuild.
2045 * testsuite/Makefile.in: Rebuild.
2047 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2049 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2050 switching to serial mode.
2051 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2053 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2055 * configure.tgt: Add emacs -*- tags.
2056 * barrier.tpl: Same.
2058 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2060 * Makefile.am: Rename serial.cc to method-serial.cc.
2061 * Makefile.in: Regenerate with automake 1.11.1.
2062 * testsuite/Makefile.in: Same.
2063 * aclocal.m4: Regenerate with aclocal 1.11.1.
2064 * method-serial.cc: Rename from serial.cc.
2065 * libitm_i.h (struct gtm_transaction): Update comment on
2068 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2070 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2071 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2073 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2075 * configure: Rebuild.
2077 2009-11-12 Richard Henderson <rth@redhat.com>
2079 * Rewrite everything in C++.
2081 2009-11-03 Richard Henderson <rth@redhat.com>
2083 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2084 * Makefile.am (libitm_la_SOURCES): Add them.
2085 * configure.ac (ARCH_X86): New conditional.
2086 * Makefile.in, configure: Rebuild.
2087 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2088 Move futex setup into "other system configury" case.
2089 * local.c (rollback_local): Merge into ...
2090 (GTM_rollback_local): ... here.
2091 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2092 (_ITM_LB): Define as an alias to GTM_LB.
2094 2009-11-03 Richard Henderson <rth@redhat.com>
2096 * method-readonly.c: New file.
2097 * Makefile.am (libitm_la_SOURCES): Add it.
2098 * Makefile.in: Rebuild.
2099 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2100 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2101 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2102 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2103 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2104 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2105 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2106 gtm_get_clock, gtm_inc_clock): New.
2107 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2108 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2109 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2110 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2111 replace uses with new libitm_i.h symbols.
2112 (dispatch_wbetl): Rename from wbetl_dispatch.
2113 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2114 away from dispatch_readonly; abort if the beginTransaction call
2115 asserted that the transaction was readonly.
2117 2009-11-03 Richard Henderson <rth@redhat.com>
2119 * memset.c: New file.
2120 * Makefile.am (libitm_la_SOURCES): Add it.
2121 * Makefile.in: Rebuild.
2122 * testsuite/libitm.c/memset-1.c: New.
2124 2009-11-03 Richard Henderson <rth@redhat.com>
2126 * dispatch.c: Remove file.
2127 * useraction.c (struct gtm_user_action): Move from libitm.h.
2128 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2129 (serial_memset, serial_memmove, serial_memcpy): Remove.
2130 (serial_W*, serial_R*): Remove.
2131 (serial_dispatch): Update to match.
2132 * configure.ac: Move Werror down below configure checks. Don't
2133 check for sys/loadavg.h, do check for malloc.h. Don't check for
2134 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2135 Use GCC_AC_FUNC_MMAP_BLACKLIST
2136 * libitm.h: Split out all internal items to...
2137 * libitm_i.h: ... here. New file.
2138 * copymask.c: New file.
2139 * local.c (struct gtm_local_undo): Move from libitm.h.
2140 (GTM_alloc_local): Rename from alloc_local; export.
2141 * memcpy.c: New file.
2142 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2143 * config/posix/page.c: New file.
2144 * config/posix/target_tls.h: Remove file.
2145 * barrier.c: New file.
2146 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2148 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2149 * method-wbetl.c: Rewrite for new cacheline methods.
2150 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2152 * config/alpha/sjlj.S: Fix typo.
2153 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2154 * config/alpha/copymask.c: New file.
2155 * config/alpha/target.h (CACHELINE_SIZE): New.
2156 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2158 * config/x86/target_i.h: Copy functions from x86/target.h.
2159 * config/x86/copymask.c: New file.
2160 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2161 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2162 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2163 * config/x86/target_tls.h: Move contents to target_i.h.
2165 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2166 * testsuite/libitm.c/memcpy-1.c: New.
2168 2009-10-22 Richard Henderson <rth@redhat.com>
2170 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2171 (AM_CCASFLAGS): New.
2172 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2173 saving/restoring _AC_ARG_VAR_PRECIOUS.
2174 * Makefile.in, aclocal.m4, config.h.in, configure,
2175 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2177 2009-10-22 Richard Henderson <rth@redhat.com>
2179 * testsuite/*: Update for new compiler syntax.
2181 2009-10-21 Richard Henderson <rth@redhat.com>
2183 * libitm.h (_ITM_abortReason): Add outerAbort.
2185 2009-08-03 Richard Henderson <rth@redhat.com>
2187 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2188 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2189 * method-wbetl.c (struct w_entry): Remove mask.
2190 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2193 2009-07-22 Richard Henderson <rth@redhat.com>
2195 * eh_cpp.c: New file.
2196 * Makefile.am (libitm_la_SOURCES): Add it.
2197 * Makefile.in: Rebuild.
2198 * beginend.c (GTM_rollback_transaction): Undo exception state.
2199 (GTM_trycommit_transaction): Mark inline.
2200 (GTM_trycommit_and_finalize_transaction): Split out from ...
2201 (_ITM_commitTransaction): ... here.
2202 (_ITM_commitTransactionEH): New function.
2203 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2204 cxa_unthrown, eh_in_flight; reorder.
2206 * testsuite/libitm.c++/c++.exp: New.
2207 * testsuite/libitm.c++/eh-1.C: New.
2209 * aatree.c (aa_free): Remove REGPARM.
2210 * aatree.h: Remove all REGPARM.
2212 2009-07-18 Richard Henderson <rth@redhat.com>
2214 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2215 * Makefile.am (libitm_la_SOURCES): Add them.
2216 * Makefile.in: Rebuild.
2217 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2218 (GTM_trycommit_transaction): Likewise.
2219 * libitm.h: Include aatree.h
2220 (struct gtm_alloc_action): New.
2221 (struct gtm_transaction): Add alloc_actions.
2222 (GTM_record_allocation, GTM_forget_allocation): Declare.
2223 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2224 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2225 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2226 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2227 _ZGTtdaPvRKSt9nothrow_t): Export.
2229 2009-07-18 Richard Henderson <rth@redhat.com>
2231 * target_tls.h: Move ...
2232 * config/posix/target_tls.h: ... here.
2234 2009-07-07 Richard Henderson <rth@redhat.com>
2236 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2238 2009-07-07 Richard Henderson <rth@redhat.com>
2242 2009-07-07 Richard Henderson <rth@redhat.com>
2244 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2245 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2247 * configure.tgt: Don't use -ftls-model for x86 linux.
2248 * libitm.h: Include target.h after standard includes.
2249 (_gtm_thr): Rename from gtm_thr.
2250 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2251 (gtm_disp, set_gtm_disp): New.
2252 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2253 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2254 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2256 2009-07-07 Richard Henderson <rth@redhat.com>
2258 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2260 2009-07-06 Richard Henderson <rth@redhat.com>
2262 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2263 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2264 (_ITM_beginTransaction): Take variadic arguments.
2265 (_ITM_registerThrownObject): Declare.
2266 * beginend.c, serial.c: Update.
2267 * libitm.map: Add _ITM_registerThrownObject.
2269 2009-01-28 Richard Henderson <rth@redhat.com>
2271 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2272 * Makefile.in: Rebuild.
2273 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2274 (GTM_restart_transaction): Fix uninstrumented code check.
2275 * retry.c (GTM_decide_retry_strategy): Add serial check.
2276 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2277 automatically go irrevokable when in serial mode.
2278 * clone.c: New file.
2279 * libitm.h, libitm.map: Update.
2281 2009-01-27 Richard Henderson <rth@redhat.com>
2283 * Makefile.am (LTCCASCOMPILE): Define.
2284 (libitm_la_SOURCES): Add methid-wbetl.c.
2285 * testsuite/Makefile.am: New
2286 * configure.ac: Add testsuite/Makefile.
2287 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2288 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2289 (_ITM_abortTransaction): Finalize implementation method; pass
2290 transaction properties to longjmp.
2291 (GTM_restart_transaction): Split out from ...
2292 (_ITM_commitTransaction): ... here.
2293 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2294 Move to config/x86/target.h.
2295 * config/linux/alpha/futex_bits.h: New.
2296 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2297 * config/x86/target.h: Disable target types for 32-bit.
2298 * config/alpha/sjlj.S, config/alpha/target.h: New.
2299 * libitm.h (struct gtm_dispatch): Add init, fini.
2300 (enum restart_reason): New.
2301 (struct gtm_transaction): Add method and restarts.
2302 * retry.c (GTM_decide_retry_strategy): Implement.
2303 * serial.c (serial_init, serial_fini): New.
2304 (GTM_serialmode): Finialize outgoing method.
2305 * method-wbetl.c: New.
2307 2008-12-09 Richard Henderson <rth@redhat.com>
2309 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2310 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2311 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2312 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2313 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2314 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2315 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2316 * serial.c (serial_R##T, serial_W##T): Likewise.
2318 2008-11-21 Richard Henderson <rth@redhat.com>
2322 Copyright (C) 2008-2022 Free Software Foundation, Inc.
2324 Copying and distribution of this file, with or without modification,
2325 are permitted in any medium without royalty provided the copyright
2326 notice and this notice are preserved.