1 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
3 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
4 target does not support HAVE_ELF_STYLE_WEAKREF then do not
5 try to test the __cxa_get_globals against NULL.
7 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
10 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
12 2021-01-15 Jakub Jelinek <jakub@redhat.com>
15 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
16 be added through preprocessor check on
17 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
19 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
21 * configure: Re-generate.
23 2021-01-01 Jakub Jelinek <jakub@redhat.com>
25 * libitm.texi: Bump @copying's copyright year.
27 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
30 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
31 * configure: Regenerate.
33 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
35 * configure: Regenerate.
37 2020-10-01 Alan Modra <amodra@gmail.com>
39 * config/powerpc/sjlj.S: Support __PCREL__ code.
41 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
43 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
45 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
47 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
48 and add BTI c to function entries.
50 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
52 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
54 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
57 * configure: Regenerated.
59 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
62 * configure: Regenerated.
64 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
66 * configure: Regenerated.
68 2020-05-12 Nathan Sidwell <nathan@acm.org>
70 Fix throw specifiers on interface.
71 * libitm/libitm.h (_ITM_NOTHROW): Define.
72 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
73 (_ITM_cxa_begin_catch): Use it.
74 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
75 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
77 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
78 (_ITM_cxa_begin_catch): Likewise.
80 2020-05-05 Nathan Sidwell <nathan@acm.org>
82 * testsuite/lib/libitm.exp (libitm_init): Add
83 -fdiagnostics-color=never to options.
85 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
90 * configure: Regenerated.
92 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
94 * configure.ac: Handle `--with-toolexeclibdir='.
95 * Makefile.in: Regenerate.
96 * aclocal.m4: Regenerate.
97 * configure: Regenerate.
98 * testsuite/Makefile.in: Regenerate.
100 2020-01-01 Jakub Jelinek <jakub@redhat.com>
102 Update copyright years.
104 * libitm.texi: Bump @copying's copyright year.
106 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
109 * configure.tgt: Avoid IE tls on *-*-musl*.
111 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
113 * configure: Regenerate.
115 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
117 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
119 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
121 * configure.tgt: Handle *-*-uclinux*.
122 * configure: Regenerate.
124 2019-09-06 Florian Weimer <fweimer@redhat.com>
126 * configure: Regenerate.
128 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
131 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
132 scanning to conform to the GNU Coding Standards.
133 * configure: Regenerate.
135 2019-05-03 Jakub Jelinek <jakub@redhat.com>
137 * Makefile.am (finclude): Remove.
138 * Makefile.in: Regenerated.
140 2019-01-01 Jakub Jelinek <jakub@redhat.com>
142 Update copyright years.
144 2019-01-01 Jakub Jelinek <jakub@redhat.com>
146 * libitm.texi: Bump @copying's copyright year.
148 2018-12-16 Jakub Jelinek <jakub@redhat.com>
151 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
152 void * to void (*) (void *).
153 (_ITM_cxa_throw): Likewise.
154 * libitm.h (_ITM_cxa_throw): Likewise.
155 * libitm.texi (_ITM_cxa_throw): Likewise.
157 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
159 * config/powerpc/target.h (htm_available): Add support for
160 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
162 2018-10-31 Joseph Myers <joseph@codesourcery.com>
165 * Makefile.am: Include multilib.am.
166 (AUTOMAKE_OPTIONS): Add info-in-builddir.
167 (CLEANFILES): Remove libitm.info.
168 * configure.ac: Remove AC_PREREQ.
169 * testsuite/Makefile.am (RUNTEST): Remove quotes.
170 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
173 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
176 * method-serial.cc: Mark varible as potentially unused
179 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
181 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
182 absolute relocation in a shared library.
184 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
187 * config/linux/x86/tls.h (SEG_READ): Use the offset of
188 __private_tm as base.
189 (SEG_WRITE): Likewise.
190 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
191 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
192 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
193 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
194 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
196 2018-05-17 Jason Merrill <jason@redhat.com>
198 * beginend.cc (save): Disable -Werror=deprecated-copy.
200 2018-05-02 Tom de Vries <tom@codesourcery.com>
203 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
205 2018-05-02 Tom de Vries <tom@codesourcery.com>
208 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
210 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
212 * config/x86/sjlj.S (_ITM_beginTransaction): Add
213 (__CET__ & 2) != 0 check for shadow stack.
214 (GTM_longjmp): Likewise.
216 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
218 * configure: Regenerated.
220 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
223 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
225 2018-04-19 Jakub Jelinek <jakub@redhat.com>
227 * configure: Regenerated.
229 2018-04-18 David Malcolm <dmalcolm@redhat.com>
232 * configure: Regenerate.
234 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
237 * configure: Regenerate.
239 2018-01-03 Jakub Jelinek <jakub@redhat.com>
241 Update copyright years.
243 * libitm.texi: Bump @copying's copyright year.
245 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
247 * Makefile.in: Regenerate.
248 * acinclude.m4: Add enable.m4 and cet.m4.
249 * config/x86/sjlj.S: Include cet.h.
250 (_ITM_beginTransaction): Add _CET_ENDBR.
251 Save Shadow Stack pointer.
252 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
253 * config/x86/target.h (struct gtm_jmpbuf):
254 Add new field for Shadow Stack pointer.
255 * configure: Regenerate.
256 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
257 * configure.ac: Update libtool_VERSION for x86.
258 * testsuite/Makefile.in: Regenerate.
260 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
262 * libitm/config/x86/target.h: Add new field (ssp).
263 * libitm/config/x86/sjlj.S: Change offsets.
265 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
267 * testsuite/lib/libitm.exp: Load scanlang.exp.
269 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
271 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
273 2017-01-21 Jakub Jelinek <jakub@redhat.com>
276 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
277 of cat to get version from BASE-VER file.
278 * testsuite/Makefile.in: Regenerated.
280 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
282 * config/x86/target.h (htm_available): Determine vendor from
283 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
285 2017-01-18 Torvald Riegel <triegel@redhat.com>
287 * config/x86/target.h (htm_available): Add check for some processors
288 on which TSX is broken.
290 2017-01-17 Jakub Jelinek <jakub@redhat.com>
293 * configure.ac: Add GCC_BASE_VER.
294 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
295 get version from BASE-VER file.
296 * testsuite/Makefile.in: Regenerated.
297 * configure: Regenerated.
298 * Makefile.in: Regenerated.
300 2017-01-04 Alan Modra <amodra@gmail.com>
302 * Makefile.in: Regenerate.
303 * testsuite/Makefile.in: Regenerate.
305 2017-01-01 Jakub Jelinek <jakub@redhat.com>
307 Update copyright years.
309 * libitm.texi: Bump @copying's copyright year.
311 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
313 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
314 * aclocal.m4: Regenerate.
315 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
316 LIBITM_CHECK_LINKER_HWCAP.
318 2016-11-15 Matthias Klose <doko@ubuntu.com>
320 * configure: Regenerate.
322 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
325 * util.cc (xmalloc): Use posix_memalign to allocate memory on
326 on cache line if requested.
328 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
330 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
331 function attribute to disable floating point in begin_transaction() on
333 * beginend.cc (begin_transaction): Use
334 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
336 2016-01-22 Torvald Riegel <triegel@redhat.com>
338 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
340 (htm_fastpath): Remove.
341 (gtm_thread::begin_transaction): Fix HTM fastpath.
342 (_ITM_commitTransaction): Adapt.
343 (_ITM_commitTransactionEH): Adapt.
344 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
346 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
347 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
348 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
349 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
350 * libitm/method-serial.cc (htm_mg): Adapt.
351 (gtm_thread::serialirr_mode): Adapt.
352 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
354 2016-01-21 Torvald Riegel <triegel@redhat.com>
356 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
359 2016-01-19 Richard Henderson <rth@redhat.com>
364 2016-01-13 Richard Henderson <rth@redhat.com>
366 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
367 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
368 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
369 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
370 * configure.ac (ARCH_AARCH64): New conditional.
371 (ARCH_PPC, ARCH_S390): Likewise.
372 * Makefile.in, configure: Rebuild.
374 * libitm.h (_ITM_TYPE_M128): Always define.
375 * vect64.cc: Split ...
376 * vect128.cc: ... out of...
377 * config/x86/x86_sse.cc: ... here.
378 * config/arm/neon.cc: New file.
380 2016-01-19 Torvald Riegel <triegel@redhat.com>
382 * local_type_traits: Remove file.
383 * libitm_i.h: Don't include it anymore.
384 (sized_integral): Remove.
386 2016-01-16 Torvald Riegel <triegel@redhat.com>
388 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
390 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
391 * libitm/testsuite/libitm.c/priv-1.c: New.
393 2015-01-15 Torvald Riegel <triegel@redhat.com>
395 testsuite/libitm.c++/libstdc++-safeexc.C: New.
397 2016-01-13 Torvald Riegel <triegel@redhat.com>
399 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
400 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
401 (gtm_rwlock::write_unlock): Likewise.
403 2016-01-13 Richard Henderson <rth@redhat.com>
405 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
406 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
407 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
408 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
409 * configure.ac (ARCH_AARCH64): New conditional.
410 (ARCH_PPC, ARCH_S390): Likewise.
411 * Makefile.in, configure: Rebuild.
413 * libitm.h (_ITM_TYPE_M128): Always define.
414 * vect64.cc: Split ...
415 * vect128.cc: ... out of...
416 * config/x86/x86_sse.cc: ... here.
417 * config/arm/neon.cc: New file.
419 2016-01-13 Torvald Riegel <triegel@redhat.com>
421 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
422 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
423 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
424 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
425 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
426 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
427 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
428 (serialirr_dispatch::snapshot_most_recent): New.
429 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
431 2016-01-12 Torvald Riegel <triegel@redhat.com>
433 * libitm_i.h (gtm_mask_stack): Remove.
434 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
435 * stmlock.h: Remove file.
436 * config/alpha/cacheline.h: Likewise.
437 * config/generic/cacheline.h: Likewise.
438 * config/powerpc/cacheline.h: Likewise.
439 * config/sparc/cacheline.h: Likewise.
440 * config/x86/cacheline.h: Likewise.
442 2016-01-04 Jakub Jelinek <jakub@redhat.com>
444 Update copyright years.
446 * libitm.texi: Bump @copying's copyright year.
448 2015-11-26 Torvald Riegel <triegel@redhat.com>
450 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
451 (ml_wt_dispatch::pre_write): Adapt.
452 (ml_wt_dispatch::pre_load): Likewise.
454 2015-11-22 Torvald Riegel <triegel@redhat.com>
456 * libitm_i.h (gtm_alloc_action): Remove union.
457 * testsuite/libitm.c/alloc-1.c: New.
459 2015-11-19 Torvald Riegel <triegel@redhat.com>
461 * testsuite/libitm.c++/eh-5.C: New.
462 * libitm.h (_ITM_cxa_free_exception): New.
463 * libitm.map (_ITM_cxa_free_exception): Add it.
464 * libitm.texi: Update ABI docs.
465 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
466 (gtm_transaction_cp::cxa_uncaught_count): Add.
467 (gtm_thread::cxa_unthrown): Remove.
468 (gtm_thread::cxa_uncaught_count_ptr): Add.
469 (gtm_thread::cxa_uncaught_count): Add.
470 (gtm_thread::drop_references_allocations): Rename to...
471 (gtm_thread::discard_allocation): ... this and adapt.
472 (gtm_thread::init_cpp_exceptions): New.
473 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
474 (gtm_thread::begin_transaction): Likewise.
475 (gtm_transaction_cp::save): Likewise.
476 (gtm_thread::trycommit): Likewise.
477 * eh_cpp.cc: Add overview comments.
478 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
479 (free_any_exception, _ITM_cxa_free_exception): New.
480 (gtm_thread::init_cpp_exceptions): Define.
481 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
482 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
483 (gtm_thread::revert_cpp_exceptions): Likewise.
485 2015-11-09 Torvald Riegel <triegel@redhat.com>
487 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
488 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
489 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
490 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
491 (gtm_thread::forget_allocations): New overload with size_t argument.
492 * alloc.c (gtm_thread::forget_allocation): Define new overload and
494 (gtm_thread::record_allocation): Adapt.
495 (gtm_thread::commit_allocations_1): Adapt.
496 (gtm_thread::commit_allocations_2): Adapt.
497 * testsuite/libitm.c++/newdelete.C: New.
499 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
500 Joseph Myers <joseph@codesourcery.com>
501 Mark Shinwell <shinwell@codesourcery.com>
502 Andrew Stubbs <ams@codesourcery.com>
503 Rich Felker <dalias@libc.org>
505 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
506 GTM_begin_transaction for compatibility with FDPIC.
508 2015-10-09 David Malcolm <dmalcolm@redhat.com>
510 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
513 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
516 * local_atomic (__always_inline): Rename to...
517 (__libitm_always_inline): ... this.
519 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
522 * config/powerpc/sjlj.S: Port to Xcode 2.5.
524 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
526 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
527 operands "op" and "val" to int.
529 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
531 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
532 "op" and "val" to int.
534 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
536 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
537 "op" and "val" to int.
539 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
541 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
542 Declare as static int.
543 (FUTEX_PRIVATE_FLAG): Remove L suffix.
544 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
546 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
548 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
551 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
553 * Makefile.in: Regenerated with automake-1.11.6.
554 * aclocal.m4: Likewise.
555 * configure: Likewise.
556 * testsuite/Makefile.in: Likewise.
558 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
560 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
561 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
563 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
566 * libitm.c/stackundo.c (test2): Make it static.
569 2015-01-05 Jakub Jelinek <jakub@redhat.com>
571 Update copyright years.
573 2015-01-05 Jakub Jelinek <jakub@redhat.com>
575 * libitm.texi: Bump @copying's copyright year.
577 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
579 * testsuite/lib/libitm.exp: Load target-utils.exp.
580 Move load of target-supports.exp earlier.
582 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
584 * configure.tgt (x86_64): Tune -m32 multilib to generic.
586 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
589 * configure: Regenerated.
591 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
594 * configure: Regenerate.
596 2014-10-06 Marek Polacek <polacek@redhat.com>
598 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
599 * testsuite/libitm.c/memset-1.c: Likewise.
601 2014-07-24 Richard Henderson <rth@redhat.com>
603 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
604 addressing mode in epilogue.
606 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
609 -mclear-hwcap instead.
610 * configure: Regenerate.
611 * clearcap.map: Remove.
613 2014-05-21 John Marino <gnugcc@marino.st>
615 * configure.tgt (*-*-dragonfly*): New target.
617 2014-05-19 Richard Henderson <rth@redhat.com>
619 * config/aarch64/sjlj.S: New file.
620 * config/aarch64/target.h: New file.
621 * configure.tgt: Enable aarch64.
623 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
625 * config/generic/asmcfi.h: Also check for
626 __GCC_HAVE_DWARF2_CFI_ASM.
628 2013-04-02 Richard Henderson <rth@redhat.com>
630 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
631 * config/arm/target.h, config/sh/target.h: Likewise.
632 * config/sparc/target.h, config/x86/target.h: Likewise.
634 2014-03-26 Jakub Jelinek <jakub@redhat.com>
636 * config/linux/futex_bits.h: Include errno.h.
637 (sys_futex0): If syscall returns -1, return -errno rather than
640 2014-03-26 Joseph Myers <joseph@codesourcery.com>
642 * libitm.texi (Index): Rename to Library Index.
644 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
647 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
648 (x86_avx.lo): Append -mavx to CXXFLAGS.
649 * Makefile.in: Regenerate.
651 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
653 Update copyright years
655 2014-01-02 Tobias Burnus <burnus@net-b.de>
657 * libitm.texi: Bump @copying's copyright year.
659 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
661 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
662 (FUNC): Define ELFv2 variant.
669 2013-09-20 Alan Modra <amodra@gmail.com>
671 * configure: Regenerate.
673 2013-08-30 Torvald Riegel <triegel@redhat.com>
675 * config/posix/rwlock.cc: Fix initialization order.
677 2013-08-30 Torvald Riegel <triegel@redhat.com>
679 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
680 (htm_fastpath): Assign an asm name.
681 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
683 (_ITM_actions): Likewise.
684 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
686 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
687 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
688 field to the start of the structure.
689 * config/linux/rwlock.h (gtm_rwlock): Update comments.
690 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
691 handling for custom HTM fast paths.
693 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
695 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
697 * configure.tgt: Add -msoft-float to XCFLAGS.
699 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
701 * configure.tgt: Add -msoft-float to XCFLAGS.
703 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
705 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
706 (htm_transaction_active): Enable zEC12 instructions in the
708 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
710 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
712 * acinclude.m4: Add htm asm check for s390.
713 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
714 * configure: Regenerate.
715 * config/s390/target.h: Remove __HTM__ check.
716 (htm_available): Call getauxval to get hwcaps and check whether
717 HTM is available or not.
719 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
721 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
722 * configure.ac: Use it.
723 (AC_CHECK_HEADERS): Check for sys/auxv.h.
724 (AC_CHECK_FUNCS): Check for getauxval.
725 * config.h.in, configure: Rebuild.
726 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
727 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
728 (USE_HTM_FASTPATH): Define.
729 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
730 _HTM_RETRIES) New macros.
731 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
732 htm_begin_success, htm_commit, htm_transaction_active): New functions.
734 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
736 * config/s390/target.h: Include htmintrin.h.
737 (_HTM_ITM_RETRIES): New macro definition.
738 (htm_available, htm_init, htm_begin, htm_begin_success)
739 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
741 2013-06-20 Iain Sandoe <iain@codesourcery.com>
742 Cesar Philippidis <cesar@codesourcery.com>
744 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
745 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
746 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
747 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
749 2013-06-20 Torvald Riegel <triegel@redhat.com>
751 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
752 (_ITM_getTransactionId): Same.
753 * config/x86/target.h (htm_transaction_active): New.
755 2013-06-20 Torvald Riegel <triegel@redhat.com>
758 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
761 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
764 * local_atomic (__always_inline): Always define our version.
765 (__calculate_memory_order): Mark inline.
766 (atomic_thread_fence): Ditto.
767 (atomic_signal_fence): Ditto.
768 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
769 (atomic_bool::atomic_flag_clear_explicit): Ditto.
770 (atomic_bool::atomic_flag_test_and_set): Ditto.
771 (atomic_bool::atomic_flag_clear): Ditto.
773 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
775 * config/s390/sjlj.S: New file.
776 * config/s390/target.h: New file.
777 * configure.tgt: Set options for S/390.
779 2013-03-23 Andi Kleen <ak@linux.intel.com>
781 * local_atomic (__always_inline): Add.
782 (__calculate_memory_order, atomic_thread_fence,
783 atomic_signal_fence, test_and_set, clear, store, load,
784 exchange, compare_exchange_weak, compare_exchange_strong,
785 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
786 Add __always_inline to force inlining.
788 2013-02-11 Iain Sandoe <iain@codesourcery.com>
789 Jack Howarth <howarth@bromo.med.uc.edu>
790 Patrick Marlier <patrick.marlier@gmail.com>
793 * alloc_cpp.cc: Enable function declarations on darwin.
794 * eh_cpp.cc: Likewise.
796 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
798 Update copyright years.
800 2012-11-09 Torvald Riegel <triegel@redhat.com>
802 * beginend.cc (htm_fastpath): New.
803 (gtm_thread::begin_transaction, _ITM_commitTransaction,
804 _ITM_commitTransactionEH): Add HTM fastpath handling.
805 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
806 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
807 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
808 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
809 * configure.tgt: Add -mrtm to XCFLAGS.
810 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
811 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
812 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
813 * retry.cc (parse_default_method): Add HTM method parsing.
814 (gtm_thread::number_of_threads_changed): Use HTM by default if
817 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
819 * configure: Regenerate.
821 2012-10-31 Richard Henderson <rth@redhat.com>
823 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
824 * configure.ac: Use it.
825 * config.h.in, configure: Rebuild.
826 * testsuite/Makefile.in: Rebuild.
828 2012-10-24 Torvald Riegel <triegel@redhat.com>
830 * libitm.texi: Clarify ABI requirements for data-logging functions.
832 2012-10-24 Torvald Riegel <triegel@redhat.com>
834 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
835 it requires serial mode instead of assuming that for certain
837 * dispatch.h (abi_dispatch::requires_serial): New.
838 (abi_dispatch::abi_dispatch): Adapt.
839 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
840 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
841 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
842 serial_dispatch::serial_dispatch,
843 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
845 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
847 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
848 and ia32 declarations some more.
849 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
851 2012-09-20 Jakub Jelinek <jakub@redhat.com>
854 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
855 * configure: Regenerate.
856 * Makefile.in: Regenerate.
858 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
860 * configure: Regenerated.
862 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
864 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
866 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
868 * eh_cpp.cc: Fix __cxa_end_catch declaration.
870 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
872 * configure: Regenerated.
874 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
877 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
880 2012-04-03 Tristan Gingold <gingold@adacore.com>
882 * configure: Regenerate.
884 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
887 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
889 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
891 * testsuite/lib/libitm.exp: load fortran-modules.exp
893 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
895 * configure.tgt (*-*-irix6*): Remove.
897 2012-03-13 Torvald Riegel <triegel@redhat.com>
900 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
903 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
905 * configure.tgt (*-*-osf*): Remove.
906 * configure: Regenerate.
908 2012-03-05 Torvald Riegel <triegel@redhat.com>
910 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
911 memtransfer/memset if size isn't larger than zero.
913 2012-03-02 Torvald Riegel <triegel@redhat.com>
915 * libitm.texi: Link to specification and add a usage example.
917 2012-02-24 Torvald Riegel <triegel@redhat.com>
919 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
920 default dispatch for more than 1 thread to ml_wt.
922 2012-02-20 Torvald Riegel <triegel@redhat.com>
924 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
926 2012-02-20 Torvald Riegel <triegel@redhat.com>
928 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
930 2012-02-20 Torvald Riegel <triegel@redhat.com>
932 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
933 serial mode corner cases made obsolete by prior gtm_rwlock changes.
934 (gl_wt_dispatch.rollback): Same.
936 2012-02-20 Torvald Riegel <triegel@redhat.com>
938 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
940 2012-02-20 Torvald Riegel <triegel@redhat.com>
942 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
943 for RfW src. Optimize number of calls to gtm_thr.
945 2012-02-20 Torvald Riegel <triegel@redhat.com>
947 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
949 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
950 (default_dispatch): Make atomic.
951 (GTM::gtm_thread::set_default_dispatch): Access atomically.
952 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
953 use decide_begin_dispatch() if default_dispatch might have changed.
954 (GTM::gtm_thread::number_of_threads_changed): Initialize
955 default_dispatch here.
957 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
958 Patrick Marlier <patrick.marlier@gmail.com>
961 * alloc_cpp.cc: No dummy definitions for darwin.
962 * eh_cpp.cc: Likewise.
964 2012-02-14 Richard Henderson <rth@redhat.com>
966 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
968 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
970 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
972 2012-02-14 Torvald Riegel <triegel@redhat.com>
974 * libitm_i.h (GTM::gtm_rwlog_entry): New.
975 (GTM::gtm_thread): Add read and write logs.
976 (GTM::dispatch_ml_wt): Declare.
977 * retry.cc (parse_default_method): Support ml_wt.
978 * method-ml.cc: New file.
979 * Makefile.am: Add method-ml.cc.
980 * Makefile.in: Regenerate.
982 2012-02-14 Torvald Riegel <triegel@redhat.com>
984 * dispatch.h (GTM::abi_dispatch::supports): New.
985 (GTM::method_group::reinit): New.
986 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
987 (GTM::gtm_thread::number_of_threads_changed): Check that the method
988 supports the current situation.
990 2012-02-14 Torvald Riegel <triegel@redhat.com>
992 * util.cc (GTM::xcalloc): New.
993 * common.h (GTM::xcalloc): Declare.
995 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
997 * config/sparc/target.h (cpu_relax): Read from CC register.
998 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1000 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1002 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1004 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1006 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1007 * config/sparc/cacheline.h: New file.
1008 * config/sparc/target.h: Likewise.
1009 * config/sparc/sjlj.S: Likewise.
1010 * config/linux/sparc/futex_bits.h: Likewise.
1012 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1014 * configure.ac (link_itm): Fix comment.
1015 * configure: Regenerate.
1016 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1018 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1021 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1022 Correct libgomp references.
1024 2012-01-24 Torvald Riegel <triegel@redhat.com>
1026 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1029 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1031 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1033 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1034 offset values. Do not copy return address. Decrement stack
1036 (GTM_longjump) [__x86_64__]: Update offset values.
1038 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1041 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1042 the first function argument to %eax.
1044 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1046 * libitm.h (_ITM_getThreadnum): Remove.
1047 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1049 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1051 * clearcap.map: New file.
1052 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1053 * configure.ac: Call it.
1054 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1055 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1056 * configure: Regenerate.
1057 * Makefile.in: Regenerate.
1058 * testsuite/Makefile.in: Regenerate.
1060 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1063 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1064 include, exclude options.
1066 2012-01-14 Torvald Riegel <triegel@redhat.com>
1068 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1070 * containers.h (GTM::vector::set_size): New.
1072 2012-01-14 Torvald Riegel <triegel@redhat.com>
1075 * config/generic/tls.h (GTM::mask_stack_top): New.
1076 (GTM::mask_stack_bottom): Declare.
1077 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1078 * local.cc (gtm_undolog::rollback): Filter out any updates that
1079 overlap the libitm stack. Add current transaction as parameter.
1080 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1081 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1082 * testsuite/libitm.c/stackundo.c: New test.
1084 2012-01-10 Richard Henderson <rth@redhat.com>
1086 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1087 * eh_cpp.cc (_Unwind_DeleteException): Define for
1088 !HAVE_ELF_STYLE_WEAKREF.
1090 2012-01-08 Torvald Riegel <triegel@redhat.com>
1092 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1093 (GTM::gtm_thread::drop_references_undolog): Remove.
1094 (GTM::gtm_thread::commit_undolog,
1095 GTM::gtm_thread::rollback_undolog): Move to ...
1096 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1097 (GTM::gtm_undolog_entry): Remove.
1098 (GTM::gtm_thread): Adapt.
1099 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1100 (GTM::gtm_thread::trycommit): Adapt.
1101 * method-serial.cc (serial_dispatch::log): Adapt.
1102 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1103 (gl_wt_dispatch::store): Fix likely/unlikely.
1104 * containers.h (GTM::vector::resize): Add additional_capacity
1105 parameter and handle it.
1106 (GTM::vector::resize_noinline): New/adapt.
1107 (GTM::vector::push): New.
1109 2012-01-06 Richard Henderson <rth@redhat.com>
1111 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1112 * config/linux/powerpc/futex_bits.h: New file.
1113 * config/powerpc/cacheline.h: New file.
1114 * config/powerpc/sjlj.S: New file.
1115 * config/powerpc/target.h: New file.
1116 * config/generic/asmcfi.h (cfi_offset): New.
1117 (cfi_restore, cfi_undefined): New.
1119 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1122 * testsuite/libitm.c/reentrant.c: Remove xfail.
1123 (thread): Pass x to pure().
1124 From Patrik Marlier <patrick.marlier@gmail.com>.
1126 2011-12-24 Torvald Riegel <triegel@redhat.com>
1128 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1129 privatization safety if already in serial mode.
1131 2011-12-24 Torvald Riegel <triegel@redhat.com>
1133 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1134 finish_serial_upgrade parameter.
1135 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1136 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1137 Don't unset reader flag.
1138 (GTM::gtm_rwlock::write_upgrade_finish): New.
1139 * config/posix/rwlock.cc: Same.
1140 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1142 * config/posix/rwlock.h: Same.
1143 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1144 flag after commit or after rollback when restarting.
1146 2011-12-24 Torvald Riegel <triegel@redhat.com>
1148 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1149 (GTM::gtm_thread::try_commit): Changed memory order.
1150 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1152 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1153 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1154 * config/linux/futex_bits.h (sys_futex0): Same.
1155 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1156 * config/linux/futex.h (futex_wait, futex_wake): Same.
1157 * config/linux/rwlock.h (gtm_rwlock::writers,
1158 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1160 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1161 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1162 gtm_rwlock::write_unlock): Fix memory orders and fences.
1163 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1164 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1165 gtm_rwlock::write_unlock): Same.
1166 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1167 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1168 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1170 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1171 gl_wt_dispatch::load, gl_wt_dispatch::store,
1172 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1173 orders and fences. Add comments.
1175 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1177 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1178 * Makefile.in: Regenerated.
1180 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1182 * configure.tgt: Add sh* case.
1183 * config/sh/target.h: New file.
1184 * config/sh/sjlj.S: New file.
1185 * config/linux/sh/futex_bits.h: New file.
1187 2011-12-14 Richard Henderson <rth@redhat.com>
1189 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1190 * config/arm/sjlj.S, config/arm/target.h: New files.
1191 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1192 (cfi_rel_offset): New.
1193 * config/linux/futex_bits.h: New file.
1194 * config/linux/futex.cc: Include futex_bits.h here...
1195 * config/linux/futex.h: ... not here.
1196 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1197 * configure.ac (ARCH_AM): New conditional.
1198 * Makefile.in, configure: Rebuild.
1199 * configure.tgt: Handle ARM.
1201 2011-12-13 Richard Henderson <rth@redhat.com>
1203 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1204 signed/unsigned comparison werror.
1206 * local_atomic: New file.
1207 * libitm_i.h: Include it.
1208 (gtm_thread::shared_state): Use atomic template.
1209 * beginend.cc (GTM::gtm_clock): Use atomic template.
1210 (global_tid): Use atomic template if 64-bit atomics available.
1211 (gtm_thread::gtm_thread): Update shared_state access.
1212 (gtm_thread::trycommit): Likewise.
1213 (choose_code_path): Update global_tid access.
1214 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1215 * stmlock.h (GTM::gtm_clock): Use atomic template.
1216 (gtm_get_clock, gtm_inc_clock): Update accesses.
1217 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1218 redundant __sync_synchronize after atomic shared_state access.
1219 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1220 (gtm_rwlock::write_lock_generic): Likewise.
1221 (gtm_rwlock::read_unlock): Likewise.
1222 * config/alpha/target.h (atomic_read_barrier): Remove.
1223 (atomic_write_barrier): Remove.
1224 * config/x86/target.h (atomic_read_barrier): Remove.
1225 (atomic_write_barrier): Remove.
1227 2011-11-30 Richard Henderson <rth@redhat.com>
1229 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1230 * beginend.c (_ITM_abortTransaction): Update to match.
1231 (GTM::gtm_thread::restart): Likewise.
1232 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1233 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1235 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1237 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1238 * Makefile.in: Regenerate.
1240 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1242 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1243 * alloc_cpp.cc: Generate dummy functions if we don't
1244 HAVE_ELF_STYLE_WEAKREF.
1245 * eh_cpp.cc: Likewise.
1246 * configure: Regenerate.
1247 * aclocal.m4: Likewise.
1248 * config.h.in: Likewise.
1249 * Makefile.in: Likewise.
1250 * testsuite/Makefile.in: Likewise.
1252 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1254 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1255 __USER_LABEL_PREFIX__ for targets that use it.
1256 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1257 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1258 in portability to non-elf targets.
1259 (GTM_longjmp): Likewise.
1260 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1263 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1265 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1266 * testsuite/libitm.c/memset-1.c: Likewise.
1268 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1270 * configure: Regenerate.
1272 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1274 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1275 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1276 * Makefile.am: Handle sun style versioning.
1277 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1278 * configure: Regenerate.
1279 * Makefile.in: Regenerate.
1281 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283 * config/generic/asmcfi.h: Fix comment.
1284 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1285 sequence without .hidden support, error for non-ELF targets.
1286 (GTM_longjmp) [__ELF__]: Only use .hidden if
1287 HAVE_ATTRIBUTE_VISIBILITY.
1289 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1291 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1292 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1294 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1295 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1297 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1300 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1301 * configure: Regenerate.
1303 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1305 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1307 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1309 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1311 (.note.GNU-stack): Only use if __linux__.
1312 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1313 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1314 * testsuite/libitm.c/reentrant.c: Likewise.
1315 * testsuite/libitm.c/simple-2.c: Likewise.
1316 * testsuite/libitm.c/txrelease.c: Likewise.
1317 * testsuite/libitm.c++/static_ctor.C: Likewise.
1319 2011-11-10 Richard Henderson <rth@redhat.com>
1321 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1322 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1323 * configure.ac (ARCH_X86_AVX): New conditional.
1324 * Makefile.in, configure: Rebuild.
1326 2011-11-09 Richard Henderson <rth@redhat.com>
1328 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1329 * configure.ac: Use it.
1330 * config.h.in, configure: Rebuild.
1331 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1333 2011-11-09 Richard Henderson <rth@redhat.com>
1335 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1336 * config/alpha/unaligned.h: Remove file.
1337 * config/generic/unaligned.h: Remove file.
1338 * config/x86/unaligned.h: Remove file.
1339 * config/generic/cachepage.h: Remove file.
1340 * config/posix/cachepage.cc: Remove file.
1341 * config/generic/cacheline.cc: Remove file.
1342 * config/x86/cacheline.cc: Remove file.
1343 * config/generic/cacheline.h (gtm_cacheline): Remove the
1344 store_mask, copy_mask, copy_mask_wb methods.
1345 * config/x86/cacheline.h: Likewise.
1346 * config/alpha/cacheline.h: Fall back to generic after setting size.
1347 * config/generic/tls.cc (gtm_mask_stack): Remove.
1348 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1349 (GTM_vpalignr_table): Remove.
1350 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1351 (GTM_pshift_table): Remove.
1352 * config/libitm_i.h: Don't include cachepage.h.
1353 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1354 * Makefile.in, testsuite/Makefile.in: Rebuild.
1356 2011-11-09 Richard Henderson <rth@redhat.com>
1358 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1359 to emit branch prediction hint.
1361 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1362 Protect .note.GNU-stack with __linux__.
1364 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1365 * configure, aclocal.m4, config.h.in: Rebuild.
1366 * config/generic/asmcfi.h: New file.
1367 * config/x86/sjlj.S: Use it.
1369 2011-11-08 Richard Henderson <rth@redhat.com>
1371 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1373 2011-11-08 Richard Henderson <rth@redhat.com>
1375 * configure.tgt: Test correct directory for supported cpus.
1377 * configure.ac: Exit if unsupported.
1378 * configure: Rebuild.
1379 * configure.tgt: Delete boilerplate from libgomp for unsupported
1380 targets. Set UNSUPPORTED for unsupported targets.
1382 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384 * configure.tgt: Handle i386 like i[456]86.
1385 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1387 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1388 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1390 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1392 * method-wbetl.cc: Update copyright notice.
1398 * barrier.tpl: Same.
1399 * useraction.cc: Same.
1403 * config/generic/tls.cc: Same.
1404 * config/generic/cacheline.h: Same.
1405 * config/generic/cachepage.h: Same.
1406 * config/generic/cacheline.cc: Same.
1407 * config/generic/unaligned.h: Same.
1408 * config/x86/cacheline.h: Same.
1409 * config/x86/cacheline.cc: Same.
1410 * config/x86/unaligned.h: Same.
1411 * config/alpha/cacheline.h: Same.
1412 * config/alpha/unaligned.h: Same.
1413 * config/alpha/sjlj.S: Same.
1414 * config/posix/cachepage.cc: Same.
1415 * config/linux/futex.h: Same.
1416 * config/linux/alpha/futex_bits.h: Same.
1418 2011-11-04 Torvald Riegel <triegel@redhat.com>
1420 * libitm.texi: No cover text and invariant sections.
1422 2011-11-03 Richard Henderson <rth@redhat.com>
1424 * local_type_traits: New file.
1425 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1427 2011-11-03 Richard Henderson <rth@redhat.com>
1429 * configure.ac: Don't test for gfortran.
1430 * configure: Rebuild.
1432 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1433 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1435 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1437 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1438 * testsuite/libitm.c/memset-1.c: Same.
1439 * testsuite/libitm.c/c.exp: Same.
1440 * testsuite/lib/libitm-dg.exp: Same.
1441 * testsuite/lib/libitm.exp: Same.
1442 * testsuite/libitm.c++/c++.exp: Same.
1444 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1446 * testsuite/config/default.exp: Update copyright date.
1447 * configure.ac: Add copyright info.
1448 * configure.tgt: Same.
1450 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1452 * testsuite/libitm.c/reentrant.c: XFAIL.
1453 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1455 2011-10-29 Torvald Riegel <triegel@redhat.com>
1457 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1459 (_ITM_abortTransaction): Handle aborts of outer transactions.
1461 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1462 * libitm.texi: Document aborts of outer transactions.
1463 * testsuite/libitm.c/cancel.c: New file.
1465 2011-10-19 Torvald Riegel <triegel@redhat.com>
1467 * testsuite/*: Change __transaction to __transaction_atomic or
1468 __transaction_relaxed.
1470 2011-10-19 Torvald Riegel <triegel@redhat.com>
1472 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1475 2011-10-19 Torvald Riegel <triegel@redhat.com>
1477 * libitm_i.h: Add gl_wt dispatch.
1478 * retry.cc (parse_default_method): Same.
1479 * method-gl.cc: New file.
1480 * Makefile.am: Use method-gl.cc.
1481 * Makefile.in: Rebuild.
1483 2011-10-19 Torvald Riegel <triegel@redhat.com>
1485 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1486 safety if requested by a TM method.
1487 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1488 privatization safety.
1489 * method-serial.cc: Same.
1491 2011-10-19 Torvald Riegel <triegel@redhat.com>
1493 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1494 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1495 undolog-related member functions from *_local to *_undolog.
1496 * local.cc (gtm_thread::commit_undolog): Same.
1497 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1498 (GTM::gtm_thread::rollback): Roll back undolog before
1499 dispatch-specific rollback.
1501 2011-10-19 Torvald Riegel <triegel@redhat.com>
1503 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1504 re-initialization of the current method group.
1505 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1507 2011-10-19 Torvald Riegel <triegel@redhat.com>
1509 * alloc.cc (commit_allocations_2): Do not free transaction-local
1510 memory when committing a nested transaction.
1512 2011-10-19 Torvald Riegel <triegel@redhat.com>
1514 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1515 serial-irrevocable dispatch, not serial.
1517 2011-10-19 Torvald Riegel <triegel@redhat.com>
1519 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1521 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1522 * method-serial.cc: Implement begin_or_restart().
1523 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1524 dispatch-specific begin_or_restart().
1525 (GTM::gtm_thread::restart): Same.
1527 2011-08-23 Torvald Riegel <triegel@redhat.com>
1529 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1530 restarting without switching to serial mode.
1531 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1532 transaction state. Choose closed-nesting alternative if available.
1533 (GTM::gtm_thread::set_default_dispatch): New.
1534 (parse_default_method): New.
1535 (GTM::gtm_thread::number_of_threads_changed): New.
1536 * method-serial.cc (GTM::serial_mg): New method group class.
1537 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1539 (GTM::serial_dispatch): Same.
1540 (GTM::serialirr_onwrite_dispatch): Same.
1541 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1542 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1544 (GTM::gtm_thread::gtm_thread): Same.
1545 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1546 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1547 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1548 choose dispatch but set state according to dispatch here.
1549 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1550 (GTM::method_group): New class.
1551 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1552 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1553 * libitm.texi: Document TM methods, method groups, method life cycle.
1554 Rename method sets to method groups.
1556 2011-08-23 Torvald Riegel <triegel@redhat.com>
1558 * config/x86/tls.h: Moved to ...
1559 * config/linux/x86/tls.h: ... here.
1561 2011-08-23 Torvald Riegel <triegel@redhat.com>
1563 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1565 * config/x86/sjlj.S: Same.
1567 2011-08-19 Torvald Riegel <triegel@redhat.com>
1569 * config/linux/rwlock.h: New file.
1570 * config/linux/rwlock.c: New file.
1571 * configure.ac: Reenable futex support (undo SVN rev 157758).
1572 * Makefile.am: Same.
1573 * configure.tgt: Same.
1574 * config/linux/alpha/futex_bits.h: Same.
1575 * config/linux/futex.h: Same. Return number of woken processes.
1576 * config/linux/futex.cc: Same.
1577 (futex_wait): Remove spinning.
1578 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1579 Use __x86_64__ instead of __LP64__.
1580 * aclocal.m4: Include generic futex checks.
1581 * configure: Rebuild.
1582 * Makefile.in: Rebuild.
1583 * testsuite/Makefile.in: Rebuild.
1584 * beginend.cc: Include pthread.h.
1585 * config/posix/cachepage.cc: Same.
1587 2011-08-12 Torvald Riegel <triegel@redhat.com>
1589 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1590 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1592 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1594 (GTM::gtm_thread::thread_num): Removed.
1595 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1596 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1597 tx-to-thread renaming.
1598 * beginend.cc: Adapted to tx-to-thread renaming.
1599 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1600 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1601 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1602 gtm_transaction to gtm_thread.
1603 (_ITM_getThreadnum): Removed. Not supported anymore.
1604 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1605 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1606 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1607 gtm_tx-to-gtm_thr renaming if necessary.
1614 * alloc_cpp.cc: Same.
1615 * method-serial.cc: Same.
1616 * config/generic/tls.cc: Same.
1617 * config/posix/rwlock.h (gtm_rwlock): Same.
1618 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1620 2011-08-12 Torvald Riegel <triegel@redhat.com>
1622 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1624 (gtm_rwlock::read_unlock): Same.
1625 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1626 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1627 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1628 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1629 w_upgrade. Replaced by per-transaction flags (in shared_state).
1630 Added c_confirmed_writers.
1631 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1632 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1633 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1634 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1635 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1636 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1637 * libitm.texi: Document locking conventions and implementations in
1640 2011-08-12 Torvald Riegel <triegel@redhat.com>
1642 * libitm_i.h (next_tx): Add list of all threads' transaction.
1643 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1644 transaction with list of transactions and ...
1645 (thread_exit_handler): ... deregister here.
1646 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1647 * config/x86/target.h: Same.
1649 2011-08-12 Torvald Riegel <triegel@redhat.com>
1651 * testsuite/libitm.c++/static_ctor.C: New file.
1653 2011-08-12 Torvald Riegel <triegel@redhat.com>
1655 * testsuite/libitm.c/reentrant.c: New file.
1657 2011-08-12 Torvald Riegel <triegel@redhat.com>
1659 * config/generic/tls.h: Remove the free list for transactions and ...
1660 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1661 (GTM::gtm_transaction::operator delete): ... and release here.
1662 (thread_exit_handler): New. Delete tx when thread terminates.
1663 (thread_exit_init): New.
1664 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1665 * testsuite/libitm.c/txrelease.c: New file.
1667 2011-08-12 Torvald Riegel <triegel@redhat.com>
1669 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1670 * testsuite/libitm.c/notx.c: New file.
1672 2011-08-12 Torvald Riegel <triegel@redhat.com>
1674 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1675 * libitm_i.h (local_tid): ... to here.
1676 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1677 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1679 2011-08-12 Torvald Riegel <triegel@redhat.com>
1681 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1682 serialirr_onwrite_dispatch as new default for now.
1683 * method-serial.cc (serialirr_onwrite_dispatch): New.
1684 (GTM::dispatch_serialirr_onwrite): New.
1687 2011-08-12 Torvald Riegel <triegel@redhat.com>
1689 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1690 * query.cc (_ITM_getTransactionId): There is no active transaction if
1691 the current nesting level is zero.
1693 2011-07-28 Torvald Riegel <triegel@redhat.com>
1695 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1698 2011-07-28 Torvald Riegel <triegel@redhat.com>
1700 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1701 transaction properties from the caller instead of from the
1704 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1706 2011-07-28 Torvald Riegel <triegel@redhat.com>
1708 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1709 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1711 * method-serial.cc: Same.
1712 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1713 flat nesting as default, and closed nesting on demand.
1714 (GTM::gtm_transaction::rollback): Same.
1715 (_ITM_abortTransaction): Same.
1716 (GTM::gtm_transaction::restart): Same.
1717 (GTM::gtm_transaction::trycommit): Same.
1718 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1719 (choose_code_path): New.
1720 (GTM::gtm_transaction_cp::save): New.
1721 (GTM::gtm_transaction_cp::commit): New.
1722 * query.cc (_ITM_inTransaction): Support flat nesting.
1723 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1724 (GTM::gtm_transaction): Support flat and closed nesting.
1725 * alloc.cc (commit_allocations_2): New.
1726 (commit_cb_data): New helper struct.
1727 (GTM::gtm_transaction::commit_allocations): Handle nested
1729 * libitm.texi: Update user action section, add description of nesting.
1731 2011-07-28 Torvald Riegel <triegel@redhat.com>
1733 * libitm_i.h: Add closed nesting as restart reason.
1734 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1736 2011-07-28 Torvald Riegel <triegel@redhat.com>
1738 * useraction.cc: Use vector instead of list to store actions.
1739 Also support partial rollbacks for closed nesting.
1740 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1741 * beginend.cc: Same.
1743 2011-07-28 Torvald Riegel <triegel@redhat.com>
1745 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1746 closed_nesting flags, as well as a closed nesting alternative.
1747 * method-serial.cc: Same.
1748 (serial_dispatch): Renamed to serialirr_dispatch.
1749 (GTM::dispatch_serialirr): Same.
1750 (serial_dispatch_ul): Renamed to serial_dispatch.
1751 (GTM::dispatch_serial): Same.
1753 2011-07-28 Torvald Riegel <triegel@redhat.com>
1755 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1757 2011-07-28 Torvald Riegel <triegel@redhat.com>
1759 * aatree.h (aa_tree::remove): New.
1760 (aa_tree::operator new): Add placement new.
1762 2011-07-02 Torvald Riegel <triegel@redhat.com>
1764 * containers.h: New file.
1765 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1766 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1767 * common.h: ... to here.
1768 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1771 2011-06-30 Torvald Riegel <triegel@redhat.com>
1773 * libitm_i.h (STATE_ABORTING): Remove.
1774 * beginend.cc (_ITM_abortTransaction): Same.
1775 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1776 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1777 (_ITM_rollbackTransaction): Remove.
1778 * beginend.cc: Same.
1780 * libitm.texi: Document these ABI changes.
1782 2011-06-30 Torvald Riegel <triegel@redhat.com>
1784 * libitm.texi: New file.
1785 * Makefile.am: Add libitm.texi.
1786 * Makefile.in: Rebuild.
1788 2011-06-30 Torvald Riegel <triegel@redhat.com>
1790 * libitm_i.h: Move parts to common.h and dispatch.h.
1791 * common.h: New file.
1792 * dispatch.h: New file, new dispatch class.
1793 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1794 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1795 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1796 decision to retry.cc.
1797 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1799 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1800 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1802 * barrier.cc: Use new barriers definitions.
1803 (abi_dispatch::memmove_overlap_check): New.
1804 * config/x86/x86_sse.cc: Same.
1805 * config/x86/x86_avx.cc: Same.
1806 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1808 * Makefile.in: Rebuild.
1809 * method-readonly.cc: Remove.
1810 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1811 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1813 2011-06-30 Torvald Riegel <triegel@redhat.com>
1815 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1816 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1817 * testsuite/libitm.c/dropref-2.c: Same.
1818 * testsuite/libitm.c/dropref.c: Same.
1820 2011-06-30 Torvald Riegel <triegel@redhat.com>
1822 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1823 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1824 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1826 * barrier.tpl: Same.
1828 * config/generic/tls.h: Same.
1829 * config/x86/tls.h: Same.
1833 * method-readonly.cc: Same.
1834 * method-serial.cc: Same.
1835 * method-wbetl.cc: Same.
1838 2011-03-03 Richard Henderson <rth@redhat.com>
1840 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1841 From Patrik Marlier <patrick.marlier@unine.ch>.
1843 2011-02-03 Richard Henderson <rth@redhat.com>
1845 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1846 * configure.ac: Use it.
1847 * configure, config.h.in: Rebuild.
1848 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1849 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1850 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1851 * libitm.map: Use wildcards to match size_t mangling.
1853 2010-12-14 Richard Henderson <rth@redhat.com>
1855 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1856 blocks of TIDs per thread.
1857 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1858 (setup_gtm_thr): Return the thread structure.
1859 * config/x86/tls.h (setup_gtm_thr): Likewise.
1861 2010-12-14 Richard Henderson <rth@redhat.com>
1863 * clone.cc (table_lock): Remove.
1864 (find_clone): Don't take it.
1865 (ExcludeTransaction): New helper class.
1866 (_ITM_registerTMCloneTable): Use it.
1867 (_ITM_deregisterTMCloneTable): Likewise.
1869 2010-12-14 Richard Henderson <rth@redhat.com>
1871 * config/x86/tls.h: New file.
1873 2010-07-15 Richard Henderson <rth@redhat.com>
1875 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1876 * Makefile.in: Rebuild.
1878 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1880 * method-wbetl.cc (trydropreference): Fix source line.
1882 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1884 * libitm.h: Add comment.
1885 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1887 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1889 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1890 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1891 available, use pthread mutexes.
1892 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1893 * config.h.in: Regenerate.
1894 * configure: Regenerate.
1896 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1898 * libitm.h (ITM_PURE): Define.
1899 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1901 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1903 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1904 (validate): Add comment.
1905 (trydropreference): New.
1906 * method-readonly.cc (class readonly_dispatch): Add
1908 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1909 Call trydropreference().
1910 * libitm.h (_ITM_dropReferences): Remove const attribute.
1911 * method-serial.cc (class serial_dispatch): Add trydropreference.
1912 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1914 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1916 * memcpy.cc (do_memcpy): Comment.
1918 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1920 * barrier.tpl: Add comments throughout.
1922 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1924 * method-wbetl.cc (struct w_entry): Add comments.
1928 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1930 * alloc_c.cc (_ITM_dropReferences): New.
1931 * libitm.map (_ITM_dropReferences): Add.
1932 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1933 * libitm_i.h (struct gtm_transaction): Declare
1934 drop_references_allocations and drop_references_local.
1935 * local.cc (rollback_local): Ignore memory when applicable.
1936 (drop_references_local): New.
1938 2010-06-23 Richard Henderson <rth@redhat.com>
1940 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1941 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1942 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1943 * config/alpha/target.h: Likewise.
1944 * config/generic/tls.cc (gtm_mask_stack): Use it.
1946 2010-06-23 Richard Henderson <rth@redhat.com>
1948 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1949 a mutex instead of trying a lock-free compare-and-swap on the list.
1950 (gtm_cacheline_page::operator delete): Likewise.
1952 2010-06-16 Richard Henderson <rth@redhat.com>
1954 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1955 that overlap the libitm stack.
1956 * barrier.tpl: Mark incoming stack.
1957 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1958 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1959 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1960 * memcpy.cc, memset.cc: Likewise.
1961 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1962 * config/generic/tls.h (gtm_thread): Add stack_top member.
1963 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1964 * libitm_i.h (gtm_mask_stack): Declare.
1965 * config/generic/tls.cc: New file.
1966 * Makefile.am (libitm_la_SOURCES): Add it.
1967 (AM_CXXFLAGS): Turn off exceptions.
1968 * Makefile.in: Rebuild.
1970 2010-06-16 Richard Henderson <rth@redhat.com>
1972 * alloc.cc (struct gtm_alloc_action): Move definition ...
1973 * libitm_i.h: ... here.
1974 (class gtm_transaction): Declare new and delete.
1975 * beginend.cc (alloc_tx): Reformulate as operator new.
1976 (free_tx): Reformulate as operator delete.
1977 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1979 2010-06-11 Richard Henderson <rth@redhat.com>
1981 * clone.cc (clone_entry_compare): Fix typo.
1982 From Patrik Marlier <patrick.marlier@unine.ch>.
1984 2010-05-13 Richard Henderson <rth@redhat.com>
1986 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1989 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1991 * libitm_i.h (struct gtm_transaction): Remove
1992 get_allocation_size.
1993 (record_allocation): Remove size parameter.
1994 * libitm.map (_ITM_realloc): Remove.
1995 * alloc_c.cc (_ITM_realloc): Remove.
1996 (_ITM_malloc): Remove size argument to record_allocation.
1997 (_ITM_calloc): Same.
1998 * alloc_cpp.cc (_ZGTtnwm): Same.
1999 (_ZGTtnwmRKSt9nothrow_t): Same.
2001 (_ZGTtnamRKSt9nothrow_t): Same.
2002 * alloc.cc (struct gtm_alloc_action): Remove size.
2003 (get_allocation_size): Remove.
2004 (commit_allocations): Add comment.
2005 (record_allocation): Remove size parameter.
2006 (forget_allocation): Remove set of size.
2008 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2010 * Makefile.am (abi_version): New.
2011 (AM_CXXFLAGS): Pass abi_version.
2012 * Makefile.in: Regenerate.
2013 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2015 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2017 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2018 _ITM_getTMCloneOrIrrevokable.
2019 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2020 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2022 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2024 * configure.ac: Remove Linux futex support.
2025 * configure.tgt (config_path): Same.
2026 * Makefile.am: Same.
2027 * config/linux: Remove entire directory.
2028 * configure: Rebuild.
2029 * Makefile.in: Rebuild.
2030 * testsuite/Makefile.in: Rebuild.
2032 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2034 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2035 switching to serial mode.
2036 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2038 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2040 * configure.tgt: Add emacs -*- tags.
2041 * barrier.tpl: Same.
2043 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2045 * Makefile.am: Rename serial.cc to method-serial.cc.
2046 * Makefile.in: Regenerate with automake 1.11.1.
2047 * testsuite/Makefile.in: Same.
2048 * aclocal.m4: Regenerate with aclocal 1.11.1.
2049 * method-serial.cc: Rename from serial.cc.
2050 * libitm_i.h (struct gtm_transaction): Update comment on
2053 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2055 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2056 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2058 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2060 * configure: Rebuild.
2062 2009-11-12 Richard Henderson <rth@redhat.com>
2064 * Rewrite everything in C++.
2066 2009-11-03 Richard Henderson <rth@redhat.com>
2068 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2069 * Makefile.am (libitm_la_SOURCES): Add them.
2070 * configure.ac (ARCH_X86): New conditional.
2071 * Makefile.in, configure: Rebuild.
2072 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2073 Move futex setup into "other system configury" case.
2074 * local.c (rollback_local): Merge into ...
2075 (GTM_rollback_local): ... here.
2076 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2077 (_ITM_LB): Define as an alias to GTM_LB.
2079 2009-11-03 Richard Henderson <rth@redhat.com>
2081 * method-readonly.c: New file.
2082 * Makefile.am (libitm_la_SOURCES): Add it.
2083 * Makefile.in: Rebuild.
2084 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2085 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2086 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2087 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2088 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2089 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2090 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2091 gtm_get_clock, gtm_inc_clock): New.
2092 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2093 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2094 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2095 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2096 replace uses with new libitm_i.h symbols.
2097 (dispatch_wbetl): Rename from wbetl_dispatch.
2098 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2099 away from dispatch_readonly; abort if the beginTransaction call
2100 asserted that the transaction was readonly.
2102 2009-11-03 Richard Henderson <rth@redhat.com>
2104 * memset.c: New file.
2105 * Makefile.am (libitm_la_SOURCES): Add it.
2106 * Makefile.in: Rebuild.
2107 * testsuite/libitm.c/memset-1.c: New.
2109 2009-11-03 Richard Henderson <rth@redhat.com>
2111 * dispatch.c: Remove file.
2112 * useraction.c (struct gtm_user_action): Move from libitm.h.
2113 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2114 (serial_memset, serial_memmove, serial_memcpy): Remove.
2115 (serial_W*, serial_R*): Remove.
2116 (serial_dispatch): Update to match.
2117 * configure.ac: Move Werror down below configure checks. Don't
2118 check for sys/loadavg.h, do check for malloc.h. Don't check for
2119 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2120 Use GCC_AC_FUNC_MMAP_BLACKLIST
2121 * libitm.h: Split out all internal items to...
2122 * libitm_i.h: ... here. New file.
2123 * copymask.c: New file.
2124 * local.c (struct gtm_local_undo): Move from libitm.h.
2125 (GTM_alloc_local): Rename from alloc_local; export.
2126 * memcpy.c: New file.
2127 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2128 * config/posix/page.c: New file.
2129 * config/posix/target_tls.h: Remove file.
2130 * barrier.c: New file.
2131 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2133 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2134 * method-wbetl.c: Rewrite for new cacheline methods.
2135 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2137 * config/alpha/sjlj.S: Fix typo.
2138 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2139 * config/alpha/copymask.c: New file.
2140 * config/alpha/target.h (CACHELINE_SIZE): New.
2141 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2143 * config/x86/target_i.h: Copy functions from x86/target.h.
2144 * config/x86/copymask.c: New file.
2145 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2146 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2147 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2148 * config/x86/target_tls.h: Move contents to target_i.h.
2150 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2151 * testsuite/libitm.c/memcpy-1.c: New.
2153 2009-10-22 Richard Henderson <rth@redhat.com>
2155 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2156 (AM_CCASFLAGS): New.
2157 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2158 saving/restoring _AC_ARG_VAR_PRECIOUS.
2159 * Makefile.in, aclocal.m4, config.h.in, configure,
2160 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2162 2009-10-22 Richard Henderson <rth@redhat.com>
2164 * testsuite/*: Update for new compiler syntax.
2166 2009-10-21 Richard Henderson <rth@redhat.com>
2168 * libitm.h (_ITM_abortReason): Add outerAbort.
2170 2009-08-03 Richard Henderson <rth@redhat.com>
2172 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2173 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2174 * method-wbetl.c (struct w_entry): Remove mask.
2175 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2178 2009-07-22 Richard Henderson <rth@redhat.com>
2180 * eh_cpp.c: New file.
2181 * Makefile.am (libitm_la_SOURCES): Add it.
2182 * Makefile.in: Rebuild.
2183 * beginend.c (GTM_rollback_transaction): Undo exception state.
2184 (GTM_trycommit_transaction): Mark inline.
2185 (GTM_trycommit_and_finalize_transaction): Split out from ...
2186 (_ITM_commitTransaction): ... here.
2187 (_ITM_commitTransactionEH): New function.
2188 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2189 cxa_unthrown, eh_in_flight; reorder.
2191 * testsuite/libitm.c++/c++.exp: New.
2192 * testsuite/libitm.c++/eh-1.C: New.
2194 * aatree.c (aa_free): Remove REGPARM.
2195 * aatree.h: Remove all REGPARM.
2197 2009-07-18 Richard Henderson <rth@redhat.com>
2199 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2200 * Makefile.am (libitm_la_SOURCES): Add them.
2201 * Makefile.in: Rebuild.
2202 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2203 (GTM_trycommit_transaction): Likewise.
2204 * libitm.h: Include aatree.h
2205 (struct gtm_alloc_action): New.
2206 (struct gtm_transaction): Add alloc_actions.
2207 (GTM_record_allocation, GTM_forget_allocation): Declare.
2208 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2209 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2210 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2211 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2212 _ZGTtdaPvRKSt9nothrow_t): Export.
2214 2009-07-18 Richard Henderson <rth@redhat.com>
2216 * target_tls.h: Move ...
2217 * config/posix/target_tls.h: ... here.
2219 2009-07-07 Richard Henderson <rth@redhat.com>
2221 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2223 2009-07-07 Richard Henderson <rth@redhat.com>
2227 2009-07-07 Richard Henderson <rth@redhat.com>
2229 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2230 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2232 * configure.tgt: Don't use -ftls-model for x86 linux.
2233 * libitm.h: Include target.h after standard includes.
2234 (_gtm_thr): Rename from gtm_thr.
2235 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2236 (gtm_disp, set_gtm_disp): New.
2237 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2238 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2239 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2241 2009-07-07 Richard Henderson <rth@redhat.com>
2243 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2245 2009-07-06 Richard Henderson <rth@redhat.com>
2247 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2248 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2249 (_ITM_beginTransaction): Take variadic arguments.
2250 (_ITM_registerThrownObject): Declare.
2251 * beginend.c, serial.c: Update.
2252 * libitm.map: Add _ITM_registerThrownObject.
2254 2009-01-28 Richard Henderson <rth@redhat.com>
2256 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2257 * Makefile.in: Rebuild.
2258 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2259 (GTM_restart_transaction): Fix uninstrumented code check.
2260 * retry.c (GTM_decide_retry_strategy): Add serial check.
2261 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2262 automatically go irrevokable when in serial mode.
2263 * clone.c: New file.
2264 * libitm.h, libitm.map: Update.
2266 2009-01-27 Richard Henderson <rth@redhat.com>
2268 * Makefile.am (LTCCASCOMPILE): Define.
2269 (libitm_la_SOURCES): Add methid-wbetl.c.
2270 * testsuite/Makefile.am: New
2271 * configure.ac: Add testsuite/Makefile.
2272 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2273 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2274 (_ITM_abortTransaction): Finalize implementation method; pass
2275 transaction properties to longjmp.
2276 (GTM_restart_transaction): Split out from ...
2277 (_ITM_commitTransaction): ... here.
2278 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2279 Move to config/x86/target.h.
2280 * config/linux/alpha/futex_bits.h: New.
2281 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2282 * config/x86/target.h: Disable target types for 32-bit.
2283 * config/alpha/sjlj.S, config/alpha/target.h: New.
2284 * libitm.h (struct gtm_dispatch): Add init, fini.
2285 (enum restart_reason): New.
2286 (struct gtm_transaction): Add method and restarts.
2287 * retry.c (GTM_decide_retry_strategy): Implement.
2288 * serial.c (serial_init, serial_fini): New.
2289 (GTM_serialmode): Finialize outgoing method.
2290 * method-wbetl.c: New.
2292 2008-12-09 Richard Henderson <rth@redhat.com>
2294 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2295 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2296 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2297 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2298 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2299 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2300 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2301 * serial.c (serial_R##T, serial_W##T): Likewise.
2303 2008-11-21 Richard Henderson <rth@redhat.com>
2307 Copyright (C) 2008-2021 Free Software Foundation, Inc.
2309 Copying and distribution of this file, with or without modification,
2310 are permitted in any medium without royalty provided the copyright
2311 notice and this notice are preserved.