1 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3 * Makefile.in: Regenerate.
4 * acinclude.m4: Add enable.m4 and cet.m4.
5 * config/x86/sjlj.S: Include cet.h.
6 (_ITM_beginTransaction): Add _CET_ENDBR.
7 Save Shadow Stack pointer.
8 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
9 * config/x86/target.h (struct gtm_jmpbuf):
10 Add new field for Shadow Stack pointer.
11 * configure: Regenerate.
12 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
13 * configure.ac: Update libtool_VERSION for x86.
14 * testsuite/Makefile.in: Regenerate.
16 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
18 * libitm/config/x86/target.h: Add new field (ssp).
19 * libitm/config/x86/sjlj.S: Change offsets.
21 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23 * testsuite/lib/libitm.exp: Load scanlang.exp.
25 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
27 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
29 2017-01-21 Jakub Jelinek <jakub@redhat.com>
32 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
33 of cat to get version from BASE-VER file.
34 * testsuite/Makefile.in: Regenerated.
36 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
38 * config/x86/target.h (htm_available): Determine vendor from
39 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
41 2017-01-18 Torvald Riegel <triegel@redhat.com>
43 * config/x86/target.h (htm_available): Add check for some processors
44 on which TSX is broken.
46 2017-01-17 Jakub Jelinek <jakub@redhat.com>
49 * configure.ac: Add GCC_BASE_VER.
50 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
51 get version from BASE-VER file.
52 * testsuite/Makefile.in: Regenerated.
53 * configure: Regenerated.
54 * Makefile.in: Regenerated.
56 2017-01-04 Alan Modra <amodra@gmail.com>
58 * Makefile.in: Regenerate.
59 * testsuite/Makefile.in: Regenerate.
61 2017-01-01 Jakub Jelinek <jakub@redhat.com>
63 Update copyright years.
65 * libitm.texi: Bump @copying's copyright year.
67 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
69 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
70 * aclocal.m4: Regenerate.
71 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
72 LIBITM_CHECK_LINKER_HWCAP.
74 2016-11-15 Matthias Klose <doko@ubuntu.com>
76 * configure: Regenerate.
78 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
81 * util.cc (xmalloc): Use posix_memalign to allocate memory on
82 on cache line if requested.
84 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
86 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
87 function attribute to disable floating point in begin_transaction() on
89 * beginend.cc (begin_transaction): Use
90 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
92 2016-01-22 Torvald Riegel <triegel@redhat.com>
94 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
96 (htm_fastpath): Remove.
97 (gtm_thread::begin_transaction): Fix HTM fastpath.
98 (_ITM_commitTransaction): Adapt.
99 (_ITM_commitTransactionEH): Adapt.
100 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
102 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
103 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
104 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
105 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
106 * libitm/method-serial.cc (htm_mg): Adapt.
107 (gtm_thread::serialirr_mode): Adapt.
108 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
110 2016-01-21 Torvald Riegel <triegel@redhat.com>
112 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
115 2016-01-19 Richard Henderson <rth@redhat.com>
120 2016-01-13 Richard Henderson <rth@redhat.com>
122 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
123 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
124 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
125 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
126 * configure.ac (ARCH_AARCH64): New conditional.
127 (ARCH_PPC, ARCH_S390): Likewise.
128 * Makefile.in, configure: Rebuild.
130 * libitm.h (_ITM_TYPE_M128): Always define.
131 * vect64.cc: Split ...
132 * vect128.cc: ... out of...
133 * config/x86/x86_sse.cc: ... here.
134 * config/arm/neon.cc: New file.
136 2016-01-19 Torvald Riegel <triegel@redhat.com>
138 * local_type_traits: Remove file.
139 * libitm_i.h: Don't include it anymore.
140 (sized_integral): Remove.
142 2016-01-16 Torvald Riegel <triegel@redhat.com>
144 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
146 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
147 * libitm/testsuite/libitm.c/priv-1.c: New.
149 2015-01-15 Torvald Riegel <triegel@redhat.com>
151 testsuite/libitm.c++/libstdc++-safeexc.C: New.
153 2016-01-13 Torvald Riegel <triegel@redhat.com>
155 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
156 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
157 (gtm_rwlock::write_unlock): Likewise.
159 2016-01-13 Richard Henderson <rth@redhat.com>
161 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
162 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
163 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
164 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
165 * configure.ac (ARCH_AARCH64): New conditional.
166 (ARCH_PPC, ARCH_S390): Likewise.
167 * Makefile.in, configure: Rebuild.
169 * libitm.h (_ITM_TYPE_M128): Always define.
170 * vect64.cc: Split ...
171 * vect128.cc: ... out of...
172 * config/x86/x86_sse.cc: ... here.
173 * config/arm/neon.cc: New file.
175 2016-01-13 Torvald Riegel <triegel@redhat.com>
177 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
178 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
179 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
180 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
181 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
182 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
183 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
184 (serialirr_dispatch::snapshot_most_recent): New.
185 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
187 2016-01-12 Torvald Riegel <triegel@redhat.com>
189 * libitm_i.h (gtm_mask_stack): Remove.
190 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
191 * stmlock.h: Remove file.
192 * config/alpha/cacheline.h: Likewise.
193 * config/generic/cacheline.h: Likewise.
194 * config/powerpc/cacheline.h: Likewise.
195 * config/sparc/cacheline.h: Likewise.
196 * config/x86/cacheline.h: Likewise.
198 2016-01-04 Jakub Jelinek <jakub@redhat.com>
200 Update copyright years.
202 * libitm.texi: Bump @copying's copyright year.
204 2015-11-26 Torvald Riegel <triegel@redhat.com>
206 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
207 (ml_wt_dispatch::pre_write): Adapt.
208 (ml_wt_dispatch::pre_load): Likewise.
210 2015-11-22 Torvald Riegel <triegel@redhat.com>
212 * libitm_i.h (gtm_alloc_action): Remove union.
213 * testsuite/libitm.c/alloc-1.c: New.
215 2015-11-19 Torvald Riegel <triegel@redhat.com>
217 * testsuite/libitm.c++/eh-5.C: New.
218 * libitm.h (_ITM_cxa_free_exception): New.
219 * libitm.map (_ITM_cxa_free_exception): Add it.
220 * libitm.texi: Update ABI docs.
221 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
222 (gtm_transaction_cp::cxa_uncaught_count): Add.
223 (gtm_thread::cxa_unthrown): Remove.
224 (gtm_thread::cxa_uncaught_count_ptr): Add.
225 (gtm_thread::cxa_uncaught_count): Add.
226 (gtm_thread::drop_references_allocations): Rename to...
227 (gtm_thread::discard_allocation): ... this and adapt.
228 (gtm_thread::init_cpp_exceptions): New.
229 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
230 (gtm_thread::begin_transaction): Likewise.
231 (gtm_transaction_cp::save): Likewise.
232 (gtm_thread::trycommit): Likewise.
233 * eh_cpp.cc: Add overview comments.
234 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
235 (free_any_exception, _ITM_cxa_free_exception): New.
236 (gtm_thread::init_cpp_exceptions): Define.
237 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
238 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
239 (gtm_thread::revert_cpp_exceptions): Likewise.
241 2015-11-09 Torvald Riegel <triegel@redhat.com>
243 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
244 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
245 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
246 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
247 (gtm_thread::forget_allocations): New overload with size_t argument.
248 * alloc.c (gtm_thread::forget_allocation): Define new overload and
250 (gtm_thread::record_allocation): Adapt.
251 (gtm_thread::commit_allocations_1): Adapt.
252 (gtm_thread::commit_allocations_2): Adapt.
253 * testsuite/libitm.c++/newdelete.C: New.
255 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
256 Joseph Myers <joseph@codesourcery.com>
257 Mark Shinwell <shinwell@codesourcery.com>
258 Andrew Stubbs <ams@codesourcery.com>
259 Rich Felker <dalias@libc.org>
261 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
262 GTM_begin_transaction for compatibility with FDPIC.
264 2015-10-09 David Malcolm <dmalcolm@redhat.com>
266 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
269 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
272 * local_atomic (__always_inline): Rename to...
273 (__libitm_always_inline): ... this.
275 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
278 * config/powerpc/sjlj.S: Port to Xcode 2.5.
280 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
282 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
283 operands "op" and "val" to int.
285 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
287 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
288 "op" and "val" to int.
290 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
292 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
293 "op" and "val" to int.
295 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
297 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
298 Declare as static int.
299 (FUTEX_PRIVATE_FLAG): Remove L suffix.
300 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
302 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
304 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
307 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
309 * Makefile.in: Regenerated with automake-1.11.6.
310 * aclocal.m4: Likewise.
311 * configure: Likewise.
312 * testsuite/Makefile.in: Likewise.
314 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
316 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
317 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
319 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
322 * libitm.c/stackundo.c (test2): Make it static.
325 2015-01-05 Jakub Jelinek <jakub@redhat.com>
327 Update copyright years.
329 2015-01-05 Jakub Jelinek <jakub@redhat.com>
331 * libitm.texi: Bump @copying's copyright year.
333 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
335 * testsuite/lib/libitm.exp: Load target-utils.exp.
336 Move load of target-supports.exp earlier.
338 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
340 * configure.tgt (x86_64): Tune -m32 multilib to generic.
342 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
345 * configure: Regenerated.
347 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
350 * configure: Regenerate.
352 2014-10-06 Marek Polacek <polacek@redhat.com>
354 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
355 * testsuite/libitm.c/memset-1.c: Likewise.
357 2014-07-24 Richard Henderson <rth@redhat.com>
359 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
360 addressing mode in epilogue.
362 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
364 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
365 -mclear-hwcap instead.
366 * configure: Regenerate.
367 * clearcap.map: Remove.
369 2014-05-21 John Marino <gnugcc@marino.st>
371 * configure.tgt (*-*-dragonfly*): New target.
373 2014-05-19 Richard Henderson <rth@redhat.com>
375 * config/aarch64/sjlj.S: New file.
376 * config/aarch64/target.h: New file.
377 * configure.tgt: Enable aarch64.
379 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381 * config/generic/asmcfi.h: Also check for
382 __GCC_HAVE_DWARF2_CFI_ASM.
384 2013-04-02 Richard Henderson <rth@redhat.com>
386 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
387 * config/arm/target.h, config/sh/target.h: Likewise.
388 * config/sparc/target.h, config/x86/target.h: Likewise.
390 2014-03-26 Jakub Jelinek <jakub@redhat.com>
392 * config/linux/futex_bits.h: Include errno.h.
393 (sys_futex0): If syscall returns -1, return -errno rather than
396 2014-03-26 Joseph Myers <joseph@codesourcery.com>
398 * libitm.texi (Index): Rename to Library Index.
400 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
403 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
404 (x86_avx.lo): Append -mavx to CXXFLAGS.
405 * Makefile.in: Regenerate.
407 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
409 Update copyright years
411 2014-01-02 Tobias Burnus <burnus@net-b.de>
413 * libitm.texi: Bump @copying's copyright year.
415 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
417 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
418 (FUNC): Define ELFv2 variant.
425 2013-09-20 Alan Modra <amodra@gmail.com>
427 * configure: Regenerate.
429 2013-08-30 Torvald Riegel <triegel@redhat.com>
431 * config/posix/rwlock.cc: Fix initialization order.
433 2013-08-30 Torvald Riegel <triegel@redhat.com>
435 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
436 (htm_fastpath): Assign an asm name.
437 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
439 (_ITM_actions): Likewise.
440 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
442 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
443 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
444 field to the start of the structure.
445 * config/linux/rwlock.h (gtm_rwlock): Update comments.
446 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
447 handling for custom HTM fast paths.
449 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
451 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
453 * configure.tgt: Add -msoft-float to XCFLAGS.
455 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
457 * configure.tgt: Add -msoft-float to XCFLAGS.
459 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
461 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
462 (htm_transaction_active): Enable zEC12 instructions in the
464 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
466 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
468 * acinclude.m4: Add htm asm check for s390.
469 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
470 * configure: Regenerate.
471 * config/s390/target.h: Remove __HTM__ check.
472 (htm_available): Call getauxval to get hwcaps and check whether
473 HTM is available or not.
475 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
477 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
478 * configure.ac: Use it.
479 (AC_CHECK_HEADERS): Check for sys/auxv.h.
480 (AC_CHECK_FUNCS): Check for getauxval.
481 * config.h.in, configure: Rebuild.
482 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
483 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
484 (USE_HTM_FASTPATH): Define.
485 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
486 _HTM_RETRIES) New macros.
487 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
488 htm_begin_success, htm_commit, htm_transaction_active): New functions.
490 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
492 * config/s390/target.h: Include htmintrin.h.
493 (_HTM_ITM_RETRIES): New macro definition.
494 (htm_available, htm_init, htm_begin, htm_begin_success)
495 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
497 2013-06-20 Iain Sandoe <iain@codesourcery.com>
498 Cesar Philippidis <cesar@codesourcery.com>
500 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
501 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
502 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
503 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
505 2013-06-20 Torvald Riegel <triegel@redhat.com>
507 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
508 (_ITM_getTransactionId): Same.
509 * config/x86/target.h (htm_transaction_active): New.
511 2013-06-20 Torvald Riegel <triegel@redhat.com>
514 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
517 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
520 * local_atomic (__always_inline): Always define our version.
521 (__calculate_memory_order): Mark inline.
522 (atomic_thread_fence): Ditto.
523 (atomic_signal_fence): Ditto.
524 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
525 (atomic_bool::atomic_flag_clear_explicit): Ditto.
526 (atomic_bool::atomic_flag_test_and_set): Ditto.
527 (atomic_bool::atomic_flag_clear): Ditto.
529 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
531 * config/s390/sjlj.S: New file.
532 * config/s390/target.h: New file.
533 * configure.tgt: Set options for S/390.
535 2013-03-23 Andi Kleen <ak@linux.intel.com>
537 * local_atomic (__always_inline): Add.
538 (__calculate_memory_order, atomic_thread_fence,
539 atomic_signal_fence, test_and_set, clear, store, load,
540 exchange, compare_exchange_weak, compare_exchange_strong,
541 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
542 Add __always_inline to force inlining.
544 2013-02-11 Iain Sandoe <iain@codesourcery.com>
545 Jack Howarth <howarth@bromo.med.uc.edu>
546 Patrick Marlier <patrick.marlier@gmail.com>
549 * alloc_cpp.cc: Enable function declarations on darwin.
550 * eh_cpp.cc: Likewise.
552 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
554 Update copyright years.
556 2012-11-09 Torvald Riegel <triegel@redhat.com>
558 * beginend.cc (htm_fastpath): New.
559 (gtm_thread::begin_transaction, _ITM_commitTransaction,
560 _ITM_commitTransactionEH): Add HTM fastpath handling.
561 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
562 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
563 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
564 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
565 * configure.tgt: Add -mrtm to XCFLAGS.
566 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
567 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
568 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
569 * retry.cc (parse_default_method): Add HTM method parsing.
570 (gtm_thread::number_of_threads_changed): Use HTM by default if
573 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
575 * configure: Regenerate.
577 2012-10-31 Richard Henderson <rth@redhat.com>
579 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
580 * configure.ac: Use it.
581 * config.h.in, configure: Rebuild.
582 * testsuite/Makefile.in: Rebuild.
584 2012-10-24 Torvald Riegel <triegel@redhat.com>
586 * libitm.texi: Clarify ABI requirements for data-logging functions.
588 2012-10-24 Torvald Riegel <triegel@redhat.com>
590 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
591 it requires serial mode instead of assuming that for certain
593 * dispatch.h (abi_dispatch::requires_serial): New.
594 (abi_dispatch::abi_dispatch): Adapt.
595 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
596 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
597 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
598 serial_dispatch::serial_dispatch,
599 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
601 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
603 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
604 and ia32 declarations some more.
605 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
607 2012-09-20 Jakub Jelinek <jakub@redhat.com>
610 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
611 * configure: Regenerate.
612 * Makefile.in: Regenerate.
614 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
616 * configure: Regenerated.
618 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
620 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
622 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
624 * eh_cpp.cc: Fix __cxa_end_catch declaration.
626 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
628 * configure: Regenerated.
630 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
633 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
636 2012-04-03 Tristan Gingold <gingold@adacore.com>
638 * configure: Regenerate.
640 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
643 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
645 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
647 * testsuite/lib/libitm.exp: load fortran-modules.exp
649 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651 * configure.tgt (*-*-irix6*): Remove.
653 2012-03-13 Torvald Riegel <triegel@redhat.com>
656 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
659 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
661 * configure.tgt (*-*-osf*): Remove.
662 * configure: Regenerate.
664 2012-03-05 Torvald Riegel <triegel@redhat.com>
666 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
667 memtransfer/memset if size isn't larger than zero.
669 2012-03-02 Torvald Riegel <triegel@redhat.com>
671 * libitm.texi: Link to specification and add a usage example.
673 2012-02-24 Torvald Riegel <triegel@redhat.com>
675 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
676 default dispatch for more than 1 thread to ml_wt.
678 2012-02-20 Torvald Riegel <triegel@redhat.com>
680 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
682 2012-02-20 Torvald Riegel <triegel@redhat.com>
684 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
686 2012-02-20 Torvald Riegel <triegel@redhat.com>
688 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
689 serial mode corner cases made obsolete by prior gtm_rwlock changes.
690 (gl_wt_dispatch.rollback): Same.
692 2012-02-20 Torvald Riegel <triegel@redhat.com>
694 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
696 2012-02-20 Torvald Riegel <triegel@redhat.com>
698 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
699 for RfW src. Optimize number of calls to gtm_thr.
701 2012-02-20 Torvald Riegel <triegel@redhat.com>
703 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
705 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
706 (default_dispatch): Make atomic.
707 (GTM::gtm_thread::set_default_dispatch): Access atomically.
708 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
709 use decide_begin_dispatch() if default_dispatch might have changed.
710 (GTM::gtm_thread::number_of_threads_changed): Initialize
711 default_dispatch here.
713 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
714 Patrick Marlier <patrick.marlier@gmail.com>
717 * alloc_cpp.cc: No dummy definitions for darwin.
718 * eh_cpp.cc: Likewise.
720 2012-02-14 Richard Henderson <rth@redhat.com>
722 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
724 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
726 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
728 2012-02-14 Torvald Riegel <triegel@redhat.com>
730 * libitm_i.h (GTM::gtm_rwlog_entry): New.
731 (GTM::gtm_thread): Add read and write logs.
732 (GTM::dispatch_ml_wt): Declare.
733 * retry.cc (parse_default_method): Support ml_wt.
734 * method-ml.cc: New file.
735 * Makefile.am: Add method-ml.cc.
736 * Makefile.in: Regenerate.
738 2012-02-14 Torvald Riegel <triegel@redhat.com>
740 * dispatch.h (GTM::abi_dispatch::supports): New.
741 (GTM::method_group::reinit): New.
742 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
743 (GTM::gtm_thread::number_of_threads_changed): Check that the method
744 supports the current situation.
746 2012-02-14 Torvald Riegel <triegel@redhat.com>
748 * util.cc (GTM::xcalloc): New.
749 * common.h (GTM::xcalloc): Declare.
751 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
753 * config/sparc/target.h (cpu_relax): Read from CC register.
754 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
756 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
758 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
760 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
762 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
763 * config/sparc/cacheline.h: New file.
764 * config/sparc/target.h: Likewise.
765 * config/sparc/sjlj.S: Likewise.
766 * config/linux/sparc/futex_bits.h: Likewise.
768 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
770 * configure.ac (link_itm): Fix comment.
771 * configure: Regenerate.
772 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
774 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
777 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
778 Correct libgomp references.
780 2012-01-24 Torvald Riegel <triegel@redhat.com>
782 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
785 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
787 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
789 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
790 offset values. Do not copy return address. Decrement stack
792 (GTM_longjump) [__x86_64__]: Update offset values.
794 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
797 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
798 the first function argument to %eax.
800 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802 * libitm.h (_ITM_getThreadnum): Remove.
803 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
805 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
807 * clearcap.map: New file.
808 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
809 * configure.ac: Call it.
810 Clear HWCAP_LDFLAGS if defaulting to -mavx.
811 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
812 * configure: Regenerate.
813 * Makefile.in: Regenerate.
814 * testsuite/Makefile.in: Regenerate.
816 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
819 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
820 include, exclude options.
822 2012-01-14 Torvald Riegel <triegel@redhat.com>
824 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
826 * containers.h (GTM::vector::set_size): New.
828 2012-01-14 Torvald Riegel <triegel@redhat.com>
831 * config/generic/tls.h (GTM::mask_stack_top): New.
832 (GTM::mask_stack_bottom): Declare.
833 * config/generic/tls.c (GTM::mask_stack_bottom): New.
834 * local.cc (gtm_undolog::rollback): Filter out any updates that
835 overlap the libitm stack. Add current transaction as parameter.
836 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
837 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
838 * testsuite/libitm.c/stackundo.c: New test.
840 2012-01-10 Richard Henderson <rth@redhat.com>
842 * libitm_i.h (_Unwind_DeleteException): Declare weak.
843 * eh_cpp.cc (_Unwind_DeleteException): Define for
844 !HAVE_ELF_STYLE_WEAKREF.
846 2012-01-08 Torvald Riegel <triegel@redhat.com>
848 * local.cc (GTM_LB): Use GTM::gtm_undolog.
849 (GTM::gtm_thread::drop_references_undolog): Remove.
850 (GTM::gtm_thread::commit_undolog,
851 GTM::gtm_thread::rollback_undolog): Move to ...
852 * libitm_i.h (GTM::gtm_undolog): ...here. New.
853 (GTM::gtm_undolog_entry): Remove.
854 (GTM::gtm_thread): Adapt.
855 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
856 (GTM::gtm_thread::trycommit): Adapt.
857 * method-serial.cc (serial_dispatch::log): Adapt.
858 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
859 (gl_wt_dispatch::store): Fix likely/unlikely.
860 * containers.h (GTM::vector::resize): Add additional_capacity
861 parameter and handle it.
862 (GTM::vector::resize_noinline): New/adapt.
863 (GTM::vector::push): New.
865 2012-01-06 Richard Henderson <rth@redhat.com>
867 * configure.tgt: Support powerpc-linux and powerpc-darwin.
868 * config/linux/powerpc/futex_bits.h: New file.
869 * config/powerpc/cacheline.h: New file.
870 * config/powerpc/sjlj.S: New file.
871 * config/powerpc/target.h: New file.
872 * config/generic/asmcfi.h (cfi_offset): New.
873 (cfi_restore, cfi_undefined): New.
875 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
878 * testsuite/libitm.c/reentrant.c: Remove xfail.
879 (thread): Pass x to pure().
880 From Patrik Marlier <patrick.marlier@gmail.com>.
882 2011-12-24 Torvald Riegel <triegel@redhat.com>
884 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
885 privatization safety if already in serial mode.
887 2011-12-24 Torvald Riegel <triegel@redhat.com>
889 * beginend.cc (GTM::gtm_thread::restart): Add and handle
890 finish_serial_upgrade parameter.
891 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
892 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
893 Don't unset reader flag.
894 (GTM::gtm_rwlock::write_upgrade_finish): New.
895 * config/posix/rwlock.cc: Same.
896 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
898 * config/posix/rwlock.h: Same.
899 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
900 flag after commit or after rollback when restarting.
902 2011-12-24 Torvald Riegel <triegel@redhat.com>
904 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
905 (GTM::gtm_thread::try_commit): Changed memory order.
906 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
908 * config/linux/x86/futex_bits.h (sys_futex0): Same.
909 * config/linux/sh/futex_bits.h (sys_futex0): Same.
910 * config/linux/futex_bits.h (sys_futex0): Same.
911 * config/linux/futex.cc (futex_wait, futex_wake): Same.
912 * config/linux/futex.h (futex_wait, futex_wake): Same.
913 * config/linux/rwlock.h (gtm_rwlock::writers,
914 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
916 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
917 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
918 gtm_rwlock::write_unlock): Fix memory orders and fences.
919 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
920 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
921 gtm_rwlock::write_unlock): Same.
922 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
923 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
924 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
926 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
927 gl_wt_dispatch::load, gl_wt_dispatch::store,
928 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
929 orders and fences. Add comments.
931 2011-12-21 Jakub Jelinek <jakub@redhat.com>
933 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
934 * Makefile.in: Regenerated.
936 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
938 * configure.tgt: Add sh* case.
939 * config/sh/target.h: New file.
940 * config/sh/sjlj.S: New file.
941 * config/linux/sh/futex_bits.h: New file.
943 2011-12-14 Richard Henderson <rth@redhat.com>
945 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
946 * config/arm/sjlj.S, config/arm/target.h: New files.
947 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
948 (cfi_rel_offset): New.
949 * config/linux/futex_bits.h: New file.
950 * config/linux/futex.cc: Include futex_bits.h here...
951 * config/linux/futex.h: ... not here.
952 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
953 * configure.ac (ARCH_AM): New conditional.
954 * Makefile.in, configure: Rebuild.
955 * configure.tgt: Handle ARM.
957 2011-12-13 Richard Henderson <rth@redhat.com>
959 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
960 signed/unsigned comparison werror.
962 * local_atomic: New file.
963 * libitm_i.h: Include it.
964 (gtm_thread::shared_state): Use atomic template.
965 * beginend.cc (GTM::gtm_clock): Use atomic template.
966 (global_tid): Use atomic template if 64-bit atomics available.
967 (gtm_thread::gtm_thread): Update shared_state access.
968 (gtm_thread::trycommit): Likewise.
969 (choose_code_path): Update global_tid access.
970 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
971 * stmlock.h (GTM::gtm_clock): Use atomic template.
972 (gtm_get_clock, gtm_inc_clock): Update accesses.
973 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
974 redundant __sync_synchronize after atomic shared_state access.
975 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
976 (gtm_rwlock::write_lock_generic): Likewise.
977 (gtm_rwlock::read_unlock): Likewise.
978 * config/alpha/target.h (atomic_read_barrier): Remove.
979 (atomic_write_barrier): Remove.
980 * config/x86/target.h (atomic_read_barrier): Remove.
981 (atomic_write_barrier): Remove.
983 2011-11-30 Richard Henderson <rth@redhat.com>
985 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
986 * beginend.c (_ITM_abortTransaction): Update to match.
987 (GTM::gtm_thread::restart): Likewise.
988 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
989 * config/x86/sjlj.S (GTM_longjmp): Likewise.
991 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
993 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
994 * Makefile.in: Regenerate.
996 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
998 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
999 * alloc_cpp.cc: Generate dummy functions if we don't
1000 HAVE_ELF_STYLE_WEAKREF.
1001 * eh_cpp.cc: Likewise.
1002 * configure: Regenerate.
1003 * aclocal.m4: Likewise.
1004 * config.h.in: Likewise.
1005 * Makefile.in: Likewise.
1006 * testsuite/Makefile.in: Likewise.
1008 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1010 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1011 __USER_LABEL_PREFIX__ for targets that use it.
1012 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1013 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1014 in portability to non-elf targets.
1015 (GTM_longjmp): Likewise.
1016 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1019 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1021 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1022 * testsuite/libitm.c/memset-1.c: Likewise.
1024 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1026 * configure: Regenerate.
1028 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1030 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1031 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1032 * Makefile.am: Handle sun style versioning.
1033 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1034 * configure: Regenerate.
1035 * Makefile.in: Regenerate.
1037 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1039 * config/generic/asmcfi.h: Fix comment.
1040 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1041 sequence without .hidden support, error for non-ELF targets.
1042 (GTM_longjmp) [__ELF__]: Only use .hidden if
1043 HAVE_ATTRIBUTE_VISIBILITY.
1045 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1047 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1048 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1050 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1051 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1053 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1056 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1057 * configure: Regenerate.
1059 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1061 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1063 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1067 (.note.GNU-stack): Only use if __linux__.
1068 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1069 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1070 * testsuite/libitm.c/reentrant.c: Likewise.
1071 * testsuite/libitm.c/simple-2.c: Likewise.
1072 * testsuite/libitm.c/txrelease.c: Likewise.
1073 * testsuite/libitm.c++/static_ctor.C: Likewise.
1075 2011-11-10 Richard Henderson <rth@redhat.com>
1077 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1078 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1079 * configure.ac (ARCH_X86_AVX): New conditional.
1080 * Makefile.in, configure: Rebuild.
1082 2011-11-09 Richard Henderson <rth@redhat.com>
1084 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1085 * configure.ac: Use it.
1086 * config.h.in, configure: Rebuild.
1087 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1089 2011-11-09 Richard Henderson <rth@redhat.com>
1091 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1092 * config/alpha/unaligned.h: Remove file.
1093 * config/generic/unaligned.h: Remove file.
1094 * config/x86/unaligned.h: Remove file.
1095 * config/generic/cachepage.h: Remove file.
1096 * config/posix/cachepage.cc: Remove file.
1097 * config/generic/cacheline.cc: Remove file.
1098 * config/x86/cacheline.cc: Remove file.
1099 * config/generic/cacheline.h (gtm_cacheline): Remove the
1100 store_mask, copy_mask, copy_mask_wb methods.
1101 * config/x86/cacheline.h: Likewise.
1102 * config/alpha/cacheline.h: Fall back to generic after setting size.
1103 * config/generic/tls.cc (gtm_mask_stack): Remove.
1104 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1105 (GTM_vpalignr_table): Remove.
1106 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1107 (GTM_pshift_table): Remove.
1108 * config/libitm_i.h: Don't include cachepage.h.
1109 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1110 * Makefile.in, testsuite/Makefile.in: Rebuild.
1112 2011-11-09 Richard Henderson <rth@redhat.com>
1114 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1115 to emit branch prediction hint.
1117 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1118 Protect .note.GNU-stack with __linux__.
1120 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1121 * configure, aclocal.m4, config.h.in: Rebuild.
1122 * config/generic/asmcfi.h: New file.
1123 * config/x86/sjlj.S: Use it.
1125 2011-11-08 Richard Henderson <rth@redhat.com>
1127 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1129 2011-11-08 Richard Henderson <rth@redhat.com>
1131 * configure.tgt: Test correct directory for supported cpus.
1133 * configure.ac: Exit if unsupported.
1134 * configure: Rebuild.
1135 * configure.tgt: Delete boilerplate from libgomp for unsupported
1136 targets. Set UNSUPPORTED for unsupported targets.
1138 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1140 * configure.tgt: Handle i386 like i[456]86.
1141 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1143 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1144 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1146 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1148 * method-wbetl.cc: Update copyright notice.
1154 * barrier.tpl: Same.
1155 * useraction.cc: Same.
1159 * config/generic/tls.cc: Same.
1160 * config/generic/cacheline.h: Same.
1161 * config/generic/cachepage.h: Same.
1162 * config/generic/cacheline.cc: Same.
1163 * config/generic/unaligned.h: Same.
1164 * config/x86/cacheline.h: Same.
1165 * config/x86/cacheline.cc: Same.
1166 * config/x86/unaligned.h: Same.
1167 * config/alpha/cacheline.h: Same.
1168 * config/alpha/unaligned.h: Same.
1169 * config/alpha/sjlj.S: Same.
1170 * config/posix/cachepage.cc: Same.
1171 * config/linux/futex.h: Same.
1172 * config/linux/alpha/futex_bits.h: Same.
1174 2011-11-04 Torvald Riegel <triegel@redhat.com>
1176 * libitm.texi: No cover text and invariant sections.
1178 2011-11-03 Richard Henderson <rth@redhat.com>
1180 * local_type_traits: New file.
1181 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1183 2011-11-03 Richard Henderson <rth@redhat.com>
1185 * configure.ac: Don't test for gfortran.
1186 * configure: Rebuild.
1188 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1189 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1191 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1193 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1194 * testsuite/libitm.c/memset-1.c: Same.
1195 * testsuite/libitm.c/c.exp: Same.
1196 * testsuite/lib/libitm-dg.exp: Same.
1197 * testsuite/lib/libitm.exp: Same.
1198 * testsuite/libitm.c++/c++.exp: Same.
1200 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1202 * testsuite/config/default.exp: Update copyright date.
1203 * configure.ac: Add copyright info.
1204 * configure.tgt: Same.
1206 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1208 * testsuite/libitm.c/reentrant.c: XFAIL.
1209 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1211 2011-10-29 Torvald Riegel <triegel@redhat.com>
1213 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1215 (_ITM_abortTransaction): Handle aborts of outer transactions.
1217 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1218 * libitm.texi: Document aborts of outer transactions.
1219 * testsuite/libitm.c/cancel.c: New file.
1221 2011-10-19 Torvald Riegel <triegel@redhat.com>
1223 * testsuite/*: Change __transaction to __transaction_atomic or
1224 __transaction_relaxed.
1226 2011-10-19 Torvald Riegel <triegel@redhat.com>
1228 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1231 2011-10-19 Torvald Riegel <triegel@redhat.com>
1233 * libitm_i.h: Add gl_wt dispatch.
1234 * retry.cc (parse_default_method): Same.
1235 * method-gl.cc: New file.
1236 * Makefile.am: Use method-gl.cc.
1237 * Makefile.in: Rebuild.
1239 2011-10-19 Torvald Riegel <triegel@redhat.com>
1241 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1242 safety if requested by a TM method.
1243 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1244 privatization safety.
1245 * method-serial.cc: Same.
1247 2011-10-19 Torvald Riegel <triegel@redhat.com>
1249 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1250 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1251 undolog-related member functions from *_local to *_undolog.
1252 * local.cc (gtm_thread::commit_undolog): Same.
1253 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1254 (GTM::gtm_thread::rollback): Roll back undolog before
1255 dispatch-specific rollback.
1257 2011-10-19 Torvald Riegel <triegel@redhat.com>
1259 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1260 re-initialization of the current method group.
1261 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1263 2011-10-19 Torvald Riegel <triegel@redhat.com>
1265 * alloc.cc (commit_allocations_2): Do not free transaction-local
1266 memory when committing a nested transaction.
1268 2011-10-19 Torvald Riegel <triegel@redhat.com>
1270 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1271 serial-irrevocable dispatch, not serial.
1273 2011-10-19 Torvald Riegel <triegel@redhat.com>
1275 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1277 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1278 * method-serial.cc: Implement begin_or_restart().
1279 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1280 dispatch-specific begin_or_restart().
1281 (GTM::gtm_thread::restart): Same.
1283 2011-08-23 Torvald Riegel <triegel@redhat.com>
1285 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1286 restarting without switching to serial mode.
1287 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1288 transaction state. Choose closed-nesting alternative if available.
1289 (GTM::gtm_thread::set_default_dispatch): New.
1290 (parse_default_method): New.
1291 (GTM::gtm_thread::number_of_threads_changed): New.
1292 * method-serial.cc (GTM::serial_mg): New method group class.
1293 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1295 (GTM::serial_dispatch): Same.
1296 (GTM::serialirr_onwrite_dispatch): Same.
1297 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1298 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1300 (GTM::gtm_thread::gtm_thread): Same.
1301 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1302 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1303 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1304 choose dispatch but set state according to dispatch here.
1305 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1306 (GTM::method_group): New class.
1307 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1308 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1309 * libitm.texi: Document TM methods, method groups, method life cycle.
1310 Rename method sets to method groups.
1312 2011-08-23 Torvald Riegel <triegel@redhat.com>
1314 * config/x86/tls.h: Moved to ...
1315 * config/linux/x86/tls.h: ... here.
1317 2011-08-23 Torvald Riegel <triegel@redhat.com>
1319 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1321 * config/x86/sjlj.S: Same.
1323 2011-08-19 Torvald Riegel <triegel@redhat.com>
1325 * config/linux/rwlock.h: New file.
1326 * config/linux/rwlock.c: New file.
1327 * configure.ac: Reenable futex support (undo SVN rev 157758).
1328 * Makefile.am: Same.
1329 * configure.tgt: Same.
1330 * config/linux/alpha/futex_bits.h: Same.
1331 * config/linux/futex.h: Same. Return number of woken processes.
1332 * config/linux/futex.cc: Same.
1333 (futex_wait): Remove spinning.
1334 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1335 Use __x86_64__ instead of __LP64__.
1336 * aclocal.m4: Include generic futex checks.
1337 * configure: Rebuild.
1338 * Makefile.in: Rebuild.
1339 * testsuite/Makefile.in: Rebuild.
1340 * beginend.cc: Include pthread.h.
1341 * config/posix/cachepage.cc: Same.
1343 2011-08-12 Torvald Riegel <triegel@redhat.com>
1345 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1346 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1348 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1350 (GTM::gtm_thread::thread_num): Removed.
1351 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1352 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1353 tx-to-thread renaming.
1354 * beginend.cc: Adapted to tx-to-thread renaming.
1355 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1356 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1357 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1358 gtm_transaction to gtm_thread.
1359 (_ITM_getThreadnum): Removed. Not supported anymore.
1360 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1361 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1362 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1363 gtm_tx-to-gtm_thr renaming if necessary.
1370 * alloc_cpp.cc: Same.
1371 * method-serial.cc: Same.
1372 * config/generic/tls.cc: Same.
1373 * config/posix/rwlock.h (gtm_rwlock): Same.
1374 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1376 2011-08-12 Torvald Riegel <triegel@redhat.com>
1378 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1380 (gtm_rwlock::read_unlock): Same.
1381 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1382 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1383 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1384 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1385 w_upgrade. Replaced by per-transaction flags (in shared_state).
1386 Added c_confirmed_writers.
1387 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1388 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1389 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1390 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1391 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1392 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1393 * libitm.texi: Document locking conventions and implementations in
1396 2011-08-12 Torvald Riegel <triegel@redhat.com>
1398 * libitm_i.h (next_tx): Add list of all threads' transaction.
1399 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1400 transaction with list of transactions and ...
1401 (thread_exit_handler): ... deregister here.
1402 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1403 * config/x86/target.h: Same.
1405 2011-08-12 Torvald Riegel <triegel@redhat.com>
1407 * testsuite/libitm.c++/static_ctor.C: New file.
1409 2011-08-12 Torvald Riegel <triegel@redhat.com>
1411 * testsuite/libitm.c/reentrant.c: New file.
1413 2011-08-12 Torvald Riegel <triegel@redhat.com>
1415 * config/generic/tls.h: Remove the free list for transactions and ...
1416 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1417 (GTM::gtm_transaction::operator delete): ... and release here.
1418 (thread_exit_handler): New. Delete tx when thread terminates.
1419 (thread_exit_init): New.
1420 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1421 * testsuite/libitm.c/txrelease.c: New file.
1423 2011-08-12 Torvald Riegel <triegel@redhat.com>
1425 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1426 * testsuite/libitm.c/notx.c: New file.
1428 2011-08-12 Torvald Riegel <triegel@redhat.com>
1430 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1431 * libitm_i.h (local_tid): ... to here.
1432 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1433 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1435 2011-08-12 Torvald Riegel <triegel@redhat.com>
1437 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1438 serialirr_onwrite_dispatch as new default for now.
1439 * method-serial.cc (serialirr_onwrite_dispatch): New.
1440 (GTM::dispatch_serialirr_onwrite): New.
1443 2011-08-12 Torvald Riegel <triegel@redhat.com>
1445 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1446 * query.cc (_ITM_getTransactionId): There is no active transaction if
1447 the current nesting level is zero.
1449 2011-07-28 Torvald Riegel <triegel@redhat.com>
1451 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1454 2011-07-28 Torvald Riegel <triegel@redhat.com>
1456 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1457 transaction properties from the caller instead of from the
1460 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1462 2011-07-28 Torvald Riegel <triegel@redhat.com>
1464 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1465 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1467 * method-serial.cc: Same.
1468 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1469 flat nesting as default, and closed nesting on demand.
1470 (GTM::gtm_transaction::rollback): Same.
1471 (_ITM_abortTransaction): Same.
1472 (GTM::gtm_transaction::restart): Same.
1473 (GTM::gtm_transaction::trycommit): Same.
1474 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1475 (choose_code_path): New.
1476 (GTM::gtm_transaction_cp::save): New.
1477 (GTM::gtm_transaction_cp::commit): New.
1478 * query.cc (_ITM_inTransaction): Support flat nesting.
1479 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1480 (GTM::gtm_transaction): Support flat and closed nesting.
1481 * alloc.cc (commit_allocations_2): New.
1482 (commit_cb_data): New helper struct.
1483 (GTM::gtm_transaction::commit_allocations): Handle nested
1485 * libitm.texi: Update user action section, add description of nesting.
1487 2011-07-28 Torvald Riegel <triegel@redhat.com>
1489 * libitm_i.h: Add closed nesting as restart reason.
1490 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1492 2011-07-28 Torvald Riegel <triegel@redhat.com>
1494 * useraction.cc: Use vector instead of list to store actions.
1495 Also support partial rollbacks for closed nesting.
1496 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1497 * beginend.cc: Same.
1499 2011-07-28 Torvald Riegel <triegel@redhat.com>
1501 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1502 closed_nesting flags, as well as a closed nesting alternative.
1503 * method-serial.cc: Same.
1504 (serial_dispatch): Renamed to serialirr_dispatch.
1505 (GTM::dispatch_serialirr): Same.
1506 (serial_dispatch_ul): Renamed to serial_dispatch.
1507 (GTM::dispatch_serial): Same.
1509 2011-07-28 Torvald Riegel <triegel@redhat.com>
1511 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1513 2011-07-28 Torvald Riegel <triegel@redhat.com>
1515 * aatree.h (aa_tree::remove): New.
1516 (aa_tree::operator new): Add placement new.
1518 2011-07-02 Torvald Riegel <triegel@redhat.com>
1520 * containers.h: New file.
1521 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1522 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1523 * common.h: ... to here.
1524 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1527 2011-06-30 Torvald Riegel <triegel@redhat.com>
1529 * libitm_i.h (STATE_ABORTING): Remove.
1530 * beginend.cc (_ITM_abortTransaction): Same.
1531 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1532 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1533 (_ITM_rollbackTransaction): Remove.
1534 * beginend.cc: Same.
1536 * libitm.texi: Document these ABI changes.
1538 2011-06-30 Torvald Riegel <triegel@redhat.com>
1540 * libitm.texi: New file.
1541 * Makefile.am: Add libitm.texi.
1542 * Makefile.in: Rebuild.
1544 2011-06-30 Torvald Riegel <triegel@redhat.com>
1546 * libitm_i.h: Move parts to common.h and dispatch.h.
1547 * common.h: New file.
1548 * dispatch.h: New file, new dispatch class.
1549 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1550 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1551 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1552 decision to retry.cc.
1553 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1555 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1556 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1558 * barrier.cc: Use new barriers definitions.
1559 (abi_dispatch::memmove_overlap_check): New.
1560 * config/x86/x86_sse.cc: Same.
1561 * config/x86/x86_avx.cc: Same.
1562 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1564 * Makefile.in: Rebuild.
1565 * method-readonly.cc: Remove.
1566 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1567 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1569 2011-06-30 Torvald Riegel <triegel@redhat.com>
1571 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1572 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1573 * testsuite/libitm.c/dropref-2.c: Same.
1574 * testsuite/libitm.c/dropref.c: Same.
1576 2011-06-30 Torvald Riegel <triegel@redhat.com>
1578 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1579 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1580 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1582 * barrier.tpl: Same.
1584 * config/generic/tls.h: Same.
1585 * config/x86/tls.h: Same.
1589 * method-readonly.cc: Same.
1590 * method-serial.cc: Same.
1591 * method-wbetl.cc: Same.
1594 2011-03-03 Richard Henderson <rth@redhat.com>
1596 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1597 From Patrik Marlier <patrick.marlier@unine.ch>.
1599 2011-02-03 Richard Henderson <rth@redhat.com>
1601 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1602 * configure.ac: Use it.
1603 * configure, config.h.in: Rebuild.
1604 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1605 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1606 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1607 * libitm.map: Use wildcards to match size_t mangling.
1609 2010-12-14 Richard Henderson <rth@redhat.com>
1611 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1612 blocks of TIDs per thread.
1613 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1614 (setup_gtm_thr): Return the thread structure.
1615 * config/x86/tls.h (setup_gtm_thr): Likewise.
1617 2010-12-14 Richard Henderson <rth@redhat.com>
1619 * clone.cc (table_lock): Remove.
1620 (find_clone): Don't take it.
1621 (ExcludeTransaction): New helper class.
1622 (_ITM_registerTMCloneTable): Use it.
1623 (_ITM_deregisterTMCloneTable): Likewise.
1625 2010-12-14 Richard Henderson <rth@redhat.com>
1627 * config/x86/tls.h: New file.
1629 2010-07-15 Richard Henderson <rth@redhat.com>
1631 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1632 * Makefile.in: Rebuild.
1634 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1636 * method-wbetl.cc (trydropreference): Fix source line.
1638 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1640 * libitm.h: Add comment.
1641 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1643 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1645 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1646 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1647 available, use pthread mutexes.
1648 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1649 * config.h.in: Regenerate.
1650 * configure: Regenerate.
1652 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1654 * libitm.h (ITM_PURE): Define.
1655 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1657 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1659 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1660 (validate): Add comment.
1661 (trydropreference): New.
1662 * method-readonly.cc (class readonly_dispatch): Add
1664 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1665 Call trydropreference().
1666 * libitm.h (_ITM_dropReferences): Remove const attribute.
1667 * method-serial.cc (class serial_dispatch): Add trydropreference.
1668 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1670 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1672 * memcpy.cc (do_memcpy): Comment.
1674 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1676 * barrier.tpl: Add comments throughout.
1678 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1680 * method-wbetl.cc (struct w_entry): Add comments.
1684 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1686 * alloc_c.cc (_ITM_dropReferences): New.
1687 * libitm.map (_ITM_dropReferences): Add.
1688 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1689 * libitm_i.h (struct gtm_transaction): Declare
1690 drop_references_allocations and drop_references_local.
1691 * local.cc (rollback_local): Ignore memory when applicable.
1692 (drop_references_local): New.
1694 2010-06-23 Richard Henderson <rth@redhat.com>
1696 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1697 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1698 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1699 * config/alpha/target.h: Likewise.
1700 * config/generic/tls.cc (gtm_mask_stack): Use it.
1702 2010-06-23 Richard Henderson <rth@redhat.com>
1704 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1705 a mutex instead of trying a lock-free compare-and-swap on the list.
1706 (gtm_cacheline_page::operator delete): Likewise.
1708 2010-06-16 Richard Henderson <rth@redhat.com>
1710 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1711 that overlap the libitm stack.
1712 * barrier.tpl: Mark incoming stack.
1713 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1714 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1715 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1716 * memcpy.cc, memset.cc: Likewise.
1717 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1718 * config/generic/tls.h (gtm_thread): Add stack_top member.
1719 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1720 * libitm_i.h (gtm_mask_stack): Declare.
1721 * config/generic/tls.cc: New file.
1722 * Makefile.am (libitm_la_SOURCES): Add it.
1723 (AM_CXXFLAGS): Turn off exceptions.
1724 * Makefile.in: Rebuild.
1726 2010-06-16 Richard Henderson <rth@redhat.com>
1728 * alloc.cc (struct gtm_alloc_action): Move definition ...
1729 * libitm_i.h: ... here.
1730 (class gtm_transaction): Declare new and delete.
1731 * beginend.cc (alloc_tx): Reformulate as operator new.
1732 (free_tx): Reformulate as operator delete.
1733 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1735 2010-06-11 Richard Henderson <rth@redhat.com>
1737 * clone.cc (clone_entry_compare): Fix typo.
1738 From Patrik Marlier <patrick.marlier@unine.ch>.
1740 2010-05-13 Richard Henderson <rth@redhat.com>
1742 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1745 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1747 * libitm_i.h (struct gtm_transaction): Remove
1748 get_allocation_size.
1749 (record_allocation): Remove size parameter.
1750 * libitm.map (_ITM_realloc): Remove.
1751 * alloc_c.cc (_ITM_realloc): Remove.
1752 (_ITM_malloc): Remove size argument to record_allocation.
1753 (_ITM_calloc): Same.
1754 * alloc_cpp.cc (_ZGTtnwm): Same.
1755 (_ZGTtnwmRKSt9nothrow_t): Same.
1757 (_ZGTtnamRKSt9nothrow_t): Same.
1758 * alloc.cc (struct gtm_alloc_action): Remove size.
1759 (get_allocation_size): Remove.
1760 (commit_allocations): Add comment.
1761 (record_allocation): Remove size parameter.
1762 (forget_allocation): Remove set of size.
1764 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1766 * Makefile.am (abi_version): New.
1767 (AM_CXXFLAGS): Pass abi_version.
1768 * Makefile.in: Regenerate.
1769 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1771 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1773 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1774 _ITM_getTMCloneOrIrrevokable.
1775 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1776 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1778 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1780 * configure.ac: Remove Linux futex support.
1781 * configure.tgt (config_path): Same.
1782 * Makefile.am: Same.
1783 * config/linux: Remove entire directory.
1784 * configure: Rebuild.
1785 * Makefile.in: Rebuild.
1786 * testsuite/Makefile.in: Rebuild.
1788 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1790 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1791 switching to serial mode.
1792 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1794 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1796 * configure.tgt: Add emacs -*- tags.
1797 * barrier.tpl: Same.
1799 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1801 * Makefile.am: Rename serial.cc to method-serial.cc.
1802 * Makefile.in: Regenerate with automake 1.11.1.
1803 * testsuite/Makefile.in: Same.
1804 * aclocal.m4: Regenerate with aclocal 1.11.1.
1805 * method-serial.cc: Rename from serial.cc.
1806 * libitm_i.h (struct gtm_transaction): Update comment on
1809 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1811 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1812 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1814 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1816 * configure: Rebuild.
1818 2009-11-12 Richard Henderson <rth@redhat.com>
1820 * Rewrite everything in C++.
1822 2009-11-03 Richard Henderson <rth@redhat.com>
1824 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1825 * Makefile.am (libitm_la_SOURCES): Add them.
1826 * configure.ac (ARCH_X86): New conditional.
1827 * Makefile.in, configure: Rebuild.
1828 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1829 Move futex setup into "other system configury" case.
1830 * local.c (rollback_local): Merge into ...
1831 (GTM_rollback_local): ... here.
1832 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1833 (_ITM_LB): Define as an alias to GTM_LB.
1835 2009-11-03 Richard Henderson <rth@redhat.com>
1837 * method-readonly.c: New file.
1838 * Makefile.am (libitm_la_SOURCES): Add it.
1839 * Makefile.in: Rebuild.
1840 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1841 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1842 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1843 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1844 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1845 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1846 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1847 gtm_get_clock, gtm_inc_clock): New.
1848 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1849 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1850 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1851 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1852 replace uses with new libitm_i.h symbols.
1853 (dispatch_wbetl): Rename from wbetl_dispatch.
1854 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1855 away from dispatch_readonly; abort if the beginTransaction call
1856 asserted that the transaction was readonly.
1858 2009-11-03 Richard Henderson <rth@redhat.com>
1860 * memset.c: New file.
1861 * Makefile.am (libitm_la_SOURCES): Add it.
1862 * Makefile.in: Rebuild.
1863 * testsuite/libitm.c/memset-1.c: New.
1865 2009-11-03 Richard Henderson <rth@redhat.com>
1867 * dispatch.c: Remove file.
1868 * useraction.c (struct gtm_user_action): Move from libitm.h.
1869 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1870 (serial_memset, serial_memmove, serial_memcpy): Remove.
1871 (serial_W*, serial_R*): Remove.
1872 (serial_dispatch): Update to match.
1873 * configure.ac: Move Werror down below configure checks. Don't
1874 check for sys/loadavg.h, do check for malloc.h. Don't check for
1875 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1876 Use GCC_AC_FUNC_MMAP_BLACKLIST
1877 * libitm.h: Split out all internal items to...
1878 * libitm_i.h: ... here. New file.
1879 * copymask.c: New file.
1880 * local.c (struct gtm_local_undo): Move from libitm.h.
1881 (GTM_alloc_local): Rename from alloc_local; export.
1882 * memcpy.c: New file.
1883 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1884 * config/posix/page.c: New file.
1885 * config/posix/target_tls.h: Remove file.
1886 * barrier.c: New file.
1887 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1889 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1890 * method-wbetl.c: Rewrite for new cacheline methods.
1891 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1893 * config/alpha/sjlj.S: Fix typo.
1894 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1895 * config/alpha/copymask.c: New file.
1896 * config/alpha/target.h (CACHELINE_SIZE): New.
1897 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1899 * config/x86/target_i.h: Copy functions from x86/target.h.
1900 * config/x86/copymask.c: New file.
1901 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1902 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1903 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1904 * config/x86/target_tls.h: Move contents to target_i.h.
1906 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1907 * testsuite/libitm.c/memcpy-1.c: New.
1909 2009-10-22 Richard Henderson <rth@redhat.com>
1911 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1912 (AM_CCASFLAGS): New.
1913 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1914 saving/restoring _AC_ARG_VAR_PRECIOUS.
1915 * Makefile.in, aclocal.m4, config.h.in, configure,
1916 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1918 2009-10-22 Richard Henderson <rth@redhat.com>
1920 * testsuite/*: Update for new compiler syntax.
1922 2009-10-21 Richard Henderson <rth@redhat.com>
1924 * libitm.h (_ITM_abortReason): Add outerAbort.
1926 2009-08-03 Richard Henderson <rth@redhat.com>
1928 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1929 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1930 * method-wbetl.c (struct w_entry): Remove mask.
1931 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1934 2009-07-22 Richard Henderson <rth@redhat.com>
1936 * eh_cpp.c: New file.
1937 * Makefile.am (libitm_la_SOURCES): Add it.
1938 * Makefile.in: Rebuild.
1939 * beginend.c (GTM_rollback_transaction): Undo exception state.
1940 (GTM_trycommit_transaction): Mark inline.
1941 (GTM_trycommit_and_finalize_transaction): Split out from ...
1942 (_ITM_commitTransaction): ... here.
1943 (_ITM_commitTransactionEH): New function.
1944 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1945 cxa_unthrown, eh_in_flight; reorder.
1947 * testsuite/libitm.c++/c++.exp: New.
1948 * testsuite/libitm.c++/eh-1.C: New.
1950 * aatree.c (aa_free): Remove REGPARM.
1951 * aatree.h: Remove all REGPARM.
1953 2009-07-18 Richard Henderson <rth@redhat.com>
1955 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1956 * Makefile.am (libitm_la_SOURCES): Add them.
1957 * Makefile.in: Rebuild.
1958 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1959 (GTM_trycommit_transaction): Likewise.
1960 * libitm.h: Include aatree.h
1961 (struct gtm_alloc_action): New.
1962 (struct gtm_transaction): Add alloc_actions.
1963 (GTM_record_allocation, GTM_forget_allocation): Declare.
1964 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1965 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1966 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1967 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1968 _ZGTtdaPvRKSt9nothrow_t): Export.
1970 2009-07-18 Richard Henderson <rth@redhat.com>
1972 * target_tls.h: Move ...
1973 * config/posix/target_tls.h: ... here.
1975 2009-07-07 Richard Henderson <rth@redhat.com>
1977 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1979 2009-07-07 Richard Henderson <rth@redhat.com>
1983 2009-07-07 Richard Henderson <rth@redhat.com>
1985 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1986 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1988 * configure.tgt: Don't use -ftls-model for x86 linux.
1989 * libitm.h: Include target.h after standard includes.
1990 (_gtm_thr): Rename from gtm_thr.
1991 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1992 (gtm_disp, set_gtm_disp): New.
1993 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1994 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1995 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1997 2009-07-07 Richard Henderson <rth@redhat.com>
1999 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2001 2009-07-06 Richard Henderson <rth@redhat.com>
2003 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2004 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2005 (_ITM_beginTransaction): Take variadic arguments.
2006 (_ITM_registerThrownObject): Declare.
2007 * beginend.c, serial.c: Update.
2008 * libitm.map: Add _ITM_registerThrownObject.
2010 2009-01-28 Richard Henderson <rth@redhat.com>
2012 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2013 * Makefile.in: Rebuild.
2014 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2015 (GTM_restart_transaction): Fix uninstrumented code check.
2016 * retry.c (GTM_decide_retry_strategy): Add serial check.
2017 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2018 automatically go irrevokable when in serial mode.
2019 * clone.c: New file.
2020 * libitm.h, libitm.map: Update.
2022 2009-01-27 Richard Henderson <rth@redhat.com>
2024 * Makefile.am (LTCCASCOMPILE): Define.
2025 (libitm_la_SOURCES): Add methid-wbetl.c.
2026 * testsuite/Makefile.am: New
2027 * configure.ac: Add testsuite/Makefile.
2028 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2029 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2030 (_ITM_abortTransaction): Finalize implementation method; pass
2031 transaction properties to longjmp.
2032 (GTM_restart_transaction): Split out from ...
2033 (_ITM_commitTransaction): ... here.
2034 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2035 Move to config/x86/target.h.
2036 * config/linux/alpha/futex_bits.h: New.
2037 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2038 * config/x86/target.h: Disable target types for 32-bit.
2039 * config/alpha/sjlj.S, config/alpha/target.h: New.
2040 * libitm.h (struct gtm_dispatch): Add init, fini.
2041 (enum restart_reason): New.
2042 (struct gtm_transaction): Add method and restarts.
2043 * retry.c (GTM_decide_retry_strategy): Implement.
2044 * serial.c (serial_init, serial_fini): New.
2045 (GTM_serialmode): Finialize outgoing method.
2046 * method-wbetl.c: New.
2048 2008-12-09 Richard Henderson <rth@redhat.com>
2050 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2051 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2052 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2053 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2054 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2055 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2056 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2057 * serial.c (serial_R##T, serial_W##T): Likewise.
2059 2008-11-21 Richard Henderson <rth@redhat.com>
2063 Copyright (C) 2008-2017 Free Software Foundation, Inc.
2065 Copying and distribution of this file, with or without modification,
2066 are permitted in any medium without royalty provided the copyright
2067 notice and this notice are preserved.