1 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5 of cat to get version from BASE-VER file.
6 * testsuite/Makefile.in: Regenerated.
8 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
10 * config/x86/target.h (htm_available): Determine vendor from
11 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
13 2017-01-18 Torvald Riegel <triegel@redhat.com>
15 * config/x86/target.h (htm_available): Add check for some processors
16 on which TSX is broken.
18 2017-01-17 Jakub Jelinek <jakub@redhat.com>
21 * configure.ac: Add GCC_BASE_VER.
22 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
23 get version from BASE-VER file.
24 * testsuite/Makefile.in: Regenerated.
25 * configure: Regenerated.
26 * Makefile.in: Regenerated.
28 2017-01-04 Alan Modra <amodra@gmail.com>
30 * Makefile.in: Regenerate.
31 * testsuite/Makefile.in: Regenerate.
33 2017-01-01 Jakub Jelinek <jakub@redhat.com>
35 Update copyright years.
37 * libitm.texi: Bump @copying's copyright year.
39 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
42 * aclocal.m4: Regenerate.
43 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
44 LIBITM_CHECK_LINKER_HWCAP.
46 2016-11-15 Matthias Klose <doko@ubuntu.com>
48 * configure: Regenerate.
50 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
53 * util.cc (xmalloc): Use posix_memalign to allocate memory on
54 on cache line if requested.
56 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
58 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
59 function attribute to disable floating point in begin_transaction() on
61 * beginend.cc (begin_transaction): Use
62 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
64 2016-01-22 Torvald Riegel <triegel@redhat.com>
66 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
68 (htm_fastpath): Remove.
69 (gtm_thread::begin_transaction): Fix HTM fastpath.
70 (_ITM_commitTransaction): Adapt.
71 (_ITM_commitTransactionEH): Adapt.
72 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
74 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
75 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
76 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
77 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
78 * libitm/method-serial.cc (htm_mg): Adapt.
79 (gtm_thread::serialirr_mode): Adapt.
80 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
82 2016-01-21 Torvald Riegel <triegel@redhat.com>
84 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
87 2016-01-19 Richard Henderson <rth@redhat.com>
92 2016-01-13 Richard Henderson <rth@redhat.com>
94 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
95 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
96 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
97 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
98 * configure.ac (ARCH_AARCH64): New conditional.
99 (ARCH_PPC, ARCH_S390): Likewise.
100 * Makefile.in, configure: Rebuild.
102 * libitm.h (_ITM_TYPE_M128): Always define.
103 * vect64.cc: Split ...
104 * vect128.cc: ... out of...
105 * config/x86/x86_sse.cc: ... here.
106 * config/arm/neon.cc: New file.
108 2016-01-19 Torvald Riegel <triegel@redhat.com>
110 * local_type_traits: Remove file.
111 * libitm_i.h: Don't include it anymore.
112 (sized_integral): Remove.
114 2016-01-16 Torvald Riegel <triegel@redhat.com>
116 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
118 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
119 * libitm/testsuite/libitm.c/priv-1.c: New.
121 2015-01-15 Torvald Riegel <triegel@redhat.com>
123 testsuite/libitm.c++/libstdc++-safeexc.C: New.
125 2016-01-13 Torvald Riegel <triegel@redhat.com>
127 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
128 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
129 (gtm_rwlock::write_unlock): Likewise.
131 2016-01-13 Richard Henderson <rth@redhat.com>
133 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
134 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
135 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
136 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
137 * configure.ac (ARCH_AARCH64): New conditional.
138 (ARCH_PPC, ARCH_S390): Likewise.
139 * Makefile.in, configure: Rebuild.
141 * libitm.h (_ITM_TYPE_M128): Always define.
142 * vect64.cc: Split ...
143 * vect128.cc: ... out of...
144 * config/x86/x86_sse.cc: ... here.
145 * config/arm/neon.cc: New file.
147 2016-01-13 Torvald Riegel <triegel@redhat.com>
149 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
150 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
151 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
152 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
153 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
154 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
155 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
156 (serialirr_dispatch::snapshot_most_recent): New.
157 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
159 2016-01-12 Torvald Riegel <triegel@redhat.com>
161 * libitm_i.h (gtm_mask_stack): Remove.
162 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
163 * stmlock.h: Remove file.
164 * config/alpha/cacheline.h: Likewise.
165 * config/generic/cacheline.h: Likewise.
166 * config/powerpc/cacheline.h: Likewise.
167 * config/sparc/cacheline.h: Likewise.
168 * config/x86/cacheline.h: Likewise.
170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
172 Update copyright years.
174 * libitm.texi: Bump @copying's copyright year.
176 2015-11-26 Torvald Riegel <triegel@redhat.com>
178 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
179 (ml_wt_dispatch::pre_write): Adapt.
180 (ml_wt_dispatch::pre_load): Likewise.
182 2015-11-22 Torvald Riegel <triegel@redhat.com>
184 * libitm_i.h (gtm_alloc_action): Remove union.
185 * testsuite/libitm.c/alloc-1.c: New.
187 2015-11-19 Torvald Riegel <triegel@redhat.com>
189 * testsuite/libitm.c++/eh-5.C: New.
190 * libitm.h (_ITM_cxa_free_exception): New.
191 * libitm.map (_ITM_cxa_free_exception): Add it.
192 * libitm.texi: Update ABI docs.
193 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
194 (gtm_transaction_cp::cxa_uncaught_count): Add.
195 (gtm_thread::cxa_unthrown): Remove.
196 (gtm_thread::cxa_uncaught_count_ptr): Add.
197 (gtm_thread::cxa_uncaught_count): Add.
198 (gtm_thread::drop_references_allocations): Rename to...
199 (gtm_thread::discard_allocation): ... this and adapt.
200 (gtm_thread::init_cpp_exceptions): New.
201 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
202 (gtm_thread::begin_transaction): Likewise.
203 (gtm_transaction_cp::save): Likewise.
204 (gtm_thread::trycommit): Likewise.
205 * eh_cpp.cc: Add overview comments.
206 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
207 (free_any_exception, _ITM_cxa_free_exception): New.
208 (gtm_thread::init_cpp_exceptions): Define.
209 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
210 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
211 (gtm_thread::revert_cpp_exceptions): Likewise.
213 2015-11-09 Torvald Riegel <triegel@redhat.com>
215 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
216 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
217 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
218 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
219 (gtm_thread::forget_allocations): New overload with size_t argument.
220 * alloc.c (gtm_thread::forget_allocation): Define new overload and
222 (gtm_thread::record_allocation): Adapt.
223 (gtm_thread::commit_allocations_1): Adapt.
224 (gtm_thread::commit_allocations_2): Adapt.
225 * testsuite/libitm.c++/newdelete.C: New.
227 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
228 Joseph Myers <joseph@codesourcery.com>
229 Mark Shinwell <shinwell@codesourcery.com>
230 Andrew Stubbs <ams@codesourcery.com>
231 Rich Felker <dalias@libc.org>
233 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
234 GTM_begin_transaction for compatibility with FDPIC.
236 2015-10-09 David Malcolm <dmalcolm@redhat.com>
238 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
241 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
244 * local_atomic (__always_inline): Rename to...
245 (__libitm_always_inline): ... this.
247 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
250 * config/powerpc/sjlj.S: Port to Xcode 2.5.
252 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
254 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
255 operands "op" and "val" to int.
257 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
259 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
260 "op" and "val" to int.
262 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
264 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
265 "op" and "val" to int.
267 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
269 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
270 Declare as static int.
271 (FUTEX_PRIVATE_FLAG): Remove L suffix.
272 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
274 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
276 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
279 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
281 * Makefile.in: Regenerated with automake-1.11.6.
282 * aclocal.m4: Likewise.
283 * configure: Likewise.
284 * testsuite/Makefile.in: Likewise.
286 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
288 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
289 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
291 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
294 * libitm.c/stackundo.c (test2): Make it static.
297 2015-01-05 Jakub Jelinek <jakub@redhat.com>
299 Update copyright years.
301 2015-01-05 Jakub Jelinek <jakub@redhat.com>
303 * libitm.texi: Bump @copying's copyright year.
305 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
307 * testsuite/lib/libitm.exp: Load target-utils.exp.
308 Move load of target-supports.exp earlier.
310 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
312 * configure.tgt (x86_64): Tune -m32 multilib to generic.
314 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
317 * configure: Regenerated.
319 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
322 * configure: Regenerate.
324 2014-10-06 Marek Polacek <polacek@redhat.com>
326 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
327 * testsuite/libitm.c/memset-1.c: Likewise.
329 2014-07-24 Richard Henderson <rth@redhat.com>
331 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
332 addressing mode in epilogue.
334 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
336 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
337 -mclear-hwcap instead.
338 * configure: Regenerate.
339 * clearcap.map: Remove.
341 2014-05-21 John Marino <gnugcc@marino.st>
343 * configure.tgt (*-*-dragonfly*): New target.
345 2014-05-19 Richard Henderson <rth@redhat.com>
347 * config/aarch64/sjlj.S: New file.
348 * config/aarch64/target.h: New file.
349 * configure.tgt: Enable aarch64.
351 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 * config/generic/asmcfi.h: Also check for
354 __GCC_HAVE_DWARF2_CFI_ASM.
356 2013-04-02 Richard Henderson <rth@redhat.com>
358 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
359 * config/arm/target.h, config/sh/target.h: Likewise.
360 * config/sparc/target.h, config/x86/target.h: Likewise.
362 2014-03-26 Jakub Jelinek <jakub@redhat.com>
364 * config/linux/futex_bits.h: Include errno.h.
365 (sys_futex0): If syscall returns -1, return -errno rather than
368 2014-03-26 Joseph Myers <joseph@codesourcery.com>
370 * libitm.texi (Index): Rename to Library Index.
372 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
375 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
376 (x86_avx.lo): Append -mavx to CXXFLAGS.
377 * Makefile.in: Regenerate.
379 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
381 Update copyright years
383 2014-01-02 Tobias Burnus <burnus@net-b.de>
385 * libitm.texi: Bump @copying's copyright year.
387 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
389 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
390 (FUNC): Define ELFv2 variant.
397 2013-09-20 Alan Modra <amodra@gmail.com>
399 * configure: Regenerate.
401 2013-08-30 Torvald Riegel <triegel@redhat.com>
403 * config/posix/rwlock.cc: Fix initialization order.
405 2013-08-30 Torvald Riegel <triegel@redhat.com>
407 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
408 (htm_fastpath): Assign an asm name.
409 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
411 (_ITM_actions): Likewise.
412 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
414 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
415 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
416 field to the start of the structure.
417 * config/linux/rwlock.h (gtm_rwlock): Update comments.
418 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
419 handling for custom HTM fast paths.
421 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
423 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
425 * configure.tgt: Add -msoft-float to XCFLAGS.
427 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
429 * configure.tgt: Add -msoft-float to XCFLAGS.
431 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
433 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
434 (htm_transaction_active): Enable zEC12 instructions in the
436 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
438 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
440 * acinclude.m4: Add htm asm check for s390.
441 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
442 * configure: Regenerate.
443 * config/s390/target.h: Remove __HTM__ check.
444 (htm_available): Call getauxval to get hwcaps and check whether
445 HTM is available or not.
447 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
449 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
450 * configure.ac: Use it.
451 (AC_CHECK_HEADERS): Check for sys/auxv.h.
452 (AC_CHECK_FUNCS): Check for getauxval.
453 * config.h.in, configure: Rebuild.
454 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
455 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
456 (USE_HTM_FASTPATH): Define.
457 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
458 _HTM_RETRIES) New macros.
459 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
460 htm_begin_success, htm_commit, htm_transaction_active): New functions.
462 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
464 * config/s390/target.h: Include htmintrin.h.
465 (_HTM_ITM_RETRIES): New macro definition.
466 (htm_available, htm_init, htm_begin, htm_begin_success)
467 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
469 2013-06-20 Iain Sandoe <iain@codesourcery.com>
470 Cesar Philippidis <cesar@codesourcery.com>
472 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
473 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
474 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
475 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
477 2013-06-20 Torvald Riegel <triegel@redhat.com>
479 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
480 (_ITM_getTransactionId): Same.
481 * config/x86/target.h (htm_transaction_active): New.
483 2013-06-20 Torvald Riegel <triegel@redhat.com>
486 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
489 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
492 * local_atomic (__always_inline): Always define our version.
493 (__calculate_memory_order): Mark inline.
494 (atomic_thread_fence): Ditto.
495 (atomic_signal_fence): Ditto.
496 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
497 (atomic_bool::atomic_flag_clear_explicit): Ditto.
498 (atomic_bool::atomic_flag_test_and_set): Ditto.
499 (atomic_bool::atomic_flag_clear): Ditto.
501 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
503 * config/s390/sjlj.S: New file.
504 * config/s390/target.h: New file.
505 * configure.tgt: Set options for S/390.
507 2013-03-23 Andi Kleen <ak@linux.intel.com>
509 * local_atomic (__always_inline): Add.
510 (__calculate_memory_order, atomic_thread_fence,
511 atomic_signal_fence, test_and_set, clear, store, load,
512 exchange, compare_exchange_weak, compare_exchange_strong,
513 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
514 Add __always_inline to force inlining.
516 2013-02-11 Iain Sandoe <iain@codesourcery.com>
517 Jack Howarth <howarth@bromo.med.uc.edu>
518 Patrick Marlier <patrick.marlier@gmail.com>
521 * alloc_cpp.cc: Enable function declarations on darwin.
522 * eh_cpp.cc: Likewise.
524 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
526 Update copyright years.
528 2012-11-09 Torvald Riegel <triegel@redhat.com>
530 * beginend.cc (htm_fastpath): New.
531 (gtm_thread::begin_transaction, _ITM_commitTransaction,
532 _ITM_commitTransactionEH): Add HTM fastpath handling.
533 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
534 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
535 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
536 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
537 * configure.tgt: Add -mrtm to XCFLAGS.
538 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
539 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
540 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
541 * retry.cc (parse_default_method): Add HTM method parsing.
542 (gtm_thread::number_of_threads_changed): Use HTM by default if
545 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
547 * configure: Regenerate.
549 2012-10-31 Richard Henderson <rth@redhat.com>
551 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
552 * configure.ac: Use it.
553 * config.h.in, configure: Rebuild.
554 * testsuite/Makefile.in: Rebuild.
556 2012-10-24 Torvald Riegel <triegel@redhat.com>
558 * libitm.texi: Clarify ABI requirements for data-logging functions.
560 2012-10-24 Torvald Riegel <triegel@redhat.com>
562 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
563 it requires serial mode instead of assuming that for certain
565 * dispatch.h (abi_dispatch::requires_serial): New.
566 (abi_dispatch::abi_dispatch): Adapt.
567 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
568 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
569 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
570 serial_dispatch::serial_dispatch,
571 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
573 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
575 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
576 and ia32 declarations some more.
577 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
579 2012-09-20 Jakub Jelinek <jakub@redhat.com>
582 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
583 * configure: Regenerate.
584 * Makefile.in: Regenerate.
586 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
588 * configure: Regenerated.
590 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
592 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
594 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
596 * eh_cpp.cc: Fix __cxa_end_catch declaration.
598 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
600 * configure: Regenerated.
602 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
605 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
608 2012-04-03 Tristan Gingold <gingold@adacore.com>
610 * configure: Regenerate.
612 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
615 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
617 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
619 * testsuite/lib/libitm.exp: load fortran-modules.exp
621 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
623 * configure.tgt (*-*-irix6*): Remove.
625 2012-03-13 Torvald Riegel <triegel@redhat.com>
628 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
631 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
633 * configure.tgt (*-*-osf*): Remove.
634 * configure: Regenerate.
636 2012-03-05 Torvald Riegel <triegel@redhat.com>
638 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
639 memtransfer/memset if size isn't larger than zero.
641 2012-03-02 Torvald Riegel <triegel@redhat.com>
643 * libitm.texi: Link to specification and add a usage example.
645 2012-02-24 Torvald Riegel <triegel@redhat.com>
647 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
648 default dispatch for more than 1 thread to ml_wt.
650 2012-02-20 Torvald Riegel <triegel@redhat.com>
652 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
654 2012-02-20 Torvald Riegel <triegel@redhat.com>
656 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
658 2012-02-20 Torvald Riegel <triegel@redhat.com>
660 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
661 serial mode corner cases made obsolete by prior gtm_rwlock changes.
662 (gl_wt_dispatch.rollback): Same.
664 2012-02-20 Torvald Riegel <triegel@redhat.com>
666 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
668 2012-02-20 Torvald Riegel <triegel@redhat.com>
670 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
671 for RfW src. Optimize number of calls to gtm_thr.
673 2012-02-20 Torvald Riegel <triegel@redhat.com>
675 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
677 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
678 (default_dispatch): Make atomic.
679 (GTM::gtm_thread::set_default_dispatch): Access atomically.
680 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
681 use decide_begin_dispatch() if default_dispatch might have changed.
682 (GTM::gtm_thread::number_of_threads_changed): Initialize
683 default_dispatch here.
685 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
686 Patrick Marlier <patrick.marlier@gmail.com>
689 * alloc_cpp.cc: No dummy definitions for darwin.
690 * eh_cpp.cc: Likewise.
692 2012-02-14 Richard Henderson <rth@redhat.com>
694 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
696 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
698 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
700 2012-02-14 Torvald Riegel <triegel@redhat.com>
702 * libitm_i.h (GTM::gtm_rwlog_entry): New.
703 (GTM::gtm_thread): Add read and write logs.
704 (GTM::dispatch_ml_wt): Declare.
705 * retry.cc (parse_default_method): Support ml_wt.
706 * method-ml.cc: New file.
707 * Makefile.am: Add method-ml.cc.
708 * Makefile.in: Regenerate.
710 2012-02-14 Torvald Riegel <triegel@redhat.com>
712 * dispatch.h (GTM::abi_dispatch::supports): New.
713 (GTM::method_group::reinit): New.
714 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
715 (GTM::gtm_thread::number_of_threads_changed): Check that the method
716 supports the current situation.
718 2012-02-14 Torvald Riegel <triegel@redhat.com>
720 * util.cc (GTM::xcalloc): New.
721 * common.h (GTM::xcalloc): Declare.
723 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
725 * config/sparc/target.h (cpu_relax): Read from CC register.
726 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
728 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
730 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
732 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
734 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
735 * config/sparc/cacheline.h: New file.
736 * config/sparc/target.h: Likewise.
737 * config/sparc/sjlj.S: Likewise.
738 * config/linux/sparc/futex_bits.h: Likewise.
740 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
742 * configure.ac (link_itm): Fix comment.
743 * configure: Regenerate.
744 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
746 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
749 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
750 Correct libgomp references.
752 2012-01-24 Torvald Riegel <triegel@redhat.com>
754 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
757 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
759 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
761 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
762 offset values. Do not copy return address. Decrement stack
764 (GTM_longjump) [__x86_64__]: Update offset values.
766 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
769 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
770 the first function argument to %eax.
772 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
774 * libitm.h (_ITM_getThreadnum): Remove.
775 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
777 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
779 * clearcap.map: New file.
780 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
781 * configure.ac: Call it.
782 Clear HWCAP_LDFLAGS if defaulting to -mavx.
783 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
784 * configure: Regenerate.
785 * Makefile.in: Regenerate.
786 * testsuite/Makefile.in: Regenerate.
788 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
792 include, exclude options.
794 2012-01-14 Torvald Riegel <triegel@redhat.com>
796 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
798 * containers.h (GTM::vector::set_size): New.
800 2012-01-14 Torvald Riegel <triegel@redhat.com>
803 * config/generic/tls.h (GTM::mask_stack_top): New.
804 (GTM::mask_stack_bottom): Declare.
805 * config/generic/tls.c (GTM::mask_stack_bottom): New.
806 * local.cc (gtm_undolog::rollback): Filter out any updates that
807 overlap the libitm stack. Add current transaction as parameter.
808 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
809 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
810 * testsuite/libitm.c/stackundo.c: New test.
812 2012-01-10 Richard Henderson <rth@redhat.com>
814 * libitm_i.h (_Unwind_DeleteException): Declare weak.
815 * eh_cpp.cc (_Unwind_DeleteException): Define for
816 !HAVE_ELF_STYLE_WEAKREF.
818 2012-01-08 Torvald Riegel <triegel@redhat.com>
820 * local.cc (GTM_LB): Use GTM::gtm_undolog.
821 (GTM::gtm_thread::drop_references_undolog): Remove.
822 (GTM::gtm_thread::commit_undolog,
823 GTM::gtm_thread::rollback_undolog): Move to ...
824 * libitm_i.h (GTM::gtm_undolog): ...here. New.
825 (GTM::gtm_undolog_entry): Remove.
826 (GTM::gtm_thread): Adapt.
827 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
828 (GTM::gtm_thread::trycommit): Adapt.
829 * method-serial.cc (serial_dispatch::log): Adapt.
830 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
831 (gl_wt_dispatch::store): Fix likely/unlikely.
832 * containers.h (GTM::vector::resize): Add additional_capacity
833 parameter and handle it.
834 (GTM::vector::resize_noinline): New/adapt.
835 (GTM::vector::push): New.
837 2012-01-06 Richard Henderson <rth@redhat.com>
839 * configure.tgt: Support powerpc-linux and powerpc-darwin.
840 * config/linux/powerpc/futex_bits.h: New file.
841 * config/powerpc/cacheline.h: New file.
842 * config/powerpc/sjlj.S: New file.
843 * config/powerpc/target.h: New file.
844 * config/generic/asmcfi.h (cfi_offset): New.
845 (cfi_restore, cfi_undefined): New.
847 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
850 * testsuite/libitm.c/reentrant.c: Remove xfail.
851 (thread): Pass x to pure().
852 From Patrik Marlier <patrick.marlier@gmail.com>.
854 2011-12-24 Torvald Riegel <triegel@redhat.com>
856 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
857 privatization safety if already in serial mode.
859 2011-12-24 Torvald Riegel <triegel@redhat.com>
861 * beginend.cc (GTM::gtm_thread::restart): Add and handle
862 finish_serial_upgrade parameter.
863 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
864 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
865 Don't unset reader flag.
866 (GTM::gtm_rwlock::write_upgrade_finish): New.
867 * config/posix/rwlock.cc: Same.
868 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
870 * config/posix/rwlock.h: Same.
871 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
872 flag after commit or after rollback when restarting.
874 2011-12-24 Torvald Riegel <triegel@redhat.com>
876 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
877 (GTM::gtm_thread::try_commit): Changed memory order.
878 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
880 * config/linux/x86/futex_bits.h (sys_futex0): Same.
881 * config/linux/sh/futex_bits.h (sys_futex0): Same.
882 * config/linux/futex_bits.h (sys_futex0): Same.
883 * config/linux/futex.cc (futex_wait, futex_wake): Same.
884 * config/linux/futex.h (futex_wait, futex_wake): Same.
885 * config/linux/rwlock.h (gtm_rwlock::writers,
886 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
888 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
889 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
890 gtm_rwlock::write_unlock): Fix memory orders and fences.
891 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
892 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
893 gtm_rwlock::write_unlock): Same.
894 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
895 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
896 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
898 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
899 gl_wt_dispatch::load, gl_wt_dispatch::store,
900 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
901 orders and fences. Add comments.
903 2011-12-21 Jakub Jelinek <jakub@redhat.com>
905 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
906 * Makefile.in: Regenerated.
908 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
910 * configure.tgt: Add sh* case.
911 * config/sh/target.h: New file.
912 * config/sh/sjlj.S: New file.
913 * config/linux/sh/futex_bits.h: New file.
915 2011-12-14 Richard Henderson <rth@redhat.com>
917 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
918 * config/arm/sjlj.S, config/arm/target.h: New files.
919 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
920 (cfi_rel_offset): New.
921 * config/linux/futex_bits.h: New file.
922 * config/linux/futex.cc: Include futex_bits.h here...
923 * config/linux/futex.h: ... not here.
924 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
925 * configure.ac (ARCH_AM): New conditional.
926 * Makefile.in, configure: Rebuild.
927 * configure.tgt: Handle ARM.
929 2011-12-13 Richard Henderson <rth@redhat.com>
931 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
932 signed/unsigned comparison werror.
934 * local_atomic: New file.
935 * libitm_i.h: Include it.
936 (gtm_thread::shared_state): Use atomic template.
937 * beginend.cc (GTM::gtm_clock): Use atomic template.
938 (global_tid): Use atomic template if 64-bit atomics available.
939 (gtm_thread::gtm_thread): Update shared_state access.
940 (gtm_thread::trycommit): Likewise.
941 (choose_code_path): Update global_tid access.
942 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
943 * stmlock.h (GTM::gtm_clock): Use atomic template.
944 (gtm_get_clock, gtm_inc_clock): Update accesses.
945 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
946 redundant __sync_synchronize after atomic shared_state access.
947 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
948 (gtm_rwlock::write_lock_generic): Likewise.
949 (gtm_rwlock::read_unlock): Likewise.
950 * config/alpha/target.h (atomic_read_barrier): Remove.
951 (atomic_write_barrier): Remove.
952 * config/x86/target.h (atomic_read_barrier): Remove.
953 (atomic_write_barrier): Remove.
955 2011-11-30 Richard Henderson <rth@redhat.com>
957 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
958 * beginend.c (_ITM_abortTransaction): Update to match.
959 (GTM::gtm_thread::restart): Likewise.
960 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
961 * config/x86/sjlj.S (GTM_longjmp): Likewise.
963 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
965 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
966 * Makefile.in: Regenerate.
968 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
970 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
971 * alloc_cpp.cc: Generate dummy functions if we don't
972 HAVE_ELF_STYLE_WEAKREF.
973 * eh_cpp.cc: Likewise.
974 * configure: Regenerate.
975 * aclocal.m4: Likewise.
976 * config.h.in: Likewise.
977 * Makefile.in: Likewise.
978 * testsuite/Makefile.in: Likewise.
980 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
982 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
983 __USER_LABEL_PREFIX__ for targets that use it.
984 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
985 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
986 in portability to non-elf targets.
987 (GTM_longjmp): Likewise.
988 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
991 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
993 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
994 * testsuite/libitm.c/memset-1.c: Likewise.
996 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
998 * configure: Regenerate.
1000 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1002 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1003 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1004 * Makefile.am: Handle sun style versioning.
1005 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1006 * configure: Regenerate.
1007 * Makefile.in: Regenerate.
1009 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1011 * config/generic/asmcfi.h: Fix comment.
1012 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1013 sequence without .hidden support, error for non-ELF targets.
1014 (GTM_longjmp) [__ELF__]: Only use .hidden if
1015 HAVE_ATTRIBUTE_VISIBILITY.
1017 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1020 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1022 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1023 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1025 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1028 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1029 * configure: Regenerate.
1031 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1033 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1035 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1037 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1039 (.note.GNU-stack): Only use if __linux__.
1040 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1041 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1042 * testsuite/libitm.c/reentrant.c: Likewise.
1043 * testsuite/libitm.c/simple-2.c: Likewise.
1044 * testsuite/libitm.c/txrelease.c: Likewise.
1045 * testsuite/libitm.c++/static_ctor.C: Likewise.
1047 2011-11-10 Richard Henderson <rth@redhat.com>
1049 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1050 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1051 * configure.ac (ARCH_X86_AVX): New conditional.
1052 * Makefile.in, configure: Rebuild.
1054 2011-11-09 Richard Henderson <rth@redhat.com>
1056 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1057 * configure.ac: Use it.
1058 * config.h.in, configure: Rebuild.
1059 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1061 2011-11-09 Richard Henderson <rth@redhat.com>
1063 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1064 * config/alpha/unaligned.h: Remove file.
1065 * config/generic/unaligned.h: Remove file.
1066 * config/x86/unaligned.h: Remove file.
1067 * config/generic/cachepage.h: Remove file.
1068 * config/posix/cachepage.cc: Remove file.
1069 * config/generic/cacheline.cc: Remove file.
1070 * config/x86/cacheline.cc: Remove file.
1071 * config/generic/cacheline.h (gtm_cacheline): Remove the
1072 store_mask, copy_mask, copy_mask_wb methods.
1073 * config/x86/cacheline.h: Likewise.
1074 * config/alpha/cacheline.h: Fall back to generic after setting size.
1075 * config/generic/tls.cc (gtm_mask_stack): Remove.
1076 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1077 (GTM_vpalignr_table): Remove.
1078 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1079 (GTM_pshift_table): Remove.
1080 * config/libitm_i.h: Don't include cachepage.h.
1081 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1082 * Makefile.in, testsuite/Makefile.in: Rebuild.
1084 2011-11-09 Richard Henderson <rth@redhat.com>
1086 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1087 to emit branch prediction hint.
1089 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1090 Protect .note.GNU-stack with __linux__.
1092 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1093 * configure, aclocal.m4, config.h.in: Rebuild.
1094 * config/generic/asmcfi.h: New file.
1095 * config/x86/sjlj.S: Use it.
1097 2011-11-08 Richard Henderson <rth@redhat.com>
1099 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1101 2011-11-08 Richard Henderson <rth@redhat.com>
1103 * configure.tgt: Test correct directory for supported cpus.
1105 * configure.ac: Exit if unsupported.
1106 * configure: Rebuild.
1107 * configure.tgt: Delete boilerplate from libgomp for unsupported
1108 targets. Set UNSUPPORTED for unsupported targets.
1110 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1112 * configure.tgt: Handle i386 like i[456]86.
1113 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1115 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1116 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1118 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1120 * method-wbetl.cc: Update copyright notice.
1126 * barrier.tpl: Same.
1127 * useraction.cc: Same.
1131 * config/generic/tls.cc: Same.
1132 * config/generic/cacheline.h: Same.
1133 * config/generic/cachepage.h: Same.
1134 * config/generic/cacheline.cc: Same.
1135 * config/generic/unaligned.h: Same.
1136 * config/x86/cacheline.h: Same.
1137 * config/x86/cacheline.cc: Same.
1138 * config/x86/unaligned.h: Same.
1139 * config/alpha/cacheline.h: Same.
1140 * config/alpha/unaligned.h: Same.
1141 * config/alpha/sjlj.S: Same.
1142 * config/posix/cachepage.cc: Same.
1143 * config/linux/futex.h: Same.
1144 * config/linux/alpha/futex_bits.h: Same.
1146 2011-11-04 Torvald Riegel <triegel@redhat.com>
1148 * libitm.texi: No cover text and invariant sections.
1150 2011-11-03 Richard Henderson <rth@redhat.com>
1152 * local_type_traits: New file.
1153 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1155 2011-11-03 Richard Henderson <rth@redhat.com>
1157 * configure.ac: Don't test for gfortran.
1158 * configure: Rebuild.
1160 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1161 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1163 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1165 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1166 * testsuite/libitm.c/memset-1.c: Same.
1167 * testsuite/libitm.c/c.exp: Same.
1168 * testsuite/lib/libitm-dg.exp: Same.
1169 * testsuite/lib/libitm.exp: Same.
1170 * testsuite/libitm.c++/c++.exp: Same.
1172 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1174 * testsuite/config/default.exp: Update copyright date.
1175 * configure.ac: Add copyright info.
1176 * configure.tgt: Same.
1178 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1180 * testsuite/libitm.c/reentrant.c: XFAIL.
1181 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1183 2011-10-29 Torvald Riegel <triegel@redhat.com>
1185 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1187 (_ITM_abortTransaction): Handle aborts of outer transactions.
1189 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1190 * libitm.texi: Document aborts of outer transactions.
1191 * testsuite/libitm.c/cancel.c: New file.
1193 2011-10-19 Torvald Riegel <triegel@redhat.com>
1195 * testsuite/*: Change __transaction to __transaction_atomic or
1196 __transaction_relaxed.
1198 2011-10-19 Torvald Riegel <triegel@redhat.com>
1200 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1203 2011-10-19 Torvald Riegel <triegel@redhat.com>
1205 * libitm_i.h: Add gl_wt dispatch.
1206 * retry.cc (parse_default_method): Same.
1207 * method-gl.cc: New file.
1208 * Makefile.am: Use method-gl.cc.
1209 * Makefile.in: Rebuild.
1211 2011-10-19 Torvald Riegel <triegel@redhat.com>
1213 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1214 safety if requested by a TM method.
1215 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1216 privatization safety.
1217 * method-serial.cc: Same.
1219 2011-10-19 Torvald Riegel <triegel@redhat.com>
1221 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1222 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1223 undolog-related member functions from *_local to *_undolog.
1224 * local.cc (gtm_thread::commit_undolog): Same.
1225 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1226 (GTM::gtm_thread::rollback): Roll back undolog before
1227 dispatch-specific rollback.
1229 2011-10-19 Torvald Riegel <triegel@redhat.com>
1231 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1232 re-initialization of the current method group.
1233 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1235 2011-10-19 Torvald Riegel <triegel@redhat.com>
1237 * alloc.cc (commit_allocations_2): Do not free transaction-local
1238 memory when committing a nested transaction.
1240 2011-10-19 Torvald Riegel <triegel@redhat.com>
1242 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1243 serial-irrevocable dispatch, not serial.
1245 2011-10-19 Torvald Riegel <triegel@redhat.com>
1247 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1249 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1250 * method-serial.cc: Implement begin_or_restart().
1251 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1252 dispatch-specific begin_or_restart().
1253 (GTM::gtm_thread::restart): Same.
1255 2011-08-23 Torvald Riegel <triegel@redhat.com>
1257 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1258 restarting without switching to serial mode.
1259 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1260 transaction state. Choose closed-nesting alternative if available.
1261 (GTM::gtm_thread::set_default_dispatch): New.
1262 (parse_default_method): New.
1263 (GTM::gtm_thread::number_of_threads_changed): New.
1264 * method-serial.cc (GTM::serial_mg): New method group class.
1265 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1267 (GTM::serial_dispatch): Same.
1268 (GTM::serialirr_onwrite_dispatch): Same.
1269 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1270 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1272 (GTM::gtm_thread::gtm_thread): Same.
1273 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1274 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1275 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1276 choose dispatch but set state according to dispatch here.
1277 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1278 (GTM::method_group): New class.
1279 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1280 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1281 * libitm.texi: Document TM methods, method groups, method life cycle.
1282 Rename method sets to method groups.
1284 2011-08-23 Torvald Riegel <triegel@redhat.com>
1286 * config/x86/tls.h: Moved to ...
1287 * config/linux/x86/tls.h: ... here.
1289 2011-08-23 Torvald Riegel <triegel@redhat.com>
1291 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1293 * config/x86/sjlj.S: Same.
1295 2011-08-19 Torvald Riegel <triegel@redhat.com>
1297 * config/linux/rwlock.h: New file.
1298 * config/linux/rwlock.c: New file.
1299 * configure.ac: Reenable futex support (undo SVN rev 157758).
1300 * Makefile.am: Same.
1301 * configure.tgt: Same.
1302 * config/linux/alpha/futex_bits.h: Same.
1303 * config/linux/futex.h: Same. Return number of woken processes.
1304 * config/linux/futex.cc: Same.
1305 (futex_wait): Remove spinning.
1306 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1307 Use __x86_64__ instead of __LP64__.
1308 * aclocal.m4: Include generic futex checks.
1309 * configure: Rebuild.
1310 * Makefile.in: Rebuild.
1311 * testsuite/Makefile.in: Rebuild.
1312 * beginend.cc: Include pthread.h.
1313 * config/posix/cachepage.cc: Same.
1315 2011-08-12 Torvald Riegel <triegel@redhat.com>
1317 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1318 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1320 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1322 (GTM::gtm_thread::thread_num): Removed.
1323 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1324 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1325 tx-to-thread renaming.
1326 * beginend.cc: Adapted to tx-to-thread renaming.
1327 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1328 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1329 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1330 gtm_transaction to gtm_thread.
1331 (_ITM_getThreadnum): Removed. Not supported anymore.
1332 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1333 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1334 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1335 gtm_tx-to-gtm_thr renaming if necessary.
1342 * alloc_cpp.cc: Same.
1343 * method-serial.cc: Same.
1344 * config/generic/tls.cc: Same.
1345 * config/posix/rwlock.h (gtm_rwlock): Same.
1346 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1348 2011-08-12 Torvald Riegel <triegel@redhat.com>
1350 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1352 (gtm_rwlock::read_unlock): Same.
1353 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1354 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1355 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1356 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1357 w_upgrade. Replaced by per-transaction flags (in shared_state).
1358 Added c_confirmed_writers.
1359 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1360 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1361 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1362 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1363 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1364 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1365 * libitm.texi: Document locking conventions and implementations in
1368 2011-08-12 Torvald Riegel <triegel@redhat.com>
1370 * libitm_i.h (next_tx): Add list of all threads' transaction.
1371 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1372 transaction with list of transactions and ...
1373 (thread_exit_handler): ... deregister here.
1374 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1375 * config/x86/target.h: Same.
1377 2011-08-12 Torvald Riegel <triegel@redhat.com>
1379 * testsuite/libitm.c++/static_ctor.C: New file.
1381 2011-08-12 Torvald Riegel <triegel@redhat.com>
1383 * testsuite/libitm.c/reentrant.c: New file.
1385 2011-08-12 Torvald Riegel <triegel@redhat.com>
1387 * config/generic/tls.h: Remove the free list for transactions and ...
1388 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1389 (GTM::gtm_transaction::operator delete): ... and release here.
1390 (thread_exit_handler): New. Delete tx when thread terminates.
1391 (thread_exit_init): New.
1392 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1393 * testsuite/libitm.c/txrelease.c: New file.
1395 2011-08-12 Torvald Riegel <triegel@redhat.com>
1397 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1398 * testsuite/libitm.c/notx.c: New file.
1400 2011-08-12 Torvald Riegel <triegel@redhat.com>
1402 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1403 * libitm_i.h (local_tid): ... to here.
1404 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1405 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1407 2011-08-12 Torvald Riegel <triegel@redhat.com>
1409 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1410 serialirr_onwrite_dispatch as new default for now.
1411 * method-serial.cc (serialirr_onwrite_dispatch): New.
1412 (GTM::dispatch_serialirr_onwrite): New.
1415 2011-08-12 Torvald Riegel <triegel@redhat.com>
1417 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1418 * query.cc (_ITM_getTransactionId): There is no active transaction if
1419 the current nesting level is zero.
1421 2011-07-28 Torvald Riegel <triegel@redhat.com>
1423 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1426 2011-07-28 Torvald Riegel <triegel@redhat.com>
1428 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1429 transaction properties from the caller instead of from the
1432 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1434 2011-07-28 Torvald Riegel <triegel@redhat.com>
1436 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1437 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1439 * method-serial.cc: Same.
1440 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1441 flat nesting as default, and closed nesting on demand.
1442 (GTM::gtm_transaction::rollback): Same.
1443 (_ITM_abortTransaction): Same.
1444 (GTM::gtm_transaction::restart): Same.
1445 (GTM::gtm_transaction::trycommit): Same.
1446 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1447 (choose_code_path): New.
1448 (GTM::gtm_transaction_cp::save): New.
1449 (GTM::gtm_transaction_cp::commit): New.
1450 * query.cc (_ITM_inTransaction): Support flat nesting.
1451 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1452 (GTM::gtm_transaction): Support flat and closed nesting.
1453 * alloc.cc (commit_allocations_2): New.
1454 (commit_cb_data): New helper struct.
1455 (GTM::gtm_transaction::commit_allocations): Handle nested
1457 * libitm.texi: Update user action section, add description of nesting.
1459 2011-07-28 Torvald Riegel <triegel@redhat.com>
1461 * libitm_i.h: Add closed nesting as restart reason.
1462 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1464 2011-07-28 Torvald Riegel <triegel@redhat.com>
1466 * useraction.cc: Use vector instead of list to store actions.
1467 Also support partial rollbacks for closed nesting.
1468 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1469 * beginend.cc: Same.
1471 2011-07-28 Torvald Riegel <triegel@redhat.com>
1473 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1474 closed_nesting flags, as well as a closed nesting alternative.
1475 * method-serial.cc: Same.
1476 (serial_dispatch): Renamed to serialirr_dispatch.
1477 (GTM::dispatch_serialirr): Same.
1478 (serial_dispatch_ul): Renamed to serial_dispatch.
1479 (GTM::dispatch_serial): Same.
1481 2011-07-28 Torvald Riegel <triegel@redhat.com>
1483 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1485 2011-07-28 Torvald Riegel <triegel@redhat.com>
1487 * aatree.h (aa_tree::remove): New.
1488 (aa_tree::operator new): Add placement new.
1490 2011-07-02 Torvald Riegel <triegel@redhat.com>
1492 * containers.h: New file.
1493 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1494 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1495 * common.h: ... to here.
1496 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1499 2011-06-30 Torvald Riegel <triegel@redhat.com>
1501 * libitm_i.h (STATE_ABORTING): Remove.
1502 * beginend.cc (_ITM_abortTransaction): Same.
1503 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1504 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1505 (_ITM_rollbackTransaction): Remove.
1506 * beginend.cc: Same.
1508 * libitm.texi: Document these ABI changes.
1510 2011-06-30 Torvald Riegel <triegel@redhat.com>
1512 * libitm.texi: New file.
1513 * Makefile.am: Add libitm.texi.
1514 * Makefile.in: Rebuild.
1516 2011-06-30 Torvald Riegel <triegel@redhat.com>
1518 * libitm_i.h: Move parts to common.h and dispatch.h.
1519 * common.h: New file.
1520 * dispatch.h: New file, new dispatch class.
1521 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1522 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1523 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1524 decision to retry.cc.
1525 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1527 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1528 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1530 * barrier.cc: Use new barriers definitions.
1531 (abi_dispatch::memmove_overlap_check): New.
1532 * config/x86/x86_sse.cc: Same.
1533 * config/x86/x86_avx.cc: Same.
1534 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1536 * Makefile.in: Rebuild.
1537 * method-readonly.cc: Remove.
1538 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1539 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1541 2011-06-30 Torvald Riegel <triegel@redhat.com>
1543 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1544 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1545 * testsuite/libitm.c/dropref-2.c: Same.
1546 * testsuite/libitm.c/dropref.c: Same.
1548 2011-06-30 Torvald Riegel <triegel@redhat.com>
1550 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1551 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1552 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1554 * barrier.tpl: Same.
1556 * config/generic/tls.h: Same.
1557 * config/x86/tls.h: Same.
1561 * method-readonly.cc: Same.
1562 * method-serial.cc: Same.
1563 * method-wbetl.cc: Same.
1566 2011-03-03 Richard Henderson <rth@redhat.com>
1568 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1569 From Patrik Marlier <patrick.marlier@unine.ch>.
1571 2011-02-03 Richard Henderson <rth@redhat.com>
1573 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1574 * configure.ac: Use it.
1575 * configure, config.h.in: Rebuild.
1576 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1577 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1578 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1579 * libitm.map: Use wildcards to match size_t mangling.
1581 2010-12-14 Richard Henderson <rth@redhat.com>
1583 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1584 blocks of TIDs per thread.
1585 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1586 (setup_gtm_thr): Return the thread structure.
1587 * config/x86/tls.h (setup_gtm_thr): Likewise.
1589 2010-12-14 Richard Henderson <rth@redhat.com>
1591 * clone.cc (table_lock): Remove.
1592 (find_clone): Don't take it.
1593 (ExcludeTransaction): New helper class.
1594 (_ITM_registerTMCloneTable): Use it.
1595 (_ITM_deregisterTMCloneTable): Likewise.
1597 2010-12-14 Richard Henderson <rth@redhat.com>
1599 * config/x86/tls.h: New file.
1601 2010-07-15 Richard Henderson <rth@redhat.com>
1603 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1604 * Makefile.in: Rebuild.
1606 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1608 * method-wbetl.cc (trydropreference): Fix source line.
1610 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1612 * libitm.h: Add comment.
1613 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1615 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1617 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1618 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1619 available, use pthread mutexes.
1620 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1621 * config.h.in: Regenerate.
1622 * configure: Regenerate.
1624 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1626 * libitm.h (ITM_PURE): Define.
1627 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1629 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1631 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1632 (validate): Add comment.
1633 (trydropreference): New.
1634 * method-readonly.cc (class readonly_dispatch): Add
1636 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1637 Call trydropreference().
1638 * libitm.h (_ITM_dropReferences): Remove const attribute.
1639 * method-serial.cc (class serial_dispatch): Add trydropreference.
1640 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1642 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1644 * memcpy.cc (do_memcpy): Comment.
1646 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1648 * barrier.tpl: Add comments throughout.
1650 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1652 * method-wbetl.cc (struct w_entry): Add comments.
1656 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1658 * alloc_c.cc (_ITM_dropReferences): New.
1659 * libitm.map (_ITM_dropReferences): Add.
1660 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1661 * libitm_i.h (struct gtm_transaction): Declare
1662 drop_references_allocations and drop_references_local.
1663 * local.cc (rollback_local): Ignore memory when applicable.
1664 (drop_references_local): New.
1666 2010-06-23 Richard Henderson <rth@redhat.com>
1668 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1669 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1670 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1671 * config/alpha/target.h: Likewise.
1672 * config/generic/tls.cc (gtm_mask_stack): Use it.
1674 2010-06-23 Richard Henderson <rth@redhat.com>
1676 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1677 a mutex instead of trying a lock-free compare-and-swap on the list.
1678 (gtm_cacheline_page::operator delete): Likewise.
1680 2010-06-16 Richard Henderson <rth@redhat.com>
1682 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1683 that overlap the libitm stack.
1684 * barrier.tpl: Mark incoming stack.
1685 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1686 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1687 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1688 * memcpy.cc, memset.cc: Likewise.
1689 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1690 * config/generic/tls.h (gtm_thread): Add stack_top member.
1691 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1692 * libitm_i.h (gtm_mask_stack): Declare.
1693 * config/generic/tls.cc: New file.
1694 * Makefile.am (libitm_la_SOURCES): Add it.
1695 (AM_CXXFLAGS): Turn off exceptions.
1696 * Makefile.in: Rebuild.
1698 2010-06-16 Richard Henderson <rth@redhat.com>
1700 * alloc.cc (struct gtm_alloc_action): Move definition ...
1701 * libitm_i.h: ... here.
1702 (class gtm_transaction): Declare new and delete.
1703 * beginend.cc (alloc_tx): Reformulate as operator new.
1704 (free_tx): Reformulate as operator delete.
1705 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1707 2010-06-11 Richard Henderson <rth@redhat.com>
1709 * clone.cc (clone_entry_compare): Fix typo.
1710 From Patrik Marlier <patrick.marlier@unine.ch>.
1712 2010-05-13 Richard Henderson <rth@redhat.com>
1714 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1717 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1719 * libitm_i.h (struct gtm_transaction): Remove
1720 get_allocation_size.
1721 (record_allocation): Remove size parameter.
1722 * libitm.map (_ITM_realloc): Remove.
1723 * alloc_c.cc (_ITM_realloc): Remove.
1724 (_ITM_malloc): Remove size argument to record_allocation.
1725 (_ITM_calloc): Same.
1726 * alloc_cpp.cc (_ZGTtnwm): Same.
1727 (_ZGTtnwmRKSt9nothrow_t): Same.
1729 (_ZGTtnamRKSt9nothrow_t): Same.
1730 * alloc.cc (struct gtm_alloc_action): Remove size.
1731 (get_allocation_size): Remove.
1732 (commit_allocations): Add comment.
1733 (record_allocation): Remove size parameter.
1734 (forget_allocation): Remove set of size.
1736 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1738 * Makefile.am (abi_version): New.
1739 (AM_CXXFLAGS): Pass abi_version.
1740 * Makefile.in: Regenerate.
1741 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1743 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1745 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1746 _ITM_getTMCloneOrIrrevokable.
1747 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1748 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1750 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1752 * configure.ac: Remove Linux futex support.
1753 * configure.tgt (config_path): Same.
1754 * Makefile.am: Same.
1755 * config/linux: Remove entire directory.
1756 * configure: Rebuild.
1757 * Makefile.in: Rebuild.
1758 * testsuite/Makefile.in: Rebuild.
1760 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1762 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1763 switching to serial mode.
1764 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1766 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1768 * configure.tgt: Add emacs -*- tags.
1769 * barrier.tpl: Same.
1771 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1773 * Makefile.am: Rename serial.cc to method-serial.cc.
1774 * Makefile.in: Regenerate with automake 1.11.1.
1775 * testsuite/Makefile.in: Same.
1776 * aclocal.m4: Regenerate with aclocal 1.11.1.
1777 * method-serial.cc: Rename from serial.cc.
1778 * libitm_i.h (struct gtm_transaction): Update comment on
1781 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1783 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1784 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1786 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1788 * configure: Rebuild.
1790 2009-11-12 Richard Henderson <rth@redhat.com>
1792 * Rewrite everything in C++.
1794 2009-11-03 Richard Henderson <rth@redhat.com>
1796 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1797 * Makefile.am (libitm_la_SOURCES): Add them.
1798 * configure.ac (ARCH_X86): New conditional.
1799 * Makefile.in, configure: Rebuild.
1800 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1801 Move futex setup into "other system configury" case.
1802 * local.c (rollback_local): Merge into ...
1803 (GTM_rollback_local): ... here.
1804 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1805 (_ITM_LB): Define as an alias to GTM_LB.
1807 2009-11-03 Richard Henderson <rth@redhat.com>
1809 * method-readonly.c: New file.
1810 * Makefile.am (libitm_la_SOURCES): Add it.
1811 * Makefile.in: Rebuild.
1812 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1813 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1814 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1815 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1816 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1817 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1818 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1819 gtm_get_clock, gtm_inc_clock): New.
1820 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1821 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1822 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1823 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1824 replace uses with new libitm_i.h symbols.
1825 (dispatch_wbetl): Rename from wbetl_dispatch.
1826 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1827 away from dispatch_readonly; abort if the beginTransaction call
1828 asserted that the transaction was readonly.
1830 2009-11-03 Richard Henderson <rth@redhat.com>
1832 * memset.c: New file.
1833 * Makefile.am (libitm_la_SOURCES): Add it.
1834 * Makefile.in: Rebuild.
1835 * testsuite/libitm.c/memset-1.c: New.
1837 2009-11-03 Richard Henderson <rth@redhat.com>
1839 * dispatch.c: Remove file.
1840 * useraction.c (struct gtm_user_action): Move from libitm.h.
1841 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1842 (serial_memset, serial_memmove, serial_memcpy): Remove.
1843 (serial_W*, serial_R*): Remove.
1844 (serial_dispatch): Update to match.
1845 * configure.ac: Move Werror down below configure checks. Don't
1846 check for sys/loadavg.h, do check for malloc.h. Don't check for
1847 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1848 Use GCC_AC_FUNC_MMAP_BLACKLIST
1849 * libitm.h: Split out all internal items to...
1850 * libitm_i.h: ... here. New file.
1851 * copymask.c: New file.
1852 * local.c (struct gtm_local_undo): Move from libitm.h.
1853 (GTM_alloc_local): Rename from alloc_local; export.
1854 * memcpy.c: New file.
1855 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1856 * config/posix/page.c: New file.
1857 * config/posix/target_tls.h: Remove file.
1858 * barrier.c: New file.
1859 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1861 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1862 * method-wbetl.c: Rewrite for new cacheline methods.
1863 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1865 * config/alpha/sjlj.S: Fix typo.
1866 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1867 * config/alpha/copymask.c: New file.
1868 * config/alpha/target.h (CACHELINE_SIZE): New.
1869 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1871 * config/x86/target_i.h: Copy functions from x86/target.h.
1872 * config/x86/copymask.c: New file.
1873 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1874 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1875 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1876 * config/x86/target_tls.h: Move contents to target_i.h.
1878 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1879 * testsuite/libitm.c/memcpy-1.c: New.
1881 2009-10-22 Richard Henderson <rth@redhat.com>
1883 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1884 (AM_CCASFLAGS): New.
1885 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1886 saving/restoring _AC_ARG_VAR_PRECIOUS.
1887 * Makefile.in, aclocal.m4, config.h.in, configure,
1888 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1890 2009-10-22 Richard Henderson <rth@redhat.com>
1892 * testsuite/*: Update for new compiler syntax.
1894 2009-10-21 Richard Henderson <rth@redhat.com>
1896 * libitm.h (_ITM_abortReason): Add outerAbort.
1898 2009-08-03 Richard Henderson <rth@redhat.com>
1900 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1901 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1902 * method-wbetl.c (struct w_entry): Remove mask.
1903 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1906 2009-07-22 Richard Henderson <rth@redhat.com>
1908 * eh_cpp.c: New file.
1909 * Makefile.am (libitm_la_SOURCES): Add it.
1910 * Makefile.in: Rebuild.
1911 * beginend.c (GTM_rollback_transaction): Undo exception state.
1912 (GTM_trycommit_transaction): Mark inline.
1913 (GTM_trycommit_and_finalize_transaction): Split out from ...
1914 (_ITM_commitTransaction): ... here.
1915 (_ITM_commitTransactionEH): New function.
1916 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1917 cxa_unthrown, eh_in_flight; reorder.
1919 * testsuite/libitm.c++/c++.exp: New.
1920 * testsuite/libitm.c++/eh-1.C: New.
1922 * aatree.c (aa_free): Remove REGPARM.
1923 * aatree.h: Remove all REGPARM.
1925 2009-07-18 Richard Henderson <rth@redhat.com>
1927 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1928 * Makefile.am (libitm_la_SOURCES): Add them.
1929 * Makefile.in: Rebuild.
1930 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1931 (GTM_trycommit_transaction): Likewise.
1932 * libitm.h: Include aatree.h
1933 (struct gtm_alloc_action): New.
1934 (struct gtm_transaction): Add alloc_actions.
1935 (GTM_record_allocation, GTM_forget_allocation): Declare.
1936 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1937 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1938 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1939 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1940 _ZGTtdaPvRKSt9nothrow_t): Export.
1942 2009-07-18 Richard Henderson <rth@redhat.com>
1944 * target_tls.h: Move ...
1945 * config/posix/target_tls.h: ... here.
1947 2009-07-07 Richard Henderson <rth@redhat.com>
1949 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1951 2009-07-07 Richard Henderson <rth@redhat.com>
1955 2009-07-07 Richard Henderson <rth@redhat.com>
1957 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1958 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1960 * configure.tgt: Don't use -ftls-model for x86 linux.
1961 * libitm.h: Include target.h after standard includes.
1962 (_gtm_thr): Rename from gtm_thr.
1963 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1964 (gtm_disp, set_gtm_disp): New.
1965 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1966 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1967 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1969 2009-07-07 Richard Henderson <rth@redhat.com>
1971 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1973 2009-07-06 Richard Henderson <rth@redhat.com>
1975 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1976 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1977 (_ITM_beginTransaction): Take variadic arguments.
1978 (_ITM_registerThrownObject): Declare.
1979 * beginend.c, serial.c: Update.
1980 * libitm.map: Add _ITM_registerThrownObject.
1982 2009-01-28 Richard Henderson <rth@redhat.com>
1984 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1985 * Makefile.in: Rebuild.
1986 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1987 (GTM_restart_transaction): Fix uninstrumented code check.
1988 * retry.c (GTM_decide_retry_strategy): Add serial check.
1989 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1990 automatically go irrevokable when in serial mode.
1991 * clone.c: New file.
1992 * libitm.h, libitm.map: Update.
1994 2009-01-27 Richard Henderson <rth@redhat.com>
1996 * Makefile.am (LTCCASCOMPILE): Define.
1997 (libitm_la_SOURCES): Add methid-wbetl.c.
1998 * testsuite/Makefile.am: New
1999 * configure.ac: Add testsuite/Makefile.
2000 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2001 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2002 (_ITM_abortTransaction): Finalize implementation method; pass
2003 transaction properties to longjmp.
2004 (GTM_restart_transaction): Split out from ...
2005 (_ITM_commitTransaction): ... here.
2006 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2007 Move to config/x86/target.h.
2008 * config/linux/alpha/futex_bits.h: New.
2009 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2010 * config/x86/target.h: Disable target types for 32-bit.
2011 * config/alpha/sjlj.S, config/alpha/target.h: New.
2012 * libitm.h (struct gtm_dispatch): Add init, fini.
2013 (enum restart_reason): New.
2014 (struct gtm_transaction): Add method and restarts.
2015 * retry.c (GTM_decide_retry_strategy): Implement.
2016 * serial.c (serial_init, serial_fini): New.
2017 (GTM_serialmode): Finialize outgoing method.
2018 * method-wbetl.c: New.
2020 2008-12-09 Richard Henderson <rth@redhat.com>
2022 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2023 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2024 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2025 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2026 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2027 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2028 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2029 * serial.c (serial_R##T, serial_W##T): Likewise.
2031 2008-11-21 Richard Henderson <rth@redhat.com>
2035 Copyright (C) 2008-2017 Free Software Foundation, Inc.
2037 Copying and distribution of this file, with or without modification,
2038 are permitted in any medium without royalty provided the copyright
2039 notice and this notice are preserved.