1 2017-01-04 Alan Modra <amodra@gmail.com>
3 * Makefile.in: Regenerate.
4 * testsuite/Makefile.in: Regenerate.
6 2017-01-01 Jakub Jelinek <jakub@redhat.com>
8 Update copyright years.
10 * libitm.texi: Bump @copying's copyright year.
12 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
15 * aclocal.m4: Regenerate.
16 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
17 LIBITM_CHECK_LINKER_HWCAP.
19 2016-11-15 Matthias Klose <doko@ubuntu.com>
21 * configure: Regenerate.
23 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26 * util.cc (xmalloc): Use posix_memalign to allocate memory on
27 on cache line if requested.
29 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
31 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
32 function attribute to disable floating point in begin_transaction() on
34 * beginend.cc (begin_transaction): Use
35 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
37 2016-01-22 Torvald Riegel <triegel@redhat.com>
39 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
41 (htm_fastpath): Remove.
42 (gtm_thread::begin_transaction): Fix HTM fastpath.
43 (_ITM_commitTransaction): Adapt.
44 (_ITM_commitTransactionEH): Adapt.
45 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
47 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
48 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
49 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
50 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
51 * libitm/method-serial.cc (htm_mg): Adapt.
52 (gtm_thread::serialirr_mode): Adapt.
53 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
55 2016-01-21 Torvald Riegel <triegel@redhat.com>
57 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
60 2016-01-19 Richard Henderson <rth@redhat.com>
65 2016-01-13 Richard Henderson <rth@redhat.com>
67 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
68 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
69 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
70 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
71 * configure.ac (ARCH_AARCH64): New conditional.
72 (ARCH_PPC, ARCH_S390): Likewise.
73 * Makefile.in, configure: Rebuild.
75 * libitm.h (_ITM_TYPE_M128): Always define.
76 * vect64.cc: Split ...
77 * vect128.cc: ... out of...
78 * config/x86/x86_sse.cc: ... here.
79 * config/arm/neon.cc: New file.
81 2016-01-19 Torvald Riegel <triegel@redhat.com>
83 * local_type_traits: Remove file.
84 * libitm_i.h: Don't include it anymore.
85 (sized_integral): Remove.
87 2016-01-16 Torvald Riegel <triegel@redhat.com>
89 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
91 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
92 * libitm/testsuite/libitm.c/priv-1.c: New.
94 2015-01-15 Torvald Riegel <triegel@redhat.com>
96 testsuite/libitm.c++/libstdc++-safeexc.C: New.
98 2016-01-13 Torvald Riegel <triegel@redhat.com>
100 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
101 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
102 (gtm_rwlock::write_unlock): Likewise.
104 2016-01-13 Richard Henderson <rth@redhat.com>
106 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
107 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
108 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
109 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
110 * configure.ac (ARCH_AARCH64): New conditional.
111 (ARCH_PPC, ARCH_S390): Likewise.
112 * Makefile.in, configure: Rebuild.
114 * libitm.h (_ITM_TYPE_M128): Always define.
115 * vect64.cc: Split ...
116 * vect128.cc: ... out of...
117 * config/x86/x86_sse.cc: ... here.
118 * config/arm/neon.cc: New file.
120 2016-01-13 Torvald Riegel <triegel@redhat.com>
122 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
123 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
124 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
125 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
126 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
127 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
128 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
129 (serialirr_dispatch::snapshot_most_recent): New.
130 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
132 2016-01-12 Torvald Riegel <triegel@redhat.com>
134 * libitm_i.h (gtm_mask_stack): Remove.
135 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
136 * stmlock.h: Remove file.
137 * config/alpha/cacheline.h: Likewise.
138 * config/generic/cacheline.h: Likewise.
139 * config/powerpc/cacheline.h: Likewise.
140 * config/sparc/cacheline.h: Likewise.
141 * config/x86/cacheline.h: Likewise.
143 2016-01-04 Jakub Jelinek <jakub@redhat.com>
145 Update copyright years.
147 * libitm.texi: Bump @copying's copyright year.
149 2015-11-26 Torvald Riegel <triegel@redhat.com>
151 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
152 (ml_wt_dispatch::pre_write): Adapt.
153 (ml_wt_dispatch::pre_load): Likewise.
155 2015-11-22 Torvald Riegel <triegel@redhat.com>
157 * libitm_i.h (gtm_alloc_action): Remove union.
158 * testsuite/libitm.c/alloc-1.c: New.
160 2015-11-19 Torvald Riegel <triegel@redhat.com>
162 * testsuite/libitm.c++/eh-5.C: New.
163 * libitm.h (_ITM_cxa_free_exception): New.
164 * libitm.map (_ITM_cxa_free_exception): Add it.
165 * libitm.texi: Update ABI docs.
166 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
167 (gtm_transaction_cp::cxa_uncaught_count): Add.
168 (gtm_thread::cxa_unthrown): Remove.
169 (gtm_thread::cxa_uncaught_count_ptr): Add.
170 (gtm_thread::cxa_uncaught_count): Add.
171 (gtm_thread::drop_references_allocations): Rename to...
172 (gtm_thread::discard_allocation): ... this and adapt.
173 (gtm_thread::init_cpp_exceptions): New.
174 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
175 (gtm_thread::begin_transaction): Likewise.
176 (gtm_transaction_cp::save): Likewise.
177 (gtm_thread::trycommit): Likewise.
178 * eh_cpp.cc: Add overview comments.
179 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
180 (free_any_exception, _ITM_cxa_free_exception): New.
181 (gtm_thread::init_cpp_exceptions): Define.
182 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
183 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
184 (gtm_thread::revert_cpp_exceptions): Likewise.
186 2015-11-09 Torvald Riegel <triegel@redhat.com>
188 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
189 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
190 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
191 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
192 (gtm_thread::forget_allocations): New overload with size_t argument.
193 * alloc.c (gtm_thread::forget_allocation): Define new overload and
195 (gtm_thread::record_allocation): Adapt.
196 (gtm_thread::commit_allocations_1): Adapt.
197 (gtm_thread::commit_allocations_2): Adapt.
198 * testsuite/libitm.c++/newdelete.C: New.
200 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
201 Joseph Myers <joseph@codesourcery.com>
202 Mark Shinwell <shinwell@codesourcery.com>
203 Andrew Stubbs <ams@codesourcery.com>
204 Rich Felker <dalias@libc.org>
206 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
207 GTM_begin_transaction for compatibility with FDPIC.
209 2015-10-09 David Malcolm <dmalcolm@redhat.com>
211 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
214 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
217 * local_atomic (__always_inline): Rename to...
218 (__libitm_always_inline): ... this.
220 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
223 * config/powerpc/sjlj.S: Port to Xcode 2.5.
225 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
227 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
228 operands "op" and "val" to int.
230 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
232 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
233 "op" and "val" to int.
235 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
237 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
238 "op" and "val" to int.
240 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
242 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
243 Declare as static int.
244 (FUTEX_PRIVATE_FLAG): Remove L suffix.
245 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
247 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
249 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
252 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
254 * Makefile.in: Regenerated with automake-1.11.6.
255 * aclocal.m4: Likewise.
256 * configure: Likewise.
257 * testsuite/Makefile.in: Likewise.
259 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
261 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
262 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
264 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
267 * libitm.c/stackundo.c (test2): Make it static.
270 2015-01-05 Jakub Jelinek <jakub@redhat.com>
272 Update copyright years.
274 2015-01-05 Jakub Jelinek <jakub@redhat.com>
276 * libitm.texi: Bump @copying's copyright year.
278 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
280 * testsuite/lib/libitm.exp: Load target-utils.exp.
281 Move load of target-supports.exp earlier.
283 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
285 * configure.tgt (x86_64): Tune -m32 multilib to generic.
287 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
290 * configure: Regenerated.
292 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
295 * configure: Regenerate.
297 2014-10-06 Marek Polacek <polacek@redhat.com>
299 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
300 * testsuite/libitm.c/memset-1.c: Likewise.
302 2014-07-24 Richard Henderson <rth@redhat.com>
304 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
305 addressing mode in epilogue.
307 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
309 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
310 -mclear-hwcap instead.
311 * configure: Regenerate.
312 * clearcap.map: Remove.
314 2014-05-21 John Marino <gnugcc@marino.st>
316 * configure.tgt (*-*-dragonfly*): New target.
318 2014-05-19 Richard Henderson <rth@redhat.com>
320 * config/aarch64/sjlj.S: New file.
321 * config/aarch64/target.h: New file.
322 * configure.tgt: Enable aarch64.
324 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * config/generic/asmcfi.h: Also check for
327 __GCC_HAVE_DWARF2_CFI_ASM.
329 2013-04-02 Richard Henderson <rth@redhat.com>
331 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
332 * config/arm/target.h, config/sh/target.h: Likewise.
333 * config/sparc/target.h, config/x86/target.h: Likewise.
335 2014-03-26 Jakub Jelinek <jakub@redhat.com>
337 * config/linux/futex_bits.h: Include errno.h.
338 (sys_futex0): If syscall returns -1, return -errno rather than
341 2014-03-26 Joseph Myers <joseph@codesourcery.com>
343 * libitm.texi (Index): Rename to Library Index.
345 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
348 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
349 (x86_avx.lo): Append -mavx to CXXFLAGS.
350 * Makefile.in: Regenerate.
352 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
354 Update copyright years
356 2014-01-02 Tobias Burnus <burnus@net-b.de>
358 * libitm.texi: Bump @copying's copyright year.
360 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
362 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
363 (FUNC): Define ELFv2 variant.
370 2013-09-20 Alan Modra <amodra@gmail.com>
372 * configure: Regenerate.
374 2013-08-30 Torvald Riegel <triegel@redhat.com>
376 * config/posix/rwlock.cc: Fix initialization order.
378 2013-08-30 Torvald Riegel <triegel@redhat.com>
380 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
381 (htm_fastpath): Assign an asm name.
382 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
384 (_ITM_actions): Likewise.
385 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
387 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
388 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
389 field to the start of the structure.
390 * config/linux/rwlock.h (gtm_rwlock): Update comments.
391 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
392 handling for custom HTM fast paths.
394 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
396 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
398 * configure.tgt: Add -msoft-float to XCFLAGS.
400 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
402 * configure.tgt: Add -msoft-float to XCFLAGS.
404 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
406 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
407 (htm_transaction_active): Enable zEC12 instructions in the
409 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
411 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
413 * acinclude.m4: Add htm asm check for s390.
414 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
415 * configure: Regenerate.
416 * config/s390/target.h: Remove __HTM__ check.
417 (htm_available): Call getauxval to get hwcaps and check whether
418 HTM is available or not.
420 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
422 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
423 * configure.ac: Use it.
424 (AC_CHECK_HEADERS): Check for sys/auxv.h.
425 (AC_CHECK_FUNCS): Check for getauxval.
426 * config.h.in, configure: Rebuild.
427 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
428 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
429 (USE_HTM_FASTPATH): Define.
430 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
431 _HTM_RETRIES) New macros.
432 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
433 htm_begin_success, htm_commit, htm_transaction_active): New functions.
435 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
437 * config/s390/target.h: Include htmintrin.h.
438 (_HTM_ITM_RETRIES): New macro definition.
439 (htm_available, htm_init, htm_begin, htm_begin_success)
440 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
442 2013-06-20 Iain Sandoe <iain@codesourcery.com>
443 Cesar Philippidis <cesar@codesourcery.com>
445 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
446 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
447 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
448 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
450 2013-06-20 Torvald Riegel <triegel@redhat.com>
452 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
453 (_ITM_getTransactionId): Same.
454 * config/x86/target.h (htm_transaction_active): New.
456 2013-06-20 Torvald Riegel <triegel@redhat.com>
459 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
462 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
465 * local_atomic (__always_inline): Always define our version.
466 (__calculate_memory_order): Mark inline.
467 (atomic_thread_fence): Ditto.
468 (atomic_signal_fence): Ditto.
469 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
470 (atomic_bool::atomic_flag_clear_explicit): Ditto.
471 (atomic_bool::atomic_flag_test_and_set): Ditto.
472 (atomic_bool::atomic_flag_clear): Ditto.
474 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
476 * config/s390/sjlj.S: New file.
477 * config/s390/target.h: New file.
478 * configure.tgt: Set options for S/390.
480 2013-03-23 Andi Kleen <ak@linux.intel.com>
482 * local_atomic (__always_inline): Add.
483 (__calculate_memory_order, atomic_thread_fence,
484 atomic_signal_fence, test_and_set, clear, store, load,
485 exchange, compare_exchange_weak, compare_exchange_strong,
486 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
487 Add __always_inline to force inlining.
489 2013-02-11 Iain Sandoe <iain@codesourcery.com>
490 Jack Howarth <howarth@bromo.med.uc.edu>
491 Patrick Marlier <patrick.marlier@gmail.com>
494 * alloc_cpp.cc: Enable function declarations on darwin.
495 * eh_cpp.cc: Likewise.
497 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
499 Update copyright years.
501 2012-11-09 Torvald Riegel <triegel@redhat.com>
503 * beginend.cc (htm_fastpath): New.
504 (gtm_thread::begin_transaction, _ITM_commitTransaction,
505 _ITM_commitTransactionEH): Add HTM fastpath handling.
506 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
507 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
508 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
509 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
510 * configure.tgt: Add -mrtm to XCFLAGS.
511 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
512 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
513 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
514 * retry.cc (parse_default_method): Add HTM method parsing.
515 (gtm_thread::number_of_threads_changed): Use HTM by default if
518 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
520 * configure: Regenerate.
522 2012-10-31 Richard Henderson <rth@redhat.com>
524 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
525 * configure.ac: Use it.
526 * config.h.in, configure: Rebuild.
527 * testsuite/Makefile.in: Rebuild.
529 2012-10-24 Torvald Riegel <triegel@redhat.com>
531 * libitm.texi: Clarify ABI requirements for data-logging functions.
533 2012-10-24 Torvald Riegel <triegel@redhat.com>
535 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
536 it requires serial mode instead of assuming that for certain
538 * dispatch.h (abi_dispatch::requires_serial): New.
539 (abi_dispatch::abi_dispatch): Adapt.
540 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
541 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
542 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
543 serial_dispatch::serial_dispatch,
544 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
546 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
548 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
549 and ia32 declarations some more.
550 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
552 2012-09-20 Jakub Jelinek <jakub@redhat.com>
555 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
556 * configure: Regenerate.
557 * Makefile.in: Regenerate.
559 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
561 * configure: Regenerated.
563 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
565 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
567 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
569 * eh_cpp.cc: Fix __cxa_end_catch declaration.
571 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
573 * configure: Regenerated.
575 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
578 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
581 2012-04-03 Tristan Gingold <gingold@adacore.com>
583 * configure: Regenerate.
585 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
588 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
590 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
592 * testsuite/lib/libitm.exp: load fortran-modules.exp
594 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
596 * configure.tgt (*-*-irix6*): Remove.
598 2012-03-13 Torvald Riegel <triegel@redhat.com>
601 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
604 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
606 * configure.tgt (*-*-osf*): Remove.
607 * configure: Regenerate.
609 2012-03-05 Torvald Riegel <triegel@redhat.com>
611 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
612 memtransfer/memset if size isn't larger than zero.
614 2012-03-02 Torvald Riegel <triegel@redhat.com>
616 * libitm.texi: Link to specification and add a usage example.
618 2012-02-24 Torvald Riegel <triegel@redhat.com>
620 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
621 default dispatch for more than 1 thread to ml_wt.
623 2012-02-20 Torvald Riegel <triegel@redhat.com>
625 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
627 2012-02-20 Torvald Riegel <triegel@redhat.com>
629 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
631 2012-02-20 Torvald Riegel <triegel@redhat.com>
633 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
634 serial mode corner cases made obsolete by prior gtm_rwlock changes.
635 (gl_wt_dispatch.rollback): Same.
637 2012-02-20 Torvald Riegel <triegel@redhat.com>
639 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
641 2012-02-20 Torvald Riegel <triegel@redhat.com>
643 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
644 for RfW src. Optimize number of calls to gtm_thr.
646 2012-02-20 Torvald Riegel <triegel@redhat.com>
648 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
650 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
651 (default_dispatch): Make atomic.
652 (GTM::gtm_thread::set_default_dispatch): Access atomically.
653 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
654 use decide_begin_dispatch() if default_dispatch might have changed.
655 (GTM::gtm_thread::number_of_threads_changed): Initialize
656 default_dispatch here.
658 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
659 Patrick Marlier <patrick.marlier@gmail.com>
662 * alloc_cpp.cc: No dummy definitions for darwin.
663 * eh_cpp.cc: Likewise.
665 2012-02-14 Richard Henderson <rth@redhat.com>
667 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
669 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
671 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
673 2012-02-14 Torvald Riegel <triegel@redhat.com>
675 * libitm_i.h (GTM::gtm_rwlog_entry): New.
676 (GTM::gtm_thread): Add read and write logs.
677 (GTM::dispatch_ml_wt): Declare.
678 * retry.cc (parse_default_method): Support ml_wt.
679 * method-ml.cc: New file.
680 * Makefile.am: Add method-ml.cc.
681 * Makefile.in: Regenerate.
683 2012-02-14 Torvald Riegel <triegel@redhat.com>
685 * dispatch.h (GTM::abi_dispatch::supports): New.
686 (GTM::method_group::reinit): New.
687 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
688 (GTM::gtm_thread::number_of_threads_changed): Check that the method
689 supports the current situation.
691 2012-02-14 Torvald Riegel <triegel@redhat.com>
693 * util.cc (GTM::xcalloc): New.
694 * common.h (GTM::xcalloc): Declare.
696 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
698 * config/sparc/target.h (cpu_relax): Read from CC register.
699 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
701 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
703 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
705 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
707 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
708 * config/sparc/cacheline.h: New file.
709 * config/sparc/target.h: Likewise.
710 * config/sparc/sjlj.S: Likewise.
711 * config/linux/sparc/futex_bits.h: Likewise.
713 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
715 * configure.ac (link_itm): Fix comment.
716 * configure: Regenerate.
717 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
719 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
722 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
723 Correct libgomp references.
725 2012-01-24 Torvald Riegel <triegel@redhat.com>
727 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
730 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
732 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
734 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
735 offset values. Do not copy return address. Decrement stack
737 (GTM_longjump) [__x86_64__]: Update offset values.
739 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
742 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
743 the first function argument to %eax.
745 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
747 * libitm.h (_ITM_getThreadnum): Remove.
748 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
750 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
752 * clearcap.map: New file.
753 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
754 * configure.ac: Call it.
755 Clear HWCAP_LDFLAGS if defaulting to -mavx.
756 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
757 * configure: Regenerate.
758 * Makefile.in: Regenerate.
759 * testsuite/Makefile.in: Regenerate.
761 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
764 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
765 include, exclude options.
767 2012-01-14 Torvald Riegel <triegel@redhat.com>
769 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
771 * containers.h (GTM::vector::set_size): New.
773 2012-01-14 Torvald Riegel <triegel@redhat.com>
776 * config/generic/tls.h (GTM::mask_stack_top): New.
777 (GTM::mask_stack_bottom): Declare.
778 * config/generic/tls.c (GTM::mask_stack_bottom): New.
779 * local.cc (gtm_undolog::rollback): Filter out any updates that
780 overlap the libitm stack. Add current transaction as parameter.
781 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
782 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
783 * testsuite/libitm.c/stackundo.c: New test.
785 2012-01-10 Richard Henderson <rth@redhat.com>
787 * libitm_i.h (_Unwind_DeleteException): Declare weak.
788 * eh_cpp.cc (_Unwind_DeleteException): Define for
789 !HAVE_ELF_STYLE_WEAKREF.
791 2012-01-08 Torvald Riegel <triegel@redhat.com>
793 * local.cc (GTM_LB): Use GTM::gtm_undolog.
794 (GTM::gtm_thread::drop_references_undolog): Remove.
795 (GTM::gtm_thread::commit_undolog,
796 GTM::gtm_thread::rollback_undolog): Move to ...
797 * libitm_i.h (GTM::gtm_undolog): ...here. New.
798 (GTM::gtm_undolog_entry): Remove.
799 (GTM::gtm_thread): Adapt.
800 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
801 (GTM::gtm_thread::trycommit): Adapt.
802 * method-serial.cc (serial_dispatch::log): Adapt.
803 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
804 (gl_wt_dispatch::store): Fix likely/unlikely.
805 * containers.h (GTM::vector::resize): Add additional_capacity
806 parameter and handle it.
807 (GTM::vector::resize_noinline): New/adapt.
808 (GTM::vector::push): New.
810 2012-01-06 Richard Henderson <rth@redhat.com>
812 * configure.tgt: Support powerpc-linux and powerpc-darwin.
813 * config/linux/powerpc/futex_bits.h: New file.
814 * config/powerpc/cacheline.h: New file.
815 * config/powerpc/sjlj.S: New file.
816 * config/powerpc/target.h: New file.
817 * config/generic/asmcfi.h (cfi_offset): New.
818 (cfi_restore, cfi_undefined): New.
820 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
823 * testsuite/libitm.c/reentrant.c: Remove xfail.
824 (thread): Pass x to pure().
825 From Patrik Marlier <patrick.marlier@gmail.com>.
827 2011-12-24 Torvald Riegel <triegel@redhat.com>
829 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
830 privatization safety if already in serial mode.
832 2011-12-24 Torvald Riegel <triegel@redhat.com>
834 * beginend.cc (GTM::gtm_thread::restart): Add and handle
835 finish_serial_upgrade parameter.
836 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
837 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
838 Don't unset reader flag.
839 (GTM::gtm_rwlock::write_upgrade_finish): New.
840 * config/posix/rwlock.cc: Same.
841 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
843 * config/posix/rwlock.h: Same.
844 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
845 flag after commit or after rollback when restarting.
847 2011-12-24 Torvald Riegel <triegel@redhat.com>
849 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
850 (GTM::gtm_thread::try_commit): Changed memory order.
851 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
853 * config/linux/x86/futex_bits.h (sys_futex0): Same.
854 * config/linux/sh/futex_bits.h (sys_futex0): Same.
855 * config/linux/futex_bits.h (sys_futex0): Same.
856 * config/linux/futex.cc (futex_wait, futex_wake): Same.
857 * config/linux/futex.h (futex_wait, futex_wake): Same.
858 * config/linux/rwlock.h (gtm_rwlock::writers,
859 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
861 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
862 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
863 gtm_rwlock::write_unlock): Fix memory orders and fences.
864 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
865 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
866 gtm_rwlock::write_unlock): Same.
867 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
868 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
869 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
871 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
872 gl_wt_dispatch::load, gl_wt_dispatch::store,
873 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
874 orders and fences. Add comments.
876 2011-12-21 Jakub Jelinek <jakub@redhat.com>
878 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
879 * Makefile.in: Regenerated.
881 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
883 * configure.tgt: Add sh* case.
884 * config/sh/target.h: New file.
885 * config/sh/sjlj.S: New file.
886 * config/linux/sh/futex_bits.h: New file.
888 2011-12-14 Richard Henderson <rth@redhat.com>
890 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
891 * config/arm/sjlj.S, config/arm/target.h: New files.
892 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
893 (cfi_rel_offset): New.
894 * config/linux/futex_bits.h: New file.
895 * config/linux/futex.cc: Include futex_bits.h here...
896 * config/linux/futex.h: ... not here.
897 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
898 * configure.ac (ARCH_AM): New conditional.
899 * Makefile.in, configure: Rebuild.
900 * configure.tgt: Handle ARM.
902 2011-12-13 Richard Henderson <rth@redhat.com>
904 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
905 signed/unsigned comparison werror.
907 * local_atomic: New file.
908 * libitm_i.h: Include it.
909 (gtm_thread::shared_state): Use atomic template.
910 * beginend.cc (GTM::gtm_clock): Use atomic template.
911 (global_tid): Use atomic template if 64-bit atomics available.
912 (gtm_thread::gtm_thread): Update shared_state access.
913 (gtm_thread::trycommit): Likewise.
914 (choose_code_path): Update global_tid access.
915 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
916 * stmlock.h (GTM::gtm_clock): Use atomic template.
917 (gtm_get_clock, gtm_inc_clock): Update accesses.
918 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
919 redundant __sync_synchronize after atomic shared_state access.
920 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
921 (gtm_rwlock::write_lock_generic): Likewise.
922 (gtm_rwlock::read_unlock): Likewise.
923 * config/alpha/target.h (atomic_read_barrier): Remove.
924 (atomic_write_barrier): Remove.
925 * config/x86/target.h (atomic_read_barrier): Remove.
926 (atomic_write_barrier): Remove.
928 2011-11-30 Richard Henderson <rth@redhat.com>
930 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
931 * beginend.c (_ITM_abortTransaction): Update to match.
932 (GTM::gtm_thread::restart): Likewise.
933 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
934 * config/x86/sjlj.S (GTM_longjmp): Likewise.
936 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
938 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
939 * Makefile.in: Regenerate.
941 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
943 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
944 * alloc_cpp.cc: Generate dummy functions if we don't
945 HAVE_ELF_STYLE_WEAKREF.
946 * eh_cpp.cc: Likewise.
947 * configure: Regenerate.
948 * aclocal.m4: Likewise.
949 * config.h.in: Likewise.
950 * Makefile.in: Likewise.
951 * testsuite/Makefile.in: Likewise.
953 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
955 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
956 __USER_LABEL_PREFIX__ for targets that use it.
957 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
958 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
959 in portability to non-elf targets.
960 (GTM_longjmp): Likewise.
961 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
964 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
966 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
967 * testsuite/libitm.c/memset-1.c: Likewise.
969 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
971 * configure: Regenerate.
973 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
975 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
976 (LIBITM_ENABLE_SYMVERS): Handle sun style.
977 * Makefile.am: Handle sun style versioning.
978 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
979 * configure: Regenerate.
980 * Makefile.in: Regenerate.
982 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
984 * config/generic/asmcfi.h: Fix comment.
985 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
986 sequence without .hidden support, error for non-ELF targets.
987 (GTM_longjmp) [__ELF__]: Only use .hidden if
988 HAVE_ATTRIBUTE_VISIBILITY.
990 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
993 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
995 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
996 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
998 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1001 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1002 * configure: Regenerate.
1004 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1006 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1008 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1010 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1012 (.note.GNU-stack): Only use if __linux__.
1013 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1014 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1015 * testsuite/libitm.c/reentrant.c: Likewise.
1016 * testsuite/libitm.c/simple-2.c: Likewise.
1017 * testsuite/libitm.c/txrelease.c: Likewise.
1018 * testsuite/libitm.c++/static_ctor.C: Likewise.
1020 2011-11-10 Richard Henderson <rth@redhat.com>
1022 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1023 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1024 * configure.ac (ARCH_X86_AVX): New conditional.
1025 * Makefile.in, configure: Rebuild.
1027 2011-11-09 Richard Henderson <rth@redhat.com>
1029 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1030 * configure.ac: Use it.
1031 * config.h.in, configure: Rebuild.
1032 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1034 2011-11-09 Richard Henderson <rth@redhat.com>
1036 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1037 * config/alpha/unaligned.h: Remove file.
1038 * config/generic/unaligned.h: Remove file.
1039 * config/x86/unaligned.h: Remove file.
1040 * config/generic/cachepage.h: Remove file.
1041 * config/posix/cachepage.cc: Remove file.
1042 * config/generic/cacheline.cc: Remove file.
1043 * config/x86/cacheline.cc: Remove file.
1044 * config/generic/cacheline.h (gtm_cacheline): Remove the
1045 store_mask, copy_mask, copy_mask_wb methods.
1046 * config/x86/cacheline.h: Likewise.
1047 * config/alpha/cacheline.h: Fall back to generic after setting size.
1048 * config/generic/tls.cc (gtm_mask_stack): Remove.
1049 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1050 (GTM_vpalignr_table): Remove.
1051 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1052 (GTM_pshift_table): Remove.
1053 * config/libitm_i.h: Don't include cachepage.h.
1054 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1055 * Makefile.in, testsuite/Makefile.in: Rebuild.
1057 2011-11-09 Richard Henderson <rth@redhat.com>
1059 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1060 to emit branch prediction hint.
1062 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1063 Protect .note.GNU-stack with __linux__.
1065 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1066 * configure, aclocal.m4, config.h.in: Rebuild.
1067 * config/generic/asmcfi.h: New file.
1068 * config/x86/sjlj.S: Use it.
1070 2011-11-08 Richard Henderson <rth@redhat.com>
1072 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1074 2011-11-08 Richard Henderson <rth@redhat.com>
1076 * configure.tgt: Test correct directory for supported cpus.
1078 * configure.ac: Exit if unsupported.
1079 * configure: Rebuild.
1080 * configure.tgt: Delete boilerplate from libgomp for unsupported
1081 targets. Set UNSUPPORTED for unsupported targets.
1083 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085 * configure.tgt: Handle i386 like i[456]86.
1086 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1088 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1089 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1091 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1093 * method-wbetl.cc: Update copyright notice.
1099 * barrier.tpl: Same.
1100 * useraction.cc: Same.
1104 * config/generic/tls.cc: Same.
1105 * config/generic/cacheline.h: Same.
1106 * config/generic/cachepage.h: Same.
1107 * config/generic/cacheline.cc: Same.
1108 * config/generic/unaligned.h: Same.
1109 * config/x86/cacheline.h: Same.
1110 * config/x86/cacheline.cc: Same.
1111 * config/x86/unaligned.h: Same.
1112 * config/alpha/cacheline.h: Same.
1113 * config/alpha/unaligned.h: Same.
1114 * config/alpha/sjlj.S: Same.
1115 * config/posix/cachepage.cc: Same.
1116 * config/linux/futex.h: Same.
1117 * config/linux/alpha/futex_bits.h: Same.
1119 2011-11-04 Torvald Riegel <triegel@redhat.com>
1121 * libitm.texi: No cover text and invariant sections.
1123 2011-11-03 Richard Henderson <rth@redhat.com>
1125 * local_type_traits: New file.
1126 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1128 2011-11-03 Richard Henderson <rth@redhat.com>
1130 * configure.ac: Don't test for gfortran.
1131 * configure: Rebuild.
1133 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1134 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1136 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1138 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1139 * testsuite/libitm.c/memset-1.c: Same.
1140 * testsuite/libitm.c/c.exp: Same.
1141 * testsuite/lib/libitm-dg.exp: Same.
1142 * testsuite/lib/libitm.exp: Same.
1143 * testsuite/libitm.c++/c++.exp: Same.
1145 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1147 * testsuite/config/default.exp: Update copyright date.
1148 * configure.ac: Add copyright info.
1149 * configure.tgt: Same.
1151 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1153 * testsuite/libitm.c/reentrant.c: XFAIL.
1154 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1156 2011-10-29 Torvald Riegel <triegel@redhat.com>
1158 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1160 (_ITM_abortTransaction): Handle aborts of outer transactions.
1162 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1163 * libitm.texi: Document aborts of outer transactions.
1164 * testsuite/libitm.c/cancel.c: New file.
1166 2011-10-19 Torvald Riegel <triegel@redhat.com>
1168 * testsuite/*: Change __transaction to __transaction_atomic or
1169 __transaction_relaxed.
1171 2011-10-19 Torvald Riegel <triegel@redhat.com>
1173 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1176 2011-10-19 Torvald Riegel <triegel@redhat.com>
1178 * libitm_i.h: Add gl_wt dispatch.
1179 * retry.cc (parse_default_method): Same.
1180 * method-gl.cc: New file.
1181 * Makefile.am: Use method-gl.cc.
1182 * Makefile.in: Rebuild.
1184 2011-10-19 Torvald Riegel <triegel@redhat.com>
1186 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1187 safety if requested by a TM method.
1188 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1189 privatization safety.
1190 * method-serial.cc: Same.
1192 2011-10-19 Torvald Riegel <triegel@redhat.com>
1194 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1195 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1196 undolog-related member functions from *_local to *_undolog.
1197 * local.cc (gtm_thread::commit_undolog): Same.
1198 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1199 (GTM::gtm_thread::rollback): Roll back undolog before
1200 dispatch-specific rollback.
1202 2011-10-19 Torvald Riegel <triegel@redhat.com>
1204 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1205 re-initialization of the current method group.
1206 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1208 2011-10-19 Torvald Riegel <triegel@redhat.com>
1210 * alloc.cc (commit_allocations_2): Do not free transaction-local
1211 memory when committing a nested transaction.
1213 2011-10-19 Torvald Riegel <triegel@redhat.com>
1215 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1216 serial-irrevocable dispatch, not serial.
1218 2011-10-19 Torvald Riegel <triegel@redhat.com>
1220 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1222 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1223 * method-serial.cc: Implement begin_or_restart().
1224 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1225 dispatch-specific begin_or_restart().
1226 (GTM::gtm_thread::restart): Same.
1228 2011-08-23 Torvald Riegel <triegel@redhat.com>
1230 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1231 restarting without switching to serial mode.
1232 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1233 transaction state. Choose closed-nesting alternative if available.
1234 (GTM::gtm_thread::set_default_dispatch): New.
1235 (parse_default_method): New.
1236 (GTM::gtm_thread::number_of_threads_changed): New.
1237 * method-serial.cc (GTM::serial_mg): New method group class.
1238 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1240 (GTM::serial_dispatch): Same.
1241 (GTM::serialirr_onwrite_dispatch): Same.
1242 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1243 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1245 (GTM::gtm_thread::gtm_thread): Same.
1246 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1247 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1248 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1249 choose dispatch but set state according to dispatch here.
1250 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1251 (GTM::method_group): New class.
1252 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1253 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1254 * libitm.texi: Document TM methods, method groups, method life cycle.
1255 Rename method sets to method groups.
1257 2011-08-23 Torvald Riegel <triegel@redhat.com>
1259 * config/x86/tls.h: Moved to ...
1260 * config/linux/x86/tls.h: ... here.
1262 2011-08-23 Torvald Riegel <triegel@redhat.com>
1264 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1266 * config/x86/sjlj.S: Same.
1268 2011-08-19 Torvald Riegel <triegel@redhat.com>
1270 * config/linux/rwlock.h: New file.
1271 * config/linux/rwlock.c: New file.
1272 * configure.ac: Reenable futex support (undo SVN rev 157758).
1273 * Makefile.am: Same.
1274 * configure.tgt: Same.
1275 * config/linux/alpha/futex_bits.h: Same.
1276 * config/linux/futex.h: Same. Return number of woken processes.
1277 * config/linux/futex.cc: Same.
1278 (futex_wait): Remove spinning.
1279 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1280 Use __x86_64__ instead of __LP64__.
1281 * aclocal.m4: Include generic futex checks.
1282 * configure: Rebuild.
1283 * Makefile.in: Rebuild.
1284 * testsuite/Makefile.in: Rebuild.
1285 * beginend.cc: Include pthread.h.
1286 * config/posix/cachepage.cc: Same.
1288 2011-08-12 Torvald Riegel <triegel@redhat.com>
1290 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1291 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1293 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1295 (GTM::gtm_thread::thread_num): Removed.
1296 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1297 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1298 tx-to-thread renaming.
1299 * beginend.cc: Adapted to tx-to-thread renaming.
1300 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1301 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1302 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1303 gtm_transaction to gtm_thread.
1304 (_ITM_getThreadnum): Removed. Not supported anymore.
1305 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1306 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1307 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1308 gtm_tx-to-gtm_thr renaming if necessary.
1315 * alloc_cpp.cc: Same.
1316 * method-serial.cc: Same.
1317 * config/generic/tls.cc: Same.
1318 * config/posix/rwlock.h (gtm_rwlock): Same.
1319 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1321 2011-08-12 Torvald Riegel <triegel@redhat.com>
1323 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1325 (gtm_rwlock::read_unlock): Same.
1326 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1327 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1328 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1329 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1330 w_upgrade. Replaced by per-transaction flags (in shared_state).
1331 Added c_confirmed_writers.
1332 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1333 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1334 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1335 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1336 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1337 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1338 * libitm.texi: Document locking conventions and implementations in
1341 2011-08-12 Torvald Riegel <triegel@redhat.com>
1343 * libitm_i.h (next_tx): Add list of all threads' transaction.
1344 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1345 transaction with list of transactions and ...
1346 (thread_exit_handler): ... deregister here.
1347 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1348 * config/x86/target.h: Same.
1350 2011-08-12 Torvald Riegel <triegel@redhat.com>
1352 * testsuite/libitm.c++/static_ctor.C: New file.
1354 2011-08-12 Torvald Riegel <triegel@redhat.com>
1356 * testsuite/libitm.c/reentrant.c: New file.
1358 2011-08-12 Torvald Riegel <triegel@redhat.com>
1360 * config/generic/tls.h: Remove the free list for transactions and ...
1361 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1362 (GTM::gtm_transaction::operator delete): ... and release here.
1363 (thread_exit_handler): New. Delete tx when thread terminates.
1364 (thread_exit_init): New.
1365 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1366 * testsuite/libitm.c/txrelease.c: New file.
1368 2011-08-12 Torvald Riegel <triegel@redhat.com>
1370 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1371 * testsuite/libitm.c/notx.c: New file.
1373 2011-08-12 Torvald Riegel <triegel@redhat.com>
1375 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1376 * libitm_i.h (local_tid): ... to here.
1377 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1378 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1380 2011-08-12 Torvald Riegel <triegel@redhat.com>
1382 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1383 serialirr_onwrite_dispatch as new default for now.
1384 * method-serial.cc (serialirr_onwrite_dispatch): New.
1385 (GTM::dispatch_serialirr_onwrite): New.
1388 2011-08-12 Torvald Riegel <triegel@redhat.com>
1390 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1391 * query.cc (_ITM_getTransactionId): There is no active transaction if
1392 the current nesting level is zero.
1394 2011-07-28 Torvald Riegel <triegel@redhat.com>
1396 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1399 2011-07-28 Torvald Riegel <triegel@redhat.com>
1401 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1402 transaction properties from the caller instead of from the
1405 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1407 2011-07-28 Torvald Riegel <triegel@redhat.com>
1409 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1410 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1412 * method-serial.cc: Same.
1413 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1414 flat nesting as default, and closed nesting on demand.
1415 (GTM::gtm_transaction::rollback): Same.
1416 (_ITM_abortTransaction): Same.
1417 (GTM::gtm_transaction::restart): Same.
1418 (GTM::gtm_transaction::trycommit): Same.
1419 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1420 (choose_code_path): New.
1421 (GTM::gtm_transaction_cp::save): New.
1422 (GTM::gtm_transaction_cp::commit): New.
1423 * query.cc (_ITM_inTransaction): Support flat nesting.
1424 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1425 (GTM::gtm_transaction): Support flat and closed nesting.
1426 * alloc.cc (commit_allocations_2): New.
1427 (commit_cb_data): New helper struct.
1428 (GTM::gtm_transaction::commit_allocations): Handle nested
1430 * libitm.texi: Update user action section, add description of nesting.
1432 2011-07-28 Torvald Riegel <triegel@redhat.com>
1434 * libitm_i.h: Add closed nesting as restart reason.
1435 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1437 2011-07-28 Torvald Riegel <triegel@redhat.com>
1439 * useraction.cc: Use vector instead of list to store actions.
1440 Also support partial rollbacks for closed nesting.
1441 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1442 * beginend.cc: Same.
1444 2011-07-28 Torvald Riegel <triegel@redhat.com>
1446 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1447 closed_nesting flags, as well as a closed nesting alternative.
1448 * method-serial.cc: Same.
1449 (serial_dispatch): Renamed to serialirr_dispatch.
1450 (GTM::dispatch_serialirr): Same.
1451 (serial_dispatch_ul): Renamed to serial_dispatch.
1452 (GTM::dispatch_serial): Same.
1454 2011-07-28 Torvald Riegel <triegel@redhat.com>
1456 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1458 2011-07-28 Torvald Riegel <triegel@redhat.com>
1460 * aatree.h (aa_tree::remove): New.
1461 (aa_tree::operator new): Add placement new.
1463 2011-07-02 Torvald Riegel <triegel@redhat.com>
1465 * containers.h: New file.
1466 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1467 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1468 * common.h: ... to here.
1469 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1472 2011-06-30 Torvald Riegel <triegel@redhat.com>
1474 * libitm_i.h (STATE_ABORTING): Remove.
1475 * beginend.cc (_ITM_abortTransaction): Same.
1476 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1477 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1478 (_ITM_rollbackTransaction): Remove.
1479 * beginend.cc: Same.
1481 * libitm.texi: Document these ABI changes.
1483 2011-06-30 Torvald Riegel <triegel@redhat.com>
1485 * libitm.texi: New file.
1486 * Makefile.am: Add libitm.texi.
1487 * Makefile.in: Rebuild.
1489 2011-06-30 Torvald Riegel <triegel@redhat.com>
1491 * libitm_i.h: Move parts to common.h and dispatch.h.
1492 * common.h: New file.
1493 * dispatch.h: New file, new dispatch class.
1494 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1495 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1496 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1497 decision to retry.cc.
1498 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1500 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1501 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1503 * barrier.cc: Use new barriers definitions.
1504 (abi_dispatch::memmove_overlap_check): New.
1505 * config/x86/x86_sse.cc: Same.
1506 * config/x86/x86_avx.cc: Same.
1507 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1509 * Makefile.in: Rebuild.
1510 * method-readonly.cc: Remove.
1511 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1512 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1514 2011-06-30 Torvald Riegel <triegel@redhat.com>
1516 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1517 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1518 * testsuite/libitm.c/dropref-2.c: Same.
1519 * testsuite/libitm.c/dropref.c: Same.
1521 2011-06-30 Torvald Riegel <triegel@redhat.com>
1523 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1524 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1525 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1527 * barrier.tpl: Same.
1529 * config/generic/tls.h: Same.
1530 * config/x86/tls.h: Same.
1534 * method-readonly.cc: Same.
1535 * method-serial.cc: Same.
1536 * method-wbetl.cc: Same.
1539 2011-03-03 Richard Henderson <rth@redhat.com>
1541 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1542 From Patrik Marlier <patrick.marlier@unine.ch>.
1544 2011-02-03 Richard Henderson <rth@redhat.com>
1546 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1547 * configure.ac: Use it.
1548 * configure, config.h.in: Rebuild.
1549 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1550 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1551 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1552 * libitm.map: Use wildcards to match size_t mangling.
1554 2010-12-14 Richard Henderson <rth@redhat.com>
1556 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1557 blocks of TIDs per thread.
1558 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1559 (setup_gtm_thr): Return the thread structure.
1560 * config/x86/tls.h (setup_gtm_thr): Likewise.
1562 2010-12-14 Richard Henderson <rth@redhat.com>
1564 * clone.cc (table_lock): Remove.
1565 (find_clone): Don't take it.
1566 (ExcludeTransaction): New helper class.
1567 (_ITM_registerTMCloneTable): Use it.
1568 (_ITM_deregisterTMCloneTable): Likewise.
1570 2010-12-14 Richard Henderson <rth@redhat.com>
1572 * config/x86/tls.h: New file.
1574 2010-07-15 Richard Henderson <rth@redhat.com>
1576 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1577 * Makefile.in: Rebuild.
1579 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1581 * method-wbetl.cc (trydropreference): Fix source line.
1583 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1585 * libitm.h: Add comment.
1586 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1588 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1590 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1591 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1592 available, use pthread mutexes.
1593 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1594 * config.h.in: Regenerate.
1595 * configure: Regenerate.
1597 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1599 * libitm.h (ITM_PURE): Define.
1600 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1602 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1604 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1605 (validate): Add comment.
1606 (trydropreference): New.
1607 * method-readonly.cc (class readonly_dispatch): Add
1609 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1610 Call trydropreference().
1611 * libitm.h (_ITM_dropReferences): Remove const attribute.
1612 * method-serial.cc (class serial_dispatch): Add trydropreference.
1613 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1615 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1617 * memcpy.cc (do_memcpy): Comment.
1619 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1621 * barrier.tpl: Add comments throughout.
1623 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1625 * method-wbetl.cc (struct w_entry): Add comments.
1629 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1631 * alloc_c.cc (_ITM_dropReferences): New.
1632 * libitm.map (_ITM_dropReferences): Add.
1633 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1634 * libitm_i.h (struct gtm_transaction): Declare
1635 drop_references_allocations and drop_references_local.
1636 * local.cc (rollback_local): Ignore memory when applicable.
1637 (drop_references_local): New.
1639 2010-06-23 Richard Henderson <rth@redhat.com>
1641 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1642 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1643 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1644 * config/alpha/target.h: Likewise.
1645 * config/generic/tls.cc (gtm_mask_stack): Use it.
1647 2010-06-23 Richard Henderson <rth@redhat.com>
1649 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1650 a mutex instead of trying a lock-free compare-and-swap on the list.
1651 (gtm_cacheline_page::operator delete): Likewise.
1653 2010-06-16 Richard Henderson <rth@redhat.com>
1655 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1656 that overlap the libitm stack.
1657 * barrier.tpl: Mark incoming stack.
1658 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1659 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1660 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1661 * memcpy.cc, memset.cc: Likewise.
1662 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1663 * config/generic/tls.h (gtm_thread): Add stack_top member.
1664 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1665 * libitm_i.h (gtm_mask_stack): Declare.
1666 * config/generic/tls.cc: New file.
1667 * Makefile.am (libitm_la_SOURCES): Add it.
1668 (AM_CXXFLAGS): Turn off exceptions.
1669 * Makefile.in: Rebuild.
1671 2010-06-16 Richard Henderson <rth@redhat.com>
1673 * alloc.cc (struct gtm_alloc_action): Move definition ...
1674 * libitm_i.h: ... here.
1675 (class gtm_transaction): Declare new and delete.
1676 * beginend.cc (alloc_tx): Reformulate as operator new.
1677 (free_tx): Reformulate as operator delete.
1678 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1680 2010-06-11 Richard Henderson <rth@redhat.com>
1682 * clone.cc (clone_entry_compare): Fix typo.
1683 From Patrik Marlier <patrick.marlier@unine.ch>.
1685 2010-05-13 Richard Henderson <rth@redhat.com>
1687 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1690 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1692 * libitm_i.h (struct gtm_transaction): Remove
1693 get_allocation_size.
1694 (record_allocation): Remove size parameter.
1695 * libitm.map (_ITM_realloc): Remove.
1696 * alloc_c.cc (_ITM_realloc): Remove.
1697 (_ITM_malloc): Remove size argument to record_allocation.
1698 (_ITM_calloc): Same.
1699 * alloc_cpp.cc (_ZGTtnwm): Same.
1700 (_ZGTtnwmRKSt9nothrow_t): Same.
1702 (_ZGTtnamRKSt9nothrow_t): Same.
1703 * alloc.cc (struct gtm_alloc_action): Remove size.
1704 (get_allocation_size): Remove.
1705 (commit_allocations): Add comment.
1706 (record_allocation): Remove size parameter.
1707 (forget_allocation): Remove set of size.
1709 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1711 * Makefile.am (abi_version): New.
1712 (AM_CXXFLAGS): Pass abi_version.
1713 * Makefile.in: Regenerate.
1714 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1716 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1718 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1719 _ITM_getTMCloneOrIrrevokable.
1720 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1721 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1723 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1725 * configure.ac: Remove Linux futex support.
1726 * configure.tgt (config_path): Same.
1727 * Makefile.am: Same.
1728 * config/linux: Remove entire directory.
1729 * configure: Rebuild.
1730 * Makefile.in: Rebuild.
1731 * testsuite/Makefile.in: Rebuild.
1733 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1735 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1736 switching to serial mode.
1737 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1739 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1741 * configure.tgt: Add emacs -*- tags.
1742 * barrier.tpl: Same.
1744 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1746 * Makefile.am: Rename serial.cc to method-serial.cc.
1747 * Makefile.in: Regenerate with automake 1.11.1.
1748 * testsuite/Makefile.in: Same.
1749 * aclocal.m4: Regenerate with aclocal 1.11.1.
1750 * method-serial.cc: Rename from serial.cc.
1751 * libitm_i.h (struct gtm_transaction): Update comment on
1754 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1756 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1757 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1759 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1761 * configure: Rebuild.
1763 2009-11-12 Richard Henderson <rth@redhat.com>
1765 * Rewrite everything in C++.
1767 2009-11-03 Richard Henderson <rth@redhat.com>
1769 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1770 * Makefile.am (libitm_la_SOURCES): Add them.
1771 * configure.ac (ARCH_X86): New conditional.
1772 * Makefile.in, configure: Rebuild.
1773 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1774 Move futex setup into "other system configury" case.
1775 * local.c (rollback_local): Merge into ...
1776 (GTM_rollback_local): ... here.
1777 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1778 (_ITM_LB): Define as an alias to GTM_LB.
1780 2009-11-03 Richard Henderson <rth@redhat.com>
1782 * method-readonly.c: New file.
1783 * Makefile.am (libitm_la_SOURCES): Add it.
1784 * Makefile.in: Rebuild.
1785 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1786 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1787 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1788 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1789 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1790 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1791 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1792 gtm_get_clock, gtm_inc_clock): New.
1793 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1794 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1795 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1796 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1797 replace uses with new libitm_i.h symbols.
1798 (dispatch_wbetl): Rename from wbetl_dispatch.
1799 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1800 away from dispatch_readonly; abort if the beginTransaction call
1801 asserted that the transaction was readonly.
1803 2009-11-03 Richard Henderson <rth@redhat.com>
1805 * memset.c: New file.
1806 * Makefile.am (libitm_la_SOURCES): Add it.
1807 * Makefile.in: Rebuild.
1808 * testsuite/libitm.c/memset-1.c: New.
1810 2009-11-03 Richard Henderson <rth@redhat.com>
1812 * dispatch.c: Remove file.
1813 * useraction.c (struct gtm_user_action): Move from libitm.h.
1814 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1815 (serial_memset, serial_memmove, serial_memcpy): Remove.
1816 (serial_W*, serial_R*): Remove.
1817 (serial_dispatch): Update to match.
1818 * configure.ac: Move Werror down below configure checks. Don't
1819 check for sys/loadavg.h, do check for malloc.h. Don't check for
1820 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1821 Use GCC_AC_FUNC_MMAP_BLACKLIST
1822 * libitm.h: Split out all internal items to...
1823 * libitm_i.h: ... here. New file.
1824 * copymask.c: New file.
1825 * local.c (struct gtm_local_undo): Move from libitm.h.
1826 (GTM_alloc_local): Rename from alloc_local; export.
1827 * memcpy.c: New file.
1828 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1829 * config/posix/page.c: New file.
1830 * config/posix/target_tls.h: Remove file.
1831 * barrier.c: New file.
1832 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1834 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1835 * method-wbetl.c: Rewrite for new cacheline methods.
1836 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1838 * config/alpha/sjlj.S: Fix typo.
1839 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1840 * config/alpha/copymask.c: New file.
1841 * config/alpha/target.h (CACHELINE_SIZE): New.
1842 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1844 * config/x86/target_i.h: Copy functions from x86/target.h.
1845 * config/x86/copymask.c: New file.
1846 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1847 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1848 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1849 * config/x86/target_tls.h: Move contents to target_i.h.
1851 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1852 * testsuite/libitm.c/memcpy-1.c: New.
1854 2009-10-22 Richard Henderson <rth@redhat.com>
1856 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1857 (AM_CCASFLAGS): New.
1858 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1859 saving/restoring _AC_ARG_VAR_PRECIOUS.
1860 * Makefile.in, aclocal.m4, config.h.in, configure,
1861 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1863 2009-10-22 Richard Henderson <rth@redhat.com>
1865 * testsuite/*: Update for new compiler syntax.
1867 2009-10-21 Richard Henderson <rth@redhat.com>
1869 * libitm.h (_ITM_abortReason): Add outerAbort.
1871 2009-08-03 Richard Henderson <rth@redhat.com>
1873 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1874 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1875 * method-wbetl.c (struct w_entry): Remove mask.
1876 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1879 2009-07-22 Richard Henderson <rth@redhat.com>
1881 * eh_cpp.c: New file.
1882 * Makefile.am (libitm_la_SOURCES): Add it.
1883 * Makefile.in: Rebuild.
1884 * beginend.c (GTM_rollback_transaction): Undo exception state.
1885 (GTM_trycommit_transaction): Mark inline.
1886 (GTM_trycommit_and_finalize_transaction): Split out from ...
1887 (_ITM_commitTransaction): ... here.
1888 (_ITM_commitTransactionEH): New function.
1889 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1890 cxa_unthrown, eh_in_flight; reorder.
1892 * testsuite/libitm.c++/c++.exp: New.
1893 * testsuite/libitm.c++/eh-1.C: New.
1895 * aatree.c (aa_free): Remove REGPARM.
1896 * aatree.h: Remove all REGPARM.
1898 2009-07-18 Richard Henderson <rth@redhat.com>
1900 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1901 * Makefile.am (libitm_la_SOURCES): Add them.
1902 * Makefile.in: Rebuild.
1903 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1904 (GTM_trycommit_transaction): Likewise.
1905 * libitm.h: Include aatree.h
1906 (struct gtm_alloc_action): New.
1907 (struct gtm_transaction): Add alloc_actions.
1908 (GTM_record_allocation, GTM_forget_allocation): Declare.
1909 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1910 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1911 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1912 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1913 _ZGTtdaPvRKSt9nothrow_t): Export.
1915 2009-07-18 Richard Henderson <rth@redhat.com>
1917 * target_tls.h: Move ...
1918 * config/posix/target_tls.h: ... here.
1920 2009-07-07 Richard Henderson <rth@redhat.com>
1922 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1924 2009-07-07 Richard Henderson <rth@redhat.com>
1928 2009-07-07 Richard Henderson <rth@redhat.com>
1930 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1931 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1933 * configure.tgt: Don't use -ftls-model for x86 linux.
1934 * libitm.h: Include target.h after standard includes.
1935 (_gtm_thr): Rename from gtm_thr.
1936 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1937 (gtm_disp, set_gtm_disp): New.
1938 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1939 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1940 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1942 2009-07-07 Richard Henderson <rth@redhat.com>
1944 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1946 2009-07-06 Richard Henderson <rth@redhat.com>
1948 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1949 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1950 (_ITM_beginTransaction): Take variadic arguments.
1951 (_ITM_registerThrownObject): Declare.
1952 * beginend.c, serial.c: Update.
1953 * libitm.map: Add _ITM_registerThrownObject.
1955 2009-01-28 Richard Henderson <rth@redhat.com>
1957 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1958 * Makefile.in: Rebuild.
1959 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1960 (GTM_restart_transaction): Fix uninstrumented code check.
1961 * retry.c (GTM_decide_retry_strategy): Add serial check.
1962 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1963 automatically go irrevokable when in serial mode.
1964 * clone.c: New file.
1965 * libitm.h, libitm.map: Update.
1967 2009-01-27 Richard Henderson <rth@redhat.com>
1969 * Makefile.am (LTCCASCOMPILE): Define.
1970 (libitm_la_SOURCES): Add methid-wbetl.c.
1971 * testsuite/Makefile.am: New
1972 * configure.ac: Add testsuite/Makefile.
1973 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1974 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1975 (_ITM_abortTransaction): Finalize implementation method; pass
1976 transaction properties to longjmp.
1977 (GTM_restart_transaction): Split out from ...
1978 (_ITM_commitTransaction): ... here.
1979 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1980 Move to config/x86/target.h.
1981 * config/linux/alpha/futex_bits.h: New.
1982 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1983 * config/x86/target.h: Disable target types for 32-bit.
1984 * config/alpha/sjlj.S, config/alpha/target.h: New.
1985 * libitm.h (struct gtm_dispatch): Add init, fini.
1986 (enum restart_reason): New.
1987 (struct gtm_transaction): Add method and restarts.
1988 * retry.c (GTM_decide_retry_strategy): Implement.
1989 * serial.c (serial_init, serial_fini): New.
1990 (GTM_serialmode): Finialize outgoing method.
1991 * method-wbetl.c: New.
1993 2008-12-09 Richard Henderson <rth@redhat.com>
1995 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1996 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1997 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1998 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1999 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2000 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2001 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2002 * serial.c (serial_R##T, serial_W##T): Likewise.
2004 2008-11-21 Richard Henderson <rth@redhat.com>
2008 Copyright (C) 2008-2017 Free Software Foundation, Inc.
2010 Copying and distribution of this file, with or without modification,
2011 are permitted in any medium without royalty provided the copyright
2012 notice and this notice are preserved.