1 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
5 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
7 * configure.tgt: Handle *-*-uclinux*.
8 * configure: Regenerate.
10 2019-09-06 Florian Weimer <fweimer@redhat.com>
12 * configure: Regenerate.
14 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
17 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
18 scanning to conform to the GNU Coding Standards.
19 * configure: Regenerate.
21 2019-05-03 Jakub Jelinek <jakub@redhat.com>
23 * Makefile.am (finclude): Remove.
24 * Makefile.in: Regenerated.
26 2019-01-01 Jakub Jelinek <jakub@redhat.com>
28 Update copyright years.
30 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32 * libitm.texi: Bump @copying's copyright year.
34 2018-12-16 Jakub Jelinek <jakub@redhat.com>
37 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
38 void * to void (*) (void *).
39 (_ITM_cxa_throw): Likewise.
40 * libitm.h (_ITM_cxa_throw): Likewise.
41 * libitm.texi (_ITM_cxa_throw): Likewise.
43 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
45 * config/powerpc/target.h (htm_available): Add support for
46 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
48 2018-10-31 Joseph Myers <joseph@codesourcery.com>
51 * Makefile.am: Include multilib.am.
52 (AUTOMAKE_OPTIONS): Add info-in-builddir.
53 (CLEANFILES): Remove libitm.info.
54 * configure.ac: Remove AC_PREREQ.
55 * testsuite/Makefile.am (RUNTEST): Remove quotes.
56 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
59 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
62 * method-serial.cc: Mark varible as potentially unused
65 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
67 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
68 absolute relocation in a shared library.
70 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
73 * config/linux/x86/tls.h (SEG_READ): Use the offset of
75 (SEG_WRITE): Likewise.
76 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
77 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
78 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
79 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
80 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
82 2018-05-17 Jason Merrill <jason@redhat.com>
84 * beginend.cc (save): Disable -Werror=deprecated-copy.
86 2018-05-02 Tom de Vries <tom@codesourcery.com>
89 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
91 2018-05-02 Tom de Vries <tom@codesourcery.com>
94 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
96 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
98 * config/x86/sjlj.S (_ITM_beginTransaction): Add
99 (__CET__ & 2) != 0 check for shadow stack.
100 (GTM_longjmp): Likewise.
102 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
104 * configure: Regenerated.
106 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
109 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
111 2018-04-19 Jakub Jelinek <jakub@redhat.com>
113 * configure: Regenerated.
115 2018-04-18 David Malcolm <dmalcolm@redhat.com>
118 * configure: Regenerate.
120 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
123 * configure: Regenerate.
125 2018-01-03 Jakub Jelinek <jakub@redhat.com>
127 Update copyright years.
129 * libitm.texi: Bump @copying's copyright year.
131 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
133 * Makefile.in: Regenerate.
134 * acinclude.m4: Add enable.m4 and cet.m4.
135 * config/x86/sjlj.S: Include cet.h.
136 (_ITM_beginTransaction): Add _CET_ENDBR.
137 Save Shadow Stack pointer.
138 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
139 * config/x86/target.h (struct gtm_jmpbuf):
140 Add new field for Shadow Stack pointer.
141 * configure: Regenerate.
142 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
143 * configure.ac: Update libtool_VERSION for x86.
144 * testsuite/Makefile.in: Regenerate.
146 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
148 * libitm/config/x86/target.h: Add new field (ssp).
149 * libitm/config/x86/sjlj.S: Change offsets.
151 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153 * testsuite/lib/libitm.exp: Load scanlang.exp.
155 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
157 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
159 2017-01-21 Jakub Jelinek <jakub@redhat.com>
162 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
163 of cat to get version from BASE-VER file.
164 * testsuite/Makefile.in: Regenerated.
166 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
168 * config/x86/target.h (htm_available): Determine vendor from
169 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
171 2017-01-18 Torvald Riegel <triegel@redhat.com>
173 * config/x86/target.h (htm_available): Add check for some processors
174 on which TSX is broken.
176 2017-01-17 Jakub Jelinek <jakub@redhat.com>
179 * configure.ac: Add GCC_BASE_VER.
180 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
181 get version from BASE-VER file.
182 * testsuite/Makefile.in: Regenerated.
183 * configure: Regenerated.
184 * Makefile.in: Regenerated.
186 2017-01-04 Alan Modra <amodra@gmail.com>
188 * Makefile.in: Regenerate.
189 * testsuite/Makefile.in: Regenerate.
191 2017-01-01 Jakub Jelinek <jakub@redhat.com>
193 Update copyright years.
195 * libitm.texi: Bump @copying's copyright year.
197 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
199 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
200 * aclocal.m4: Regenerate.
201 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
202 LIBITM_CHECK_LINKER_HWCAP.
204 2016-11-15 Matthias Klose <doko@ubuntu.com>
206 * configure: Regenerate.
208 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
211 * util.cc (xmalloc): Use posix_memalign to allocate memory on
212 on cache line if requested.
214 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
216 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
217 function attribute to disable floating point in begin_transaction() on
219 * beginend.cc (begin_transaction): Use
220 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
222 2016-01-22 Torvald Riegel <triegel@redhat.com>
224 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
226 (htm_fastpath): Remove.
227 (gtm_thread::begin_transaction): Fix HTM fastpath.
228 (_ITM_commitTransaction): Adapt.
229 (_ITM_commitTransactionEH): Adapt.
230 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
232 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
233 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
234 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
235 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
236 * libitm/method-serial.cc (htm_mg): Adapt.
237 (gtm_thread::serialirr_mode): Adapt.
238 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
240 2016-01-21 Torvald Riegel <triegel@redhat.com>
242 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
245 2016-01-19 Richard Henderson <rth@redhat.com>
250 2016-01-13 Richard Henderson <rth@redhat.com>
252 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
253 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
254 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
255 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
256 * configure.ac (ARCH_AARCH64): New conditional.
257 (ARCH_PPC, ARCH_S390): Likewise.
258 * Makefile.in, configure: Rebuild.
260 * libitm.h (_ITM_TYPE_M128): Always define.
261 * vect64.cc: Split ...
262 * vect128.cc: ... out of...
263 * config/x86/x86_sse.cc: ... here.
264 * config/arm/neon.cc: New file.
266 2016-01-19 Torvald Riegel <triegel@redhat.com>
268 * local_type_traits: Remove file.
269 * libitm_i.h: Don't include it anymore.
270 (sized_integral): Remove.
272 2016-01-16 Torvald Riegel <triegel@redhat.com>
274 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
276 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
277 * libitm/testsuite/libitm.c/priv-1.c: New.
279 2015-01-15 Torvald Riegel <triegel@redhat.com>
281 testsuite/libitm.c++/libstdc++-safeexc.C: New.
283 2016-01-13 Torvald Riegel <triegel@redhat.com>
285 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
286 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
287 (gtm_rwlock::write_unlock): Likewise.
289 2016-01-13 Richard Henderson <rth@redhat.com>
291 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
292 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
293 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
294 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
295 * configure.ac (ARCH_AARCH64): New conditional.
296 (ARCH_PPC, ARCH_S390): Likewise.
297 * Makefile.in, configure: Rebuild.
299 * libitm.h (_ITM_TYPE_M128): Always define.
300 * vect64.cc: Split ...
301 * vect128.cc: ... out of...
302 * config/x86/x86_sse.cc: ... here.
303 * config/arm/neon.cc: New file.
305 2016-01-13 Torvald Riegel <triegel@redhat.com>
307 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
308 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
309 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
310 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
311 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
312 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
313 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
314 (serialirr_dispatch::snapshot_most_recent): New.
315 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
317 2016-01-12 Torvald Riegel <triegel@redhat.com>
319 * libitm_i.h (gtm_mask_stack): Remove.
320 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
321 * stmlock.h: Remove file.
322 * config/alpha/cacheline.h: Likewise.
323 * config/generic/cacheline.h: Likewise.
324 * config/powerpc/cacheline.h: Likewise.
325 * config/sparc/cacheline.h: Likewise.
326 * config/x86/cacheline.h: Likewise.
328 2016-01-04 Jakub Jelinek <jakub@redhat.com>
330 Update copyright years.
332 * libitm.texi: Bump @copying's copyright year.
334 2015-11-26 Torvald Riegel <triegel@redhat.com>
336 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
337 (ml_wt_dispatch::pre_write): Adapt.
338 (ml_wt_dispatch::pre_load): Likewise.
340 2015-11-22 Torvald Riegel <triegel@redhat.com>
342 * libitm_i.h (gtm_alloc_action): Remove union.
343 * testsuite/libitm.c/alloc-1.c: New.
345 2015-11-19 Torvald Riegel <triegel@redhat.com>
347 * testsuite/libitm.c++/eh-5.C: New.
348 * libitm.h (_ITM_cxa_free_exception): New.
349 * libitm.map (_ITM_cxa_free_exception): Add it.
350 * libitm.texi: Update ABI docs.
351 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
352 (gtm_transaction_cp::cxa_uncaught_count): Add.
353 (gtm_thread::cxa_unthrown): Remove.
354 (gtm_thread::cxa_uncaught_count_ptr): Add.
355 (gtm_thread::cxa_uncaught_count): Add.
356 (gtm_thread::drop_references_allocations): Rename to...
357 (gtm_thread::discard_allocation): ... this and adapt.
358 (gtm_thread::init_cpp_exceptions): New.
359 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
360 (gtm_thread::begin_transaction): Likewise.
361 (gtm_transaction_cp::save): Likewise.
362 (gtm_thread::trycommit): Likewise.
363 * eh_cpp.cc: Add overview comments.
364 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
365 (free_any_exception, _ITM_cxa_free_exception): New.
366 (gtm_thread::init_cpp_exceptions): Define.
367 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
368 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
369 (gtm_thread::revert_cpp_exceptions): Likewise.
371 2015-11-09 Torvald Riegel <triegel@redhat.com>
373 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
374 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
375 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
376 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
377 (gtm_thread::forget_allocations): New overload with size_t argument.
378 * alloc.c (gtm_thread::forget_allocation): Define new overload and
380 (gtm_thread::record_allocation): Adapt.
381 (gtm_thread::commit_allocations_1): Adapt.
382 (gtm_thread::commit_allocations_2): Adapt.
383 * testsuite/libitm.c++/newdelete.C: New.
385 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
386 Joseph Myers <joseph@codesourcery.com>
387 Mark Shinwell <shinwell@codesourcery.com>
388 Andrew Stubbs <ams@codesourcery.com>
389 Rich Felker <dalias@libc.org>
391 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
392 GTM_begin_transaction for compatibility with FDPIC.
394 2015-10-09 David Malcolm <dmalcolm@redhat.com>
396 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
399 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
402 * local_atomic (__always_inline): Rename to...
403 (__libitm_always_inline): ... this.
405 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
408 * config/powerpc/sjlj.S: Port to Xcode 2.5.
410 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
412 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
413 operands "op" and "val" to int.
415 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
417 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
418 "op" and "val" to int.
420 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
422 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
423 "op" and "val" to int.
425 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
427 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
428 Declare as static int.
429 (FUTEX_PRIVATE_FLAG): Remove L suffix.
430 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
432 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
434 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
437 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
439 * Makefile.in: Regenerated with automake-1.11.6.
440 * aclocal.m4: Likewise.
441 * configure: Likewise.
442 * testsuite/Makefile.in: Likewise.
444 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
446 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
447 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
449 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
452 * libitm.c/stackundo.c (test2): Make it static.
455 2015-01-05 Jakub Jelinek <jakub@redhat.com>
457 Update copyright years.
459 2015-01-05 Jakub Jelinek <jakub@redhat.com>
461 * libitm.texi: Bump @copying's copyright year.
463 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
465 * testsuite/lib/libitm.exp: Load target-utils.exp.
466 Move load of target-supports.exp earlier.
468 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
470 * configure.tgt (x86_64): Tune -m32 multilib to generic.
472 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
475 * configure: Regenerated.
477 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
480 * configure: Regenerate.
482 2014-10-06 Marek Polacek <polacek@redhat.com>
484 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
485 * testsuite/libitm.c/memset-1.c: Likewise.
487 2014-07-24 Richard Henderson <rth@redhat.com>
489 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
490 addressing mode in epilogue.
492 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
495 -mclear-hwcap instead.
496 * configure: Regenerate.
497 * clearcap.map: Remove.
499 2014-05-21 John Marino <gnugcc@marino.st>
501 * configure.tgt (*-*-dragonfly*): New target.
503 2014-05-19 Richard Henderson <rth@redhat.com>
505 * config/aarch64/sjlj.S: New file.
506 * config/aarch64/target.h: New file.
507 * configure.tgt: Enable aarch64.
509 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
511 * config/generic/asmcfi.h: Also check for
512 __GCC_HAVE_DWARF2_CFI_ASM.
514 2013-04-02 Richard Henderson <rth@redhat.com>
516 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
517 * config/arm/target.h, config/sh/target.h: Likewise.
518 * config/sparc/target.h, config/x86/target.h: Likewise.
520 2014-03-26 Jakub Jelinek <jakub@redhat.com>
522 * config/linux/futex_bits.h: Include errno.h.
523 (sys_futex0): If syscall returns -1, return -errno rather than
526 2014-03-26 Joseph Myers <joseph@codesourcery.com>
528 * libitm.texi (Index): Rename to Library Index.
530 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
533 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
534 (x86_avx.lo): Append -mavx to CXXFLAGS.
535 * Makefile.in: Regenerate.
537 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
539 Update copyright years
541 2014-01-02 Tobias Burnus <burnus@net-b.de>
543 * libitm.texi: Bump @copying's copyright year.
545 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
547 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
548 (FUNC): Define ELFv2 variant.
555 2013-09-20 Alan Modra <amodra@gmail.com>
557 * configure: Regenerate.
559 2013-08-30 Torvald Riegel <triegel@redhat.com>
561 * config/posix/rwlock.cc: Fix initialization order.
563 2013-08-30 Torvald Riegel <triegel@redhat.com>
565 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
566 (htm_fastpath): Assign an asm name.
567 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
569 (_ITM_actions): Likewise.
570 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
572 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
573 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
574 field to the start of the structure.
575 * config/linux/rwlock.h (gtm_rwlock): Update comments.
576 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
577 handling for custom HTM fast paths.
579 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
581 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
583 * configure.tgt: Add -msoft-float to XCFLAGS.
585 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
587 * configure.tgt: Add -msoft-float to XCFLAGS.
589 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
591 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
592 (htm_transaction_active): Enable zEC12 instructions in the
594 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
596 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
598 * acinclude.m4: Add htm asm check for s390.
599 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
600 * configure: Regenerate.
601 * config/s390/target.h: Remove __HTM__ check.
602 (htm_available): Call getauxval to get hwcaps and check whether
603 HTM is available or not.
605 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
607 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
608 * configure.ac: Use it.
609 (AC_CHECK_HEADERS): Check for sys/auxv.h.
610 (AC_CHECK_FUNCS): Check for getauxval.
611 * config.h.in, configure: Rebuild.
612 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
613 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
614 (USE_HTM_FASTPATH): Define.
615 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
616 _HTM_RETRIES) New macros.
617 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
618 htm_begin_success, htm_commit, htm_transaction_active): New functions.
620 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
622 * config/s390/target.h: Include htmintrin.h.
623 (_HTM_ITM_RETRIES): New macro definition.
624 (htm_available, htm_init, htm_begin, htm_begin_success)
625 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
627 2013-06-20 Iain Sandoe <iain@codesourcery.com>
628 Cesar Philippidis <cesar@codesourcery.com>
630 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
631 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
632 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
633 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
635 2013-06-20 Torvald Riegel <triegel@redhat.com>
637 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
638 (_ITM_getTransactionId): Same.
639 * config/x86/target.h (htm_transaction_active): New.
641 2013-06-20 Torvald Riegel <triegel@redhat.com>
644 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
647 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
650 * local_atomic (__always_inline): Always define our version.
651 (__calculate_memory_order): Mark inline.
652 (atomic_thread_fence): Ditto.
653 (atomic_signal_fence): Ditto.
654 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
655 (atomic_bool::atomic_flag_clear_explicit): Ditto.
656 (atomic_bool::atomic_flag_test_and_set): Ditto.
657 (atomic_bool::atomic_flag_clear): Ditto.
659 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
661 * config/s390/sjlj.S: New file.
662 * config/s390/target.h: New file.
663 * configure.tgt: Set options for S/390.
665 2013-03-23 Andi Kleen <ak@linux.intel.com>
667 * local_atomic (__always_inline): Add.
668 (__calculate_memory_order, atomic_thread_fence,
669 atomic_signal_fence, test_and_set, clear, store, load,
670 exchange, compare_exchange_weak, compare_exchange_strong,
671 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
672 Add __always_inline to force inlining.
674 2013-02-11 Iain Sandoe <iain@codesourcery.com>
675 Jack Howarth <howarth@bromo.med.uc.edu>
676 Patrick Marlier <patrick.marlier@gmail.com>
679 * alloc_cpp.cc: Enable function declarations on darwin.
680 * eh_cpp.cc: Likewise.
682 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
684 Update copyright years.
686 2012-11-09 Torvald Riegel <triegel@redhat.com>
688 * beginend.cc (htm_fastpath): New.
689 (gtm_thread::begin_transaction, _ITM_commitTransaction,
690 _ITM_commitTransactionEH): Add HTM fastpath handling.
691 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
692 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
693 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
694 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
695 * configure.tgt: Add -mrtm to XCFLAGS.
696 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
697 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
698 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
699 * retry.cc (parse_default_method): Add HTM method parsing.
700 (gtm_thread::number_of_threads_changed): Use HTM by default if
703 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
705 * configure: Regenerate.
707 2012-10-31 Richard Henderson <rth@redhat.com>
709 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
710 * configure.ac: Use it.
711 * config.h.in, configure: Rebuild.
712 * testsuite/Makefile.in: Rebuild.
714 2012-10-24 Torvald Riegel <triegel@redhat.com>
716 * libitm.texi: Clarify ABI requirements for data-logging functions.
718 2012-10-24 Torvald Riegel <triegel@redhat.com>
720 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
721 it requires serial mode instead of assuming that for certain
723 * dispatch.h (abi_dispatch::requires_serial): New.
724 (abi_dispatch::abi_dispatch): Adapt.
725 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
726 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
727 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
728 serial_dispatch::serial_dispatch,
729 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
731 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
733 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
734 and ia32 declarations some more.
735 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
737 2012-09-20 Jakub Jelinek <jakub@redhat.com>
740 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
741 * configure: Regenerate.
742 * Makefile.in: Regenerate.
744 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
746 * configure: Regenerated.
748 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
750 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
752 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
754 * eh_cpp.cc: Fix __cxa_end_catch declaration.
756 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
758 * configure: Regenerated.
760 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
763 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
766 2012-04-03 Tristan Gingold <gingold@adacore.com>
768 * configure: Regenerate.
770 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
773 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
775 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
777 * testsuite/lib/libitm.exp: load fortran-modules.exp
779 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
781 * configure.tgt (*-*-irix6*): Remove.
783 2012-03-13 Torvald Riegel <triegel@redhat.com>
786 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
789 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791 * configure.tgt (*-*-osf*): Remove.
792 * configure: Regenerate.
794 2012-03-05 Torvald Riegel <triegel@redhat.com>
796 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
797 memtransfer/memset if size isn't larger than zero.
799 2012-03-02 Torvald Riegel <triegel@redhat.com>
801 * libitm.texi: Link to specification and add a usage example.
803 2012-02-24 Torvald Riegel <triegel@redhat.com>
805 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
806 default dispatch for more than 1 thread to ml_wt.
808 2012-02-20 Torvald Riegel <triegel@redhat.com>
810 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
812 2012-02-20 Torvald Riegel <triegel@redhat.com>
814 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
816 2012-02-20 Torvald Riegel <triegel@redhat.com>
818 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
819 serial mode corner cases made obsolete by prior gtm_rwlock changes.
820 (gl_wt_dispatch.rollback): Same.
822 2012-02-20 Torvald Riegel <triegel@redhat.com>
824 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
826 2012-02-20 Torvald Riegel <triegel@redhat.com>
828 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
829 for RfW src. Optimize number of calls to gtm_thr.
831 2012-02-20 Torvald Riegel <triegel@redhat.com>
833 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
835 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
836 (default_dispatch): Make atomic.
837 (GTM::gtm_thread::set_default_dispatch): Access atomically.
838 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
839 use decide_begin_dispatch() if default_dispatch might have changed.
840 (GTM::gtm_thread::number_of_threads_changed): Initialize
841 default_dispatch here.
843 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
844 Patrick Marlier <patrick.marlier@gmail.com>
847 * alloc_cpp.cc: No dummy definitions for darwin.
848 * eh_cpp.cc: Likewise.
850 2012-02-14 Richard Henderson <rth@redhat.com>
852 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
854 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
856 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
858 2012-02-14 Torvald Riegel <triegel@redhat.com>
860 * libitm_i.h (GTM::gtm_rwlog_entry): New.
861 (GTM::gtm_thread): Add read and write logs.
862 (GTM::dispatch_ml_wt): Declare.
863 * retry.cc (parse_default_method): Support ml_wt.
864 * method-ml.cc: New file.
865 * Makefile.am: Add method-ml.cc.
866 * Makefile.in: Regenerate.
868 2012-02-14 Torvald Riegel <triegel@redhat.com>
870 * dispatch.h (GTM::abi_dispatch::supports): New.
871 (GTM::method_group::reinit): New.
872 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
873 (GTM::gtm_thread::number_of_threads_changed): Check that the method
874 supports the current situation.
876 2012-02-14 Torvald Riegel <triegel@redhat.com>
878 * util.cc (GTM::xcalloc): New.
879 * common.h (GTM::xcalloc): Declare.
881 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
883 * config/sparc/target.h (cpu_relax): Read from CC register.
884 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
886 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
888 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
890 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
892 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
893 * config/sparc/cacheline.h: New file.
894 * config/sparc/target.h: Likewise.
895 * config/sparc/sjlj.S: Likewise.
896 * config/linux/sparc/futex_bits.h: Likewise.
898 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
900 * configure.ac (link_itm): Fix comment.
901 * configure: Regenerate.
902 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
904 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
907 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
908 Correct libgomp references.
910 2012-01-24 Torvald Riegel <triegel@redhat.com>
912 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
915 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
917 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
919 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
920 offset values. Do not copy return address. Decrement stack
922 (GTM_longjump) [__x86_64__]: Update offset values.
924 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
927 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
928 the first function argument to %eax.
930 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
932 * libitm.h (_ITM_getThreadnum): Remove.
933 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
935 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
937 * clearcap.map: New file.
938 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
939 * configure.ac: Call it.
940 Clear HWCAP_LDFLAGS if defaulting to -mavx.
941 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
942 * configure: Regenerate.
943 * Makefile.in: Regenerate.
944 * testsuite/Makefile.in: Regenerate.
946 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
950 include, exclude options.
952 2012-01-14 Torvald Riegel <triegel@redhat.com>
954 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
956 * containers.h (GTM::vector::set_size): New.
958 2012-01-14 Torvald Riegel <triegel@redhat.com>
961 * config/generic/tls.h (GTM::mask_stack_top): New.
962 (GTM::mask_stack_bottom): Declare.
963 * config/generic/tls.c (GTM::mask_stack_bottom): New.
964 * local.cc (gtm_undolog::rollback): Filter out any updates that
965 overlap the libitm stack. Add current transaction as parameter.
966 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
967 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
968 * testsuite/libitm.c/stackundo.c: New test.
970 2012-01-10 Richard Henderson <rth@redhat.com>
972 * libitm_i.h (_Unwind_DeleteException): Declare weak.
973 * eh_cpp.cc (_Unwind_DeleteException): Define for
974 !HAVE_ELF_STYLE_WEAKREF.
976 2012-01-08 Torvald Riegel <triegel@redhat.com>
978 * local.cc (GTM_LB): Use GTM::gtm_undolog.
979 (GTM::gtm_thread::drop_references_undolog): Remove.
980 (GTM::gtm_thread::commit_undolog,
981 GTM::gtm_thread::rollback_undolog): Move to ...
982 * libitm_i.h (GTM::gtm_undolog): ...here. New.
983 (GTM::gtm_undolog_entry): Remove.
984 (GTM::gtm_thread): Adapt.
985 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
986 (GTM::gtm_thread::trycommit): Adapt.
987 * method-serial.cc (serial_dispatch::log): Adapt.
988 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
989 (gl_wt_dispatch::store): Fix likely/unlikely.
990 * containers.h (GTM::vector::resize): Add additional_capacity
991 parameter and handle it.
992 (GTM::vector::resize_noinline): New/adapt.
993 (GTM::vector::push): New.
995 2012-01-06 Richard Henderson <rth@redhat.com>
997 * configure.tgt: Support powerpc-linux and powerpc-darwin.
998 * config/linux/powerpc/futex_bits.h: New file.
999 * config/powerpc/cacheline.h: New file.
1000 * config/powerpc/sjlj.S: New file.
1001 * config/powerpc/target.h: New file.
1002 * config/generic/asmcfi.h (cfi_offset): New.
1003 (cfi_restore, cfi_undefined): New.
1005 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1008 * testsuite/libitm.c/reentrant.c: Remove xfail.
1009 (thread): Pass x to pure().
1010 From Patrik Marlier <patrick.marlier@gmail.com>.
1012 2011-12-24 Torvald Riegel <triegel@redhat.com>
1014 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1015 privatization safety if already in serial mode.
1017 2011-12-24 Torvald Riegel <triegel@redhat.com>
1019 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1020 finish_serial_upgrade parameter.
1021 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1022 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1023 Don't unset reader flag.
1024 (GTM::gtm_rwlock::write_upgrade_finish): New.
1025 * config/posix/rwlock.cc: Same.
1026 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1028 * config/posix/rwlock.h: Same.
1029 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1030 flag after commit or after rollback when restarting.
1032 2011-12-24 Torvald Riegel <triegel@redhat.com>
1034 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1035 (GTM::gtm_thread::try_commit): Changed memory order.
1036 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1038 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1039 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1040 * config/linux/futex_bits.h (sys_futex0): Same.
1041 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1042 * config/linux/futex.h (futex_wait, futex_wake): Same.
1043 * config/linux/rwlock.h (gtm_rwlock::writers,
1044 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1046 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1047 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1048 gtm_rwlock::write_unlock): Fix memory orders and fences.
1049 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1050 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1051 gtm_rwlock::write_unlock): Same.
1052 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1053 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1054 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1056 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1057 gl_wt_dispatch::load, gl_wt_dispatch::store,
1058 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1059 orders and fences. Add comments.
1061 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1063 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1064 * Makefile.in: Regenerated.
1066 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1068 * configure.tgt: Add sh* case.
1069 * config/sh/target.h: New file.
1070 * config/sh/sjlj.S: New file.
1071 * config/linux/sh/futex_bits.h: New file.
1073 2011-12-14 Richard Henderson <rth@redhat.com>
1075 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1076 * config/arm/sjlj.S, config/arm/target.h: New files.
1077 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1078 (cfi_rel_offset): New.
1079 * config/linux/futex_bits.h: New file.
1080 * config/linux/futex.cc: Include futex_bits.h here...
1081 * config/linux/futex.h: ... not here.
1082 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1083 * configure.ac (ARCH_AM): New conditional.
1084 * Makefile.in, configure: Rebuild.
1085 * configure.tgt: Handle ARM.
1087 2011-12-13 Richard Henderson <rth@redhat.com>
1089 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1090 signed/unsigned comparison werror.
1092 * local_atomic: New file.
1093 * libitm_i.h: Include it.
1094 (gtm_thread::shared_state): Use atomic template.
1095 * beginend.cc (GTM::gtm_clock): Use atomic template.
1096 (global_tid): Use atomic template if 64-bit atomics available.
1097 (gtm_thread::gtm_thread): Update shared_state access.
1098 (gtm_thread::trycommit): Likewise.
1099 (choose_code_path): Update global_tid access.
1100 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1101 * stmlock.h (GTM::gtm_clock): Use atomic template.
1102 (gtm_get_clock, gtm_inc_clock): Update accesses.
1103 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1104 redundant __sync_synchronize after atomic shared_state access.
1105 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1106 (gtm_rwlock::write_lock_generic): Likewise.
1107 (gtm_rwlock::read_unlock): Likewise.
1108 * config/alpha/target.h (atomic_read_barrier): Remove.
1109 (atomic_write_barrier): Remove.
1110 * config/x86/target.h (atomic_read_barrier): Remove.
1111 (atomic_write_barrier): Remove.
1113 2011-11-30 Richard Henderson <rth@redhat.com>
1115 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1116 * beginend.c (_ITM_abortTransaction): Update to match.
1117 (GTM::gtm_thread::restart): Likewise.
1118 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1119 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1121 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1123 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1124 * Makefile.in: Regenerate.
1126 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1128 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1129 * alloc_cpp.cc: Generate dummy functions if we don't
1130 HAVE_ELF_STYLE_WEAKREF.
1131 * eh_cpp.cc: Likewise.
1132 * configure: Regenerate.
1133 * aclocal.m4: Likewise.
1134 * config.h.in: Likewise.
1135 * Makefile.in: Likewise.
1136 * testsuite/Makefile.in: Likewise.
1138 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1140 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1141 __USER_LABEL_PREFIX__ for targets that use it.
1142 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1143 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1144 in portability to non-elf targets.
1145 (GTM_longjmp): Likewise.
1146 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1149 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1151 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1152 * testsuite/libitm.c/memset-1.c: Likewise.
1154 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1156 * configure: Regenerate.
1158 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1160 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1161 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1162 * Makefile.am: Handle sun style versioning.
1163 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1164 * configure: Regenerate.
1165 * Makefile.in: Regenerate.
1167 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169 * config/generic/asmcfi.h: Fix comment.
1170 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1171 sequence without .hidden support, error for non-ELF targets.
1172 (GTM_longjmp) [__ELF__]: Only use .hidden if
1173 HAVE_ATTRIBUTE_VISIBILITY.
1175 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1177 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1178 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1180 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1181 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1183 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1186 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1187 * configure: Regenerate.
1189 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1191 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1193 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1195 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1197 (.note.GNU-stack): Only use if __linux__.
1198 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1199 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1200 * testsuite/libitm.c/reentrant.c: Likewise.
1201 * testsuite/libitm.c/simple-2.c: Likewise.
1202 * testsuite/libitm.c/txrelease.c: Likewise.
1203 * testsuite/libitm.c++/static_ctor.C: Likewise.
1205 2011-11-10 Richard Henderson <rth@redhat.com>
1207 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1208 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1209 * configure.ac (ARCH_X86_AVX): New conditional.
1210 * Makefile.in, configure: Rebuild.
1212 2011-11-09 Richard Henderson <rth@redhat.com>
1214 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1215 * configure.ac: Use it.
1216 * config.h.in, configure: Rebuild.
1217 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1219 2011-11-09 Richard Henderson <rth@redhat.com>
1221 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1222 * config/alpha/unaligned.h: Remove file.
1223 * config/generic/unaligned.h: Remove file.
1224 * config/x86/unaligned.h: Remove file.
1225 * config/generic/cachepage.h: Remove file.
1226 * config/posix/cachepage.cc: Remove file.
1227 * config/generic/cacheline.cc: Remove file.
1228 * config/x86/cacheline.cc: Remove file.
1229 * config/generic/cacheline.h (gtm_cacheline): Remove the
1230 store_mask, copy_mask, copy_mask_wb methods.
1231 * config/x86/cacheline.h: Likewise.
1232 * config/alpha/cacheline.h: Fall back to generic after setting size.
1233 * config/generic/tls.cc (gtm_mask_stack): Remove.
1234 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1235 (GTM_vpalignr_table): Remove.
1236 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1237 (GTM_pshift_table): Remove.
1238 * config/libitm_i.h: Don't include cachepage.h.
1239 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1240 * Makefile.in, testsuite/Makefile.in: Rebuild.
1242 2011-11-09 Richard Henderson <rth@redhat.com>
1244 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1245 to emit branch prediction hint.
1247 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1248 Protect .note.GNU-stack with __linux__.
1250 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1251 * configure, aclocal.m4, config.h.in: Rebuild.
1252 * config/generic/asmcfi.h: New file.
1253 * config/x86/sjlj.S: Use it.
1255 2011-11-08 Richard Henderson <rth@redhat.com>
1257 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1259 2011-11-08 Richard Henderson <rth@redhat.com>
1261 * configure.tgt: Test correct directory for supported cpus.
1263 * configure.ac: Exit if unsupported.
1264 * configure: Rebuild.
1265 * configure.tgt: Delete boilerplate from libgomp for unsupported
1266 targets. Set UNSUPPORTED for unsupported targets.
1268 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1270 * configure.tgt: Handle i386 like i[456]86.
1271 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1273 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1274 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1276 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1278 * method-wbetl.cc: Update copyright notice.
1284 * barrier.tpl: Same.
1285 * useraction.cc: Same.
1289 * config/generic/tls.cc: Same.
1290 * config/generic/cacheline.h: Same.
1291 * config/generic/cachepage.h: Same.
1292 * config/generic/cacheline.cc: Same.
1293 * config/generic/unaligned.h: Same.
1294 * config/x86/cacheline.h: Same.
1295 * config/x86/cacheline.cc: Same.
1296 * config/x86/unaligned.h: Same.
1297 * config/alpha/cacheline.h: Same.
1298 * config/alpha/unaligned.h: Same.
1299 * config/alpha/sjlj.S: Same.
1300 * config/posix/cachepage.cc: Same.
1301 * config/linux/futex.h: Same.
1302 * config/linux/alpha/futex_bits.h: Same.
1304 2011-11-04 Torvald Riegel <triegel@redhat.com>
1306 * libitm.texi: No cover text and invariant sections.
1308 2011-11-03 Richard Henderson <rth@redhat.com>
1310 * local_type_traits: New file.
1311 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1313 2011-11-03 Richard Henderson <rth@redhat.com>
1315 * configure.ac: Don't test for gfortran.
1316 * configure: Rebuild.
1318 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1319 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1321 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1323 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1324 * testsuite/libitm.c/memset-1.c: Same.
1325 * testsuite/libitm.c/c.exp: Same.
1326 * testsuite/lib/libitm-dg.exp: Same.
1327 * testsuite/lib/libitm.exp: Same.
1328 * testsuite/libitm.c++/c++.exp: Same.
1330 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1332 * testsuite/config/default.exp: Update copyright date.
1333 * configure.ac: Add copyright info.
1334 * configure.tgt: Same.
1336 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1338 * testsuite/libitm.c/reentrant.c: XFAIL.
1339 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1341 2011-10-29 Torvald Riegel <triegel@redhat.com>
1343 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1345 (_ITM_abortTransaction): Handle aborts of outer transactions.
1347 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1348 * libitm.texi: Document aborts of outer transactions.
1349 * testsuite/libitm.c/cancel.c: New file.
1351 2011-10-19 Torvald Riegel <triegel@redhat.com>
1353 * testsuite/*: Change __transaction to __transaction_atomic or
1354 __transaction_relaxed.
1356 2011-10-19 Torvald Riegel <triegel@redhat.com>
1358 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1361 2011-10-19 Torvald Riegel <triegel@redhat.com>
1363 * libitm_i.h: Add gl_wt dispatch.
1364 * retry.cc (parse_default_method): Same.
1365 * method-gl.cc: New file.
1366 * Makefile.am: Use method-gl.cc.
1367 * Makefile.in: Rebuild.
1369 2011-10-19 Torvald Riegel <triegel@redhat.com>
1371 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1372 safety if requested by a TM method.
1373 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1374 privatization safety.
1375 * method-serial.cc: Same.
1377 2011-10-19 Torvald Riegel <triegel@redhat.com>
1379 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1380 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1381 undolog-related member functions from *_local to *_undolog.
1382 * local.cc (gtm_thread::commit_undolog): Same.
1383 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1384 (GTM::gtm_thread::rollback): Roll back undolog before
1385 dispatch-specific rollback.
1387 2011-10-19 Torvald Riegel <triegel@redhat.com>
1389 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1390 re-initialization of the current method group.
1391 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1393 2011-10-19 Torvald Riegel <triegel@redhat.com>
1395 * alloc.cc (commit_allocations_2): Do not free transaction-local
1396 memory when committing a nested transaction.
1398 2011-10-19 Torvald Riegel <triegel@redhat.com>
1400 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1401 serial-irrevocable dispatch, not serial.
1403 2011-10-19 Torvald Riegel <triegel@redhat.com>
1405 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1407 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1408 * method-serial.cc: Implement begin_or_restart().
1409 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1410 dispatch-specific begin_or_restart().
1411 (GTM::gtm_thread::restart): Same.
1413 2011-08-23 Torvald Riegel <triegel@redhat.com>
1415 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1416 restarting without switching to serial mode.
1417 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1418 transaction state. Choose closed-nesting alternative if available.
1419 (GTM::gtm_thread::set_default_dispatch): New.
1420 (parse_default_method): New.
1421 (GTM::gtm_thread::number_of_threads_changed): New.
1422 * method-serial.cc (GTM::serial_mg): New method group class.
1423 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1425 (GTM::serial_dispatch): Same.
1426 (GTM::serialirr_onwrite_dispatch): Same.
1427 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1428 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1430 (GTM::gtm_thread::gtm_thread): Same.
1431 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1432 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1433 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1434 choose dispatch but set state according to dispatch here.
1435 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1436 (GTM::method_group): New class.
1437 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1438 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1439 * libitm.texi: Document TM methods, method groups, method life cycle.
1440 Rename method sets to method groups.
1442 2011-08-23 Torvald Riegel <triegel@redhat.com>
1444 * config/x86/tls.h: Moved to ...
1445 * config/linux/x86/tls.h: ... here.
1447 2011-08-23 Torvald Riegel <triegel@redhat.com>
1449 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1451 * config/x86/sjlj.S: Same.
1453 2011-08-19 Torvald Riegel <triegel@redhat.com>
1455 * config/linux/rwlock.h: New file.
1456 * config/linux/rwlock.c: New file.
1457 * configure.ac: Reenable futex support (undo SVN rev 157758).
1458 * Makefile.am: Same.
1459 * configure.tgt: Same.
1460 * config/linux/alpha/futex_bits.h: Same.
1461 * config/linux/futex.h: Same. Return number of woken processes.
1462 * config/linux/futex.cc: Same.
1463 (futex_wait): Remove spinning.
1464 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1465 Use __x86_64__ instead of __LP64__.
1466 * aclocal.m4: Include generic futex checks.
1467 * configure: Rebuild.
1468 * Makefile.in: Rebuild.
1469 * testsuite/Makefile.in: Rebuild.
1470 * beginend.cc: Include pthread.h.
1471 * config/posix/cachepage.cc: Same.
1473 2011-08-12 Torvald Riegel <triegel@redhat.com>
1475 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1476 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1478 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1480 (GTM::gtm_thread::thread_num): Removed.
1481 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1482 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1483 tx-to-thread renaming.
1484 * beginend.cc: Adapted to tx-to-thread renaming.
1485 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1486 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1487 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1488 gtm_transaction to gtm_thread.
1489 (_ITM_getThreadnum): Removed. Not supported anymore.
1490 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1491 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1492 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1493 gtm_tx-to-gtm_thr renaming if necessary.
1500 * alloc_cpp.cc: Same.
1501 * method-serial.cc: Same.
1502 * config/generic/tls.cc: Same.
1503 * config/posix/rwlock.h (gtm_rwlock): Same.
1504 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1506 2011-08-12 Torvald Riegel <triegel@redhat.com>
1508 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1510 (gtm_rwlock::read_unlock): Same.
1511 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1512 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1513 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1514 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1515 w_upgrade. Replaced by per-transaction flags (in shared_state).
1516 Added c_confirmed_writers.
1517 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1518 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1519 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1520 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1521 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1522 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1523 * libitm.texi: Document locking conventions and implementations in
1526 2011-08-12 Torvald Riegel <triegel@redhat.com>
1528 * libitm_i.h (next_tx): Add list of all threads' transaction.
1529 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1530 transaction with list of transactions and ...
1531 (thread_exit_handler): ... deregister here.
1532 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1533 * config/x86/target.h: Same.
1535 2011-08-12 Torvald Riegel <triegel@redhat.com>
1537 * testsuite/libitm.c++/static_ctor.C: New file.
1539 2011-08-12 Torvald Riegel <triegel@redhat.com>
1541 * testsuite/libitm.c/reentrant.c: New file.
1543 2011-08-12 Torvald Riegel <triegel@redhat.com>
1545 * config/generic/tls.h: Remove the free list for transactions and ...
1546 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1547 (GTM::gtm_transaction::operator delete): ... and release here.
1548 (thread_exit_handler): New. Delete tx when thread terminates.
1549 (thread_exit_init): New.
1550 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1551 * testsuite/libitm.c/txrelease.c: New file.
1553 2011-08-12 Torvald Riegel <triegel@redhat.com>
1555 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1556 * testsuite/libitm.c/notx.c: New file.
1558 2011-08-12 Torvald Riegel <triegel@redhat.com>
1560 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1561 * libitm_i.h (local_tid): ... to here.
1562 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1563 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1565 2011-08-12 Torvald Riegel <triegel@redhat.com>
1567 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1568 serialirr_onwrite_dispatch as new default for now.
1569 * method-serial.cc (serialirr_onwrite_dispatch): New.
1570 (GTM::dispatch_serialirr_onwrite): New.
1573 2011-08-12 Torvald Riegel <triegel@redhat.com>
1575 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1576 * query.cc (_ITM_getTransactionId): There is no active transaction if
1577 the current nesting level is zero.
1579 2011-07-28 Torvald Riegel <triegel@redhat.com>
1581 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1584 2011-07-28 Torvald Riegel <triegel@redhat.com>
1586 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1587 transaction properties from the caller instead of from the
1590 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1592 2011-07-28 Torvald Riegel <triegel@redhat.com>
1594 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1595 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1597 * method-serial.cc: Same.
1598 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1599 flat nesting as default, and closed nesting on demand.
1600 (GTM::gtm_transaction::rollback): Same.
1601 (_ITM_abortTransaction): Same.
1602 (GTM::gtm_transaction::restart): Same.
1603 (GTM::gtm_transaction::trycommit): Same.
1604 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1605 (choose_code_path): New.
1606 (GTM::gtm_transaction_cp::save): New.
1607 (GTM::gtm_transaction_cp::commit): New.
1608 * query.cc (_ITM_inTransaction): Support flat nesting.
1609 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1610 (GTM::gtm_transaction): Support flat and closed nesting.
1611 * alloc.cc (commit_allocations_2): New.
1612 (commit_cb_data): New helper struct.
1613 (GTM::gtm_transaction::commit_allocations): Handle nested
1615 * libitm.texi: Update user action section, add description of nesting.
1617 2011-07-28 Torvald Riegel <triegel@redhat.com>
1619 * libitm_i.h: Add closed nesting as restart reason.
1620 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1622 2011-07-28 Torvald Riegel <triegel@redhat.com>
1624 * useraction.cc: Use vector instead of list to store actions.
1625 Also support partial rollbacks for closed nesting.
1626 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1627 * beginend.cc: Same.
1629 2011-07-28 Torvald Riegel <triegel@redhat.com>
1631 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1632 closed_nesting flags, as well as a closed nesting alternative.
1633 * method-serial.cc: Same.
1634 (serial_dispatch): Renamed to serialirr_dispatch.
1635 (GTM::dispatch_serialirr): Same.
1636 (serial_dispatch_ul): Renamed to serial_dispatch.
1637 (GTM::dispatch_serial): Same.
1639 2011-07-28 Torvald Riegel <triegel@redhat.com>
1641 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1643 2011-07-28 Torvald Riegel <triegel@redhat.com>
1645 * aatree.h (aa_tree::remove): New.
1646 (aa_tree::operator new): Add placement new.
1648 2011-07-02 Torvald Riegel <triegel@redhat.com>
1650 * containers.h: New file.
1651 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1652 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1653 * common.h: ... to here.
1654 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1657 2011-06-30 Torvald Riegel <triegel@redhat.com>
1659 * libitm_i.h (STATE_ABORTING): Remove.
1660 * beginend.cc (_ITM_abortTransaction): Same.
1661 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1662 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1663 (_ITM_rollbackTransaction): Remove.
1664 * beginend.cc: Same.
1666 * libitm.texi: Document these ABI changes.
1668 2011-06-30 Torvald Riegel <triegel@redhat.com>
1670 * libitm.texi: New file.
1671 * Makefile.am: Add libitm.texi.
1672 * Makefile.in: Rebuild.
1674 2011-06-30 Torvald Riegel <triegel@redhat.com>
1676 * libitm_i.h: Move parts to common.h and dispatch.h.
1677 * common.h: New file.
1678 * dispatch.h: New file, new dispatch class.
1679 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1680 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1681 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1682 decision to retry.cc.
1683 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1685 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1686 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1688 * barrier.cc: Use new barriers definitions.
1689 (abi_dispatch::memmove_overlap_check): New.
1690 * config/x86/x86_sse.cc: Same.
1691 * config/x86/x86_avx.cc: Same.
1692 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1694 * Makefile.in: Rebuild.
1695 * method-readonly.cc: Remove.
1696 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1697 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1699 2011-06-30 Torvald Riegel <triegel@redhat.com>
1701 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1702 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1703 * testsuite/libitm.c/dropref-2.c: Same.
1704 * testsuite/libitm.c/dropref.c: Same.
1706 2011-06-30 Torvald Riegel <triegel@redhat.com>
1708 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1709 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1710 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1712 * barrier.tpl: Same.
1714 * config/generic/tls.h: Same.
1715 * config/x86/tls.h: Same.
1719 * method-readonly.cc: Same.
1720 * method-serial.cc: Same.
1721 * method-wbetl.cc: Same.
1724 2011-03-03 Richard Henderson <rth@redhat.com>
1726 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1727 From Patrik Marlier <patrick.marlier@unine.ch>.
1729 2011-02-03 Richard Henderson <rth@redhat.com>
1731 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1732 * configure.ac: Use it.
1733 * configure, config.h.in: Rebuild.
1734 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1735 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1736 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1737 * libitm.map: Use wildcards to match size_t mangling.
1739 2010-12-14 Richard Henderson <rth@redhat.com>
1741 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1742 blocks of TIDs per thread.
1743 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1744 (setup_gtm_thr): Return the thread structure.
1745 * config/x86/tls.h (setup_gtm_thr): Likewise.
1747 2010-12-14 Richard Henderson <rth@redhat.com>
1749 * clone.cc (table_lock): Remove.
1750 (find_clone): Don't take it.
1751 (ExcludeTransaction): New helper class.
1752 (_ITM_registerTMCloneTable): Use it.
1753 (_ITM_deregisterTMCloneTable): Likewise.
1755 2010-12-14 Richard Henderson <rth@redhat.com>
1757 * config/x86/tls.h: New file.
1759 2010-07-15 Richard Henderson <rth@redhat.com>
1761 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1762 * Makefile.in: Rebuild.
1764 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1766 * method-wbetl.cc (trydropreference): Fix source line.
1768 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1770 * libitm.h: Add comment.
1771 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1773 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1775 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1776 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1777 available, use pthread mutexes.
1778 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1779 * config.h.in: Regenerate.
1780 * configure: Regenerate.
1782 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1784 * libitm.h (ITM_PURE): Define.
1785 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1787 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1789 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1790 (validate): Add comment.
1791 (trydropreference): New.
1792 * method-readonly.cc (class readonly_dispatch): Add
1794 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1795 Call trydropreference().
1796 * libitm.h (_ITM_dropReferences): Remove const attribute.
1797 * method-serial.cc (class serial_dispatch): Add trydropreference.
1798 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1800 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1802 * memcpy.cc (do_memcpy): Comment.
1804 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1806 * barrier.tpl: Add comments throughout.
1808 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1810 * method-wbetl.cc (struct w_entry): Add comments.
1814 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1816 * alloc_c.cc (_ITM_dropReferences): New.
1817 * libitm.map (_ITM_dropReferences): Add.
1818 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1819 * libitm_i.h (struct gtm_transaction): Declare
1820 drop_references_allocations and drop_references_local.
1821 * local.cc (rollback_local): Ignore memory when applicable.
1822 (drop_references_local): New.
1824 2010-06-23 Richard Henderson <rth@redhat.com>
1826 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1827 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1828 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1829 * config/alpha/target.h: Likewise.
1830 * config/generic/tls.cc (gtm_mask_stack): Use it.
1832 2010-06-23 Richard Henderson <rth@redhat.com>
1834 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1835 a mutex instead of trying a lock-free compare-and-swap on the list.
1836 (gtm_cacheline_page::operator delete): Likewise.
1838 2010-06-16 Richard Henderson <rth@redhat.com>
1840 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1841 that overlap the libitm stack.
1842 * barrier.tpl: Mark incoming stack.
1843 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1844 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1845 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1846 * memcpy.cc, memset.cc: Likewise.
1847 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1848 * config/generic/tls.h (gtm_thread): Add stack_top member.
1849 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1850 * libitm_i.h (gtm_mask_stack): Declare.
1851 * config/generic/tls.cc: New file.
1852 * Makefile.am (libitm_la_SOURCES): Add it.
1853 (AM_CXXFLAGS): Turn off exceptions.
1854 * Makefile.in: Rebuild.
1856 2010-06-16 Richard Henderson <rth@redhat.com>
1858 * alloc.cc (struct gtm_alloc_action): Move definition ...
1859 * libitm_i.h: ... here.
1860 (class gtm_transaction): Declare new and delete.
1861 * beginend.cc (alloc_tx): Reformulate as operator new.
1862 (free_tx): Reformulate as operator delete.
1863 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1865 2010-06-11 Richard Henderson <rth@redhat.com>
1867 * clone.cc (clone_entry_compare): Fix typo.
1868 From Patrik Marlier <patrick.marlier@unine.ch>.
1870 2010-05-13 Richard Henderson <rth@redhat.com>
1872 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1875 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1877 * libitm_i.h (struct gtm_transaction): Remove
1878 get_allocation_size.
1879 (record_allocation): Remove size parameter.
1880 * libitm.map (_ITM_realloc): Remove.
1881 * alloc_c.cc (_ITM_realloc): Remove.
1882 (_ITM_malloc): Remove size argument to record_allocation.
1883 (_ITM_calloc): Same.
1884 * alloc_cpp.cc (_ZGTtnwm): Same.
1885 (_ZGTtnwmRKSt9nothrow_t): Same.
1887 (_ZGTtnamRKSt9nothrow_t): Same.
1888 * alloc.cc (struct gtm_alloc_action): Remove size.
1889 (get_allocation_size): Remove.
1890 (commit_allocations): Add comment.
1891 (record_allocation): Remove size parameter.
1892 (forget_allocation): Remove set of size.
1894 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1896 * Makefile.am (abi_version): New.
1897 (AM_CXXFLAGS): Pass abi_version.
1898 * Makefile.in: Regenerate.
1899 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1901 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1903 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1904 _ITM_getTMCloneOrIrrevokable.
1905 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1906 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1908 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1910 * configure.ac: Remove Linux futex support.
1911 * configure.tgt (config_path): Same.
1912 * Makefile.am: Same.
1913 * config/linux: Remove entire directory.
1914 * configure: Rebuild.
1915 * Makefile.in: Rebuild.
1916 * testsuite/Makefile.in: Rebuild.
1918 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1920 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1921 switching to serial mode.
1922 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1924 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1926 * configure.tgt: Add emacs -*- tags.
1927 * barrier.tpl: Same.
1929 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1931 * Makefile.am: Rename serial.cc to method-serial.cc.
1932 * Makefile.in: Regenerate with automake 1.11.1.
1933 * testsuite/Makefile.in: Same.
1934 * aclocal.m4: Regenerate with aclocal 1.11.1.
1935 * method-serial.cc: Rename from serial.cc.
1936 * libitm_i.h (struct gtm_transaction): Update comment on
1939 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1941 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1942 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1944 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1946 * configure: Rebuild.
1948 2009-11-12 Richard Henderson <rth@redhat.com>
1950 * Rewrite everything in C++.
1952 2009-11-03 Richard Henderson <rth@redhat.com>
1954 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1955 * Makefile.am (libitm_la_SOURCES): Add them.
1956 * configure.ac (ARCH_X86): New conditional.
1957 * Makefile.in, configure: Rebuild.
1958 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1959 Move futex setup into "other system configury" case.
1960 * local.c (rollback_local): Merge into ...
1961 (GTM_rollback_local): ... here.
1962 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1963 (_ITM_LB): Define as an alias to GTM_LB.
1965 2009-11-03 Richard Henderson <rth@redhat.com>
1967 * method-readonly.c: New file.
1968 * Makefile.am (libitm_la_SOURCES): Add it.
1969 * Makefile.in: Rebuild.
1970 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1971 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1972 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1973 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1974 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1975 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1976 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1977 gtm_get_clock, gtm_inc_clock): New.
1978 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1979 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1980 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1981 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1982 replace uses with new libitm_i.h symbols.
1983 (dispatch_wbetl): Rename from wbetl_dispatch.
1984 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1985 away from dispatch_readonly; abort if the beginTransaction call
1986 asserted that the transaction was readonly.
1988 2009-11-03 Richard Henderson <rth@redhat.com>
1990 * memset.c: New file.
1991 * Makefile.am (libitm_la_SOURCES): Add it.
1992 * Makefile.in: Rebuild.
1993 * testsuite/libitm.c/memset-1.c: New.
1995 2009-11-03 Richard Henderson <rth@redhat.com>
1997 * dispatch.c: Remove file.
1998 * useraction.c (struct gtm_user_action): Move from libitm.h.
1999 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2000 (serial_memset, serial_memmove, serial_memcpy): Remove.
2001 (serial_W*, serial_R*): Remove.
2002 (serial_dispatch): Update to match.
2003 * configure.ac: Move Werror down below configure checks. Don't
2004 check for sys/loadavg.h, do check for malloc.h. Don't check for
2005 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2006 Use GCC_AC_FUNC_MMAP_BLACKLIST
2007 * libitm.h: Split out all internal items to...
2008 * libitm_i.h: ... here. New file.
2009 * copymask.c: New file.
2010 * local.c (struct gtm_local_undo): Move from libitm.h.
2011 (GTM_alloc_local): Rename from alloc_local; export.
2012 * memcpy.c: New file.
2013 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2014 * config/posix/page.c: New file.
2015 * config/posix/target_tls.h: Remove file.
2016 * barrier.c: New file.
2017 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2019 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2020 * method-wbetl.c: Rewrite for new cacheline methods.
2021 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2023 * config/alpha/sjlj.S: Fix typo.
2024 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2025 * config/alpha/copymask.c: New file.
2026 * config/alpha/target.h (CACHELINE_SIZE): New.
2027 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2029 * config/x86/target_i.h: Copy functions from x86/target.h.
2030 * config/x86/copymask.c: New file.
2031 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2032 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2033 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2034 * config/x86/target_tls.h: Move contents to target_i.h.
2036 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2037 * testsuite/libitm.c/memcpy-1.c: New.
2039 2009-10-22 Richard Henderson <rth@redhat.com>
2041 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2042 (AM_CCASFLAGS): New.
2043 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2044 saving/restoring _AC_ARG_VAR_PRECIOUS.
2045 * Makefile.in, aclocal.m4, config.h.in, configure,
2046 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2048 2009-10-22 Richard Henderson <rth@redhat.com>
2050 * testsuite/*: Update for new compiler syntax.
2052 2009-10-21 Richard Henderson <rth@redhat.com>
2054 * libitm.h (_ITM_abortReason): Add outerAbort.
2056 2009-08-03 Richard Henderson <rth@redhat.com>
2058 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2059 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2060 * method-wbetl.c (struct w_entry): Remove mask.
2061 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2064 2009-07-22 Richard Henderson <rth@redhat.com>
2066 * eh_cpp.c: New file.
2067 * Makefile.am (libitm_la_SOURCES): Add it.
2068 * Makefile.in: Rebuild.
2069 * beginend.c (GTM_rollback_transaction): Undo exception state.
2070 (GTM_trycommit_transaction): Mark inline.
2071 (GTM_trycommit_and_finalize_transaction): Split out from ...
2072 (_ITM_commitTransaction): ... here.
2073 (_ITM_commitTransactionEH): New function.
2074 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2075 cxa_unthrown, eh_in_flight; reorder.
2077 * testsuite/libitm.c++/c++.exp: New.
2078 * testsuite/libitm.c++/eh-1.C: New.
2080 * aatree.c (aa_free): Remove REGPARM.
2081 * aatree.h: Remove all REGPARM.
2083 2009-07-18 Richard Henderson <rth@redhat.com>
2085 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2086 * Makefile.am (libitm_la_SOURCES): Add them.
2087 * Makefile.in: Rebuild.
2088 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2089 (GTM_trycommit_transaction): Likewise.
2090 * libitm.h: Include aatree.h
2091 (struct gtm_alloc_action): New.
2092 (struct gtm_transaction): Add alloc_actions.
2093 (GTM_record_allocation, GTM_forget_allocation): Declare.
2094 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2095 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2096 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2097 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2098 _ZGTtdaPvRKSt9nothrow_t): Export.
2100 2009-07-18 Richard Henderson <rth@redhat.com>
2102 * target_tls.h: Move ...
2103 * config/posix/target_tls.h: ... here.
2105 2009-07-07 Richard Henderson <rth@redhat.com>
2107 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2109 2009-07-07 Richard Henderson <rth@redhat.com>
2113 2009-07-07 Richard Henderson <rth@redhat.com>
2115 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2116 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2118 * configure.tgt: Don't use -ftls-model for x86 linux.
2119 * libitm.h: Include target.h after standard includes.
2120 (_gtm_thr): Rename from gtm_thr.
2121 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2122 (gtm_disp, set_gtm_disp): New.
2123 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2124 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2125 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2127 2009-07-07 Richard Henderson <rth@redhat.com>
2129 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2131 2009-07-06 Richard Henderson <rth@redhat.com>
2133 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2134 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2135 (_ITM_beginTransaction): Take variadic arguments.
2136 (_ITM_registerThrownObject): Declare.
2137 * beginend.c, serial.c: Update.
2138 * libitm.map: Add _ITM_registerThrownObject.
2140 2009-01-28 Richard Henderson <rth@redhat.com>
2142 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2143 * Makefile.in: Rebuild.
2144 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2145 (GTM_restart_transaction): Fix uninstrumented code check.
2146 * retry.c (GTM_decide_retry_strategy): Add serial check.
2147 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2148 automatically go irrevokable when in serial mode.
2149 * clone.c: New file.
2150 * libitm.h, libitm.map: Update.
2152 2009-01-27 Richard Henderson <rth@redhat.com>
2154 * Makefile.am (LTCCASCOMPILE): Define.
2155 (libitm_la_SOURCES): Add methid-wbetl.c.
2156 * testsuite/Makefile.am: New
2157 * configure.ac: Add testsuite/Makefile.
2158 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2159 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2160 (_ITM_abortTransaction): Finalize implementation method; pass
2161 transaction properties to longjmp.
2162 (GTM_restart_transaction): Split out from ...
2163 (_ITM_commitTransaction): ... here.
2164 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2165 Move to config/x86/target.h.
2166 * config/linux/alpha/futex_bits.h: New.
2167 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2168 * config/x86/target.h: Disable target types for 32-bit.
2169 * config/alpha/sjlj.S, config/alpha/target.h: New.
2170 * libitm.h (struct gtm_dispatch): Add init, fini.
2171 (enum restart_reason): New.
2172 (struct gtm_transaction): Add method and restarts.
2173 * retry.c (GTM_decide_retry_strategy): Implement.
2174 * serial.c (serial_init, serial_fini): New.
2175 (GTM_serialmode): Finialize outgoing method.
2176 * method-wbetl.c: New.
2178 2008-12-09 Richard Henderson <rth@redhat.com>
2180 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2181 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2182 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2183 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2184 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2185 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2186 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2187 * serial.c (serial_R##T, serial_W##T): Likewise.
2189 2008-11-21 Richard Henderson <rth@redhat.com>
2193 Copyright (C) 2008-2019 Free Software Foundation, Inc.
2195 Copying and distribution of this file, with or without modification,
2196 are permitted in any medium without royalty provided the copyright
2197 notice and this notice are preserved.