1 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3 * configure.ac: Handle `--with-toolexeclibdir='.
4 * Makefile.in: Regenerate.
5 * aclocal.m4: Regenerate.
6 * configure: Regenerate.
7 * testsuite/Makefile.in: Regenerate.
9 2020-01-01 Jakub Jelinek <jakub@redhat.com>
11 Update copyright years.
13 * libitm.texi: Bump @copying's copyright year.
15 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18 * configure.tgt: Avoid IE tls on *-*-musl*.
20 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
22 * configure: Regenerate.
24 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
26 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
28 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
30 * configure.tgt: Handle *-*-uclinux*.
31 * configure: Regenerate.
33 2019-09-06 Florian Weimer <fweimer@redhat.com>
35 * configure: Regenerate.
37 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
40 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
41 scanning to conform to the GNU Coding Standards.
42 * configure: Regenerate.
44 2019-05-03 Jakub Jelinek <jakub@redhat.com>
46 * Makefile.am (finclude): Remove.
47 * Makefile.in: Regenerated.
49 2019-01-01 Jakub Jelinek <jakub@redhat.com>
51 Update copyright years.
53 2019-01-01 Jakub Jelinek <jakub@redhat.com>
55 * libitm.texi: Bump @copying's copyright year.
57 2018-12-16 Jakub Jelinek <jakub@redhat.com>
60 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
61 void * to void (*) (void *).
62 (_ITM_cxa_throw): Likewise.
63 * libitm.h (_ITM_cxa_throw): Likewise.
64 * libitm.texi (_ITM_cxa_throw): Likewise.
66 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
68 * config/powerpc/target.h (htm_available): Add support for
69 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
71 2018-10-31 Joseph Myers <joseph@codesourcery.com>
74 * Makefile.am: Include multilib.am.
75 (AUTOMAKE_OPTIONS): Add info-in-builddir.
76 (CLEANFILES): Remove libitm.info.
77 * configure.ac: Remove AC_PREREQ.
78 * testsuite/Makefile.am (RUNTEST): Remove quotes.
79 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
82 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
85 * method-serial.cc: Mark varible as potentially unused
88 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
90 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
91 absolute relocation in a shared library.
93 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
96 * config/linux/x86/tls.h (SEG_READ): Use the offset of
98 (SEG_WRITE): Likewise.
99 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
100 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
101 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
102 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
103 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
105 2018-05-17 Jason Merrill <jason@redhat.com>
107 * beginend.cc (save): Disable -Werror=deprecated-copy.
109 2018-05-02 Tom de Vries <tom@codesourcery.com>
112 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
114 2018-05-02 Tom de Vries <tom@codesourcery.com>
117 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
119 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
121 * config/x86/sjlj.S (_ITM_beginTransaction): Add
122 (__CET__ & 2) != 0 check for shadow stack.
123 (GTM_longjmp): Likewise.
125 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
127 * configure: Regenerated.
129 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
132 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
134 2018-04-19 Jakub Jelinek <jakub@redhat.com>
136 * configure: Regenerated.
138 2018-04-18 David Malcolm <dmalcolm@redhat.com>
141 * configure: Regenerate.
143 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
146 * configure: Regenerate.
148 2018-01-03 Jakub Jelinek <jakub@redhat.com>
150 Update copyright years.
152 * libitm.texi: Bump @copying's copyright year.
154 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
156 * Makefile.in: Regenerate.
157 * acinclude.m4: Add enable.m4 and cet.m4.
158 * config/x86/sjlj.S: Include cet.h.
159 (_ITM_beginTransaction): Add _CET_ENDBR.
160 Save Shadow Stack pointer.
161 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
162 * config/x86/target.h (struct gtm_jmpbuf):
163 Add new field for Shadow Stack pointer.
164 * configure: Regenerate.
165 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
166 * configure.ac: Update libtool_VERSION for x86.
167 * testsuite/Makefile.in: Regenerate.
169 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
171 * libitm/config/x86/target.h: Add new field (ssp).
172 * libitm/config/x86/sjlj.S: Change offsets.
174 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
176 * testsuite/lib/libitm.exp: Load scanlang.exp.
178 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
180 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
182 2017-01-21 Jakub Jelinek <jakub@redhat.com>
185 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
186 of cat to get version from BASE-VER file.
187 * testsuite/Makefile.in: Regenerated.
189 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
191 * config/x86/target.h (htm_available): Determine vendor from
192 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
194 2017-01-18 Torvald Riegel <triegel@redhat.com>
196 * config/x86/target.h (htm_available): Add check for some processors
197 on which TSX is broken.
199 2017-01-17 Jakub Jelinek <jakub@redhat.com>
202 * configure.ac: Add GCC_BASE_VER.
203 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
204 get version from BASE-VER file.
205 * testsuite/Makefile.in: Regenerated.
206 * configure: Regenerated.
207 * Makefile.in: Regenerated.
209 2017-01-04 Alan Modra <amodra@gmail.com>
211 * Makefile.in: Regenerate.
212 * testsuite/Makefile.in: Regenerate.
214 2017-01-01 Jakub Jelinek <jakub@redhat.com>
216 Update copyright years.
218 * libitm.texi: Bump @copying's copyright year.
220 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
223 * aclocal.m4: Regenerate.
224 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
225 LIBITM_CHECK_LINKER_HWCAP.
227 2016-11-15 Matthias Klose <doko@ubuntu.com>
229 * configure: Regenerate.
231 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
234 * util.cc (xmalloc): Use posix_memalign to allocate memory on
235 on cache line if requested.
237 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
239 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
240 function attribute to disable floating point in begin_transaction() on
242 * beginend.cc (begin_transaction): Use
243 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
245 2016-01-22 Torvald Riegel <triegel@redhat.com>
247 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
249 (htm_fastpath): Remove.
250 (gtm_thread::begin_transaction): Fix HTM fastpath.
251 (_ITM_commitTransaction): Adapt.
252 (_ITM_commitTransactionEH): Adapt.
253 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
255 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
256 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
257 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
258 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
259 * libitm/method-serial.cc (htm_mg): Adapt.
260 (gtm_thread::serialirr_mode): Adapt.
261 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
263 2016-01-21 Torvald Riegel <triegel@redhat.com>
265 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
268 2016-01-19 Richard Henderson <rth@redhat.com>
273 2016-01-13 Richard Henderson <rth@redhat.com>
275 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
276 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
277 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
278 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
279 * configure.ac (ARCH_AARCH64): New conditional.
280 (ARCH_PPC, ARCH_S390): Likewise.
281 * Makefile.in, configure: Rebuild.
283 * libitm.h (_ITM_TYPE_M128): Always define.
284 * vect64.cc: Split ...
285 * vect128.cc: ... out of...
286 * config/x86/x86_sse.cc: ... here.
287 * config/arm/neon.cc: New file.
289 2016-01-19 Torvald Riegel <triegel@redhat.com>
291 * local_type_traits: Remove file.
292 * libitm_i.h: Don't include it anymore.
293 (sized_integral): Remove.
295 2016-01-16 Torvald Riegel <triegel@redhat.com>
297 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
299 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
300 * libitm/testsuite/libitm.c/priv-1.c: New.
302 2015-01-15 Torvald Riegel <triegel@redhat.com>
304 testsuite/libitm.c++/libstdc++-safeexc.C: New.
306 2016-01-13 Torvald Riegel <triegel@redhat.com>
308 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
309 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
310 (gtm_rwlock::write_unlock): Likewise.
312 2016-01-13 Richard Henderson <rth@redhat.com>
314 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
315 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
316 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
317 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
318 * configure.ac (ARCH_AARCH64): New conditional.
319 (ARCH_PPC, ARCH_S390): Likewise.
320 * Makefile.in, configure: Rebuild.
322 * libitm.h (_ITM_TYPE_M128): Always define.
323 * vect64.cc: Split ...
324 * vect128.cc: ... out of...
325 * config/x86/x86_sse.cc: ... here.
326 * config/arm/neon.cc: New file.
328 2016-01-13 Torvald Riegel <triegel@redhat.com>
330 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
331 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
332 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
333 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
334 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
335 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
336 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
337 (serialirr_dispatch::snapshot_most_recent): New.
338 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
340 2016-01-12 Torvald Riegel <triegel@redhat.com>
342 * libitm_i.h (gtm_mask_stack): Remove.
343 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
344 * stmlock.h: Remove file.
345 * config/alpha/cacheline.h: Likewise.
346 * config/generic/cacheline.h: Likewise.
347 * config/powerpc/cacheline.h: Likewise.
348 * config/sparc/cacheline.h: Likewise.
349 * config/x86/cacheline.h: Likewise.
351 2016-01-04 Jakub Jelinek <jakub@redhat.com>
353 Update copyright years.
355 * libitm.texi: Bump @copying's copyright year.
357 2015-11-26 Torvald Riegel <triegel@redhat.com>
359 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
360 (ml_wt_dispatch::pre_write): Adapt.
361 (ml_wt_dispatch::pre_load): Likewise.
363 2015-11-22 Torvald Riegel <triegel@redhat.com>
365 * libitm_i.h (gtm_alloc_action): Remove union.
366 * testsuite/libitm.c/alloc-1.c: New.
368 2015-11-19 Torvald Riegel <triegel@redhat.com>
370 * testsuite/libitm.c++/eh-5.C: New.
371 * libitm.h (_ITM_cxa_free_exception): New.
372 * libitm.map (_ITM_cxa_free_exception): Add it.
373 * libitm.texi: Update ABI docs.
374 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
375 (gtm_transaction_cp::cxa_uncaught_count): Add.
376 (gtm_thread::cxa_unthrown): Remove.
377 (gtm_thread::cxa_uncaught_count_ptr): Add.
378 (gtm_thread::cxa_uncaught_count): Add.
379 (gtm_thread::drop_references_allocations): Rename to...
380 (gtm_thread::discard_allocation): ... this and adapt.
381 (gtm_thread::init_cpp_exceptions): New.
382 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
383 (gtm_thread::begin_transaction): Likewise.
384 (gtm_transaction_cp::save): Likewise.
385 (gtm_thread::trycommit): Likewise.
386 * eh_cpp.cc: Add overview comments.
387 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
388 (free_any_exception, _ITM_cxa_free_exception): New.
389 (gtm_thread::init_cpp_exceptions): Define.
390 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
391 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
392 (gtm_thread::revert_cpp_exceptions): Likewise.
394 2015-11-09 Torvald Riegel <triegel@redhat.com>
396 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
397 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
398 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
399 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
400 (gtm_thread::forget_allocations): New overload with size_t argument.
401 * alloc.c (gtm_thread::forget_allocation): Define new overload and
403 (gtm_thread::record_allocation): Adapt.
404 (gtm_thread::commit_allocations_1): Adapt.
405 (gtm_thread::commit_allocations_2): Adapt.
406 * testsuite/libitm.c++/newdelete.C: New.
408 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
409 Joseph Myers <joseph@codesourcery.com>
410 Mark Shinwell <shinwell@codesourcery.com>
411 Andrew Stubbs <ams@codesourcery.com>
412 Rich Felker <dalias@libc.org>
414 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
415 GTM_begin_transaction for compatibility with FDPIC.
417 2015-10-09 David Malcolm <dmalcolm@redhat.com>
419 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
422 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
425 * local_atomic (__always_inline): Rename to...
426 (__libitm_always_inline): ... this.
428 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
431 * config/powerpc/sjlj.S: Port to Xcode 2.5.
433 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
435 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
436 operands "op" and "val" to int.
438 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
440 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
441 "op" and "val" to int.
443 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
445 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
446 "op" and "val" to int.
448 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
450 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
451 Declare as static int.
452 (FUTEX_PRIVATE_FLAG): Remove L suffix.
453 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
455 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
457 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
460 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
462 * Makefile.in: Regenerated with automake-1.11.6.
463 * aclocal.m4: Likewise.
464 * configure: Likewise.
465 * testsuite/Makefile.in: Likewise.
467 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
469 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
470 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
472 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
475 * libitm.c/stackundo.c (test2): Make it static.
478 2015-01-05 Jakub Jelinek <jakub@redhat.com>
480 Update copyright years.
482 2015-01-05 Jakub Jelinek <jakub@redhat.com>
484 * libitm.texi: Bump @copying's copyright year.
486 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
488 * testsuite/lib/libitm.exp: Load target-utils.exp.
489 Move load of target-supports.exp earlier.
491 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
493 * configure.tgt (x86_64): Tune -m32 multilib to generic.
495 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
498 * configure: Regenerated.
500 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
503 * configure: Regenerate.
505 2014-10-06 Marek Polacek <polacek@redhat.com>
507 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
508 * testsuite/libitm.c/memset-1.c: Likewise.
510 2014-07-24 Richard Henderson <rth@redhat.com>
512 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
513 addressing mode in epilogue.
515 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
517 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
518 -mclear-hwcap instead.
519 * configure: Regenerate.
520 * clearcap.map: Remove.
522 2014-05-21 John Marino <gnugcc@marino.st>
524 * configure.tgt (*-*-dragonfly*): New target.
526 2014-05-19 Richard Henderson <rth@redhat.com>
528 * config/aarch64/sjlj.S: New file.
529 * config/aarch64/target.h: New file.
530 * configure.tgt: Enable aarch64.
532 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
534 * config/generic/asmcfi.h: Also check for
535 __GCC_HAVE_DWARF2_CFI_ASM.
537 2013-04-02 Richard Henderson <rth@redhat.com>
539 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
540 * config/arm/target.h, config/sh/target.h: Likewise.
541 * config/sparc/target.h, config/x86/target.h: Likewise.
543 2014-03-26 Jakub Jelinek <jakub@redhat.com>
545 * config/linux/futex_bits.h: Include errno.h.
546 (sys_futex0): If syscall returns -1, return -errno rather than
549 2014-03-26 Joseph Myers <joseph@codesourcery.com>
551 * libitm.texi (Index): Rename to Library Index.
553 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
556 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
557 (x86_avx.lo): Append -mavx to CXXFLAGS.
558 * Makefile.in: Regenerate.
560 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
562 Update copyright years
564 2014-01-02 Tobias Burnus <burnus@net-b.de>
566 * libitm.texi: Bump @copying's copyright year.
568 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
570 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
571 (FUNC): Define ELFv2 variant.
578 2013-09-20 Alan Modra <amodra@gmail.com>
580 * configure: Regenerate.
582 2013-08-30 Torvald Riegel <triegel@redhat.com>
584 * config/posix/rwlock.cc: Fix initialization order.
586 2013-08-30 Torvald Riegel <triegel@redhat.com>
588 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
589 (htm_fastpath): Assign an asm name.
590 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
592 (_ITM_actions): Likewise.
593 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
595 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
596 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
597 field to the start of the structure.
598 * config/linux/rwlock.h (gtm_rwlock): Update comments.
599 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
600 handling for custom HTM fast paths.
602 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
604 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
606 * configure.tgt: Add -msoft-float to XCFLAGS.
608 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
610 * configure.tgt: Add -msoft-float to XCFLAGS.
612 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
614 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
615 (htm_transaction_active): Enable zEC12 instructions in the
617 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
619 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
621 * acinclude.m4: Add htm asm check for s390.
622 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
623 * configure: Regenerate.
624 * config/s390/target.h: Remove __HTM__ check.
625 (htm_available): Call getauxval to get hwcaps and check whether
626 HTM is available or not.
628 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
630 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
631 * configure.ac: Use it.
632 (AC_CHECK_HEADERS): Check for sys/auxv.h.
633 (AC_CHECK_FUNCS): Check for getauxval.
634 * config.h.in, configure: Rebuild.
635 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
636 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
637 (USE_HTM_FASTPATH): Define.
638 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
639 _HTM_RETRIES) New macros.
640 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
641 htm_begin_success, htm_commit, htm_transaction_active): New functions.
643 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
645 * config/s390/target.h: Include htmintrin.h.
646 (_HTM_ITM_RETRIES): New macro definition.
647 (htm_available, htm_init, htm_begin, htm_begin_success)
648 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
650 2013-06-20 Iain Sandoe <iain@codesourcery.com>
651 Cesar Philippidis <cesar@codesourcery.com>
653 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
654 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
655 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
656 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
658 2013-06-20 Torvald Riegel <triegel@redhat.com>
660 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
661 (_ITM_getTransactionId): Same.
662 * config/x86/target.h (htm_transaction_active): New.
664 2013-06-20 Torvald Riegel <triegel@redhat.com>
667 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
670 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
673 * local_atomic (__always_inline): Always define our version.
674 (__calculate_memory_order): Mark inline.
675 (atomic_thread_fence): Ditto.
676 (atomic_signal_fence): Ditto.
677 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
678 (atomic_bool::atomic_flag_clear_explicit): Ditto.
679 (atomic_bool::atomic_flag_test_and_set): Ditto.
680 (atomic_bool::atomic_flag_clear): Ditto.
682 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
684 * config/s390/sjlj.S: New file.
685 * config/s390/target.h: New file.
686 * configure.tgt: Set options for S/390.
688 2013-03-23 Andi Kleen <ak@linux.intel.com>
690 * local_atomic (__always_inline): Add.
691 (__calculate_memory_order, atomic_thread_fence,
692 atomic_signal_fence, test_and_set, clear, store, load,
693 exchange, compare_exchange_weak, compare_exchange_strong,
694 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
695 Add __always_inline to force inlining.
697 2013-02-11 Iain Sandoe <iain@codesourcery.com>
698 Jack Howarth <howarth@bromo.med.uc.edu>
699 Patrick Marlier <patrick.marlier@gmail.com>
702 * alloc_cpp.cc: Enable function declarations on darwin.
703 * eh_cpp.cc: Likewise.
705 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
707 Update copyright years.
709 2012-11-09 Torvald Riegel <triegel@redhat.com>
711 * beginend.cc (htm_fastpath): New.
712 (gtm_thread::begin_transaction, _ITM_commitTransaction,
713 _ITM_commitTransactionEH): Add HTM fastpath handling.
714 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
715 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
716 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
717 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
718 * configure.tgt: Add -mrtm to XCFLAGS.
719 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
720 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
721 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
722 * retry.cc (parse_default_method): Add HTM method parsing.
723 (gtm_thread::number_of_threads_changed): Use HTM by default if
726 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
728 * configure: Regenerate.
730 2012-10-31 Richard Henderson <rth@redhat.com>
732 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
733 * configure.ac: Use it.
734 * config.h.in, configure: Rebuild.
735 * testsuite/Makefile.in: Rebuild.
737 2012-10-24 Torvald Riegel <triegel@redhat.com>
739 * libitm.texi: Clarify ABI requirements for data-logging functions.
741 2012-10-24 Torvald Riegel <triegel@redhat.com>
743 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
744 it requires serial mode instead of assuming that for certain
746 * dispatch.h (abi_dispatch::requires_serial): New.
747 (abi_dispatch::abi_dispatch): Adapt.
748 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
749 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
750 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
751 serial_dispatch::serial_dispatch,
752 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
754 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
756 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
757 and ia32 declarations some more.
758 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
760 2012-09-20 Jakub Jelinek <jakub@redhat.com>
763 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
764 * configure: Regenerate.
765 * Makefile.in: Regenerate.
767 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
769 * configure: Regenerated.
771 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
773 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
775 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
777 * eh_cpp.cc: Fix __cxa_end_catch declaration.
779 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
781 * configure: Regenerated.
783 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
786 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
789 2012-04-03 Tristan Gingold <gingold@adacore.com>
791 * configure: Regenerate.
793 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
796 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
798 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
800 * testsuite/lib/libitm.exp: load fortran-modules.exp
802 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
804 * configure.tgt (*-*-irix6*): Remove.
806 2012-03-13 Torvald Riegel <triegel@redhat.com>
809 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
812 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
814 * configure.tgt (*-*-osf*): Remove.
815 * configure: Regenerate.
817 2012-03-05 Torvald Riegel <triegel@redhat.com>
819 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
820 memtransfer/memset if size isn't larger than zero.
822 2012-03-02 Torvald Riegel <triegel@redhat.com>
824 * libitm.texi: Link to specification and add a usage example.
826 2012-02-24 Torvald Riegel <triegel@redhat.com>
828 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
829 default dispatch for more than 1 thread to ml_wt.
831 2012-02-20 Torvald Riegel <triegel@redhat.com>
833 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
835 2012-02-20 Torvald Riegel <triegel@redhat.com>
837 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
839 2012-02-20 Torvald Riegel <triegel@redhat.com>
841 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
842 serial mode corner cases made obsolete by prior gtm_rwlock changes.
843 (gl_wt_dispatch.rollback): Same.
845 2012-02-20 Torvald Riegel <triegel@redhat.com>
847 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
849 2012-02-20 Torvald Riegel <triegel@redhat.com>
851 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
852 for RfW src. Optimize number of calls to gtm_thr.
854 2012-02-20 Torvald Riegel <triegel@redhat.com>
856 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
858 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
859 (default_dispatch): Make atomic.
860 (GTM::gtm_thread::set_default_dispatch): Access atomically.
861 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
862 use decide_begin_dispatch() if default_dispatch might have changed.
863 (GTM::gtm_thread::number_of_threads_changed): Initialize
864 default_dispatch here.
866 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
867 Patrick Marlier <patrick.marlier@gmail.com>
870 * alloc_cpp.cc: No dummy definitions for darwin.
871 * eh_cpp.cc: Likewise.
873 2012-02-14 Richard Henderson <rth@redhat.com>
875 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
877 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
879 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
881 2012-02-14 Torvald Riegel <triegel@redhat.com>
883 * libitm_i.h (GTM::gtm_rwlog_entry): New.
884 (GTM::gtm_thread): Add read and write logs.
885 (GTM::dispatch_ml_wt): Declare.
886 * retry.cc (parse_default_method): Support ml_wt.
887 * method-ml.cc: New file.
888 * Makefile.am: Add method-ml.cc.
889 * Makefile.in: Regenerate.
891 2012-02-14 Torvald Riegel <triegel@redhat.com>
893 * dispatch.h (GTM::abi_dispatch::supports): New.
894 (GTM::method_group::reinit): New.
895 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
896 (GTM::gtm_thread::number_of_threads_changed): Check that the method
897 supports the current situation.
899 2012-02-14 Torvald Riegel <triegel@redhat.com>
901 * util.cc (GTM::xcalloc): New.
902 * common.h (GTM::xcalloc): Declare.
904 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
906 * config/sparc/target.h (cpu_relax): Read from CC register.
907 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
909 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
911 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
913 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
915 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
916 * config/sparc/cacheline.h: New file.
917 * config/sparc/target.h: Likewise.
918 * config/sparc/sjlj.S: Likewise.
919 * config/linux/sparc/futex_bits.h: Likewise.
921 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
923 * configure.ac (link_itm): Fix comment.
924 * configure: Regenerate.
925 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
927 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
931 Correct libgomp references.
933 2012-01-24 Torvald Riegel <triegel@redhat.com>
935 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
938 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
940 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
942 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
943 offset values. Do not copy return address. Decrement stack
945 (GTM_longjump) [__x86_64__]: Update offset values.
947 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
950 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
951 the first function argument to %eax.
953 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
955 * libitm.h (_ITM_getThreadnum): Remove.
956 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
958 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * clearcap.map: New file.
961 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
962 * configure.ac: Call it.
963 Clear HWCAP_LDFLAGS if defaulting to -mavx.
964 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
965 * configure: Regenerate.
966 * Makefile.in: Regenerate.
967 * testsuite/Makefile.in: Regenerate.
969 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
973 include, exclude options.
975 2012-01-14 Torvald Riegel <triegel@redhat.com>
977 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
979 * containers.h (GTM::vector::set_size): New.
981 2012-01-14 Torvald Riegel <triegel@redhat.com>
984 * config/generic/tls.h (GTM::mask_stack_top): New.
985 (GTM::mask_stack_bottom): Declare.
986 * config/generic/tls.c (GTM::mask_stack_bottom): New.
987 * local.cc (gtm_undolog::rollback): Filter out any updates that
988 overlap the libitm stack. Add current transaction as parameter.
989 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
990 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
991 * testsuite/libitm.c/stackundo.c: New test.
993 2012-01-10 Richard Henderson <rth@redhat.com>
995 * libitm_i.h (_Unwind_DeleteException): Declare weak.
996 * eh_cpp.cc (_Unwind_DeleteException): Define for
997 !HAVE_ELF_STYLE_WEAKREF.
999 2012-01-08 Torvald Riegel <triegel@redhat.com>
1001 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1002 (GTM::gtm_thread::drop_references_undolog): Remove.
1003 (GTM::gtm_thread::commit_undolog,
1004 GTM::gtm_thread::rollback_undolog): Move to ...
1005 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1006 (GTM::gtm_undolog_entry): Remove.
1007 (GTM::gtm_thread): Adapt.
1008 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1009 (GTM::gtm_thread::trycommit): Adapt.
1010 * method-serial.cc (serial_dispatch::log): Adapt.
1011 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1012 (gl_wt_dispatch::store): Fix likely/unlikely.
1013 * containers.h (GTM::vector::resize): Add additional_capacity
1014 parameter and handle it.
1015 (GTM::vector::resize_noinline): New/adapt.
1016 (GTM::vector::push): New.
1018 2012-01-06 Richard Henderson <rth@redhat.com>
1020 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1021 * config/linux/powerpc/futex_bits.h: New file.
1022 * config/powerpc/cacheline.h: New file.
1023 * config/powerpc/sjlj.S: New file.
1024 * config/powerpc/target.h: New file.
1025 * config/generic/asmcfi.h (cfi_offset): New.
1026 (cfi_restore, cfi_undefined): New.
1028 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1031 * testsuite/libitm.c/reentrant.c: Remove xfail.
1032 (thread): Pass x to pure().
1033 From Patrik Marlier <patrick.marlier@gmail.com>.
1035 2011-12-24 Torvald Riegel <triegel@redhat.com>
1037 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1038 privatization safety if already in serial mode.
1040 2011-12-24 Torvald Riegel <triegel@redhat.com>
1042 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1043 finish_serial_upgrade parameter.
1044 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1045 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1046 Don't unset reader flag.
1047 (GTM::gtm_rwlock::write_upgrade_finish): New.
1048 * config/posix/rwlock.cc: Same.
1049 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1051 * config/posix/rwlock.h: Same.
1052 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1053 flag after commit or after rollback when restarting.
1055 2011-12-24 Torvald Riegel <triegel@redhat.com>
1057 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1058 (GTM::gtm_thread::try_commit): Changed memory order.
1059 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1061 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1062 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1063 * config/linux/futex_bits.h (sys_futex0): Same.
1064 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1065 * config/linux/futex.h (futex_wait, futex_wake): Same.
1066 * config/linux/rwlock.h (gtm_rwlock::writers,
1067 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1069 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1070 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1071 gtm_rwlock::write_unlock): Fix memory orders and fences.
1072 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1073 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1074 gtm_rwlock::write_unlock): Same.
1075 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1076 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1077 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1079 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1080 gl_wt_dispatch::load, gl_wt_dispatch::store,
1081 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1082 orders and fences. Add comments.
1084 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1086 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1087 * Makefile.in: Regenerated.
1089 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1091 * configure.tgt: Add sh* case.
1092 * config/sh/target.h: New file.
1093 * config/sh/sjlj.S: New file.
1094 * config/linux/sh/futex_bits.h: New file.
1096 2011-12-14 Richard Henderson <rth@redhat.com>
1098 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1099 * config/arm/sjlj.S, config/arm/target.h: New files.
1100 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1101 (cfi_rel_offset): New.
1102 * config/linux/futex_bits.h: New file.
1103 * config/linux/futex.cc: Include futex_bits.h here...
1104 * config/linux/futex.h: ... not here.
1105 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1106 * configure.ac (ARCH_AM): New conditional.
1107 * Makefile.in, configure: Rebuild.
1108 * configure.tgt: Handle ARM.
1110 2011-12-13 Richard Henderson <rth@redhat.com>
1112 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1113 signed/unsigned comparison werror.
1115 * local_atomic: New file.
1116 * libitm_i.h: Include it.
1117 (gtm_thread::shared_state): Use atomic template.
1118 * beginend.cc (GTM::gtm_clock): Use atomic template.
1119 (global_tid): Use atomic template if 64-bit atomics available.
1120 (gtm_thread::gtm_thread): Update shared_state access.
1121 (gtm_thread::trycommit): Likewise.
1122 (choose_code_path): Update global_tid access.
1123 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1124 * stmlock.h (GTM::gtm_clock): Use atomic template.
1125 (gtm_get_clock, gtm_inc_clock): Update accesses.
1126 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1127 redundant __sync_synchronize after atomic shared_state access.
1128 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1129 (gtm_rwlock::write_lock_generic): Likewise.
1130 (gtm_rwlock::read_unlock): Likewise.
1131 * config/alpha/target.h (atomic_read_barrier): Remove.
1132 (atomic_write_barrier): Remove.
1133 * config/x86/target.h (atomic_read_barrier): Remove.
1134 (atomic_write_barrier): Remove.
1136 2011-11-30 Richard Henderson <rth@redhat.com>
1138 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1139 * beginend.c (_ITM_abortTransaction): Update to match.
1140 (GTM::gtm_thread::restart): Likewise.
1141 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1142 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1144 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1146 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1147 * Makefile.in: Regenerate.
1149 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1151 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1152 * alloc_cpp.cc: Generate dummy functions if we don't
1153 HAVE_ELF_STYLE_WEAKREF.
1154 * eh_cpp.cc: Likewise.
1155 * configure: Regenerate.
1156 * aclocal.m4: Likewise.
1157 * config.h.in: Likewise.
1158 * Makefile.in: Likewise.
1159 * testsuite/Makefile.in: Likewise.
1161 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1163 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1164 __USER_LABEL_PREFIX__ for targets that use it.
1165 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1166 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1167 in portability to non-elf targets.
1168 (GTM_longjmp): Likewise.
1169 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1172 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1174 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1175 * testsuite/libitm.c/memset-1.c: Likewise.
1177 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1179 * configure: Regenerate.
1181 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1184 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1185 * Makefile.am: Handle sun style versioning.
1186 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1187 * configure: Regenerate.
1188 * Makefile.in: Regenerate.
1190 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1192 * config/generic/asmcfi.h: Fix comment.
1193 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1194 sequence without .hidden support, error for non-ELF targets.
1195 (GTM_longjmp) [__ELF__]: Only use .hidden if
1196 HAVE_ATTRIBUTE_VISIBILITY.
1198 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1200 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1201 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1203 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1204 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1206 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1209 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1210 * configure: Regenerate.
1212 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1214 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1216 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1218 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1220 (.note.GNU-stack): Only use if __linux__.
1221 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1222 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1223 * testsuite/libitm.c/reentrant.c: Likewise.
1224 * testsuite/libitm.c/simple-2.c: Likewise.
1225 * testsuite/libitm.c/txrelease.c: Likewise.
1226 * testsuite/libitm.c++/static_ctor.C: Likewise.
1228 2011-11-10 Richard Henderson <rth@redhat.com>
1230 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1231 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1232 * configure.ac (ARCH_X86_AVX): New conditional.
1233 * Makefile.in, configure: Rebuild.
1235 2011-11-09 Richard Henderson <rth@redhat.com>
1237 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1238 * configure.ac: Use it.
1239 * config.h.in, configure: Rebuild.
1240 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1242 2011-11-09 Richard Henderson <rth@redhat.com>
1244 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1245 * config/alpha/unaligned.h: Remove file.
1246 * config/generic/unaligned.h: Remove file.
1247 * config/x86/unaligned.h: Remove file.
1248 * config/generic/cachepage.h: Remove file.
1249 * config/posix/cachepage.cc: Remove file.
1250 * config/generic/cacheline.cc: Remove file.
1251 * config/x86/cacheline.cc: Remove file.
1252 * config/generic/cacheline.h (gtm_cacheline): Remove the
1253 store_mask, copy_mask, copy_mask_wb methods.
1254 * config/x86/cacheline.h: Likewise.
1255 * config/alpha/cacheline.h: Fall back to generic after setting size.
1256 * config/generic/tls.cc (gtm_mask_stack): Remove.
1257 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1258 (GTM_vpalignr_table): Remove.
1259 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1260 (GTM_pshift_table): Remove.
1261 * config/libitm_i.h: Don't include cachepage.h.
1262 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1263 * Makefile.in, testsuite/Makefile.in: Rebuild.
1265 2011-11-09 Richard Henderson <rth@redhat.com>
1267 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1268 to emit branch prediction hint.
1270 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1271 Protect .note.GNU-stack with __linux__.
1273 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1274 * configure, aclocal.m4, config.h.in: Rebuild.
1275 * config/generic/asmcfi.h: New file.
1276 * config/x86/sjlj.S: Use it.
1278 2011-11-08 Richard Henderson <rth@redhat.com>
1280 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1282 2011-11-08 Richard Henderson <rth@redhat.com>
1284 * configure.tgt: Test correct directory for supported cpus.
1286 * configure.ac: Exit if unsupported.
1287 * configure: Rebuild.
1288 * configure.tgt: Delete boilerplate from libgomp for unsupported
1289 targets. Set UNSUPPORTED for unsupported targets.
1291 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293 * configure.tgt: Handle i386 like i[456]86.
1294 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1296 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1297 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1299 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1301 * method-wbetl.cc: Update copyright notice.
1307 * barrier.tpl: Same.
1308 * useraction.cc: Same.
1312 * config/generic/tls.cc: Same.
1313 * config/generic/cacheline.h: Same.
1314 * config/generic/cachepage.h: Same.
1315 * config/generic/cacheline.cc: Same.
1316 * config/generic/unaligned.h: Same.
1317 * config/x86/cacheline.h: Same.
1318 * config/x86/cacheline.cc: Same.
1319 * config/x86/unaligned.h: Same.
1320 * config/alpha/cacheline.h: Same.
1321 * config/alpha/unaligned.h: Same.
1322 * config/alpha/sjlj.S: Same.
1323 * config/posix/cachepage.cc: Same.
1324 * config/linux/futex.h: Same.
1325 * config/linux/alpha/futex_bits.h: Same.
1327 2011-11-04 Torvald Riegel <triegel@redhat.com>
1329 * libitm.texi: No cover text and invariant sections.
1331 2011-11-03 Richard Henderson <rth@redhat.com>
1333 * local_type_traits: New file.
1334 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1336 2011-11-03 Richard Henderson <rth@redhat.com>
1338 * configure.ac: Don't test for gfortran.
1339 * configure: Rebuild.
1341 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1342 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1344 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1346 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1347 * testsuite/libitm.c/memset-1.c: Same.
1348 * testsuite/libitm.c/c.exp: Same.
1349 * testsuite/lib/libitm-dg.exp: Same.
1350 * testsuite/lib/libitm.exp: Same.
1351 * testsuite/libitm.c++/c++.exp: Same.
1353 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1355 * testsuite/config/default.exp: Update copyright date.
1356 * configure.ac: Add copyright info.
1357 * configure.tgt: Same.
1359 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1361 * testsuite/libitm.c/reentrant.c: XFAIL.
1362 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1364 2011-10-29 Torvald Riegel <triegel@redhat.com>
1366 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1368 (_ITM_abortTransaction): Handle aborts of outer transactions.
1370 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1371 * libitm.texi: Document aborts of outer transactions.
1372 * testsuite/libitm.c/cancel.c: New file.
1374 2011-10-19 Torvald Riegel <triegel@redhat.com>
1376 * testsuite/*: Change __transaction to __transaction_atomic or
1377 __transaction_relaxed.
1379 2011-10-19 Torvald Riegel <triegel@redhat.com>
1381 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1384 2011-10-19 Torvald Riegel <triegel@redhat.com>
1386 * libitm_i.h: Add gl_wt dispatch.
1387 * retry.cc (parse_default_method): Same.
1388 * method-gl.cc: New file.
1389 * Makefile.am: Use method-gl.cc.
1390 * Makefile.in: Rebuild.
1392 2011-10-19 Torvald Riegel <triegel@redhat.com>
1394 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1395 safety if requested by a TM method.
1396 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1397 privatization safety.
1398 * method-serial.cc: Same.
1400 2011-10-19 Torvald Riegel <triegel@redhat.com>
1402 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1403 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1404 undolog-related member functions from *_local to *_undolog.
1405 * local.cc (gtm_thread::commit_undolog): Same.
1406 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1407 (GTM::gtm_thread::rollback): Roll back undolog before
1408 dispatch-specific rollback.
1410 2011-10-19 Torvald Riegel <triegel@redhat.com>
1412 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1413 re-initialization of the current method group.
1414 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1416 2011-10-19 Torvald Riegel <triegel@redhat.com>
1418 * alloc.cc (commit_allocations_2): Do not free transaction-local
1419 memory when committing a nested transaction.
1421 2011-10-19 Torvald Riegel <triegel@redhat.com>
1423 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1424 serial-irrevocable dispatch, not serial.
1426 2011-10-19 Torvald Riegel <triegel@redhat.com>
1428 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1430 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1431 * method-serial.cc: Implement begin_or_restart().
1432 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1433 dispatch-specific begin_or_restart().
1434 (GTM::gtm_thread::restart): Same.
1436 2011-08-23 Torvald Riegel <triegel@redhat.com>
1438 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1439 restarting without switching to serial mode.
1440 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1441 transaction state. Choose closed-nesting alternative if available.
1442 (GTM::gtm_thread::set_default_dispatch): New.
1443 (parse_default_method): New.
1444 (GTM::gtm_thread::number_of_threads_changed): New.
1445 * method-serial.cc (GTM::serial_mg): New method group class.
1446 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1448 (GTM::serial_dispatch): Same.
1449 (GTM::serialirr_onwrite_dispatch): Same.
1450 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1451 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1453 (GTM::gtm_thread::gtm_thread): Same.
1454 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1455 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1456 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1457 choose dispatch but set state according to dispatch here.
1458 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1459 (GTM::method_group): New class.
1460 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1461 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1462 * libitm.texi: Document TM methods, method groups, method life cycle.
1463 Rename method sets to method groups.
1465 2011-08-23 Torvald Riegel <triegel@redhat.com>
1467 * config/x86/tls.h: Moved to ...
1468 * config/linux/x86/tls.h: ... here.
1470 2011-08-23 Torvald Riegel <triegel@redhat.com>
1472 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1474 * config/x86/sjlj.S: Same.
1476 2011-08-19 Torvald Riegel <triegel@redhat.com>
1478 * config/linux/rwlock.h: New file.
1479 * config/linux/rwlock.c: New file.
1480 * configure.ac: Reenable futex support (undo SVN rev 157758).
1481 * Makefile.am: Same.
1482 * configure.tgt: Same.
1483 * config/linux/alpha/futex_bits.h: Same.
1484 * config/linux/futex.h: Same. Return number of woken processes.
1485 * config/linux/futex.cc: Same.
1486 (futex_wait): Remove spinning.
1487 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1488 Use __x86_64__ instead of __LP64__.
1489 * aclocal.m4: Include generic futex checks.
1490 * configure: Rebuild.
1491 * Makefile.in: Rebuild.
1492 * testsuite/Makefile.in: Rebuild.
1493 * beginend.cc: Include pthread.h.
1494 * config/posix/cachepage.cc: Same.
1496 2011-08-12 Torvald Riegel <triegel@redhat.com>
1498 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1499 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1501 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1503 (GTM::gtm_thread::thread_num): Removed.
1504 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1505 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1506 tx-to-thread renaming.
1507 * beginend.cc: Adapted to tx-to-thread renaming.
1508 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1509 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1510 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1511 gtm_transaction to gtm_thread.
1512 (_ITM_getThreadnum): Removed. Not supported anymore.
1513 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1514 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1515 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1516 gtm_tx-to-gtm_thr renaming if necessary.
1523 * alloc_cpp.cc: Same.
1524 * method-serial.cc: Same.
1525 * config/generic/tls.cc: Same.
1526 * config/posix/rwlock.h (gtm_rwlock): Same.
1527 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1529 2011-08-12 Torvald Riegel <triegel@redhat.com>
1531 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1533 (gtm_rwlock::read_unlock): Same.
1534 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1535 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1536 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1537 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1538 w_upgrade. Replaced by per-transaction flags (in shared_state).
1539 Added c_confirmed_writers.
1540 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1541 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1542 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1543 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1544 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1545 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1546 * libitm.texi: Document locking conventions and implementations in
1549 2011-08-12 Torvald Riegel <triegel@redhat.com>
1551 * libitm_i.h (next_tx): Add list of all threads' transaction.
1552 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1553 transaction with list of transactions and ...
1554 (thread_exit_handler): ... deregister here.
1555 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1556 * config/x86/target.h: Same.
1558 2011-08-12 Torvald Riegel <triegel@redhat.com>
1560 * testsuite/libitm.c++/static_ctor.C: New file.
1562 2011-08-12 Torvald Riegel <triegel@redhat.com>
1564 * testsuite/libitm.c/reentrant.c: New file.
1566 2011-08-12 Torvald Riegel <triegel@redhat.com>
1568 * config/generic/tls.h: Remove the free list for transactions and ...
1569 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1570 (GTM::gtm_transaction::operator delete): ... and release here.
1571 (thread_exit_handler): New. Delete tx when thread terminates.
1572 (thread_exit_init): New.
1573 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1574 * testsuite/libitm.c/txrelease.c: New file.
1576 2011-08-12 Torvald Riegel <triegel@redhat.com>
1578 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1579 * testsuite/libitm.c/notx.c: New file.
1581 2011-08-12 Torvald Riegel <triegel@redhat.com>
1583 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1584 * libitm_i.h (local_tid): ... to here.
1585 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1586 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1588 2011-08-12 Torvald Riegel <triegel@redhat.com>
1590 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1591 serialirr_onwrite_dispatch as new default for now.
1592 * method-serial.cc (serialirr_onwrite_dispatch): New.
1593 (GTM::dispatch_serialirr_onwrite): New.
1596 2011-08-12 Torvald Riegel <triegel@redhat.com>
1598 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1599 * query.cc (_ITM_getTransactionId): There is no active transaction if
1600 the current nesting level is zero.
1602 2011-07-28 Torvald Riegel <triegel@redhat.com>
1604 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1607 2011-07-28 Torvald Riegel <triegel@redhat.com>
1609 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1610 transaction properties from the caller instead of from the
1613 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1615 2011-07-28 Torvald Riegel <triegel@redhat.com>
1617 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1618 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1620 * method-serial.cc: Same.
1621 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1622 flat nesting as default, and closed nesting on demand.
1623 (GTM::gtm_transaction::rollback): Same.
1624 (_ITM_abortTransaction): Same.
1625 (GTM::gtm_transaction::restart): Same.
1626 (GTM::gtm_transaction::trycommit): Same.
1627 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1628 (choose_code_path): New.
1629 (GTM::gtm_transaction_cp::save): New.
1630 (GTM::gtm_transaction_cp::commit): New.
1631 * query.cc (_ITM_inTransaction): Support flat nesting.
1632 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1633 (GTM::gtm_transaction): Support flat and closed nesting.
1634 * alloc.cc (commit_allocations_2): New.
1635 (commit_cb_data): New helper struct.
1636 (GTM::gtm_transaction::commit_allocations): Handle nested
1638 * libitm.texi: Update user action section, add description of nesting.
1640 2011-07-28 Torvald Riegel <triegel@redhat.com>
1642 * libitm_i.h: Add closed nesting as restart reason.
1643 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1645 2011-07-28 Torvald Riegel <triegel@redhat.com>
1647 * useraction.cc: Use vector instead of list to store actions.
1648 Also support partial rollbacks for closed nesting.
1649 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1650 * beginend.cc: Same.
1652 2011-07-28 Torvald Riegel <triegel@redhat.com>
1654 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1655 closed_nesting flags, as well as a closed nesting alternative.
1656 * method-serial.cc: Same.
1657 (serial_dispatch): Renamed to serialirr_dispatch.
1658 (GTM::dispatch_serialirr): Same.
1659 (serial_dispatch_ul): Renamed to serial_dispatch.
1660 (GTM::dispatch_serial): Same.
1662 2011-07-28 Torvald Riegel <triegel@redhat.com>
1664 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1666 2011-07-28 Torvald Riegel <triegel@redhat.com>
1668 * aatree.h (aa_tree::remove): New.
1669 (aa_tree::operator new): Add placement new.
1671 2011-07-02 Torvald Riegel <triegel@redhat.com>
1673 * containers.h: New file.
1674 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1675 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1676 * common.h: ... to here.
1677 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1680 2011-06-30 Torvald Riegel <triegel@redhat.com>
1682 * libitm_i.h (STATE_ABORTING): Remove.
1683 * beginend.cc (_ITM_abortTransaction): Same.
1684 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1685 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1686 (_ITM_rollbackTransaction): Remove.
1687 * beginend.cc: Same.
1689 * libitm.texi: Document these ABI changes.
1691 2011-06-30 Torvald Riegel <triegel@redhat.com>
1693 * libitm.texi: New file.
1694 * Makefile.am: Add libitm.texi.
1695 * Makefile.in: Rebuild.
1697 2011-06-30 Torvald Riegel <triegel@redhat.com>
1699 * libitm_i.h: Move parts to common.h and dispatch.h.
1700 * common.h: New file.
1701 * dispatch.h: New file, new dispatch class.
1702 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1703 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1704 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1705 decision to retry.cc.
1706 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1708 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1709 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1711 * barrier.cc: Use new barriers definitions.
1712 (abi_dispatch::memmove_overlap_check): New.
1713 * config/x86/x86_sse.cc: Same.
1714 * config/x86/x86_avx.cc: Same.
1715 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1717 * Makefile.in: Rebuild.
1718 * method-readonly.cc: Remove.
1719 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1720 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1722 2011-06-30 Torvald Riegel <triegel@redhat.com>
1724 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1725 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1726 * testsuite/libitm.c/dropref-2.c: Same.
1727 * testsuite/libitm.c/dropref.c: Same.
1729 2011-06-30 Torvald Riegel <triegel@redhat.com>
1731 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1732 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1733 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1735 * barrier.tpl: Same.
1737 * config/generic/tls.h: Same.
1738 * config/x86/tls.h: Same.
1742 * method-readonly.cc: Same.
1743 * method-serial.cc: Same.
1744 * method-wbetl.cc: Same.
1747 2011-03-03 Richard Henderson <rth@redhat.com>
1749 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1750 From Patrik Marlier <patrick.marlier@unine.ch>.
1752 2011-02-03 Richard Henderson <rth@redhat.com>
1754 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1755 * configure.ac: Use it.
1756 * configure, config.h.in: Rebuild.
1757 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1758 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1759 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1760 * libitm.map: Use wildcards to match size_t mangling.
1762 2010-12-14 Richard Henderson <rth@redhat.com>
1764 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1765 blocks of TIDs per thread.
1766 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1767 (setup_gtm_thr): Return the thread structure.
1768 * config/x86/tls.h (setup_gtm_thr): Likewise.
1770 2010-12-14 Richard Henderson <rth@redhat.com>
1772 * clone.cc (table_lock): Remove.
1773 (find_clone): Don't take it.
1774 (ExcludeTransaction): New helper class.
1775 (_ITM_registerTMCloneTable): Use it.
1776 (_ITM_deregisterTMCloneTable): Likewise.
1778 2010-12-14 Richard Henderson <rth@redhat.com>
1780 * config/x86/tls.h: New file.
1782 2010-07-15 Richard Henderson <rth@redhat.com>
1784 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1785 * Makefile.in: Rebuild.
1787 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1789 * method-wbetl.cc (trydropreference): Fix source line.
1791 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1793 * libitm.h: Add comment.
1794 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1796 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1798 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1799 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1800 available, use pthread mutexes.
1801 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1802 * config.h.in: Regenerate.
1803 * configure: Regenerate.
1805 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1807 * libitm.h (ITM_PURE): Define.
1808 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1810 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1812 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1813 (validate): Add comment.
1814 (trydropreference): New.
1815 * method-readonly.cc (class readonly_dispatch): Add
1817 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1818 Call trydropreference().
1819 * libitm.h (_ITM_dropReferences): Remove const attribute.
1820 * method-serial.cc (class serial_dispatch): Add trydropreference.
1821 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1823 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1825 * memcpy.cc (do_memcpy): Comment.
1827 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1829 * barrier.tpl: Add comments throughout.
1831 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1833 * method-wbetl.cc (struct w_entry): Add comments.
1837 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1839 * alloc_c.cc (_ITM_dropReferences): New.
1840 * libitm.map (_ITM_dropReferences): Add.
1841 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1842 * libitm_i.h (struct gtm_transaction): Declare
1843 drop_references_allocations and drop_references_local.
1844 * local.cc (rollback_local): Ignore memory when applicable.
1845 (drop_references_local): New.
1847 2010-06-23 Richard Henderson <rth@redhat.com>
1849 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1850 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1851 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1852 * config/alpha/target.h: Likewise.
1853 * config/generic/tls.cc (gtm_mask_stack): Use it.
1855 2010-06-23 Richard Henderson <rth@redhat.com>
1857 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1858 a mutex instead of trying a lock-free compare-and-swap on the list.
1859 (gtm_cacheline_page::operator delete): Likewise.
1861 2010-06-16 Richard Henderson <rth@redhat.com>
1863 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1864 that overlap the libitm stack.
1865 * barrier.tpl: Mark incoming stack.
1866 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1867 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1868 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1869 * memcpy.cc, memset.cc: Likewise.
1870 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1871 * config/generic/tls.h (gtm_thread): Add stack_top member.
1872 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1873 * libitm_i.h (gtm_mask_stack): Declare.
1874 * config/generic/tls.cc: New file.
1875 * Makefile.am (libitm_la_SOURCES): Add it.
1876 (AM_CXXFLAGS): Turn off exceptions.
1877 * Makefile.in: Rebuild.
1879 2010-06-16 Richard Henderson <rth@redhat.com>
1881 * alloc.cc (struct gtm_alloc_action): Move definition ...
1882 * libitm_i.h: ... here.
1883 (class gtm_transaction): Declare new and delete.
1884 * beginend.cc (alloc_tx): Reformulate as operator new.
1885 (free_tx): Reformulate as operator delete.
1886 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1888 2010-06-11 Richard Henderson <rth@redhat.com>
1890 * clone.cc (clone_entry_compare): Fix typo.
1891 From Patrik Marlier <patrick.marlier@unine.ch>.
1893 2010-05-13 Richard Henderson <rth@redhat.com>
1895 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1898 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1900 * libitm_i.h (struct gtm_transaction): Remove
1901 get_allocation_size.
1902 (record_allocation): Remove size parameter.
1903 * libitm.map (_ITM_realloc): Remove.
1904 * alloc_c.cc (_ITM_realloc): Remove.
1905 (_ITM_malloc): Remove size argument to record_allocation.
1906 (_ITM_calloc): Same.
1907 * alloc_cpp.cc (_ZGTtnwm): Same.
1908 (_ZGTtnwmRKSt9nothrow_t): Same.
1910 (_ZGTtnamRKSt9nothrow_t): Same.
1911 * alloc.cc (struct gtm_alloc_action): Remove size.
1912 (get_allocation_size): Remove.
1913 (commit_allocations): Add comment.
1914 (record_allocation): Remove size parameter.
1915 (forget_allocation): Remove set of size.
1917 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1919 * Makefile.am (abi_version): New.
1920 (AM_CXXFLAGS): Pass abi_version.
1921 * Makefile.in: Regenerate.
1922 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1924 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1926 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1927 _ITM_getTMCloneOrIrrevokable.
1928 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1929 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1931 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1933 * configure.ac: Remove Linux futex support.
1934 * configure.tgt (config_path): Same.
1935 * Makefile.am: Same.
1936 * config/linux: Remove entire directory.
1937 * configure: Rebuild.
1938 * Makefile.in: Rebuild.
1939 * testsuite/Makefile.in: Rebuild.
1941 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1943 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1944 switching to serial mode.
1945 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1947 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1949 * configure.tgt: Add emacs -*- tags.
1950 * barrier.tpl: Same.
1952 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1954 * Makefile.am: Rename serial.cc to method-serial.cc.
1955 * Makefile.in: Regenerate with automake 1.11.1.
1956 * testsuite/Makefile.in: Same.
1957 * aclocal.m4: Regenerate with aclocal 1.11.1.
1958 * method-serial.cc: Rename from serial.cc.
1959 * libitm_i.h (struct gtm_transaction): Update comment on
1962 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1964 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1965 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1967 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1969 * configure: Rebuild.
1971 2009-11-12 Richard Henderson <rth@redhat.com>
1973 * Rewrite everything in C++.
1975 2009-11-03 Richard Henderson <rth@redhat.com>
1977 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1978 * Makefile.am (libitm_la_SOURCES): Add them.
1979 * configure.ac (ARCH_X86): New conditional.
1980 * Makefile.in, configure: Rebuild.
1981 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1982 Move futex setup into "other system configury" case.
1983 * local.c (rollback_local): Merge into ...
1984 (GTM_rollback_local): ... here.
1985 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1986 (_ITM_LB): Define as an alias to GTM_LB.
1988 2009-11-03 Richard Henderson <rth@redhat.com>
1990 * method-readonly.c: New file.
1991 * Makefile.am (libitm_la_SOURCES): Add it.
1992 * Makefile.in: Rebuild.
1993 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1994 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1995 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1996 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1997 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1998 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1999 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2000 gtm_get_clock, gtm_inc_clock): New.
2001 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2002 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2003 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2004 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2005 replace uses with new libitm_i.h symbols.
2006 (dispatch_wbetl): Rename from wbetl_dispatch.
2007 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2008 away from dispatch_readonly; abort if the beginTransaction call
2009 asserted that the transaction was readonly.
2011 2009-11-03 Richard Henderson <rth@redhat.com>
2013 * memset.c: New file.
2014 * Makefile.am (libitm_la_SOURCES): Add it.
2015 * Makefile.in: Rebuild.
2016 * testsuite/libitm.c/memset-1.c: New.
2018 2009-11-03 Richard Henderson <rth@redhat.com>
2020 * dispatch.c: Remove file.
2021 * useraction.c (struct gtm_user_action): Move from libitm.h.
2022 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2023 (serial_memset, serial_memmove, serial_memcpy): Remove.
2024 (serial_W*, serial_R*): Remove.
2025 (serial_dispatch): Update to match.
2026 * configure.ac: Move Werror down below configure checks. Don't
2027 check for sys/loadavg.h, do check for malloc.h. Don't check for
2028 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2029 Use GCC_AC_FUNC_MMAP_BLACKLIST
2030 * libitm.h: Split out all internal items to...
2031 * libitm_i.h: ... here. New file.
2032 * copymask.c: New file.
2033 * local.c (struct gtm_local_undo): Move from libitm.h.
2034 (GTM_alloc_local): Rename from alloc_local; export.
2035 * memcpy.c: New file.
2036 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2037 * config/posix/page.c: New file.
2038 * config/posix/target_tls.h: Remove file.
2039 * barrier.c: New file.
2040 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2042 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2043 * method-wbetl.c: Rewrite for new cacheline methods.
2044 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2046 * config/alpha/sjlj.S: Fix typo.
2047 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2048 * config/alpha/copymask.c: New file.
2049 * config/alpha/target.h (CACHELINE_SIZE): New.
2050 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2052 * config/x86/target_i.h: Copy functions from x86/target.h.
2053 * config/x86/copymask.c: New file.
2054 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2055 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2056 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2057 * config/x86/target_tls.h: Move contents to target_i.h.
2059 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2060 * testsuite/libitm.c/memcpy-1.c: New.
2062 2009-10-22 Richard Henderson <rth@redhat.com>
2064 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2065 (AM_CCASFLAGS): New.
2066 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2067 saving/restoring _AC_ARG_VAR_PRECIOUS.
2068 * Makefile.in, aclocal.m4, config.h.in, configure,
2069 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2071 2009-10-22 Richard Henderson <rth@redhat.com>
2073 * testsuite/*: Update for new compiler syntax.
2075 2009-10-21 Richard Henderson <rth@redhat.com>
2077 * libitm.h (_ITM_abortReason): Add outerAbort.
2079 2009-08-03 Richard Henderson <rth@redhat.com>
2081 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2082 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2083 * method-wbetl.c (struct w_entry): Remove mask.
2084 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2087 2009-07-22 Richard Henderson <rth@redhat.com>
2089 * eh_cpp.c: New file.
2090 * Makefile.am (libitm_la_SOURCES): Add it.
2091 * Makefile.in: Rebuild.
2092 * beginend.c (GTM_rollback_transaction): Undo exception state.
2093 (GTM_trycommit_transaction): Mark inline.
2094 (GTM_trycommit_and_finalize_transaction): Split out from ...
2095 (_ITM_commitTransaction): ... here.
2096 (_ITM_commitTransactionEH): New function.
2097 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2098 cxa_unthrown, eh_in_flight; reorder.
2100 * testsuite/libitm.c++/c++.exp: New.
2101 * testsuite/libitm.c++/eh-1.C: New.
2103 * aatree.c (aa_free): Remove REGPARM.
2104 * aatree.h: Remove all REGPARM.
2106 2009-07-18 Richard Henderson <rth@redhat.com>
2108 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2109 * Makefile.am (libitm_la_SOURCES): Add them.
2110 * Makefile.in: Rebuild.
2111 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2112 (GTM_trycommit_transaction): Likewise.
2113 * libitm.h: Include aatree.h
2114 (struct gtm_alloc_action): New.
2115 (struct gtm_transaction): Add alloc_actions.
2116 (GTM_record_allocation, GTM_forget_allocation): Declare.
2117 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2118 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2119 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2120 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2121 _ZGTtdaPvRKSt9nothrow_t): Export.
2123 2009-07-18 Richard Henderson <rth@redhat.com>
2125 * target_tls.h: Move ...
2126 * config/posix/target_tls.h: ... here.
2128 2009-07-07 Richard Henderson <rth@redhat.com>
2130 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2132 2009-07-07 Richard Henderson <rth@redhat.com>
2136 2009-07-07 Richard Henderson <rth@redhat.com>
2138 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2139 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2141 * configure.tgt: Don't use -ftls-model for x86 linux.
2142 * libitm.h: Include target.h after standard includes.
2143 (_gtm_thr): Rename from gtm_thr.
2144 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2145 (gtm_disp, set_gtm_disp): New.
2146 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2147 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2148 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2150 2009-07-07 Richard Henderson <rth@redhat.com>
2152 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2154 2009-07-06 Richard Henderson <rth@redhat.com>
2156 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2157 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2158 (_ITM_beginTransaction): Take variadic arguments.
2159 (_ITM_registerThrownObject): Declare.
2160 * beginend.c, serial.c: Update.
2161 * libitm.map: Add _ITM_registerThrownObject.
2163 2009-01-28 Richard Henderson <rth@redhat.com>
2165 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2166 * Makefile.in: Rebuild.
2167 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2168 (GTM_restart_transaction): Fix uninstrumented code check.
2169 * retry.c (GTM_decide_retry_strategy): Add serial check.
2170 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2171 automatically go irrevokable when in serial mode.
2172 * clone.c: New file.
2173 * libitm.h, libitm.map: Update.
2175 2009-01-27 Richard Henderson <rth@redhat.com>
2177 * Makefile.am (LTCCASCOMPILE): Define.
2178 (libitm_la_SOURCES): Add methid-wbetl.c.
2179 * testsuite/Makefile.am: New
2180 * configure.ac: Add testsuite/Makefile.
2181 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2182 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2183 (_ITM_abortTransaction): Finalize implementation method; pass
2184 transaction properties to longjmp.
2185 (GTM_restart_transaction): Split out from ...
2186 (_ITM_commitTransaction): ... here.
2187 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2188 Move to config/x86/target.h.
2189 * config/linux/alpha/futex_bits.h: New.
2190 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2191 * config/x86/target.h: Disable target types for 32-bit.
2192 * config/alpha/sjlj.S, config/alpha/target.h: New.
2193 * libitm.h (struct gtm_dispatch): Add init, fini.
2194 (enum restart_reason): New.
2195 (struct gtm_transaction): Add method and restarts.
2196 * retry.c (GTM_decide_retry_strategy): Implement.
2197 * serial.c (serial_init, serial_fini): New.
2198 (GTM_serialmode): Finialize outgoing method.
2199 * method-wbetl.c: New.
2201 2008-12-09 Richard Henderson <rth@redhat.com>
2203 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2204 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2205 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2206 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2207 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2208 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2209 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2210 * serial.c (serial_R##T, serial_W##T): Likewise.
2212 2008-11-21 Richard Henderson <rth@redhat.com>
2216 Copyright (C) 2008-2020 Free Software Foundation, Inc.
2218 Copying and distribution of this file, with or without modification,
2219 are permitted in any medium without royalty provided the copyright
2220 notice and this notice are preserved.