1 2022-10-12 Martin Liska <mliska@suse.cz>
3 * configure: Regenerate.
5 2022-10-11 Olivier Hainque <hainque@adacore.com>
6 Olivier Hainque <hainque@adacore.com>
8 * configure: Regenerate.
10 2022-09-28 Lulu Cheng <chenglulu@loongson.cn>
11 Yang Yujie <yangyujie@loongson.cn>
13 * configure.tgt: Add loongarch support.
14 * config/loongarch/asm.h: New file.
15 * config/loongarch/sjlj.S: New file.
16 * config/loongarch/target.h: New file.
18 2022-08-31 Martin Liska <mliska@suse.cz>
20 * configure: Regenerate.
22 2022-08-31 Martin Liska <mliska@suse.cz>
24 * configure: Regenerate.
26 2022-06-02 David Malcolm <dmalcolm@redhat.com>
28 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
30 2022-02-03 David Seifert <soap@gentoo.org>
31 Jakub Jelinek <jakub@redhat.com>
33 * configure.ac: Support --disable-werror.
34 * configure: Regenerate.
36 2022-01-31 Martin Liska <mliska@suse.cz>
38 * acinclude.m4: Detect *_ld_is_mold and use it.
39 * configure: Regenerate.
41 2022-01-03 Jakub Jelinek <jakub@redhat.com>
43 * libitm.texi: Bump @copying's copyright year.
45 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
47 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
48 target does not support HAVE_ELF_STYLE_WEAKREF then do not
49 try to test the __cxa_get_globals against NULL.
51 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
54 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
56 2021-01-15 Jakub Jelinek <jakub@redhat.com>
59 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
60 be added through preprocessor check on
61 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
63 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
65 * configure: Re-generate.
67 2021-01-01 Jakub Jelinek <jakub@redhat.com>
69 * libitm.texi: Bump @copying's copyright year.
71 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
74 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
75 * configure: Regenerate.
77 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
79 * configure: Regenerate.
81 2020-10-01 Alan Modra <amodra@gmail.com>
83 * config/powerpc/sjlj.S: Support __PCREL__ code.
85 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
87 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
89 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
91 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
92 and add BTI c to function entries.
94 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
96 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
98 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
101 * configure: Regenerated.
103 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
106 * configure: Regenerated.
108 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
110 * configure: Regenerated.
112 2020-05-12 Nathan Sidwell <nathan@acm.org>
114 Fix throw specifiers on interface.
115 * libitm/libitm.h (_ITM_NOTHROW): Define.
116 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
117 (_ITM_cxa_begin_catch): Use it.
118 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
119 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
121 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
122 (_ITM_cxa_begin_catch): Likewise.
124 2020-05-05 Nathan Sidwell <nathan@acm.org>
126 * testsuite/lib/libitm.exp (libitm_init): Add
127 -fdiagnostics-color=never to options.
129 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
134 * configure: Regenerated.
136 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
138 * configure.ac: Handle `--with-toolexeclibdir='.
139 * Makefile.in: Regenerate.
140 * aclocal.m4: Regenerate.
141 * configure: Regenerate.
142 * testsuite/Makefile.in: Regenerate.
144 2020-01-01 Jakub Jelinek <jakub@redhat.com>
146 Update copyright years.
148 * libitm.texi: Bump @copying's copyright year.
150 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
153 * configure.tgt: Avoid IE tls on *-*-musl*.
155 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
157 * configure: Regenerate.
159 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
161 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
163 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
165 * configure.tgt: Handle *-*-uclinux*.
166 * configure: Regenerate.
168 2019-09-06 Florian Weimer <fweimer@redhat.com>
170 * configure: Regenerate.
172 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
175 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
176 scanning to conform to the GNU Coding Standards.
177 * configure: Regenerate.
179 2019-05-03 Jakub Jelinek <jakub@redhat.com>
181 * Makefile.am (finclude): Remove.
182 * Makefile.in: Regenerated.
184 2019-01-01 Jakub Jelinek <jakub@redhat.com>
186 Update copyright years.
188 2019-01-01 Jakub Jelinek <jakub@redhat.com>
190 * libitm.texi: Bump @copying's copyright year.
192 2018-12-16 Jakub Jelinek <jakub@redhat.com>
195 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
196 void * to void (*) (void *).
197 (_ITM_cxa_throw): Likewise.
198 * libitm.h (_ITM_cxa_throw): Likewise.
199 * libitm.texi (_ITM_cxa_throw): Likewise.
201 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
203 * config/powerpc/target.h (htm_available): Add support for
204 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
206 2018-10-31 Joseph Myers <joseph@codesourcery.com>
209 * Makefile.am: Include multilib.am.
210 (AUTOMAKE_OPTIONS): Add info-in-builddir.
211 (CLEANFILES): Remove libitm.info.
212 * configure.ac: Remove AC_PREREQ.
213 * testsuite/Makefile.am (RUNTEST): Remove quotes.
214 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
217 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
220 * method-serial.cc: Mark varible as potentially unused
223 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
225 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
226 absolute relocation in a shared library.
228 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
231 * config/linux/x86/tls.h (SEG_READ): Use the offset of
232 __private_tm as base.
233 (SEG_WRITE): Likewise.
234 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
235 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
236 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
237 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
238 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
240 2018-05-17 Jason Merrill <jason@redhat.com>
242 * beginend.cc (save): Disable -Werror=deprecated-copy.
244 2018-05-02 Tom de Vries <tom@codesourcery.com>
247 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
249 2018-05-02 Tom de Vries <tom@codesourcery.com>
252 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
254 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
256 * config/x86/sjlj.S (_ITM_beginTransaction): Add
257 (__CET__ & 2) != 0 check for shadow stack.
258 (GTM_longjmp): Likewise.
260 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
262 * configure: Regenerated.
264 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
267 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
269 2018-04-19 Jakub Jelinek <jakub@redhat.com>
271 * configure: Regenerated.
273 2018-04-18 David Malcolm <dmalcolm@redhat.com>
276 * configure: Regenerate.
278 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
281 * configure: Regenerate.
283 2018-01-03 Jakub Jelinek <jakub@redhat.com>
285 Update copyright years.
287 * libitm.texi: Bump @copying's copyright year.
289 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
291 * Makefile.in: Regenerate.
292 * acinclude.m4: Add enable.m4 and cet.m4.
293 * config/x86/sjlj.S: Include cet.h.
294 (_ITM_beginTransaction): Add _CET_ENDBR.
295 Save Shadow Stack pointer.
296 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
297 * config/x86/target.h (struct gtm_jmpbuf):
298 Add new field for Shadow Stack pointer.
299 * configure: Regenerate.
300 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
301 * configure.ac: Update libtool_VERSION for x86.
302 * testsuite/Makefile.in: Regenerate.
304 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
306 * libitm/config/x86/target.h: Add new field (ssp).
307 * libitm/config/x86/sjlj.S: Change offsets.
309 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
311 * testsuite/lib/libitm.exp: Load scanlang.exp.
313 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
315 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
317 2017-01-21 Jakub Jelinek <jakub@redhat.com>
320 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
321 of cat to get version from BASE-VER file.
322 * testsuite/Makefile.in: Regenerated.
324 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
326 * config/x86/target.h (htm_available): Determine vendor from
327 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
329 2017-01-18 Torvald Riegel <triegel@redhat.com>
331 * config/x86/target.h (htm_available): Add check for some processors
332 on which TSX is broken.
334 2017-01-17 Jakub Jelinek <jakub@redhat.com>
337 * configure.ac: Add GCC_BASE_VER.
338 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
339 get version from BASE-VER file.
340 * testsuite/Makefile.in: Regenerated.
341 * configure: Regenerated.
342 * Makefile.in: Regenerated.
344 2017-01-04 Alan Modra <amodra@gmail.com>
346 * Makefile.in: Regenerate.
347 * testsuite/Makefile.in: Regenerate.
349 2017-01-01 Jakub Jelinek <jakub@redhat.com>
351 Update copyright years.
353 * libitm.texi: Bump @copying's copyright year.
355 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
358 * aclocal.m4: Regenerate.
359 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
360 LIBITM_CHECK_LINKER_HWCAP.
362 2016-11-15 Matthias Klose <doko@ubuntu.com>
364 * configure: Regenerate.
366 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
369 * util.cc (xmalloc): Use posix_memalign to allocate memory on
370 on cache line if requested.
372 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
374 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
375 function attribute to disable floating point in begin_transaction() on
377 * beginend.cc (begin_transaction): Use
378 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
380 2016-01-22 Torvald Riegel <triegel@redhat.com>
382 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
384 (htm_fastpath): Remove.
385 (gtm_thread::begin_transaction): Fix HTM fastpath.
386 (_ITM_commitTransaction): Adapt.
387 (_ITM_commitTransactionEH): Adapt.
388 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
390 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
391 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
392 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
393 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
394 * libitm/method-serial.cc (htm_mg): Adapt.
395 (gtm_thread::serialirr_mode): Adapt.
396 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
398 2016-01-21 Torvald Riegel <triegel@redhat.com>
400 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
403 2016-01-19 Richard Henderson <rth@redhat.com>
408 2016-01-13 Richard Henderson <rth@redhat.com>
410 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
411 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
412 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
413 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
414 * configure.ac (ARCH_AARCH64): New conditional.
415 (ARCH_PPC, ARCH_S390): Likewise.
416 * Makefile.in, configure: Rebuild.
418 * libitm.h (_ITM_TYPE_M128): Always define.
419 * vect64.cc: Split ...
420 * vect128.cc: ... out of...
421 * config/x86/x86_sse.cc: ... here.
422 * config/arm/neon.cc: New file.
424 2016-01-19 Torvald Riegel <triegel@redhat.com>
426 * local_type_traits: Remove file.
427 * libitm_i.h: Don't include it anymore.
428 (sized_integral): Remove.
430 2016-01-16 Torvald Riegel <triegel@redhat.com>
432 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
434 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
435 * libitm/testsuite/libitm.c/priv-1.c: New.
437 2015-01-15 Torvald Riegel <triegel@redhat.com>
439 testsuite/libitm.c++/libstdc++-safeexc.C: New.
441 2016-01-13 Torvald Riegel <triegel@redhat.com>
443 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
444 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
445 (gtm_rwlock::write_unlock): Likewise.
447 2016-01-13 Richard Henderson <rth@redhat.com>
449 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
450 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
451 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
452 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
453 * configure.ac (ARCH_AARCH64): New conditional.
454 (ARCH_PPC, ARCH_S390): Likewise.
455 * Makefile.in, configure: Rebuild.
457 * libitm.h (_ITM_TYPE_M128): Always define.
458 * vect64.cc: Split ...
459 * vect128.cc: ... out of...
460 * config/x86/x86_sse.cc: ... here.
461 * config/arm/neon.cc: New file.
463 2016-01-13 Torvald Riegel <triegel@redhat.com>
465 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
466 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
467 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
468 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
469 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
470 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
471 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
472 (serialirr_dispatch::snapshot_most_recent): New.
473 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
475 2016-01-12 Torvald Riegel <triegel@redhat.com>
477 * libitm_i.h (gtm_mask_stack): Remove.
478 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
479 * stmlock.h: Remove file.
480 * config/alpha/cacheline.h: Likewise.
481 * config/generic/cacheline.h: Likewise.
482 * config/powerpc/cacheline.h: Likewise.
483 * config/sparc/cacheline.h: Likewise.
484 * config/x86/cacheline.h: Likewise.
486 2016-01-04 Jakub Jelinek <jakub@redhat.com>
488 Update copyright years.
490 * libitm.texi: Bump @copying's copyright year.
492 2015-11-26 Torvald Riegel <triegel@redhat.com>
494 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
495 (ml_wt_dispatch::pre_write): Adapt.
496 (ml_wt_dispatch::pre_load): Likewise.
498 2015-11-22 Torvald Riegel <triegel@redhat.com>
500 * libitm_i.h (gtm_alloc_action): Remove union.
501 * testsuite/libitm.c/alloc-1.c: New.
503 2015-11-19 Torvald Riegel <triegel@redhat.com>
505 * testsuite/libitm.c++/eh-5.C: New.
506 * libitm.h (_ITM_cxa_free_exception): New.
507 * libitm.map (_ITM_cxa_free_exception): Add it.
508 * libitm.texi: Update ABI docs.
509 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
510 (gtm_transaction_cp::cxa_uncaught_count): Add.
511 (gtm_thread::cxa_unthrown): Remove.
512 (gtm_thread::cxa_uncaught_count_ptr): Add.
513 (gtm_thread::cxa_uncaught_count): Add.
514 (gtm_thread::drop_references_allocations): Rename to...
515 (gtm_thread::discard_allocation): ... this and adapt.
516 (gtm_thread::init_cpp_exceptions): New.
517 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
518 (gtm_thread::begin_transaction): Likewise.
519 (gtm_transaction_cp::save): Likewise.
520 (gtm_thread::trycommit): Likewise.
521 * eh_cpp.cc: Add overview comments.
522 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
523 (free_any_exception, _ITM_cxa_free_exception): New.
524 (gtm_thread::init_cpp_exceptions): Define.
525 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
526 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
527 (gtm_thread::revert_cpp_exceptions): Likewise.
529 2015-11-09 Torvald Riegel <triegel@redhat.com>
531 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
532 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
533 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
534 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
535 (gtm_thread::forget_allocations): New overload with size_t argument.
536 * alloc.c (gtm_thread::forget_allocation): Define new overload and
538 (gtm_thread::record_allocation): Adapt.
539 (gtm_thread::commit_allocations_1): Adapt.
540 (gtm_thread::commit_allocations_2): Adapt.
541 * testsuite/libitm.c++/newdelete.C: New.
543 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
544 Joseph Myers <joseph@codesourcery.com>
545 Mark Shinwell <shinwell@codesourcery.com>
546 Andrew Stubbs <ams@codesourcery.com>
547 Rich Felker <dalias@libc.org>
549 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
550 GTM_begin_transaction for compatibility with FDPIC.
552 2015-10-09 David Malcolm <dmalcolm@redhat.com>
554 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
557 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
560 * local_atomic (__always_inline): Rename to...
561 (__libitm_always_inline): ... this.
563 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
566 * config/powerpc/sjlj.S: Port to Xcode 2.5.
568 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
570 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
571 operands "op" and "val" to int.
573 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
575 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
576 "op" and "val" to int.
578 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
580 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
581 "op" and "val" to int.
583 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
585 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
586 Declare as static int.
587 (FUTEX_PRIVATE_FLAG): Remove L suffix.
588 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
590 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
592 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
595 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
597 * Makefile.in: Regenerated with automake-1.11.6.
598 * aclocal.m4: Likewise.
599 * configure: Likewise.
600 * testsuite/Makefile.in: Likewise.
602 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
604 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
605 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
607 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
610 * libitm.c/stackundo.c (test2): Make it static.
613 2015-01-05 Jakub Jelinek <jakub@redhat.com>
615 Update copyright years.
617 2015-01-05 Jakub Jelinek <jakub@redhat.com>
619 * libitm.texi: Bump @copying's copyright year.
621 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
623 * testsuite/lib/libitm.exp: Load target-utils.exp.
624 Move load of target-supports.exp earlier.
626 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
628 * configure.tgt (x86_64): Tune -m32 multilib to generic.
630 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
633 * configure: Regenerated.
635 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
638 * configure: Regenerate.
640 2014-10-06 Marek Polacek <polacek@redhat.com>
642 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
643 * testsuite/libitm.c/memset-1.c: Likewise.
645 2014-07-24 Richard Henderson <rth@redhat.com>
647 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
648 addressing mode in epilogue.
650 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
652 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
653 -mclear-hwcap instead.
654 * configure: Regenerate.
655 * clearcap.map: Remove.
657 2014-05-21 John Marino <gnugcc@marino.st>
659 * configure.tgt (*-*-dragonfly*): New target.
661 2014-05-19 Richard Henderson <rth@redhat.com>
663 * config/aarch64/sjlj.S: New file.
664 * config/aarch64/target.h: New file.
665 * configure.tgt: Enable aarch64.
667 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 * config/generic/asmcfi.h: Also check for
670 __GCC_HAVE_DWARF2_CFI_ASM.
672 2013-04-02 Richard Henderson <rth@redhat.com>
674 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
675 * config/arm/target.h, config/sh/target.h: Likewise.
676 * config/sparc/target.h, config/x86/target.h: Likewise.
678 2014-03-26 Jakub Jelinek <jakub@redhat.com>
680 * config/linux/futex_bits.h: Include errno.h.
681 (sys_futex0): If syscall returns -1, return -errno rather than
684 2014-03-26 Joseph Myers <joseph@codesourcery.com>
686 * libitm.texi (Index): Rename to Library Index.
688 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
691 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
692 (x86_avx.lo): Append -mavx to CXXFLAGS.
693 * Makefile.in: Regenerate.
695 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
697 Update copyright years
699 2014-01-02 Tobias Burnus <burnus@net-b.de>
701 * libitm.texi: Bump @copying's copyright year.
703 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
705 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
706 (FUNC): Define ELFv2 variant.
713 2013-09-20 Alan Modra <amodra@gmail.com>
715 * configure: Regenerate.
717 2013-08-30 Torvald Riegel <triegel@redhat.com>
719 * config/posix/rwlock.cc: Fix initialization order.
721 2013-08-30 Torvald Riegel <triegel@redhat.com>
723 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
724 (htm_fastpath): Assign an asm name.
725 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
727 (_ITM_actions): Likewise.
728 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
730 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
731 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
732 field to the start of the structure.
733 * config/linux/rwlock.h (gtm_rwlock): Update comments.
734 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
735 handling for custom HTM fast paths.
737 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
739 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
741 * configure.tgt: Add -msoft-float to XCFLAGS.
743 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
745 * configure.tgt: Add -msoft-float to XCFLAGS.
747 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
749 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
750 (htm_transaction_active): Enable zEC12 instructions in the
752 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
754 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
756 * acinclude.m4: Add htm asm check for s390.
757 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
758 * configure: Regenerate.
759 * config/s390/target.h: Remove __HTM__ check.
760 (htm_available): Call getauxval to get hwcaps and check whether
761 HTM is available or not.
763 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
765 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
766 * configure.ac: Use it.
767 (AC_CHECK_HEADERS): Check for sys/auxv.h.
768 (AC_CHECK_FUNCS): Check for getauxval.
769 * config.h.in, configure: Rebuild.
770 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
771 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
772 (USE_HTM_FASTPATH): Define.
773 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
774 _HTM_RETRIES) New macros.
775 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
776 htm_begin_success, htm_commit, htm_transaction_active): New functions.
778 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
780 * config/s390/target.h: Include htmintrin.h.
781 (_HTM_ITM_RETRIES): New macro definition.
782 (htm_available, htm_init, htm_begin, htm_begin_success)
783 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
785 2013-06-20 Iain Sandoe <iain@codesourcery.com>
786 Cesar Philippidis <cesar@codesourcery.com>
788 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
789 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
790 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
791 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
793 2013-06-20 Torvald Riegel <triegel@redhat.com>
795 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
796 (_ITM_getTransactionId): Same.
797 * config/x86/target.h (htm_transaction_active): New.
799 2013-06-20 Torvald Riegel <triegel@redhat.com>
802 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
805 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
808 * local_atomic (__always_inline): Always define our version.
809 (__calculate_memory_order): Mark inline.
810 (atomic_thread_fence): Ditto.
811 (atomic_signal_fence): Ditto.
812 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
813 (atomic_bool::atomic_flag_clear_explicit): Ditto.
814 (atomic_bool::atomic_flag_test_and_set): Ditto.
815 (atomic_bool::atomic_flag_clear): Ditto.
817 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
819 * config/s390/sjlj.S: New file.
820 * config/s390/target.h: New file.
821 * configure.tgt: Set options for S/390.
823 2013-03-23 Andi Kleen <ak@linux.intel.com>
825 * local_atomic (__always_inline): Add.
826 (__calculate_memory_order, atomic_thread_fence,
827 atomic_signal_fence, test_and_set, clear, store, load,
828 exchange, compare_exchange_weak, compare_exchange_strong,
829 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
830 Add __always_inline to force inlining.
832 2013-02-11 Iain Sandoe <iain@codesourcery.com>
833 Jack Howarth <howarth@bromo.med.uc.edu>
834 Patrick Marlier <patrick.marlier@gmail.com>
837 * alloc_cpp.cc: Enable function declarations on darwin.
838 * eh_cpp.cc: Likewise.
840 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
842 Update copyright years.
844 2012-11-09 Torvald Riegel <triegel@redhat.com>
846 * beginend.cc (htm_fastpath): New.
847 (gtm_thread::begin_transaction, _ITM_commitTransaction,
848 _ITM_commitTransactionEH): Add HTM fastpath handling.
849 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
850 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
851 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
852 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
853 * configure.tgt: Add -mrtm to XCFLAGS.
854 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
855 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
856 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
857 * retry.cc (parse_default_method): Add HTM method parsing.
858 (gtm_thread::number_of_threads_changed): Use HTM by default if
861 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
863 * configure: Regenerate.
865 2012-10-31 Richard Henderson <rth@redhat.com>
867 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
868 * configure.ac: Use it.
869 * config.h.in, configure: Rebuild.
870 * testsuite/Makefile.in: Rebuild.
872 2012-10-24 Torvald Riegel <triegel@redhat.com>
874 * libitm.texi: Clarify ABI requirements for data-logging functions.
876 2012-10-24 Torvald Riegel <triegel@redhat.com>
878 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
879 it requires serial mode instead of assuming that for certain
881 * dispatch.h (abi_dispatch::requires_serial): New.
882 (abi_dispatch::abi_dispatch): Adapt.
883 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
884 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
885 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
886 serial_dispatch::serial_dispatch,
887 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
889 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
891 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
892 and ia32 declarations some more.
893 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
895 2012-09-20 Jakub Jelinek <jakub@redhat.com>
898 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
899 * configure: Regenerate.
900 * Makefile.in: Regenerate.
902 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
904 * configure: Regenerated.
906 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
908 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
910 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
912 * eh_cpp.cc: Fix __cxa_end_catch declaration.
914 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
916 * configure: Regenerated.
918 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
921 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
924 2012-04-03 Tristan Gingold <gingold@adacore.com>
926 * configure: Regenerate.
928 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
931 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
933 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
935 * testsuite/lib/libitm.exp: load fortran-modules.exp
937 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
939 * configure.tgt (*-*-irix6*): Remove.
941 2012-03-13 Torvald Riegel <triegel@redhat.com>
944 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
947 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949 * configure.tgt (*-*-osf*): Remove.
950 * configure: Regenerate.
952 2012-03-05 Torvald Riegel <triegel@redhat.com>
954 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
955 memtransfer/memset if size isn't larger than zero.
957 2012-03-02 Torvald Riegel <triegel@redhat.com>
959 * libitm.texi: Link to specification and add a usage example.
961 2012-02-24 Torvald Riegel <triegel@redhat.com>
963 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
964 default dispatch for more than 1 thread to ml_wt.
966 2012-02-20 Torvald Riegel <triegel@redhat.com>
968 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
970 2012-02-20 Torvald Riegel <triegel@redhat.com>
972 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
974 2012-02-20 Torvald Riegel <triegel@redhat.com>
976 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
977 serial mode corner cases made obsolete by prior gtm_rwlock changes.
978 (gl_wt_dispatch.rollback): Same.
980 2012-02-20 Torvald Riegel <triegel@redhat.com>
982 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
984 2012-02-20 Torvald Riegel <triegel@redhat.com>
986 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
987 for RfW src. Optimize number of calls to gtm_thr.
989 2012-02-20 Torvald Riegel <triegel@redhat.com>
991 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
993 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
994 (default_dispatch): Make atomic.
995 (GTM::gtm_thread::set_default_dispatch): Access atomically.
996 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
997 use decide_begin_dispatch() if default_dispatch might have changed.
998 (GTM::gtm_thread::number_of_threads_changed): Initialize
999 default_dispatch here.
1001 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1002 Patrick Marlier <patrick.marlier@gmail.com>
1005 * alloc_cpp.cc: No dummy definitions for darwin.
1006 * eh_cpp.cc: Likewise.
1008 2012-02-14 Richard Henderson <rth@redhat.com>
1010 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1012 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1014 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1016 2012-02-14 Torvald Riegel <triegel@redhat.com>
1018 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1019 (GTM::gtm_thread): Add read and write logs.
1020 (GTM::dispatch_ml_wt): Declare.
1021 * retry.cc (parse_default_method): Support ml_wt.
1022 * method-ml.cc: New file.
1023 * Makefile.am: Add method-ml.cc.
1024 * Makefile.in: Regenerate.
1026 2012-02-14 Torvald Riegel <triegel@redhat.com>
1028 * dispatch.h (GTM::abi_dispatch::supports): New.
1029 (GTM::method_group::reinit): New.
1030 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1031 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1032 supports the current situation.
1034 2012-02-14 Torvald Riegel <triegel@redhat.com>
1036 * util.cc (GTM::xcalloc): New.
1037 * common.h (GTM::xcalloc): Declare.
1039 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1041 * config/sparc/target.h (cpu_relax): Read from CC register.
1042 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1044 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1046 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1048 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1050 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1051 * config/sparc/cacheline.h: New file.
1052 * config/sparc/target.h: Likewise.
1053 * config/sparc/sjlj.S: Likewise.
1054 * config/linux/sparc/futex_bits.h: Likewise.
1056 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1058 * configure.ac (link_itm): Fix comment.
1059 * configure: Regenerate.
1060 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1062 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1066 Correct libgomp references.
1068 2012-01-24 Torvald Riegel <triegel@redhat.com>
1070 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1073 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1075 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1077 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1078 offset values. Do not copy return address. Decrement stack
1080 (GTM_longjump) [__x86_64__]: Update offset values.
1082 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1085 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1086 the first function argument to %eax.
1088 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * libitm.h (_ITM_getThreadnum): Remove.
1091 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1093 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1095 * clearcap.map: New file.
1096 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1097 * configure.ac: Call it.
1098 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1099 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1100 * configure: Regenerate.
1101 * Makefile.in: Regenerate.
1102 * testsuite/Makefile.in: Regenerate.
1104 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1107 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1108 include, exclude options.
1110 2012-01-14 Torvald Riegel <triegel@redhat.com>
1112 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1114 * containers.h (GTM::vector::set_size): New.
1116 2012-01-14 Torvald Riegel <triegel@redhat.com>
1119 * config/generic/tls.h (GTM::mask_stack_top): New.
1120 (GTM::mask_stack_bottom): Declare.
1121 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1122 * local.cc (gtm_undolog::rollback): Filter out any updates that
1123 overlap the libitm stack. Add current transaction as parameter.
1124 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1125 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1126 * testsuite/libitm.c/stackundo.c: New test.
1128 2012-01-10 Richard Henderson <rth@redhat.com>
1130 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1131 * eh_cpp.cc (_Unwind_DeleteException): Define for
1132 !HAVE_ELF_STYLE_WEAKREF.
1134 2012-01-08 Torvald Riegel <triegel@redhat.com>
1136 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1137 (GTM::gtm_thread::drop_references_undolog): Remove.
1138 (GTM::gtm_thread::commit_undolog,
1139 GTM::gtm_thread::rollback_undolog): Move to ...
1140 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1141 (GTM::gtm_undolog_entry): Remove.
1142 (GTM::gtm_thread): Adapt.
1143 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1144 (GTM::gtm_thread::trycommit): Adapt.
1145 * method-serial.cc (serial_dispatch::log): Adapt.
1146 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1147 (gl_wt_dispatch::store): Fix likely/unlikely.
1148 * containers.h (GTM::vector::resize): Add additional_capacity
1149 parameter and handle it.
1150 (GTM::vector::resize_noinline): New/adapt.
1151 (GTM::vector::push): New.
1153 2012-01-06 Richard Henderson <rth@redhat.com>
1155 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1156 * config/linux/powerpc/futex_bits.h: New file.
1157 * config/powerpc/cacheline.h: New file.
1158 * config/powerpc/sjlj.S: New file.
1159 * config/powerpc/target.h: New file.
1160 * config/generic/asmcfi.h (cfi_offset): New.
1161 (cfi_restore, cfi_undefined): New.
1163 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1166 * testsuite/libitm.c/reentrant.c: Remove xfail.
1167 (thread): Pass x to pure().
1168 From Patrik Marlier <patrick.marlier@gmail.com>.
1170 2011-12-24 Torvald Riegel <triegel@redhat.com>
1172 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1173 privatization safety if already in serial mode.
1175 2011-12-24 Torvald Riegel <triegel@redhat.com>
1177 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1178 finish_serial_upgrade parameter.
1179 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1180 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1181 Don't unset reader flag.
1182 (GTM::gtm_rwlock::write_upgrade_finish): New.
1183 * config/posix/rwlock.cc: Same.
1184 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1186 * config/posix/rwlock.h: Same.
1187 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1188 flag after commit or after rollback when restarting.
1190 2011-12-24 Torvald Riegel <triegel@redhat.com>
1192 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1193 (GTM::gtm_thread::try_commit): Changed memory order.
1194 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1196 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1197 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1198 * config/linux/futex_bits.h (sys_futex0): Same.
1199 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1200 * config/linux/futex.h (futex_wait, futex_wake): Same.
1201 * config/linux/rwlock.h (gtm_rwlock::writers,
1202 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1204 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1205 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1206 gtm_rwlock::write_unlock): Fix memory orders and fences.
1207 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1208 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1209 gtm_rwlock::write_unlock): Same.
1210 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1211 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1212 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1214 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1215 gl_wt_dispatch::load, gl_wt_dispatch::store,
1216 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1217 orders and fences. Add comments.
1219 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1221 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1222 * Makefile.in: Regenerated.
1224 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1226 * configure.tgt: Add sh* case.
1227 * config/sh/target.h: New file.
1228 * config/sh/sjlj.S: New file.
1229 * config/linux/sh/futex_bits.h: New file.
1231 2011-12-14 Richard Henderson <rth@redhat.com>
1233 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1234 * config/arm/sjlj.S, config/arm/target.h: New files.
1235 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1236 (cfi_rel_offset): New.
1237 * config/linux/futex_bits.h: New file.
1238 * config/linux/futex.cc: Include futex_bits.h here...
1239 * config/linux/futex.h: ... not here.
1240 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1241 * configure.ac (ARCH_AM): New conditional.
1242 * Makefile.in, configure: Rebuild.
1243 * configure.tgt: Handle ARM.
1245 2011-12-13 Richard Henderson <rth@redhat.com>
1247 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1248 signed/unsigned comparison werror.
1250 * local_atomic: New file.
1251 * libitm_i.h: Include it.
1252 (gtm_thread::shared_state): Use atomic template.
1253 * beginend.cc (GTM::gtm_clock): Use atomic template.
1254 (global_tid): Use atomic template if 64-bit atomics available.
1255 (gtm_thread::gtm_thread): Update shared_state access.
1256 (gtm_thread::trycommit): Likewise.
1257 (choose_code_path): Update global_tid access.
1258 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1259 * stmlock.h (GTM::gtm_clock): Use atomic template.
1260 (gtm_get_clock, gtm_inc_clock): Update accesses.
1261 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1262 redundant __sync_synchronize after atomic shared_state access.
1263 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1264 (gtm_rwlock::write_lock_generic): Likewise.
1265 (gtm_rwlock::read_unlock): Likewise.
1266 * config/alpha/target.h (atomic_read_barrier): Remove.
1267 (atomic_write_barrier): Remove.
1268 * config/x86/target.h (atomic_read_barrier): Remove.
1269 (atomic_write_barrier): Remove.
1271 2011-11-30 Richard Henderson <rth@redhat.com>
1273 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1274 * beginend.c (_ITM_abortTransaction): Update to match.
1275 (GTM::gtm_thread::restart): Likewise.
1276 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1277 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1279 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1281 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1282 * Makefile.in: Regenerate.
1284 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1286 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1287 * alloc_cpp.cc: Generate dummy functions if we don't
1288 HAVE_ELF_STYLE_WEAKREF.
1289 * eh_cpp.cc: Likewise.
1290 * configure: Regenerate.
1291 * aclocal.m4: Likewise.
1292 * config.h.in: Likewise.
1293 * Makefile.in: Likewise.
1294 * testsuite/Makefile.in: Likewise.
1296 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1298 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1299 __USER_LABEL_PREFIX__ for targets that use it.
1300 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1301 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1302 in portability to non-elf targets.
1303 (GTM_longjmp): Likewise.
1304 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1307 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1309 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1310 * testsuite/libitm.c/memset-1.c: Likewise.
1312 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1314 * configure: Regenerate.
1316 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1318 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1319 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1320 * Makefile.am: Handle sun style versioning.
1321 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1322 * configure: Regenerate.
1323 * Makefile.in: Regenerate.
1325 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1327 * config/generic/asmcfi.h: Fix comment.
1328 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1329 sequence without .hidden support, error for non-ELF targets.
1330 (GTM_longjmp) [__ELF__]: Only use .hidden if
1331 HAVE_ATTRIBUTE_VISIBILITY.
1333 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1335 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1336 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1338 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1339 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1341 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1344 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1345 * configure: Regenerate.
1347 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1349 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1351 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1355 (.note.GNU-stack): Only use if __linux__.
1356 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1357 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1358 * testsuite/libitm.c/reentrant.c: Likewise.
1359 * testsuite/libitm.c/simple-2.c: Likewise.
1360 * testsuite/libitm.c/txrelease.c: Likewise.
1361 * testsuite/libitm.c++/static_ctor.C: Likewise.
1363 2011-11-10 Richard Henderson <rth@redhat.com>
1365 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1366 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1367 * configure.ac (ARCH_X86_AVX): New conditional.
1368 * Makefile.in, configure: Rebuild.
1370 2011-11-09 Richard Henderson <rth@redhat.com>
1372 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1373 * configure.ac: Use it.
1374 * config.h.in, configure: Rebuild.
1375 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1377 2011-11-09 Richard Henderson <rth@redhat.com>
1379 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1380 * config/alpha/unaligned.h: Remove file.
1381 * config/generic/unaligned.h: Remove file.
1382 * config/x86/unaligned.h: Remove file.
1383 * config/generic/cachepage.h: Remove file.
1384 * config/posix/cachepage.cc: Remove file.
1385 * config/generic/cacheline.cc: Remove file.
1386 * config/x86/cacheline.cc: Remove file.
1387 * config/generic/cacheline.h (gtm_cacheline): Remove the
1388 store_mask, copy_mask, copy_mask_wb methods.
1389 * config/x86/cacheline.h: Likewise.
1390 * config/alpha/cacheline.h: Fall back to generic after setting size.
1391 * config/generic/tls.cc (gtm_mask_stack): Remove.
1392 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1393 (GTM_vpalignr_table): Remove.
1394 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1395 (GTM_pshift_table): Remove.
1396 * config/libitm_i.h: Don't include cachepage.h.
1397 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1398 * Makefile.in, testsuite/Makefile.in: Rebuild.
1400 2011-11-09 Richard Henderson <rth@redhat.com>
1402 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1403 to emit branch prediction hint.
1405 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1406 Protect .note.GNU-stack with __linux__.
1408 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1409 * configure, aclocal.m4, config.h.in: Rebuild.
1410 * config/generic/asmcfi.h: New file.
1411 * config/x86/sjlj.S: Use it.
1413 2011-11-08 Richard Henderson <rth@redhat.com>
1415 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1417 2011-11-08 Richard Henderson <rth@redhat.com>
1419 * configure.tgt: Test correct directory for supported cpus.
1421 * configure.ac: Exit if unsupported.
1422 * configure: Rebuild.
1423 * configure.tgt: Delete boilerplate from libgomp for unsupported
1424 targets. Set UNSUPPORTED for unsupported targets.
1426 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1428 * configure.tgt: Handle i386 like i[456]86.
1429 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1431 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1432 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1434 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1436 * method-wbetl.cc: Update copyright notice.
1442 * barrier.tpl: Same.
1443 * useraction.cc: Same.
1447 * config/generic/tls.cc: Same.
1448 * config/generic/cacheline.h: Same.
1449 * config/generic/cachepage.h: Same.
1450 * config/generic/cacheline.cc: Same.
1451 * config/generic/unaligned.h: Same.
1452 * config/x86/cacheline.h: Same.
1453 * config/x86/cacheline.cc: Same.
1454 * config/x86/unaligned.h: Same.
1455 * config/alpha/cacheline.h: Same.
1456 * config/alpha/unaligned.h: Same.
1457 * config/alpha/sjlj.S: Same.
1458 * config/posix/cachepage.cc: Same.
1459 * config/linux/futex.h: Same.
1460 * config/linux/alpha/futex_bits.h: Same.
1462 2011-11-04 Torvald Riegel <triegel@redhat.com>
1464 * libitm.texi: No cover text and invariant sections.
1466 2011-11-03 Richard Henderson <rth@redhat.com>
1468 * local_type_traits: New file.
1469 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1471 2011-11-03 Richard Henderson <rth@redhat.com>
1473 * configure.ac: Don't test for gfortran.
1474 * configure: Rebuild.
1476 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1477 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1479 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1481 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1482 * testsuite/libitm.c/memset-1.c: Same.
1483 * testsuite/libitm.c/c.exp: Same.
1484 * testsuite/lib/libitm-dg.exp: Same.
1485 * testsuite/lib/libitm.exp: Same.
1486 * testsuite/libitm.c++/c++.exp: Same.
1488 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1490 * testsuite/config/default.exp: Update copyright date.
1491 * configure.ac: Add copyright info.
1492 * configure.tgt: Same.
1494 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1496 * testsuite/libitm.c/reentrant.c: XFAIL.
1497 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1499 2011-10-29 Torvald Riegel <triegel@redhat.com>
1501 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1503 (_ITM_abortTransaction): Handle aborts of outer transactions.
1505 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1506 * libitm.texi: Document aborts of outer transactions.
1507 * testsuite/libitm.c/cancel.c: New file.
1509 2011-10-19 Torvald Riegel <triegel@redhat.com>
1511 * testsuite/*: Change __transaction to __transaction_atomic or
1512 __transaction_relaxed.
1514 2011-10-19 Torvald Riegel <triegel@redhat.com>
1516 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1519 2011-10-19 Torvald Riegel <triegel@redhat.com>
1521 * libitm_i.h: Add gl_wt dispatch.
1522 * retry.cc (parse_default_method): Same.
1523 * method-gl.cc: New file.
1524 * Makefile.am: Use method-gl.cc.
1525 * Makefile.in: Rebuild.
1527 2011-10-19 Torvald Riegel <triegel@redhat.com>
1529 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1530 safety if requested by a TM method.
1531 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1532 privatization safety.
1533 * method-serial.cc: Same.
1535 2011-10-19 Torvald Riegel <triegel@redhat.com>
1537 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1538 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1539 undolog-related member functions from *_local to *_undolog.
1540 * local.cc (gtm_thread::commit_undolog): Same.
1541 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1542 (GTM::gtm_thread::rollback): Roll back undolog before
1543 dispatch-specific rollback.
1545 2011-10-19 Torvald Riegel <triegel@redhat.com>
1547 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1548 re-initialization of the current method group.
1549 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1551 2011-10-19 Torvald Riegel <triegel@redhat.com>
1553 * alloc.cc (commit_allocations_2): Do not free transaction-local
1554 memory when committing a nested transaction.
1556 2011-10-19 Torvald Riegel <triegel@redhat.com>
1558 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1559 serial-irrevocable dispatch, not serial.
1561 2011-10-19 Torvald Riegel <triegel@redhat.com>
1563 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1565 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1566 * method-serial.cc: Implement begin_or_restart().
1567 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1568 dispatch-specific begin_or_restart().
1569 (GTM::gtm_thread::restart): Same.
1571 2011-08-23 Torvald Riegel <triegel@redhat.com>
1573 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1574 restarting without switching to serial mode.
1575 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1576 transaction state. Choose closed-nesting alternative if available.
1577 (GTM::gtm_thread::set_default_dispatch): New.
1578 (parse_default_method): New.
1579 (GTM::gtm_thread::number_of_threads_changed): New.
1580 * method-serial.cc (GTM::serial_mg): New method group class.
1581 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1583 (GTM::serial_dispatch): Same.
1584 (GTM::serialirr_onwrite_dispatch): Same.
1585 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1586 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1588 (GTM::gtm_thread::gtm_thread): Same.
1589 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1590 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1591 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1592 choose dispatch but set state according to dispatch here.
1593 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1594 (GTM::method_group): New class.
1595 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1596 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1597 * libitm.texi: Document TM methods, method groups, method life cycle.
1598 Rename method sets to method groups.
1600 2011-08-23 Torvald Riegel <triegel@redhat.com>
1602 * config/x86/tls.h: Moved to ...
1603 * config/linux/x86/tls.h: ... here.
1605 2011-08-23 Torvald Riegel <triegel@redhat.com>
1607 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1609 * config/x86/sjlj.S: Same.
1611 2011-08-19 Torvald Riegel <triegel@redhat.com>
1613 * config/linux/rwlock.h: New file.
1614 * config/linux/rwlock.c: New file.
1615 * configure.ac: Reenable futex support (undo SVN rev 157758).
1616 * Makefile.am: Same.
1617 * configure.tgt: Same.
1618 * config/linux/alpha/futex_bits.h: Same.
1619 * config/linux/futex.h: Same. Return number of woken processes.
1620 * config/linux/futex.cc: Same.
1621 (futex_wait): Remove spinning.
1622 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1623 Use __x86_64__ instead of __LP64__.
1624 * aclocal.m4: Include generic futex checks.
1625 * configure: Rebuild.
1626 * Makefile.in: Rebuild.
1627 * testsuite/Makefile.in: Rebuild.
1628 * beginend.cc: Include pthread.h.
1629 * config/posix/cachepage.cc: Same.
1631 2011-08-12 Torvald Riegel <triegel@redhat.com>
1633 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1634 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1636 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1638 (GTM::gtm_thread::thread_num): Removed.
1639 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1640 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1641 tx-to-thread renaming.
1642 * beginend.cc: Adapted to tx-to-thread renaming.
1643 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1644 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1645 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1646 gtm_transaction to gtm_thread.
1647 (_ITM_getThreadnum): Removed. Not supported anymore.
1648 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1649 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1650 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1651 gtm_tx-to-gtm_thr renaming if necessary.
1658 * alloc_cpp.cc: Same.
1659 * method-serial.cc: Same.
1660 * config/generic/tls.cc: Same.
1661 * config/posix/rwlock.h (gtm_rwlock): Same.
1662 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1664 2011-08-12 Torvald Riegel <triegel@redhat.com>
1666 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1668 (gtm_rwlock::read_unlock): Same.
1669 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1670 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1671 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1672 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1673 w_upgrade. Replaced by per-transaction flags (in shared_state).
1674 Added c_confirmed_writers.
1675 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1676 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1677 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1678 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1679 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1680 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1681 * libitm.texi: Document locking conventions and implementations in
1684 2011-08-12 Torvald Riegel <triegel@redhat.com>
1686 * libitm_i.h (next_tx): Add list of all threads' transaction.
1687 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1688 transaction with list of transactions and ...
1689 (thread_exit_handler): ... deregister here.
1690 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1691 * config/x86/target.h: Same.
1693 2011-08-12 Torvald Riegel <triegel@redhat.com>
1695 * testsuite/libitm.c++/static_ctor.C: New file.
1697 2011-08-12 Torvald Riegel <triegel@redhat.com>
1699 * testsuite/libitm.c/reentrant.c: New file.
1701 2011-08-12 Torvald Riegel <triegel@redhat.com>
1703 * config/generic/tls.h: Remove the free list for transactions and ...
1704 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1705 (GTM::gtm_transaction::operator delete): ... and release here.
1706 (thread_exit_handler): New. Delete tx when thread terminates.
1707 (thread_exit_init): New.
1708 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1709 * testsuite/libitm.c/txrelease.c: New file.
1711 2011-08-12 Torvald Riegel <triegel@redhat.com>
1713 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1714 * testsuite/libitm.c/notx.c: New file.
1716 2011-08-12 Torvald Riegel <triegel@redhat.com>
1718 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1719 * libitm_i.h (local_tid): ... to here.
1720 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1721 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1723 2011-08-12 Torvald Riegel <triegel@redhat.com>
1725 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1726 serialirr_onwrite_dispatch as new default for now.
1727 * method-serial.cc (serialirr_onwrite_dispatch): New.
1728 (GTM::dispatch_serialirr_onwrite): New.
1731 2011-08-12 Torvald Riegel <triegel@redhat.com>
1733 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1734 * query.cc (_ITM_getTransactionId): There is no active transaction if
1735 the current nesting level is zero.
1737 2011-07-28 Torvald Riegel <triegel@redhat.com>
1739 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1742 2011-07-28 Torvald Riegel <triegel@redhat.com>
1744 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1745 transaction properties from the caller instead of from the
1748 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1750 2011-07-28 Torvald Riegel <triegel@redhat.com>
1752 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1753 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1755 * method-serial.cc: Same.
1756 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1757 flat nesting as default, and closed nesting on demand.
1758 (GTM::gtm_transaction::rollback): Same.
1759 (_ITM_abortTransaction): Same.
1760 (GTM::gtm_transaction::restart): Same.
1761 (GTM::gtm_transaction::trycommit): Same.
1762 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1763 (choose_code_path): New.
1764 (GTM::gtm_transaction_cp::save): New.
1765 (GTM::gtm_transaction_cp::commit): New.
1766 * query.cc (_ITM_inTransaction): Support flat nesting.
1767 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1768 (GTM::gtm_transaction): Support flat and closed nesting.
1769 * alloc.cc (commit_allocations_2): New.
1770 (commit_cb_data): New helper struct.
1771 (GTM::gtm_transaction::commit_allocations): Handle nested
1773 * libitm.texi: Update user action section, add description of nesting.
1775 2011-07-28 Torvald Riegel <triegel@redhat.com>
1777 * libitm_i.h: Add closed nesting as restart reason.
1778 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1780 2011-07-28 Torvald Riegel <triegel@redhat.com>
1782 * useraction.cc: Use vector instead of list to store actions.
1783 Also support partial rollbacks for closed nesting.
1784 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1785 * beginend.cc: Same.
1787 2011-07-28 Torvald Riegel <triegel@redhat.com>
1789 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1790 closed_nesting flags, as well as a closed nesting alternative.
1791 * method-serial.cc: Same.
1792 (serial_dispatch): Renamed to serialirr_dispatch.
1793 (GTM::dispatch_serialirr): Same.
1794 (serial_dispatch_ul): Renamed to serial_dispatch.
1795 (GTM::dispatch_serial): Same.
1797 2011-07-28 Torvald Riegel <triegel@redhat.com>
1799 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1801 2011-07-28 Torvald Riegel <triegel@redhat.com>
1803 * aatree.h (aa_tree::remove): New.
1804 (aa_tree::operator new): Add placement new.
1806 2011-07-02 Torvald Riegel <triegel@redhat.com>
1808 * containers.h: New file.
1809 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1810 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1811 * common.h: ... to here.
1812 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1815 2011-06-30 Torvald Riegel <triegel@redhat.com>
1817 * libitm_i.h (STATE_ABORTING): Remove.
1818 * beginend.cc (_ITM_abortTransaction): Same.
1819 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1820 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1821 (_ITM_rollbackTransaction): Remove.
1822 * beginend.cc: Same.
1824 * libitm.texi: Document these ABI changes.
1826 2011-06-30 Torvald Riegel <triegel@redhat.com>
1828 * libitm.texi: New file.
1829 * Makefile.am: Add libitm.texi.
1830 * Makefile.in: Rebuild.
1832 2011-06-30 Torvald Riegel <triegel@redhat.com>
1834 * libitm_i.h: Move parts to common.h and dispatch.h.
1835 * common.h: New file.
1836 * dispatch.h: New file, new dispatch class.
1837 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1838 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1839 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1840 decision to retry.cc.
1841 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1843 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1844 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1846 * barrier.cc: Use new barriers definitions.
1847 (abi_dispatch::memmove_overlap_check): New.
1848 * config/x86/x86_sse.cc: Same.
1849 * config/x86/x86_avx.cc: Same.
1850 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1852 * Makefile.in: Rebuild.
1853 * method-readonly.cc: Remove.
1854 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1855 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1857 2011-06-30 Torvald Riegel <triegel@redhat.com>
1859 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1860 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1861 * testsuite/libitm.c/dropref-2.c: Same.
1862 * testsuite/libitm.c/dropref.c: Same.
1864 2011-06-30 Torvald Riegel <triegel@redhat.com>
1866 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1867 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1868 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1870 * barrier.tpl: Same.
1872 * config/generic/tls.h: Same.
1873 * config/x86/tls.h: Same.
1877 * method-readonly.cc: Same.
1878 * method-serial.cc: Same.
1879 * method-wbetl.cc: Same.
1882 2011-03-03 Richard Henderson <rth@redhat.com>
1884 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1885 From Patrik Marlier <patrick.marlier@unine.ch>.
1887 2011-02-03 Richard Henderson <rth@redhat.com>
1889 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1890 * configure.ac: Use it.
1891 * configure, config.h.in: Rebuild.
1892 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1893 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1894 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1895 * libitm.map: Use wildcards to match size_t mangling.
1897 2010-12-14 Richard Henderson <rth@redhat.com>
1899 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1900 blocks of TIDs per thread.
1901 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1902 (setup_gtm_thr): Return the thread structure.
1903 * config/x86/tls.h (setup_gtm_thr): Likewise.
1905 2010-12-14 Richard Henderson <rth@redhat.com>
1907 * clone.cc (table_lock): Remove.
1908 (find_clone): Don't take it.
1909 (ExcludeTransaction): New helper class.
1910 (_ITM_registerTMCloneTable): Use it.
1911 (_ITM_deregisterTMCloneTable): Likewise.
1913 2010-12-14 Richard Henderson <rth@redhat.com>
1915 * config/x86/tls.h: New file.
1917 2010-07-15 Richard Henderson <rth@redhat.com>
1919 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1920 * Makefile.in: Rebuild.
1922 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1924 * method-wbetl.cc (trydropreference): Fix source line.
1926 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1928 * libitm.h: Add comment.
1929 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1931 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1933 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1934 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1935 available, use pthread mutexes.
1936 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1937 * config.h.in: Regenerate.
1938 * configure: Regenerate.
1940 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1942 * libitm.h (ITM_PURE): Define.
1943 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1945 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1947 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1948 (validate): Add comment.
1949 (trydropreference): New.
1950 * method-readonly.cc (class readonly_dispatch): Add
1952 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1953 Call trydropreference().
1954 * libitm.h (_ITM_dropReferences): Remove const attribute.
1955 * method-serial.cc (class serial_dispatch): Add trydropreference.
1956 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1958 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1960 * memcpy.cc (do_memcpy): Comment.
1962 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1964 * barrier.tpl: Add comments throughout.
1966 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1968 * method-wbetl.cc (struct w_entry): Add comments.
1972 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1974 * alloc_c.cc (_ITM_dropReferences): New.
1975 * libitm.map (_ITM_dropReferences): Add.
1976 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1977 * libitm_i.h (struct gtm_transaction): Declare
1978 drop_references_allocations and drop_references_local.
1979 * local.cc (rollback_local): Ignore memory when applicable.
1980 (drop_references_local): New.
1982 2010-06-23 Richard Henderson <rth@redhat.com>
1984 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1985 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1986 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1987 * config/alpha/target.h: Likewise.
1988 * config/generic/tls.cc (gtm_mask_stack): Use it.
1990 2010-06-23 Richard Henderson <rth@redhat.com>
1992 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1993 a mutex instead of trying a lock-free compare-and-swap on the list.
1994 (gtm_cacheline_page::operator delete): Likewise.
1996 2010-06-16 Richard Henderson <rth@redhat.com>
1998 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1999 that overlap the libitm stack.
2000 * barrier.tpl: Mark incoming stack.
2001 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2002 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2003 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2004 * memcpy.cc, memset.cc: Likewise.
2005 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2006 * config/generic/tls.h (gtm_thread): Add stack_top member.
2007 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2008 * libitm_i.h (gtm_mask_stack): Declare.
2009 * config/generic/tls.cc: New file.
2010 * Makefile.am (libitm_la_SOURCES): Add it.
2011 (AM_CXXFLAGS): Turn off exceptions.
2012 * Makefile.in: Rebuild.
2014 2010-06-16 Richard Henderson <rth@redhat.com>
2016 * alloc.cc (struct gtm_alloc_action): Move definition ...
2017 * libitm_i.h: ... here.
2018 (class gtm_transaction): Declare new and delete.
2019 * beginend.cc (alloc_tx): Reformulate as operator new.
2020 (free_tx): Reformulate as operator delete.
2021 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2023 2010-06-11 Richard Henderson <rth@redhat.com>
2025 * clone.cc (clone_entry_compare): Fix typo.
2026 From Patrik Marlier <patrick.marlier@unine.ch>.
2028 2010-05-13 Richard Henderson <rth@redhat.com>
2030 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2033 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2035 * libitm_i.h (struct gtm_transaction): Remove
2036 get_allocation_size.
2037 (record_allocation): Remove size parameter.
2038 * libitm.map (_ITM_realloc): Remove.
2039 * alloc_c.cc (_ITM_realloc): Remove.
2040 (_ITM_malloc): Remove size argument to record_allocation.
2041 (_ITM_calloc): Same.
2042 * alloc_cpp.cc (_ZGTtnwm): Same.
2043 (_ZGTtnwmRKSt9nothrow_t): Same.
2045 (_ZGTtnamRKSt9nothrow_t): Same.
2046 * alloc.cc (struct gtm_alloc_action): Remove size.
2047 (get_allocation_size): Remove.
2048 (commit_allocations): Add comment.
2049 (record_allocation): Remove size parameter.
2050 (forget_allocation): Remove set of size.
2052 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2054 * Makefile.am (abi_version): New.
2055 (AM_CXXFLAGS): Pass abi_version.
2056 * Makefile.in: Regenerate.
2057 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2059 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2061 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2062 _ITM_getTMCloneOrIrrevokable.
2063 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2064 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2066 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2068 * configure.ac: Remove Linux futex support.
2069 * configure.tgt (config_path): Same.
2070 * Makefile.am: Same.
2071 * config/linux: Remove entire directory.
2072 * configure: Rebuild.
2073 * Makefile.in: Rebuild.
2074 * testsuite/Makefile.in: Rebuild.
2076 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2078 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2079 switching to serial mode.
2080 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2082 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2084 * configure.tgt: Add emacs -*- tags.
2085 * barrier.tpl: Same.
2087 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2089 * Makefile.am: Rename serial.cc to method-serial.cc.
2090 * Makefile.in: Regenerate with automake 1.11.1.
2091 * testsuite/Makefile.in: Same.
2092 * aclocal.m4: Regenerate with aclocal 1.11.1.
2093 * method-serial.cc: Rename from serial.cc.
2094 * libitm_i.h (struct gtm_transaction): Update comment on
2097 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2099 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2100 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2102 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2104 * configure: Rebuild.
2106 2009-11-12 Richard Henderson <rth@redhat.com>
2108 * Rewrite everything in C++.
2110 2009-11-03 Richard Henderson <rth@redhat.com>
2112 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2113 * Makefile.am (libitm_la_SOURCES): Add them.
2114 * configure.ac (ARCH_X86): New conditional.
2115 * Makefile.in, configure: Rebuild.
2116 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2117 Move futex setup into "other system configury" case.
2118 * local.c (rollback_local): Merge into ...
2119 (GTM_rollback_local): ... here.
2120 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2121 (_ITM_LB): Define as an alias to GTM_LB.
2123 2009-11-03 Richard Henderson <rth@redhat.com>
2125 * method-readonly.c: New file.
2126 * Makefile.am (libitm_la_SOURCES): Add it.
2127 * Makefile.in: Rebuild.
2128 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2129 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2130 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2131 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2132 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2133 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2134 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2135 gtm_get_clock, gtm_inc_clock): New.
2136 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2137 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2138 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2139 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2140 replace uses with new libitm_i.h symbols.
2141 (dispatch_wbetl): Rename from wbetl_dispatch.
2142 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2143 away from dispatch_readonly; abort if the beginTransaction call
2144 asserted that the transaction was readonly.
2146 2009-11-03 Richard Henderson <rth@redhat.com>
2148 * memset.c: New file.
2149 * Makefile.am (libitm_la_SOURCES): Add it.
2150 * Makefile.in: Rebuild.
2151 * testsuite/libitm.c/memset-1.c: New.
2153 2009-11-03 Richard Henderson <rth@redhat.com>
2155 * dispatch.c: Remove file.
2156 * useraction.c (struct gtm_user_action): Move from libitm.h.
2157 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2158 (serial_memset, serial_memmove, serial_memcpy): Remove.
2159 (serial_W*, serial_R*): Remove.
2160 (serial_dispatch): Update to match.
2161 * configure.ac: Move Werror down below configure checks. Don't
2162 check for sys/loadavg.h, do check for malloc.h. Don't check for
2163 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2164 Use GCC_AC_FUNC_MMAP_BLACKLIST
2165 * libitm.h: Split out all internal items to...
2166 * libitm_i.h: ... here. New file.
2167 * copymask.c: New file.
2168 * local.c (struct gtm_local_undo): Move from libitm.h.
2169 (GTM_alloc_local): Rename from alloc_local; export.
2170 * memcpy.c: New file.
2171 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2172 * config/posix/page.c: New file.
2173 * config/posix/target_tls.h: Remove file.
2174 * barrier.c: New file.
2175 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2177 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2178 * method-wbetl.c: Rewrite for new cacheline methods.
2179 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2181 * config/alpha/sjlj.S: Fix typo.
2182 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2183 * config/alpha/copymask.c: New file.
2184 * config/alpha/target.h (CACHELINE_SIZE): New.
2185 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2187 * config/x86/target_i.h: Copy functions from x86/target.h.
2188 * config/x86/copymask.c: New file.
2189 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2190 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2191 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2192 * config/x86/target_tls.h: Move contents to target_i.h.
2194 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2195 * testsuite/libitm.c/memcpy-1.c: New.
2197 2009-10-22 Richard Henderson <rth@redhat.com>
2199 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2200 (AM_CCASFLAGS): New.
2201 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2202 saving/restoring _AC_ARG_VAR_PRECIOUS.
2203 * Makefile.in, aclocal.m4, config.h.in, configure,
2204 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2206 2009-10-22 Richard Henderson <rth@redhat.com>
2208 * testsuite/*: Update for new compiler syntax.
2210 2009-10-21 Richard Henderson <rth@redhat.com>
2212 * libitm.h (_ITM_abortReason): Add outerAbort.
2214 2009-08-03 Richard Henderson <rth@redhat.com>
2216 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2217 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2218 * method-wbetl.c (struct w_entry): Remove mask.
2219 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2222 2009-07-22 Richard Henderson <rth@redhat.com>
2224 * eh_cpp.c: New file.
2225 * Makefile.am (libitm_la_SOURCES): Add it.
2226 * Makefile.in: Rebuild.
2227 * beginend.c (GTM_rollback_transaction): Undo exception state.
2228 (GTM_trycommit_transaction): Mark inline.
2229 (GTM_trycommit_and_finalize_transaction): Split out from ...
2230 (_ITM_commitTransaction): ... here.
2231 (_ITM_commitTransactionEH): New function.
2232 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2233 cxa_unthrown, eh_in_flight; reorder.
2235 * testsuite/libitm.c++/c++.exp: New.
2236 * testsuite/libitm.c++/eh-1.C: New.
2238 * aatree.c (aa_free): Remove REGPARM.
2239 * aatree.h: Remove all REGPARM.
2241 2009-07-18 Richard Henderson <rth@redhat.com>
2243 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2244 * Makefile.am (libitm_la_SOURCES): Add them.
2245 * Makefile.in: Rebuild.
2246 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2247 (GTM_trycommit_transaction): Likewise.
2248 * libitm.h: Include aatree.h
2249 (struct gtm_alloc_action): New.
2250 (struct gtm_transaction): Add alloc_actions.
2251 (GTM_record_allocation, GTM_forget_allocation): Declare.
2252 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2253 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2254 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2255 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2256 _ZGTtdaPvRKSt9nothrow_t): Export.
2258 2009-07-18 Richard Henderson <rth@redhat.com>
2260 * target_tls.h: Move ...
2261 * config/posix/target_tls.h: ... here.
2263 2009-07-07 Richard Henderson <rth@redhat.com>
2265 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2267 2009-07-07 Richard Henderson <rth@redhat.com>
2271 2009-07-07 Richard Henderson <rth@redhat.com>
2273 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2274 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2276 * configure.tgt: Don't use -ftls-model for x86 linux.
2277 * libitm.h: Include target.h after standard includes.
2278 (_gtm_thr): Rename from gtm_thr.
2279 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2280 (gtm_disp, set_gtm_disp): New.
2281 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2282 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2283 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2285 2009-07-07 Richard Henderson <rth@redhat.com>
2287 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2289 2009-07-06 Richard Henderson <rth@redhat.com>
2291 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2292 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2293 (_ITM_beginTransaction): Take variadic arguments.
2294 (_ITM_registerThrownObject): Declare.
2295 * beginend.c, serial.c: Update.
2296 * libitm.map: Add _ITM_registerThrownObject.
2298 2009-01-28 Richard Henderson <rth@redhat.com>
2300 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2301 * Makefile.in: Rebuild.
2302 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2303 (GTM_restart_transaction): Fix uninstrumented code check.
2304 * retry.c (GTM_decide_retry_strategy): Add serial check.
2305 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2306 automatically go irrevokable when in serial mode.
2307 * clone.c: New file.
2308 * libitm.h, libitm.map: Update.
2310 2009-01-27 Richard Henderson <rth@redhat.com>
2312 * Makefile.am (LTCCASCOMPILE): Define.
2313 (libitm_la_SOURCES): Add methid-wbetl.c.
2314 * testsuite/Makefile.am: New
2315 * configure.ac: Add testsuite/Makefile.
2316 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2317 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2318 (_ITM_abortTransaction): Finalize implementation method; pass
2319 transaction properties to longjmp.
2320 (GTM_restart_transaction): Split out from ...
2321 (_ITM_commitTransaction): ... here.
2322 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2323 Move to config/x86/target.h.
2324 * config/linux/alpha/futex_bits.h: New.
2325 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2326 * config/x86/target.h: Disable target types for 32-bit.
2327 * config/alpha/sjlj.S, config/alpha/target.h: New.
2328 * libitm.h (struct gtm_dispatch): Add init, fini.
2329 (enum restart_reason): New.
2330 (struct gtm_transaction): Add method and restarts.
2331 * retry.c (GTM_decide_retry_strategy): Implement.
2332 * serial.c (serial_init, serial_fini): New.
2333 (GTM_serialmode): Finialize outgoing method.
2334 * method-wbetl.c: New.
2336 2008-12-09 Richard Henderson <rth@redhat.com>
2338 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2339 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2340 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2341 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2342 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2343 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2344 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2345 * serial.c (serial_R##T, serial_W##T): Likewise.
2347 2008-11-21 Richard Henderson <rth@redhat.com>
2351 Copyright (C) 2008-2022 Free Software Foundation, Inc.
2353 Copying and distribution of this file, with or without modification,
2354 are permitted in any medium without royalty provided the copyright
2355 notice and this notice are preserved.