1 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
4 * aclocal.m4: Regenerate.
5 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
6 LIBITM_CHECK_LINKER_HWCAP.
8 2016-11-15 Matthias Klose <doko@ubuntu.com>
10 * configure: Regenerate.
12 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
15 * util.cc (xmalloc): Use posix_memalign to allocate memory on
16 on cache line if requested.
18 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
20 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
21 function attribute to disable floating point in begin_transaction() on
23 * beginend.cc (begin_transaction): Use
24 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
26 2016-01-22 Torvald Riegel <triegel@redhat.com>
28 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
30 (htm_fastpath): Remove.
31 (gtm_thread::begin_transaction): Fix HTM fastpath.
32 (_ITM_commitTransaction): Adapt.
33 (_ITM_commitTransactionEH): Adapt.
34 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
36 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
37 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
38 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
39 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
40 * libitm/method-serial.cc (htm_mg): Adapt.
41 (gtm_thread::serialirr_mode): Adapt.
42 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
44 2016-01-21 Torvald Riegel <triegel@redhat.com>
46 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
49 2016-01-19 Richard Henderson <rth@redhat.com>
54 2016-01-13 Richard Henderson <rth@redhat.com>
56 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
57 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
58 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
59 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
60 * configure.ac (ARCH_AARCH64): New conditional.
61 (ARCH_PPC, ARCH_S390): Likewise.
62 * Makefile.in, configure: Rebuild.
64 * libitm.h (_ITM_TYPE_M128): Always define.
65 * vect64.cc: Split ...
66 * vect128.cc: ... out of...
67 * config/x86/x86_sse.cc: ... here.
68 * config/arm/neon.cc: New file.
70 2016-01-19 Torvald Riegel <triegel@redhat.com>
72 * local_type_traits: Remove file.
73 * libitm_i.h: Don't include it anymore.
74 (sized_integral): Remove.
76 2016-01-16 Torvald Riegel <triegel@redhat.com>
78 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
80 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
81 * libitm/testsuite/libitm.c/priv-1.c: New.
83 2015-01-15 Torvald Riegel <triegel@redhat.com>
85 testsuite/libitm.c++/libstdc++-safeexc.C: New.
87 2016-01-13 Torvald Riegel <triegel@redhat.com>
89 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
90 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
91 (gtm_rwlock::write_unlock): Likewise.
93 2016-01-13 Richard Henderson <rth@redhat.com>
95 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
96 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
97 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
98 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
99 * configure.ac (ARCH_AARCH64): New conditional.
100 (ARCH_PPC, ARCH_S390): Likewise.
101 * Makefile.in, configure: Rebuild.
103 * libitm.h (_ITM_TYPE_M128): Always define.
104 * vect64.cc: Split ...
105 * vect128.cc: ... out of...
106 * config/x86/x86_sse.cc: ... here.
107 * config/arm/neon.cc: New file.
109 2016-01-13 Torvald Riegel <triegel@redhat.com>
111 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
112 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
113 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
114 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
115 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
116 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
117 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
118 (serialirr_dispatch::snapshot_most_recent): New.
119 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
121 2016-01-12 Torvald Riegel <triegel@redhat.com>
123 * libitm_i.h (gtm_mask_stack): Remove.
124 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
125 * stmlock.h: Remove file.
126 * config/alpha/cacheline.h: Likewise.
127 * config/generic/cacheline.h: Likewise.
128 * config/powerpc/cacheline.h: Likewise.
129 * config/sparc/cacheline.h: Likewise.
130 * config/x86/cacheline.h: Likewise.
132 2016-01-04 Jakub Jelinek <jakub@redhat.com>
134 Update copyright years.
136 * libitm.texi: Bump @copying's copyright year.
138 2015-11-26 Torvald Riegel <triegel@redhat.com>
140 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
141 (ml_wt_dispatch::pre_write): Adapt.
142 (ml_wt_dispatch::pre_load): Likewise.
144 2015-11-22 Torvald Riegel <triegel@redhat.com>
146 * libitm_i.h (gtm_alloc_action): Remove union.
147 * testsuite/libitm.c/alloc-1.c: New.
149 2015-11-19 Torvald Riegel <triegel@redhat.com>
151 * testsuite/libitm.c++/eh-5.C: New.
152 * libitm.h (_ITM_cxa_free_exception): New.
153 * libitm.map (_ITM_cxa_free_exception): Add it.
154 * libitm.texi: Update ABI docs.
155 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
156 (gtm_transaction_cp::cxa_uncaught_count): Add.
157 (gtm_thread::cxa_unthrown): Remove.
158 (gtm_thread::cxa_uncaught_count_ptr): Add.
159 (gtm_thread::cxa_uncaught_count): Add.
160 (gtm_thread::drop_references_allocations): Rename to...
161 (gtm_thread::discard_allocation): ... this and adapt.
162 (gtm_thread::init_cpp_exceptions): New.
163 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
164 (gtm_thread::begin_transaction): Likewise.
165 (gtm_transaction_cp::save): Likewise.
166 (gtm_thread::trycommit): Likewise.
167 * eh_cpp.cc: Add overview comments.
168 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
169 (free_any_exception, _ITM_cxa_free_exception): New.
170 (gtm_thread::init_cpp_exceptions): Define.
171 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
172 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
173 (gtm_thread::revert_cpp_exceptions): Likewise.
175 2015-11-09 Torvald Riegel <triegel@redhat.com>
177 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
178 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
179 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
180 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
181 (gtm_thread::forget_allocations): New overload with size_t argument.
182 * alloc.c (gtm_thread::forget_allocation): Define new overload and
184 (gtm_thread::record_allocation): Adapt.
185 (gtm_thread::commit_allocations_1): Adapt.
186 (gtm_thread::commit_allocations_2): Adapt.
187 * testsuite/libitm.c++/newdelete.C: New.
189 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
190 Joseph Myers <joseph@codesourcery.com>
191 Mark Shinwell <shinwell@codesourcery.com>
192 Andrew Stubbs <ams@codesourcery.com>
193 Rich Felker <dalias@libc.org>
195 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
196 GTM_begin_transaction for compatibility with FDPIC.
198 2015-10-09 David Malcolm <dmalcolm@redhat.com>
200 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
203 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
206 * local_atomic (__always_inline): Rename to...
207 (__libitm_always_inline): ... this.
209 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
212 * config/powerpc/sjlj.S: Port to Xcode 2.5.
214 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
216 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
217 operands "op" and "val" to int.
219 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
221 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
222 "op" and "val" to int.
224 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
226 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
227 "op" and "val" to int.
229 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
231 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
232 Declare as static int.
233 (FUTEX_PRIVATE_FLAG): Remove L suffix.
234 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
236 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
238 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
241 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
243 * Makefile.in: Regenerated with automake-1.11.6.
244 * aclocal.m4: Likewise.
245 * configure: Likewise.
246 * testsuite/Makefile.in: Likewise.
248 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
250 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
251 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
253 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
256 * libitm.c/stackundo.c (test2): Make it static.
259 2015-01-05 Jakub Jelinek <jakub@redhat.com>
261 Update copyright years.
263 2015-01-05 Jakub Jelinek <jakub@redhat.com>
265 * libitm.texi: Bump @copying's copyright year.
267 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
269 * testsuite/lib/libitm.exp: Load target-utils.exp.
270 Move load of target-supports.exp earlier.
272 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
274 * configure.tgt (x86_64): Tune -m32 multilib to generic.
276 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
279 * configure: Regenerated.
281 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
284 * configure: Regenerate.
286 2014-10-06 Marek Polacek <polacek@redhat.com>
288 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
289 * testsuite/libitm.c/memset-1.c: Likewise.
291 2014-07-24 Richard Henderson <rth@redhat.com>
293 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
294 addressing mode in epilogue.
296 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
298 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
299 -mclear-hwcap instead.
300 * configure: Regenerate.
301 * clearcap.map: Remove.
303 2014-05-21 John Marino <gnugcc@marino.st>
305 * configure.tgt (*-*-dragonfly*): New target.
307 2014-05-19 Richard Henderson <rth@redhat.com>
309 * config/aarch64/sjlj.S: New file.
310 * config/aarch64/target.h: New file.
311 * configure.tgt: Enable aarch64.
313 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315 * config/generic/asmcfi.h: Also check for
316 __GCC_HAVE_DWARF2_CFI_ASM.
318 2013-04-02 Richard Henderson <rth@redhat.com>
320 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
321 * config/arm/target.h, config/sh/target.h: Likewise.
322 * config/sparc/target.h, config/x86/target.h: Likewise.
324 2014-03-26 Jakub Jelinek <jakub@redhat.com>
326 * config/linux/futex_bits.h: Include errno.h.
327 (sys_futex0): If syscall returns -1, return -errno rather than
330 2014-03-26 Joseph Myers <joseph@codesourcery.com>
332 * libitm.texi (Index): Rename to Library Index.
334 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
337 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
338 (x86_avx.lo): Append -mavx to CXXFLAGS.
339 * Makefile.in: Regenerate.
341 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
343 Update copyright years
345 2014-01-02 Tobias Burnus <burnus@net-b.de>
347 * libitm.texi: Bump @copying's copyright year.
349 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
351 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
352 (FUNC): Define ELFv2 variant.
359 2013-09-20 Alan Modra <amodra@gmail.com>
361 * configure: Regenerate.
363 2013-08-30 Torvald Riegel <triegel@redhat.com>
365 * config/posix/rwlock.cc: Fix initialization order.
367 2013-08-30 Torvald Riegel <triegel@redhat.com>
369 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
370 (htm_fastpath): Assign an asm name.
371 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
373 (_ITM_actions): Likewise.
374 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
376 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
377 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
378 field to the start of the structure.
379 * config/linux/rwlock.h (gtm_rwlock): Update comments.
380 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
381 handling for custom HTM fast paths.
383 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
385 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
387 * configure.tgt: Add -msoft-float to XCFLAGS.
389 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
391 * configure.tgt: Add -msoft-float to XCFLAGS.
393 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
395 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
396 (htm_transaction_active): Enable zEC12 instructions in the
398 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
400 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
402 * acinclude.m4: Add htm asm check for s390.
403 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
404 * configure: Regenerate.
405 * config/s390/target.h: Remove __HTM__ check.
406 (htm_available): Call getauxval to get hwcaps and check whether
407 HTM is available or not.
409 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
411 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
412 * configure.ac: Use it.
413 (AC_CHECK_HEADERS): Check for sys/auxv.h.
414 (AC_CHECK_FUNCS): Check for getauxval.
415 * config.h.in, configure: Rebuild.
416 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
417 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
418 (USE_HTM_FASTPATH): Define.
419 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
420 _HTM_RETRIES) New macros.
421 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
422 htm_begin_success, htm_commit, htm_transaction_active): New functions.
424 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
426 * config/s390/target.h: Include htmintrin.h.
427 (_HTM_ITM_RETRIES): New macro definition.
428 (htm_available, htm_init, htm_begin, htm_begin_success)
429 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
431 2013-06-20 Iain Sandoe <iain@codesourcery.com>
432 Cesar Philippidis <cesar@codesourcery.com>
434 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
435 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
436 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
437 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
439 2013-06-20 Torvald Riegel <triegel@redhat.com>
441 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
442 (_ITM_getTransactionId): Same.
443 * config/x86/target.h (htm_transaction_active): New.
445 2013-06-20 Torvald Riegel <triegel@redhat.com>
448 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
451 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
454 * local_atomic (__always_inline): Always define our version.
455 (__calculate_memory_order): Mark inline.
456 (atomic_thread_fence): Ditto.
457 (atomic_signal_fence): Ditto.
458 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
459 (atomic_bool::atomic_flag_clear_explicit): Ditto.
460 (atomic_bool::atomic_flag_test_and_set): Ditto.
461 (atomic_bool::atomic_flag_clear): Ditto.
463 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
465 * config/s390/sjlj.S: New file.
466 * config/s390/target.h: New file.
467 * configure.tgt: Set options for S/390.
469 2013-03-23 Andi Kleen <ak@linux.intel.com>
471 * local_atomic (__always_inline): Add.
472 (__calculate_memory_order, atomic_thread_fence,
473 atomic_signal_fence, test_and_set, clear, store, load,
474 exchange, compare_exchange_weak, compare_exchange_strong,
475 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
476 Add __always_inline to force inlining.
478 2013-02-11 Iain Sandoe <iain@codesourcery.com>
479 Jack Howarth <howarth@bromo.med.uc.edu>
480 Patrick Marlier <patrick.marlier@gmail.com>
483 * alloc_cpp.cc: Enable function declarations on darwin.
484 * eh_cpp.cc: Likewise.
486 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
488 Update copyright years.
490 2012-11-09 Torvald Riegel <triegel@redhat.com>
492 * beginend.cc (htm_fastpath): New.
493 (gtm_thread::begin_transaction, _ITM_commitTransaction,
494 _ITM_commitTransactionEH): Add HTM fastpath handling.
495 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
496 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
497 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
498 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
499 * configure.tgt: Add -mrtm to XCFLAGS.
500 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
501 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
502 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
503 * retry.cc (parse_default_method): Add HTM method parsing.
504 (gtm_thread::number_of_threads_changed): Use HTM by default if
507 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
509 * configure: Regenerate.
511 2012-10-31 Richard Henderson <rth@redhat.com>
513 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
514 * configure.ac: Use it.
515 * config.h.in, configure: Rebuild.
516 * testsuite/Makefile.in: Rebuild.
518 2012-10-24 Torvald Riegel <triegel@redhat.com>
520 * libitm.texi: Clarify ABI requirements for data-logging functions.
522 2012-10-24 Torvald Riegel <triegel@redhat.com>
524 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
525 it requires serial mode instead of assuming that for certain
527 * dispatch.h (abi_dispatch::requires_serial): New.
528 (abi_dispatch::abi_dispatch): Adapt.
529 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
530 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
531 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
532 serial_dispatch::serial_dispatch,
533 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
535 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
537 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
538 and ia32 declarations some more.
539 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
541 2012-09-20 Jakub Jelinek <jakub@redhat.com>
544 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
545 * configure: Regenerate.
546 * Makefile.in: Regenerate.
548 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
550 * configure: Regenerated.
552 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
554 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
556 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
558 * eh_cpp.cc: Fix __cxa_end_catch declaration.
560 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
562 * configure: Regenerated.
564 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
567 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
570 2012-04-03 Tristan Gingold <gingold@adacore.com>
572 * configure: Regenerate.
574 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
577 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
579 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
581 * testsuite/lib/libitm.exp: load fortran-modules.exp
583 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
585 * configure.tgt (*-*-irix6*): Remove.
587 2012-03-13 Torvald Riegel <triegel@redhat.com>
590 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
593 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595 * configure.tgt (*-*-osf*): Remove.
596 * configure: Regenerate.
598 2012-03-05 Torvald Riegel <triegel@redhat.com>
600 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
601 memtransfer/memset if size isn't larger than zero.
603 2012-03-02 Torvald Riegel <triegel@redhat.com>
605 * libitm.texi: Link to specification and add a usage example.
607 2012-02-24 Torvald Riegel <triegel@redhat.com>
609 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
610 default dispatch for more than 1 thread to ml_wt.
612 2012-02-20 Torvald Riegel <triegel@redhat.com>
614 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
616 2012-02-20 Torvald Riegel <triegel@redhat.com>
618 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
620 2012-02-20 Torvald Riegel <triegel@redhat.com>
622 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
623 serial mode corner cases made obsolete by prior gtm_rwlock changes.
624 (gl_wt_dispatch.rollback): Same.
626 2012-02-20 Torvald Riegel <triegel@redhat.com>
628 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
630 2012-02-20 Torvald Riegel <triegel@redhat.com>
632 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
633 for RfW src. Optimize number of calls to gtm_thr.
635 2012-02-20 Torvald Riegel <triegel@redhat.com>
637 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
639 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
640 (default_dispatch): Make atomic.
641 (GTM::gtm_thread::set_default_dispatch): Access atomically.
642 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
643 use decide_begin_dispatch() if default_dispatch might have changed.
644 (GTM::gtm_thread::number_of_threads_changed): Initialize
645 default_dispatch here.
647 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
648 Patrick Marlier <patrick.marlier@gmail.com>
651 * alloc_cpp.cc: No dummy definitions for darwin.
652 * eh_cpp.cc: Likewise.
654 2012-02-14 Richard Henderson <rth@redhat.com>
656 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
658 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
660 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
662 2012-02-14 Torvald Riegel <triegel@redhat.com>
664 * libitm_i.h (GTM::gtm_rwlog_entry): New.
665 (GTM::gtm_thread): Add read and write logs.
666 (GTM::dispatch_ml_wt): Declare.
667 * retry.cc (parse_default_method): Support ml_wt.
668 * method-ml.cc: New file.
669 * Makefile.am: Add method-ml.cc.
670 * Makefile.in: Regenerate.
672 2012-02-14 Torvald Riegel <triegel@redhat.com>
674 * dispatch.h (GTM::abi_dispatch::supports): New.
675 (GTM::method_group::reinit): New.
676 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
677 (GTM::gtm_thread::number_of_threads_changed): Check that the method
678 supports the current situation.
680 2012-02-14 Torvald Riegel <triegel@redhat.com>
682 * util.cc (GTM::xcalloc): New.
683 * common.h (GTM::xcalloc): Declare.
685 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
687 * config/sparc/target.h (cpu_relax): Read from CC register.
688 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
690 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
692 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
694 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
696 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
697 * config/sparc/cacheline.h: New file.
698 * config/sparc/target.h: Likewise.
699 * config/sparc/sjlj.S: Likewise.
700 * config/linux/sparc/futex_bits.h: Likewise.
702 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
704 * configure.ac (link_itm): Fix comment.
705 * configure: Regenerate.
706 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
708 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
711 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
712 Correct libgomp references.
714 2012-01-24 Torvald Riegel <triegel@redhat.com>
716 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
719 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
721 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
723 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
724 offset values. Do not copy return address. Decrement stack
726 (GTM_longjump) [__x86_64__]: Update offset values.
728 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
731 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
732 the first function argument to %eax.
734 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
736 * libitm.h (_ITM_getThreadnum): Remove.
737 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
739 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
741 * clearcap.map: New file.
742 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
743 * configure.ac: Call it.
744 Clear HWCAP_LDFLAGS if defaulting to -mavx.
745 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
746 * configure: Regenerate.
747 * Makefile.in: Regenerate.
748 * testsuite/Makefile.in: Regenerate.
750 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
753 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
754 include, exclude options.
756 2012-01-14 Torvald Riegel <triegel@redhat.com>
758 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
760 * containers.h (GTM::vector::set_size): New.
762 2012-01-14 Torvald Riegel <triegel@redhat.com>
765 * config/generic/tls.h (GTM::mask_stack_top): New.
766 (GTM::mask_stack_bottom): Declare.
767 * config/generic/tls.c (GTM::mask_stack_bottom): New.
768 * local.cc (gtm_undolog::rollback): Filter out any updates that
769 overlap the libitm stack. Add current transaction as parameter.
770 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
771 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
772 * testsuite/libitm.c/stackundo.c: New test.
774 2012-01-10 Richard Henderson <rth@redhat.com>
776 * libitm_i.h (_Unwind_DeleteException): Declare weak.
777 * eh_cpp.cc (_Unwind_DeleteException): Define for
778 !HAVE_ELF_STYLE_WEAKREF.
780 2012-01-08 Torvald Riegel <triegel@redhat.com>
782 * local.cc (GTM_LB): Use GTM::gtm_undolog.
783 (GTM::gtm_thread::drop_references_undolog): Remove.
784 (GTM::gtm_thread::commit_undolog,
785 GTM::gtm_thread::rollback_undolog): Move to ...
786 * libitm_i.h (GTM::gtm_undolog): ...here. New.
787 (GTM::gtm_undolog_entry): Remove.
788 (GTM::gtm_thread): Adapt.
789 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
790 (GTM::gtm_thread::trycommit): Adapt.
791 * method-serial.cc (serial_dispatch::log): Adapt.
792 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
793 (gl_wt_dispatch::store): Fix likely/unlikely.
794 * containers.h (GTM::vector::resize): Add additional_capacity
795 parameter and handle it.
796 (GTM::vector::resize_noinline): New/adapt.
797 (GTM::vector::push): New.
799 2012-01-06 Richard Henderson <rth@redhat.com>
801 * configure.tgt: Support powerpc-linux and powerpc-darwin.
802 * config/linux/powerpc/futex_bits.h: New file.
803 * config/powerpc/cacheline.h: New file.
804 * config/powerpc/sjlj.S: New file.
805 * config/powerpc/target.h: New file.
806 * config/generic/asmcfi.h (cfi_offset): New.
807 (cfi_restore, cfi_undefined): New.
809 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
812 * testsuite/libitm.c/reentrant.c: Remove xfail.
813 (thread): Pass x to pure().
814 From Patrik Marlier <patrick.marlier@gmail.com>.
816 2011-12-24 Torvald Riegel <triegel@redhat.com>
818 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
819 privatization safety if already in serial mode.
821 2011-12-24 Torvald Riegel <triegel@redhat.com>
823 * beginend.cc (GTM::gtm_thread::restart): Add and handle
824 finish_serial_upgrade parameter.
825 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
826 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
827 Don't unset reader flag.
828 (GTM::gtm_rwlock::write_upgrade_finish): New.
829 * config/posix/rwlock.cc: Same.
830 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
832 * config/posix/rwlock.h: Same.
833 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
834 flag after commit or after rollback when restarting.
836 2011-12-24 Torvald Riegel <triegel@redhat.com>
838 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
839 (GTM::gtm_thread::try_commit): Changed memory order.
840 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
842 * config/linux/x86/futex_bits.h (sys_futex0): Same.
843 * config/linux/sh/futex_bits.h (sys_futex0): Same.
844 * config/linux/futex_bits.h (sys_futex0): Same.
845 * config/linux/futex.cc (futex_wait, futex_wake): Same.
846 * config/linux/futex.h (futex_wait, futex_wake): Same.
847 * config/linux/rwlock.h (gtm_rwlock::writers,
848 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
850 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
851 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
852 gtm_rwlock::write_unlock): Fix memory orders and fences.
853 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
854 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
855 gtm_rwlock::write_unlock): Same.
856 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
857 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
858 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
860 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
861 gl_wt_dispatch::load, gl_wt_dispatch::store,
862 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
863 orders and fences. Add comments.
865 2011-12-21 Jakub Jelinek <jakub@redhat.com>
867 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
868 * Makefile.in: Regenerated.
870 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
872 * configure.tgt: Add sh* case.
873 * config/sh/target.h: New file.
874 * config/sh/sjlj.S: New file.
875 * config/linux/sh/futex_bits.h: New file.
877 2011-12-14 Richard Henderson <rth@redhat.com>
879 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
880 * config/arm/sjlj.S, config/arm/target.h: New files.
881 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
882 (cfi_rel_offset): New.
883 * config/linux/futex_bits.h: New file.
884 * config/linux/futex.cc: Include futex_bits.h here...
885 * config/linux/futex.h: ... not here.
886 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
887 * configure.ac (ARCH_AM): New conditional.
888 * Makefile.in, configure: Rebuild.
889 * configure.tgt: Handle ARM.
891 2011-12-13 Richard Henderson <rth@redhat.com>
893 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
894 signed/unsigned comparison werror.
896 * local_atomic: New file.
897 * libitm_i.h: Include it.
898 (gtm_thread::shared_state): Use atomic template.
899 * beginend.cc (GTM::gtm_clock): Use atomic template.
900 (global_tid): Use atomic template if 64-bit atomics available.
901 (gtm_thread::gtm_thread): Update shared_state access.
902 (gtm_thread::trycommit): Likewise.
903 (choose_code_path): Update global_tid access.
904 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
905 * stmlock.h (GTM::gtm_clock): Use atomic template.
906 (gtm_get_clock, gtm_inc_clock): Update accesses.
907 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
908 redundant __sync_synchronize after atomic shared_state access.
909 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
910 (gtm_rwlock::write_lock_generic): Likewise.
911 (gtm_rwlock::read_unlock): Likewise.
912 * config/alpha/target.h (atomic_read_barrier): Remove.
913 (atomic_write_barrier): Remove.
914 * config/x86/target.h (atomic_read_barrier): Remove.
915 (atomic_write_barrier): Remove.
917 2011-11-30 Richard Henderson <rth@redhat.com>
919 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
920 * beginend.c (_ITM_abortTransaction): Update to match.
921 (GTM::gtm_thread::restart): Likewise.
922 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
923 * config/x86/sjlj.S (GTM_longjmp): Likewise.
925 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
927 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
928 * Makefile.in: Regenerate.
930 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
932 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
933 * alloc_cpp.cc: Generate dummy functions if we don't
934 HAVE_ELF_STYLE_WEAKREF.
935 * eh_cpp.cc: Likewise.
936 * configure: Regenerate.
937 * aclocal.m4: Likewise.
938 * config.h.in: Likewise.
939 * Makefile.in: Likewise.
940 * testsuite/Makefile.in: Likewise.
942 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
944 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
945 __USER_LABEL_PREFIX__ for targets that use it.
946 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
947 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
948 in portability to non-elf targets.
949 (GTM_longjmp): Likewise.
950 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
953 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
955 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
956 * testsuite/libitm.c/memset-1.c: Likewise.
958 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
960 * configure: Regenerate.
962 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
964 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
965 (LIBITM_ENABLE_SYMVERS): Handle sun style.
966 * Makefile.am: Handle sun style versioning.
967 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
968 * configure: Regenerate.
969 * Makefile.in: Regenerate.
971 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
973 * config/generic/asmcfi.h: Fix comment.
974 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
975 sequence without .hidden support, error for non-ELF targets.
976 (GTM_longjmp) [__ELF__]: Only use .hidden if
977 HAVE_ATTRIBUTE_VISIBILITY.
979 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
981 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
982 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
984 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
985 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
987 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
990 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
991 * configure: Regenerate.
993 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
995 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
997 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
999 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1001 (.note.GNU-stack): Only use if __linux__.
1002 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1003 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1004 * testsuite/libitm.c/reentrant.c: Likewise.
1005 * testsuite/libitm.c/simple-2.c: Likewise.
1006 * testsuite/libitm.c/txrelease.c: Likewise.
1007 * testsuite/libitm.c++/static_ctor.C: Likewise.
1009 2011-11-10 Richard Henderson <rth@redhat.com>
1011 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1012 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1013 * configure.ac (ARCH_X86_AVX): New conditional.
1014 * Makefile.in, configure: Rebuild.
1016 2011-11-09 Richard Henderson <rth@redhat.com>
1018 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1019 * configure.ac: Use it.
1020 * config.h.in, configure: Rebuild.
1021 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1023 2011-11-09 Richard Henderson <rth@redhat.com>
1025 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1026 * config/alpha/unaligned.h: Remove file.
1027 * config/generic/unaligned.h: Remove file.
1028 * config/x86/unaligned.h: Remove file.
1029 * config/generic/cachepage.h: Remove file.
1030 * config/posix/cachepage.cc: Remove file.
1031 * config/generic/cacheline.cc: Remove file.
1032 * config/x86/cacheline.cc: Remove file.
1033 * config/generic/cacheline.h (gtm_cacheline): Remove the
1034 store_mask, copy_mask, copy_mask_wb methods.
1035 * config/x86/cacheline.h: Likewise.
1036 * config/alpha/cacheline.h: Fall back to generic after setting size.
1037 * config/generic/tls.cc (gtm_mask_stack): Remove.
1038 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1039 (GTM_vpalignr_table): Remove.
1040 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1041 (GTM_pshift_table): Remove.
1042 * config/libitm_i.h: Don't include cachepage.h.
1043 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1044 * Makefile.in, testsuite/Makefile.in: Rebuild.
1046 2011-11-09 Richard Henderson <rth@redhat.com>
1048 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1049 to emit branch prediction hint.
1051 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1052 Protect .note.GNU-stack with __linux__.
1054 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1055 * configure, aclocal.m4, config.h.in: Rebuild.
1056 * config/generic/asmcfi.h: New file.
1057 * config/x86/sjlj.S: Use it.
1059 2011-11-08 Richard Henderson <rth@redhat.com>
1061 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1063 2011-11-08 Richard Henderson <rth@redhat.com>
1065 * configure.tgt: Test correct directory for supported cpus.
1067 * configure.ac: Exit if unsupported.
1068 * configure: Rebuild.
1069 * configure.tgt: Delete boilerplate from libgomp for unsupported
1070 targets. Set UNSUPPORTED for unsupported targets.
1072 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1074 * configure.tgt: Handle i386 like i[456]86.
1075 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1077 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1078 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1080 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1082 * method-wbetl.cc: Update copyright notice.
1088 * barrier.tpl: Same.
1089 * useraction.cc: Same.
1093 * config/generic/tls.cc: Same.
1094 * config/generic/cacheline.h: Same.
1095 * config/generic/cachepage.h: Same.
1096 * config/generic/cacheline.cc: Same.
1097 * config/generic/unaligned.h: Same.
1098 * config/x86/cacheline.h: Same.
1099 * config/x86/cacheline.cc: Same.
1100 * config/x86/unaligned.h: Same.
1101 * config/alpha/cacheline.h: Same.
1102 * config/alpha/unaligned.h: Same.
1103 * config/alpha/sjlj.S: Same.
1104 * config/posix/cachepage.cc: Same.
1105 * config/linux/futex.h: Same.
1106 * config/linux/alpha/futex_bits.h: Same.
1108 2011-11-04 Torvald Riegel <triegel@redhat.com>
1110 * libitm.texi: No cover text and invariant sections.
1112 2011-11-03 Richard Henderson <rth@redhat.com>
1114 * local_type_traits: New file.
1115 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1117 2011-11-03 Richard Henderson <rth@redhat.com>
1119 * configure.ac: Don't test for gfortran.
1120 * configure: Rebuild.
1122 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1123 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1125 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1127 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1128 * testsuite/libitm.c/memset-1.c: Same.
1129 * testsuite/libitm.c/c.exp: Same.
1130 * testsuite/lib/libitm-dg.exp: Same.
1131 * testsuite/lib/libitm.exp: Same.
1132 * testsuite/libitm.c++/c++.exp: Same.
1134 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1136 * testsuite/config/default.exp: Update copyright date.
1137 * configure.ac: Add copyright info.
1138 * configure.tgt: Same.
1140 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1142 * testsuite/libitm.c/reentrant.c: XFAIL.
1143 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1145 2011-10-29 Torvald Riegel <triegel@redhat.com>
1147 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1149 (_ITM_abortTransaction): Handle aborts of outer transactions.
1151 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1152 * libitm.texi: Document aborts of outer transactions.
1153 * testsuite/libitm.c/cancel.c: New file.
1155 2011-10-19 Torvald Riegel <triegel@redhat.com>
1157 * testsuite/*: Change __transaction to __transaction_atomic or
1158 __transaction_relaxed.
1160 2011-10-19 Torvald Riegel <triegel@redhat.com>
1162 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1165 2011-10-19 Torvald Riegel <triegel@redhat.com>
1167 * libitm_i.h: Add gl_wt dispatch.
1168 * retry.cc (parse_default_method): Same.
1169 * method-gl.cc: New file.
1170 * Makefile.am: Use method-gl.cc.
1171 * Makefile.in: Rebuild.
1173 2011-10-19 Torvald Riegel <triegel@redhat.com>
1175 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1176 safety if requested by a TM method.
1177 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1178 privatization safety.
1179 * method-serial.cc: Same.
1181 2011-10-19 Torvald Riegel <triegel@redhat.com>
1183 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1184 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1185 undolog-related member functions from *_local to *_undolog.
1186 * local.cc (gtm_thread::commit_undolog): Same.
1187 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1188 (GTM::gtm_thread::rollback): Roll back undolog before
1189 dispatch-specific rollback.
1191 2011-10-19 Torvald Riegel <triegel@redhat.com>
1193 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1194 re-initialization of the current method group.
1195 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1197 2011-10-19 Torvald Riegel <triegel@redhat.com>
1199 * alloc.cc (commit_allocations_2): Do not free transaction-local
1200 memory when committing a nested transaction.
1202 2011-10-19 Torvald Riegel <triegel@redhat.com>
1204 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1205 serial-irrevocable dispatch, not serial.
1207 2011-10-19 Torvald Riegel <triegel@redhat.com>
1209 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1211 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1212 * method-serial.cc: Implement begin_or_restart().
1213 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1214 dispatch-specific begin_or_restart().
1215 (GTM::gtm_thread::restart): Same.
1217 2011-08-23 Torvald Riegel <triegel@redhat.com>
1219 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1220 restarting without switching to serial mode.
1221 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1222 transaction state. Choose closed-nesting alternative if available.
1223 (GTM::gtm_thread::set_default_dispatch): New.
1224 (parse_default_method): New.
1225 (GTM::gtm_thread::number_of_threads_changed): New.
1226 * method-serial.cc (GTM::serial_mg): New method group class.
1227 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1229 (GTM::serial_dispatch): Same.
1230 (GTM::serialirr_onwrite_dispatch): Same.
1231 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1232 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1234 (GTM::gtm_thread::gtm_thread): Same.
1235 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1236 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1237 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1238 choose dispatch but set state according to dispatch here.
1239 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1240 (GTM::method_group): New class.
1241 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1242 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1243 * libitm.texi: Document TM methods, method groups, method life cycle.
1244 Rename method sets to method groups.
1246 2011-08-23 Torvald Riegel <triegel@redhat.com>
1248 * config/x86/tls.h: Moved to ...
1249 * config/linux/x86/tls.h: ... here.
1251 2011-08-23 Torvald Riegel <triegel@redhat.com>
1253 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1255 * config/x86/sjlj.S: Same.
1257 2011-08-19 Torvald Riegel <triegel@redhat.com>
1259 * config/linux/rwlock.h: New file.
1260 * config/linux/rwlock.c: New file.
1261 * configure.ac: Reenable futex support (undo SVN rev 157758).
1262 * Makefile.am: Same.
1263 * configure.tgt: Same.
1264 * config/linux/alpha/futex_bits.h: Same.
1265 * config/linux/futex.h: Same. Return number of woken processes.
1266 * config/linux/futex.cc: Same.
1267 (futex_wait): Remove spinning.
1268 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1269 Use __x86_64__ instead of __LP64__.
1270 * aclocal.m4: Include generic futex checks.
1271 * configure: Rebuild.
1272 * Makefile.in: Rebuild.
1273 * testsuite/Makefile.in: Rebuild.
1274 * beginend.cc: Include pthread.h.
1275 * config/posix/cachepage.cc: Same.
1277 2011-08-12 Torvald Riegel <triegel@redhat.com>
1279 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1280 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1282 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1284 (GTM::gtm_thread::thread_num): Removed.
1285 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1286 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1287 tx-to-thread renaming.
1288 * beginend.cc: Adapted to tx-to-thread renaming.
1289 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1290 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1291 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1292 gtm_transaction to gtm_thread.
1293 (_ITM_getThreadnum): Removed. Not supported anymore.
1294 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1295 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1296 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1297 gtm_tx-to-gtm_thr renaming if necessary.
1304 * alloc_cpp.cc: Same.
1305 * method-serial.cc: Same.
1306 * config/generic/tls.cc: Same.
1307 * config/posix/rwlock.h (gtm_rwlock): Same.
1308 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1310 2011-08-12 Torvald Riegel <triegel@redhat.com>
1312 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1314 (gtm_rwlock::read_unlock): Same.
1315 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1316 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1317 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1318 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1319 w_upgrade. Replaced by per-transaction flags (in shared_state).
1320 Added c_confirmed_writers.
1321 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1322 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1323 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1324 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1325 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1326 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1327 * libitm.texi: Document locking conventions and implementations in
1330 2011-08-12 Torvald Riegel <triegel@redhat.com>
1332 * libitm_i.h (next_tx): Add list of all threads' transaction.
1333 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1334 transaction with list of transactions and ...
1335 (thread_exit_handler): ... deregister here.
1336 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1337 * config/x86/target.h: Same.
1339 2011-08-12 Torvald Riegel <triegel@redhat.com>
1341 * testsuite/libitm.c++/static_ctor.C: New file.
1343 2011-08-12 Torvald Riegel <triegel@redhat.com>
1345 * testsuite/libitm.c/reentrant.c: New file.
1347 2011-08-12 Torvald Riegel <triegel@redhat.com>
1349 * config/generic/tls.h: Remove the free list for transactions and ...
1350 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1351 (GTM::gtm_transaction::operator delete): ... and release here.
1352 (thread_exit_handler): New. Delete tx when thread terminates.
1353 (thread_exit_init): New.
1354 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1355 * testsuite/libitm.c/txrelease.c: New file.
1357 2011-08-12 Torvald Riegel <triegel@redhat.com>
1359 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1360 * testsuite/libitm.c/notx.c: New file.
1362 2011-08-12 Torvald Riegel <triegel@redhat.com>
1364 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1365 * libitm_i.h (local_tid): ... to here.
1366 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1367 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1369 2011-08-12 Torvald Riegel <triegel@redhat.com>
1371 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1372 serialirr_onwrite_dispatch as new default for now.
1373 * method-serial.cc (serialirr_onwrite_dispatch): New.
1374 (GTM::dispatch_serialirr_onwrite): New.
1377 2011-08-12 Torvald Riegel <triegel@redhat.com>
1379 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1380 * query.cc (_ITM_getTransactionId): There is no active transaction if
1381 the current nesting level is zero.
1383 2011-07-28 Torvald Riegel <triegel@redhat.com>
1385 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1388 2011-07-28 Torvald Riegel <triegel@redhat.com>
1390 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1391 transaction properties from the caller instead of from the
1394 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1396 2011-07-28 Torvald Riegel <triegel@redhat.com>
1398 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1399 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1401 * method-serial.cc: Same.
1402 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1403 flat nesting as default, and closed nesting on demand.
1404 (GTM::gtm_transaction::rollback): Same.
1405 (_ITM_abortTransaction): Same.
1406 (GTM::gtm_transaction::restart): Same.
1407 (GTM::gtm_transaction::trycommit): Same.
1408 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1409 (choose_code_path): New.
1410 (GTM::gtm_transaction_cp::save): New.
1411 (GTM::gtm_transaction_cp::commit): New.
1412 * query.cc (_ITM_inTransaction): Support flat nesting.
1413 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1414 (GTM::gtm_transaction): Support flat and closed nesting.
1415 * alloc.cc (commit_allocations_2): New.
1416 (commit_cb_data): New helper struct.
1417 (GTM::gtm_transaction::commit_allocations): Handle nested
1419 * libitm.texi: Update user action section, add description of nesting.
1421 2011-07-28 Torvald Riegel <triegel@redhat.com>
1423 * libitm_i.h: Add closed nesting as restart reason.
1424 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1426 2011-07-28 Torvald Riegel <triegel@redhat.com>
1428 * useraction.cc: Use vector instead of list to store actions.
1429 Also support partial rollbacks for closed nesting.
1430 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1431 * beginend.cc: Same.
1433 2011-07-28 Torvald Riegel <triegel@redhat.com>
1435 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1436 closed_nesting flags, as well as a closed nesting alternative.
1437 * method-serial.cc: Same.
1438 (serial_dispatch): Renamed to serialirr_dispatch.
1439 (GTM::dispatch_serialirr): Same.
1440 (serial_dispatch_ul): Renamed to serial_dispatch.
1441 (GTM::dispatch_serial): Same.
1443 2011-07-28 Torvald Riegel <triegel@redhat.com>
1445 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1447 2011-07-28 Torvald Riegel <triegel@redhat.com>
1449 * aatree.h (aa_tree::remove): New.
1450 (aa_tree::operator new): Add placement new.
1452 2011-07-02 Torvald Riegel <triegel@redhat.com>
1454 * containers.h: New file.
1455 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1456 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1457 * common.h: ... to here.
1458 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1461 2011-06-30 Torvald Riegel <triegel@redhat.com>
1463 * libitm_i.h (STATE_ABORTING): Remove.
1464 * beginend.cc (_ITM_abortTransaction): Same.
1465 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1466 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1467 (_ITM_rollbackTransaction): Remove.
1468 * beginend.cc: Same.
1470 * libitm.texi: Document these ABI changes.
1472 2011-06-30 Torvald Riegel <triegel@redhat.com>
1474 * libitm.texi: New file.
1475 * Makefile.am: Add libitm.texi.
1476 * Makefile.in: Rebuild.
1478 2011-06-30 Torvald Riegel <triegel@redhat.com>
1480 * libitm_i.h: Move parts to common.h and dispatch.h.
1481 * common.h: New file.
1482 * dispatch.h: New file, new dispatch class.
1483 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1484 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1485 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1486 decision to retry.cc.
1487 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1489 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1490 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1492 * barrier.cc: Use new barriers definitions.
1493 (abi_dispatch::memmove_overlap_check): New.
1494 * config/x86/x86_sse.cc: Same.
1495 * config/x86/x86_avx.cc: Same.
1496 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1498 * Makefile.in: Rebuild.
1499 * method-readonly.cc: Remove.
1500 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1501 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1503 2011-06-30 Torvald Riegel <triegel@redhat.com>
1505 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1506 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1507 * testsuite/libitm.c/dropref-2.c: Same.
1508 * testsuite/libitm.c/dropref.c: Same.
1510 2011-06-30 Torvald Riegel <triegel@redhat.com>
1512 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1513 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1514 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1516 * barrier.tpl: Same.
1518 * config/generic/tls.h: Same.
1519 * config/x86/tls.h: Same.
1523 * method-readonly.cc: Same.
1524 * method-serial.cc: Same.
1525 * method-wbetl.cc: Same.
1528 2011-03-03 Richard Henderson <rth@redhat.com>
1530 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1531 From Patrik Marlier <patrick.marlier@unine.ch>.
1533 2011-02-03 Richard Henderson <rth@redhat.com>
1535 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1536 * configure.ac: Use it.
1537 * configure, config.h.in: Rebuild.
1538 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1539 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1540 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1541 * libitm.map: Use wildcards to match size_t mangling.
1543 2010-12-14 Richard Henderson <rth@redhat.com>
1545 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1546 blocks of TIDs per thread.
1547 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1548 (setup_gtm_thr): Return the thread structure.
1549 * config/x86/tls.h (setup_gtm_thr): Likewise.
1551 2010-12-14 Richard Henderson <rth@redhat.com>
1553 * clone.cc (table_lock): Remove.
1554 (find_clone): Don't take it.
1555 (ExcludeTransaction): New helper class.
1556 (_ITM_registerTMCloneTable): Use it.
1557 (_ITM_deregisterTMCloneTable): Likewise.
1559 2010-12-14 Richard Henderson <rth@redhat.com>
1561 * config/x86/tls.h: New file.
1563 2010-07-15 Richard Henderson <rth@redhat.com>
1565 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1566 * Makefile.in: Rebuild.
1568 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1570 * method-wbetl.cc (trydropreference): Fix source line.
1572 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1574 * libitm.h: Add comment.
1575 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1577 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1579 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1580 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1581 available, use pthread mutexes.
1582 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1583 * config.h.in: Regenerate.
1584 * configure: Regenerate.
1586 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1588 * libitm.h (ITM_PURE): Define.
1589 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1591 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1593 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1594 (validate): Add comment.
1595 (trydropreference): New.
1596 * method-readonly.cc (class readonly_dispatch): Add
1598 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1599 Call trydropreference().
1600 * libitm.h (_ITM_dropReferences): Remove const attribute.
1601 * method-serial.cc (class serial_dispatch): Add trydropreference.
1602 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1604 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1606 * memcpy.cc (do_memcpy): Comment.
1608 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1610 * barrier.tpl: Add comments throughout.
1612 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1614 * method-wbetl.cc (struct w_entry): Add comments.
1618 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1620 * alloc_c.cc (_ITM_dropReferences): New.
1621 * libitm.map (_ITM_dropReferences): Add.
1622 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1623 * libitm_i.h (struct gtm_transaction): Declare
1624 drop_references_allocations and drop_references_local.
1625 * local.cc (rollback_local): Ignore memory when applicable.
1626 (drop_references_local): New.
1628 2010-06-23 Richard Henderson <rth@redhat.com>
1630 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1631 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1632 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1633 * config/alpha/target.h: Likewise.
1634 * config/generic/tls.cc (gtm_mask_stack): Use it.
1636 2010-06-23 Richard Henderson <rth@redhat.com>
1638 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1639 a mutex instead of trying a lock-free compare-and-swap on the list.
1640 (gtm_cacheline_page::operator delete): Likewise.
1642 2010-06-16 Richard Henderson <rth@redhat.com>
1644 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1645 that overlap the libitm stack.
1646 * barrier.tpl: Mark incoming stack.
1647 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1648 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1649 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1650 * memcpy.cc, memset.cc: Likewise.
1651 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1652 * config/generic/tls.h (gtm_thread): Add stack_top member.
1653 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1654 * libitm_i.h (gtm_mask_stack): Declare.
1655 * config/generic/tls.cc: New file.
1656 * Makefile.am (libitm_la_SOURCES): Add it.
1657 (AM_CXXFLAGS): Turn off exceptions.
1658 * Makefile.in: Rebuild.
1660 2010-06-16 Richard Henderson <rth@redhat.com>
1662 * alloc.cc (struct gtm_alloc_action): Move definition ...
1663 * libitm_i.h: ... here.
1664 (class gtm_transaction): Declare new and delete.
1665 * beginend.cc (alloc_tx): Reformulate as operator new.
1666 (free_tx): Reformulate as operator delete.
1667 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1669 2010-06-11 Richard Henderson <rth@redhat.com>
1671 * clone.cc (clone_entry_compare): Fix typo.
1672 From Patrik Marlier <patrick.marlier@unine.ch>.
1674 2010-05-13 Richard Henderson <rth@redhat.com>
1676 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1679 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1681 * libitm_i.h (struct gtm_transaction): Remove
1682 get_allocation_size.
1683 (record_allocation): Remove size parameter.
1684 * libitm.map (_ITM_realloc): Remove.
1685 * alloc_c.cc (_ITM_realloc): Remove.
1686 (_ITM_malloc): Remove size argument to record_allocation.
1687 (_ITM_calloc): Same.
1688 * alloc_cpp.cc (_ZGTtnwm): Same.
1689 (_ZGTtnwmRKSt9nothrow_t): Same.
1691 (_ZGTtnamRKSt9nothrow_t): Same.
1692 * alloc.cc (struct gtm_alloc_action): Remove size.
1693 (get_allocation_size): Remove.
1694 (commit_allocations): Add comment.
1695 (record_allocation): Remove size parameter.
1696 (forget_allocation): Remove set of size.
1698 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1700 * Makefile.am (abi_version): New.
1701 (AM_CXXFLAGS): Pass abi_version.
1702 * Makefile.in: Regenerate.
1703 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1705 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1707 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1708 _ITM_getTMCloneOrIrrevokable.
1709 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1710 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1712 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1714 * configure.ac: Remove Linux futex support.
1715 * configure.tgt (config_path): Same.
1716 * Makefile.am: Same.
1717 * config/linux: Remove entire directory.
1718 * configure: Rebuild.
1719 * Makefile.in: Rebuild.
1720 * testsuite/Makefile.in: Rebuild.
1722 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1724 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1725 switching to serial mode.
1726 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1728 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1730 * configure.tgt: Add emacs -*- tags.
1731 * barrier.tpl: Same.
1733 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1735 * Makefile.am: Rename serial.cc to method-serial.cc.
1736 * Makefile.in: Regenerate with automake 1.11.1.
1737 * testsuite/Makefile.in: Same.
1738 * aclocal.m4: Regenerate with aclocal 1.11.1.
1739 * method-serial.cc: Rename from serial.cc.
1740 * libitm_i.h (struct gtm_transaction): Update comment on
1743 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1745 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1746 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1748 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1750 * configure: Rebuild.
1752 2009-11-12 Richard Henderson <rth@redhat.com>
1754 * Rewrite everything in C++.
1756 2009-11-03 Richard Henderson <rth@redhat.com>
1758 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1759 * Makefile.am (libitm_la_SOURCES): Add them.
1760 * configure.ac (ARCH_X86): New conditional.
1761 * Makefile.in, configure: Rebuild.
1762 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1763 Move futex setup into "other system configury" case.
1764 * local.c (rollback_local): Merge into ...
1765 (GTM_rollback_local): ... here.
1766 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1767 (_ITM_LB): Define as an alias to GTM_LB.
1769 2009-11-03 Richard Henderson <rth@redhat.com>
1771 * method-readonly.c: New file.
1772 * Makefile.am (libitm_la_SOURCES): Add it.
1773 * Makefile.in: Rebuild.
1774 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1775 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1776 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1777 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1778 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1779 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1780 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1781 gtm_get_clock, gtm_inc_clock): New.
1782 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1783 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1784 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1785 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1786 replace uses with new libitm_i.h symbols.
1787 (dispatch_wbetl): Rename from wbetl_dispatch.
1788 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1789 away from dispatch_readonly; abort if the beginTransaction call
1790 asserted that the transaction was readonly.
1792 2009-11-03 Richard Henderson <rth@redhat.com>
1794 * memset.c: New file.
1795 * Makefile.am (libitm_la_SOURCES): Add it.
1796 * Makefile.in: Rebuild.
1797 * testsuite/libitm.c/memset-1.c: New.
1799 2009-11-03 Richard Henderson <rth@redhat.com>
1801 * dispatch.c: Remove file.
1802 * useraction.c (struct gtm_user_action): Move from libitm.h.
1803 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1804 (serial_memset, serial_memmove, serial_memcpy): Remove.
1805 (serial_W*, serial_R*): Remove.
1806 (serial_dispatch): Update to match.
1807 * configure.ac: Move Werror down below configure checks. Don't
1808 check for sys/loadavg.h, do check for malloc.h. Don't check for
1809 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1810 Use GCC_AC_FUNC_MMAP_BLACKLIST
1811 * libitm.h: Split out all internal items to...
1812 * libitm_i.h: ... here. New file.
1813 * copymask.c: New file.
1814 * local.c (struct gtm_local_undo): Move from libitm.h.
1815 (GTM_alloc_local): Rename from alloc_local; export.
1816 * memcpy.c: New file.
1817 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1818 * config/posix/page.c: New file.
1819 * config/posix/target_tls.h: Remove file.
1820 * barrier.c: New file.
1821 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1823 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1824 * method-wbetl.c: Rewrite for new cacheline methods.
1825 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1827 * config/alpha/sjlj.S: Fix typo.
1828 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1829 * config/alpha/copymask.c: New file.
1830 * config/alpha/target.h (CACHELINE_SIZE): New.
1831 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1833 * config/x86/target_i.h: Copy functions from x86/target.h.
1834 * config/x86/copymask.c: New file.
1835 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1836 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1837 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1838 * config/x86/target_tls.h: Move contents to target_i.h.
1840 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1841 * testsuite/libitm.c/memcpy-1.c: New.
1843 2009-10-22 Richard Henderson <rth@redhat.com>
1845 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1846 (AM_CCASFLAGS): New.
1847 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1848 saving/restoring _AC_ARG_VAR_PRECIOUS.
1849 * Makefile.in, aclocal.m4, config.h.in, configure,
1850 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1852 2009-10-22 Richard Henderson <rth@redhat.com>
1854 * testsuite/*: Update for new compiler syntax.
1856 2009-10-21 Richard Henderson <rth@redhat.com>
1858 * libitm.h (_ITM_abortReason): Add outerAbort.
1860 2009-08-03 Richard Henderson <rth@redhat.com>
1862 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1863 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1864 * method-wbetl.c (struct w_entry): Remove mask.
1865 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1868 2009-07-22 Richard Henderson <rth@redhat.com>
1870 * eh_cpp.c: New file.
1871 * Makefile.am (libitm_la_SOURCES): Add it.
1872 * Makefile.in: Rebuild.
1873 * beginend.c (GTM_rollback_transaction): Undo exception state.
1874 (GTM_trycommit_transaction): Mark inline.
1875 (GTM_trycommit_and_finalize_transaction): Split out from ...
1876 (_ITM_commitTransaction): ... here.
1877 (_ITM_commitTransactionEH): New function.
1878 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1879 cxa_unthrown, eh_in_flight; reorder.
1881 * testsuite/libitm.c++/c++.exp: New.
1882 * testsuite/libitm.c++/eh-1.C: New.
1884 * aatree.c (aa_free): Remove REGPARM.
1885 * aatree.h: Remove all REGPARM.
1887 2009-07-18 Richard Henderson <rth@redhat.com>
1889 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1890 * Makefile.am (libitm_la_SOURCES): Add them.
1891 * Makefile.in: Rebuild.
1892 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1893 (GTM_trycommit_transaction): Likewise.
1894 * libitm.h: Include aatree.h
1895 (struct gtm_alloc_action): New.
1896 (struct gtm_transaction): Add alloc_actions.
1897 (GTM_record_allocation, GTM_forget_allocation): Declare.
1898 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1899 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1900 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1901 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1902 _ZGTtdaPvRKSt9nothrow_t): Export.
1904 2009-07-18 Richard Henderson <rth@redhat.com>
1906 * target_tls.h: Move ...
1907 * config/posix/target_tls.h: ... here.
1909 2009-07-07 Richard Henderson <rth@redhat.com>
1911 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1913 2009-07-07 Richard Henderson <rth@redhat.com>
1917 2009-07-07 Richard Henderson <rth@redhat.com>
1919 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1920 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1922 * configure.tgt: Don't use -ftls-model for x86 linux.
1923 * libitm.h: Include target.h after standard includes.
1924 (_gtm_thr): Rename from gtm_thr.
1925 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1926 (gtm_disp, set_gtm_disp): New.
1927 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1928 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1929 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1931 2009-07-07 Richard Henderson <rth@redhat.com>
1933 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1935 2009-07-06 Richard Henderson <rth@redhat.com>
1937 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1938 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1939 (_ITM_beginTransaction): Take variadic arguments.
1940 (_ITM_registerThrownObject): Declare.
1941 * beginend.c, serial.c: Update.
1942 * libitm.map: Add _ITM_registerThrownObject.
1944 2009-01-28 Richard Henderson <rth@redhat.com>
1946 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1947 * Makefile.in: Rebuild.
1948 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1949 (GTM_restart_transaction): Fix uninstrumented code check.
1950 * retry.c (GTM_decide_retry_strategy): Add serial check.
1951 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1952 automatically go irrevokable when in serial mode.
1953 * clone.c: New file.
1954 * libitm.h, libitm.map: Update.
1956 2009-01-27 Richard Henderson <rth@redhat.com>
1958 * Makefile.am (LTCCASCOMPILE): Define.
1959 (libitm_la_SOURCES): Add methid-wbetl.c.
1960 * testsuite/Makefile.am: New
1961 * configure.ac: Add testsuite/Makefile.
1962 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1963 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1964 (_ITM_abortTransaction): Finalize implementation method; pass
1965 transaction properties to longjmp.
1966 (GTM_restart_transaction): Split out from ...
1967 (_ITM_commitTransaction): ... here.
1968 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1969 Move to config/x86/target.h.
1970 * config/linux/alpha/futex_bits.h: New.
1971 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1972 * config/x86/target.h: Disable target types for 32-bit.
1973 * config/alpha/sjlj.S, config/alpha/target.h: New.
1974 * libitm.h (struct gtm_dispatch): Add init, fini.
1975 (enum restart_reason): New.
1976 (struct gtm_transaction): Add method and restarts.
1977 * retry.c (GTM_decide_retry_strategy): Implement.
1978 * serial.c (serial_init, serial_fini): New.
1979 (GTM_serialmode): Finialize outgoing method.
1980 * method-wbetl.c: New.
1982 2008-12-09 Richard Henderson <rth@redhat.com>
1984 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1985 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1986 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1987 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1988 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1989 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1990 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1991 * serial.c (serial_R##T, serial_W##T): Likewise.
1993 2008-11-21 Richard Henderson <rth@redhat.com>
1997 Copyright (C) 2008-2016 Free Software Foundation, Inc.
1999 Copying and distribution of this file, with or without modification,
2000 are permitted in any medium without royalty provided the copyright
2001 notice and this notice are preserved.