1 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3 * libitm.texi: Bump @copying's copyright year.
5 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
7 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
8 target does not support HAVE_ELF_STYLE_WEAKREF then do not
9 try to test the __cxa_get_globals against NULL.
11 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
14 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
16 2021-01-15 Jakub Jelinek <jakub@redhat.com>
19 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
20 be added through preprocessor check on
21 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
23 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
25 * configure: Re-generate.
27 2021-01-01 Jakub Jelinek <jakub@redhat.com>
29 * libitm.texi: Bump @copying's copyright year.
31 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
34 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
35 * configure: Regenerate.
37 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
39 * configure: Regenerate.
41 2020-10-01 Alan Modra <amodra@gmail.com>
43 * config/powerpc/sjlj.S: Support __PCREL__ code.
45 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
47 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
49 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
51 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
52 and add BTI c to function entries.
54 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
56 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
58 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
61 * configure: Regenerated.
63 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
66 * configure: Regenerated.
68 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
70 * configure: Regenerated.
72 2020-05-12 Nathan Sidwell <nathan@acm.org>
74 Fix throw specifiers on interface.
75 * libitm/libitm.h (_ITM_NOTHROW): Define.
76 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
77 (_ITM_cxa_begin_catch): Use it.
78 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
79 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
81 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
82 (_ITM_cxa_begin_catch): Likewise.
84 2020-05-05 Nathan Sidwell <nathan@acm.org>
86 * testsuite/lib/libitm.exp (libitm_init): Add
87 -fdiagnostics-color=never to options.
89 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
94 * configure: Regenerated.
96 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
98 * configure.ac: Handle `--with-toolexeclibdir='.
99 * Makefile.in: Regenerate.
100 * aclocal.m4: Regenerate.
101 * configure: Regenerate.
102 * testsuite/Makefile.in: Regenerate.
104 2020-01-01 Jakub Jelinek <jakub@redhat.com>
106 Update copyright years.
108 * libitm.texi: Bump @copying's copyright year.
110 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
113 * configure.tgt: Avoid IE tls on *-*-musl*.
115 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
117 * configure: Regenerate.
119 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
121 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
123 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
125 * configure.tgt: Handle *-*-uclinux*.
126 * configure: Regenerate.
128 2019-09-06 Florian Weimer <fweimer@redhat.com>
130 * configure: Regenerate.
132 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
135 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
136 scanning to conform to the GNU Coding Standards.
137 * configure: Regenerate.
139 2019-05-03 Jakub Jelinek <jakub@redhat.com>
141 * Makefile.am (finclude): Remove.
142 * Makefile.in: Regenerated.
144 2019-01-01 Jakub Jelinek <jakub@redhat.com>
146 Update copyright years.
148 2019-01-01 Jakub Jelinek <jakub@redhat.com>
150 * libitm.texi: Bump @copying's copyright year.
152 2018-12-16 Jakub Jelinek <jakub@redhat.com>
155 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
156 void * to void (*) (void *).
157 (_ITM_cxa_throw): Likewise.
158 * libitm.h (_ITM_cxa_throw): Likewise.
159 * libitm.texi (_ITM_cxa_throw): Likewise.
161 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
163 * config/powerpc/target.h (htm_available): Add support for
164 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
166 2018-10-31 Joseph Myers <joseph@codesourcery.com>
169 * Makefile.am: Include multilib.am.
170 (AUTOMAKE_OPTIONS): Add info-in-builddir.
171 (CLEANFILES): Remove libitm.info.
172 * configure.ac: Remove AC_PREREQ.
173 * testsuite/Makefile.am (RUNTEST): Remove quotes.
174 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
177 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
180 * method-serial.cc: Mark varible as potentially unused
183 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
185 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
186 absolute relocation in a shared library.
188 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
191 * config/linux/x86/tls.h (SEG_READ): Use the offset of
192 __private_tm as base.
193 (SEG_WRITE): Likewise.
194 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
195 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
196 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
197 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
198 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
200 2018-05-17 Jason Merrill <jason@redhat.com>
202 * beginend.cc (save): Disable -Werror=deprecated-copy.
204 2018-05-02 Tom de Vries <tom@codesourcery.com>
207 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
209 2018-05-02 Tom de Vries <tom@codesourcery.com>
212 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
214 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
216 * config/x86/sjlj.S (_ITM_beginTransaction): Add
217 (__CET__ & 2) != 0 check for shadow stack.
218 (GTM_longjmp): Likewise.
220 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
222 * configure: Regenerated.
224 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
227 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
229 2018-04-19 Jakub Jelinek <jakub@redhat.com>
231 * configure: Regenerated.
233 2018-04-18 David Malcolm <dmalcolm@redhat.com>
236 * configure: Regenerate.
238 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
241 * configure: Regenerate.
243 2018-01-03 Jakub Jelinek <jakub@redhat.com>
245 Update copyright years.
247 * libitm.texi: Bump @copying's copyright year.
249 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
251 * Makefile.in: Regenerate.
252 * acinclude.m4: Add enable.m4 and cet.m4.
253 * config/x86/sjlj.S: Include cet.h.
254 (_ITM_beginTransaction): Add _CET_ENDBR.
255 Save Shadow Stack pointer.
256 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
257 * config/x86/target.h (struct gtm_jmpbuf):
258 Add new field for Shadow Stack pointer.
259 * configure: Regenerate.
260 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
261 * configure.ac: Update libtool_VERSION for x86.
262 * testsuite/Makefile.in: Regenerate.
264 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
266 * libitm/config/x86/target.h: Add new field (ssp).
267 * libitm/config/x86/sjlj.S: Change offsets.
269 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271 * testsuite/lib/libitm.exp: Load scanlang.exp.
273 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
275 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
277 2017-01-21 Jakub Jelinek <jakub@redhat.com>
280 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
281 of cat to get version from BASE-VER file.
282 * testsuite/Makefile.in: Regenerated.
284 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
286 * config/x86/target.h (htm_available): Determine vendor from
287 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
289 2017-01-18 Torvald Riegel <triegel@redhat.com>
291 * config/x86/target.h (htm_available): Add check for some processors
292 on which TSX is broken.
294 2017-01-17 Jakub Jelinek <jakub@redhat.com>
297 * configure.ac: Add GCC_BASE_VER.
298 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
299 get version from BASE-VER file.
300 * testsuite/Makefile.in: Regenerated.
301 * configure: Regenerated.
302 * Makefile.in: Regenerated.
304 2017-01-04 Alan Modra <amodra@gmail.com>
306 * Makefile.in: Regenerate.
307 * testsuite/Makefile.in: Regenerate.
309 2017-01-01 Jakub Jelinek <jakub@redhat.com>
311 Update copyright years.
313 * libitm.texi: Bump @copying's copyright year.
315 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
317 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
318 * aclocal.m4: Regenerate.
319 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
320 LIBITM_CHECK_LINKER_HWCAP.
322 2016-11-15 Matthias Klose <doko@ubuntu.com>
324 * configure: Regenerate.
326 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
329 * util.cc (xmalloc): Use posix_memalign to allocate memory on
330 on cache line if requested.
332 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
334 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
335 function attribute to disable floating point in begin_transaction() on
337 * beginend.cc (begin_transaction): Use
338 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
340 2016-01-22 Torvald Riegel <triegel@redhat.com>
342 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
344 (htm_fastpath): Remove.
345 (gtm_thread::begin_transaction): Fix HTM fastpath.
346 (_ITM_commitTransaction): Adapt.
347 (_ITM_commitTransactionEH): Adapt.
348 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
350 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
351 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
352 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
353 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
354 * libitm/method-serial.cc (htm_mg): Adapt.
355 (gtm_thread::serialirr_mode): Adapt.
356 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
358 2016-01-21 Torvald Riegel <triegel@redhat.com>
360 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
363 2016-01-19 Richard Henderson <rth@redhat.com>
368 2016-01-13 Richard Henderson <rth@redhat.com>
370 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
371 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
372 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
373 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
374 * configure.ac (ARCH_AARCH64): New conditional.
375 (ARCH_PPC, ARCH_S390): Likewise.
376 * Makefile.in, configure: Rebuild.
378 * libitm.h (_ITM_TYPE_M128): Always define.
379 * vect64.cc: Split ...
380 * vect128.cc: ... out of...
381 * config/x86/x86_sse.cc: ... here.
382 * config/arm/neon.cc: New file.
384 2016-01-19 Torvald Riegel <triegel@redhat.com>
386 * local_type_traits: Remove file.
387 * libitm_i.h: Don't include it anymore.
388 (sized_integral): Remove.
390 2016-01-16 Torvald Riegel <triegel@redhat.com>
392 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
394 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
395 * libitm/testsuite/libitm.c/priv-1.c: New.
397 2015-01-15 Torvald Riegel <triegel@redhat.com>
399 testsuite/libitm.c++/libstdc++-safeexc.C: New.
401 2016-01-13 Torvald Riegel <triegel@redhat.com>
403 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
404 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
405 (gtm_rwlock::write_unlock): Likewise.
407 2016-01-13 Richard Henderson <rth@redhat.com>
409 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
410 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
411 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
412 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
413 * configure.ac (ARCH_AARCH64): New conditional.
414 (ARCH_PPC, ARCH_S390): Likewise.
415 * Makefile.in, configure: Rebuild.
417 * libitm.h (_ITM_TYPE_M128): Always define.
418 * vect64.cc: Split ...
419 * vect128.cc: ... out of...
420 * config/x86/x86_sse.cc: ... here.
421 * config/arm/neon.cc: New file.
423 2016-01-13 Torvald Riegel <triegel@redhat.com>
425 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
426 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
427 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
428 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
429 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
430 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
431 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
432 (serialirr_dispatch::snapshot_most_recent): New.
433 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
435 2016-01-12 Torvald Riegel <triegel@redhat.com>
437 * libitm_i.h (gtm_mask_stack): Remove.
438 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
439 * stmlock.h: Remove file.
440 * config/alpha/cacheline.h: Likewise.
441 * config/generic/cacheline.h: Likewise.
442 * config/powerpc/cacheline.h: Likewise.
443 * config/sparc/cacheline.h: Likewise.
444 * config/x86/cacheline.h: Likewise.
446 2016-01-04 Jakub Jelinek <jakub@redhat.com>
448 Update copyright years.
450 * libitm.texi: Bump @copying's copyright year.
452 2015-11-26 Torvald Riegel <triegel@redhat.com>
454 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
455 (ml_wt_dispatch::pre_write): Adapt.
456 (ml_wt_dispatch::pre_load): Likewise.
458 2015-11-22 Torvald Riegel <triegel@redhat.com>
460 * libitm_i.h (gtm_alloc_action): Remove union.
461 * testsuite/libitm.c/alloc-1.c: New.
463 2015-11-19 Torvald Riegel <triegel@redhat.com>
465 * testsuite/libitm.c++/eh-5.C: New.
466 * libitm.h (_ITM_cxa_free_exception): New.
467 * libitm.map (_ITM_cxa_free_exception): Add it.
468 * libitm.texi: Update ABI docs.
469 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
470 (gtm_transaction_cp::cxa_uncaught_count): Add.
471 (gtm_thread::cxa_unthrown): Remove.
472 (gtm_thread::cxa_uncaught_count_ptr): Add.
473 (gtm_thread::cxa_uncaught_count): Add.
474 (gtm_thread::drop_references_allocations): Rename to...
475 (gtm_thread::discard_allocation): ... this and adapt.
476 (gtm_thread::init_cpp_exceptions): New.
477 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
478 (gtm_thread::begin_transaction): Likewise.
479 (gtm_transaction_cp::save): Likewise.
480 (gtm_thread::trycommit): Likewise.
481 * eh_cpp.cc: Add overview comments.
482 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
483 (free_any_exception, _ITM_cxa_free_exception): New.
484 (gtm_thread::init_cpp_exceptions): Define.
485 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
486 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
487 (gtm_thread::revert_cpp_exceptions): Likewise.
489 2015-11-09 Torvald Riegel <triegel@redhat.com>
491 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
492 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
493 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
494 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
495 (gtm_thread::forget_allocations): New overload with size_t argument.
496 * alloc.c (gtm_thread::forget_allocation): Define new overload and
498 (gtm_thread::record_allocation): Adapt.
499 (gtm_thread::commit_allocations_1): Adapt.
500 (gtm_thread::commit_allocations_2): Adapt.
501 * testsuite/libitm.c++/newdelete.C: New.
503 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
504 Joseph Myers <joseph@codesourcery.com>
505 Mark Shinwell <shinwell@codesourcery.com>
506 Andrew Stubbs <ams@codesourcery.com>
507 Rich Felker <dalias@libc.org>
509 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
510 GTM_begin_transaction for compatibility with FDPIC.
512 2015-10-09 David Malcolm <dmalcolm@redhat.com>
514 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
517 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
520 * local_atomic (__always_inline): Rename to...
521 (__libitm_always_inline): ... this.
523 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
526 * config/powerpc/sjlj.S: Port to Xcode 2.5.
528 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
530 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
531 operands "op" and "val" to int.
533 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
535 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
536 "op" and "val" to int.
538 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
540 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
541 "op" and "val" to int.
543 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
545 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
546 Declare as static int.
547 (FUTEX_PRIVATE_FLAG): Remove L suffix.
548 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
550 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
552 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
555 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
557 * Makefile.in: Regenerated with automake-1.11.6.
558 * aclocal.m4: Likewise.
559 * configure: Likewise.
560 * testsuite/Makefile.in: Likewise.
562 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
564 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
565 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
567 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
570 * libitm.c/stackundo.c (test2): Make it static.
573 2015-01-05 Jakub Jelinek <jakub@redhat.com>
575 Update copyright years.
577 2015-01-05 Jakub Jelinek <jakub@redhat.com>
579 * libitm.texi: Bump @copying's copyright year.
581 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583 * testsuite/lib/libitm.exp: Load target-utils.exp.
584 Move load of target-supports.exp earlier.
586 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
588 * configure.tgt (x86_64): Tune -m32 multilib to generic.
590 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
593 * configure: Regenerated.
595 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
598 * configure: Regenerate.
600 2014-10-06 Marek Polacek <polacek@redhat.com>
602 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
603 * testsuite/libitm.c/memset-1.c: Likewise.
605 2014-07-24 Richard Henderson <rth@redhat.com>
607 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
608 addressing mode in epilogue.
610 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
612 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
613 -mclear-hwcap instead.
614 * configure: Regenerate.
615 * clearcap.map: Remove.
617 2014-05-21 John Marino <gnugcc@marino.st>
619 * configure.tgt (*-*-dragonfly*): New target.
621 2014-05-19 Richard Henderson <rth@redhat.com>
623 * config/aarch64/sjlj.S: New file.
624 * config/aarch64/target.h: New file.
625 * configure.tgt: Enable aarch64.
627 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629 * config/generic/asmcfi.h: Also check for
630 __GCC_HAVE_DWARF2_CFI_ASM.
632 2013-04-02 Richard Henderson <rth@redhat.com>
634 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
635 * config/arm/target.h, config/sh/target.h: Likewise.
636 * config/sparc/target.h, config/x86/target.h: Likewise.
638 2014-03-26 Jakub Jelinek <jakub@redhat.com>
640 * config/linux/futex_bits.h: Include errno.h.
641 (sys_futex0): If syscall returns -1, return -errno rather than
644 2014-03-26 Joseph Myers <joseph@codesourcery.com>
646 * libitm.texi (Index): Rename to Library Index.
648 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
651 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
652 (x86_avx.lo): Append -mavx to CXXFLAGS.
653 * Makefile.in: Regenerate.
655 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
657 Update copyright years
659 2014-01-02 Tobias Burnus <burnus@net-b.de>
661 * libitm.texi: Bump @copying's copyright year.
663 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
665 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
666 (FUNC): Define ELFv2 variant.
673 2013-09-20 Alan Modra <amodra@gmail.com>
675 * configure: Regenerate.
677 2013-08-30 Torvald Riegel <triegel@redhat.com>
679 * config/posix/rwlock.cc: Fix initialization order.
681 2013-08-30 Torvald Riegel <triegel@redhat.com>
683 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
684 (htm_fastpath): Assign an asm name.
685 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
687 (_ITM_actions): Likewise.
688 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
690 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
691 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
692 field to the start of the structure.
693 * config/linux/rwlock.h (gtm_rwlock): Update comments.
694 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
695 handling for custom HTM fast paths.
697 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
699 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
701 * configure.tgt: Add -msoft-float to XCFLAGS.
703 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
705 * configure.tgt: Add -msoft-float to XCFLAGS.
707 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
709 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
710 (htm_transaction_active): Enable zEC12 instructions in the
712 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
714 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
716 * acinclude.m4: Add htm asm check for s390.
717 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
718 * configure: Regenerate.
719 * config/s390/target.h: Remove __HTM__ check.
720 (htm_available): Call getauxval to get hwcaps and check whether
721 HTM is available or not.
723 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
725 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
726 * configure.ac: Use it.
727 (AC_CHECK_HEADERS): Check for sys/auxv.h.
728 (AC_CHECK_FUNCS): Check for getauxval.
729 * config.h.in, configure: Rebuild.
730 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
731 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
732 (USE_HTM_FASTPATH): Define.
733 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
734 _HTM_RETRIES) New macros.
735 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
736 htm_begin_success, htm_commit, htm_transaction_active): New functions.
738 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
740 * config/s390/target.h: Include htmintrin.h.
741 (_HTM_ITM_RETRIES): New macro definition.
742 (htm_available, htm_init, htm_begin, htm_begin_success)
743 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
745 2013-06-20 Iain Sandoe <iain@codesourcery.com>
746 Cesar Philippidis <cesar@codesourcery.com>
748 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
749 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
750 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
751 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
753 2013-06-20 Torvald Riegel <triegel@redhat.com>
755 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
756 (_ITM_getTransactionId): Same.
757 * config/x86/target.h (htm_transaction_active): New.
759 2013-06-20 Torvald Riegel <triegel@redhat.com>
762 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
765 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
768 * local_atomic (__always_inline): Always define our version.
769 (__calculate_memory_order): Mark inline.
770 (atomic_thread_fence): Ditto.
771 (atomic_signal_fence): Ditto.
772 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
773 (atomic_bool::atomic_flag_clear_explicit): Ditto.
774 (atomic_bool::atomic_flag_test_and_set): Ditto.
775 (atomic_bool::atomic_flag_clear): Ditto.
777 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
779 * config/s390/sjlj.S: New file.
780 * config/s390/target.h: New file.
781 * configure.tgt: Set options for S/390.
783 2013-03-23 Andi Kleen <ak@linux.intel.com>
785 * local_atomic (__always_inline): Add.
786 (__calculate_memory_order, atomic_thread_fence,
787 atomic_signal_fence, test_and_set, clear, store, load,
788 exchange, compare_exchange_weak, compare_exchange_strong,
789 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
790 Add __always_inline to force inlining.
792 2013-02-11 Iain Sandoe <iain@codesourcery.com>
793 Jack Howarth <howarth@bromo.med.uc.edu>
794 Patrick Marlier <patrick.marlier@gmail.com>
797 * alloc_cpp.cc: Enable function declarations on darwin.
798 * eh_cpp.cc: Likewise.
800 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
802 Update copyright years.
804 2012-11-09 Torvald Riegel <triegel@redhat.com>
806 * beginend.cc (htm_fastpath): New.
807 (gtm_thread::begin_transaction, _ITM_commitTransaction,
808 _ITM_commitTransactionEH): Add HTM fastpath handling.
809 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
810 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
811 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
812 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
813 * configure.tgt: Add -mrtm to XCFLAGS.
814 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
815 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
816 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
817 * retry.cc (parse_default_method): Add HTM method parsing.
818 (gtm_thread::number_of_threads_changed): Use HTM by default if
821 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
823 * configure: Regenerate.
825 2012-10-31 Richard Henderson <rth@redhat.com>
827 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
828 * configure.ac: Use it.
829 * config.h.in, configure: Rebuild.
830 * testsuite/Makefile.in: Rebuild.
832 2012-10-24 Torvald Riegel <triegel@redhat.com>
834 * libitm.texi: Clarify ABI requirements for data-logging functions.
836 2012-10-24 Torvald Riegel <triegel@redhat.com>
838 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
839 it requires serial mode instead of assuming that for certain
841 * dispatch.h (abi_dispatch::requires_serial): New.
842 (abi_dispatch::abi_dispatch): Adapt.
843 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
844 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
845 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
846 serial_dispatch::serial_dispatch,
847 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
849 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
851 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
852 and ia32 declarations some more.
853 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
855 2012-09-20 Jakub Jelinek <jakub@redhat.com>
858 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
859 * configure: Regenerate.
860 * Makefile.in: Regenerate.
862 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
864 * configure: Regenerated.
866 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
868 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
870 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
872 * eh_cpp.cc: Fix __cxa_end_catch declaration.
874 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
876 * configure: Regenerated.
878 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
881 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
884 2012-04-03 Tristan Gingold <gingold@adacore.com>
886 * configure: Regenerate.
888 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
891 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
893 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
895 * testsuite/lib/libitm.exp: load fortran-modules.exp
897 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
899 * configure.tgt (*-*-irix6*): Remove.
901 2012-03-13 Torvald Riegel <triegel@redhat.com>
904 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
907 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
909 * configure.tgt (*-*-osf*): Remove.
910 * configure: Regenerate.
912 2012-03-05 Torvald Riegel <triegel@redhat.com>
914 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
915 memtransfer/memset if size isn't larger than zero.
917 2012-03-02 Torvald Riegel <triegel@redhat.com>
919 * libitm.texi: Link to specification and add a usage example.
921 2012-02-24 Torvald Riegel <triegel@redhat.com>
923 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
924 default dispatch for more than 1 thread to ml_wt.
926 2012-02-20 Torvald Riegel <triegel@redhat.com>
928 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
930 2012-02-20 Torvald Riegel <triegel@redhat.com>
932 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
934 2012-02-20 Torvald Riegel <triegel@redhat.com>
936 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
937 serial mode corner cases made obsolete by prior gtm_rwlock changes.
938 (gl_wt_dispatch.rollback): Same.
940 2012-02-20 Torvald Riegel <triegel@redhat.com>
942 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
944 2012-02-20 Torvald Riegel <triegel@redhat.com>
946 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
947 for RfW src. Optimize number of calls to gtm_thr.
949 2012-02-20 Torvald Riegel <triegel@redhat.com>
951 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
953 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
954 (default_dispatch): Make atomic.
955 (GTM::gtm_thread::set_default_dispatch): Access atomically.
956 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
957 use decide_begin_dispatch() if default_dispatch might have changed.
958 (GTM::gtm_thread::number_of_threads_changed): Initialize
959 default_dispatch here.
961 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
962 Patrick Marlier <patrick.marlier@gmail.com>
965 * alloc_cpp.cc: No dummy definitions for darwin.
966 * eh_cpp.cc: Likewise.
968 2012-02-14 Richard Henderson <rth@redhat.com>
970 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
972 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
974 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
976 2012-02-14 Torvald Riegel <triegel@redhat.com>
978 * libitm_i.h (GTM::gtm_rwlog_entry): New.
979 (GTM::gtm_thread): Add read and write logs.
980 (GTM::dispatch_ml_wt): Declare.
981 * retry.cc (parse_default_method): Support ml_wt.
982 * method-ml.cc: New file.
983 * Makefile.am: Add method-ml.cc.
984 * Makefile.in: Regenerate.
986 2012-02-14 Torvald Riegel <triegel@redhat.com>
988 * dispatch.h (GTM::abi_dispatch::supports): New.
989 (GTM::method_group::reinit): New.
990 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
991 (GTM::gtm_thread::number_of_threads_changed): Check that the method
992 supports the current situation.
994 2012-02-14 Torvald Riegel <triegel@redhat.com>
996 * util.cc (GTM::xcalloc): New.
997 * common.h (GTM::xcalloc): Declare.
999 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1001 * config/sparc/target.h (cpu_relax): Read from CC register.
1002 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1004 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1006 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1008 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1010 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1011 * config/sparc/cacheline.h: New file.
1012 * config/sparc/target.h: Likewise.
1013 * config/sparc/sjlj.S: Likewise.
1014 * config/linux/sparc/futex_bits.h: Likewise.
1016 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1018 * configure.ac (link_itm): Fix comment.
1019 * configure: Regenerate.
1020 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1022 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1025 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1026 Correct libgomp references.
1028 2012-01-24 Torvald Riegel <triegel@redhat.com>
1030 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1033 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1035 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1037 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1038 offset values. Do not copy return address. Decrement stack
1040 (GTM_longjump) [__x86_64__]: Update offset values.
1042 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1045 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1046 the first function argument to %eax.
1048 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050 * libitm.h (_ITM_getThreadnum): Remove.
1051 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1053 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1055 * clearcap.map: New file.
1056 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1057 * configure.ac: Call it.
1058 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1059 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1060 * configure: Regenerate.
1061 * Makefile.in: Regenerate.
1062 * testsuite/Makefile.in: Regenerate.
1064 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1068 include, exclude options.
1070 2012-01-14 Torvald Riegel <triegel@redhat.com>
1072 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1074 * containers.h (GTM::vector::set_size): New.
1076 2012-01-14 Torvald Riegel <triegel@redhat.com>
1079 * config/generic/tls.h (GTM::mask_stack_top): New.
1080 (GTM::mask_stack_bottom): Declare.
1081 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1082 * local.cc (gtm_undolog::rollback): Filter out any updates that
1083 overlap the libitm stack. Add current transaction as parameter.
1084 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1085 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1086 * testsuite/libitm.c/stackundo.c: New test.
1088 2012-01-10 Richard Henderson <rth@redhat.com>
1090 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1091 * eh_cpp.cc (_Unwind_DeleteException): Define for
1092 !HAVE_ELF_STYLE_WEAKREF.
1094 2012-01-08 Torvald Riegel <triegel@redhat.com>
1096 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1097 (GTM::gtm_thread::drop_references_undolog): Remove.
1098 (GTM::gtm_thread::commit_undolog,
1099 GTM::gtm_thread::rollback_undolog): Move to ...
1100 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1101 (GTM::gtm_undolog_entry): Remove.
1102 (GTM::gtm_thread): Adapt.
1103 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1104 (GTM::gtm_thread::trycommit): Adapt.
1105 * method-serial.cc (serial_dispatch::log): Adapt.
1106 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1107 (gl_wt_dispatch::store): Fix likely/unlikely.
1108 * containers.h (GTM::vector::resize): Add additional_capacity
1109 parameter and handle it.
1110 (GTM::vector::resize_noinline): New/adapt.
1111 (GTM::vector::push): New.
1113 2012-01-06 Richard Henderson <rth@redhat.com>
1115 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1116 * config/linux/powerpc/futex_bits.h: New file.
1117 * config/powerpc/cacheline.h: New file.
1118 * config/powerpc/sjlj.S: New file.
1119 * config/powerpc/target.h: New file.
1120 * config/generic/asmcfi.h (cfi_offset): New.
1121 (cfi_restore, cfi_undefined): New.
1123 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1126 * testsuite/libitm.c/reentrant.c: Remove xfail.
1127 (thread): Pass x to pure().
1128 From Patrik Marlier <patrick.marlier@gmail.com>.
1130 2011-12-24 Torvald Riegel <triegel@redhat.com>
1132 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1133 privatization safety if already in serial mode.
1135 2011-12-24 Torvald Riegel <triegel@redhat.com>
1137 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1138 finish_serial_upgrade parameter.
1139 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1140 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1141 Don't unset reader flag.
1142 (GTM::gtm_rwlock::write_upgrade_finish): New.
1143 * config/posix/rwlock.cc: Same.
1144 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1146 * config/posix/rwlock.h: Same.
1147 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1148 flag after commit or after rollback when restarting.
1150 2011-12-24 Torvald Riegel <triegel@redhat.com>
1152 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1153 (GTM::gtm_thread::try_commit): Changed memory order.
1154 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1156 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1157 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1158 * config/linux/futex_bits.h (sys_futex0): Same.
1159 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1160 * config/linux/futex.h (futex_wait, futex_wake): Same.
1161 * config/linux/rwlock.h (gtm_rwlock::writers,
1162 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1164 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1165 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1166 gtm_rwlock::write_unlock): Fix memory orders and fences.
1167 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1168 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1169 gtm_rwlock::write_unlock): Same.
1170 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1171 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1172 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1174 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1175 gl_wt_dispatch::load, gl_wt_dispatch::store,
1176 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1177 orders and fences. Add comments.
1179 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1181 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1182 * Makefile.in: Regenerated.
1184 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1186 * configure.tgt: Add sh* case.
1187 * config/sh/target.h: New file.
1188 * config/sh/sjlj.S: New file.
1189 * config/linux/sh/futex_bits.h: New file.
1191 2011-12-14 Richard Henderson <rth@redhat.com>
1193 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1194 * config/arm/sjlj.S, config/arm/target.h: New files.
1195 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1196 (cfi_rel_offset): New.
1197 * config/linux/futex_bits.h: New file.
1198 * config/linux/futex.cc: Include futex_bits.h here...
1199 * config/linux/futex.h: ... not here.
1200 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1201 * configure.ac (ARCH_AM): New conditional.
1202 * Makefile.in, configure: Rebuild.
1203 * configure.tgt: Handle ARM.
1205 2011-12-13 Richard Henderson <rth@redhat.com>
1207 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1208 signed/unsigned comparison werror.
1210 * local_atomic: New file.
1211 * libitm_i.h: Include it.
1212 (gtm_thread::shared_state): Use atomic template.
1213 * beginend.cc (GTM::gtm_clock): Use atomic template.
1214 (global_tid): Use atomic template if 64-bit atomics available.
1215 (gtm_thread::gtm_thread): Update shared_state access.
1216 (gtm_thread::trycommit): Likewise.
1217 (choose_code_path): Update global_tid access.
1218 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1219 * stmlock.h (GTM::gtm_clock): Use atomic template.
1220 (gtm_get_clock, gtm_inc_clock): Update accesses.
1221 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1222 redundant __sync_synchronize after atomic shared_state access.
1223 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1224 (gtm_rwlock::write_lock_generic): Likewise.
1225 (gtm_rwlock::read_unlock): Likewise.
1226 * config/alpha/target.h (atomic_read_barrier): Remove.
1227 (atomic_write_barrier): Remove.
1228 * config/x86/target.h (atomic_read_barrier): Remove.
1229 (atomic_write_barrier): Remove.
1231 2011-11-30 Richard Henderson <rth@redhat.com>
1233 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1234 * beginend.c (_ITM_abortTransaction): Update to match.
1235 (GTM::gtm_thread::restart): Likewise.
1236 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1237 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1239 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1241 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1242 * Makefile.in: Regenerate.
1244 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1246 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1247 * alloc_cpp.cc: Generate dummy functions if we don't
1248 HAVE_ELF_STYLE_WEAKREF.
1249 * eh_cpp.cc: Likewise.
1250 * configure: Regenerate.
1251 * aclocal.m4: Likewise.
1252 * config.h.in: Likewise.
1253 * Makefile.in: Likewise.
1254 * testsuite/Makefile.in: Likewise.
1256 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1258 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1259 __USER_LABEL_PREFIX__ for targets that use it.
1260 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1261 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1262 in portability to non-elf targets.
1263 (GTM_longjmp): Likewise.
1264 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1267 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1269 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1270 * testsuite/libitm.c/memset-1.c: Likewise.
1272 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1274 * configure: Regenerate.
1276 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1278 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1279 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1280 * Makefile.am: Handle sun style versioning.
1281 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1282 * configure: Regenerate.
1283 * Makefile.in: Regenerate.
1285 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1287 * config/generic/asmcfi.h: Fix comment.
1288 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1289 sequence without .hidden support, error for non-ELF targets.
1290 (GTM_longjmp) [__ELF__]: Only use .hidden if
1291 HAVE_ATTRIBUTE_VISIBILITY.
1293 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1295 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1296 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1298 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1299 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1301 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1304 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1305 * configure: Regenerate.
1307 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1309 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1311 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1313 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1315 (.note.GNU-stack): Only use if __linux__.
1316 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1317 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1318 * testsuite/libitm.c/reentrant.c: Likewise.
1319 * testsuite/libitm.c/simple-2.c: Likewise.
1320 * testsuite/libitm.c/txrelease.c: Likewise.
1321 * testsuite/libitm.c++/static_ctor.C: Likewise.
1323 2011-11-10 Richard Henderson <rth@redhat.com>
1325 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1326 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1327 * configure.ac (ARCH_X86_AVX): New conditional.
1328 * Makefile.in, configure: Rebuild.
1330 2011-11-09 Richard Henderson <rth@redhat.com>
1332 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1333 * configure.ac: Use it.
1334 * config.h.in, configure: Rebuild.
1335 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1337 2011-11-09 Richard Henderson <rth@redhat.com>
1339 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1340 * config/alpha/unaligned.h: Remove file.
1341 * config/generic/unaligned.h: Remove file.
1342 * config/x86/unaligned.h: Remove file.
1343 * config/generic/cachepage.h: Remove file.
1344 * config/posix/cachepage.cc: Remove file.
1345 * config/generic/cacheline.cc: Remove file.
1346 * config/x86/cacheline.cc: Remove file.
1347 * config/generic/cacheline.h (gtm_cacheline): Remove the
1348 store_mask, copy_mask, copy_mask_wb methods.
1349 * config/x86/cacheline.h: Likewise.
1350 * config/alpha/cacheline.h: Fall back to generic after setting size.
1351 * config/generic/tls.cc (gtm_mask_stack): Remove.
1352 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1353 (GTM_vpalignr_table): Remove.
1354 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1355 (GTM_pshift_table): Remove.
1356 * config/libitm_i.h: Don't include cachepage.h.
1357 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1358 * Makefile.in, testsuite/Makefile.in: Rebuild.
1360 2011-11-09 Richard Henderson <rth@redhat.com>
1362 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1363 to emit branch prediction hint.
1365 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1366 Protect .note.GNU-stack with __linux__.
1368 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1369 * configure, aclocal.m4, config.h.in: Rebuild.
1370 * config/generic/asmcfi.h: New file.
1371 * config/x86/sjlj.S: Use it.
1373 2011-11-08 Richard Henderson <rth@redhat.com>
1375 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1377 2011-11-08 Richard Henderson <rth@redhat.com>
1379 * configure.tgt: Test correct directory for supported cpus.
1381 * configure.ac: Exit if unsupported.
1382 * configure: Rebuild.
1383 * configure.tgt: Delete boilerplate from libgomp for unsupported
1384 targets. Set UNSUPPORTED for unsupported targets.
1386 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1388 * configure.tgt: Handle i386 like i[456]86.
1389 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1391 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1392 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1394 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1396 * method-wbetl.cc: Update copyright notice.
1402 * barrier.tpl: Same.
1403 * useraction.cc: Same.
1407 * config/generic/tls.cc: Same.
1408 * config/generic/cacheline.h: Same.
1409 * config/generic/cachepage.h: Same.
1410 * config/generic/cacheline.cc: Same.
1411 * config/generic/unaligned.h: Same.
1412 * config/x86/cacheline.h: Same.
1413 * config/x86/cacheline.cc: Same.
1414 * config/x86/unaligned.h: Same.
1415 * config/alpha/cacheline.h: Same.
1416 * config/alpha/unaligned.h: Same.
1417 * config/alpha/sjlj.S: Same.
1418 * config/posix/cachepage.cc: Same.
1419 * config/linux/futex.h: Same.
1420 * config/linux/alpha/futex_bits.h: Same.
1422 2011-11-04 Torvald Riegel <triegel@redhat.com>
1424 * libitm.texi: No cover text and invariant sections.
1426 2011-11-03 Richard Henderson <rth@redhat.com>
1428 * local_type_traits: New file.
1429 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1431 2011-11-03 Richard Henderson <rth@redhat.com>
1433 * configure.ac: Don't test for gfortran.
1434 * configure: Rebuild.
1436 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1437 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1439 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1441 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1442 * testsuite/libitm.c/memset-1.c: Same.
1443 * testsuite/libitm.c/c.exp: Same.
1444 * testsuite/lib/libitm-dg.exp: Same.
1445 * testsuite/lib/libitm.exp: Same.
1446 * testsuite/libitm.c++/c++.exp: Same.
1448 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1450 * testsuite/config/default.exp: Update copyright date.
1451 * configure.ac: Add copyright info.
1452 * configure.tgt: Same.
1454 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1456 * testsuite/libitm.c/reentrant.c: XFAIL.
1457 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1459 2011-10-29 Torvald Riegel <triegel@redhat.com>
1461 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1463 (_ITM_abortTransaction): Handle aborts of outer transactions.
1465 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1466 * libitm.texi: Document aborts of outer transactions.
1467 * testsuite/libitm.c/cancel.c: New file.
1469 2011-10-19 Torvald Riegel <triegel@redhat.com>
1471 * testsuite/*: Change __transaction to __transaction_atomic or
1472 __transaction_relaxed.
1474 2011-10-19 Torvald Riegel <triegel@redhat.com>
1476 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1479 2011-10-19 Torvald Riegel <triegel@redhat.com>
1481 * libitm_i.h: Add gl_wt dispatch.
1482 * retry.cc (parse_default_method): Same.
1483 * method-gl.cc: New file.
1484 * Makefile.am: Use method-gl.cc.
1485 * Makefile.in: Rebuild.
1487 2011-10-19 Torvald Riegel <triegel@redhat.com>
1489 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1490 safety if requested by a TM method.
1491 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1492 privatization safety.
1493 * method-serial.cc: Same.
1495 2011-10-19 Torvald Riegel <triegel@redhat.com>
1497 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1498 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1499 undolog-related member functions from *_local to *_undolog.
1500 * local.cc (gtm_thread::commit_undolog): Same.
1501 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1502 (GTM::gtm_thread::rollback): Roll back undolog before
1503 dispatch-specific rollback.
1505 2011-10-19 Torvald Riegel <triegel@redhat.com>
1507 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1508 re-initialization of the current method group.
1509 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1511 2011-10-19 Torvald Riegel <triegel@redhat.com>
1513 * alloc.cc (commit_allocations_2): Do not free transaction-local
1514 memory when committing a nested transaction.
1516 2011-10-19 Torvald Riegel <triegel@redhat.com>
1518 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1519 serial-irrevocable dispatch, not serial.
1521 2011-10-19 Torvald Riegel <triegel@redhat.com>
1523 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1525 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1526 * method-serial.cc: Implement begin_or_restart().
1527 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1528 dispatch-specific begin_or_restart().
1529 (GTM::gtm_thread::restart): Same.
1531 2011-08-23 Torvald Riegel <triegel@redhat.com>
1533 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1534 restarting without switching to serial mode.
1535 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1536 transaction state. Choose closed-nesting alternative if available.
1537 (GTM::gtm_thread::set_default_dispatch): New.
1538 (parse_default_method): New.
1539 (GTM::gtm_thread::number_of_threads_changed): New.
1540 * method-serial.cc (GTM::serial_mg): New method group class.
1541 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1543 (GTM::serial_dispatch): Same.
1544 (GTM::serialirr_onwrite_dispatch): Same.
1545 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1546 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1548 (GTM::gtm_thread::gtm_thread): Same.
1549 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1550 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1551 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1552 choose dispatch but set state according to dispatch here.
1553 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1554 (GTM::method_group): New class.
1555 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1556 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1557 * libitm.texi: Document TM methods, method groups, method life cycle.
1558 Rename method sets to method groups.
1560 2011-08-23 Torvald Riegel <triegel@redhat.com>
1562 * config/x86/tls.h: Moved to ...
1563 * config/linux/x86/tls.h: ... here.
1565 2011-08-23 Torvald Riegel <triegel@redhat.com>
1567 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1569 * config/x86/sjlj.S: Same.
1571 2011-08-19 Torvald Riegel <triegel@redhat.com>
1573 * config/linux/rwlock.h: New file.
1574 * config/linux/rwlock.c: New file.
1575 * configure.ac: Reenable futex support (undo SVN rev 157758).
1576 * Makefile.am: Same.
1577 * configure.tgt: Same.
1578 * config/linux/alpha/futex_bits.h: Same.
1579 * config/linux/futex.h: Same. Return number of woken processes.
1580 * config/linux/futex.cc: Same.
1581 (futex_wait): Remove spinning.
1582 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1583 Use __x86_64__ instead of __LP64__.
1584 * aclocal.m4: Include generic futex checks.
1585 * configure: Rebuild.
1586 * Makefile.in: Rebuild.
1587 * testsuite/Makefile.in: Rebuild.
1588 * beginend.cc: Include pthread.h.
1589 * config/posix/cachepage.cc: Same.
1591 2011-08-12 Torvald Riegel <triegel@redhat.com>
1593 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1594 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1596 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1598 (GTM::gtm_thread::thread_num): Removed.
1599 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1600 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1601 tx-to-thread renaming.
1602 * beginend.cc: Adapted to tx-to-thread renaming.
1603 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1604 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1605 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1606 gtm_transaction to gtm_thread.
1607 (_ITM_getThreadnum): Removed. Not supported anymore.
1608 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1609 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1610 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1611 gtm_tx-to-gtm_thr renaming if necessary.
1618 * alloc_cpp.cc: Same.
1619 * method-serial.cc: Same.
1620 * config/generic/tls.cc: Same.
1621 * config/posix/rwlock.h (gtm_rwlock): Same.
1622 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1624 2011-08-12 Torvald Riegel <triegel@redhat.com>
1626 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1628 (gtm_rwlock::read_unlock): Same.
1629 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1630 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1631 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1632 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1633 w_upgrade. Replaced by per-transaction flags (in shared_state).
1634 Added c_confirmed_writers.
1635 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1636 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1637 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1638 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1639 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1640 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1641 * libitm.texi: Document locking conventions and implementations in
1644 2011-08-12 Torvald Riegel <triegel@redhat.com>
1646 * libitm_i.h (next_tx): Add list of all threads' transaction.
1647 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1648 transaction with list of transactions and ...
1649 (thread_exit_handler): ... deregister here.
1650 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1651 * config/x86/target.h: Same.
1653 2011-08-12 Torvald Riegel <triegel@redhat.com>
1655 * testsuite/libitm.c++/static_ctor.C: New file.
1657 2011-08-12 Torvald Riegel <triegel@redhat.com>
1659 * testsuite/libitm.c/reentrant.c: New file.
1661 2011-08-12 Torvald Riegel <triegel@redhat.com>
1663 * config/generic/tls.h: Remove the free list for transactions and ...
1664 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1665 (GTM::gtm_transaction::operator delete): ... and release here.
1666 (thread_exit_handler): New. Delete tx when thread terminates.
1667 (thread_exit_init): New.
1668 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1669 * testsuite/libitm.c/txrelease.c: New file.
1671 2011-08-12 Torvald Riegel <triegel@redhat.com>
1673 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1674 * testsuite/libitm.c/notx.c: New file.
1676 2011-08-12 Torvald Riegel <triegel@redhat.com>
1678 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1679 * libitm_i.h (local_tid): ... to here.
1680 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1681 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1683 2011-08-12 Torvald Riegel <triegel@redhat.com>
1685 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1686 serialirr_onwrite_dispatch as new default for now.
1687 * method-serial.cc (serialirr_onwrite_dispatch): New.
1688 (GTM::dispatch_serialirr_onwrite): New.
1691 2011-08-12 Torvald Riegel <triegel@redhat.com>
1693 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1694 * query.cc (_ITM_getTransactionId): There is no active transaction if
1695 the current nesting level is zero.
1697 2011-07-28 Torvald Riegel <triegel@redhat.com>
1699 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1702 2011-07-28 Torvald Riegel <triegel@redhat.com>
1704 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1705 transaction properties from the caller instead of from the
1708 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1710 2011-07-28 Torvald Riegel <triegel@redhat.com>
1712 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1713 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1715 * method-serial.cc: Same.
1716 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1717 flat nesting as default, and closed nesting on demand.
1718 (GTM::gtm_transaction::rollback): Same.
1719 (_ITM_abortTransaction): Same.
1720 (GTM::gtm_transaction::restart): Same.
1721 (GTM::gtm_transaction::trycommit): Same.
1722 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1723 (choose_code_path): New.
1724 (GTM::gtm_transaction_cp::save): New.
1725 (GTM::gtm_transaction_cp::commit): New.
1726 * query.cc (_ITM_inTransaction): Support flat nesting.
1727 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1728 (GTM::gtm_transaction): Support flat and closed nesting.
1729 * alloc.cc (commit_allocations_2): New.
1730 (commit_cb_data): New helper struct.
1731 (GTM::gtm_transaction::commit_allocations): Handle nested
1733 * libitm.texi: Update user action section, add description of nesting.
1735 2011-07-28 Torvald Riegel <triegel@redhat.com>
1737 * libitm_i.h: Add closed nesting as restart reason.
1738 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1740 2011-07-28 Torvald Riegel <triegel@redhat.com>
1742 * useraction.cc: Use vector instead of list to store actions.
1743 Also support partial rollbacks for closed nesting.
1744 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1745 * beginend.cc: Same.
1747 2011-07-28 Torvald Riegel <triegel@redhat.com>
1749 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1750 closed_nesting flags, as well as a closed nesting alternative.
1751 * method-serial.cc: Same.
1752 (serial_dispatch): Renamed to serialirr_dispatch.
1753 (GTM::dispatch_serialirr): Same.
1754 (serial_dispatch_ul): Renamed to serial_dispatch.
1755 (GTM::dispatch_serial): Same.
1757 2011-07-28 Torvald Riegel <triegel@redhat.com>
1759 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1761 2011-07-28 Torvald Riegel <triegel@redhat.com>
1763 * aatree.h (aa_tree::remove): New.
1764 (aa_tree::operator new): Add placement new.
1766 2011-07-02 Torvald Riegel <triegel@redhat.com>
1768 * containers.h: New file.
1769 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1770 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1771 * common.h: ... to here.
1772 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1775 2011-06-30 Torvald Riegel <triegel@redhat.com>
1777 * libitm_i.h (STATE_ABORTING): Remove.
1778 * beginend.cc (_ITM_abortTransaction): Same.
1779 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1780 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1781 (_ITM_rollbackTransaction): Remove.
1782 * beginend.cc: Same.
1784 * libitm.texi: Document these ABI changes.
1786 2011-06-30 Torvald Riegel <triegel@redhat.com>
1788 * libitm.texi: New file.
1789 * Makefile.am: Add libitm.texi.
1790 * Makefile.in: Rebuild.
1792 2011-06-30 Torvald Riegel <triegel@redhat.com>
1794 * libitm_i.h: Move parts to common.h and dispatch.h.
1795 * common.h: New file.
1796 * dispatch.h: New file, new dispatch class.
1797 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1798 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1799 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1800 decision to retry.cc.
1801 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1803 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1804 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1806 * barrier.cc: Use new barriers definitions.
1807 (abi_dispatch::memmove_overlap_check): New.
1808 * config/x86/x86_sse.cc: Same.
1809 * config/x86/x86_avx.cc: Same.
1810 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1812 * Makefile.in: Rebuild.
1813 * method-readonly.cc: Remove.
1814 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1815 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1817 2011-06-30 Torvald Riegel <triegel@redhat.com>
1819 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1820 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1821 * testsuite/libitm.c/dropref-2.c: Same.
1822 * testsuite/libitm.c/dropref.c: Same.
1824 2011-06-30 Torvald Riegel <triegel@redhat.com>
1826 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1827 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1828 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1830 * barrier.tpl: Same.
1832 * config/generic/tls.h: Same.
1833 * config/x86/tls.h: Same.
1837 * method-readonly.cc: Same.
1838 * method-serial.cc: Same.
1839 * method-wbetl.cc: Same.
1842 2011-03-03 Richard Henderson <rth@redhat.com>
1844 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1845 From Patrik Marlier <patrick.marlier@unine.ch>.
1847 2011-02-03 Richard Henderson <rth@redhat.com>
1849 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1850 * configure.ac: Use it.
1851 * configure, config.h.in: Rebuild.
1852 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1853 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1854 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1855 * libitm.map: Use wildcards to match size_t mangling.
1857 2010-12-14 Richard Henderson <rth@redhat.com>
1859 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1860 blocks of TIDs per thread.
1861 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1862 (setup_gtm_thr): Return the thread structure.
1863 * config/x86/tls.h (setup_gtm_thr): Likewise.
1865 2010-12-14 Richard Henderson <rth@redhat.com>
1867 * clone.cc (table_lock): Remove.
1868 (find_clone): Don't take it.
1869 (ExcludeTransaction): New helper class.
1870 (_ITM_registerTMCloneTable): Use it.
1871 (_ITM_deregisterTMCloneTable): Likewise.
1873 2010-12-14 Richard Henderson <rth@redhat.com>
1875 * config/x86/tls.h: New file.
1877 2010-07-15 Richard Henderson <rth@redhat.com>
1879 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1880 * Makefile.in: Rebuild.
1882 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1884 * method-wbetl.cc (trydropreference): Fix source line.
1886 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1888 * libitm.h: Add comment.
1889 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1891 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1893 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1894 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1895 available, use pthread mutexes.
1896 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1897 * config.h.in: Regenerate.
1898 * configure: Regenerate.
1900 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1902 * libitm.h (ITM_PURE): Define.
1903 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1905 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1907 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1908 (validate): Add comment.
1909 (trydropreference): New.
1910 * method-readonly.cc (class readonly_dispatch): Add
1912 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1913 Call trydropreference().
1914 * libitm.h (_ITM_dropReferences): Remove const attribute.
1915 * method-serial.cc (class serial_dispatch): Add trydropreference.
1916 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1918 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1920 * memcpy.cc (do_memcpy): Comment.
1922 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1924 * barrier.tpl: Add comments throughout.
1926 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1928 * method-wbetl.cc (struct w_entry): Add comments.
1932 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1934 * alloc_c.cc (_ITM_dropReferences): New.
1935 * libitm.map (_ITM_dropReferences): Add.
1936 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1937 * libitm_i.h (struct gtm_transaction): Declare
1938 drop_references_allocations and drop_references_local.
1939 * local.cc (rollback_local): Ignore memory when applicable.
1940 (drop_references_local): New.
1942 2010-06-23 Richard Henderson <rth@redhat.com>
1944 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1945 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1946 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1947 * config/alpha/target.h: Likewise.
1948 * config/generic/tls.cc (gtm_mask_stack): Use it.
1950 2010-06-23 Richard Henderson <rth@redhat.com>
1952 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1953 a mutex instead of trying a lock-free compare-and-swap on the list.
1954 (gtm_cacheline_page::operator delete): Likewise.
1956 2010-06-16 Richard Henderson <rth@redhat.com>
1958 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1959 that overlap the libitm stack.
1960 * barrier.tpl: Mark incoming stack.
1961 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1962 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1963 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1964 * memcpy.cc, memset.cc: Likewise.
1965 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1966 * config/generic/tls.h (gtm_thread): Add stack_top member.
1967 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1968 * libitm_i.h (gtm_mask_stack): Declare.
1969 * config/generic/tls.cc: New file.
1970 * Makefile.am (libitm_la_SOURCES): Add it.
1971 (AM_CXXFLAGS): Turn off exceptions.
1972 * Makefile.in: Rebuild.
1974 2010-06-16 Richard Henderson <rth@redhat.com>
1976 * alloc.cc (struct gtm_alloc_action): Move definition ...
1977 * libitm_i.h: ... here.
1978 (class gtm_transaction): Declare new and delete.
1979 * beginend.cc (alloc_tx): Reformulate as operator new.
1980 (free_tx): Reformulate as operator delete.
1981 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1983 2010-06-11 Richard Henderson <rth@redhat.com>
1985 * clone.cc (clone_entry_compare): Fix typo.
1986 From Patrik Marlier <patrick.marlier@unine.ch>.
1988 2010-05-13 Richard Henderson <rth@redhat.com>
1990 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1993 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1995 * libitm_i.h (struct gtm_transaction): Remove
1996 get_allocation_size.
1997 (record_allocation): Remove size parameter.
1998 * libitm.map (_ITM_realloc): Remove.
1999 * alloc_c.cc (_ITM_realloc): Remove.
2000 (_ITM_malloc): Remove size argument to record_allocation.
2001 (_ITM_calloc): Same.
2002 * alloc_cpp.cc (_ZGTtnwm): Same.
2003 (_ZGTtnwmRKSt9nothrow_t): Same.
2005 (_ZGTtnamRKSt9nothrow_t): Same.
2006 * alloc.cc (struct gtm_alloc_action): Remove size.
2007 (get_allocation_size): Remove.
2008 (commit_allocations): Add comment.
2009 (record_allocation): Remove size parameter.
2010 (forget_allocation): Remove set of size.
2012 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2014 * Makefile.am (abi_version): New.
2015 (AM_CXXFLAGS): Pass abi_version.
2016 * Makefile.in: Regenerate.
2017 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2019 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2021 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2022 _ITM_getTMCloneOrIrrevokable.
2023 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2024 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2026 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2028 * configure.ac: Remove Linux futex support.
2029 * configure.tgt (config_path): Same.
2030 * Makefile.am: Same.
2031 * config/linux: Remove entire directory.
2032 * configure: Rebuild.
2033 * Makefile.in: Rebuild.
2034 * testsuite/Makefile.in: Rebuild.
2036 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2038 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2039 switching to serial mode.
2040 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2042 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2044 * configure.tgt: Add emacs -*- tags.
2045 * barrier.tpl: Same.
2047 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2049 * Makefile.am: Rename serial.cc to method-serial.cc.
2050 * Makefile.in: Regenerate with automake 1.11.1.
2051 * testsuite/Makefile.in: Same.
2052 * aclocal.m4: Regenerate with aclocal 1.11.1.
2053 * method-serial.cc: Rename from serial.cc.
2054 * libitm_i.h (struct gtm_transaction): Update comment on
2057 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2059 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2060 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2062 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2064 * configure: Rebuild.
2066 2009-11-12 Richard Henderson <rth@redhat.com>
2068 * Rewrite everything in C++.
2070 2009-11-03 Richard Henderson <rth@redhat.com>
2072 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2073 * Makefile.am (libitm_la_SOURCES): Add them.
2074 * configure.ac (ARCH_X86): New conditional.
2075 * Makefile.in, configure: Rebuild.
2076 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2077 Move futex setup into "other system configury" case.
2078 * local.c (rollback_local): Merge into ...
2079 (GTM_rollback_local): ... here.
2080 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2081 (_ITM_LB): Define as an alias to GTM_LB.
2083 2009-11-03 Richard Henderson <rth@redhat.com>
2085 * method-readonly.c: New file.
2086 * Makefile.am (libitm_la_SOURCES): Add it.
2087 * Makefile.in: Rebuild.
2088 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2089 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2090 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2091 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2092 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2093 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2094 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2095 gtm_get_clock, gtm_inc_clock): New.
2096 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2097 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2098 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2099 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2100 replace uses with new libitm_i.h symbols.
2101 (dispatch_wbetl): Rename from wbetl_dispatch.
2102 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2103 away from dispatch_readonly; abort if the beginTransaction call
2104 asserted that the transaction was readonly.
2106 2009-11-03 Richard Henderson <rth@redhat.com>
2108 * memset.c: New file.
2109 * Makefile.am (libitm_la_SOURCES): Add it.
2110 * Makefile.in: Rebuild.
2111 * testsuite/libitm.c/memset-1.c: New.
2113 2009-11-03 Richard Henderson <rth@redhat.com>
2115 * dispatch.c: Remove file.
2116 * useraction.c (struct gtm_user_action): Move from libitm.h.
2117 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2118 (serial_memset, serial_memmove, serial_memcpy): Remove.
2119 (serial_W*, serial_R*): Remove.
2120 (serial_dispatch): Update to match.
2121 * configure.ac: Move Werror down below configure checks. Don't
2122 check for sys/loadavg.h, do check for malloc.h. Don't check for
2123 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2124 Use GCC_AC_FUNC_MMAP_BLACKLIST
2125 * libitm.h: Split out all internal items to...
2126 * libitm_i.h: ... here. New file.
2127 * copymask.c: New file.
2128 * local.c (struct gtm_local_undo): Move from libitm.h.
2129 (GTM_alloc_local): Rename from alloc_local; export.
2130 * memcpy.c: New file.
2131 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2132 * config/posix/page.c: New file.
2133 * config/posix/target_tls.h: Remove file.
2134 * barrier.c: New file.
2135 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2137 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2138 * method-wbetl.c: Rewrite for new cacheline methods.
2139 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2141 * config/alpha/sjlj.S: Fix typo.
2142 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2143 * config/alpha/copymask.c: New file.
2144 * config/alpha/target.h (CACHELINE_SIZE): New.
2145 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2147 * config/x86/target_i.h: Copy functions from x86/target.h.
2148 * config/x86/copymask.c: New file.
2149 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2150 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2151 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2152 * config/x86/target_tls.h: Move contents to target_i.h.
2154 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2155 * testsuite/libitm.c/memcpy-1.c: New.
2157 2009-10-22 Richard Henderson <rth@redhat.com>
2159 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2160 (AM_CCASFLAGS): New.
2161 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2162 saving/restoring _AC_ARG_VAR_PRECIOUS.
2163 * Makefile.in, aclocal.m4, config.h.in, configure,
2164 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2166 2009-10-22 Richard Henderson <rth@redhat.com>
2168 * testsuite/*: Update for new compiler syntax.
2170 2009-10-21 Richard Henderson <rth@redhat.com>
2172 * libitm.h (_ITM_abortReason): Add outerAbort.
2174 2009-08-03 Richard Henderson <rth@redhat.com>
2176 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2177 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2178 * method-wbetl.c (struct w_entry): Remove mask.
2179 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2182 2009-07-22 Richard Henderson <rth@redhat.com>
2184 * eh_cpp.c: New file.
2185 * Makefile.am (libitm_la_SOURCES): Add it.
2186 * Makefile.in: Rebuild.
2187 * beginend.c (GTM_rollback_transaction): Undo exception state.
2188 (GTM_trycommit_transaction): Mark inline.
2189 (GTM_trycommit_and_finalize_transaction): Split out from ...
2190 (_ITM_commitTransaction): ... here.
2191 (_ITM_commitTransactionEH): New function.
2192 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2193 cxa_unthrown, eh_in_flight; reorder.
2195 * testsuite/libitm.c++/c++.exp: New.
2196 * testsuite/libitm.c++/eh-1.C: New.
2198 * aatree.c (aa_free): Remove REGPARM.
2199 * aatree.h: Remove all REGPARM.
2201 2009-07-18 Richard Henderson <rth@redhat.com>
2203 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2204 * Makefile.am (libitm_la_SOURCES): Add them.
2205 * Makefile.in: Rebuild.
2206 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2207 (GTM_trycommit_transaction): Likewise.
2208 * libitm.h: Include aatree.h
2209 (struct gtm_alloc_action): New.
2210 (struct gtm_transaction): Add alloc_actions.
2211 (GTM_record_allocation, GTM_forget_allocation): Declare.
2212 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2213 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2214 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2215 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2216 _ZGTtdaPvRKSt9nothrow_t): Export.
2218 2009-07-18 Richard Henderson <rth@redhat.com>
2220 * target_tls.h: Move ...
2221 * config/posix/target_tls.h: ... here.
2223 2009-07-07 Richard Henderson <rth@redhat.com>
2225 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2227 2009-07-07 Richard Henderson <rth@redhat.com>
2231 2009-07-07 Richard Henderson <rth@redhat.com>
2233 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2234 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2236 * configure.tgt: Don't use -ftls-model for x86 linux.
2237 * libitm.h: Include target.h after standard includes.
2238 (_gtm_thr): Rename from gtm_thr.
2239 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2240 (gtm_disp, set_gtm_disp): New.
2241 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2242 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2243 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2245 2009-07-07 Richard Henderson <rth@redhat.com>
2247 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2249 2009-07-06 Richard Henderson <rth@redhat.com>
2251 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2252 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2253 (_ITM_beginTransaction): Take variadic arguments.
2254 (_ITM_registerThrownObject): Declare.
2255 * beginend.c, serial.c: Update.
2256 * libitm.map: Add _ITM_registerThrownObject.
2258 2009-01-28 Richard Henderson <rth@redhat.com>
2260 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2261 * Makefile.in: Rebuild.
2262 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2263 (GTM_restart_transaction): Fix uninstrumented code check.
2264 * retry.c (GTM_decide_retry_strategy): Add serial check.
2265 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2266 automatically go irrevokable when in serial mode.
2267 * clone.c: New file.
2268 * libitm.h, libitm.map: Update.
2270 2009-01-27 Richard Henderson <rth@redhat.com>
2272 * Makefile.am (LTCCASCOMPILE): Define.
2273 (libitm_la_SOURCES): Add methid-wbetl.c.
2274 * testsuite/Makefile.am: New
2275 * configure.ac: Add testsuite/Makefile.
2276 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2277 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2278 (_ITM_abortTransaction): Finalize implementation method; pass
2279 transaction properties to longjmp.
2280 (GTM_restart_transaction): Split out from ...
2281 (_ITM_commitTransaction): ... here.
2282 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2283 Move to config/x86/target.h.
2284 * config/linux/alpha/futex_bits.h: New.
2285 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2286 * config/x86/target.h: Disable target types for 32-bit.
2287 * config/alpha/sjlj.S, config/alpha/target.h: New.
2288 * libitm.h (struct gtm_dispatch): Add init, fini.
2289 (enum restart_reason): New.
2290 (struct gtm_transaction): Add method and restarts.
2291 * retry.c (GTM_decide_retry_strategy): Implement.
2292 * serial.c (serial_init, serial_fini): New.
2293 (GTM_serialmode): Finialize outgoing method.
2294 * method-wbetl.c: New.
2296 2008-12-09 Richard Henderson <rth@redhat.com>
2298 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2299 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2300 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2301 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2302 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2303 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2304 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2305 * serial.c (serial_R##T, serial_W##T): Likewise.
2307 2008-11-21 Richard Henderson <rth@redhat.com>
2311 Copyright (C) 2008-2022 Free Software Foundation, Inc.
2313 Copying and distribution of this file, with or without modification,
2314 are permitted in any medium without royalty provided the copyright
2315 notice and this notice are preserved.