1 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3 * Makefile.am (finclude): Remove.
4 * Makefile.in: Regenerated.
6 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8 Update copyright years.
10 2019-01-01 Jakub Jelinek <jakub@redhat.com>
12 * libitm.texi: Bump @copying's copyright year.
14 2018-12-16 Jakub Jelinek <jakub@redhat.com>
17 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
18 void * to void (*) (void *).
19 (_ITM_cxa_throw): Likewise.
20 * libitm.h (_ITM_cxa_throw): Likewise.
21 * libitm.texi (_ITM_cxa_throw): Likewise.
23 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
25 * config/powerpc/target.h (htm_available): Add support for
26 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
28 2018-10-31 Joseph Myers <joseph@codesourcery.com>
31 * Makefile.am: Include multilib.am.
32 (AUTOMAKE_OPTIONS): Add info-in-builddir.
33 (CLEANFILES): Remove libitm.info.
34 * configure.ac: Remove AC_PREREQ.
35 * testsuite/Makefile.am (RUNTEST): Remove quotes.
36 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
39 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
42 * method-serial.cc: Mark varible as potentially unused
45 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
47 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
48 absolute relocation in a shared library.
50 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
53 * config/linux/x86/tls.h (SEG_READ): Use the offset of
55 (SEG_WRITE): Likewise.
56 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
57 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
58 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
59 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
60 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
62 2018-05-17 Jason Merrill <jason@redhat.com>
64 * beginend.cc (save): Disable -Werror=deprecated-copy.
66 2018-05-02 Tom de Vries <tom@codesourcery.com>
69 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
71 2018-05-02 Tom de Vries <tom@codesourcery.com>
74 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
76 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
78 * config/x86/sjlj.S (_ITM_beginTransaction): Add
79 (__CET__ & 2) != 0 check for shadow stack.
80 (GTM_longjmp): Likewise.
82 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
84 * configure: Regenerated.
86 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
89 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
91 2018-04-19 Jakub Jelinek <jakub@redhat.com>
93 * configure: Regenerated.
95 2018-04-18 David Malcolm <dmalcolm@redhat.com>
98 * configure: Regenerate.
100 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
103 * configure: Regenerate.
105 2018-01-03 Jakub Jelinek <jakub@redhat.com>
107 Update copyright years.
109 * libitm.texi: Bump @copying's copyright year.
111 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
113 * Makefile.in: Regenerate.
114 * acinclude.m4: Add enable.m4 and cet.m4.
115 * config/x86/sjlj.S: Include cet.h.
116 (_ITM_beginTransaction): Add _CET_ENDBR.
117 Save Shadow Stack pointer.
118 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
119 * config/x86/target.h (struct gtm_jmpbuf):
120 Add new field for Shadow Stack pointer.
121 * configure: Regenerate.
122 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
123 * configure.ac: Update libtool_VERSION for x86.
124 * testsuite/Makefile.in: Regenerate.
126 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
128 * libitm/config/x86/target.h: Add new field (ssp).
129 * libitm/config/x86/sjlj.S: Change offsets.
131 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133 * testsuite/lib/libitm.exp: Load scanlang.exp.
135 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
137 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
139 2017-01-21 Jakub Jelinek <jakub@redhat.com>
142 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
143 of cat to get version from BASE-VER file.
144 * testsuite/Makefile.in: Regenerated.
146 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
148 * config/x86/target.h (htm_available): Determine vendor from
149 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
151 2017-01-18 Torvald Riegel <triegel@redhat.com>
153 * config/x86/target.h (htm_available): Add check for some processors
154 on which TSX is broken.
156 2017-01-17 Jakub Jelinek <jakub@redhat.com>
159 * configure.ac: Add GCC_BASE_VER.
160 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
161 get version from BASE-VER file.
162 * testsuite/Makefile.in: Regenerated.
163 * configure: Regenerated.
164 * Makefile.in: Regenerated.
166 2017-01-04 Alan Modra <amodra@gmail.com>
168 * Makefile.in: Regenerate.
169 * testsuite/Makefile.in: Regenerate.
171 2017-01-01 Jakub Jelinek <jakub@redhat.com>
173 Update copyright years.
175 * libitm.texi: Bump @copying's copyright year.
177 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
179 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
180 * aclocal.m4: Regenerate.
181 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
182 LIBITM_CHECK_LINKER_HWCAP.
184 2016-11-15 Matthias Klose <doko@ubuntu.com>
186 * configure: Regenerate.
188 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
191 * util.cc (xmalloc): Use posix_memalign to allocate memory on
192 on cache line if requested.
194 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
196 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
197 function attribute to disable floating point in begin_transaction() on
199 * beginend.cc (begin_transaction): Use
200 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
202 2016-01-22 Torvald Riegel <triegel@redhat.com>
204 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
206 (htm_fastpath): Remove.
207 (gtm_thread::begin_transaction): Fix HTM fastpath.
208 (_ITM_commitTransaction): Adapt.
209 (_ITM_commitTransactionEH): Adapt.
210 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
212 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
213 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
214 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
215 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
216 * libitm/method-serial.cc (htm_mg): Adapt.
217 (gtm_thread::serialirr_mode): Adapt.
218 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
220 2016-01-21 Torvald Riegel <triegel@redhat.com>
222 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
225 2016-01-19 Richard Henderson <rth@redhat.com>
230 2016-01-13 Richard Henderson <rth@redhat.com>
232 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
233 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
234 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
235 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
236 * configure.ac (ARCH_AARCH64): New conditional.
237 (ARCH_PPC, ARCH_S390): Likewise.
238 * Makefile.in, configure: Rebuild.
240 * libitm.h (_ITM_TYPE_M128): Always define.
241 * vect64.cc: Split ...
242 * vect128.cc: ... out of...
243 * config/x86/x86_sse.cc: ... here.
244 * config/arm/neon.cc: New file.
246 2016-01-19 Torvald Riegel <triegel@redhat.com>
248 * local_type_traits: Remove file.
249 * libitm_i.h: Don't include it anymore.
250 (sized_integral): Remove.
252 2016-01-16 Torvald Riegel <triegel@redhat.com>
254 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
256 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
257 * libitm/testsuite/libitm.c/priv-1.c: New.
259 2015-01-15 Torvald Riegel <triegel@redhat.com>
261 testsuite/libitm.c++/libstdc++-safeexc.C: New.
263 2016-01-13 Torvald Riegel <triegel@redhat.com>
265 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
266 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
267 (gtm_rwlock::write_unlock): Likewise.
269 2016-01-13 Richard Henderson <rth@redhat.com>
271 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
272 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
273 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
274 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
275 * configure.ac (ARCH_AARCH64): New conditional.
276 (ARCH_PPC, ARCH_S390): Likewise.
277 * Makefile.in, configure: Rebuild.
279 * libitm.h (_ITM_TYPE_M128): Always define.
280 * vect64.cc: Split ...
281 * vect128.cc: ... out of...
282 * config/x86/x86_sse.cc: ... here.
283 * config/arm/neon.cc: New file.
285 2016-01-13 Torvald Riegel <triegel@redhat.com>
287 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
288 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
289 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
290 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
291 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
292 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
293 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
294 (serialirr_dispatch::snapshot_most_recent): New.
295 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
297 2016-01-12 Torvald Riegel <triegel@redhat.com>
299 * libitm_i.h (gtm_mask_stack): Remove.
300 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
301 * stmlock.h: Remove file.
302 * config/alpha/cacheline.h: Likewise.
303 * config/generic/cacheline.h: Likewise.
304 * config/powerpc/cacheline.h: Likewise.
305 * config/sparc/cacheline.h: Likewise.
306 * config/x86/cacheline.h: Likewise.
308 2016-01-04 Jakub Jelinek <jakub@redhat.com>
310 Update copyright years.
312 * libitm.texi: Bump @copying's copyright year.
314 2015-11-26 Torvald Riegel <triegel@redhat.com>
316 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
317 (ml_wt_dispatch::pre_write): Adapt.
318 (ml_wt_dispatch::pre_load): Likewise.
320 2015-11-22 Torvald Riegel <triegel@redhat.com>
322 * libitm_i.h (gtm_alloc_action): Remove union.
323 * testsuite/libitm.c/alloc-1.c: New.
325 2015-11-19 Torvald Riegel <triegel@redhat.com>
327 * testsuite/libitm.c++/eh-5.C: New.
328 * libitm.h (_ITM_cxa_free_exception): New.
329 * libitm.map (_ITM_cxa_free_exception): Add it.
330 * libitm.texi: Update ABI docs.
331 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
332 (gtm_transaction_cp::cxa_uncaught_count): Add.
333 (gtm_thread::cxa_unthrown): Remove.
334 (gtm_thread::cxa_uncaught_count_ptr): Add.
335 (gtm_thread::cxa_uncaught_count): Add.
336 (gtm_thread::drop_references_allocations): Rename to...
337 (gtm_thread::discard_allocation): ... this and adapt.
338 (gtm_thread::init_cpp_exceptions): New.
339 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
340 (gtm_thread::begin_transaction): Likewise.
341 (gtm_transaction_cp::save): Likewise.
342 (gtm_thread::trycommit): Likewise.
343 * eh_cpp.cc: Add overview comments.
344 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
345 (free_any_exception, _ITM_cxa_free_exception): New.
346 (gtm_thread::init_cpp_exceptions): Define.
347 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
348 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
349 (gtm_thread::revert_cpp_exceptions): Likewise.
351 2015-11-09 Torvald Riegel <triegel@redhat.com>
353 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
354 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
355 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
356 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
357 (gtm_thread::forget_allocations): New overload with size_t argument.
358 * alloc.c (gtm_thread::forget_allocation): Define new overload and
360 (gtm_thread::record_allocation): Adapt.
361 (gtm_thread::commit_allocations_1): Adapt.
362 (gtm_thread::commit_allocations_2): Adapt.
363 * testsuite/libitm.c++/newdelete.C: New.
365 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
366 Joseph Myers <joseph@codesourcery.com>
367 Mark Shinwell <shinwell@codesourcery.com>
368 Andrew Stubbs <ams@codesourcery.com>
369 Rich Felker <dalias@libc.org>
371 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
372 GTM_begin_transaction for compatibility with FDPIC.
374 2015-10-09 David Malcolm <dmalcolm@redhat.com>
376 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
379 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
382 * local_atomic (__always_inline): Rename to...
383 (__libitm_always_inline): ... this.
385 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
388 * config/powerpc/sjlj.S: Port to Xcode 2.5.
390 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
392 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
393 operands "op" and "val" to int.
395 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
397 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
398 "op" and "val" to int.
400 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
402 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
403 "op" and "val" to int.
405 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
407 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
408 Declare as static int.
409 (FUTEX_PRIVATE_FLAG): Remove L suffix.
410 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
412 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
414 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
417 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
419 * Makefile.in: Regenerated with automake-1.11.6.
420 * aclocal.m4: Likewise.
421 * configure: Likewise.
422 * testsuite/Makefile.in: Likewise.
424 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
426 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
427 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
429 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
432 * libitm.c/stackundo.c (test2): Make it static.
435 2015-01-05 Jakub Jelinek <jakub@redhat.com>
437 Update copyright years.
439 2015-01-05 Jakub Jelinek <jakub@redhat.com>
441 * libitm.texi: Bump @copying's copyright year.
443 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
445 * testsuite/lib/libitm.exp: Load target-utils.exp.
446 Move load of target-supports.exp earlier.
448 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
450 * configure.tgt (x86_64): Tune -m32 multilib to generic.
452 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
455 * configure: Regenerated.
457 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
460 * configure: Regenerate.
462 2014-10-06 Marek Polacek <polacek@redhat.com>
464 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
465 * testsuite/libitm.c/memset-1.c: Likewise.
467 2014-07-24 Richard Henderson <rth@redhat.com>
469 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
470 addressing mode in epilogue.
472 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
474 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
475 -mclear-hwcap instead.
476 * configure: Regenerate.
477 * clearcap.map: Remove.
479 2014-05-21 John Marino <gnugcc@marino.st>
481 * configure.tgt (*-*-dragonfly*): New target.
483 2014-05-19 Richard Henderson <rth@redhat.com>
485 * config/aarch64/sjlj.S: New file.
486 * config/aarch64/target.h: New file.
487 * configure.tgt: Enable aarch64.
489 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
491 * config/generic/asmcfi.h: Also check for
492 __GCC_HAVE_DWARF2_CFI_ASM.
494 2013-04-02 Richard Henderson <rth@redhat.com>
496 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
497 * config/arm/target.h, config/sh/target.h: Likewise.
498 * config/sparc/target.h, config/x86/target.h: Likewise.
500 2014-03-26 Jakub Jelinek <jakub@redhat.com>
502 * config/linux/futex_bits.h: Include errno.h.
503 (sys_futex0): If syscall returns -1, return -errno rather than
506 2014-03-26 Joseph Myers <joseph@codesourcery.com>
508 * libitm.texi (Index): Rename to Library Index.
510 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
513 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
514 (x86_avx.lo): Append -mavx to CXXFLAGS.
515 * Makefile.in: Regenerate.
517 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
519 Update copyright years
521 2014-01-02 Tobias Burnus <burnus@net-b.de>
523 * libitm.texi: Bump @copying's copyright year.
525 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
527 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
528 (FUNC): Define ELFv2 variant.
535 2013-09-20 Alan Modra <amodra@gmail.com>
537 * configure: Regenerate.
539 2013-08-30 Torvald Riegel <triegel@redhat.com>
541 * config/posix/rwlock.cc: Fix initialization order.
543 2013-08-30 Torvald Riegel <triegel@redhat.com>
545 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
546 (htm_fastpath): Assign an asm name.
547 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
549 (_ITM_actions): Likewise.
550 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
552 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
553 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
554 field to the start of the structure.
555 * config/linux/rwlock.h (gtm_rwlock): Update comments.
556 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
557 handling for custom HTM fast paths.
559 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
561 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
563 * configure.tgt: Add -msoft-float to XCFLAGS.
565 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
567 * configure.tgt: Add -msoft-float to XCFLAGS.
569 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
571 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
572 (htm_transaction_active): Enable zEC12 instructions in the
574 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
576 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
578 * acinclude.m4: Add htm asm check for s390.
579 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
580 * configure: Regenerate.
581 * config/s390/target.h: Remove __HTM__ check.
582 (htm_available): Call getauxval to get hwcaps and check whether
583 HTM is available or not.
585 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
587 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
588 * configure.ac: Use it.
589 (AC_CHECK_HEADERS): Check for sys/auxv.h.
590 (AC_CHECK_FUNCS): Check for getauxval.
591 * config.h.in, configure: Rebuild.
592 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
593 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
594 (USE_HTM_FASTPATH): Define.
595 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
596 _HTM_RETRIES) New macros.
597 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
598 htm_begin_success, htm_commit, htm_transaction_active): New functions.
600 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
602 * config/s390/target.h: Include htmintrin.h.
603 (_HTM_ITM_RETRIES): New macro definition.
604 (htm_available, htm_init, htm_begin, htm_begin_success)
605 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
607 2013-06-20 Iain Sandoe <iain@codesourcery.com>
608 Cesar Philippidis <cesar@codesourcery.com>
610 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
611 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
612 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
613 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
615 2013-06-20 Torvald Riegel <triegel@redhat.com>
617 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
618 (_ITM_getTransactionId): Same.
619 * config/x86/target.h (htm_transaction_active): New.
621 2013-06-20 Torvald Riegel <triegel@redhat.com>
624 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
627 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
630 * local_atomic (__always_inline): Always define our version.
631 (__calculate_memory_order): Mark inline.
632 (atomic_thread_fence): Ditto.
633 (atomic_signal_fence): Ditto.
634 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
635 (atomic_bool::atomic_flag_clear_explicit): Ditto.
636 (atomic_bool::atomic_flag_test_and_set): Ditto.
637 (atomic_bool::atomic_flag_clear): Ditto.
639 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
641 * config/s390/sjlj.S: New file.
642 * config/s390/target.h: New file.
643 * configure.tgt: Set options for S/390.
645 2013-03-23 Andi Kleen <ak@linux.intel.com>
647 * local_atomic (__always_inline): Add.
648 (__calculate_memory_order, atomic_thread_fence,
649 atomic_signal_fence, test_and_set, clear, store, load,
650 exchange, compare_exchange_weak, compare_exchange_strong,
651 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
652 Add __always_inline to force inlining.
654 2013-02-11 Iain Sandoe <iain@codesourcery.com>
655 Jack Howarth <howarth@bromo.med.uc.edu>
656 Patrick Marlier <patrick.marlier@gmail.com>
659 * alloc_cpp.cc: Enable function declarations on darwin.
660 * eh_cpp.cc: Likewise.
662 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
664 Update copyright years.
666 2012-11-09 Torvald Riegel <triegel@redhat.com>
668 * beginend.cc (htm_fastpath): New.
669 (gtm_thread::begin_transaction, _ITM_commitTransaction,
670 _ITM_commitTransactionEH): Add HTM fastpath handling.
671 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
672 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
673 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
674 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
675 * configure.tgt: Add -mrtm to XCFLAGS.
676 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
677 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
678 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
679 * retry.cc (parse_default_method): Add HTM method parsing.
680 (gtm_thread::number_of_threads_changed): Use HTM by default if
683 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
685 * configure: Regenerate.
687 2012-10-31 Richard Henderson <rth@redhat.com>
689 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
690 * configure.ac: Use it.
691 * config.h.in, configure: Rebuild.
692 * testsuite/Makefile.in: Rebuild.
694 2012-10-24 Torvald Riegel <triegel@redhat.com>
696 * libitm.texi: Clarify ABI requirements for data-logging functions.
698 2012-10-24 Torvald Riegel <triegel@redhat.com>
700 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
701 it requires serial mode instead of assuming that for certain
703 * dispatch.h (abi_dispatch::requires_serial): New.
704 (abi_dispatch::abi_dispatch): Adapt.
705 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
706 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
707 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
708 serial_dispatch::serial_dispatch,
709 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
711 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
713 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
714 and ia32 declarations some more.
715 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
717 2012-09-20 Jakub Jelinek <jakub@redhat.com>
720 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
721 * configure: Regenerate.
722 * Makefile.in: Regenerate.
724 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
726 * configure: Regenerated.
728 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
730 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
732 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
734 * eh_cpp.cc: Fix __cxa_end_catch declaration.
736 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
738 * configure: Regenerated.
740 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
743 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
746 2012-04-03 Tristan Gingold <gingold@adacore.com>
748 * configure: Regenerate.
750 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
753 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
755 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
757 * testsuite/lib/libitm.exp: load fortran-modules.exp
759 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
761 * configure.tgt (*-*-irix6*): Remove.
763 2012-03-13 Torvald Riegel <triegel@redhat.com>
766 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
769 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
771 * configure.tgt (*-*-osf*): Remove.
772 * configure: Regenerate.
774 2012-03-05 Torvald Riegel <triegel@redhat.com>
776 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
777 memtransfer/memset if size isn't larger than zero.
779 2012-03-02 Torvald Riegel <triegel@redhat.com>
781 * libitm.texi: Link to specification and add a usage example.
783 2012-02-24 Torvald Riegel <triegel@redhat.com>
785 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
786 default dispatch for more than 1 thread to ml_wt.
788 2012-02-20 Torvald Riegel <triegel@redhat.com>
790 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
792 2012-02-20 Torvald Riegel <triegel@redhat.com>
794 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
796 2012-02-20 Torvald Riegel <triegel@redhat.com>
798 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
799 serial mode corner cases made obsolete by prior gtm_rwlock changes.
800 (gl_wt_dispatch.rollback): Same.
802 2012-02-20 Torvald Riegel <triegel@redhat.com>
804 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
806 2012-02-20 Torvald Riegel <triegel@redhat.com>
808 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
809 for RfW src. Optimize number of calls to gtm_thr.
811 2012-02-20 Torvald Riegel <triegel@redhat.com>
813 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
815 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
816 (default_dispatch): Make atomic.
817 (GTM::gtm_thread::set_default_dispatch): Access atomically.
818 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
819 use decide_begin_dispatch() if default_dispatch might have changed.
820 (GTM::gtm_thread::number_of_threads_changed): Initialize
821 default_dispatch here.
823 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
824 Patrick Marlier <patrick.marlier@gmail.com>
827 * alloc_cpp.cc: No dummy definitions for darwin.
828 * eh_cpp.cc: Likewise.
830 2012-02-14 Richard Henderson <rth@redhat.com>
832 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
834 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
836 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
838 2012-02-14 Torvald Riegel <triegel@redhat.com>
840 * libitm_i.h (GTM::gtm_rwlog_entry): New.
841 (GTM::gtm_thread): Add read and write logs.
842 (GTM::dispatch_ml_wt): Declare.
843 * retry.cc (parse_default_method): Support ml_wt.
844 * method-ml.cc: New file.
845 * Makefile.am: Add method-ml.cc.
846 * Makefile.in: Regenerate.
848 2012-02-14 Torvald Riegel <triegel@redhat.com>
850 * dispatch.h (GTM::abi_dispatch::supports): New.
851 (GTM::method_group::reinit): New.
852 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
853 (GTM::gtm_thread::number_of_threads_changed): Check that the method
854 supports the current situation.
856 2012-02-14 Torvald Riegel <triegel@redhat.com>
858 * util.cc (GTM::xcalloc): New.
859 * common.h (GTM::xcalloc): Declare.
861 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
863 * config/sparc/target.h (cpu_relax): Read from CC register.
864 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
866 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
868 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
870 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
872 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
873 * config/sparc/cacheline.h: New file.
874 * config/sparc/target.h: Likewise.
875 * config/sparc/sjlj.S: Likewise.
876 * config/linux/sparc/futex_bits.h: Likewise.
878 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
880 * configure.ac (link_itm): Fix comment.
881 * configure: Regenerate.
882 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
884 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
887 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
888 Correct libgomp references.
890 2012-01-24 Torvald Riegel <triegel@redhat.com>
892 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
895 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
897 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
899 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
900 offset values. Do not copy return address. Decrement stack
902 (GTM_longjump) [__x86_64__]: Update offset values.
904 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
907 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
908 the first function argument to %eax.
910 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
912 * libitm.h (_ITM_getThreadnum): Remove.
913 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
915 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
917 * clearcap.map: New file.
918 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
919 * configure.ac: Call it.
920 Clear HWCAP_LDFLAGS if defaulting to -mavx.
921 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
922 * configure: Regenerate.
923 * Makefile.in: Regenerate.
924 * testsuite/Makefile.in: Regenerate.
926 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
929 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
930 include, exclude options.
932 2012-01-14 Torvald Riegel <triegel@redhat.com>
934 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
936 * containers.h (GTM::vector::set_size): New.
938 2012-01-14 Torvald Riegel <triegel@redhat.com>
941 * config/generic/tls.h (GTM::mask_stack_top): New.
942 (GTM::mask_stack_bottom): Declare.
943 * config/generic/tls.c (GTM::mask_stack_bottom): New.
944 * local.cc (gtm_undolog::rollback): Filter out any updates that
945 overlap the libitm stack. Add current transaction as parameter.
946 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
947 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
948 * testsuite/libitm.c/stackundo.c: New test.
950 2012-01-10 Richard Henderson <rth@redhat.com>
952 * libitm_i.h (_Unwind_DeleteException): Declare weak.
953 * eh_cpp.cc (_Unwind_DeleteException): Define for
954 !HAVE_ELF_STYLE_WEAKREF.
956 2012-01-08 Torvald Riegel <triegel@redhat.com>
958 * local.cc (GTM_LB): Use GTM::gtm_undolog.
959 (GTM::gtm_thread::drop_references_undolog): Remove.
960 (GTM::gtm_thread::commit_undolog,
961 GTM::gtm_thread::rollback_undolog): Move to ...
962 * libitm_i.h (GTM::gtm_undolog): ...here. New.
963 (GTM::gtm_undolog_entry): Remove.
964 (GTM::gtm_thread): Adapt.
965 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
966 (GTM::gtm_thread::trycommit): Adapt.
967 * method-serial.cc (serial_dispatch::log): Adapt.
968 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
969 (gl_wt_dispatch::store): Fix likely/unlikely.
970 * containers.h (GTM::vector::resize): Add additional_capacity
971 parameter and handle it.
972 (GTM::vector::resize_noinline): New/adapt.
973 (GTM::vector::push): New.
975 2012-01-06 Richard Henderson <rth@redhat.com>
977 * configure.tgt: Support powerpc-linux and powerpc-darwin.
978 * config/linux/powerpc/futex_bits.h: New file.
979 * config/powerpc/cacheline.h: New file.
980 * config/powerpc/sjlj.S: New file.
981 * config/powerpc/target.h: New file.
982 * config/generic/asmcfi.h (cfi_offset): New.
983 (cfi_restore, cfi_undefined): New.
985 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
988 * testsuite/libitm.c/reentrant.c: Remove xfail.
989 (thread): Pass x to pure().
990 From Patrik Marlier <patrick.marlier@gmail.com>.
992 2011-12-24 Torvald Riegel <triegel@redhat.com>
994 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
995 privatization safety if already in serial mode.
997 2011-12-24 Torvald Riegel <triegel@redhat.com>
999 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1000 finish_serial_upgrade parameter.
1001 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1002 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1003 Don't unset reader flag.
1004 (GTM::gtm_rwlock::write_upgrade_finish): New.
1005 * config/posix/rwlock.cc: Same.
1006 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1008 * config/posix/rwlock.h: Same.
1009 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1010 flag after commit or after rollback when restarting.
1012 2011-12-24 Torvald Riegel <triegel@redhat.com>
1014 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1015 (GTM::gtm_thread::try_commit): Changed memory order.
1016 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1018 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1019 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1020 * config/linux/futex_bits.h (sys_futex0): Same.
1021 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1022 * config/linux/futex.h (futex_wait, futex_wake): Same.
1023 * config/linux/rwlock.h (gtm_rwlock::writers,
1024 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1026 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1027 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1028 gtm_rwlock::write_unlock): Fix memory orders and fences.
1029 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1030 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1031 gtm_rwlock::write_unlock): Same.
1032 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1033 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1034 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1036 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1037 gl_wt_dispatch::load, gl_wt_dispatch::store,
1038 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1039 orders and fences. Add comments.
1041 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1043 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1044 * Makefile.in: Regenerated.
1046 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1048 * configure.tgt: Add sh* case.
1049 * config/sh/target.h: New file.
1050 * config/sh/sjlj.S: New file.
1051 * config/linux/sh/futex_bits.h: New file.
1053 2011-12-14 Richard Henderson <rth@redhat.com>
1055 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1056 * config/arm/sjlj.S, config/arm/target.h: New files.
1057 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1058 (cfi_rel_offset): New.
1059 * config/linux/futex_bits.h: New file.
1060 * config/linux/futex.cc: Include futex_bits.h here...
1061 * config/linux/futex.h: ... not here.
1062 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1063 * configure.ac (ARCH_AM): New conditional.
1064 * Makefile.in, configure: Rebuild.
1065 * configure.tgt: Handle ARM.
1067 2011-12-13 Richard Henderson <rth@redhat.com>
1069 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1070 signed/unsigned comparison werror.
1072 * local_atomic: New file.
1073 * libitm_i.h: Include it.
1074 (gtm_thread::shared_state): Use atomic template.
1075 * beginend.cc (GTM::gtm_clock): Use atomic template.
1076 (global_tid): Use atomic template if 64-bit atomics available.
1077 (gtm_thread::gtm_thread): Update shared_state access.
1078 (gtm_thread::trycommit): Likewise.
1079 (choose_code_path): Update global_tid access.
1080 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1081 * stmlock.h (GTM::gtm_clock): Use atomic template.
1082 (gtm_get_clock, gtm_inc_clock): Update accesses.
1083 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1084 redundant __sync_synchronize after atomic shared_state access.
1085 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1086 (gtm_rwlock::write_lock_generic): Likewise.
1087 (gtm_rwlock::read_unlock): Likewise.
1088 * config/alpha/target.h (atomic_read_barrier): Remove.
1089 (atomic_write_barrier): Remove.
1090 * config/x86/target.h (atomic_read_barrier): Remove.
1091 (atomic_write_barrier): Remove.
1093 2011-11-30 Richard Henderson <rth@redhat.com>
1095 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1096 * beginend.c (_ITM_abortTransaction): Update to match.
1097 (GTM::gtm_thread::restart): Likewise.
1098 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1099 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1101 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1103 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1104 * Makefile.in: Regenerate.
1106 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1108 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1109 * alloc_cpp.cc: Generate dummy functions if we don't
1110 HAVE_ELF_STYLE_WEAKREF.
1111 * eh_cpp.cc: Likewise.
1112 * configure: Regenerate.
1113 * aclocal.m4: Likewise.
1114 * config.h.in: Likewise.
1115 * Makefile.in: Likewise.
1116 * testsuite/Makefile.in: Likewise.
1118 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1120 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1121 __USER_LABEL_PREFIX__ for targets that use it.
1122 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1123 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1124 in portability to non-elf targets.
1125 (GTM_longjmp): Likewise.
1126 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1129 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1131 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1132 * testsuite/libitm.c/memset-1.c: Likewise.
1134 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1136 * configure: Regenerate.
1138 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1140 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1141 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1142 * Makefile.am: Handle sun style versioning.
1143 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1144 * configure: Regenerate.
1145 * Makefile.in: Regenerate.
1147 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1149 * config/generic/asmcfi.h: Fix comment.
1150 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1151 sequence without .hidden support, error for non-ELF targets.
1152 (GTM_longjmp) [__ELF__]: Only use .hidden if
1153 HAVE_ATTRIBUTE_VISIBILITY.
1155 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1158 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1160 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1161 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1163 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1166 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1167 * configure: Regenerate.
1169 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1171 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1173 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1175 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1177 (.note.GNU-stack): Only use if __linux__.
1178 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1179 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1180 * testsuite/libitm.c/reentrant.c: Likewise.
1181 * testsuite/libitm.c/simple-2.c: Likewise.
1182 * testsuite/libitm.c/txrelease.c: Likewise.
1183 * testsuite/libitm.c++/static_ctor.C: Likewise.
1185 2011-11-10 Richard Henderson <rth@redhat.com>
1187 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1188 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1189 * configure.ac (ARCH_X86_AVX): New conditional.
1190 * Makefile.in, configure: Rebuild.
1192 2011-11-09 Richard Henderson <rth@redhat.com>
1194 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1195 * configure.ac: Use it.
1196 * config.h.in, configure: Rebuild.
1197 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1199 2011-11-09 Richard Henderson <rth@redhat.com>
1201 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1202 * config/alpha/unaligned.h: Remove file.
1203 * config/generic/unaligned.h: Remove file.
1204 * config/x86/unaligned.h: Remove file.
1205 * config/generic/cachepage.h: Remove file.
1206 * config/posix/cachepage.cc: Remove file.
1207 * config/generic/cacheline.cc: Remove file.
1208 * config/x86/cacheline.cc: Remove file.
1209 * config/generic/cacheline.h (gtm_cacheline): Remove the
1210 store_mask, copy_mask, copy_mask_wb methods.
1211 * config/x86/cacheline.h: Likewise.
1212 * config/alpha/cacheline.h: Fall back to generic after setting size.
1213 * config/generic/tls.cc (gtm_mask_stack): Remove.
1214 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1215 (GTM_vpalignr_table): Remove.
1216 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1217 (GTM_pshift_table): Remove.
1218 * config/libitm_i.h: Don't include cachepage.h.
1219 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1220 * Makefile.in, testsuite/Makefile.in: Rebuild.
1222 2011-11-09 Richard Henderson <rth@redhat.com>
1224 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1225 to emit branch prediction hint.
1227 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1228 Protect .note.GNU-stack with __linux__.
1230 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1231 * configure, aclocal.m4, config.h.in: Rebuild.
1232 * config/generic/asmcfi.h: New file.
1233 * config/x86/sjlj.S: Use it.
1235 2011-11-08 Richard Henderson <rth@redhat.com>
1237 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1239 2011-11-08 Richard Henderson <rth@redhat.com>
1241 * configure.tgt: Test correct directory for supported cpus.
1243 * configure.ac: Exit if unsupported.
1244 * configure: Rebuild.
1245 * configure.tgt: Delete boilerplate from libgomp for unsupported
1246 targets. Set UNSUPPORTED for unsupported targets.
1248 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1250 * configure.tgt: Handle i386 like i[456]86.
1251 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1253 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1254 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1256 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1258 * method-wbetl.cc: Update copyright notice.
1264 * barrier.tpl: Same.
1265 * useraction.cc: Same.
1269 * config/generic/tls.cc: Same.
1270 * config/generic/cacheline.h: Same.
1271 * config/generic/cachepage.h: Same.
1272 * config/generic/cacheline.cc: Same.
1273 * config/generic/unaligned.h: Same.
1274 * config/x86/cacheline.h: Same.
1275 * config/x86/cacheline.cc: Same.
1276 * config/x86/unaligned.h: Same.
1277 * config/alpha/cacheline.h: Same.
1278 * config/alpha/unaligned.h: Same.
1279 * config/alpha/sjlj.S: Same.
1280 * config/posix/cachepage.cc: Same.
1281 * config/linux/futex.h: Same.
1282 * config/linux/alpha/futex_bits.h: Same.
1284 2011-11-04 Torvald Riegel <triegel@redhat.com>
1286 * libitm.texi: No cover text and invariant sections.
1288 2011-11-03 Richard Henderson <rth@redhat.com>
1290 * local_type_traits: New file.
1291 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1293 2011-11-03 Richard Henderson <rth@redhat.com>
1295 * configure.ac: Don't test for gfortran.
1296 * configure: Rebuild.
1298 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1299 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1301 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1303 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1304 * testsuite/libitm.c/memset-1.c: Same.
1305 * testsuite/libitm.c/c.exp: Same.
1306 * testsuite/lib/libitm-dg.exp: Same.
1307 * testsuite/lib/libitm.exp: Same.
1308 * testsuite/libitm.c++/c++.exp: Same.
1310 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1312 * testsuite/config/default.exp: Update copyright date.
1313 * configure.ac: Add copyright info.
1314 * configure.tgt: Same.
1316 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1318 * testsuite/libitm.c/reentrant.c: XFAIL.
1319 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1321 2011-10-29 Torvald Riegel <triegel@redhat.com>
1323 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1325 (_ITM_abortTransaction): Handle aborts of outer transactions.
1327 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1328 * libitm.texi: Document aborts of outer transactions.
1329 * testsuite/libitm.c/cancel.c: New file.
1331 2011-10-19 Torvald Riegel <triegel@redhat.com>
1333 * testsuite/*: Change __transaction to __transaction_atomic or
1334 __transaction_relaxed.
1336 2011-10-19 Torvald Riegel <triegel@redhat.com>
1338 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1341 2011-10-19 Torvald Riegel <triegel@redhat.com>
1343 * libitm_i.h: Add gl_wt dispatch.
1344 * retry.cc (parse_default_method): Same.
1345 * method-gl.cc: New file.
1346 * Makefile.am: Use method-gl.cc.
1347 * Makefile.in: Rebuild.
1349 2011-10-19 Torvald Riegel <triegel@redhat.com>
1351 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1352 safety if requested by a TM method.
1353 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1354 privatization safety.
1355 * method-serial.cc: Same.
1357 2011-10-19 Torvald Riegel <triegel@redhat.com>
1359 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1360 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1361 undolog-related member functions from *_local to *_undolog.
1362 * local.cc (gtm_thread::commit_undolog): Same.
1363 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1364 (GTM::gtm_thread::rollback): Roll back undolog before
1365 dispatch-specific rollback.
1367 2011-10-19 Torvald Riegel <triegel@redhat.com>
1369 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1370 re-initialization of the current method group.
1371 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1373 2011-10-19 Torvald Riegel <triegel@redhat.com>
1375 * alloc.cc (commit_allocations_2): Do not free transaction-local
1376 memory when committing a nested transaction.
1378 2011-10-19 Torvald Riegel <triegel@redhat.com>
1380 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1381 serial-irrevocable dispatch, not serial.
1383 2011-10-19 Torvald Riegel <triegel@redhat.com>
1385 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1387 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1388 * method-serial.cc: Implement begin_or_restart().
1389 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1390 dispatch-specific begin_or_restart().
1391 (GTM::gtm_thread::restart): Same.
1393 2011-08-23 Torvald Riegel <triegel@redhat.com>
1395 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1396 restarting without switching to serial mode.
1397 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1398 transaction state. Choose closed-nesting alternative if available.
1399 (GTM::gtm_thread::set_default_dispatch): New.
1400 (parse_default_method): New.
1401 (GTM::gtm_thread::number_of_threads_changed): New.
1402 * method-serial.cc (GTM::serial_mg): New method group class.
1403 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1405 (GTM::serial_dispatch): Same.
1406 (GTM::serialirr_onwrite_dispatch): Same.
1407 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1408 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1410 (GTM::gtm_thread::gtm_thread): Same.
1411 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1412 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1413 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1414 choose dispatch but set state according to dispatch here.
1415 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1416 (GTM::method_group): New class.
1417 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1418 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1419 * libitm.texi: Document TM methods, method groups, method life cycle.
1420 Rename method sets to method groups.
1422 2011-08-23 Torvald Riegel <triegel@redhat.com>
1424 * config/x86/tls.h: Moved to ...
1425 * config/linux/x86/tls.h: ... here.
1427 2011-08-23 Torvald Riegel <triegel@redhat.com>
1429 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1431 * config/x86/sjlj.S: Same.
1433 2011-08-19 Torvald Riegel <triegel@redhat.com>
1435 * config/linux/rwlock.h: New file.
1436 * config/linux/rwlock.c: New file.
1437 * configure.ac: Reenable futex support (undo SVN rev 157758).
1438 * Makefile.am: Same.
1439 * configure.tgt: Same.
1440 * config/linux/alpha/futex_bits.h: Same.
1441 * config/linux/futex.h: Same. Return number of woken processes.
1442 * config/linux/futex.cc: Same.
1443 (futex_wait): Remove spinning.
1444 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1445 Use __x86_64__ instead of __LP64__.
1446 * aclocal.m4: Include generic futex checks.
1447 * configure: Rebuild.
1448 * Makefile.in: Rebuild.
1449 * testsuite/Makefile.in: Rebuild.
1450 * beginend.cc: Include pthread.h.
1451 * config/posix/cachepage.cc: Same.
1453 2011-08-12 Torvald Riegel <triegel@redhat.com>
1455 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1456 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1458 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1460 (GTM::gtm_thread::thread_num): Removed.
1461 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1462 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1463 tx-to-thread renaming.
1464 * beginend.cc: Adapted to tx-to-thread renaming.
1465 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1466 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1467 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1468 gtm_transaction to gtm_thread.
1469 (_ITM_getThreadnum): Removed. Not supported anymore.
1470 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1471 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1472 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1473 gtm_tx-to-gtm_thr renaming if necessary.
1480 * alloc_cpp.cc: Same.
1481 * method-serial.cc: Same.
1482 * config/generic/tls.cc: Same.
1483 * config/posix/rwlock.h (gtm_rwlock): Same.
1484 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1486 2011-08-12 Torvald Riegel <triegel@redhat.com>
1488 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1490 (gtm_rwlock::read_unlock): Same.
1491 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1492 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1493 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1494 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1495 w_upgrade. Replaced by per-transaction flags (in shared_state).
1496 Added c_confirmed_writers.
1497 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1498 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1499 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1500 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1501 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1502 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1503 * libitm.texi: Document locking conventions and implementations in
1506 2011-08-12 Torvald Riegel <triegel@redhat.com>
1508 * libitm_i.h (next_tx): Add list of all threads' transaction.
1509 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1510 transaction with list of transactions and ...
1511 (thread_exit_handler): ... deregister here.
1512 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1513 * config/x86/target.h: Same.
1515 2011-08-12 Torvald Riegel <triegel@redhat.com>
1517 * testsuite/libitm.c++/static_ctor.C: New file.
1519 2011-08-12 Torvald Riegel <triegel@redhat.com>
1521 * testsuite/libitm.c/reentrant.c: New file.
1523 2011-08-12 Torvald Riegel <triegel@redhat.com>
1525 * config/generic/tls.h: Remove the free list for transactions and ...
1526 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1527 (GTM::gtm_transaction::operator delete): ... and release here.
1528 (thread_exit_handler): New. Delete tx when thread terminates.
1529 (thread_exit_init): New.
1530 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1531 * testsuite/libitm.c/txrelease.c: New file.
1533 2011-08-12 Torvald Riegel <triegel@redhat.com>
1535 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1536 * testsuite/libitm.c/notx.c: New file.
1538 2011-08-12 Torvald Riegel <triegel@redhat.com>
1540 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1541 * libitm_i.h (local_tid): ... to here.
1542 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1543 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1545 2011-08-12 Torvald Riegel <triegel@redhat.com>
1547 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1548 serialirr_onwrite_dispatch as new default for now.
1549 * method-serial.cc (serialirr_onwrite_dispatch): New.
1550 (GTM::dispatch_serialirr_onwrite): New.
1553 2011-08-12 Torvald Riegel <triegel@redhat.com>
1555 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1556 * query.cc (_ITM_getTransactionId): There is no active transaction if
1557 the current nesting level is zero.
1559 2011-07-28 Torvald Riegel <triegel@redhat.com>
1561 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1564 2011-07-28 Torvald Riegel <triegel@redhat.com>
1566 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1567 transaction properties from the caller instead of from the
1570 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1572 2011-07-28 Torvald Riegel <triegel@redhat.com>
1574 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1575 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1577 * method-serial.cc: Same.
1578 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1579 flat nesting as default, and closed nesting on demand.
1580 (GTM::gtm_transaction::rollback): Same.
1581 (_ITM_abortTransaction): Same.
1582 (GTM::gtm_transaction::restart): Same.
1583 (GTM::gtm_transaction::trycommit): Same.
1584 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1585 (choose_code_path): New.
1586 (GTM::gtm_transaction_cp::save): New.
1587 (GTM::gtm_transaction_cp::commit): New.
1588 * query.cc (_ITM_inTransaction): Support flat nesting.
1589 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1590 (GTM::gtm_transaction): Support flat and closed nesting.
1591 * alloc.cc (commit_allocations_2): New.
1592 (commit_cb_data): New helper struct.
1593 (GTM::gtm_transaction::commit_allocations): Handle nested
1595 * libitm.texi: Update user action section, add description of nesting.
1597 2011-07-28 Torvald Riegel <triegel@redhat.com>
1599 * libitm_i.h: Add closed nesting as restart reason.
1600 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1602 2011-07-28 Torvald Riegel <triegel@redhat.com>
1604 * useraction.cc: Use vector instead of list to store actions.
1605 Also support partial rollbacks for closed nesting.
1606 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1607 * beginend.cc: Same.
1609 2011-07-28 Torvald Riegel <triegel@redhat.com>
1611 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1612 closed_nesting flags, as well as a closed nesting alternative.
1613 * method-serial.cc: Same.
1614 (serial_dispatch): Renamed to serialirr_dispatch.
1615 (GTM::dispatch_serialirr): Same.
1616 (serial_dispatch_ul): Renamed to serial_dispatch.
1617 (GTM::dispatch_serial): Same.
1619 2011-07-28 Torvald Riegel <triegel@redhat.com>
1621 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1623 2011-07-28 Torvald Riegel <triegel@redhat.com>
1625 * aatree.h (aa_tree::remove): New.
1626 (aa_tree::operator new): Add placement new.
1628 2011-07-02 Torvald Riegel <triegel@redhat.com>
1630 * containers.h: New file.
1631 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1632 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1633 * common.h: ... to here.
1634 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1637 2011-06-30 Torvald Riegel <triegel@redhat.com>
1639 * libitm_i.h (STATE_ABORTING): Remove.
1640 * beginend.cc (_ITM_abortTransaction): Same.
1641 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1642 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1643 (_ITM_rollbackTransaction): Remove.
1644 * beginend.cc: Same.
1646 * libitm.texi: Document these ABI changes.
1648 2011-06-30 Torvald Riegel <triegel@redhat.com>
1650 * libitm.texi: New file.
1651 * Makefile.am: Add libitm.texi.
1652 * Makefile.in: Rebuild.
1654 2011-06-30 Torvald Riegel <triegel@redhat.com>
1656 * libitm_i.h: Move parts to common.h and dispatch.h.
1657 * common.h: New file.
1658 * dispatch.h: New file, new dispatch class.
1659 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1660 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1661 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1662 decision to retry.cc.
1663 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1665 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1666 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1668 * barrier.cc: Use new barriers definitions.
1669 (abi_dispatch::memmove_overlap_check): New.
1670 * config/x86/x86_sse.cc: Same.
1671 * config/x86/x86_avx.cc: Same.
1672 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1674 * Makefile.in: Rebuild.
1675 * method-readonly.cc: Remove.
1676 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1677 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1679 2011-06-30 Torvald Riegel <triegel@redhat.com>
1681 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1682 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1683 * testsuite/libitm.c/dropref-2.c: Same.
1684 * testsuite/libitm.c/dropref.c: Same.
1686 2011-06-30 Torvald Riegel <triegel@redhat.com>
1688 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1689 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1690 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1692 * barrier.tpl: Same.
1694 * config/generic/tls.h: Same.
1695 * config/x86/tls.h: Same.
1699 * method-readonly.cc: Same.
1700 * method-serial.cc: Same.
1701 * method-wbetl.cc: Same.
1704 2011-03-03 Richard Henderson <rth@redhat.com>
1706 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1707 From Patrik Marlier <patrick.marlier@unine.ch>.
1709 2011-02-03 Richard Henderson <rth@redhat.com>
1711 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1712 * configure.ac: Use it.
1713 * configure, config.h.in: Rebuild.
1714 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1715 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1716 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1717 * libitm.map: Use wildcards to match size_t mangling.
1719 2010-12-14 Richard Henderson <rth@redhat.com>
1721 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1722 blocks of TIDs per thread.
1723 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1724 (setup_gtm_thr): Return the thread structure.
1725 * config/x86/tls.h (setup_gtm_thr): Likewise.
1727 2010-12-14 Richard Henderson <rth@redhat.com>
1729 * clone.cc (table_lock): Remove.
1730 (find_clone): Don't take it.
1731 (ExcludeTransaction): New helper class.
1732 (_ITM_registerTMCloneTable): Use it.
1733 (_ITM_deregisterTMCloneTable): Likewise.
1735 2010-12-14 Richard Henderson <rth@redhat.com>
1737 * config/x86/tls.h: New file.
1739 2010-07-15 Richard Henderson <rth@redhat.com>
1741 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1742 * Makefile.in: Rebuild.
1744 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1746 * method-wbetl.cc (trydropreference): Fix source line.
1748 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1750 * libitm.h: Add comment.
1751 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1753 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1755 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1756 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1757 available, use pthread mutexes.
1758 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1759 * config.h.in: Regenerate.
1760 * configure: Regenerate.
1762 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1764 * libitm.h (ITM_PURE): Define.
1765 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1767 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1769 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1770 (validate): Add comment.
1771 (trydropreference): New.
1772 * method-readonly.cc (class readonly_dispatch): Add
1774 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1775 Call trydropreference().
1776 * libitm.h (_ITM_dropReferences): Remove const attribute.
1777 * method-serial.cc (class serial_dispatch): Add trydropreference.
1778 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1780 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1782 * memcpy.cc (do_memcpy): Comment.
1784 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1786 * barrier.tpl: Add comments throughout.
1788 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1790 * method-wbetl.cc (struct w_entry): Add comments.
1794 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1796 * alloc_c.cc (_ITM_dropReferences): New.
1797 * libitm.map (_ITM_dropReferences): Add.
1798 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1799 * libitm_i.h (struct gtm_transaction): Declare
1800 drop_references_allocations and drop_references_local.
1801 * local.cc (rollback_local): Ignore memory when applicable.
1802 (drop_references_local): New.
1804 2010-06-23 Richard Henderson <rth@redhat.com>
1806 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1807 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1808 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1809 * config/alpha/target.h: Likewise.
1810 * config/generic/tls.cc (gtm_mask_stack): Use it.
1812 2010-06-23 Richard Henderson <rth@redhat.com>
1814 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1815 a mutex instead of trying a lock-free compare-and-swap on the list.
1816 (gtm_cacheline_page::operator delete): Likewise.
1818 2010-06-16 Richard Henderson <rth@redhat.com>
1820 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1821 that overlap the libitm stack.
1822 * barrier.tpl: Mark incoming stack.
1823 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1824 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1825 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1826 * memcpy.cc, memset.cc: Likewise.
1827 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1828 * config/generic/tls.h (gtm_thread): Add stack_top member.
1829 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1830 * libitm_i.h (gtm_mask_stack): Declare.
1831 * config/generic/tls.cc: New file.
1832 * Makefile.am (libitm_la_SOURCES): Add it.
1833 (AM_CXXFLAGS): Turn off exceptions.
1834 * Makefile.in: Rebuild.
1836 2010-06-16 Richard Henderson <rth@redhat.com>
1838 * alloc.cc (struct gtm_alloc_action): Move definition ...
1839 * libitm_i.h: ... here.
1840 (class gtm_transaction): Declare new and delete.
1841 * beginend.cc (alloc_tx): Reformulate as operator new.
1842 (free_tx): Reformulate as operator delete.
1843 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1845 2010-06-11 Richard Henderson <rth@redhat.com>
1847 * clone.cc (clone_entry_compare): Fix typo.
1848 From Patrik Marlier <patrick.marlier@unine.ch>.
1850 2010-05-13 Richard Henderson <rth@redhat.com>
1852 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1855 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1857 * libitm_i.h (struct gtm_transaction): Remove
1858 get_allocation_size.
1859 (record_allocation): Remove size parameter.
1860 * libitm.map (_ITM_realloc): Remove.
1861 * alloc_c.cc (_ITM_realloc): Remove.
1862 (_ITM_malloc): Remove size argument to record_allocation.
1863 (_ITM_calloc): Same.
1864 * alloc_cpp.cc (_ZGTtnwm): Same.
1865 (_ZGTtnwmRKSt9nothrow_t): Same.
1867 (_ZGTtnamRKSt9nothrow_t): Same.
1868 * alloc.cc (struct gtm_alloc_action): Remove size.
1869 (get_allocation_size): Remove.
1870 (commit_allocations): Add comment.
1871 (record_allocation): Remove size parameter.
1872 (forget_allocation): Remove set of size.
1874 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1876 * Makefile.am (abi_version): New.
1877 (AM_CXXFLAGS): Pass abi_version.
1878 * Makefile.in: Regenerate.
1879 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1881 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1883 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1884 _ITM_getTMCloneOrIrrevokable.
1885 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1886 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1888 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1890 * configure.ac: Remove Linux futex support.
1891 * configure.tgt (config_path): Same.
1892 * Makefile.am: Same.
1893 * config/linux: Remove entire directory.
1894 * configure: Rebuild.
1895 * Makefile.in: Rebuild.
1896 * testsuite/Makefile.in: Rebuild.
1898 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1900 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1901 switching to serial mode.
1902 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1904 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1906 * configure.tgt: Add emacs -*- tags.
1907 * barrier.tpl: Same.
1909 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1911 * Makefile.am: Rename serial.cc to method-serial.cc.
1912 * Makefile.in: Regenerate with automake 1.11.1.
1913 * testsuite/Makefile.in: Same.
1914 * aclocal.m4: Regenerate with aclocal 1.11.1.
1915 * method-serial.cc: Rename from serial.cc.
1916 * libitm_i.h (struct gtm_transaction): Update comment on
1919 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1921 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1922 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1924 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1926 * configure: Rebuild.
1928 2009-11-12 Richard Henderson <rth@redhat.com>
1930 * Rewrite everything in C++.
1932 2009-11-03 Richard Henderson <rth@redhat.com>
1934 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1935 * Makefile.am (libitm_la_SOURCES): Add them.
1936 * configure.ac (ARCH_X86): New conditional.
1937 * Makefile.in, configure: Rebuild.
1938 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1939 Move futex setup into "other system configury" case.
1940 * local.c (rollback_local): Merge into ...
1941 (GTM_rollback_local): ... here.
1942 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1943 (_ITM_LB): Define as an alias to GTM_LB.
1945 2009-11-03 Richard Henderson <rth@redhat.com>
1947 * method-readonly.c: New file.
1948 * Makefile.am (libitm_la_SOURCES): Add it.
1949 * Makefile.in: Rebuild.
1950 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1951 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1952 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1953 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1954 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1955 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1956 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1957 gtm_get_clock, gtm_inc_clock): New.
1958 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1959 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1960 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1961 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1962 replace uses with new libitm_i.h symbols.
1963 (dispatch_wbetl): Rename from wbetl_dispatch.
1964 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1965 away from dispatch_readonly; abort if the beginTransaction call
1966 asserted that the transaction was readonly.
1968 2009-11-03 Richard Henderson <rth@redhat.com>
1970 * memset.c: New file.
1971 * Makefile.am (libitm_la_SOURCES): Add it.
1972 * Makefile.in: Rebuild.
1973 * testsuite/libitm.c/memset-1.c: New.
1975 2009-11-03 Richard Henderson <rth@redhat.com>
1977 * dispatch.c: Remove file.
1978 * useraction.c (struct gtm_user_action): Move from libitm.h.
1979 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1980 (serial_memset, serial_memmove, serial_memcpy): Remove.
1981 (serial_W*, serial_R*): Remove.
1982 (serial_dispatch): Update to match.
1983 * configure.ac: Move Werror down below configure checks. Don't
1984 check for sys/loadavg.h, do check for malloc.h. Don't check for
1985 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1986 Use GCC_AC_FUNC_MMAP_BLACKLIST
1987 * libitm.h: Split out all internal items to...
1988 * libitm_i.h: ... here. New file.
1989 * copymask.c: New file.
1990 * local.c (struct gtm_local_undo): Move from libitm.h.
1991 (GTM_alloc_local): Rename from alloc_local; export.
1992 * memcpy.c: New file.
1993 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1994 * config/posix/page.c: New file.
1995 * config/posix/target_tls.h: Remove file.
1996 * barrier.c: New file.
1997 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1999 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2000 * method-wbetl.c: Rewrite for new cacheline methods.
2001 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2003 * config/alpha/sjlj.S: Fix typo.
2004 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2005 * config/alpha/copymask.c: New file.
2006 * config/alpha/target.h (CACHELINE_SIZE): New.
2007 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2009 * config/x86/target_i.h: Copy functions from x86/target.h.
2010 * config/x86/copymask.c: New file.
2011 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2012 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2013 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2014 * config/x86/target_tls.h: Move contents to target_i.h.
2016 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2017 * testsuite/libitm.c/memcpy-1.c: New.
2019 2009-10-22 Richard Henderson <rth@redhat.com>
2021 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2022 (AM_CCASFLAGS): New.
2023 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2024 saving/restoring _AC_ARG_VAR_PRECIOUS.
2025 * Makefile.in, aclocal.m4, config.h.in, configure,
2026 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2028 2009-10-22 Richard Henderson <rth@redhat.com>
2030 * testsuite/*: Update for new compiler syntax.
2032 2009-10-21 Richard Henderson <rth@redhat.com>
2034 * libitm.h (_ITM_abortReason): Add outerAbort.
2036 2009-08-03 Richard Henderson <rth@redhat.com>
2038 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2039 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2040 * method-wbetl.c (struct w_entry): Remove mask.
2041 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2044 2009-07-22 Richard Henderson <rth@redhat.com>
2046 * eh_cpp.c: New file.
2047 * Makefile.am (libitm_la_SOURCES): Add it.
2048 * Makefile.in: Rebuild.
2049 * beginend.c (GTM_rollback_transaction): Undo exception state.
2050 (GTM_trycommit_transaction): Mark inline.
2051 (GTM_trycommit_and_finalize_transaction): Split out from ...
2052 (_ITM_commitTransaction): ... here.
2053 (_ITM_commitTransactionEH): New function.
2054 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2055 cxa_unthrown, eh_in_flight; reorder.
2057 * testsuite/libitm.c++/c++.exp: New.
2058 * testsuite/libitm.c++/eh-1.C: New.
2060 * aatree.c (aa_free): Remove REGPARM.
2061 * aatree.h: Remove all REGPARM.
2063 2009-07-18 Richard Henderson <rth@redhat.com>
2065 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2066 * Makefile.am (libitm_la_SOURCES): Add them.
2067 * Makefile.in: Rebuild.
2068 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2069 (GTM_trycommit_transaction): Likewise.
2070 * libitm.h: Include aatree.h
2071 (struct gtm_alloc_action): New.
2072 (struct gtm_transaction): Add alloc_actions.
2073 (GTM_record_allocation, GTM_forget_allocation): Declare.
2074 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2075 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2076 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2077 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2078 _ZGTtdaPvRKSt9nothrow_t): Export.
2080 2009-07-18 Richard Henderson <rth@redhat.com>
2082 * target_tls.h: Move ...
2083 * config/posix/target_tls.h: ... here.
2085 2009-07-07 Richard Henderson <rth@redhat.com>
2087 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2089 2009-07-07 Richard Henderson <rth@redhat.com>
2093 2009-07-07 Richard Henderson <rth@redhat.com>
2095 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2096 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2098 * configure.tgt: Don't use -ftls-model for x86 linux.
2099 * libitm.h: Include target.h after standard includes.
2100 (_gtm_thr): Rename from gtm_thr.
2101 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2102 (gtm_disp, set_gtm_disp): New.
2103 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2104 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2105 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2107 2009-07-07 Richard Henderson <rth@redhat.com>
2109 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2111 2009-07-06 Richard Henderson <rth@redhat.com>
2113 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2114 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2115 (_ITM_beginTransaction): Take variadic arguments.
2116 (_ITM_registerThrownObject): Declare.
2117 * beginend.c, serial.c: Update.
2118 * libitm.map: Add _ITM_registerThrownObject.
2120 2009-01-28 Richard Henderson <rth@redhat.com>
2122 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2123 * Makefile.in: Rebuild.
2124 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2125 (GTM_restart_transaction): Fix uninstrumented code check.
2126 * retry.c (GTM_decide_retry_strategy): Add serial check.
2127 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2128 automatically go irrevokable when in serial mode.
2129 * clone.c: New file.
2130 * libitm.h, libitm.map: Update.
2132 2009-01-27 Richard Henderson <rth@redhat.com>
2134 * Makefile.am (LTCCASCOMPILE): Define.
2135 (libitm_la_SOURCES): Add methid-wbetl.c.
2136 * testsuite/Makefile.am: New
2137 * configure.ac: Add testsuite/Makefile.
2138 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2139 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2140 (_ITM_abortTransaction): Finalize implementation method; pass
2141 transaction properties to longjmp.
2142 (GTM_restart_transaction): Split out from ...
2143 (_ITM_commitTransaction): ... here.
2144 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2145 Move to config/x86/target.h.
2146 * config/linux/alpha/futex_bits.h: New.
2147 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2148 * config/x86/target.h: Disable target types for 32-bit.
2149 * config/alpha/sjlj.S, config/alpha/target.h: New.
2150 * libitm.h (struct gtm_dispatch): Add init, fini.
2151 (enum restart_reason): New.
2152 (struct gtm_transaction): Add method and restarts.
2153 * retry.c (GTM_decide_retry_strategy): Implement.
2154 * serial.c (serial_init, serial_fini): New.
2155 (GTM_serialmode): Finialize outgoing method.
2156 * method-wbetl.c: New.
2158 2008-12-09 Richard Henderson <rth@redhat.com>
2160 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2161 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2162 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2163 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2164 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2165 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2166 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2167 * serial.c (serial_R##T, serial_W##T): Likewise.
2169 2008-11-21 Richard Henderson <rth@redhat.com>
2173 Copyright (C) 2008-2019 Free Software Foundation, Inc.
2175 Copying and distribution of this file, with or without modification,
2176 are permitted in any medium without royalty provided the copyright
2177 notice and this notice are preserved.