1 2016-04-27 Release Manager
5 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
7 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
8 function attribute to disable floating point in begin_transaction() on
10 * beginend.cc (begin_transaction): Use
11 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
13 2016-01-22 Torvald Riegel <triegel@redhat.com>
15 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
17 (htm_fastpath): Remove.
18 (gtm_thread::begin_transaction): Fix HTM fastpath.
19 (_ITM_commitTransaction): Adapt.
20 (_ITM_commitTransactionEH): Adapt.
21 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
23 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
24 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
25 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
26 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
27 * libitm/method-serial.cc (htm_mg): Adapt.
28 (gtm_thread::serialirr_mode): Adapt.
29 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
31 2016-01-21 Torvald Riegel <triegel@redhat.com>
33 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
36 2016-01-19 Richard Henderson <rth@redhat.com>
41 2016-01-13 Richard Henderson <rth@redhat.com>
43 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
44 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
45 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
46 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
47 * configure.ac (ARCH_AARCH64): New conditional.
48 (ARCH_PPC, ARCH_S390): Likewise.
49 * Makefile.in, configure: Rebuild.
51 * libitm.h (_ITM_TYPE_M128): Always define.
52 * vect64.cc: Split ...
53 * vect128.cc: ... out of...
54 * config/x86/x86_sse.cc: ... here.
55 * config/arm/neon.cc: New file.
57 2016-01-19 Torvald Riegel <triegel@redhat.com>
59 * local_type_traits: Remove file.
60 * libitm_i.h: Don't include it anymore.
61 (sized_integral): Remove.
63 2016-01-16 Torvald Riegel <triegel@redhat.com>
65 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
67 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
68 * libitm/testsuite/libitm.c/priv-1.c: New.
70 2015-01-15 Torvald Riegel <triegel@redhat.com>
72 testsuite/libitm.c++/libstdc++-safeexc.C: New.
74 2016-01-13 Torvald Riegel <triegel@redhat.com>
76 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
77 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
78 (gtm_rwlock::write_unlock): Likewise.
80 2016-01-13 Richard Henderson <rth@redhat.com>
82 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
83 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
84 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
85 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
86 * configure.ac (ARCH_AARCH64): New conditional.
87 (ARCH_PPC, ARCH_S390): Likewise.
88 * Makefile.in, configure: Rebuild.
90 * libitm.h (_ITM_TYPE_M128): Always define.
91 * vect64.cc: Split ...
92 * vect128.cc: ... out of...
93 * config/x86/x86_sse.cc: ... here.
94 * config/arm/neon.cc: New file.
96 2016-01-13 Torvald Riegel <triegel@redhat.com>
98 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
99 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
100 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
101 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
102 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
103 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
104 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
105 (serialirr_dispatch::snapshot_most_recent): New.
106 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
108 2016-01-12 Torvald Riegel <triegel@redhat.com>
110 * libitm_i.h (gtm_mask_stack): Remove.
111 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
112 * stmlock.h: Remove file.
113 * config/alpha/cacheline.h: Likewise.
114 * config/generic/cacheline.h: Likewise.
115 * config/powerpc/cacheline.h: Likewise.
116 * config/sparc/cacheline.h: Likewise.
117 * config/x86/cacheline.h: Likewise.
119 2016-01-04 Jakub Jelinek <jakub@redhat.com>
121 Update copyright years.
123 * libitm.texi: Bump @copying's copyright year.
125 2015-11-26 Torvald Riegel <triegel@redhat.com>
127 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
128 (ml_wt_dispatch::pre_write): Adapt.
129 (ml_wt_dispatch::pre_load): Likewise.
131 2015-11-22 Torvald Riegel <triegel@redhat.com>
133 * libitm_i.h (gtm_alloc_action): Remove union.
134 * testsuite/libitm.c/alloc-1.c: New.
136 2015-11-19 Torvald Riegel <triegel@redhat.com>
138 * testsuite/libitm.c++/eh-5.C: New.
139 * libitm.h (_ITM_cxa_free_exception): New.
140 * libitm.map (_ITM_cxa_free_exception): Add it.
141 * libitm.texi: Update ABI docs.
142 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
143 (gtm_transaction_cp::cxa_uncaught_count): Add.
144 (gtm_thread::cxa_unthrown): Remove.
145 (gtm_thread::cxa_uncaught_count_ptr): Add.
146 (gtm_thread::cxa_uncaught_count): Add.
147 (gtm_thread::drop_references_allocations): Rename to...
148 (gtm_thread::discard_allocation): ... this and adapt.
149 (gtm_thread::init_cpp_exceptions): New.
150 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
151 (gtm_thread::begin_transaction): Likewise.
152 (gtm_transaction_cp::save): Likewise.
153 (gtm_thread::trycommit): Likewise.
154 * eh_cpp.cc: Add overview comments.
155 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
156 (free_any_exception, _ITM_cxa_free_exception): New.
157 (gtm_thread::init_cpp_exceptions): Define.
158 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
159 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
160 (gtm_thread::revert_cpp_exceptions): Likewise.
162 2015-11-09 Torvald Riegel <triegel@redhat.com>
164 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
165 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
166 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
167 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
168 (gtm_thread::forget_allocations): New overload with size_t argument.
169 * alloc.c (gtm_thread::forget_allocation): Define new overload and
171 (gtm_thread::record_allocation): Adapt.
172 (gtm_thread::commit_allocations_1): Adapt.
173 (gtm_thread::commit_allocations_2): Adapt.
174 * testsuite/libitm.c++/newdelete.C: New.
176 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
177 Joseph Myers <joseph@codesourcery.com>
178 Mark Shinwell <shinwell@codesourcery.com>
179 Andrew Stubbs <ams@codesourcery.com>
180 Rich Felker <dalias@libc.org>
182 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
183 GTM_begin_transaction for compatibility with FDPIC.
185 2015-10-09 David Malcolm <dmalcolm@redhat.com>
187 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
190 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
193 * local_atomic (__always_inline): Rename to...
194 (__libitm_always_inline): ... this.
196 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
199 * config/powerpc/sjlj.S: Port to Xcode 2.5.
201 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
203 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
204 operands "op" and "val" to int.
206 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
208 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
209 "op" and "val" to int.
211 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
213 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
214 "op" and "val" to int.
216 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
218 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
219 Declare as static int.
220 (FUTEX_PRIVATE_FLAG): Remove L suffix.
221 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
223 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
225 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
228 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
230 * Makefile.in: Regenerated with automake-1.11.6.
231 * aclocal.m4: Likewise.
232 * configure: Likewise.
233 * testsuite/Makefile.in: Likewise.
235 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
237 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
238 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
240 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
243 * libitm.c/stackundo.c (test2): Make it static.
246 2015-01-05 Jakub Jelinek <jakub@redhat.com>
248 Update copyright years.
250 2015-01-05 Jakub Jelinek <jakub@redhat.com>
252 * libitm.texi: Bump @copying's copyright year.
254 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
256 * testsuite/lib/libitm.exp: Load target-utils.exp.
257 Move load of target-supports.exp earlier.
259 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
261 * configure.tgt (x86_64): Tune -m32 multilib to generic.
263 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
266 * configure: Regenerated.
268 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
271 * configure: Regenerate.
273 2014-10-06 Marek Polacek <polacek@redhat.com>
275 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
276 * testsuite/libitm.c/memset-1.c: Likewise.
278 2014-07-24 Richard Henderson <rth@redhat.com>
280 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
281 addressing mode in epilogue.
283 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
285 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
286 -mclear-hwcap instead.
287 * configure: Regenerate.
288 * clearcap.map: Remove.
290 2014-05-21 John Marino <gnugcc@marino.st>
292 * configure.tgt (*-*-dragonfly*): New target.
294 2014-05-19 Richard Henderson <rth@redhat.com>
296 * config/aarch64/sjlj.S: New file.
297 * config/aarch64/target.h: New file.
298 * configure.tgt: Enable aarch64.
300 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302 * config/generic/asmcfi.h: Also check for
303 __GCC_HAVE_DWARF2_CFI_ASM.
305 2013-04-02 Richard Henderson <rth@redhat.com>
307 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
308 * config/arm/target.h, config/sh/target.h: Likewise.
309 * config/sparc/target.h, config/x86/target.h: Likewise.
311 2014-03-26 Jakub Jelinek <jakub@redhat.com>
313 * config/linux/futex_bits.h: Include errno.h.
314 (sys_futex0): If syscall returns -1, return -errno rather than
317 2014-03-26 Joseph Myers <joseph@codesourcery.com>
319 * libitm.texi (Index): Rename to Library Index.
321 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
324 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
325 (x86_avx.lo): Append -mavx to CXXFLAGS.
326 * Makefile.in: Regenerate.
328 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
330 Update copyright years
332 2014-01-02 Tobias Burnus <burnus@net-b.de>
334 * libitm.texi: Bump @copying's copyright year.
336 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
338 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
339 (FUNC): Define ELFv2 variant.
346 2013-09-20 Alan Modra <amodra@gmail.com>
348 * configure: Regenerate.
350 2013-08-30 Torvald Riegel <triegel@redhat.com>
352 * config/posix/rwlock.cc: Fix initialization order.
354 2013-08-30 Torvald Riegel <triegel@redhat.com>
356 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
357 (htm_fastpath): Assign an asm name.
358 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
360 (_ITM_actions): Likewise.
361 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
363 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
364 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
365 field to the start of the structure.
366 * config/linux/rwlock.h (gtm_rwlock): Update comments.
367 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
368 handling for custom HTM fast paths.
370 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
372 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
374 * configure.tgt: Add -msoft-float to XCFLAGS.
376 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
378 * configure.tgt: Add -msoft-float to XCFLAGS.
380 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
382 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
383 (htm_transaction_active): Enable zEC12 instructions in the
385 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
387 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
389 * acinclude.m4: Add htm asm check for s390.
390 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
391 * configure: Regenerate.
392 * config/s390/target.h: Remove __HTM__ check.
393 (htm_available): Call getauxval to get hwcaps and check whether
394 HTM is available or not.
396 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
398 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
399 * configure.ac: Use it.
400 (AC_CHECK_HEADERS): Check for sys/auxv.h.
401 (AC_CHECK_FUNCS): Check for getauxval.
402 * config.h.in, configure: Rebuild.
403 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
404 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
405 (USE_HTM_FASTPATH): Define.
406 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
407 _HTM_RETRIES) New macros.
408 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
409 htm_begin_success, htm_commit, htm_transaction_active): New functions.
411 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
413 * config/s390/target.h: Include htmintrin.h.
414 (_HTM_ITM_RETRIES): New macro definition.
415 (htm_available, htm_init, htm_begin, htm_begin_success)
416 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
418 2013-06-20 Iain Sandoe <iain@codesourcery.com>
419 Cesar Philippidis <cesar@codesourcery.com>
421 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
422 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
423 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
424 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
426 2013-06-20 Torvald Riegel <triegel@redhat.com>
428 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
429 (_ITM_getTransactionId): Same.
430 * config/x86/target.h (htm_transaction_active): New.
432 2013-06-20 Torvald Riegel <triegel@redhat.com>
435 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
438 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
441 * local_atomic (__always_inline): Always define our version.
442 (__calculate_memory_order): Mark inline.
443 (atomic_thread_fence): Ditto.
444 (atomic_signal_fence): Ditto.
445 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
446 (atomic_bool::atomic_flag_clear_explicit): Ditto.
447 (atomic_bool::atomic_flag_test_and_set): Ditto.
448 (atomic_bool::atomic_flag_clear): Ditto.
450 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
452 * config/s390/sjlj.S: New file.
453 * config/s390/target.h: New file.
454 * configure.tgt: Set options for S/390.
456 2013-03-23 Andi Kleen <ak@linux.intel.com>
458 * local_atomic (__always_inline): Add.
459 (__calculate_memory_order, atomic_thread_fence,
460 atomic_signal_fence, test_and_set, clear, store, load,
461 exchange, compare_exchange_weak, compare_exchange_strong,
462 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
463 Add __always_inline to force inlining.
465 2013-02-11 Iain Sandoe <iain@codesourcery.com>
466 Jack Howarth <howarth@bromo.med.uc.edu>
467 Patrick Marlier <patrick.marlier@gmail.com>
470 * alloc_cpp.cc: Enable function declarations on darwin.
471 * eh_cpp.cc: Likewise.
473 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
475 Update copyright years.
477 2012-11-09 Torvald Riegel <triegel@redhat.com>
479 * beginend.cc (htm_fastpath): New.
480 (gtm_thread::begin_transaction, _ITM_commitTransaction,
481 _ITM_commitTransactionEH): Add HTM fastpath handling.
482 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
483 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
484 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
485 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
486 * configure.tgt: Add -mrtm to XCFLAGS.
487 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
488 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
489 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
490 * retry.cc (parse_default_method): Add HTM method parsing.
491 (gtm_thread::number_of_threads_changed): Use HTM by default if
494 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
496 * configure: Regenerate.
498 2012-10-31 Richard Henderson <rth@redhat.com>
500 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
501 * configure.ac: Use it.
502 * config.h.in, configure: Rebuild.
503 * testsuite/Makefile.in: Rebuild.
505 2012-10-24 Torvald Riegel <triegel@redhat.com>
507 * libitm.texi: Clarify ABI requirements for data-logging functions.
509 2012-10-24 Torvald Riegel <triegel@redhat.com>
511 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
512 it requires serial mode instead of assuming that for certain
514 * dispatch.h (abi_dispatch::requires_serial): New.
515 (abi_dispatch::abi_dispatch): Adapt.
516 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
517 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
518 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
519 serial_dispatch::serial_dispatch,
520 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
522 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
524 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
525 and ia32 declarations some more.
526 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
528 2012-09-20 Jakub Jelinek <jakub@redhat.com>
531 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
532 * configure: Regenerate.
533 * Makefile.in: Regenerate.
535 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
537 * configure: Regenerated.
539 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
541 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
543 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
545 * eh_cpp.cc: Fix __cxa_end_catch declaration.
547 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
549 * configure: Regenerated.
551 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
554 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
557 2012-04-03 Tristan Gingold <gingold@adacore.com>
559 * configure: Regenerate.
561 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
564 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
566 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
568 * testsuite/lib/libitm.exp: load fortran-modules.exp
570 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
572 * configure.tgt (*-*-irix6*): Remove.
574 2012-03-13 Torvald Riegel <triegel@redhat.com>
577 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
580 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
582 * configure.tgt (*-*-osf*): Remove.
583 * configure: Regenerate.
585 2012-03-05 Torvald Riegel <triegel@redhat.com>
587 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
588 memtransfer/memset if size isn't larger than zero.
590 2012-03-02 Torvald Riegel <triegel@redhat.com>
592 * libitm.texi: Link to specification and add a usage example.
594 2012-02-24 Torvald Riegel <triegel@redhat.com>
596 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
597 default dispatch for more than 1 thread to ml_wt.
599 2012-02-20 Torvald Riegel <triegel@redhat.com>
601 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
603 2012-02-20 Torvald Riegel <triegel@redhat.com>
605 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
607 2012-02-20 Torvald Riegel <triegel@redhat.com>
609 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
610 serial mode corner cases made obsolete by prior gtm_rwlock changes.
611 (gl_wt_dispatch.rollback): Same.
613 2012-02-20 Torvald Riegel <triegel@redhat.com>
615 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
617 2012-02-20 Torvald Riegel <triegel@redhat.com>
619 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
620 for RfW src. Optimize number of calls to gtm_thr.
622 2012-02-20 Torvald Riegel <triegel@redhat.com>
624 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
626 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
627 (default_dispatch): Make atomic.
628 (GTM::gtm_thread::set_default_dispatch): Access atomically.
629 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
630 use decide_begin_dispatch() if default_dispatch might have changed.
631 (GTM::gtm_thread::number_of_threads_changed): Initialize
632 default_dispatch here.
634 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
635 Patrick Marlier <patrick.marlier@gmail.com>
638 * alloc_cpp.cc: No dummy definitions for darwin.
639 * eh_cpp.cc: Likewise.
641 2012-02-14 Richard Henderson <rth@redhat.com>
643 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
645 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
647 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
649 2012-02-14 Torvald Riegel <triegel@redhat.com>
651 * libitm_i.h (GTM::gtm_rwlog_entry): New.
652 (GTM::gtm_thread): Add read and write logs.
653 (GTM::dispatch_ml_wt): Declare.
654 * retry.cc (parse_default_method): Support ml_wt.
655 * method-ml.cc: New file.
656 * Makefile.am: Add method-ml.cc.
657 * Makefile.in: Regenerate.
659 2012-02-14 Torvald Riegel <triegel@redhat.com>
661 * dispatch.h (GTM::abi_dispatch::supports): New.
662 (GTM::method_group::reinit): New.
663 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
664 (GTM::gtm_thread::number_of_threads_changed): Check that the method
665 supports the current situation.
667 2012-02-14 Torvald Riegel <triegel@redhat.com>
669 * util.cc (GTM::xcalloc): New.
670 * common.h (GTM::xcalloc): Declare.
672 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
674 * config/sparc/target.h (cpu_relax): Read from CC register.
675 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
677 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
679 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
681 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
683 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
684 * config/sparc/cacheline.h: New file.
685 * config/sparc/target.h: Likewise.
686 * config/sparc/sjlj.S: Likewise.
687 * config/linux/sparc/futex_bits.h: Likewise.
689 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
691 * configure.ac (link_itm): Fix comment.
692 * configure: Regenerate.
693 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
695 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
699 Correct libgomp references.
701 2012-01-24 Torvald Riegel <triegel@redhat.com>
703 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
706 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
708 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
710 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
711 offset values. Do not copy return address. Decrement stack
713 (GTM_longjump) [__x86_64__]: Update offset values.
715 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
718 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
719 the first function argument to %eax.
721 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
723 * libitm.h (_ITM_getThreadnum): Remove.
724 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
726 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
728 * clearcap.map: New file.
729 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
730 * configure.ac: Call it.
731 Clear HWCAP_LDFLAGS if defaulting to -mavx.
732 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
733 * configure: Regenerate.
734 * Makefile.in: Regenerate.
735 * testsuite/Makefile.in: Regenerate.
737 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
740 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
741 include, exclude options.
743 2012-01-14 Torvald Riegel <triegel@redhat.com>
745 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
747 * containers.h (GTM::vector::set_size): New.
749 2012-01-14 Torvald Riegel <triegel@redhat.com>
752 * config/generic/tls.h (GTM::mask_stack_top): New.
753 (GTM::mask_stack_bottom): Declare.
754 * config/generic/tls.c (GTM::mask_stack_bottom): New.
755 * local.cc (gtm_undolog::rollback): Filter out any updates that
756 overlap the libitm stack. Add current transaction as parameter.
757 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
758 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
759 * testsuite/libitm.c/stackundo.c: New test.
761 2012-01-10 Richard Henderson <rth@redhat.com>
763 * libitm_i.h (_Unwind_DeleteException): Declare weak.
764 * eh_cpp.cc (_Unwind_DeleteException): Define for
765 !HAVE_ELF_STYLE_WEAKREF.
767 2012-01-08 Torvald Riegel <triegel@redhat.com>
769 * local.cc (GTM_LB): Use GTM::gtm_undolog.
770 (GTM::gtm_thread::drop_references_undolog): Remove.
771 (GTM::gtm_thread::commit_undolog,
772 GTM::gtm_thread::rollback_undolog): Move to ...
773 * libitm_i.h (GTM::gtm_undolog): ...here. New.
774 (GTM::gtm_undolog_entry): Remove.
775 (GTM::gtm_thread): Adapt.
776 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
777 (GTM::gtm_thread::trycommit): Adapt.
778 * method-serial.cc (serial_dispatch::log): Adapt.
779 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
780 (gl_wt_dispatch::store): Fix likely/unlikely.
781 * containers.h (GTM::vector::resize): Add additional_capacity
782 parameter and handle it.
783 (GTM::vector::resize_noinline): New/adapt.
784 (GTM::vector::push): New.
786 2012-01-06 Richard Henderson <rth@redhat.com>
788 * configure.tgt: Support powerpc-linux and powerpc-darwin.
789 * config/linux/powerpc/futex_bits.h: New file.
790 * config/powerpc/cacheline.h: New file.
791 * config/powerpc/sjlj.S: New file.
792 * config/powerpc/target.h: New file.
793 * config/generic/asmcfi.h (cfi_offset): New.
794 (cfi_restore, cfi_undefined): New.
796 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
799 * testsuite/libitm.c/reentrant.c: Remove xfail.
800 (thread): Pass x to pure().
801 From Patrik Marlier <patrick.marlier@gmail.com>.
803 2011-12-24 Torvald Riegel <triegel@redhat.com>
805 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
806 privatization safety if already in serial mode.
808 2011-12-24 Torvald Riegel <triegel@redhat.com>
810 * beginend.cc (GTM::gtm_thread::restart): Add and handle
811 finish_serial_upgrade parameter.
812 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
813 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
814 Don't unset reader flag.
815 (GTM::gtm_rwlock::write_upgrade_finish): New.
816 * config/posix/rwlock.cc: Same.
817 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
819 * config/posix/rwlock.h: Same.
820 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
821 flag after commit or after rollback when restarting.
823 2011-12-24 Torvald Riegel <triegel@redhat.com>
825 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
826 (GTM::gtm_thread::try_commit): Changed memory order.
827 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
829 * config/linux/x86/futex_bits.h (sys_futex0): Same.
830 * config/linux/sh/futex_bits.h (sys_futex0): Same.
831 * config/linux/futex_bits.h (sys_futex0): Same.
832 * config/linux/futex.cc (futex_wait, futex_wake): Same.
833 * config/linux/futex.h (futex_wait, futex_wake): Same.
834 * config/linux/rwlock.h (gtm_rwlock::writers,
835 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
837 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
838 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
839 gtm_rwlock::write_unlock): Fix memory orders and fences.
840 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
841 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
842 gtm_rwlock::write_unlock): Same.
843 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
844 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
845 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
847 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
848 gl_wt_dispatch::load, gl_wt_dispatch::store,
849 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
850 orders and fences. Add comments.
852 2011-12-21 Jakub Jelinek <jakub@redhat.com>
854 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
855 * Makefile.in: Regenerated.
857 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
859 * configure.tgt: Add sh* case.
860 * config/sh/target.h: New file.
861 * config/sh/sjlj.S: New file.
862 * config/linux/sh/futex_bits.h: New file.
864 2011-12-14 Richard Henderson <rth@redhat.com>
866 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
867 * config/arm/sjlj.S, config/arm/target.h: New files.
868 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
869 (cfi_rel_offset): New.
870 * config/linux/futex_bits.h: New file.
871 * config/linux/futex.cc: Include futex_bits.h here...
872 * config/linux/futex.h: ... not here.
873 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
874 * configure.ac (ARCH_AM): New conditional.
875 * Makefile.in, configure: Rebuild.
876 * configure.tgt: Handle ARM.
878 2011-12-13 Richard Henderson <rth@redhat.com>
880 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
881 signed/unsigned comparison werror.
883 * local_atomic: New file.
884 * libitm_i.h: Include it.
885 (gtm_thread::shared_state): Use atomic template.
886 * beginend.cc (GTM::gtm_clock): Use atomic template.
887 (global_tid): Use atomic template if 64-bit atomics available.
888 (gtm_thread::gtm_thread): Update shared_state access.
889 (gtm_thread::trycommit): Likewise.
890 (choose_code_path): Update global_tid access.
891 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
892 * stmlock.h (GTM::gtm_clock): Use atomic template.
893 (gtm_get_clock, gtm_inc_clock): Update accesses.
894 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
895 redundant __sync_synchronize after atomic shared_state access.
896 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
897 (gtm_rwlock::write_lock_generic): Likewise.
898 (gtm_rwlock::read_unlock): Likewise.
899 * config/alpha/target.h (atomic_read_barrier): Remove.
900 (atomic_write_barrier): Remove.
901 * config/x86/target.h (atomic_read_barrier): Remove.
902 (atomic_write_barrier): Remove.
904 2011-11-30 Richard Henderson <rth@redhat.com>
906 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
907 * beginend.c (_ITM_abortTransaction): Update to match.
908 (GTM::gtm_thread::restart): Likewise.
909 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
910 * config/x86/sjlj.S (GTM_longjmp): Likewise.
912 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
914 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
915 * Makefile.in: Regenerate.
917 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
919 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
920 * alloc_cpp.cc: Generate dummy functions if we don't
921 HAVE_ELF_STYLE_WEAKREF.
922 * eh_cpp.cc: Likewise.
923 * configure: Regenerate.
924 * aclocal.m4: Likewise.
925 * config.h.in: Likewise.
926 * Makefile.in: Likewise.
927 * testsuite/Makefile.in: Likewise.
929 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
931 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
932 __USER_LABEL_PREFIX__ for targets that use it.
933 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
934 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
935 in portability to non-elf targets.
936 (GTM_longjmp): Likewise.
937 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
940 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
942 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
943 * testsuite/libitm.c/memset-1.c: Likewise.
945 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
947 * configure: Regenerate.
949 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
951 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
952 (LIBITM_ENABLE_SYMVERS): Handle sun style.
953 * Makefile.am: Handle sun style versioning.
954 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
955 * configure: Regenerate.
956 * Makefile.in: Regenerate.
958 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * config/generic/asmcfi.h: Fix comment.
961 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
962 sequence without .hidden support, error for non-ELF targets.
963 (GTM_longjmp) [__ELF__]: Only use .hidden if
964 HAVE_ATTRIBUTE_VISIBILITY.
966 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
969 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
971 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
972 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
974 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
977 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
978 * configure: Regenerate.
980 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
982 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
984 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
986 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
988 (.note.GNU-stack): Only use if __linux__.
989 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
990 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
991 * testsuite/libitm.c/reentrant.c: Likewise.
992 * testsuite/libitm.c/simple-2.c: Likewise.
993 * testsuite/libitm.c/txrelease.c: Likewise.
994 * testsuite/libitm.c++/static_ctor.C: Likewise.
996 2011-11-10 Richard Henderson <rth@redhat.com>
998 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
999 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1000 * configure.ac (ARCH_X86_AVX): New conditional.
1001 * Makefile.in, configure: Rebuild.
1003 2011-11-09 Richard Henderson <rth@redhat.com>
1005 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1006 * configure.ac: Use it.
1007 * config.h.in, configure: Rebuild.
1008 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1010 2011-11-09 Richard Henderson <rth@redhat.com>
1012 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1013 * config/alpha/unaligned.h: Remove file.
1014 * config/generic/unaligned.h: Remove file.
1015 * config/x86/unaligned.h: Remove file.
1016 * config/generic/cachepage.h: Remove file.
1017 * config/posix/cachepage.cc: Remove file.
1018 * config/generic/cacheline.cc: Remove file.
1019 * config/x86/cacheline.cc: Remove file.
1020 * config/generic/cacheline.h (gtm_cacheline): Remove the
1021 store_mask, copy_mask, copy_mask_wb methods.
1022 * config/x86/cacheline.h: Likewise.
1023 * config/alpha/cacheline.h: Fall back to generic after setting size.
1024 * config/generic/tls.cc (gtm_mask_stack): Remove.
1025 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1026 (GTM_vpalignr_table): Remove.
1027 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1028 (GTM_pshift_table): Remove.
1029 * config/libitm_i.h: Don't include cachepage.h.
1030 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1031 * Makefile.in, testsuite/Makefile.in: Rebuild.
1033 2011-11-09 Richard Henderson <rth@redhat.com>
1035 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1036 to emit branch prediction hint.
1038 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1039 Protect .note.GNU-stack with __linux__.
1041 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1042 * configure, aclocal.m4, config.h.in: Rebuild.
1043 * config/generic/asmcfi.h: New file.
1044 * config/x86/sjlj.S: Use it.
1046 2011-11-08 Richard Henderson <rth@redhat.com>
1048 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1050 2011-11-08 Richard Henderson <rth@redhat.com>
1052 * configure.tgt: Test correct directory for supported cpus.
1054 * configure.ac: Exit if unsupported.
1055 * configure: Rebuild.
1056 * configure.tgt: Delete boilerplate from libgomp for unsupported
1057 targets. Set UNSUPPORTED for unsupported targets.
1059 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1061 * configure.tgt: Handle i386 like i[456]86.
1062 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1064 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1065 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1067 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1069 * method-wbetl.cc: Update copyright notice.
1075 * barrier.tpl: Same.
1076 * useraction.cc: Same.
1080 * config/generic/tls.cc: Same.
1081 * config/generic/cacheline.h: Same.
1082 * config/generic/cachepage.h: Same.
1083 * config/generic/cacheline.cc: Same.
1084 * config/generic/unaligned.h: Same.
1085 * config/x86/cacheline.h: Same.
1086 * config/x86/cacheline.cc: Same.
1087 * config/x86/unaligned.h: Same.
1088 * config/alpha/cacheline.h: Same.
1089 * config/alpha/unaligned.h: Same.
1090 * config/alpha/sjlj.S: Same.
1091 * config/posix/cachepage.cc: Same.
1092 * config/linux/futex.h: Same.
1093 * config/linux/alpha/futex_bits.h: Same.
1095 2011-11-04 Torvald Riegel <triegel@redhat.com>
1097 * libitm.texi: No cover text and invariant sections.
1099 2011-11-03 Richard Henderson <rth@redhat.com>
1101 * local_type_traits: New file.
1102 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1104 2011-11-03 Richard Henderson <rth@redhat.com>
1106 * configure.ac: Don't test for gfortran.
1107 * configure: Rebuild.
1109 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1110 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1112 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1114 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1115 * testsuite/libitm.c/memset-1.c: Same.
1116 * testsuite/libitm.c/c.exp: Same.
1117 * testsuite/lib/libitm-dg.exp: Same.
1118 * testsuite/lib/libitm.exp: Same.
1119 * testsuite/libitm.c++/c++.exp: Same.
1121 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1123 * testsuite/config/default.exp: Update copyright date.
1124 * configure.ac: Add copyright info.
1125 * configure.tgt: Same.
1127 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1129 * testsuite/libitm.c/reentrant.c: XFAIL.
1130 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1132 2011-10-29 Torvald Riegel <triegel@redhat.com>
1134 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1136 (_ITM_abortTransaction): Handle aborts of outer transactions.
1138 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1139 * libitm.texi: Document aborts of outer transactions.
1140 * testsuite/libitm.c/cancel.c: New file.
1142 2011-10-19 Torvald Riegel <triegel@redhat.com>
1144 * testsuite/*: Change __transaction to __transaction_atomic or
1145 __transaction_relaxed.
1147 2011-10-19 Torvald Riegel <triegel@redhat.com>
1149 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1152 2011-10-19 Torvald Riegel <triegel@redhat.com>
1154 * libitm_i.h: Add gl_wt dispatch.
1155 * retry.cc (parse_default_method): Same.
1156 * method-gl.cc: New file.
1157 * Makefile.am: Use method-gl.cc.
1158 * Makefile.in: Rebuild.
1160 2011-10-19 Torvald Riegel <triegel@redhat.com>
1162 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1163 safety if requested by a TM method.
1164 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1165 privatization safety.
1166 * method-serial.cc: Same.
1168 2011-10-19 Torvald Riegel <triegel@redhat.com>
1170 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1171 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1172 undolog-related member functions from *_local to *_undolog.
1173 * local.cc (gtm_thread::commit_undolog): Same.
1174 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1175 (GTM::gtm_thread::rollback): Roll back undolog before
1176 dispatch-specific rollback.
1178 2011-10-19 Torvald Riegel <triegel@redhat.com>
1180 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1181 re-initialization of the current method group.
1182 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1184 2011-10-19 Torvald Riegel <triegel@redhat.com>
1186 * alloc.cc (commit_allocations_2): Do not free transaction-local
1187 memory when committing a nested transaction.
1189 2011-10-19 Torvald Riegel <triegel@redhat.com>
1191 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1192 serial-irrevocable dispatch, not serial.
1194 2011-10-19 Torvald Riegel <triegel@redhat.com>
1196 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1198 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1199 * method-serial.cc: Implement begin_or_restart().
1200 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1201 dispatch-specific begin_or_restart().
1202 (GTM::gtm_thread::restart): Same.
1204 2011-08-23 Torvald Riegel <triegel@redhat.com>
1206 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1207 restarting without switching to serial mode.
1208 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1209 transaction state. Choose closed-nesting alternative if available.
1210 (GTM::gtm_thread::set_default_dispatch): New.
1211 (parse_default_method): New.
1212 (GTM::gtm_thread::number_of_threads_changed): New.
1213 * method-serial.cc (GTM::serial_mg): New method group class.
1214 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1216 (GTM::serial_dispatch): Same.
1217 (GTM::serialirr_onwrite_dispatch): Same.
1218 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1219 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1221 (GTM::gtm_thread::gtm_thread): Same.
1222 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1223 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1224 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1225 choose dispatch but set state according to dispatch here.
1226 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1227 (GTM::method_group): New class.
1228 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1229 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1230 * libitm.texi: Document TM methods, method groups, method life cycle.
1231 Rename method sets to method groups.
1233 2011-08-23 Torvald Riegel <triegel@redhat.com>
1235 * config/x86/tls.h: Moved to ...
1236 * config/linux/x86/tls.h: ... here.
1238 2011-08-23 Torvald Riegel <triegel@redhat.com>
1240 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1242 * config/x86/sjlj.S: Same.
1244 2011-08-19 Torvald Riegel <triegel@redhat.com>
1246 * config/linux/rwlock.h: New file.
1247 * config/linux/rwlock.c: New file.
1248 * configure.ac: Reenable futex support (undo SVN rev 157758).
1249 * Makefile.am: Same.
1250 * configure.tgt: Same.
1251 * config/linux/alpha/futex_bits.h: Same.
1252 * config/linux/futex.h: Same. Return number of woken processes.
1253 * config/linux/futex.cc: Same.
1254 (futex_wait): Remove spinning.
1255 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1256 Use __x86_64__ instead of __LP64__.
1257 * aclocal.m4: Include generic futex checks.
1258 * configure: Rebuild.
1259 * Makefile.in: Rebuild.
1260 * testsuite/Makefile.in: Rebuild.
1261 * beginend.cc: Include pthread.h.
1262 * config/posix/cachepage.cc: Same.
1264 2011-08-12 Torvald Riegel <triegel@redhat.com>
1266 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1267 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1269 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1271 (GTM::gtm_thread::thread_num): Removed.
1272 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1273 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1274 tx-to-thread renaming.
1275 * beginend.cc: Adapted to tx-to-thread renaming.
1276 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1277 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1278 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1279 gtm_transaction to gtm_thread.
1280 (_ITM_getThreadnum): Removed. Not supported anymore.
1281 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1282 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1283 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1284 gtm_tx-to-gtm_thr renaming if necessary.
1291 * alloc_cpp.cc: Same.
1292 * method-serial.cc: Same.
1293 * config/generic/tls.cc: Same.
1294 * config/posix/rwlock.h (gtm_rwlock): Same.
1295 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1297 2011-08-12 Torvald Riegel <triegel@redhat.com>
1299 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1301 (gtm_rwlock::read_unlock): Same.
1302 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1303 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1304 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1305 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1306 w_upgrade. Replaced by per-transaction flags (in shared_state).
1307 Added c_confirmed_writers.
1308 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1309 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1310 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1311 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1312 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1313 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1314 * libitm.texi: Document locking conventions and implementations in
1317 2011-08-12 Torvald Riegel <triegel@redhat.com>
1319 * libitm_i.h (next_tx): Add list of all threads' transaction.
1320 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1321 transaction with list of transactions and ...
1322 (thread_exit_handler): ... deregister here.
1323 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1324 * config/x86/target.h: Same.
1326 2011-08-12 Torvald Riegel <triegel@redhat.com>
1328 * testsuite/libitm.c++/static_ctor.C: New file.
1330 2011-08-12 Torvald Riegel <triegel@redhat.com>
1332 * testsuite/libitm.c/reentrant.c: New file.
1334 2011-08-12 Torvald Riegel <triegel@redhat.com>
1336 * config/generic/tls.h: Remove the free list for transactions and ...
1337 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1338 (GTM::gtm_transaction::operator delete): ... and release here.
1339 (thread_exit_handler): New. Delete tx when thread terminates.
1340 (thread_exit_init): New.
1341 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1342 * testsuite/libitm.c/txrelease.c: New file.
1344 2011-08-12 Torvald Riegel <triegel@redhat.com>
1346 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1347 * testsuite/libitm.c/notx.c: New file.
1349 2011-08-12 Torvald Riegel <triegel@redhat.com>
1351 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1352 * libitm_i.h (local_tid): ... to here.
1353 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1354 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1356 2011-08-12 Torvald Riegel <triegel@redhat.com>
1358 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1359 serialirr_onwrite_dispatch as new default for now.
1360 * method-serial.cc (serialirr_onwrite_dispatch): New.
1361 (GTM::dispatch_serialirr_onwrite): New.
1364 2011-08-12 Torvald Riegel <triegel@redhat.com>
1366 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1367 * query.cc (_ITM_getTransactionId): There is no active transaction if
1368 the current nesting level is zero.
1370 2011-07-28 Torvald Riegel <triegel@redhat.com>
1372 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1375 2011-07-28 Torvald Riegel <triegel@redhat.com>
1377 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1378 transaction properties from the caller instead of from the
1381 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1383 2011-07-28 Torvald Riegel <triegel@redhat.com>
1385 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1386 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1388 * method-serial.cc: Same.
1389 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1390 flat nesting as default, and closed nesting on demand.
1391 (GTM::gtm_transaction::rollback): Same.
1392 (_ITM_abortTransaction): Same.
1393 (GTM::gtm_transaction::restart): Same.
1394 (GTM::gtm_transaction::trycommit): Same.
1395 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1396 (choose_code_path): New.
1397 (GTM::gtm_transaction_cp::save): New.
1398 (GTM::gtm_transaction_cp::commit): New.
1399 * query.cc (_ITM_inTransaction): Support flat nesting.
1400 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1401 (GTM::gtm_transaction): Support flat and closed nesting.
1402 * alloc.cc (commit_allocations_2): New.
1403 (commit_cb_data): New helper struct.
1404 (GTM::gtm_transaction::commit_allocations): Handle nested
1406 * libitm.texi: Update user action section, add description of nesting.
1408 2011-07-28 Torvald Riegel <triegel@redhat.com>
1410 * libitm_i.h: Add closed nesting as restart reason.
1411 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1413 2011-07-28 Torvald Riegel <triegel@redhat.com>
1415 * useraction.cc: Use vector instead of list to store actions.
1416 Also support partial rollbacks for closed nesting.
1417 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1418 * beginend.cc: Same.
1420 2011-07-28 Torvald Riegel <triegel@redhat.com>
1422 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1423 closed_nesting flags, as well as a closed nesting alternative.
1424 * method-serial.cc: Same.
1425 (serial_dispatch): Renamed to serialirr_dispatch.
1426 (GTM::dispatch_serialirr): Same.
1427 (serial_dispatch_ul): Renamed to serial_dispatch.
1428 (GTM::dispatch_serial): Same.
1430 2011-07-28 Torvald Riegel <triegel@redhat.com>
1432 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1434 2011-07-28 Torvald Riegel <triegel@redhat.com>
1436 * aatree.h (aa_tree::remove): New.
1437 (aa_tree::operator new): Add placement new.
1439 2011-07-02 Torvald Riegel <triegel@redhat.com>
1441 * containers.h: New file.
1442 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1443 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1444 * common.h: ... to here.
1445 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1448 2011-06-30 Torvald Riegel <triegel@redhat.com>
1450 * libitm_i.h (STATE_ABORTING): Remove.
1451 * beginend.cc (_ITM_abortTransaction): Same.
1452 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1453 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1454 (_ITM_rollbackTransaction): Remove.
1455 * beginend.cc: Same.
1457 * libitm.texi: Document these ABI changes.
1459 2011-06-30 Torvald Riegel <triegel@redhat.com>
1461 * libitm.texi: New file.
1462 * Makefile.am: Add libitm.texi.
1463 * Makefile.in: Rebuild.
1465 2011-06-30 Torvald Riegel <triegel@redhat.com>
1467 * libitm_i.h: Move parts to common.h and dispatch.h.
1468 * common.h: New file.
1469 * dispatch.h: New file, new dispatch class.
1470 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1471 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1472 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1473 decision to retry.cc.
1474 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1476 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1477 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1479 * barrier.cc: Use new barriers definitions.
1480 (abi_dispatch::memmove_overlap_check): New.
1481 * config/x86/x86_sse.cc: Same.
1482 * config/x86/x86_avx.cc: Same.
1483 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1485 * Makefile.in: Rebuild.
1486 * method-readonly.cc: Remove.
1487 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1488 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1490 2011-06-30 Torvald Riegel <triegel@redhat.com>
1492 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1493 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1494 * testsuite/libitm.c/dropref-2.c: Same.
1495 * testsuite/libitm.c/dropref.c: Same.
1497 2011-06-30 Torvald Riegel <triegel@redhat.com>
1499 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1500 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1501 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1503 * barrier.tpl: Same.
1505 * config/generic/tls.h: Same.
1506 * config/x86/tls.h: Same.
1510 * method-readonly.cc: Same.
1511 * method-serial.cc: Same.
1512 * method-wbetl.cc: Same.
1515 2011-03-03 Richard Henderson <rth@redhat.com>
1517 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1518 From Patrik Marlier <patrick.marlier@unine.ch>.
1520 2011-02-03 Richard Henderson <rth@redhat.com>
1522 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1523 * configure.ac: Use it.
1524 * configure, config.h.in: Rebuild.
1525 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1526 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1527 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1528 * libitm.map: Use wildcards to match size_t mangling.
1530 2010-12-14 Richard Henderson <rth@redhat.com>
1532 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1533 blocks of TIDs per thread.
1534 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1535 (setup_gtm_thr): Return the thread structure.
1536 * config/x86/tls.h (setup_gtm_thr): Likewise.
1538 2010-12-14 Richard Henderson <rth@redhat.com>
1540 * clone.cc (table_lock): Remove.
1541 (find_clone): Don't take it.
1542 (ExcludeTransaction): New helper class.
1543 (_ITM_registerTMCloneTable): Use it.
1544 (_ITM_deregisterTMCloneTable): Likewise.
1546 2010-12-14 Richard Henderson <rth@redhat.com>
1548 * config/x86/tls.h: New file.
1550 2010-07-15 Richard Henderson <rth@redhat.com>
1552 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1553 * Makefile.in: Rebuild.
1555 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1557 * method-wbetl.cc (trydropreference): Fix source line.
1559 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1561 * libitm.h: Add comment.
1562 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1564 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1566 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1567 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1568 available, use pthread mutexes.
1569 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1570 * config.h.in: Regenerate.
1571 * configure: Regenerate.
1573 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1575 * libitm.h (ITM_PURE): Define.
1576 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1578 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1580 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1581 (validate): Add comment.
1582 (trydropreference): New.
1583 * method-readonly.cc (class readonly_dispatch): Add
1585 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1586 Call trydropreference().
1587 * libitm.h (_ITM_dropReferences): Remove const attribute.
1588 * method-serial.cc (class serial_dispatch): Add trydropreference.
1589 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1591 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1593 * memcpy.cc (do_memcpy): Comment.
1595 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1597 * barrier.tpl: Add comments throughout.
1599 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1601 * method-wbetl.cc (struct w_entry): Add comments.
1605 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1607 * alloc_c.cc (_ITM_dropReferences): New.
1608 * libitm.map (_ITM_dropReferences): Add.
1609 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1610 * libitm_i.h (struct gtm_transaction): Declare
1611 drop_references_allocations and drop_references_local.
1612 * local.cc (rollback_local): Ignore memory when applicable.
1613 (drop_references_local): New.
1615 2010-06-23 Richard Henderson <rth@redhat.com>
1617 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1618 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1619 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1620 * config/alpha/target.h: Likewise.
1621 * config/generic/tls.cc (gtm_mask_stack): Use it.
1623 2010-06-23 Richard Henderson <rth@redhat.com>
1625 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1626 a mutex instead of trying a lock-free compare-and-swap on the list.
1627 (gtm_cacheline_page::operator delete): Likewise.
1629 2010-06-16 Richard Henderson <rth@redhat.com>
1631 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1632 that overlap the libitm stack.
1633 * barrier.tpl: Mark incoming stack.
1634 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1635 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1636 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1637 * memcpy.cc, memset.cc: Likewise.
1638 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1639 * config/generic/tls.h (gtm_thread): Add stack_top member.
1640 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1641 * libitm_i.h (gtm_mask_stack): Declare.
1642 * config/generic/tls.cc: New file.
1643 * Makefile.am (libitm_la_SOURCES): Add it.
1644 (AM_CXXFLAGS): Turn off exceptions.
1645 * Makefile.in: Rebuild.
1647 2010-06-16 Richard Henderson <rth@redhat.com>
1649 * alloc.cc (struct gtm_alloc_action): Move definition ...
1650 * libitm_i.h: ... here.
1651 (class gtm_transaction): Declare new and delete.
1652 * beginend.cc (alloc_tx): Reformulate as operator new.
1653 (free_tx): Reformulate as operator delete.
1654 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1656 2010-06-11 Richard Henderson <rth@redhat.com>
1658 * clone.cc (clone_entry_compare): Fix typo.
1659 From Patrik Marlier <patrick.marlier@unine.ch>.
1661 2010-05-13 Richard Henderson <rth@redhat.com>
1663 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1666 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1668 * libitm_i.h (struct gtm_transaction): Remove
1669 get_allocation_size.
1670 (record_allocation): Remove size parameter.
1671 * libitm.map (_ITM_realloc): Remove.
1672 * alloc_c.cc (_ITM_realloc): Remove.
1673 (_ITM_malloc): Remove size argument to record_allocation.
1674 (_ITM_calloc): Same.
1675 * alloc_cpp.cc (_ZGTtnwm): Same.
1676 (_ZGTtnwmRKSt9nothrow_t): Same.
1678 (_ZGTtnamRKSt9nothrow_t): Same.
1679 * alloc.cc (struct gtm_alloc_action): Remove size.
1680 (get_allocation_size): Remove.
1681 (commit_allocations): Add comment.
1682 (record_allocation): Remove size parameter.
1683 (forget_allocation): Remove set of size.
1685 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1687 * Makefile.am (abi_version): New.
1688 (AM_CXXFLAGS): Pass abi_version.
1689 * Makefile.in: Regenerate.
1690 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1692 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1694 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1695 _ITM_getTMCloneOrIrrevokable.
1696 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1697 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1699 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1701 * configure.ac: Remove Linux futex support.
1702 * configure.tgt (config_path): Same.
1703 * Makefile.am: Same.
1704 * config/linux: Remove entire directory.
1705 * configure: Rebuild.
1706 * Makefile.in: Rebuild.
1707 * testsuite/Makefile.in: Rebuild.
1709 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1711 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1712 switching to serial mode.
1713 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1715 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1717 * configure.tgt: Add emacs -*- tags.
1718 * barrier.tpl: Same.
1720 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1722 * Makefile.am: Rename serial.cc to method-serial.cc.
1723 * Makefile.in: Regenerate with automake 1.11.1.
1724 * testsuite/Makefile.in: Same.
1725 * aclocal.m4: Regenerate with aclocal 1.11.1.
1726 * method-serial.cc: Rename from serial.cc.
1727 * libitm_i.h (struct gtm_transaction): Update comment on
1730 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1732 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1733 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1735 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1737 * configure: Rebuild.
1739 2009-11-12 Richard Henderson <rth@redhat.com>
1741 * Rewrite everything in C++.
1743 2009-11-03 Richard Henderson <rth@redhat.com>
1745 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1746 * Makefile.am (libitm_la_SOURCES): Add them.
1747 * configure.ac (ARCH_X86): New conditional.
1748 * Makefile.in, configure: Rebuild.
1749 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1750 Move futex setup into "other system configury" case.
1751 * local.c (rollback_local): Merge into ...
1752 (GTM_rollback_local): ... here.
1753 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1754 (_ITM_LB): Define as an alias to GTM_LB.
1756 2009-11-03 Richard Henderson <rth@redhat.com>
1758 * method-readonly.c: New file.
1759 * Makefile.am (libitm_la_SOURCES): Add it.
1760 * Makefile.in: Rebuild.
1761 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1762 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1763 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1764 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1765 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1766 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1767 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1768 gtm_get_clock, gtm_inc_clock): New.
1769 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1770 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1771 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1772 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1773 replace uses with new libitm_i.h symbols.
1774 (dispatch_wbetl): Rename from wbetl_dispatch.
1775 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1776 away from dispatch_readonly; abort if the beginTransaction call
1777 asserted that the transaction was readonly.
1779 2009-11-03 Richard Henderson <rth@redhat.com>
1781 * memset.c: New file.
1782 * Makefile.am (libitm_la_SOURCES): Add it.
1783 * Makefile.in: Rebuild.
1784 * testsuite/libitm.c/memset-1.c: New.
1786 2009-11-03 Richard Henderson <rth@redhat.com>
1788 * dispatch.c: Remove file.
1789 * useraction.c (struct gtm_user_action): Move from libitm.h.
1790 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1791 (serial_memset, serial_memmove, serial_memcpy): Remove.
1792 (serial_W*, serial_R*): Remove.
1793 (serial_dispatch): Update to match.
1794 * configure.ac: Move Werror down below configure checks. Don't
1795 check for sys/loadavg.h, do check for malloc.h. Don't check for
1796 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1797 Use GCC_AC_FUNC_MMAP_BLACKLIST
1798 * libitm.h: Split out all internal items to...
1799 * libitm_i.h: ... here. New file.
1800 * copymask.c: New file.
1801 * local.c (struct gtm_local_undo): Move from libitm.h.
1802 (GTM_alloc_local): Rename from alloc_local; export.
1803 * memcpy.c: New file.
1804 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1805 * config/posix/page.c: New file.
1806 * config/posix/target_tls.h: Remove file.
1807 * barrier.c: New file.
1808 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1810 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1811 * method-wbetl.c: Rewrite for new cacheline methods.
1812 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1814 * config/alpha/sjlj.S: Fix typo.
1815 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1816 * config/alpha/copymask.c: New file.
1817 * config/alpha/target.h (CACHELINE_SIZE): New.
1818 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1820 * config/x86/target_i.h: Copy functions from x86/target.h.
1821 * config/x86/copymask.c: New file.
1822 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1823 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1824 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1825 * config/x86/target_tls.h: Move contents to target_i.h.
1827 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1828 * testsuite/libitm.c/memcpy-1.c: New.
1830 2009-10-22 Richard Henderson <rth@redhat.com>
1832 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1833 (AM_CCASFLAGS): New.
1834 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1835 saving/restoring _AC_ARG_VAR_PRECIOUS.
1836 * Makefile.in, aclocal.m4, config.h.in, configure,
1837 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1839 2009-10-22 Richard Henderson <rth@redhat.com>
1841 * testsuite/*: Update for new compiler syntax.
1843 2009-10-21 Richard Henderson <rth@redhat.com>
1845 * libitm.h (_ITM_abortReason): Add outerAbort.
1847 2009-08-03 Richard Henderson <rth@redhat.com>
1849 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1850 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1851 * method-wbetl.c (struct w_entry): Remove mask.
1852 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1855 2009-07-22 Richard Henderson <rth@redhat.com>
1857 * eh_cpp.c: New file.
1858 * Makefile.am (libitm_la_SOURCES): Add it.
1859 * Makefile.in: Rebuild.
1860 * beginend.c (GTM_rollback_transaction): Undo exception state.
1861 (GTM_trycommit_transaction): Mark inline.
1862 (GTM_trycommit_and_finalize_transaction): Split out from ...
1863 (_ITM_commitTransaction): ... here.
1864 (_ITM_commitTransactionEH): New function.
1865 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1866 cxa_unthrown, eh_in_flight; reorder.
1868 * testsuite/libitm.c++/c++.exp: New.
1869 * testsuite/libitm.c++/eh-1.C: New.
1871 * aatree.c (aa_free): Remove REGPARM.
1872 * aatree.h: Remove all REGPARM.
1874 2009-07-18 Richard Henderson <rth@redhat.com>
1876 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1877 * Makefile.am (libitm_la_SOURCES): Add them.
1878 * Makefile.in: Rebuild.
1879 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1880 (GTM_trycommit_transaction): Likewise.
1881 * libitm.h: Include aatree.h
1882 (struct gtm_alloc_action): New.
1883 (struct gtm_transaction): Add alloc_actions.
1884 (GTM_record_allocation, GTM_forget_allocation): Declare.
1885 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1886 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1887 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1888 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1889 _ZGTtdaPvRKSt9nothrow_t): Export.
1891 2009-07-18 Richard Henderson <rth@redhat.com>
1893 * target_tls.h: Move ...
1894 * config/posix/target_tls.h: ... here.
1896 2009-07-07 Richard Henderson <rth@redhat.com>
1898 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1900 2009-07-07 Richard Henderson <rth@redhat.com>
1904 2009-07-07 Richard Henderson <rth@redhat.com>
1906 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1907 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1909 * configure.tgt: Don't use -ftls-model for x86 linux.
1910 * libitm.h: Include target.h after standard includes.
1911 (_gtm_thr): Rename from gtm_thr.
1912 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1913 (gtm_disp, set_gtm_disp): New.
1914 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1915 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1916 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1918 2009-07-07 Richard Henderson <rth@redhat.com>
1920 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1922 2009-07-06 Richard Henderson <rth@redhat.com>
1924 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1925 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1926 (_ITM_beginTransaction): Take variadic arguments.
1927 (_ITM_registerThrownObject): Declare.
1928 * beginend.c, serial.c: Update.
1929 * libitm.map: Add _ITM_registerThrownObject.
1931 2009-01-28 Richard Henderson <rth@redhat.com>
1933 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1934 * Makefile.in: Rebuild.
1935 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1936 (GTM_restart_transaction): Fix uninstrumented code check.
1937 * retry.c (GTM_decide_retry_strategy): Add serial check.
1938 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1939 automatically go irrevokable when in serial mode.
1940 * clone.c: New file.
1941 * libitm.h, libitm.map: Update.
1943 2009-01-27 Richard Henderson <rth@redhat.com>
1945 * Makefile.am (LTCCASCOMPILE): Define.
1946 (libitm_la_SOURCES): Add methid-wbetl.c.
1947 * testsuite/Makefile.am: New
1948 * configure.ac: Add testsuite/Makefile.
1949 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1950 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1951 (_ITM_abortTransaction): Finalize implementation method; pass
1952 transaction properties to longjmp.
1953 (GTM_restart_transaction): Split out from ...
1954 (_ITM_commitTransaction): ... here.
1955 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1956 Move to config/x86/target.h.
1957 * config/linux/alpha/futex_bits.h: New.
1958 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1959 * config/x86/target.h: Disable target types for 32-bit.
1960 * config/alpha/sjlj.S, config/alpha/target.h: New.
1961 * libitm.h (struct gtm_dispatch): Add init, fini.
1962 (enum restart_reason): New.
1963 (struct gtm_transaction): Add method and restarts.
1964 * retry.c (GTM_decide_retry_strategy): Implement.
1965 * serial.c (serial_init, serial_fini): New.
1966 (GTM_serialmode): Finialize outgoing method.
1967 * method-wbetl.c: New.
1969 2008-12-09 Richard Henderson <rth@redhat.com>
1971 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1972 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1973 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1974 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1975 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1976 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1977 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1978 * serial.c (serial_R##T, serial_W##T): Likewise.
1980 2008-11-21 Richard Henderson <rth@redhat.com>
1984 Copyright (C) 2008-2016 Free Software Foundation, Inc.
1986 Copying and distribution of this file, with or without modification,
1987 are permitted in any medium without royalty provided the copyright
1988 notice and this notice are preserved.