1 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
5 2022-02-03 David Seifert <soap@gentoo.org>
6 Jakub Jelinek <jakub@redhat.com>
8 * configure.ac: Support --disable-werror.
9 * configure: Regenerate.
11 2022-01-31 Martin Liska <mliska@suse.cz>
13 * acinclude.m4: Detect *_ld_is_mold and use it.
14 * configure: Regenerate.
16 2022-01-03 Jakub Jelinek <jakub@redhat.com>
18 * libitm.texi: Bump @copying's copyright year.
20 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
22 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
23 target does not support HAVE_ELF_STYLE_WEAKREF then do not
24 try to test the __cxa_get_globals against NULL.
26 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
29 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
31 2021-01-15 Jakub Jelinek <jakub@redhat.com>
34 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
35 be added through preprocessor check on
36 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
38 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
40 * configure: Re-generate.
42 2021-01-01 Jakub Jelinek <jakub@redhat.com>
44 * libitm.texi: Bump @copying's copyright year.
46 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
49 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
50 * configure: Regenerate.
52 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
54 * configure: Regenerate.
56 2020-10-01 Alan Modra <amodra@gmail.com>
58 * config/powerpc/sjlj.S: Support __PCREL__ code.
60 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
62 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
64 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
66 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
67 and add BTI c to function entries.
69 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
71 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
73 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
76 * configure: Regenerated.
78 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
81 * configure: Regenerated.
83 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
85 * configure: Regenerated.
87 2020-05-12 Nathan Sidwell <nathan@acm.org>
89 Fix throw specifiers on interface.
90 * libitm/libitm.h (_ITM_NOTHROW): Define.
91 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
92 (_ITM_cxa_begin_catch): Use it.
93 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
94 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
96 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
97 (_ITM_cxa_begin_catch): Likewise.
99 2020-05-05 Nathan Sidwell <nathan@acm.org>
101 * testsuite/lib/libitm.exp (libitm_init): Add
102 -fdiagnostics-color=never to options.
104 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
109 * configure: Regenerated.
111 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
113 * configure.ac: Handle `--with-toolexeclibdir='.
114 * Makefile.in: Regenerate.
115 * aclocal.m4: Regenerate.
116 * configure: Regenerate.
117 * testsuite/Makefile.in: Regenerate.
119 2020-01-01 Jakub Jelinek <jakub@redhat.com>
121 Update copyright years.
123 * libitm.texi: Bump @copying's copyright year.
125 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
128 * configure.tgt: Avoid IE tls on *-*-musl*.
130 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
132 * configure: Regenerate.
134 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
136 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
138 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
140 * configure.tgt: Handle *-*-uclinux*.
141 * configure: Regenerate.
143 2019-09-06 Florian Weimer <fweimer@redhat.com>
145 * configure: Regenerate.
147 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
150 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
151 scanning to conform to the GNU Coding Standards.
152 * configure: Regenerate.
154 2019-05-03 Jakub Jelinek <jakub@redhat.com>
156 * Makefile.am (finclude): Remove.
157 * Makefile.in: Regenerated.
159 2019-01-01 Jakub Jelinek <jakub@redhat.com>
161 Update copyright years.
163 2019-01-01 Jakub Jelinek <jakub@redhat.com>
165 * libitm.texi: Bump @copying's copyright year.
167 2018-12-16 Jakub Jelinek <jakub@redhat.com>
170 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
171 void * to void (*) (void *).
172 (_ITM_cxa_throw): Likewise.
173 * libitm.h (_ITM_cxa_throw): Likewise.
174 * libitm.texi (_ITM_cxa_throw): Likewise.
176 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
178 * config/powerpc/target.h (htm_available): Add support for
179 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
181 2018-10-31 Joseph Myers <joseph@codesourcery.com>
184 * Makefile.am: Include multilib.am.
185 (AUTOMAKE_OPTIONS): Add info-in-builddir.
186 (CLEANFILES): Remove libitm.info.
187 * configure.ac: Remove AC_PREREQ.
188 * testsuite/Makefile.am (RUNTEST): Remove quotes.
189 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
192 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
195 * method-serial.cc: Mark varible as potentially unused
198 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
200 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
201 absolute relocation in a shared library.
203 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
206 * config/linux/x86/tls.h (SEG_READ): Use the offset of
207 __private_tm as base.
208 (SEG_WRITE): Likewise.
209 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
210 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
211 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
212 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
213 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
215 2018-05-17 Jason Merrill <jason@redhat.com>
217 * beginend.cc (save): Disable -Werror=deprecated-copy.
219 2018-05-02 Tom de Vries <tom@codesourcery.com>
222 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
224 2018-05-02 Tom de Vries <tom@codesourcery.com>
227 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
229 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
231 * config/x86/sjlj.S (_ITM_beginTransaction): Add
232 (__CET__ & 2) != 0 check for shadow stack.
233 (GTM_longjmp): Likewise.
235 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
237 * configure: Regenerated.
239 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
242 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
244 2018-04-19 Jakub Jelinek <jakub@redhat.com>
246 * configure: Regenerated.
248 2018-04-18 David Malcolm <dmalcolm@redhat.com>
251 * configure: Regenerate.
253 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
256 * configure: Regenerate.
258 2018-01-03 Jakub Jelinek <jakub@redhat.com>
260 Update copyright years.
262 * libitm.texi: Bump @copying's copyright year.
264 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
266 * Makefile.in: Regenerate.
267 * acinclude.m4: Add enable.m4 and cet.m4.
268 * config/x86/sjlj.S: Include cet.h.
269 (_ITM_beginTransaction): Add _CET_ENDBR.
270 Save Shadow Stack pointer.
271 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
272 * config/x86/target.h (struct gtm_jmpbuf):
273 Add new field for Shadow Stack pointer.
274 * configure: Regenerate.
275 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
276 * configure.ac: Update libtool_VERSION for x86.
277 * testsuite/Makefile.in: Regenerate.
279 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
281 * libitm/config/x86/target.h: Add new field (ssp).
282 * libitm/config/x86/sjlj.S: Change offsets.
284 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286 * testsuite/lib/libitm.exp: Load scanlang.exp.
288 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
290 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
292 2017-01-21 Jakub Jelinek <jakub@redhat.com>
295 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
296 of cat to get version from BASE-VER file.
297 * testsuite/Makefile.in: Regenerated.
299 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
301 * config/x86/target.h (htm_available): Determine vendor from
302 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
304 2017-01-18 Torvald Riegel <triegel@redhat.com>
306 * config/x86/target.h (htm_available): Add check for some processors
307 on which TSX is broken.
309 2017-01-17 Jakub Jelinek <jakub@redhat.com>
312 * configure.ac: Add GCC_BASE_VER.
313 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
314 get version from BASE-VER file.
315 * testsuite/Makefile.in: Regenerated.
316 * configure: Regenerated.
317 * Makefile.in: Regenerated.
319 2017-01-04 Alan Modra <amodra@gmail.com>
321 * Makefile.in: Regenerate.
322 * testsuite/Makefile.in: Regenerate.
324 2017-01-01 Jakub Jelinek <jakub@redhat.com>
326 Update copyright years.
328 * libitm.texi: Bump @copying's copyright year.
330 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
332 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
333 * aclocal.m4: Regenerate.
334 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
335 LIBITM_CHECK_LINKER_HWCAP.
337 2016-11-15 Matthias Klose <doko@ubuntu.com>
339 * configure: Regenerate.
341 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
344 * util.cc (xmalloc): Use posix_memalign to allocate memory on
345 on cache line if requested.
347 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
349 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
350 function attribute to disable floating point in begin_transaction() on
352 * beginend.cc (begin_transaction): Use
353 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
355 2016-01-22 Torvald Riegel <triegel@redhat.com>
357 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
359 (htm_fastpath): Remove.
360 (gtm_thread::begin_transaction): Fix HTM fastpath.
361 (_ITM_commitTransaction): Adapt.
362 (_ITM_commitTransactionEH): Adapt.
363 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
365 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
366 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
367 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
368 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
369 * libitm/method-serial.cc (htm_mg): Adapt.
370 (gtm_thread::serialirr_mode): Adapt.
371 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
373 2016-01-21 Torvald Riegel <triegel@redhat.com>
375 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
378 2016-01-19 Richard Henderson <rth@redhat.com>
383 2016-01-13 Richard Henderson <rth@redhat.com>
385 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
386 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
387 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
388 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
389 * configure.ac (ARCH_AARCH64): New conditional.
390 (ARCH_PPC, ARCH_S390): Likewise.
391 * Makefile.in, configure: Rebuild.
393 * libitm.h (_ITM_TYPE_M128): Always define.
394 * vect64.cc: Split ...
395 * vect128.cc: ... out of...
396 * config/x86/x86_sse.cc: ... here.
397 * config/arm/neon.cc: New file.
399 2016-01-19 Torvald Riegel <triegel@redhat.com>
401 * local_type_traits: Remove file.
402 * libitm_i.h: Don't include it anymore.
403 (sized_integral): Remove.
405 2016-01-16 Torvald Riegel <triegel@redhat.com>
407 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
409 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
410 * libitm/testsuite/libitm.c/priv-1.c: New.
412 2015-01-15 Torvald Riegel <triegel@redhat.com>
414 testsuite/libitm.c++/libstdc++-safeexc.C: New.
416 2016-01-13 Torvald Riegel <triegel@redhat.com>
418 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
419 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
420 (gtm_rwlock::write_unlock): Likewise.
422 2016-01-13 Richard Henderson <rth@redhat.com>
424 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
425 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
426 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
427 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
428 * configure.ac (ARCH_AARCH64): New conditional.
429 (ARCH_PPC, ARCH_S390): Likewise.
430 * Makefile.in, configure: Rebuild.
432 * libitm.h (_ITM_TYPE_M128): Always define.
433 * vect64.cc: Split ...
434 * vect128.cc: ... out of...
435 * config/x86/x86_sse.cc: ... here.
436 * config/arm/neon.cc: New file.
438 2016-01-13 Torvald Riegel <triegel@redhat.com>
440 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
441 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
442 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
443 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
444 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
445 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
446 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
447 (serialirr_dispatch::snapshot_most_recent): New.
448 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
450 2016-01-12 Torvald Riegel <triegel@redhat.com>
452 * libitm_i.h (gtm_mask_stack): Remove.
453 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
454 * stmlock.h: Remove file.
455 * config/alpha/cacheline.h: Likewise.
456 * config/generic/cacheline.h: Likewise.
457 * config/powerpc/cacheline.h: Likewise.
458 * config/sparc/cacheline.h: Likewise.
459 * config/x86/cacheline.h: Likewise.
461 2016-01-04 Jakub Jelinek <jakub@redhat.com>
463 Update copyright years.
465 * libitm.texi: Bump @copying's copyright year.
467 2015-11-26 Torvald Riegel <triegel@redhat.com>
469 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
470 (ml_wt_dispatch::pre_write): Adapt.
471 (ml_wt_dispatch::pre_load): Likewise.
473 2015-11-22 Torvald Riegel <triegel@redhat.com>
475 * libitm_i.h (gtm_alloc_action): Remove union.
476 * testsuite/libitm.c/alloc-1.c: New.
478 2015-11-19 Torvald Riegel <triegel@redhat.com>
480 * testsuite/libitm.c++/eh-5.C: New.
481 * libitm.h (_ITM_cxa_free_exception): New.
482 * libitm.map (_ITM_cxa_free_exception): Add it.
483 * libitm.texi: Update ABI docs.
484 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
485 (gtm_transaction_cp::cxa_uncaught_count): Add.
486 (gtm_thread::cxa_unthrown): Remove.
487 (gtm_thread::cxa_uncaught_count_ptr): Add.
488 (gtm_thread::cxa_uncaught_count): Add.
489 (gtm_thread::drop_references_allocations): Rename to...
490 (gtm_thread::discard_allocation): ... this and adapt.
491 (gtm_thread::init_cpp_exceptions): New.
492 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
493 (gtm_thread::begin_transaction): Likewise.
494 (gtm_transaction_cp::save): Likewise.
495 (gtm_thread::trycommit): Likewise.
496 * eh_cpp.cc: Add overview comments.
497 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
498 (free_any_exception, _ITM_cxa_free_exception): New.
499 (gtm_thread::init_cpp_exceptions): Define.
500 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
501 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
502 (gtm_thread::revert_cpp_exceptions): Likewise.
504 2015-11-09 Torvald Riegel <triegel@redhat.com>
506 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
507 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
508 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
509 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
510 (gtm_thread::forget_allocations): New overload with size_t argument.
511 * alloc.c (gtm_thread::forget_allocation): Define new overload and
513 (gtm_thread::record_allocation): Adapt.
514 (gtm_thread::commit_allocations_1): Adapt.
515 (gtm_thread::commit_allocations_2): Adapt.
516 * testsuite/libitm.c++/newdelete.C: New.
518 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
519 Joseph Myers <joseph@codesourcery.com>
520 Mark Shinwell <shinwell@codesourcery.com>
521 Andrew Stubbs <ams@codesourcery.com>
522 Rich Felker <dalias@libc.org>
524 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
525 GTM_begin_transaction for compatibility with FDPIC.
527 2015-10-09 David Malcolm <dmalcolm@redhat.com>
529 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
532 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
535 * local_atomic (__always_inline): Rename to...
536 (__libitm_always_inline): ... this.
538 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
541 * config/powerpc/sjlj.S: Port to Xcode 2.5.
543 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
545 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
546 operands "op" and "val" to int.
548 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
550 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
551 "op" and "val" to int.
553 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
555 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
556 "op" and "val" to int.
558 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
560 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
561 Declare as static int.
562 (FUTEX_PRIVATE_FLAG): Remove L suffix.
563 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
565 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
567 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
570 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
572 * Makefile.in: Regenerated with automake-1.11.6.
573 * aclocal.m4: Likewise.
574 * configure: Likewise.
575 * testsuite/Makefile.in: Likewise.
577 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
579 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
580 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
582 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
585 * libitm.c/stackundo.c (test2): Make it static.
588 2015-01-05 Jakub Jelinek <jakub@redhat.com>
590 Update copyright years.
592 2015-01-05 Jakub Jelinek <jakub@redhat.com>
594 * libitm.texi: Bump @copying's copyright year.
596 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
598 * testsuite/lib/libitm.exp: Load target-utils.exp.
599 Move load of target-supports.exp earlier.
601 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
603 * configure.tgt (x86_64): Tune -m32 multilib to generic.
605 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
608 * configure: Regenerated.
610 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
613 * configure: Regenerate.
615 2014-10-06 Marek Polacek <polacek@redhat.com>
617 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
618 * testsuite/libitm.c/memset-1.c: Likewise.
620 2014-07-24 Richard Henderson <rth@redhat.com>
622 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
623 addressing mode in epilogue.
625 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
628 -mclear-hwcap instead.
629 * configure: Regenerate.
630 * clearcap.map: Remove.
632 2014-05-21 John Marino <gnugcc@marino.st>
634 * configure.tgt (*-*-dragonfly*): New target.
636 2014-05-19 Richard Henderson <rth@redhat.com>
638 * config/aarch64/sjlj.S: New file.
639 * config/aarch64/target.h: New file.
640 * configure.tgt: Enable aarch64.
642 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644 * config/generic/asmcfi.h: Also check for
645 __GCC_HAVE_DWARF2_CFI_ASM.
647 2013-04-02 Richard Henderson <rth@redhat.com>
649 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
650 * config/arm/target.h, config/sh/target.h: Likewise.
651 * config/sparc/target.h, config/x86/target.h: Likewise.
653 2014-03-26 Jakub Jelinek <jakub@redhat.com>
655 * config/linux/futex_bits.h: Include errno.h.
656 (sys_futex0): If syscall returns -1, return -errno rather than
659 2014-03-26 Joseph Myers <joseph@codesourcery.com>
661 * libitm.texi (Index): Rename to Library Index.
663 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
666 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
667 (x86_avx.lo): Append -mavx to CXXFLAGS.
668 * Makefile.in: Regenerate.
670 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
672 Update copyright years
674 2014-01-02 Tobias Burnus <burnus@net-b.de>
676 * libitm.texi: Bump @copying's copyright year.
678 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
680 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
681 (FUNC): Define ELFv2 variant.
688 2013-09-20 Alan Modra <amodra@gmail.com>
690 * configure: Regenerate.
692 2013-08-30 Torvald Riegel <triegel@redhat.com>
694 * config/posix/rwlock.cc: Fix initialization order.
696 2013-08-30 Torvald Riegel <triegel@redhat.com>
698 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
699 (htm_fastpath): Assign an asm name.
700 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
702 (_ITM_actions): Likewise.
703 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
705 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
706 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
707 field to the start of the structure.
708 * config/linux/rwlock.h (gtm_rwlock): Update comments.
709 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
710 handling for custom HTM fast paths.
712 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
714 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
716 * configure.tgt: Add -msoft-float to XCFLAGS.
718 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
720 * configure.tgt: Add -msoft-float to XCFLAGS.
722 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
724 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
725 (htm_transaction_active): Enable zEC12 instructions in the
727 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
729 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
731 * acinclude.m4: Add htm asm check for s390.
732 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
733 * configure: Regenerate.
734 * config/s390/target.h: Remove __HTM__ check.
735 (htm_available): Call getauxval to get hwcaps and check whether
736 HTM is available or not.
738 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
740 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
741 * configure.ac: Use it.
742 (AC_CHECK_HEADERS): Check for sys/auxv.h.
743 (AC_CHECK_FUNCS): Check for getauxval.
744 * config.h.in, configure: Rebuild.
745 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
746 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
747 (USE_HTM_FASTPATH): Define.
748 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
749 _HTM_RETRIES) New macros.
750 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
751 htm_begin_success, htm_commit, htm_transaction_active): New functions.
753 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
755 * config/s390/target.h: Include htmintrin.h.
756 (_HTM_ITM_RETRIES): New macro definition.
757 (htm_available, htm_init, htm_begin, htm_begin_success)
758 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
760 2013-06-20 Iain Sandoe <iain@codesourcery.com>
761 Cesar Philippidis <cesar@codesourcery.com>
763 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
764 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
765 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
766 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
768 2013-06-20 Torvald Riegel <triegel@redhat.com>
770 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
771 (_ITM_getTransactionId): Same.
772 * config/x86/target.h (htm_transaction_active): New.
774 2013-06-20 Torvald Riegel <triegel@redhat.com>
777 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
780 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
783 * local_atomic (__always_inline): Always define our version.
784 (__calculate_memory_order): Mark inline.
785 (atomic_thread_fence): Ditto.
786 (atomic_signal_fence): Ditto.
787 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
788 (atomic_bool::atomic_flag_clear_explicit): Ditto.
789 (atomic_bool::atomic_flag_test_and_set): Ditto.
790 (atomic_bool::atomic_flag_clear): Ditto.
792 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
794 * config/s390/sjlj.S: New file.
795 * config/s390/target.h: New file.
796 * configure.tgt: Set options for S/390.
798 2013-03-23 Andi Kleen <ak@linux.intel.com>
800 * local_atomic (__always_inline): Add.
801 (__calculate_memory_order, atomic_thread_fence,
802 atomic_signal_fence, test_and_set, clear, store, load,
803 exchange, compare_exchange_weak, compare_exchange_strong,
804 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
805 Add __always_inline to force inlining.
807 2013-02-11 Iain Sandoe <iain@codesourcery.com>
808 Jack Howarth <howarth@bromo.med.uc.edu>
809 Patrick Marlier <patrick.marlier@gmail.com>
812 * alloc_cpp.cc: Enable function declarations on darwin.
813 * eh_cpp.cc: Likewise.
815 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
817 Update copyright years.
819 2012-11-09 Torvald Riegel <triegel@redhat.com>
821 * beginend.cc (htm_fastpath): New.
822 (gtm_thread::begin_transaction, _ITM_commitTransaction,
823 _ITM_commitTransactionEH): Add HTM fastpath handling.
824 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
825 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
826 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
827 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
828 * configure.tgt: Add -mrtm to XCFLAGS.
829 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
830 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
831 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
832 * retry.cc (parse_default_method): Add HTM method parsing.
833 (gtm_thread::number_of_threads_changed): Use HTM by default if
836 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
838 * configure: Regenerate.
840 2012-10-31 Richard Henderson <rth@redhat.com>
842 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
843 * configure.ac: Use it.
844 * config.h.in, configure: Rebuild.
845 * testsuite/Makefile.in: Rebuild.
847 2012-10-24 Torvald Riegel <triegel@redhat.com>
849 * libitm.texi: Clarify ABI requirements for data-logging functions.
851 2012-10-24 Torvald Riegel <triegel@redhat.com>
853 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
854 it requires serial mode instead of assuming that for certain
856 * dispatch.h (abi_dispatch::requires_serial): New.
857 (abi_dispatch::abi_dispatch): Adapt.
858 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
859 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
860 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
861 serial_dispatch::serial_dispatch,
862 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
864 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
866 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
867 and ia32 declarations some more.
868 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
870 2012-09-20 Jakub Jelinek <jakub@redhat.com>
873 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
874 * configure: Regenerate.
875 * Makefile.in: Regenerate.
877 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
879 * configure: Regenerated.
881 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
883 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
885 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
887 * eh_cpp.cc: Fix __cxa_end_catch declaration.
889 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
891 * configure: Regenerated.
893 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
896 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
899 2012-04-03 Tristan Gingold <gingold@adacore.com>
901 * configure: Regenerate.
903 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
906 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
908 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
910 * testsuite/lib/libitm.exp: load fortran-modules.exp
912 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
914 * configure.tgt (*-*-irix6*): Remove.
916 2012-03-13 Torvald Riegel <triegel@redhat.com>
919 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
922 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
924 * configure.tgt (*-*-osf*): Remove.
925 * configure: Regenerate.
927 2012-03-05 Torvald Riegel <triegel@redhat.com>
929 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
930 memtransfer/memset if size isn't larger than zero.
932 2012-03-02 Torvald Riegel <triegel@redhat.com>
934 * libitm.texi: Link to specification and add a usage example.
936 2012-02-24 Torvald Riegel <triegel@redhat.com>
938 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
939 default dispatch for more than 1 thread to ml_wt.
941 2012-02-20 Torvald Riegel <triegel@redhat.com>
943 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
945 2012-02-20 Torvald Riegel <triegel@redhat.com>
947 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
949 2012-02-20 Torvald Riegel <triegel@redhat.com>
951 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
952 serial mode corner cases made obsolete by prior gtm_rwlock changes.
953 (gl_wt_dispatch.rollback): Same.
955 2012-02-20 Torvald Riegel <triegel@redhat.com>
957 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
959 2012-02-20 Torvald Riegel <triegel@redhat.com>
961 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
962 for RfW src. Optimize number of calls to gtm_thr.
964 2012-02-20 Torvald Riegel <triegel@redhat.com>
966 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
968 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
969 (default_dispatch): Make atomic.
970 (GTM::gtm_thread::set_default_dispatch): Access atomically.
971 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
972 use decide_begin_dispatch() if default_dispatch might have changed.
973 (GTM::gtm_thread::number_of_threads_changed): Initialize
974 default_dispatch here.
976 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
977 Patrick Marlier <patrick.marlier@gmail.com>
980 * alloc_cpp.cc: No dummy definitions for darwin.
981 * eh_cpp.cc: Likewise.
983 2012-02-14 Richard Henderson <rth@redhat.com>
985 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
987 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
989 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
991 2012-02-14 Torvald Riegel <triegel@redhat.com>
993 * libitm_i.h (GTM::gtm_rwlog_entry): New.
994 (GTM::gtm_thread): Add read and write logs.
995 (GTM::dispatch_ml_wt): Declare.
996 * retry.cc (parse_default_method): Support ml_wt.
997 * method-ml.cc: New file.
998 * Makefile.am: Add method-ml.cc.
999 * Makefile.in: Regenerate.
1001 2012-02-14 Torvald Riegel <triegel@redhat.com>
1003 * dispatch.h (GTM::abi_dispatch::supports): New.
1004 (GTM::method_group::reinit): New.
1005 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1006 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1007 supports the current situation.
1009 2012-02-14 Torvald Riegel <triegel@redhat.com>
1011 * util.cc (GTM::xcalloc): New.
1012 * common.h (GTM::xcalloc): Declare.
1014 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1016 * config/sparc/target.h (cpu_relax): Read from CC register.
1017 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1019 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1021 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1023 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1025 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1026 * config/sparc/cacheline.h: New file.
1027 * config/sparc/target.h: Likewise.
1028 * config/sparc/sjlj.S: Likewise.
1029 * config/linux/sparc/futex_bits.h: Likewise.
1031 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1033 * configure.ac (link_itm): Fix comment.
1034 * configure: Regenerate.
1035 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1037 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1040 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1041 Correct libgomp references.
1043 2012-01-24 Torvald Riegel <triegel@redhat.com>
1045 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1048 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1050 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1052 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1053 offset values. Do not copy return address. Decrement stack
1055 (GTM_longjump) [__x86_64__]: Update offset values.
1057 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1060 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1061 the first function argument to %eax.
1063 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065 * libitm.h (_ITM_getThreadnum): Remove.
1066 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1068 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1070 * clearcap.map: New file.
1071 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1072 * configure.ac: Call it.
1073 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1074 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1075 * configure: Regenerate.
1076 * Makefile.in: Regenerate.
1077 * testsuite/Makefile.in: Regenerate.
1079 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1082 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1083 include, exclude options.
1085 2012-01-14 Torvald Riegel <triegel@redhat.com>
1087 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1089 * containers.h (GTM::vector::set_size): New.
1091 2012-01-14 Torvald Riegel <triegel@redhat.com>
1094 * config/generic/tls.h (GTM::mask_stack_top): New.
1095 (GTM::mask_stack_bottom): Declare.
1096 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1097 * local.cc (gtm_undolog::rollback): Filter out any updates that
1098 overlap the libitm stack. Add current transaction as parameter.
1099 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1100 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1101 * testsuite/libitm.c/stackundo.c: New test.
1103 2012-01-10 Richard Henderson <rth@redhat.com>
1105 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1106 * eh_cpp.cc (_Unwind_DeleteException): Define for
1107 !HAVE_ELF_STYLE_WEAKREF.
1109 2012-01-08 Torvald Riegel <triegel@redhat.com>
1111 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1112 (GTM::gtm_thread::drop_references_undolog): Remove.
1113 (GTM::gtm_thread::commit_undolog,
1114 GTM::gtm_thread::rollback_undolog): Move to ...
1115 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1116 (GTM::gtm_undolog_entry): Remove.
1117 (GTM::gtm_thread): Adapt.
1118 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1119 (GTM::gtm_thread::trycommit): Adapt.
1120 * method-serial.cc (serial_dispatch::log): Adapt.
1121 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1122 (gl_wt_dispatch::store): Fix likely/unlikely.
1123 * containers.h (GTM::vector::resize): Add additional_capacity
1124 parameter and handle it.
1125 (GTM::vector::resize_noinline): New/adapt.
1126 (GTM::vector::push): New.
1128 2012-01-06 Richard Henderson <rth@redhat.com>
1130 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1131 * config/linux/powerpc/futex_bits.h: New file.
1132 * config/powerpc/cacheline.h: New file.
1133 * config/powerpc/sjlj.S: New file.
1134 * config/powerpc/target.h: New file.
1135 * config/generic/asmcfi.h (cfi_offset): New.
1136 (cfi_restore, cfi_undefined): New.
1138 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1141 * testsuite/libitm.c/reentrant.c: Remove xfail.
1142 (thread): Pass x to pure().
1143 From Patrik Marlier <patrick.marlier@gmail.com>.
1145 2011-12-24 Torvald Riegel <triegel@redhat.com>
1147 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1148 privatization safety if already in serial mode.
1150 2011-12-24 Torvald Riegel <triegel@redhat.com>
1152 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1153 finish_serial_upgrade parameter.
1154 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1155 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1156 Don't unset reader flag.
1157 (GTM::gtm_rwlock::write_upgrade_finish): New.
1158 * config/posix/rwlock.cc: Same.
1159 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1161 * config/posix/rwlock.h: Same.
1162 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1163 flag after commit or after rollback when restarting.
1165 2011-12-24 Torvald Riegel <triegel@redhat.com>
1167 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1168 (GTM::gtm_thread::try_commit): Changed memory order.
1169 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1171 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1172 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1173 * config/linux/futex_bits.h (sys_futex0): Same.
1174 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1175 * config/linux/futex.h (futex_wait, futex_wake): Same.
1176 * config/linux/rwlock.h (gtm_rwlock::writers,
1177 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1179 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1180 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1181 gtm_rwlock::write_unlock): Fix memory orders and fences.
1182 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1183 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1184 gtm_rwlock::write_unlock): Same.
1185 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1186 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1187 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1189 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1190 gl_wt_dispatch::load, gl_wt_dispatch::store,
1191 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1192 orders and fences. Add comments.
1194 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1196 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1197 * Makefile.in: Regenerated.
1199 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1201 * configure.tgt: Add sh* case.
1202 * config/sh/target.h: New file.
1203 * config/sh/sjlj.S: New file.
1204 * config/linux/sh/futex_bits.h: New file.
1206 2011-12-14 Richard Henderson <rth@redhat.com>
1208 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1209 * config/arm/sjlj.S, config/arm/target.h: New files.
1210 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1211 (cfi_rel_offset): New.
1212 * config/linux/futex_bits.h: New file.
1213 * config/linux/futex.cc: Include futex_bits.h here...
1214 * config/linux/futex.h: ... not here.
1215 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1216 * configure.ac (ARCH_AM): New conditional.
1217 * Makefile.in, configure: Rebuild.
1218 * configure.tgt: Handle ARM.
1220 2011-12-13 Richard Henderson <rth@redhat.com>
1222 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1223 signed/unsigned comparison werror.
1225 * local_atomic: New file.
1226 * libitm_i.h: Include it.
1227 (gtm_thread::shared_state): Use atomic template.
1228 * beginend.cc (GTM::gtm_clock): Use atomic template.
1229 (global_tid): Use atomic template if 64-bit atomics available.
1230 (gtm_thread::gtm_thread): Update shared_state access.
1231 (gtm_thread::trycommit): Likewise.
1232 (choose_code_path): Update global_tid access.
1233 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1234 * stmlock.h (GTM::gtm_clock): Use atomic template.
1235 (gtm_get_clock, gtm_inc_clock): Update accesses.
1236 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1237 redundant __sync_synchronize after atomic shared_state access.
1238 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1239 (gtm_rwlock::write_lock_generic): Likewise.
1240 (gtm_rwlock::read_unlock): Likewise.
1241 * config/alpha/target.h (atomic_read_barrier): Remove.
1242 (atomic_write_barrier): Remove.
1243 * config/x86/target.h (atomic_read_barrier): Remove.
1244 (atomic_write_barrier): Remove.
1246 2011-11-30 Richard Henderson <rth@redhat.com>
1248 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1249 * beginend.c (_ITM_abortTransaction): Update to match.
1250 (GTM::gtm_thread::restart): Likewise.
1251 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1252 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1254 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1256 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1257 * Makefile.in: Regenerate.
1259 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1261 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1262 * alloc_cpp.cc: Generate dummy functions if we don't
1263 HAVE_ELF_STYLE_WEAKREF.
1264 * eh_cpp.cc: Likewise.
1265 * configure: Regenerate.
1266 * aclocal.m4: Likewise.
1267 * config.h.in: Likewise.
1268 * Makefile.in: Likewise.
1269 * testsuite/Makefile.in: Likewise.
1271 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1273 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1274 __USER_LABEL_PREFIX__ for targets that use it.
1275 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1276 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1277 in portability to non-elf targets.
1278 (GTM_longjmp): Likewise.
1279 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1282 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1284 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1285 * testsuite/libitm.c/memset-1.c: Likewise.
1287 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1289 * configure: Regenerate.
1291 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1294 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1295 * Makefile.am: Handle sun style versioning.
1296 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1297 * configure: Regenerate.
1298 * Makefile.in: Regenerate.
1300 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1302 * config/generic/asmcfi.h: Fix comment.
1303 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1304 sequence without .hidden support, error for non-ELF targets.
1305 (GTM_longjmp) [__ELF__]: Only use .hidden if
1306 HAVE_ATTRIBUTE_VISIBILITY.
1308 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1310 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1311 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1313 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1314 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1316 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1319 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1320 * configure: Regenerate.
1322 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1324 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1326 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1328 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1330 (.note.GNU-stack): Only use if __linux__.
1331 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1332 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1333 * testsuite/libitm.c/reentrant.c: Likewise.
1334 * testsuite/libitm.c/simple-2.c: Likewise.
1335 * testsuite/libitm.c/txrelease.c: Likewise.
1336 * testsuite/libitm.c++/static_ctor.C: Likewise.
1338 2011-11-10 Richard Henderson <rth@redhat.com>
1340 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1341 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1342 * configure.ac (ARCH_X86_AVX): New conditional.
1343 * Makefile.in, configure: Rebuild.
1345 2011-11-09 Richard Henderson <rth@redhat.com>
1347 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1348 * configure.ac: Use it.
1349 * config.h.in, configure: Rebuild.
1350 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1352 2011-11-09 Richard Henderson <rth@redhat.com>
1354 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1355 * config/alpha/unaligned.h: Remove file.
1356 * config/generic/unaligned.h: Remove file.
1357 * config/x86/unaligned.h: Remove file.
1358 * config/generic/cachepage.h: Remove file.
1359 * config/posix/cachepage.cc: Remove file.
1360 * config/generic/cacheline.cc: Remove file.
1361 * config/x86/cacheline.cc: Remove file.
1362 * config/generic/cacheline.h (gtm_cacheline): Remove the
1363 store_mask, copy_mask, copy_mask_wb methods.
1364 * config/x86/cacheline.h: Likewise.
1365 * config/alpha/cacheline.h: Fall back to generic after setting size.
1366 * config/generic/tls.cc (gtm_mask_stack): Remove.
1367 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1368 (GTM_vpalignr_table): Remove.
1369 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1370 (GTM_pshift_table): Remove.
1371 * config/libitm_i.h: Don't include cachepage.h.
1372 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1373 * Makefile.in, testsuite/Makefile.in: Rebuild.
1375 2011-11-09 Richard Henderson <rth@redhat.com>
1377 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1378 to emit branch prediction hint.
1380 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1381 Protect .note.GNU-stack with __linux__.
1383 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1384 * configure, aclocal.m4, config.h.in: Rebuild.
1385 * config/generic/asmcfi.h: New file.
1386 * config/x86/sjlj.S: Use it.
1388 2011-11-08 Richard Henderson <rth@redhat.com>
1390 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1392 2011-11-08 Richard Henderson <rth@redhat.com>
1394 * configure.tgt: Test correct directory for supported cpus.
1396 * configure.ac: Exit if unsupported.
1397 * configure: Rebuild.
1398 * configure.tgt: Delete boilerplate from libgomp for unsupported
1399 targets. Set UNSUPPORTED for unsupported targets.
1401 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1403 * configure.tgt: Handle i386 like i[456]86.
1404 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1406 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1407 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1409 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1411 * method-wbetl.cc: Update copyright notice.
1417 * barrier.tpl: Same.
1418 * useraction.cc: Same.
1422 * config/generic/tls.cc: Same.
1423 * config/generic/cacheline.h: Same.
1424 * config/generic/cachepage.h: Same.
1425 * config/generic/cacheline.cc: Same.
1426 * config/generic/unaligned.h: Same.
1427 * config/x86/cacheline.h: Same.
1428 * config/x86/cacheline.cc: Same.
1429 * config/x86/unaligned.h: Same.
1430 * config/alpha/cacheline.h: Same.
1431 * config/alpha/unaligned.h: Same.
1432 * config/alpha/sjlj.S: Same.
1433 * config/posix/cachepage.cc: Same.
1434 * config/linux/futex.h: Same.
1435 * config/linux/alpha/futex_bits.h: Same.
1437 2011-11-04 Torvald Riegel <triegel@redhat.com>
1439 * libitm.texi: No cover text and invariant sections.
1441 2011-11-03 Richard Henderson <rth@redhat.com>
1443 * local_type_traits: New file.
1444 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1446 2011-11-03 Richard Henderson <rth@redhat.com>
1448 * configure.ac: Don't test for gfortran.
1449 * configure: Rebuild.
1451 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1452 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1454 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1456 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1457 * testsuite/libitm.c/memset-1.c: Same.
1458 * testsuite/libitm.c/c.exp: Same.
1459 * testsuite/lib/libitm-dg.exp: Same.
1460 * testsuite/lib/libitm.exp: Same.
1461 * testsuite/libitm.c++/c++.exp: Same.
1463 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1465 * testsuite/config/default.exp: Update copyright date.
1466 * configure.ac: Add copyright info.
1467 * configure.tgt: Same.
1469 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1471 * testsuite/libitm.c/reentrant.c: XFAIL.
1472 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1474 2011-10-29 Torvald Riegel <triegel@redhat.com>
1476 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1478 (_ITM_abortTransaction): Handle aborts of outer transactions.
1480 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1481 * libitm.texi: Document aborts of outer transactions.
1482 * testsuite/libitm.c/cancel.c: New file.
1484 2011-10-19 Torvald Riegel <triegel@redhat.com>
1486 * testsuite/*: Change __transaction to __transaction_atomic or
1487 __transaction_relaxed.
1489 2011-10-19 Torvald Riegel <triegel@redhat.com>
1491 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1494 2011-10-19 Torvald Riegel <triegel@redhat.com>
1496 * libitm_i.h: Add gl_wt dispatch.
1497 * retry.cc (parse_default_method): Same.
1498 * method-gl.cc: New file.
1499 * Makefile.am: Use method-gl.cc.
1500 * Makefile.in: Rebuild.
1502 2011-10-19 Torvald Riegel <triegel@redhat.com>
1504 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1505 safety if requested by a TM method.
1506 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1507 privatization safety.
1508 * method-serial.cc: Same.
1510 2011-10-19 Torvald Riegel <triegel@redhat.com>
1512 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1513 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1514 undolog-related member functions from *_local to *_undolog.
1515 * local.cc (gtm_thread::commit_undolog): Same.
1516 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1517 (GTM::gtm_thread::rollback): Roll back undolog before
1518 dispatch-specific rollback.
1520 2011-10-19 Torvald Riegel <triegel@redhat.com>
1522 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1523 re-initialization of the current method group.
1524 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1526 2011-10-19 Torvald Riegel <triegel@redhat.com>
1528 * alloc.cc (commit_allocations_2): Do not free transaction-local
1529 memory when committing a nested transaction.
1531 2011-10-19 Torvald Riegel <triegel@redhat.com>
1533 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1534 serial-irrevocable dispatch, not serial.
1536 2011-10-19 Torvald Riegel <triegel@redhat.com>
1538 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1540 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1541 * method-serial.cc: Implement begin_or_restart().
1542 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1543 dispatch-specific begin_or_restart().
1544 (GTM::gtm_thread::restart): Same.
1546 2011-08-23 Torvald Riegel <triegel@redhat.com>
1548 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1549 restarting without switching to serial mode.
1550 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1551 transaction state. Choose closed-nesting alternative if available.
1552 (GTM::gtm_thread::set_default_dispatch): New.
1553 (parse_default_method): New.
1554 (GTM::gtm_thread::number_of_threads_changed): New.
1555 * method-serial.cc (GTM::serial_mg): New method group class.
1556 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1558 (GTM::serial_dispatch): Same.
1559 (GTM::serialirr_onwrite_dispatch): Same.
1560 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1561 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1563 (GTM::gtm_thread::gtm_thread): Same.
1564 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1565 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1566 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1567 choose dispatch but set state according to dispatch here.
1568 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1569 (GTM::method_group): New class.
1570 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1571 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1572 * libitm.texi: Document TM methods, method groups, method life cycle.
1573 Rename method sets to method groups.
1575 2011-08-23 Torvald Riegel <triegel@redhat.com>
1577 * config/x86/tls.h: Moved to ...
1578 * config/linux/x86/tls.h: ... here.
1580 2011-08-23 Torvald Riegel <triegel@redhat.com>
1582 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1584 * config/x86/sjlj.S: Same.
1586 2011-08-19 Torvald Riegel <triegel@redhat.com>
1588 * config/linux/rwlock.h: New file.
1589 * config/linux/rwlock.c: New file.
1590 * configure.ac: Reenable futex support (undo SVN rev 157758).
1591 * Makefile.am: Same.
1592 * configure.tgt: Same.
1593 * config/linux/alpha/futex_bits.h: Same.
1594 * config/linux/futex.h: Same. Return number of woken processes.
1595 * config/linux/futex.cc: Same.
1596 (futex_wait): Remove spinning.
1597 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1598 Use __x86_64__ instead of __LP64__.
1599 * aclocal.m4: Include generic futex checks.
1600 * configure: Rebuild.
1601 * Makefile.in: Rebuild.
1602 * testsuite/Makefile.in: Rebuild.
1603 * beginend.cc: Include pthread.h.
1604 * config/posix/cachepage.cc: Same.
1606 2011-08-12 Torvald Riegel <triegel@redhat.com>
1608 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1609 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1611 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1613 (GTM::gtm_thread::thread_num): Removed.
1614 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1615 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1616 tx-to-thread renaming.
1617 * beginend.cc: Adapted to tx-to-thread renaming.
1618 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1619 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1620 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1621 gtm_transaction to gtm_thread.
1622 (_ITM_getThreadnum): Removed. Not supported anymore.
1623 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1624 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1625 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1626 gtm_tx-to-gtm_thr renaming if necessary.
1633 * alloc_cpp.cc: Same.
1634 * method-serial.cc: Same.
1635 * config/generic/tls.cc: Same.
1636 * config/posix/rwlock.h (gtm_rwlock): Same.
1637 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1639 2011-08-12 Torvald Riegel <triegel@redhat.com>
1641 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1643 (gtm_rwlock::read_unlock): Same.
1644 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1645 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1646 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1647 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1648 w_upgrade. Replaced by per-transaction flags (in shared_state).
1649 Added c_confirmed_writers.
1650 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1651 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1652 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1653 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1654 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1655 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1656 * libitm.texi: Document locking conventions and implementations in
1659 2011-08-12 Torvald Riegel <triegel@redhat.com>
1661 * libitm_i.h (next_tx): Add list of all threads' transaction.
1662 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1663 transaction with list of transactions and ...
1664 (thread_exit_handler): ... deregister here.
1665 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1666 * config/x86/target.h: Same.
1668 2011-08-12 Torvald Riegel <triegel@redhat.com>
1670 * testsuite/libitm.c++/static_ctor.C: New file.
1672 2011-08-12 Torvald Riegel <triegel@redhat.com>
1674 * testsuite/libitm.c/reentrant.c: New file.
1676 2011-08-12 Torvald Riegel <triegel@redhat.com>
1678 * config/generic/tls.h: Remove the free list for transactions and ...
1679 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1680 (GTM::gtm_transaction::operator delete): ... and release here.
1681 (thread_exit_handler): New. Delete tx when thread terminates.
1682 (thread_exit_init): New.
1683 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1684 * testsuite/libitm.c/txrelease.c: New file.
1686 2011-08-12 Torvald Riegel <triegel@redhat.com>
1688 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1689 * testsuite/libitm.c/notx.c: New file.
1691 2011-08-12 Torvald Riegel <triegel@redhat.com>
1693 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1694 * libitm_i.h (local_tid): ... to here.
1695 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1696 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1698 2011-08-12 Torvald Riegel <triegel@redhat.com>
1700 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1701 serialirr_onwrite_dispatch as new default for now.
1702 * method-serial.cc (serialirr_onwrite_dispatch): New.
1703 (GTM::dispatch_serialirr_onwrite): New.
1706 2011-08-12 Torvald Riegel <triegel@redhat.com>
1708 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1709 * query.cc (_ITM_getTransactionId): There is no active transaction if
1710 the current nesting level is zero.
1712 2011-07-28 Torvald Riegel <triegel@redhat.com>
1714 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1717 2011-07-28 Torvald Riegel <triegel@redhat.com>
1719 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1720 transaction properties from the caller instead of from the
1723 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1725 2011-07-28 Torvald Riegel <triegel@redhat.com>
1727 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1728 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1730 * method-serial.cc: Same.
1731 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1732 flat nesting as default, and closed nesting on demand.
1733 (GTM::gtm_transaction::rollback): Same.
1734 (_ITM_abortTransaction): Same.
1735 (GTM::gtm_transaction::restart): Same.
1736 (GTM::gtm_transaction::trycommit): Same.
1737 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1738 (choose_code_path): New.
1739 (GTM::gtm_transaction_cp::save): New.
1740 (GTM::gtm_transaction_cp::commit): New.
1741 * query.cc (_ITM_inTransaction): Support flat nesting.
1742 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1743 (GTM::gtm_transaction): Support flat and closed nesting.
1744 * alloc.cc (commit_allocations_2): New.
1745 (commit_cb_data): New helper struct.
1746 (GTM::gtm_transaction::commit_allocations): Handle nested
1748 * libitm.texi: Update user action section, add description of nesting.
1750 2011-07-28 Torvald Riegel <triegel@redhat.com>
1752 * libitm_i.h: Add closed nesting as restart reason.
1753 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1755 2011-07-28 Torvald Riegel <triegel@redhat.com>
1757 * useraction.cc: Use vector instead of list to store actions.
1758 Also support partial rollbacks for closed nesting.
1759 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1760 * beginend.cc: Same.
1762 2011-07-28 Torvald Riegel <triegel@redhat.com>
1764 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1765 closed_nesting flags, as well as a closed nesting alternative.
1766 * method-serial.cc: Same.
1767 (serial_dispatch): Renamed to serialirr_dispatch.
1768 (GTM::dispatch_serialirr): Same.
1769 (serial_dispatch_ul): Renamed to serial_dispatch.
1770 (GTM::dispatch_serial): Same.
1772 2011-07-28 Torvald Riegel <triegel@redhat.com>
1774 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1776 2011-07-28 Torvald Riegel <triegel@redhat.com>
1778 * aatree.h (aa_tree::remove): New.
1779 (aa_tree::operator new): Add placement new.
1781 2011-07-02 Torvald Riegel <triegel@redhat.com>
1783 * containers.h: New file.
1784 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1785 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1786 * common.h: ... to here.
1787 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1790 2011-06-30 Torvald Riegel <triegel@redhat.com>
1792 * libitm_i.h (STATE_ABORTING): Remove.
1793 * beginend.cc (_ITM_abortTransaction): Same.
1794 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1795 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1796 (_ITM_rollbackTransaction): Remove.
1797 * beginend.cc: Same.
1799 * libitm.texi: Document these ABI changes.
1801 2011-06-30 Torvald Riegel <triegel@redhat.com>
1803 * libitm.texi: New file.
1804 * Makefile.am: Add libitm.texi.
1805 * Makefile.in: Rebuild.
1807 2011-06-30 Torvald Riegel <triegel@redhat.com>
1809 * libitm_i.h: Move parts to common.h and dispatch.h.
1810 * common.h: New file.
1811 * dispatch.h: New file, new dispatch class.
1812 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1813 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1814 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1815 decision to retry.cc.
1816 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1818 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1819 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1821 * barrier.cc: Use new barriers definitions.
1822 (abi_dispatch::memmove_overlap_check): New.
1823 * config/x86/x86_sse.cc: Same.
1824 * config/x86/x86_avx.cc: Same.
1825 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1827 * Makefile.in: Rebuild.
1828 * method-readonly.cc: Remove.
1829 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1830 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1832 2011-06-30 Torvald Riegel <triegel@redhat.com>
1834 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1835 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1836 * testsuite/libitm.c/dropref-2.c: Same.
1837 * testsuite/libitm.c/dropref.c: Same.
1839 2011-06-30 Torvald Riegel <triegel@redhat.com>
1841 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1842 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1843 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1845 * barrier.tpl: Same.
1847 * config/generic/tls.h: Same.
1848 * config/x86/tls.h: Same.
1852 * method-readonly.cc: Same.
1853 * method-serial.cc: Same.
1854 * method-wbetl.cc: Same.
1857 2011-03-03 Richard Henderson <rth@redhat.com>
1859 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1860 From Patrik Marlier <patrick.marlier@unine.ch>.
1862 2011-02-03 Richard Henderson <rth@redhat.com>
1864 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1865 * configure.ac: Use it.
1866 * configure, config.h.in: Rebuild.
1867 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1868 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1869 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1870 * libitm.map: Use wildcards to match size_t mangling.
1872 2010-12-14 Richard Henderson <rth@redhat.com>
1874 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1875 blocks of TIDs per thread.
1876 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1877 (setup_gtm_thr): Return the thread structure.
1878 * config/x86/tls.h (setup_gtm_thr): Likewise.
1880 2010-12-14 Richard Henderson <rth@redhat.com>
1882 * clone.cc (table_lock): Remove.
1883 (find_clone): Don't take it.
1884 (ExcludeTransaction): New helper class.
1885 (_ITM_registerTMCloneTable): Use it.
1886 (_ITM_deregisterTMCloneTable): Likewise.
1888 2010-12-14 Richard Henderson <rth@redhat.com>
1890 * config/x86/tls.h: New file.
1892 2010-07-15 Richard Henderson <rth@redhat.com>
1894 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1895 * Makefile.in: Rebuild.
1897 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1899 * method-wbetl.cc (trydropreference): Fix source line.
1901 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1903 * libitm.h: Add comment.
1904 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1906 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1908 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1909 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1910 available, use pthread mutexes.
1911 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1912 * config.h.in: Regenerate.
1913 * configure: Regenerate.
1915 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1917 * libitm.h (ITM_PURE): Define.
1918 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1920 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1922 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1923 (validate): Add comment.
1924 (trydropreference): New.
1925 * method-readonly.cc (class readonly_dispatch): Add
1927 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1928 Call trydropreference().
1929 * libitm.h (_ITM_dropReferences): Remove const attribute.
1930 * method-serial.cc (class serial_dispatch): Add trydropreference.
1931 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1933 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1935 * memcpy.cc (do_memcpy): Comment.
1937 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1939 * barrier.tpl: Add comments throughout.
1941 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1943 * method-wbetl.cc (struct w_entry): Add comments.
1947 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1949 * alloc_c.cc (_ITM_dropReferences): New.
1950 * libitm.map (_ITM_dropReferences): Add.
1951 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1952 * libitm_i.h (struct gtm_transaction): Declare
1953 drop_references_allocations and drop_references_local.
1954 * local.cc (rollback_local): Ignore memory when applicable.
1955 (drop_references_local): New.
1957 2010-06-23 Richard Henderson <rth@redhat.com>
1959 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1960 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1961 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1962 * config/alpha/target.h: Likewise.
1963 * config/generic/tls.cc (gtm_mask_stack): Use it.
1965 2010-06-23 Richard Henderson <rth@redhat.com>
1967 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1968 a mutex instead of trying a lock-free compare-and-swap on the list.
1969 (gtm_cacheline_page::operator delete): Likewise.
1971 2010-06-16 Richard Henderson <rth@redhat.com>
1973 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1974 that overlap the libitm stack.
1975 * barrier.tpl: Mark incoming stack.
1976 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1977 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1978 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1979 * memcpy.cc, memset.cc: Likewise.
1980 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1981 * config/generic/tls.h (gtm_thread): Add stack_top member.
1982 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1983 * libitm_i.h (gtm_mask_stack): Declare.
1984 * config/generic/tls.cc: New file.
1985 * Makefile.am (libitm_la_SOURCES): Add it.
1986 (AM_CXXFLAGS): Turn off exceptions.
1987 * Makefile.in: Rebuild.
1989 2010-06-16 Richard Henderson <rth@redhat.com>
1991 * alloc.cc (struct gtm_alloc_action): Move definition ...
1992 * libitm_i.h: ... here.
1993 (class gtm_transaction): Declare new and delete.
1994 * beginend.cc (alloc_tx): Reformulate as operator new.
1995 (free_tx): Reformulate as operator delete.
1996 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1998 2010-06-11 Richard Henderson <rth@redhat.com>
2000 * clone.cc (clone_entry_compare): Fix typo.
2001 From Patrik Marlier <patrick.marlier@unine.ch>.
2003 2010-05-13 Richard Henderson <rth@redhat.com>
2005 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2008 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2010 * libitm_i.h (struct gtm_transaction): Remove
2011 get_allocation_size.
2012 (record_allocation): Remove size parameter.
2013 * libitm.map (_ITM_realloc): Remove.
2014 * alloc_c.cc (_ITM_realloc): Remove.
2015 (_ITM_malloc): Remove size argument to record_allocation.
2016 (_ITM_calloc): Same.
2017 * alloc_cpp.cc (_ZGTtnwm): Same.
2018 (_ZGTtnwmRKSt9nothrow_t): Same.
2020 (_ZGTtnamRKSt9nothrow_t): Same.
2021 * alloc.cc (struct gtm_alloc_action): Remove size.
2022 (get_allocation_size): Remove.
2023 (commit_allocations): Add comment.
2024 (record_allocation): Remove size parameter.
2025 (forget_allocation): Remove set of size.
2027 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2029 * Makefile.am (abi_version): New.
2030 (AM_CXXFLAGS): Pass abi_version.
2031 * Makefile.in: Regenerate.
2032 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2034 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2036 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2037 _ITM_getTMCloneOrIrrevokable.
2038 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2039 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2041 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2043 * configure.ac: Remove Linux futex support.
2044 * configure.tgt (config_path): Same.
2045 * Makefile.am: Same.
2046 * config/linux: Remove entire directory.
2047 * configure: Rebuild.
2048 * Makefile.in: Rebuild.
2049 * testsuite/Makefile.in: Rebuild.
2051 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2053 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2054 switching to serial mode.
2055 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2057 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2059 * configure.tgt: Add emacs -*- tags.
2060 * barrier.tpl: Same.
2062 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2064 * Makefile.am: Rename serial.cc to method-serial.cc.
2065 * Makefile.in: Regenerate with automake 1.11.1.
2066 * testsuite/Makefile.in: Same.
2067 * aclocal.m4: Regenerate with aclocal 1.11.1.
2068 * method-serial.cc: Rename from serial.cc.
2069 * libitm_i.h (struct gtm_transaction): Update comment on
2072 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2074 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2075 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2077 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2079 * configure: Rebuild.
2081 2009-11-12 Richard Henderson <rth@redhat.com>
2083 * Rewrite everything in C++.
2085 2009-11-03 Richard Henderson <rth@redhat.com>
2087 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2088 * Makefile.am (libitm_la_SOURCES): Add them.
2089 * configure.ac (ARCH_X86): New conditional.
2090 * Makefile.in, configure: Rebuild.
2091 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2092 Move futex setup into "other system configury" case.
2093 * local.c (rollback_local): Merge into ...
2094 (GTM_rollback_local): ... here.
2095 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2096 (_ITM_LB): Define as an alias to GTM_LB.
2098 2009-11-03 Richard Henderson <rth@redhat.com>
2100 * method-readonly.c: New file.
2101 * Makefile.am (libitm_la_SOURCES): Add it.
2102 * Makefile.in: Rebuild.
2103 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2104 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2105 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2106 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2107 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2108 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2109 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2110 gtm_get_clock, gtm_inc_clock): New.
2111 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2112 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2113 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2114 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2115 replace uses with new libitm_i.h symbols.
2116 (dispatch_wbetl): Rename from wbetl_dispatch.
2117 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2118 away from dispatch_readonly; abort if the beginTransaction call
2119 asserted that the transaction was readonly.
2121 2009-11-03 Richard Henderson <rth@redhat.com>
2123 * memset.c: New file.
2124 * Makefile.am (libitm_la_SOURCES): Add it.
2125 * Makefile.in: Rebuild.
2126 * testsuite/libitm.c/memset-1.c: New.
2128 2009-11-03 Richard Henderson <rth@redhat.com>
2130 * dispatch.c: Remove file.
2131 * useraction.c (struct gtm_user_action): Move from libitm.h.
2132 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2133 (serial_memset, serial_memmove, serial_memcpy): Remove.
2134 (serial_W*, serial_R*): Remove.
2135 (serial_dispatch): Update to match.
2136 * configure.ac: Move Werror down below configure checks. Don't
2137 check for sys/loadavg.h, do check for malloc.h. Don't check for
2138 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2139 Use GCC_AC_FUNC_MMAP_BLACKLIST
2140 * libitm.h: Split out all internal items to...
2141 * libitm_i.h: ... here. New file.
2142 * copymask.c: New file.
2143 * local.c (struct gtm_local_undo): Move from libitm.h.
2144 (GTM_alloc_local): Rename from alloc_local; export.
2145 * memcpy.c: New file.
2146 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2147 * config/posix/page.c: New file.
2148 * config/posix/target_tls.h: Remove file.
2149 * barrier.c: New file.
2150 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2152 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2153 * method-wbetl.c: Rewrite for new cacheline methods.
2154 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2156 * config/alpha/sjlj.S: Fix typo.
2157 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2158 * config/alpha/copymask.c: New file.
2159 * config/alpha/target.h (CACHELINE_SIZE): New.
2160 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2162 * config/x86/target_i.h: Copy functions from x86/target.h.
2163 * config/x86/copymask.c: New file.
2164 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2165 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2166 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2167 * config/x86/target_tls.h: Move contents to target_i.h.
2169 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2170 * testsuite/libitm.c/memcpy-1.c: New.
2172 2009-10-22 Richard Henderson <rth@redhat.com>
2174 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2175 (AM_CCASFLAGS): New.
2176 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2177 saving/restoring _AC_ARG_VAR_PRECIOUS.
2178 * Makefile.in, aclocal.m4, config.h.in, configure,
2179 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2181 2009-10-22 Richard Henderson <rth@redhat.com>
2183 * testsuite/*: Update for new compiler syntax.
2185 2009-10-21 Richard Henderson <rth@redhat.com>
2187 * libitm.h (_ITM_abortReason): Add outerAbort.
2189 2009-08-03 Richard Henderson <rth@redhat.com>
2191 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2192 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2193 * method-wbetl.c (struct w_entry): Remove mask.
2194 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2197 2009-07-22 Richard Henderson <rth@redhat.com>
2199 * eh_cpp.c: New file.
2200 * Makefile.am (libitm_la_SOURCES): Add it.
2201 * Makefile.in: Rebuild.
2202 * beginend.c (GTM_rollback_transaction): Undo exception state.
2203 (GTM_trycommit_transaction): Mark inline.
2204 (GTM_trycommit_and_finalize_transaction): Split out from ...
2205 (_ITM_commitTransaction): ... here.
2206 (_ITM_commitTransactionEH): New function.
2207 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2208 cxa_unthrown, eh_in_flight; reorder.
2210 * testsuite/libitm.c++/c++.exp: New.
2211 * testsuite/libitm.c++/eh-1.C: New.
2213 * aatree.c (aa_free): Remove REGPARM.
2214 * aatree.h: Remove all REGPARM.
2216 2009-07-18 Richard Henderson <rth@redhat.com>
2218 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2219 * Makefile.am (libitm_la_SOURCES): Add them.
2220 * Makefile.in: Rebuild.
2221 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2222 (GTM_trycommit_transaction): Likewise.
2223 * libitm.h: Include aatree.h
2224 (struct gtm_alloc_action): New.
2225 (struct gtm_transaction): Add alloc_actions.
2226 (GTM_record_allocation, GTM_forget_allocation): Declare.
2227 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2228 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2229 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2230 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2231 _ZGTtdaPvRKSt9nothrow_t): Export.
2233 2009-07-18 Richard Henderson <rth@redhat.com>
2235 * target_tls.h: Move ...
2236 * config/posix/target_tls.h: ... here.
2238 2009-07-07 Richard Henderson <rth@redhat.com>
2240 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2242 2009-07-07 Richard Henderson <rth@redhat.com>
2246 2009-07-07 Richard Henderson <rth@redhat.com>
2248 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2249 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2251 * configure.tgt: Don't use -ftls-model for x86 linux.
2252 * libitm.h: Include target.h after standard includes.
2253 (_gtm_thr): Rename from gtm_thr.
2254 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2255 (gtm_disp, set_gtm_disp): New.
2256 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2257 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2258 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2260 2009-07-07 Richard Henderson <rth@redhat.com>
2262 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2264 2009-07-06 Richard Henderson <rth@redhat.com>
2266 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2267 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2268 (_ITM_beginTransaction): Take variadic arguments.
2269 (_ITM_registerThrownObject): Declare.
2270 * beginend.c, serial.c: Update.
2271 * libitm.map: Add _ITM_registerThrownObject.
2273 2009-01-28 Richard Henderson <rth@redhat.com>
2275 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2276 * Makefile.in: Rebuild.
2277 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2278 (GTM_restart_transaction): Fix uninstrumented code check.
2279 * retry.c (GTM_decide_retry_strategy): Add serial check.
2280 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2281 automatically go irrevokable when in serial mode.
2282 * clone.c: New file.
2283 * libitm.h, libitm.map: Update.
2285 2009-01-27 Richard Henderson <rth@redhat.com>
2287 * Makefile.am (LTCCASCOMPILE): Define.
2288 (libitm_la_SOURCES): Add methid-wbetl.c.
2289 * testsuite/Makefile.am: New
2290 * configure.ac: Add testsuite/Makefile.
2291 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2292 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2293 (_ITM_abortTransaction): Finalize implementation method; pass
2294 transaction properties to longjmp.
2295 (GTM_restart_transaction): Split out from ...
2296 (_ITM_commitTransaction): ... here.
2297 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2298 Move to config/x86/target.h.
2299 * config/linux/alpha/futex_bits.h: New.
2300 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2301 * config/x86/target.h: Disable target types for 32-bit.
2302 * config/alpha/sjlj.S, config/alpha/target.h: New.
2303 * libitm.h (struct gtm_dispatch): Add init, fini.
2304 (enum restart_reason): New.
2305 (struct gtm_transaction): Add method and restarts.
2306 * retry.c (GTM_decide_retry_strategy): Implement.
2307 * serial.c (serial_init, serial_fini): New.
2308 (GTM_serialmode): Finialize outgoing method.
2309 * method-wbetl.c: New.
2311 2008-12-09 Richard Henderson <rth@redhat.com>
2313 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2314 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2315 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2316 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2317 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2318 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2319 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2320 * serial.c (serial_R##T, serial_W##T): Likewise.
2322 2008-11-21 Richard Henderson <rth@redhat.com>
2326 Copyright (C) 2008-2022 Free Software Foundation, Inc.
2328 Copying and distribution of this file, with or without modification,
2329 are permitted in any medium without royalty provided the copyright
2330 notice and this notice are preserved.