1 2016-12-21 Release Manager
5 2016-08-22 Release Manager
9 2016-04-27 Release Manager
13 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
15 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
16 function attribute to disable floating point in begin_transaction() on
18 * beginend.cc (begin_transaction): Use
19 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
21 2016-01-22 Torvald Riegel <triegel@redhat.com>
23 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
25 (htm_fastpath): Remove.
26 (gtm_thread::begin_transaction): Fix HTM fastpath.
27 (_ITM_commitTransaction): Adapt.
28 (_ITM_commitTransactionEH): Adapt.
29 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
31 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
32 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
33 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
34 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
35 * libitm/method-serial.cc (htm_mg): Adapt.
36 (gtm_thread::serialirr_mode): Adapt.
37 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
39 2016-01-21 Torvald Riegel <triegel@redhat.com>
41 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
44 2016-01-19 Richard Henderson <rth@redhat.com>
49 2016-01-13 Richard Henderson <rth@redhat.com>
51 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
52 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
53 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
54 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
55 * configure.ac (ARCH_AARCH64): New conditional.
56 (ARCH_PPC, ARCH_S390): Likewise.
57 * Makefile.in, configure: Rebuild.
59 * libitm.h (_ITM_TYPE_M128): Always define.
60 * vect64.cc: Split ...
61 * vect128.cc: ... out of...
62 * config/x86/x86_sse.cc: ... here.
63 * config/arm/neon.cc: New file.
65 2016-01-19 Torvald Riegel <triegel@redhat.com>
67 * local_type_traits: Remove file.
68 * libitm_i.h: Don't include it anymore.
69 (sized_integral): Remove.
71 2016-01-16 Torvald Riegel <triegel@redhat.com>
73 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
75 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
76 * libitm/testsuite/libitm.c/priv-1.c: New.
78 2015-01-15 Torvald Riegel <triegel@redhat.com>
80 testsuite/libitm.c++/libstdc++-safeexc.C: New.
82 2016-01-13 Torvald Riegel <triegel@redhat.com>
84 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
85 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
86 (gtm_rwlock::write_unlock): Likewise.
88 2016-01-13 Richard Henderson <rth@redhat.com>
90 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
91 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
92 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
93 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
94 * configure.ac (ARCH_AARCH64): New conditional.
95 (ARCH_PPC, ARCH_S390): Likewise.
96 * Makefile.in, configure: Rebuild.
98 * libitm.h (_ITM_TYPE_M128): Always define.
99 * vect64.cc: Split ...
100 * vect128.cc: ... out of...
101 * config/x86/x86_sse.cc: ... here.
102 * config/arm/neon.cc: New file.
104 2016-01-13 Torvald Riegel <triegel@redhat.com>
106 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
107 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
108 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
109 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
110 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
111 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
112 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
113 (serialirr_dispatch::snapshot_most_recent): New.
114 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
116 2016-01-12 Torvald Riegel <triegel@redhat.com>
118 * libitm_i.h (gtm_mask_stack): Remove.
119 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
120 * stmlock.h: Remove file.
121 * config/alpha/cacheline.h: Likewise.
122 * config/generic/cacheline.h: Likewise.
123 * config/powerpc/cacheline.h: Likewise.
124 * config/sparc/cacheline.h: Likewise.
125 * config/x86/cacheline.h: Likewise.
127 2016-01-04 Jakub Jelinek <jakub@redhat.com>
129 Update copyright years.
131 * libitm.texi: Bump @copying's copyright year.
133 2015-11-26 Torvald Riegel <triegel@redhat.com>
135 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
136 (ml_wt_dispatch::pre_write): Adapt.
137 (ml_wt_dispatch::pre_load): Likewise.
139 2015-11-22 Torvald Riegel <triegel@redhat.com>
141 * libitm_i.h (gtm_alloc_action): Remove union.
142 * testsuite/libitm.c/alloc-1.c: New.
144 2015-11-19 Torvald Riegel <triegel@redhat.com>
146 * testsuite/libitm.c++/eh-5.C: New.
147 * libitm.h (_ITM_cxa_free_exception): New.
148 * libitm.map (_ITM_cxa_free_exception): Add it.
149 * libitm.texi: Update ABI docs.
150 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
151 (gtm_transaction_cp::cxa_uncaught_count): Add.
152 (gtm_thread::cxa_unthrown): Remove.
153 (gtm_thread::cxa_uncaught_count_ptr): Add.
154 (gtm_thread::cxa_uncaught_count): Add.
155 (gtm_thread::drop_references_allocations): Rename to...
156 (gtm_thread::discard_allocation): ... this and adapt.
157 (gtm_thread::init_cpp_exceptions): New.
158 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
159 (gtm_thread::begin_transaction): Likewise.
160 (gtm_transaction_cp::save): Likewise.
161 (gtm_thread::trycommit): Likewise.
162 * eh_cpp.cc: Add overview comments.
163 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
164 (free_any_exception, _ITM_cxa_free_exception): New.
165 (gtm_thread::init_cpp_exceptions): Define.
166 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
167 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
168 (gtm_thread::revert_cpp_exceptions): Likewise.
170 2015-11-09 Torvald Riegel <triegel@redhat.com>
172 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
173 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
174 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
175 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
176 (gtm_thread::forget_allocations): New overload with size_t argument.
177 * alloc.c (gtm_thread::forget_allocation): Define new overload and
179 (gtm_thread::record_allocation): Adapt.
180 (gtm_thread::commit_allocations_1): Adapt.
181 (gtm_thread::commit_allocations_2): Adapt.
182 * testsuite/libitm.c++/newdelete.C: New.
184 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
185 Joseph Myers <joseph@codesourcery.com>
186 Mark Shinwell <shinwell@codesourcery.com>
187 Andrew Stubbs <ams@codesourcery.com>
188 Rich Felker <dalias@libc.org>
190 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
191 GTM_begin_transaction for compatibility with FDPIC.
193 2015-10-09 David Malcolm <dmalcolm@redhat.com>
195 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
198 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
201 * local_atomic (__always_inline): Rename to...
202 (__libitm_always_inline): ... this.
204 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
207 * config/powerpc/sjlj.S: Port to Xcode 2.5.
209 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
211 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
212 operands "op" and "val" to int.
214 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
216 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
217 "op" and "val" to int.
219 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
221 * config/linux/alpha/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/futex.cc (gtm_futex_wait, gtm_futex_wake):
227 Declare as static int.
228 (FUTEX_PRIVATE_FLAG): Remove L suffix.
229 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
231 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
233 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
236 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
238 * Makefile.in: Regenerated with automake-1.11.6.
239 * aclocal.m4: Likewise.
240 * configure: Likewise.
241 * testsuite/Makefile.in: Likewise.
243 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
245 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
246 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
248 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
251 * libitm.c/stackundo.c (test2): Make it static.
254 2015-01-05 Jakub Jelinek <jakub@redhat.com>
256 Update copyright years.
258 2015-01-05 Jakub Jelinek <jakub@redhat.com>
260 * libitm.texi: Bump @copying's copyright year.
262 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
264 * testsuite/lib/libitm.exp: Load target-utils.exp.
265 Move load of target-supports.exp earlier.
267 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
269 * configure.tgt (x86_64): Tune -m32 multilib to generic.
271 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
274 * configure: Regenerated.
276 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
279 * configure: Regenerate.
281 2014-10-06 Marek Polacek <polacek@redhat.com>
283 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
284 * testsuite/libitm.c/memset-1.c: Likewise.
286 2014-07-24 Richard Henderson <rth@redhat.com>
288 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
289 addressing mode in epilogue.
291 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
293 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
294 -mclear-hwcap instead.
295 * configure: Regenerate.
296 * clearcap.map: Remove.
298 2014-05-21 John Marino <gnugcc@marino.st>
300 * configure.tgt (*-*-dragonfly*): New target.
302 2014-05-19 Richard Henderson <rth@redhat.com>
304 * config/aarch64/sjlj.S: New file.
305 * config/aarch64/target.h: New file.
306 * configure.tgt: Enable aarch64.
308 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310 * config/generic/asmcfi.h: Also check for
311 __GCC_HAVE_DWARF2_CFI_ASM.
313 2013-04-02 Richard Henderson <rth@redhat.com>
315 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
316 * config/arm/target.h, config/sh/target.h: Likewise.
317 * config/sparc/target.h, config/x86/target.h: Likewise.
319 2014-03-26 Jakub Jelinek <jakub@redhat.com>
321 * config/linux/futex_bits.h: Include errno.h.
322 (sys_futex0): If syscall returns -1, return -errno rather than
325 2014-03-26 Joseph Myers <joseph@codesourcery.com>
327 * libitm.texi (Index): Rename to Library Index.
329 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
332 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
333 (x86_avx.lo): Append -mavx to CXXFLAGS.
334 * Makefile.in: Regenerate.
336 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
338 Update copyright years
340 2014-01-02 Tobias Burnus <burnus@net-b.de>
342 * libitm.texi: Bump @copying's copyright year.
344 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
346 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
347 (FUNC): Define ELFv2 variant.
354 2013-09-20 Alan Modra <amodra@gmail.com>
356 * configure: Regenerate.
358 2013-08-30 Torvald Riegel <triegel@redhat.com>
360 * config/posix/rwlock.cc: Fix initialization order.
362 2013-08-30 Torvald Riegel <triegel@redhat.com>
364 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
365 (htm_fastpath): Assign an asm name.
366 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
368 (_ITM_actions): Likewise.
369 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
371 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
372 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
373 field to the start of the structure.
374 * config/linux/rwlock.h (gtm_rwlock): Update comments.
375 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
376 handling for custom HTM fast paths.
378 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
380 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
382 * configure.tgt: Add -msoft-float to XCFLAGS.
384 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
386 * configure.tgt: Add -msoft-float to XCFLAGS.
388 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
390 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
391 (htm_transaction_active): Enable zEC12 instructions in the
393 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
395 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
397 * acinclude.m4: Add htm asm check for s390.
398 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
399 * configure: Regenerate.
400 * config/s390/target.h: Remove __HTM__ check.
401 (htm_available): Call getauxval to get hwcaps and check whether
402 HTM is available or not.
404 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
406 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
407 * configure.ac: Use it.
408 (AC_CHECK_HEADERS): Check for sys/auxv.h.
409 (AC_CHECK_FUNCS): Check for getauxval.
410 * config.h.in, configure: Rebuild.
411 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
412 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
413 (USE_HTM_FASTPATH): Define.
414 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
415 _HTM_RETRIES) New macros.
416 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
417 htm_begin_success, htm_commit, htm_transaction_active): New functions.
419 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
421 * config/s390/target.h: Include htmintrin.h.
422 (_HTM_ITM_RETRIES): New macro definition.
423 (htm_available, htm_init, htm_begin, htm_begin_success)
424 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
426 2013-06-20 Iain Sandoe <iain@codesourcery.com>
427 Cesar Philippidis <cesar@codesourcery.com>
429 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
430 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
431 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
432 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
434 2013-06-20 Torvald Riegel <triegel@redhat.com>
436 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
437 (_ITM_getTransactionId): Same.
438 * config/x86/target.h (htm_transaction_active): New.
440 2013-06-20 Torvald Riegel <triegel@redhat.com>
443 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
446 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
449 * local_atomic (__always_inline): Always define our version.
450 (__calculate_memory_order): Mark inline.
451 (atomic_thread_fence): Ditto.
452 (atomic_signal_fence): Ditto.
453 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
454 (atomic_bool::atomic_flag_clear_explicit): Ditto.
455 (atomic_bool::atomic_flag_test_and_set): Ditto.
456 (atomic_bool::atomic_flag_clear): Ditto.
458 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
460 * config/s390/sjlj.S: New file.
461 * config/s390/target.h: New file.
462 * configure.tgt: Set options for S/390.
464 2013-03-23 Andi Kleen <ak@linux.intel.com>
466 * local_atomic (__always_inline): Add.
467 (__calculate_memory_order, atomic_thread_fence,
468 atomic_signal_fence, test_and_set, clear, store, load,
469 exchange, compare_exchange_weak, compare_exchange_strong,
470 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
471 Add __always_inline to force inlining.
473 2013-02-11 Iain Sandoe <iain@codesourcery.com>
474 Jack Howarth <howarth@bromo.med.uc.edu>
475 Patrick Marlier <patrick.marlier@gmail.com>
478 * alloc_cpp.cc: Enable function declarations on darwin.
479 * eh_cpp.cc: Likewise.
481 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
483 Update copyright years.
485 2012-11-09 Torvald Riegel <triegel@redhat.com>
487 * beginend.cc (htm_fastpath): New.
488 (gtm_thread::begin_transaction, _ITM_commitTransaction,
489 _ITM_commitTransactionEH): Add HTM fastpath handling.
490 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
491 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
492 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
493 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
494 * configure.tgt: Add -mrtm to XCFLAGS.
495 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
496 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
497 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
498 * retry.cc (parse_default_method): Add HTM method parsing.
499 (gtm_thread::number_of_threads_changed): Use HTM by default if
502 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
504 * configure: Regenerate.
506 2012-10-31 Richard Henderson <rth@redhat.com>
508 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
509 * configure.ac: Use it.
510 * config.h.in, configure: Rebuild.
511 * testsuite/Makefile.in: Rebuild.
513 2012-10-24 Torvald Riegel <triegel@redhat.com>
515 * libitm.texi: Clarify ABI requirements for data-logging functions.
517 2012-10-24 Torvald Riegel <triegel@redhat.com>
519 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
520 it requires serial mode instead of assuming that for certain
522 * dispatch.h (abi_dispatch::requires_serial): New.
523 (abi_dispatch::abi_dispatch): Adapt.
524 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
525 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
526 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
527 serial_dispatch::serial_dispatch,
528 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
530 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
532 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
533 and ia32 declarations some more.
534 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
536 2012-09-20 Jakub Jelinek <jakub@redhat.com>
539 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
540 * configure: Regenerate.
541 * Makefile.in: Regenerate.
543 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
545 * configure: Regenerated.
547 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
549 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
551 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
553 * eh_cpp.cc: Fix __cxa_end_catch declaration.
555 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
557 * configure: Regenerated.
559 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
562 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
565 2012-04-03 Tristan Gingold <gingold@adacore.com>
567 * configure: Regenerate.
569 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
572 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
574 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
576 * testsuite/lib/libitm.exp: load fortran-modules.exp
578 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
580 * configure.tgt (*-*-irix6*): Remove.
582 2012-03-13 Torvald Riegel <triegel@redhat.com>
585 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
588 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
590 * configure.tgt (*-*-osf*): Remove.
591 * configure: Regenerate.
593 2012-03-05 Torvald Riegel <triegel@redhat.com>
595 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
596 memtransfer/memset if size isn't larger than zero.
598 2012-03-02 Torvald Riegel <triegel@redhat.com>
600 * libitm.texi: Link to specification and add a usage example.
602 2012-02-24 Torvald Riegel <triegel@redhat.com>
604 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
605 default dispatch for more than 1 thread to ml_wt.
607 2012-02-20 Torvald Riegel <triegel@redhat.com>
609 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
611 2012-02-20 Torvald Riegel <triegel@redhat.com>
613 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
615 2012-02-20 Torvald Riegel <triegel@redhat.com>
617 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
618 serial mode corner cases made obsolete by prior gtm_rwlock changes.
619 (gl_wt_dispatch.rollback): Same.
621 2012-02-20 Torvald Riegel <triegel@redhat.com>
623 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
625 2012-02-20 Torvald Riegel <triegel@redhat.com>
627 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
628 for RfW src. Optimize number of calls to gtm_thr.
630 2012-02-20 Torvald Riegel <triegel@redhat.com>
632 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
634 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
635 (default_dispatch): Make atomic.
636 (GTM::gtm_thread::set_default_dispatch): Access atomically.
637 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
638 use decide_begin_dispatch() if default_dispatch might have changed.
639 (GTM::gtm_thread::number_of_threads_changed): Initialize
640 default_dispatch here.
642 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
643 Patrick Marlier <patrick.marlier@gmail.com>
646 * alloc_cpp.cc: No dummy definitions for darwin.
647 * eh_cpp.cc: Likewise.
649 2012-02-14 Richard Henderson <rth@redhat.com>
651 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
653 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
655 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
657 2012-02-14 Torvald Riegel <triegel@redhat.com>
659 * libitm_i.h (GTM::gtm_rwlog_entry): New.
660 (GTM::gtm_thread): Add read and write logs.
661 (GTM::dispatch_ml_wt): Declare.
662 * retry.cc (parse_default_method): Support ml_wt.
663 * method-ml.cc: New file.
664 * Makefile.am: Add method-ml.cc.
665 * Makefile.in: Regenerate.
667 2012-02-14 Torvald Riegel <triegel@redhat.com>
669 * dispatch.h (GTM::abi_dispatch::supports): New.
670 (GTM::method_group::reinit): New.
671 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
672 (GTM::gtm_thread::number_of_threads_changed): Check that the method
673 supports the current situation.
675 2012-02-14 Torvald Riegel <triegel@redhat.com>
677 * util.cc (GTM::xcalloc): New.
678 * common.h (GTM::xcalloc): Declare.
680 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
682 * config/sparc/target.h (cpu_relax): Read from CC register.
683 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
685 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
687 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
689 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
691 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
692 * config/sparc/cacheline.h: New file.
693 * config/sparc/target.h: Likewise.
694 * config/sparc/sjlj.S: Likewise.
695 * config/linux/sparc/futex_bits.h: Likewise.
697 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
699 * configure.ac (link_itm): Fix comment.
700 * configure: Regenerate.
701 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
703 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
706 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
707 Correct libgomp references.
709 2012-01-24 Torvald Riegel <triegel@redhat.com>
711 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
714 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
716 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
718 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
719 offset values. Do not copy return address. Decrement stack
721 (GTM_longjump) [__x86_64__]: Update offset values.
723 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
726 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
727 the first function argument to %eax.
729 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
731 * libitm.h (_ITM_getThreadnum): Remove.
732 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
734 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
736 * clearcap.map: New file.
737 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
738 * configure.ac: Call it.
739 Clear HWCAP_LDFLAGS if defaulting to -mavx.
740 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
741 * configure: Regenerate.
742 * Makefile.in: Regenerate.
743 * testsuite/Makefile.in: Regenerate.
745 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
748 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
749 include, exclude options.
751 2012-01-14 Torvald Riegel <triegel@redhat.com>
753 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
755 * containers.h (GTM::vector::set_size): New.
757 2012-01-14 Torvald Riegel <triegel@redhat.com>
760 * config/generic/tls.h (GTM::mask_stack_top): New.
761 (GTM::mask_stack_bottom): Declare.
762 * config/generic/tls.c (GTM::mask_stack_bottom): New.
763 * local.cc (gtm_undolog::rollback): Filter out any updates that
764 overlap the libitm stack. Add current transaction as parameter.
765 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
766 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
767 * testsuite/libitm.c/stackundo.c: New test.
769 2012-01-10 Richard Henderson <rth@redhat.com>
771 * libitm_i.h (_Unwind_DeleteException): Declare weak.
772 * eh_cpp.cc (_Unwind_DeleteException): Define for
773 !HAVE_ELF_STYLE_WEAKREF.
775 2012-01-08 Torvald Riegel <triegel@redhat.com>
777 * local.cc (GTM_LB): Use GTM::gtm_undolog.
778 (GTM::gtm_thread::drop_references_undolog): Remove.
779 (GTM::gtm_thread::commit_undolog,
780 GTM::gtm_thread::rollback_undolog): Move to ...
781 * libitm_i.h (GTM::gtm_undolog): ...here. New.
782 (GTM::gtm_undolog_entry): Remove.
783 (GTM::gtm_thread): Adapt.
784 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
785 (GTM::gtm_thread::trycommit): Adapt.
786 * method-serial.cc (serial_dispatch::log): Adapt.
787 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
788 (gl_wt_dispatch::store): Fix likely/unlikely.
789 * containers.h (GTM::vector::resize): Add additional_capacity
790 parameter and handle it.
791 (GTM::vector::resize_noinline): New/adapt.
792 (GTM::vector::push): New.
794 2012-01-06 Richard Henderson <rth@redhat.com>
796 * configure.tgt: Support powerpc-linux and powerpc-darwin.
797 * config/linux/powerpc/futex_bits.h: New file.
798 * config/powerpc/cacheline.h: New file.
799 * config/powerpc/sjlj.S: New file.
800 * config/powerpc/target.h: New file.
801 * config/generic/asmcfi.h (cfi_offset): New.
802 (cfi_restore, cfi_undefined): New.
804 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
807 * testsuite/libitm.c/reentrant.c: Remove xfail.
808 (thread): Pass x to pure().
809 From Patrik Marlier <patrick.marlier@gmail.com>.
811 2011-12-24 Torvald Riegel <triegel@redhat.com>
813 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
814 privatization safety if already in serial mode.
816 2011-12-24 Torvald Riegel <triegel@redhat.com>
818 * beginend.cc (GTM::gtm_thread::restart): Add and handle
819 finish_serial_upgrade parameter.
820 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
821 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
822 Don't unset reader flag.
823 (GTM::gtm_rwlock::write_upgrade_finish): New.
824 * config/posix/rwlock.cc: Same.
825 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
827 * config/posix/rwlock.h: Same.
828 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
829 flag after commit or after rollback when restarting.
831 2011-12-24 Torvald Riegel <triegel@redhat.com>
833 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
834 (GTM::gtm_thread::try_commit): Changed memory order.
835 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
837 * config/linux/x86/futex_bits.h (sys_futex0): Same.
838 * config/linux/sh/futex_bits.h (sys_futex0): Same.
839 * config/linux/futex_bits.h (sys_futex0): Same.
840 * config/linux/futex.cc (futex_wait, futex_wake): Same.
841 * config/linux/futex.h (futex_wait, futex_wake): Same.
842 * config/linux/rwlock.h (gtm_rwlock::writers,
843 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
845 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
846 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
847 gtm_rwlock::write_unlock): Fix memory orders and fences.
848 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
849 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
850 gtm_rwlock::write_unlock): Same.
851 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
852 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
853 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
855 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
856 gl_wt_dispatch::load, gl_wt_dispatch::store,
857 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
858 orders and fences. Add comments.
860 2011-12-21 Jakub Jelinek <jakub@redhat.com>
862 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
863 * Makefile.in: Regenerated.
865 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
867 * configure.tgt: Add sh* case.
868 * config/sh/target.h: New file.
869 * config/sh/sjlj.S: New file.
870 * config/linux/sh/futex_bits.h: New file.
872 2011-12-14 Richard Henderson <rth@redhat.com>
874 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
875 * config/arm/sjlj.S, config/arm/target.h: New files.
876 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
877 (cfi_rel_offset): New.
878 * config/linux/futex_bits.h: New file.
879 * config/linux/futex.cc: Include futex_bits.h here...
880 * config/linux/futex.h: ... not here.
881 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
882 * configure.ac (ARCH_AM): New conditional.
883 * Makefile.in, configure: Rebuild.
884 * configure.tgt: Handle ARM.
886 2011-12-13 Richard Henderson <rth@redhat.com>
888 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
889 signed/unsigned comparison werror.
891 * local_atomic: New file.
892 * libitm_i.h: Include it.
893 (gtm_thread::shared_state): Use atomic template.
894 * beginend.cc (GTM::gtm_clock): Use atomic template.
895 (global_tid): Use atomic template if 64-bit atomics available.
896 (gtm_thread::gtm_thread): Update shared_state access.
897 (gtm_thread::trycommit): Likewise.
898 (choose_code_path): Update global_tid access.
899 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
900 * stmlock.h (GTM::gtm_clock): Use atomic template.
901 (gtm_get_clock, gtm_inc_clock): Update accesses.
902 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
903 redundant __sync_synchronize after atomic shared_state access.
904 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
905 (gtm_rwlock::write_lock_generic): Likewise.
906 (gtm_rwlock::read_unlock): Likewise.
907 * config/alpha/target.h (atomic_read_barrier): Remove.
908 (atomic_write_barrier): Remove.
909 * config/x86/target.h (atomic_read_barrier): Remove.
910 (atomic_write_barrier): Remove.
912 2011-11-30 Richard Henderson <rth@redhat.com>
914 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
915 * beginend.c (_ITM_abortTransaction): Update to match.
916 (GTM::gtm_thread::restart): Likewise.
917 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
918 * config/x86/sjlj.S (GTM_longjmp): Likewise.
920 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
922 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
923 * Makefile.in: Regenerate.
925 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
927 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
928 * alloc_cpp.cc: Generate dummy functions if we don't
929 HAVE_ELF_STYLE_WEAKREF.
930 * eh_cpp.cc: Likewise.
931 * configure: Regenerate.
932 * aclocal.m4: Likewise.
933 * config.h.in: Likewise.
934 * Makefile.in: Likewise.
935 * testsuite/Makefile.in: Likewise.
937 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
939 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
940 __USER_LABEL_PREFIX__ for targets that use it.
941 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
942 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
943 in portability to non-elf targets.
944 (GTM_longjmp): Likewise.
945 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
948 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
950 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
951 * testsuite/libitm.c/memset-1.c: Likewise.
953 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
955 * configure: Regenerate.
957 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
959 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
960 (LIBITM_ENABLE_SYMVERS): Handle sun style.
961 * Makefile.am: Handle sun style versioning.
962 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
963 * configure: Regenerate.
964 * Makefile.in: Regenerate.
966 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968 * config/generic/asmcfi.h: Fix comment.
969 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
970 sequence without .hidden support, error for non-ELF targets.
971 (GTM_longjmp) [__ELF__]: Only use .hidden if
972 HAVE_ATTRIBUTE_VISIBILITY.
974 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
976 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
977 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
979 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
980 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
982 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
985 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
986 * configure: Regenerate.
988 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
990 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
992 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
996 (.note.GNU-stack): Only use if __linux__.
997 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
998 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
999 * testsuite/libitm.c/reentrant.c: Likewise.
1000 * testsuite/libitm.c/simple-2.c: Likewise.
1001 * testsuite/libitm.c/txrelease.c: Likewise.
1002 * testsuite/libitm.c++/static_ctor.C: Likewise.
1004 2011-11-10 Richard Henderson <rth@redhat.com>
1006 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1007 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1008 * configure.ac (ARCH_X86_AVX): New conditional.
1009 * Makefile.in, configure: Rebuild.
1011 2011-11-09 Richard Henderson <rth@redhat.com>
1013 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1014 * configure.ac: Use it.
1015 * config.h.in, configure: Rebuild.
1016 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1018 2011-11-09 Richard Henderson <rth@redhat.com>
1020 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1021 * config/alpha/unaligned.h: Remove file.
1022 * config/generic/unaligned.h: Remove file.
1023 * config/x86/unaligned.h: Remove file.
1024 * config/generic/cachepage.h: Remove file.
1025 * config/posix/cachepage.cc: Remove file.
1026 * config/generic/cacheline.cc: Remove file.
1027 * config/x86/cacheline.cc: Remove file.
1028 * config/generic/cacheline.h (gtm_cacheline): Remove the
1029 store_mask, copy_mask, copy_mask_wb methods.
1030 * config/x86/cacheline.h: Likewise.
1031 * config/alpha/cacheline.h: Fall back to generic after setting size.
1032 * config/generic/tls.cc (gtm_mask_stack): Remove.
1033 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1034 (GTM_vpalignr_table): Remove.
1035 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1036 (GTM_pshift_table): Remove.
1037 * config/libitm_i.h: Don't include cachepage.h.
1038 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1039 * Makefile.in, testsuite/Makefile.in: Rebuild.
1041 2011-11-09 Richard Henderson <rth@redhat.com>
1043 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1044 to emit branch prediction hint.
1046 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1047 Protect .note.GNU-stack with __linux__.
1049 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1050 * configure, aclocal.m4, config.h.in: Rebuild.
1051 * config/generic/asmcfi.h: New file.
1052 * config/x86/sjlj.S: Use it.
1054 2011-11-08 Richard Henderson <rth@redhat.com>
1056 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1058 2011-11-08 Richard Henderson <rth@redhat.com>
1060 * configure.tgt: Test correct directory for supported cpus.
1062 * configure.ac: Exit if unsupported.
1063 * configure: Rebuild.
1064 * configure.tgt: Delete boilerplate from libgomp for unsupported
1065 targets. Set UNSUPPORTED for unsupported targets.
1067 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1069 * configure.tgt: Handle i386 like i[456]86.
1070 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1072 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1073 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1075 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1077 * method-wbetl.cc: Update copyright notice.
1083 * barrier.tpl: Same.
1084 * useraction.cc: Same.
1088 * config/generic/tls.cc: Same.
1089 * config/generic/cacheline.h: Same.
1090 * config/generic/cachepage.h: Same.
1091 * config/generic/cacheline.cc: Same.
1092 * config/generic/unaligned.h: Same.
1093 * config/x86/cacheline.h: Same.
1094 * config/x86/cacheline.cc: Same.
1095 * config/x86/unaligned.h: Same.
1096 * config/alpha/cacheline.h: Same.
1097 * config/alpha/unaligned.h: Same.
1098 * config/alpha/sjlj.S: Same.
1099 * config/posix/cachepage.cc: Same.
1100 * config/linux/futex.h: Same.
1101 * config/linux/alpha/futex_bits.h: Same.
1103 2011-11-04 Torvald Riegel <triegel@redhat.com>
1105 * libitm.texi: No cover text and invariant sections.
1107 2011-11-03 Richard Henderson <rth@redhat.com>
1109 * local_type_traits: New file.
1110 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1112 2011-11-03 Richard Henderson <rth@redhat.com>
1114 * configure.ac: Don't test for gfortran.
1115 * configure: Rebuild.
1117 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1118 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1120 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1122 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1123 * testsuite/libitm.c/memset-1.c: Same.
1124 * testsuite/libitm.c/c.exp: Same.
1125 * testsuite/lib/libitm-dg.exp: Same.
1126 * testsuite/lib/libitm.exp: Same.
1127 * testsuite/libitm.c++/c++.exp: Same.
1129 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1131 * testsuite/config/default.exp: Update copyright date.
1132 * configure.ac: Add copyright info.
1133 * configure.tgt: Same.
1135 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1137 * testsuite/libitm.c/reentrant.c: XFAIL.
1138 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1140 2011-10-29 Torvald Riegel <triegel@redhat.com>
1142 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1144 (_ITM_abortTransaction): Handle aborts of outer transactions.
1146 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1147 * libitm.texi: Document aborts of outer transactions.
1148 * testsuite/libitm.c/cancel.c: New file.
1150 2011-10-19 Torvald Riegel <triegel@redhat.com>
1152 * testsuite/*: Change __transaction to __transaction_atomic or
1153 __transaction_relaxed.
1155 2011-10-19 Torvald Riegel <triegel@redhat.com>
1157 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1160 2011-10-19 Torvald Riegel <triegel@redhat.com>
1162 * libitm_i.h: Add gl_wt dispatch.
1163 * retry.cc (parse_default_method): Same.
1164 * method-gl.cc: New file.
1165 * Makefile.am: Use method-gl.cc.
1166 * Makefile.in: Rebuild.
1168 2011-10-19 Torvald Riegel <triegel@redhat.com>
1170 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1171 safety if requested by a TM method.
1172 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1173 privatization safety.
1174 * method-serial.cc: Same.
1176 2011-10-19 Torvald Riegel <triegel@redhat.com>
1178 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1179 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1180 undolog-related member functions from *_local to *_undolog.
1181 * local.cc (gtm_thread::commit_undolog): Same.
1182 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1183 (GTM::gtm_thread::rollback): Roll back undolog before
1184 dispatch-specific rollback.
1186 2011-10-19 Torvald Riegel <triegel@redhat.com>
1188 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1189 re-initialization of the current method group.
1190 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1192 2011-10-19 Torvald Riegel <triegel@redhat.com>
1194 * alloc.cc (commit_allocations_2): Do not free transaction-local
1195 memory when committing a nested transaction.
1197 2011-10-19 Torvald Riegel <triegel@redhat.com>
1199 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1200 serial-irrevocable dispatch, not serial.
1202 2011-10-19 Torvald Riegel <triegel@redhat.com>
1204 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1206 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1207 * method-serial.cc: Implement begin_or_restart().
1208 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1209 dispatch-specific begin_or_restart().
1210 (GTM::gtm_thread::restart): Same.
1212 2011-08-23 Torvald Riegel <triegel@redhat.com>
1214 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1215 restarting without switching to serial mode.
1216 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1217 transaction state. Choose closed-nesting alternative if available.
1218 (GTM::gtm_thread::set_default_dispatch): New.
1219 (parse_default_method): New.
1220 (GTM::gtm_thread::number_of_threads_changed): New.
1221 * method-serial.cc (GTM::serial_mg): New method group class.
1222 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1224 (GTM::serial_dispatch): Same.
1225 (GTM::serialirr_onwrite_dispatch): Same.
1226 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1227 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1229 (GTM::gtm_thread::gtm_thread): Same.
1230 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1231 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1232 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1233 choose dispatch but set state according to dispatch here.
1234 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1235 (GTM::method_group): New class.
1236 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1237 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1238 * libitm.texi: Document TM methods, method groups, method life cycle.
1239 Rename method sets to method groups.
1241 2011-08-23 Torvald Riegel <triegel@redhat.com>
1243 * config/x86/tls.h: Moved to ...
1244 * config/linux/x86/tls.h: ... here.
1246 2011-08-23 Torvald Riegel <triegel@redhat.com>
1248 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1250 * config/x86/sjlj.S: Same.
1252 2011-08-19 Torvald Riegel <triegel@redhat.com>
1254 * config/linux/rwlock.h: New file.
1255 * config/linux/rwlock.c: New file.
1256 * configure.ac: Reenable futex support (undo SVN rev 157758).
1257 * Makefile.am: Same.
1258 * configure.tgt: Same.
1259 * config/linux/alpha/futex_bits.h: Same.
1260 * config/linux/futex.h: Same. Return number of woken processes.
1261 * config/linux/futex.cc: Same.
1262 (futex_wait): Remove spinning.
1263 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1264 Use __x86_64__ instead of __LP64__.
1265 * aclocal.m4: Include generic futex checks.
1266 * configure: Rebuild.
1267 * Makefile.in: Rebuild.
1268 * testsuite/Makefile.in: Rebuild.
1269 * beginend.cc: Include pthread.h.
1270 * config/posix/cachepage.cc: Same.
1272 2011-08-12 Torvald Riegel <triegel@redhat.com>
1274 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1275 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1277 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1279 (GTM::gtm_thread::thread_num): Removed.
1280 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1281 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1282 tx-to-thread renaming.
1283 * beginend.cc: Adapted to tx-to-thread renaming.
1284 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1285 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1286 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1287 gtm_transaction to gtm_thread.
1288 (_ITM_getThreadnum): Removed. Not supported anymore.
1289 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1290 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1291 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1292 gtm_tx-to-gtm_thr renaming if necessary.
1299 * alloc_cpp.cc: Same.
1300 * method-serial.cc: Same.
1301 * config/generic/tls.cc: Same.
1302 * config/posix/rwlock.h (gtm_rwlock): Same.
1303 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1305 2011-08-12 Torvald Riegel <triegel@redhat.com>
1307 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1309 (gtm_rwlock::read_unlock): Same.
1310 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1311 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1312 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1313 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1314 w_upgrade. Replaced by per-transaction flags (in shared_state).
1315 Added c_confirmed_writers.
1316 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1317 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1318 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1319 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1320 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1321 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1322 * libitm.texi: Document locking conventions and implementations in
1325 2011-08-12 Torvald Riegel <triegel@redhat.com>
1327 * libitm_i.h (next_tx): Add list of all threads' transaction.
1328 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1329 transaction with list of transactions and ...
1330 (thread_exit_handler): ... deregister here.
1331 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1332 * config/x86/target.h: Same.
1334 2011-08-12 Torvald Riegel <triegel@redhat.com>
1336 * testsuite/libitm.c++/static_ctor.C: New file.
1338 2011-08-12 Torvald Riegel <triegel@redhat.com>
1340 * testsuite/libitm.c/reentrant.c: New file.
1342 2011-08-12 Torvald Riegel <triegel@redhat.com>
1344 * config/generic/tls.h: Remove the free list for transactions and ...
1345 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1346 (GTM::gtm_transaction::operator delete): ... and release here.
1347 (thread_exit_handler): New. Delete tx when thread terminates.
1348 (thread_exit_init): New.
1349 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1350 * testsuite/libitm.c/txrelease.c: New file.
1352 2011-08-12 Torvald Riegel <triegel@redhat.com>
1354 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1355 * testsuite/libitm.c/notx.c: New file.
1357 2011-08-12 Torvald Riegel <triegel@redhat.com>
1359 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1360 * libitm_i.h (local_tid): ... to here.
1361 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1362 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1364 2011-08-12 Torvald Riegel <triegel@redhat.com>
1366 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1367 serialirr_onwrite_dispatch as new default for now.
1368 * method-serial.cc (serialirr_onwrite_dispatch): New.
1369 (GTM::dispatch_serialirr_onwrite): New.
1372 2011-08-12 Torvald Riegel <triegel@redhat.com>
1374 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1375 * query.cc (_ITM_getTransactionId): There is no active transaction if
1376 the current nesting level is zero.
1378 2011-07-28 Torvald Riegel <triegel@redhat.com>
1380 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1383 2011-07-28 Torvald Riegel <triegel@redhat.com>
1385 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1386 transaction properties from the caller instead of from the
1389 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1391 2011-07-28 Torvald Riegel <triegel@redhat.com>
1393 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1394 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1396 * method-serial.cc: Same.
1397 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1398 flat nesting as default, and closed nesting on demand.
1399 (GTM::gtm_transaction::rollback): Same.
1400 (_ITM_abortTransaction): Same.
1401 (GTM::gtm_transaction::restart): Same.
1402 (GTM::gtm_transaction::trycommit): Same.
1403 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1404 (choose_code_path): New.
1405 (GTM::gtm_transaction_cp::save): New.
1406 (GTM::gtm_transaction_cp::commit): New.
1407 * query.cc (_ITM_inTransaction): Support flat nesting.
1408 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1409 (GTM::gtm_transaction): Support flat and closed nesting.
1410 * alloc.cc (commit_allocations_2): New.
1411 (commit_cb_data): New helper struct.
1412 (GTM::gtm_transaction::commit_allocations): Handle nested
1414 * libitm.texi: Update user action section, add description of nesting.
1416 2011-07-28 Torvald Riegel <triegel@redhat.com>
1418 * libitm_i.h: Add closed nesting as restart reason.
1419 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1421 2011-07-28 Torvald Riegel <triegel@redhat.com>
1423 * useraction.cc: Use vector instead of list to store actions.
1424 Also support partial rollbacks for closed nesting.
1425 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1426 * beginend.cc: Same.
1428 2011-07-28 Torvald Riegel <triegel@redhat.com>
1430 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1431 closed_nesting flags, as well as a closed nesting alternative.
1432 * method-serial.cc: Same.
1433 (serial_dispatch): Renamed to serialirr_dispatch.
1434 (GTM::dispatch_serialirr): Same.
1435 (serial_dispatch_ul): Renamed to serial_dispatch.
1436 (GTM::dispatch_serial): Same.
1438 2011-07-28 Torvald Riegel <triegel@redhat.com>
1440 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1442 2011-07-28 Torvald Riegel <triegel@redhat.com>
1444 * aatree.h (aa_tree::remove): New.
1445 (aa_tree::operator new): Add placement new.
1447 2011-07-02 Torvald Riegel <triegel@redhat.com>
1449 * containers.h: New file.
1450 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1451 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1452 * common.h: ... to here.
1453 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1456 2011-06-30 Torvald Riegel <triegel@redhat.com>
1458 * libitm_i.h (STATE_ABORTING): Remove.
1459 * beginend.cc (_ITM_abortTransaction): Same.
1460 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1461 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1462 (_ITM_rollbackTransaction): Remove.
1463 * beginend.cc: Same.
1465 * libitm.texi: Document these ABI changes.
1467 2011-06-30 Torvald Riegel <triegel@redhat.com>
1469 * libitm.texi: New file.
1470 * Makefile.am: Add libitm.texi.
1471 * Makefile.in: Rebuild.
1473 2011-06-30 Torvald Riegel <triegel@redhat.com>
1475 * libitm_i.h: Move parts to common.h and dispatch.h.
1476 * common.h: New file.
1477 * dispatch.h: New file, new dispatch class.
1478 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1479 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1480 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1481 decision to retry.cc.
1482 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1484 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1485 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1487 * barrier.cc: Use new barriers definitions.
1488 (abi_dispatch::memmove_overlap_check): New.
1489 * config/x86/x86_sse.cc: Same.
1490 * config/x86/x86_avx.cc: Same.
1491 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1493 * Makefile.in: Rebuild.
1494 * method-readonly.cc: Remove.
1495 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1496 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1498 2011-06-30 Torvald Riegel <triegel@redhat.com>
1500 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1501 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1502 * testsuite/libitm.c/dropref-2.c: Same.
1503 * testsuite/libitm.c/dropref.c: Same.
1505 2011-06-30 Torvald Riegel <triegel@redhat.com>
1507 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1508 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1509 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1511 * barrier.tpl: Same.
1513 * config/generic/tls.h: Same.
1514 * config/x86/tls.h: Same.
1518 * method-readonly.cc: Same.
1519 * method-serial.cc: Same.
1520 * method-wbetl.cc: Same.
1523 2011-03-03 Richard Henderson <rth@redhat.com>
1525 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1526 From Patrik Marlier <patrick.marlier@unine.ch>.
1528 2011-02-03 Richard Henderson <rth@redhat.com>
1530 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1531 * configure.ac: Use it.
1532 * configure, config.h.in: Rebuild.
1533 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1534 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1535 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1536 * libitm.map: Use wildcards to match size_t mangling.
1538 2010-12-14 Richard Henderson <rth@redhat.com>
1540 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1541 blocks of TIDs per thread.
1542 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1543 (setup_gtm_thr): Return the thread structure.
1544 * config/x86/tls.h (setup_gtm_thr): Likewise.
1546 2010-12-14 Richard Henderson <rth@redhat.com>
1548 * clone.cc (table_lock): Remove.
1549 (find_clone): Don't take it.
1550 (ExcludeTransaction): New helper class.
1551 (_ITM_registerTMCloneTable): Use it.
1552 (_ITM_deregisterTMCloneTable): Likewise.
1554 2010-12-14 Richard Henderson <rth@redhat.com>
1556 * config/x86/tls.h: New file.
1558 2010-07-15 Richard Henderson <rth@redhat.com>
1560 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1561 * Makefile.in: Rebuild.
1563 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1565 * method-wbetl.cc (trydropreference): Fix source line.
1567 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1569 * libitm.h: Add comment.
1570 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1572 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1574 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1575 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1576 available, use pthread mutexes.
1577 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1578 * config.h.in: Regenerate.
1579 * configure: Regenerate.
1581 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1583 * libitm.h (ITM_PURE): Define.
1584 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1586 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1588 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1589 (validate): Add comment.
1590 (trydropreference): New.
1591 * method-readonly.cc (class readonly_dispatch): Add
1593 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1594 Call trydropreference().
1595 * libitm.h (_ITM_dropReferences): Remove const attribute.
1596 * method-serial.cc (class serial_dispatch): Add trydropreference.
1597 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1599 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1601 * memcpy.cc (do_memcpy): Comment.
1603 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1605 * barrier.tpl: Add comments throughout.
1607 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1609 * method-wbetl.cc (struct w_entry): Add comments.
1613 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1615 * alloc_c.cc (_ITM_dropReferences): New.
1616 * libitm.map (_ITM_dropReferences): Add.
1617 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1618 * libitm_i.h (struct gtm_transaction): Declare
1619 drop_references_allocations and drop_references_local.
1620 * local.cc (rollback_local): Ignore memory when applicable.
1621 (drop_references_local): New.
1623 2010-06-23 Richard Henderson <rth@redhat.com>
1625 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1626 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1627 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1628 * config/alpha/target.h: Likewise.
1629 * config/generic/tls.cc (gtm_mask_stack): Use it.
1631 2010-06-23 Richard Henderson <rth@redhat.com>
1633 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1634 a mutex instead of trying a lock-free compare-and-swap on the list.
1635 (gtm_cacheline_page::operator delete): Likewise.
1637 2010-06-16 Richard Henderson <rth@redhat.com>
1639 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1640 that overlap the libitm stack.
1641 * barrier.tpl: Mark incoming stack.
1642 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1643 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1644 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1645 * memcpy.cc, memset.cc: Likewise.
1646 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1647 * config/generic/tls.h (gtm_thread): Add stack_top member.
1648 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1649 * libitm_i.h (gtm_mask_stack): Declare.
1650 * config/generic/tls.cc: New file.
1651 * Makefile.am (libitm_la_SOURCES): Add it.
1652 (AM_CXXFLAGS): Turn off exceptions.
1653 * Makefile.in: Rebuild.
1655 2010-06-16 Richard Henderson <rth@redhat.com>
1657 * alloc.cc (struct gtm_alloc_action): Move definition ...
1658 * libitm_i.h: ... here.
1659 (class gtm_transaction): Declare new and delete.
1660 * beginend.cc (alloc_tx): Reformulate as operator new.
1661 (free_tx): Reformulate as operator delete.
1662 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1664 2010-06-11 Richard Henderson <rth@redhat.com>
1666 * clone.cc (clone_entry_compare): Fix typo.
1667 From Patrik Marlier <patrick.marlier@unine.ch>.
1669 2010-05-13 Richard Henderson <rth@redhat.com>
1671 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1674 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1676 * libitm_i.h (struct gtm_transaction): Remove
1677 get_allocation_size.
1678 (record_allocation): Remove size parameter.
1679 * libitm.map (_ITM_realloc): Remove.
1680 * alloc_c.cc (_ITM_realloc): Remove.
1681 (_ITM_malloc): Remove size argument to record_allocation.
1682 (_ITM_calloc): Same.
1683 * alloc_cpp.cc (_ZGTtnwm): Same.
1684 (_ZGTtnwmRKSt9nothrow_t): Same.
1686 (_ZGTtnamRKSt9nothrow_t): Same.
1687 * alloc.cc (struct gtm_alloc_action): Remove size.
1688 (get_allocation_size): Remove.
1689 (commit_allocations): Add comment.
1690 (record_allocation): Remove size parameter.
1691 (forget_allocation): Remove set of size.
1693 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1695 * Makefile.am (abi_version): New.
1696 (AM_CXXFLAGS): Pass abi_version.
1697 * Makefile.in: Regenerate.
1698 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1700 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1702 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1703 _ITM_getTMCloneOrIrrevokable.
1704 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1705 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1707 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1709 * configure.ac: Remove Linux futex support.
1710 * configure.tgt (config_path): Same.
1711 * Makefile.am: Same.
1712 * config/linux: Remove entire directory.
1713 * configure: Rebuild.
1714 * Makefile.in: Rebuild.
1715 * testsuite/Makefile.in: Rebuild.
1717 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1719 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1720 switching to serial mode.
1721 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1723 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1725 * configure.tgt: Add emacs -*- tags.
1726 * barrier.tpl: Same.
1728 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1730 * Makefile.am: Rename serial.cc to method-serial.cc.
1731 * Makefile.in: Regenerate with automake 1.11.1.
1732 * testsuite/Makefile.in: Same.
1733 * aclocal.m4: Regenerate with aclocal 1.11.1.
1734 * method-serial.cc: Rename from serial.cc.
1735 * libitm_i.h (struct gtm_transaction): Update comment on
1738 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1740 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1741 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1743 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1745 * configure: Rebuild.
1747 2009-11-12 Richard Henderson <rth@redhat.com>
1749 * Rewrite everything in C++.
1751 2009-11-03 Richard Henderson <rth@redhat.com>
1753 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1754 * Makefile.am (libitm_la_SOURCES): Add them.
1755 * configure.ac (ARCH_X86): New conditional.
1756 * Makefile.in, configure: Rebuild.
1757 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1758 Move futex setup into "other system configury" case.
1759 * local.c (rollback_local): Merge into ...
1760 (GTM_rollback_local): ... here.
1761 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1762 (_ITM_LB): Define as an alias to GTM_LB.
1764 2009-11-03 Richard Henderson <rth@redhat.com>
1766 * method-readonly.c: New file.
1767 * Makefile.am (libitm_la_SOURCES): Add it.
1768 * Makefile.in: Rebuild.
1769 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1770 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1771 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1772 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1773 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1774 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1775 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1776 gtm_get_clock, gtm_inc_clock): New.
1777 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1778 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1779 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1780 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1781 replace uses with new libitm_i.h symbols.
1782 (dispatch_wbetl): Rename from wbetl_dispatch.
1783 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1784 away from dispatch_readonly; abort if the beginTransaction call
1785 asserted that the transaction was readonly.
1787 2009-11-03 Richard Henderson <rth@redhat.com>
1789 * memset.c: New file.
1790 * Makefile.am (libitm_la_SOURCES): Add it.
1791 * Makefile.in: Rebuild.
1792 * testsuite/libitm.c/memset-1.c: New.
1794 2009-11-03 Richard Henderson <rth@redhat.com>
1796 * dispatch.c: Remove file.
1797 * useraction.c (struct gtm_user_action): Move from libitm.h.
1798 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1799 (serial_memset, serial_memmove, serial_memcpy): Remove.
1800 (serial_W*, serial_R*): Remove.
1801 (serial_dispatch): Update to match.
1802 * configure.ac: Move Werror down below configure checks. Don't
1803 check for sys/loadavg.h, do check for malloc.h. Don't check for
1804 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1805 Use GCC_AC_FUNC_MMAP_BLACKLIST
1806 * libitm.h: Split out all internal items to...
1807 * libitm_i.h: ... here. New file.
1808 * copymask.c: New file.
1809 * local.c (struct gtm_local_undo): Move from libitm.h.
1810 (GTM_alloc_local): Rename from alloc_local; export.
1811 * memcpy.c: New file.
1812 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1813 * config/posix/page.c: New file.
1814 * config/posix/target_tls.h: Remove file.
1815 * barrier.c: New file.
1816 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1818 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1819 * method-wbetl.c: Rewrite for new cacheline methods.
1820 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1822 * config/alpha/sjlj.S: Fix typo.
1823 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1824 * config/alpha/copymask.c: New file.
1825 * config/alpha/target.h (CACHELINE_SIZE): New.
1826 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1828 * config/x86/target_i.h: Copy functions from x86/target.h.
1829 * config/x86/copymask.c: New file.
1830 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1831 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1832 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1833 * config/x86/target_tls.h: Move contents to target_i.h.
1835 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1836 * testsuite/libitm.c/memcpy-1.c: New.
1838 2009-10-22 Richard Henderson <rth@redhat.com>
1840 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1841 (AM_CCASFLAGS): New.
1842 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1843 saving/restoring _AC_ARG_VAR_PRECIOUS.
1844 * Makefile.in, aclocal.m4, config.h.in, configure,
1845 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1847 2009-10-22 Richard Henderson <rth@redhat.com>
1849 * testsuite/*: Update for new compiler syntax.
1851 2009-10-21 Richard Henderson <rth@redhat.com>
1853 * libitm.h (_ITM_abortReason): Add outerAbort.
1855 2009-08-03 Richard Henderson <rth@redhat.com>
1857 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1858 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1859 * method-wbetl.c (struct w_entry): Remove mask.
1860 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1863 2009-07-22 Richard Henderson <rth@redhat.com>
1865 * eh_cpp.c: New file.
1866 * Makefile.am (libitm_la_SOURCES): Add it.
1867 * Makefile.in: Rebuild.
1868 * beginend.c (GTM_rollback_transaction): Undo exception state.
1869 (GTM_trycommit_transaction): Mark inline.
1870 (GTM_trycommit_and_finalize_transaction): Split out from ...
1871 (_ITM_commitTransaction): ... here.
1872 (_ITM_commitTransactionEH): New function.
1873 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1874 cxa_unthrown, eh_in_flight; reorder.
1876 * testsuite/libitm.c++/c++.exp: New.
1877 * testsuite/libitm.c++/eh-1.C: New.
1879 * aatree.c (aa_free): Remove REGPARM.
1880 * aatree.h: Remove all REGPARM.
1882 2009-07-18 Richard Henderson <rth@redhat.com>
1884 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1885 * Makefile.am (libitm_la_SOURCES): Add them.
1886 * Makefile.in: Rebuild.
1887 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1888 (GTM_trycommit_transaction): Likewise.
1889 * libitm.h: Include aatree.h
1890 (struct gtm_alloc_action): New.
1891 (struct gtm_transaction): Add alloc_actions.
1892 (GTM_record_allocation, GTM_forget_allocation): Declare.
1893 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1894 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1895 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1896 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1897 _ZGTtdaPvRKSt9nothrow_t): Export.
1899 2009-07-18 Richard Henderson <rth@redhat.com>
1901 * target_tls.h: Move ...
1902 * config/posix/target_tls.h: ... here.
1904 2009-07-07 Richard Henderson <rth@redhat.com>
1906 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1908 2009-07-07 Richard Henderson <rth@redhat.com>
1912 2009-07-07 Richard Henderson <rth@redhat.com>
1914 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1915 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1917 * configure.tgt: Don't use -ftls-model for x86 linux.
1918 * libitm.h: Include target.h after standard includes.
1919 (_gtm_thr): Rename from gtm_thr.
1920 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1921 (gtm_disp, set_gtm_disp): New.
1922 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1923 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1924 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1926 2009-07-07 Richard Henderson <rth@redhat.com>
1928 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1930 2009-07-06 Richard Henderson <rth@redhat.com>
1932 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1933 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1934 (_ITM_beginTransaction): Take variadic arguments.
1935 (_ITM_registerThrownObject): Declare.
1936 * beginend.c, serial.c: Update.
1937 * libitm.map: Add _ITM_registerThrownObject.
1939 2009-01-28 Richard Henderson <rth@redhat.com>
1941 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1942 * Makefile.in: Rebuild.
1943 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1944 (GTM_restart_transaction): Fix uninstrumented code check.
1945 * retry.c (GTM_decide_retry_strategy): Add serial check.
1946 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1947 automatically go irrevokable when in serial mode.
1948 * clone.c: New file.
1949 * libitm.h, libitm.map: Update.
1951 2009-01-27 Richard Henderson <rth@redhat.com>
1953 * Makefile.am (LTCCASCOMPILE): Define.
1954 (libitm_la_SOURCES): Add methid-wbetl.c.
1955 * testsuite/Makefile.am: New
1956 * configure.ac: Add testsuite/Makefile.
1957 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1958 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1959 (_ITM_abortTransaction): Finalize implementation method; pass
1960 transaction properties to longjmp.
1961 (GTM_restart_transaction): Split out from ...
1962 (_ITM_commitTransaction): ... here.
1963 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1964 Move to config/x86/target.h.
1965 * config/linux/alpha/futex_bits.h: New.
1966 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1967 * config/x86/target.h: Disable target types for 32-bit.
1968 * config/alpha/sjlj.S, config/alpha/target.h: New.
1969 * libitm.h (struct gtm_dispatch): Add init, fini.
1970 (enum restart_reason): New.
1971 (struct gtm_transaction): Add method and restarts.
1972 * retry.c (GTM_decide_retry_strategy): Implement.
1973 * serial.c (serial_init, serial_fini): New.
1974 (GTM_serialmode): Finialize outgoing method.
1975 * method-wbetl.c: New.
1977 2008-12-09 Richard Henderson <rth@redhat.com>
1979 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1980 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1981 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1982 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1983 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1984 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1985 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1986 * serial.c (serial_R##T, serial_W##T): Likewise.
1988 2008-11-21 Richard Henderson <rth@redhat.com>
1992 Copyright (C) 2008-2016 Free Software Foundation, Inc.
1994 Copying and distribution of this file, with or without modification,
1995 are permitted in any medium without royalty provided the copyright
1996 notice and this notice are preserved.