1 2018-07-26 Release Manager
5 2018-05-02 Release Manager
9 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11 * config/x86/sjlj.S (_ITM_beginTransaction): Add
12 (__CET__ & 2) != 0 check for shadow stack.
13 (GTM_longjmp): Likewise.
15 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
17 * configure: Regenerated.
19 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
22 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
24 2018-04-19 Jakub Jelinek <jakub@redhat.com>
26 * configure: Regenerated.
28 2018-04-18 David Malcolm <dmalcolm@redhat.com>
31 * configure: Regenerate.
33 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
36 * configure: Regenerate.
38 2018-01-03 Jakub Jelinek <jakub@redhat.com>
40 Update copyright years.
42 * libitm.texi: Bump @copying's copyright year.
44 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
46 * Makefile.in: Regenerate.
47 * acinclude.m4: Add enable.m4 and cet.m4.
48 * config/x86/sjlj.S: Include cet.h.
49 (_ITM_beginTransaction): Add _CET_ENDBR.
50 Save Shadow Stack pointer.
51 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
52 * config/x86/target.h (struct gtm_jmpbuf):
53 Add new field for Shadow Stack pointer.
54 * configure: Regenerate.
55 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
56 * configure.ac: Update libtool_VERSION for x86.
57 * testsuite/Makefile.in: Regenerate.
59 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
61 * libitm/config/x86/target.h: Add new field (ssp).
62 * libitm/config/x86/sjlj.S: Change offsets.
64 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66 * testsuite/lib/libitm.exp: Load scanlang.exp.
68 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
70 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
72 2017-01-21 Jakub Jelinek <jakub@redhat.com>
75 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
76 of cat to get version from BASE-VER file.
77 * testsuite/Makefile.in: Regenerated.
79 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
81 * config/x86/target.h (htm_available): Determine vendor from
82 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
84 2017-01-18 Torvald Riegel <triegel@redhat.com>
86 * config/x86/target.h (htm_available): Add check for some processors
87 on which TSX is broken.
89 2017-01-17 Jakub Jelinek <jakub@redhat.com>
92 * configure.ac: Add GCC_BASE_VER.
93 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
94 get version from BASE-VER file.
95 * testsuite/Makefile.in: Regenerated.
96 * configure: Regenerated.
97 * Makefile.in: Regenerated.
99 2017-01-04 Alan Modra <amodra@gmail.com>
101 * Makefile.in: Regenerate.
102 * testsuite/Makefile.in: Regenerate.
104 2017-01-01 Jakub Jelinek <jakub@redhat.com>
106 Update copyright years.
108 * libitm.texi: Bump @copying's copyright year.
110 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
112 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
113 * aclocal.m4: Regenerate.
114 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
115 LIBITM_CHECK_LINKER_HWCAP.
117 2016-11-15 Matthias Klose <doko@ubuntu.com>
119 * configure: Regenerate.
121 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
124 * util.cc (xmalloc): Use posix_memalign to allocate memory on
125 on cache line if requested.
127 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
129 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
130 function attribute to disable floating point in begin_transaction() on
132 * beginend.cc (begin_transaction): Use
133 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
135 2016-01-22 Torvald Riegel <triegel@redhat.com>
137 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
139 (htm_fastpath): Remove.
140 (gtm_thread::begin_transaction): Fix HTM fastpath.
141 (_ITM_commitTransaction): Adapt.
142 (_ITM_commitTransactionEH): Adapt.
143 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
145 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
146 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
147 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
148 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
149 * libitm/method-serial.cc (htm_mg): Adapt.
150 (gtm_thread::serialirr_mode): Adapt.
151 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
153 2016-01-21 Torvald Riegel <triegel@redhat.com>
155 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
158 2016-01-19 Richard Henderson <rth@redhat.com>
163 2016-01-13 Richard Henderson <rth@redhat.com>
165 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
166 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
167 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
168 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
169 * configure.ac (ARCH_AARCH64): New conditional.
170 (ARCH_PPC, ARCH_S390): Likewise.
171 * Makefile.in, configure: Rebuild.
173 * libitm.h (_ITM_TYPE_M128): Always define.
174 * vect64.cc: Split ...
175 * vect128.cc: ... out of...
176 * config/x86/x86_sse.cc: ... here.
177 * config/arm/neon.cc: New file.
179 2016-01-19 Torvald Riegel <triegel@redhat.com>
181 * local_type_traits: Remove file.
182 * libitm_i.h: Don't include it anymore.
183 (sized_integral): Remove.
185 2016-01-16 Torvald Riegel <triegel@redhat.com>
187 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
189 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
190 * libitm/testsuite/libitm.c/priv-1.c: New.
192 2015-01-15 Torvald Riegel <triegel@redhat.com>
194 testsuite/libitm.c++/libstdc++-safeexc.C: New.
196 2016-01-13 Torvald Riegel <triegel@redhat.com>
198 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
199 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
200 (gtm_rwlock::write_unlock): Likewise.
202 2016-01-13 Richard Henderson <rth@redhat.com>
204 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
205 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
206 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
207 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
208 * configure.ac (ARCH_AARCH64): New conditional.
209 (ARCH_PPC, ARCH_S390): Likewise.
210 * Makefile.in, configure: Rebuild.
212 * libitm.h (_ITM_TYPE_M128): Always define.
213 * vect64.cc: Split ...
214 * vect128.cc: ... out of...
215 * config/x86/x86_sse.cc: ... here.
216 * config/arm/neon.cc: New file.
218 2016-01-13 Torvald Riegel <triegel@redhat.com>
220 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
221 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
222 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
223 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
224 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
225 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
226 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
227 (serialirr_dispatch::snapshot_most_recent): New.
228 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
230 2016-01-12 Torvald Riegel <triegel@redhat.com>
232 * libitm_i.h (gtm_mask_stack): Remove.
233 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
234 * stmlock.h: Remove file.
235 * config/alpha/cacheline.h: Likewise.
236 * config/generic/cacheline.h: Likewise.
237 * config/powerpc/cacheline.h: Likewise.
238 * config/sparc/cacheline.h: Likewise.
239 * config/x86/cacheline.h: Likewise.
241 2016-01-04 Jakub Jelinek <jakub@redhat.com>
243 Update copyright years.
245 * libitm.texi: Bump @copying's copyright year.
247 2015-11-26 Torvald Riegel <triegel@redhat.com>
249 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
250 (ml_wt_dispatch::pre_write): Adapt.
251 (ml_wt_dispatch::pre_load): Likewise.
253 2015-11-22 Torvald Riegel <triegel@redhat.com>
255 * libitm_i.h (gtm_alloc_action): Remove union.
256 * testsuite/libitm.c/alloc-1.c: New.
258 2015-11-19 Torvald Riegel <triegel@redhat.com>
260 * testsuite/libitm.c++/eh-5.C: New.
261 * libitm.h (_ITM_cxa_free_exception): New.
262 * libitm.map (_ITM_cxa_free_exception): Add it.
263 * libitm.texi: Update ABI docs.
264 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
265 (gtm_transaction_cp::cxa_uncaught_count): Add.
266 (gtm_thread::cxa_unthrown): Remove.
267 (gtm_thread::cxa_uncaught_count_ptr): Add.
268 (gtm_thread::cxa_uncaught_count): Add.
269 (gtm_thread::drop_references_allocations): Rename to...
270 (gtm_thread::discard_allocation): ... this and adapt.
271 (gtm_thread::init_cpp_exceptions): New.
272 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
273 (gtm_thread::begin_transaction): Likewise.
274 (gtm_transaction_cp::save): Likewise.
275 (gtm_thread::trycommit): Likewise.
276 * eh_cpp.cc: Add overview comments.
277 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
278 (free_any_exception, _ITM_cxa_free_exception): New.
279 (gtm_thread::init_cpp_exceptions): Define.
280 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
281 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
282 (gtm_thread::revert_cpp_exceptions): Likewise.
284 2015-11-09 Torvald Riegel <triegel@redhat.com>
286 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
287 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
288 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
289 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
290 (gtm_thread::forget_allocations): New overload with size_t argument.
291 * alloc.c (gtm_thread::forget_allocation): Define new overload and
293 (gtm_thread::record_allocation): Adapt.
294 (gtm_thread::commit_allocations_1): Adapt.
295 (gtm_thread::commit_allocations_2): Adapt.
296 * testsuite/libitm.c++/newdelete.C: New.
298 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
299 Joseph Myers <joseph@codesourcery.com>
300 Mark Shinwell <shinwell@codesourcery.com>
301 Andrew Stubbs <ams@codesourcery.com>
302 Rich Felker <dalias@libc.org>
304 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
305 GTM_begin_transaction for compatibility with FDPIC.
307 2015-10-09 David Malcolm <dmalcolm@redhat.com>
309 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
312 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
315 * local_atomic (__always_inline): Rename to...
316 (__libitm_always_inline): ... this.
318 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
321 * config/powerpc/sjlj.S: Port to Xcode 2.5.
323 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
325 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
326 operands "op" and "val" to int.
328 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
330 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
331 "op" and "val" to int.
333 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
335 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
336 "op" and "val" to int.
338 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
340 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
341 Declare as static int.
342 (FUTEX_PRIVATE_FLAG): Remove L suffix.
343 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
345 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
347 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
350 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
352 * Makefile.in: Regenerated with automake-1.11.6.
353 * aclocal.m4: Likewise.
354 * configure: Likewise.
355 * testsuite/Makefile.in: Likewise.
357 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
359 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
360 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
362 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
365 * libitm.c/stackundo.c (test2): Make it static.
368 2015-01-05 Jakub Jelinek <jakub@redhat.com>
370 Update copyright years.
372 2015-01-05 Jakub Jelinek <jakub@redhat.com>
374 * libitm.texi: Bump @copying's copyright year.
376 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
378 * testsuite/lib/libitm.exp: Load target-utils.exp.
379 Move load of target-supports.exp earlier.
381 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
383 * configure.tgt (x86_64): Tune -m32 multilib to generic.
385 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
388 * configure: Regenerated.
390 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
393 * configure: Regenerate.
395 2014-10-06 Marek Polacek <polacek@redhat.com>
397 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
398 * testsuite/libitm.c/memset-1.c: Likewise.
400 2014-07-24 Richard Henderson <rth@redhat.com>
402 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
403 addressing mode in epilogue.
405 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
407 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
408 -mclear-hwcap instead.
409 * configure: Regenerate.
410 * clearcap.map: Remove.
412 2014-05-21 John Marino <gnugcc@marino.st>
414 * configure.tgt (*-*-dragonfly*): New target.
416 2014-05-19 Richard Henderson <rth@redhat.com>
418 * config/aarch64/sjlj.S: New file.
419 * config/aarch64/target.h: New file.
420 * configure.tgt: Enable aarch64.
422 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424 * config/generic/asmcfi.h: Also check for
425 __GCC_HAVE_DWARF2_CFI_ASM.
427 2013-04-02 Richard Henderson <rth@redhat.com>
429 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
430 * config/arm/target.h, config/sh/target.h: Likewise.
431 * config/sparc/target.h, config/x86/target.h: Likewise.
433 2014-03-26 Jakub Jelinek <jakub@redhat.com>
435 * config/linux/futex_bits.h: Include errno.h.
436 (sys_futex0): If syscall returns -1, return -errno rather than
439 2014-03-26 Joseph Myers <joseph@codesourcery.com>
441 * libitm.texi (Index): Rename to Library Index.
443 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
446 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
447 (x86_avx.lo): Append -mavx to CXXFLAGS.
448 * Makefile.in: Regenerate.
450 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
452 Update copyright years
454 2014-01-02 Tobias Burnus <burnus@net-b.de>
456 * libitm.texi: Bump @copying's copyright year.
458 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
460 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
461 (FUNC): Define ELFv2 variant.
468 2013-09-20 Alan Modra <amodra@gmail.com>
470 * configure: Regenerate.
472 2013-08-30 Torvald Riegel <triegel@redhat.com>
474 * config/posix/rwlock.cc: Fix initialization order.
476 2013-08-30 Torvald Riegel <triegel@redhat.com>
478 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
479 (htm_fastpath): Assign an asm name.
480 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
482 (_ITM_actions): Likewise.
483 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
485 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
486 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
487 field to the start of the structure.
488 * config/linux/rwlock.h (gtm_rwlock): Update comments.
489 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
490 handling for custom HTM fast paths.
492 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
494 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
496 * configure.tgt: Add -msoft-float to XCFLAGS.
498 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
500 * configure.tgt: Add -msoft-float to XCFLAGS.
502 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
504 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
505 (htm_transaction_active): Enable zEC12 instructions in the
507 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
509 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
511 * acinclude.m4: Add htm asm check for s390.
512 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
513 * configure: Regenerate.
514 * config/s390/target.h: Remove __HTM__ check.
515 (htm_available): Call getauxval to get hwcaps and check whether
516 HTM is available or not.
518 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
520 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
521 * configure.ac: Use it.
522 (AC_CHECK_HEADERS): Check for sys/auxv.h.
523 (AC_CHECK_FUNCS): Check for getauxval.
524 * config.h.in, configure: Rebuild.
525 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
526 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
527 (USE_HTM_FASTPATH): Define.
528 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
529 _HTM_RETRIES) New macros.
530 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
531 htm_begin_success, htm_commit, htm_transaction_active): New functions.
533 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
535 * config/s390/target.h: Include htmintrin.h.
536 (_HTM_ITM_RETRIES): New macro definition.
537 (htm_available, htm_init, htm_begin, htm_begin_success)
538 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
540 2013-06-20 Iain Sandoe <iain@codesourcery.com>
541 Cesar Philippidis <cesar@codesourcery.com>
543 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
544 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
545 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
546 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
548 2013-06-20 Torvald Riegel <triegel@redhat.com>
550 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
551 (_ITM_getTransactionId): Same.
552 * config/x86/target.h (htm_transaction_active): New.
554 2013-06-20 Torvald Riegel <triegel@redhat.com>
557 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
560 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
563 * local_atomic (__always_inline): Always define our version.
564 (__calculate_memory_order): Mark inline.
565 (atomic_thread_fence): Ditto.
566 (atomic_signal_fence): Ditto.
567 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
568 (atomic_bool::atomic_flag_clear_explicit): Ditto.
569 (atomic_bool::atomic_flag_test_and_set): Ditto.
570 (atomic_bool::atomic_flag_clear): Ditto.
572 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
574 * config/s390/sjlj.S: New file.
575 * config/s390/target.h: New file.
576 * configure.tgt: Set options for S/390.
578 2013-03-23 Andi Kleen <ak@linux.intel.com>
580 * local_atomic (__always_inline): Add.
581 (__calculate_memory_order, atomic_thread_fence,
582 atomic_signal_fence, test_and_set, clear, store, load,
583 exchange, compare_exchange_weak, compare_exchange_strong,
584 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
585 Add __always_inline to force inlining.
587 2013-02-11 Iain Sandoe <iain@codesourcery.com>
588 Jack Howarth <howarth@bromo.med.uc.edu>
589 Patrick Marlier <patrick.marlier@gmail.com>
592 * alloc_cpp.cc: Enable function declarations on darwin.
593 * eh_cpp.cc: Likewise.
595 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
597 Update copyright years.
599 2012-11-09 Torvald Riegel <triegel@redhat.com>
601 * beginend.cc (htm_fastpath): New.
602 (gtm_thread::begin_transaction, _ITM_commitTransaction,
603 _ITM_commitTransactionEH): Add HTM fastpath handling.
604 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
605 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
606 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
607 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
608 * configure.tgt: Add -mrtm to XCFLAGS.
609 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
610 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
611 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
612 * retry.cc (parse_default_method): Add HTM method parsing.
613 (gtm_thread::number_of_threads_changed): Use HTM by default if
616 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
618 * configure: Regenerate.
620 2012-10-31 Richard Henderson <rth@redhat.com>
622 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
623 * configure.ac: Use it.
624 * config.h.in, configure: Rebuild.
625 * testsuite/Makefile.in: Rebuild.
627 2012-10-24 Torvald Riegel <triegel@redhat.com>
629 * libitm.texi: Clarify ABI requirements for data-logging functions.
631 2012-10-24 Torvald Riegel <triegel@redhat.com>
633 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
634 it requires serial mode instead of assuming that for certain
636 * dispatch.h (abi_dispatch::requires_serial): New.
637 (abi_dispatch::abi_dispatch): Adapt.
638 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
639 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
640 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
641 serial_dispatch::serial_dispatch,
642 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
644 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
646 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
647 and ia32 declarations some more.
648 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
650 2012-09-20 Jakub Jelinek <jakub@redhat.com>
653 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
654 * configure: Regenerate.
655 * Makefile.in: Regenerate.
657 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
659 * configure: Regenerated.
661 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
663 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
665 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
667 * eh_cpp.cc: Fix __cxa_end_catch declaration.
669 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
671 * configure: Regenerated.
673 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
676 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
679 2012-04-03 Tristan Gingold <gingold@adacore.com>
681 * configure: Regenerate.
683 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
686 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
688 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
690 * testsuite/lib/libitm.exp: load fortran-modules.exp
692 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
694 * configure.tgt (*-*-irix6*): Remove.
696 2012-03-13 Torvald Riegel <triegel@redhat.com>
699 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
702 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
704 * configure.tgt (*-*-osf*): Remove.
705 * configure: Regenerate.
707 2012-03-05 Torvald Riegel <triegel@redhat.com>
709 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
710 memtransfer/memset if size isn't larger than zero.
712 2012-03-02 Torvald Riegel <triegel@redhat.com>
714 * libitm.texi: Link to specification and add a usage example.
716 2012-02-24 Torvald Riegel <triegel@redhat.com>
718 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
719 default dispatch for more than 1 thread to ml_wt.
721 2012-02-20 Torvald Riegel <triegel@redhat.com>
723 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
725 2012-02-20 Torvald Riegel <triegel@redhat.com>
727 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
729 2012-02-20 Torvald Riegel <triegel@redhat.com>
731 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
732 serial mode corner cases made obsolete by prior gtm_rwlock changes.
733 (gl_wt_dispatch.rollback): Same.
735 2012-02-20 Torvald Riegel <triegel@redhat.com>
737 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
739 2012-02-20 Torvald Riegel <triegel@redhat.com>
741 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
742 for RfW src. Optimize number of calls to gtm_thr.
744 2012-02-20 Torvald Riegel <triegel@redhat.com>
746 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
748 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
749 (default_dispatch): Make atomic.
750 (GTM::gtm_thread::set_default_dispatch): Access atomically.
751 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
752 use decide_begin_dispatch() if default_dispatch might have changed.
753 (GTM::gtm_thread::number_of_threads_changed): Initialize
754 default_dispatch here.
756 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
757 Patrick Marlier <patrick.marlier@gmail.com>
760 * alloc_cpp.cc: No dummy definitions for darwin.
761 * eh_cpp.cc: Likewise.
763 2012-02-14 Richard Henderson <rth@redhat.com>
765 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
767 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
769 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
771 2012-02-14 Torvald Riegel <triegel@redhat.com>
773 * libitm_i.h (GTM::gtm_rwlog_entry): New.
774 (GTM::gtm_thread): Add read and write logs.
775 (GTM::dispatch_ml_wt): Declare.
776 * retry.cc (parse_default_method): Support ml_wt.
777 * method-ml.cc: New file.
778 * Makefile.am: Add method-ml.cc.
779 * Makefile.in: Regenerate.
781 2012-02-14 Torvald Riegel <triegel@redhat.com>
783 * dispatch.h (GTM::abi_dispatch::supports): New.
784 (GTM::method_group::reinit): New.
785 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
786 (GTM::gtm_thread::number_of_threads_changed): Check that the method
787 supports the current situation.
789 2012-02-14 Torvald Riegel <triegel@redhat.com>
791 * util.cc (GTM::xcalloc): New.
792 * common.h (GTM::xcalloc): Declare.
794 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
796 * config/sparc/target.h (cpu_relax): Read from CC register.
797 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
799 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
801 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
803 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
805 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
806 * config/sparc/cacheline.h: New file.
807 * config/sparc/target.h: Likewise.
808 * config/sparc/sjlj.S: Likewise.
809 * config/linux/sparc/futex_bits.h: Likewise.
811 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
813 * configure.ac (link_itm): Fix comment.
814 * configure: Regenerate.
815 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
817 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
821 Correct libgomp references.
823 2012-01-24 Torvald Riegel <triegel@redhat.com>
825 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
828 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
830 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
832 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
833 offset values. Do not copy return address. Decrement stack
835 (GTM_longjump) [__x86_64__]: Update offset values.
837 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
840 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
841 the first function argument to %eax.
843 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
845 * libitm.h (_ITM_getThreadnum): Remove.
846 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
848 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
850 * clearcap.map: New file.
851 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
852 * configure.ac: Call it.
853 Clear HWCAP_LDFLAGS if defaulting to -mavx.
854 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
855 * configure: Regenerate.
856 * Makefile.in: Regenerate.
857 * testsuite/Makefile.in: Regenerate.
859 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
862 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
863 include, exclude options.
865 2012-01-14 Torvald Riegel <triegel@redhat.com>
867 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
869 * containers.h (GTM::vector::set_size): New.
871 2012-01-14 Torvald Riegel <triegel@redhat.com>
874 * config/generic/tls.h (GTM::mask_stack_top): New.
875 (GTM::mask_stack_bottom): Declare.
876 * config/generic/tls.c (GTM::mask_stack_bottom): New.
877 * local.cc (gtm_undolog::rollback): Filter out any updates that
878 overlap the libitm stack. Add current transaction as parameter.
879 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
880 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
881 * testsuite/libitm.c/stackundo.c: New test.
883 2012-01-10 Richard Henderson <rth@redhat.com>
885 * libitm_i.h (_Unwind_DeleteException): Declare weak.
886 * eh_cpp.cc (_Unwind_DeleteException): Define for
887 !HAVE_ELF_STYLE_WEAKREF.
889 2012-01-08 Torvald Riegel <triegel@redhat.com>
891 * local.cc (GTM_LB): Use GTM::gtm_undolog.
892 (GTM::gtm_thread::drop_references_undolog): Remove.
893 (GTM::gtm_thread::commit_undolog,
894 GTM::gtm_thread::rollback_undolog): Move to ...
895 * libitm_i.h (GTM::gtm_undolog): ...here. New.
896 (GTM::gtm_undolog_entry): Remove.
897 (GTM::gtm_thread): Adapt.
898 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
899 (GTM::gtm_thread::trycommit): Adapt.
900 * method-serial.cc (serial_dispatch::log): Adapt.
901 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
902 (gl_wt_dispatch::store): Fix likely/unlikely.
903 * containers.h (GTM::vector::resize): Add additional_capacity
904 parameter and handle it.
905 (GTM::vector::resize_noinline): New/adapt.
906 (GTM::vector::push): New.
908 2012-01-06 Richard Henderson <rth@redhat.com>
910 * configure.tgt: Support powerpc-linux and powerpc-darwin.
911 * config/linux/powerpc/futex_bits.h: New file.
912 * config/powerpc/cacheline.h: New file.
913 * config/powerpc/sjlj.S: New file.
914 * config/powerpc/target.h: New file.
915 * config/generic/asmcfi.h (cfi_offset): New.
916 (cfi_restore, cfi_undefined): New.
918 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
921 * testsuite/libitm.c/reentrant.c: Remove xfail.
922 (thread): Pass x to pure().
923 From Patrik Marlier <patrick.marlier@gmail.com>.
925 2011-12-24 Torvald Riegel <triegel@redhat.com>
927 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
928 privatization safety if already in serial mode.
930 2011-12-24 Torvald Riegel <triegel@redhat.com>
932 * beginend.cc (GTM::gtm_thread::restart): Add and handle
933 finish_serial_upgrade parameter.
934 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
935 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
936 Don't unset reader flag.
937 (GTM::gtm_rwlock::write_upgrade_finish): New.
938 * config/posix/rwlock.cc: Same.
939 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
941 * config/posix/rwlock.h: Same.
942 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
943 flag after commit or after rollback when restarting.
945 2011-12-24 Torvald Riegel <triegel@redhat.com>
947 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
948 (GTM::gtm_thread::try_commit): Changed memory order.
949 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
951 * config/linux/x86/futex_bits.h (sys_futex0): Same.
952 * config/linux/sh/futex_bits.h (sys_futex0): Same.
953 * config/linux/futex_bits.h (sys_futex0): Same.
954 * config/linux/futex.cc (futex_wait, futex_wake): Same.
955 * config/linux/futex.h (futex_wait, futex_wake): Same.
956 * config/linux/rwlock.h (gtm_rwlock::writers,
957 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
959 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
960 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
961 gtm_rwlock::write_unlock): Fix memory orders and fences.
962 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
963 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
964 gtm_rwlock::write_unlock): Same.
965 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
966 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
967 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
969 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
970 gl_wt_dispatch::load, gl_wt_dispatch::store,
971 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
972 orders and fences. Add comments.
974 2011-12-21 Jakub Jelinek <jakub@redhat.com>
976 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
977 * Makefile.in: Regenerated.
979 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
981 * configure.tgt: Add sh* case.
982 * config/sh/target.h: New file.
983 * config/sh/sjlj.S: New file.
984 * config/linux/sh/futex_bits.h: New file.
986 2011-12-14 Richard Henderson <rth@redhat.com>
988 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
989 * config/arm/sjlj.S, config/arm/target.h: New files.
990 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
991 (cfi_rel_offset): New.
992 * config/linux/futex_bits.h: New file.
993 * config/linux/futex.cc: Include futex_bits.h here...
994 * config/linux/futex.h: ... not here.
995 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
996 * configure.ac (ARCH_AM): New conditional.
997 * Makefile.in, configure: Rebuild.
998 * configure.tgt: Handle ARM.
1000 2011-12-13 Richard Henderson <rth@redhat.com>
1002 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1003 signed/unsigned comparison werror.
1005 * local_atomic: New file.
1006 * libitm_i.h: Include it.
1007 (gtm_thread::shared_state): Use atomic template.
1008 * beginend.cc (GTM::gtm_clock): Use atomic template.
1009 (global_tid): Use atomic template if 64-bit atomics available.
1010 (gtm_thread::gtm_thread): Update shared_state access.
1011 (gtm_thread::trycommit): Likewise.
1012 (choose_code_path): Update global_tid access.
1013 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1014 * stmlock.h (GTM::gtm_clock): Use atomic template.
1015 (gtm_get_clock, gtm_inc_clock): Update accesses.
1016 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1017 redundant __sync_synchronize after atomic shared_state access.
1018 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1019 (gtm_rwlock::write_lock_generic): Likewise.
1020 (gtm_rwlock::read_unlock): Likewise.
1021 * config/alpha/target.h (atomic_read_barrier): Remove.
1022 (atomic_write_barrier): Remove.
1023 * config/x86/target.h (atomic_read_barrier): Remove.
1024 (atomic_write_barrier): Remove.
1026 2011-11-30 Richard Henderson <rth@redhat.com>
1028 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1029 * beginend.c (_ITM_abortTransaction): Update to match.
1030 (GTM::gtm_thread::restart): Likewise.
1031 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1032 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1034 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1036 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1037 * Makefile.in: Regenerate.
1039 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1041 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1042 * alloc_cpp.cc: Generate dummy functions if we don't
1043 HAVE_ELF_STYLE_WEAKREF.
1044 * eh_cpp.cc: Likewise.
1045 * configure: Regenerate.
1046 * aclocal.m4: Likewise.
1047 * config.h.in: Likewise.
1048 * Makefile.in: Likewise.
1049 * testsuite/Makefile.in: Likewise.
1051 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1053 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1054 __USER_LABEL_PREFIX__ for targets that use it.
1055 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1056 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1057 in portability to non-elf targets.
1058 (GTM_longjmp): Likewise.
1059 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1062 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1064 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1065 * testsuite/libitm.c/memset-1.c: Likewise.
1067 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1069 * configure: Regenerate.
1071 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1073 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1074 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1075 * Makefile.am: Handle sun style versioning.
1076 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1077 * configure: Regenerate.
1078 * Makefile.in: Regenerate.
1080 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1082 * config/generic/asmcfi.h: Fix comment.
1083 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1084 sequence without .hidden support, error for non-ELF targets.
1085 (GTM_longjmp) [__ELF__]: Only use .hidden if
1086 HAVE_ATTRIBUTE_VISIBILITY.
1088 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1091 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1093 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1094 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1096 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1099 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1100 * configure: Regenerate.
1102 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1104 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1106 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1110 (.note.GNU-stack): Only use if __linux__.
1111 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1112 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1113 * testsuite/libitm.c/reentrant.c: Likewise.
1114 * testsuite/libitm.c/simple-2.c: Likewise.
1115 * testsuite/libitm.c/txrelease.c: Likewise.
1116 * testsuite/libitm.c++/static_ctor.C: Likewise.
1118 2011-11-10 Richard Henderson <rth@redhat.com>
1120 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1121 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1122 * configure.ac (ARCH_X86_AVX): New conditional.
1123 * Makefile.in, configure: Rebuild.
1125 2011-11-09 Richard Henderson <rth@redhat.com>
1127 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1128 * configure.ac: Use it.
1129 * config.h.in, configure: Rebuild.
1130 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1132 2011-11-09 Richard Henderson <rth@redhat.com>
1134 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1135 * config/alpha/unaligned.h: Remove file.
1136 * config/generic/unaligned.h: Remove file.
1137 * config/x86/unaligned.h: Remove file.
1138 * config/generic/cachepage.h: Remove file.
1139 * config/posix/cachepage.cc: Remove file.
1140 * config/generic/cacheline.cc: Remove file.
1141 * config/x86/cacheline.cc: Remove file.
1142 * config/generic/cacheline.h (gtm_cacheline): Remove the
1143 store_mask, copy_mask, copy_mask_wb methods.
1144 * config/x86/cacheline.h: Likewise.
1145 * config/alpha/cacheline.h: Fall back to generic after setting size.
1146 * config/generic/tls.cc (gtm_mask_stack): Remove.
1147 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1148 (GTM_vpalignr_table): Remove.
1149 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1150 (GTM_pshift_table): Remove.
1151 * config/libitm_i.h: Don't include cachepage.h.
1152 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1153 * Makefile.in, testsuite/Makefile.in: Rebuild.
1155 2011-11-09 Richard Henderson <rth@redhat.com>
1157 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1158 to emit branch prediction hint.
1160 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1161 Protect .note.GNU-stack with __linux__.
1163 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1164 * configure, aclocal.m4, config.h.in: Rebuild.
1165 * config/generic/asmcfi.h: New file.
1166 * config/x86/sjlj.S: Use it.
1168 2011-11-08 Richard Henderson <rth@redhat.com>
1170 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1172 2011-11-08 Richard Henderson <rth@redhat.com>
1174 * configure.tgt: Test correct directory for supported cpus.
1176 * configure.ac: Exit if unsupported.
1177 * configure: Rebuild.
1178 * configure.tgt: Delete boilerplate from libgomp for unsupported
1179 targets. Set UNSUPPORTED for unsupported targets.
1181 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183 * configure.tgt: Handle i386 like i[456]86.
1184 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1186 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1187 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1189 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1191 * method-wbetl.cc: Update copyright notice.
1197 * barrier.tpl: Same.
1198 * useraction.cc: Same.
1202 * config/generic/tls.cc: Same.
1203 * config/generic/cacheline.h: Same.
1204 * config/generic/cachepage.h: Same.
1205 * config/generic/cacheline.cc: Same.
1206 * config/generic/unaligned.h: Same.
1207 * config/x86/cacheline.h: Same.
1208 * config/x86/cacheline.cc: Same.
1209 * config/x86/unaligned.h: Same.
1210 * config/alpha/cacheline.h: Same.
1211 * config/alpha/unaligned.h: Same.
1212 * config/alpha/sjlj.S: Same.
1213 * config/posix/cachepage.cc: Same.
1214 * config/linux/futex.h: Same.
1215 * config/linux/alpha/futex_bits.h: Same.
1217 2011-11-04 Torvald Riegel <triegel@redhat.com>
1219 * libitm.texi: No cover text and invariant sections.
1221 2011-11-03 Richard Henderson <rth@redhat.com>
1223 * local_type_traits: New file.
1224 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1226 2011-11-03 Richard Henderson <rth@redhat.com>
1228 * configure.ac: Don't test for gfortran.
1229 * configure: Rebuild.
1231 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1232 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1234 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1236 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1237 * testsuite/libitm.c/memset-1.c: Same.
1238 * testsuite/libitm.c/c.exp: Same.
1239 * testsuite/lib/libitm-dg.exp: Same.
1240 * testsuite/lib/libitm.exp: Same.
1241 * testsuite/libitm.c++/c++.exp: Same.
1243 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1245 * testsuite/config/default.exp: Update copyright date.
1246 * configure.ac: Add copyright info.
1247 * configure.tgt: Same.
1249 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1251 * testsuite/libitm.c/reentrant.c: XFAIL.
1252 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1254 2011-10-29 Torvald Riegel <triegel@redhat.com>
1256 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1258 (_ITM_abortTransaction): Handle aborts of outer transactions.
1260 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1261 * libitm.texi: Document aborts of outer transactions.
1262 * testsuite/libitm.c/cancel.c: New file.
1264 2011-10-19 Torvald Riegel <triegel@redhat.com>
1266 * testsuite/*: Change __transaction to __transaction_atomic or
1267 __transaction_relaxed.
1269 2011-10-19 Torvald Riegel <triegel@redhat.com>
1271 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1274 2011-10-19 Torvald Riegel <triegel@redhat.com>
1276 * libitm_i.h: Add gl_wt dispatch.
1277 * retry.cc (parse_default_method): Same.
1278 * method-gl.cc: New file.
1279 * Makefile.am: Use method-gl.cc.
1280 * Makefile.in: Rebuild.
1282 2011-10-19 Torvald Riegel <triegel@redhat.com>
1284 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1285 safety if requested by a TM method.
1286 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1287 privatization safety.
1288 * method-serial.cc: Same.
1290 2011-10-19 Torvald Riegel <triegel@redhat.com>
1292 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1293 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1294 undolog-related member functions from *_local to *_undolog.
1295 * local.cc (gtm_thread::commit_undolog): Same.
1296 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1297 (GTM::gtm_thread::rollback): Roll back undolog before
1298 dispatch-specific rollback.
1300 2011-10-19 Torvald Riegel <triegel@redhat.com>
1302 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1303 re-initialization of the current method group.
1304 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1306 2011-10-19 Torvald Riegel <triegel@redhat.com>
1308 * alloc.cc (commit_allocations_2): Do not free transaction-local
1309 memory when committing a nested transaction.
1311 2011-10-19 Torvald Riegel <triegel@redhat.com>
1313 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1314 serial-irrevocable dispatch, not serial.
1316 2011-10-19 Torvald Riegel <triegel@redhat.com>
1318 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1320 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1321 * method-serial.cc: Implement begin_or_restart().
1322 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1323 dispatch-specific begin_or_restart().
1324 (GTM::gtm_thread::restart): Same.
1326 2011-08-23 Torvald Riegel <triegel@redhat.com>
1328 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1329 restarting without switching to serial mode.
1330 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1331 transaction state. Choose closed-nesting alternative if available.
1332 (GTM::gtm_thread::set_default_dispatch): New.
1333 (parse_default_method): New.
1334 (GTM::gtm_thread::number_of_threads_changed): New.
1335 * method-serial.cc (GTM::serial_mg): New method group class.
1336 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1338 (GTM::serial_dispatch): Same.
1339 (GTM::serialirr_onwrite_dispatch): Same.
1340 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1341 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1343 (GTM::gtm_thread::gtm_thread): Same.
1344 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1345 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1346 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1347 choose dispatch but set state according to dispatch here.
1348 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1349 (GTM::method_group): New class.
1350 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1351 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1352 * libitm.texi: Document TM methods, method groups, method life cycle.
1353 Rename method sets to method groups.
1355 2011-08-23 Torvald Riegel <triegel@redhat.com>
1357 * config/x86/tls.h: Moved to ...
1358 * config/linux/x86/tls.h: ... here.
1360 2011-08-23 Torvald Riegel <triegel@redhat.com>
1362 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1364 * config/x86/sjlj.S: Same.
1366 2011-08-19 Torvald Riegel <triegel@redhat.com>
1368 * config/linux/rwlock.h: New file.
1369 * config/linux/rwlock.c: New file.
1370 * configure.ac: Reenable futex support (undo SVN rev 157758).
1371 * Makefile.am: Same.
1372 * configure.tgt: Same.
1373 * config/linux/alpha/futex_bits.h: Same.
1374 * config/linux/futex.h: Same. Return number of woken processes.
1375 * config/linux/futex.cc: Same.
1376 (futex_wait): Remove spinning.
1377 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1378 Use __x86_64__ instead of __LP64__.
1379 * aclocal.m4: Include generic futex checks.
1380 * configure: Rebuild.
1381 * Makefile.in: Rebuild.
1382 * testsuite/Makefile.in: Rebuild.
1383 * beginend.cc: Include pthread.h.
1384 * config/posix/cachepage.cc: Same.
1386 2011-08-12 Torvald Riegel <triegel@redhat.com>
1388 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1389 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1391 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1393 (GTM::gtm_thread::thread_num): Removed.
1394 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1395 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1396 tx-to-thread renaming.
1397 * beginend.cc: Adapted to tx-to-thread renaming.
1398 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1399 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1400 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1401 gtm_transaction to gtm_thread.
1402 (_ITM_getThreadnum): Removed. Not supported anymore.
1403 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1404 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1405 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1406 gtm_tx-to-gtm_thr renaming if necessary.
1413 * alloc_cpp.cc: Same.
1414 * method-serial.cc: Same.
1415 * config/generic/tls.cc: Same.
1416 * config/posix/rwlock.h (gtm_rwlock): Same.
1417 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1419 2011-08-12 Torvald Riegel <triegel@redhat.com>
1421 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1423 (gtm_rwlock::read_unlock): Same.
1424 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1425 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1426 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1427 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1428 w_upgrade. Replaced by per-transaction flags (in shared_state).
1429 Added c_confirmed_writers.
1430 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1431 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1432 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1433 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1434 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1435 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1436 * libitm.texi: Document locking conventions and implementations in
1439 2011-08-12 Torvald Riegel <triegel@redhat.com>
1441 * libitm_i.h (next_tx): Add list of all threads' transaction.
1442 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1443 transaction with list of transactions and ...
1444 (thread_exit_handler): ... deregister here.
1445 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1446 * config/x86/target.h: Same.
1448 2011-08-12 Torvald Riegel <triegel@redhat.com>
1450 * testsuite/libitm.c++/static_ctor.C: New file.
1452 2011-08-12 Torvald Riegel <triegel@redhat.com>
1454 * testsuite/libitm.c/reentrant.c: New file.
1456 2011-08-12 Torvald Riegel <triegel@redhat.com>
1458 * config/generic/tls.h: Remove the free list for transactions and ...
1459 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1460 (GTM::gtm_transaction::operator delete): ... and release here.
1461 (thread_exit_handler): New. Delete tx when thread terminates.
1462 (thread_exit_init): New.
1463 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1464 * testsuite/libitm.c/txrelease.c: New file.
1466 2011-08-12 Torvald Riegel <triegel@redhat.com>
1468 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1469 * testsuite/libitm.c/notx.c: New file.
1471 2011-08-12 Torvald Riegel <triegel@redhat.com>
1473 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1474 * libitm_i.h (local_tid): ... to here.
1475 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1476 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1478 2011-08-12 Torvald Riegel <triegel@redhat.com>
1480 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1481 serialirr_onwrite_dispatch as new default for now.
1482 * method-serial.cc (serialirr_onwrite_dispatch): New.
1483 (GTM::dispatch_serialirr_onwrite): New.
1486 2011-08-12 Torvald Riegel <triegel@redhat.com>
1488 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1489 * query.cc (_ITM_getTransactionId): There is no active transaction if
1490 the current nesting level is zero.
1492 2011-07-28 Torvald Riegel <triegel@redhat.com>
1494 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1497 2011-07-28 Torvald Riegel <triegel@redhat.com>
1499 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1500 transaction properties from the caller instead of from the
1503 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1505 2011-07-28 Torvald Riegel <triegel@redhat.com>
1507 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1508 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1510 * method-serial.cc: Same.
1511 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1512 flat nesting as default, and closed nesting on demand.
1513 (GTM::gtm_transaction::rollback): Same.
1514 (_ITM_abortTransaction): Same.
1515 (GTM::gtm_transaction::restart): Same.
1516 (GTM::gtm_transaction::trycommit): Same.
1517 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1518 (choose_code_path): New.
1519 (GTM::gtm_transaction_cp::save): New.
1520 (GTM::gtm_transaction_cp::commit): New.
1521 * query.cc (_ITM_inTransaction): Support flat nesting.
1522 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1523 (GTM::gtm_transaction): Support flat and closed nesting.
1524 * alloc.cc (commit_allocations_2): New.
1525 (commit_cb_data): New helper struct.
1526 (GTM::gtm_transaction::commit_allocations): Handle nested
1528 * libitm.texi: Update user action section, add description of nesting.
1530 2011-07-28 Torvald Riegel <triegel@redhat.com>
1532 * libitm_i.h: Add closed nesting as restart reason.
1533 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1535 2011-07-28 Torvald Riegel <triegel@redhat.com>
1537 * useraction.cc: Use vector instead of list to store actions.
1538 Also support partial rollbacks for closed nesting.
1539 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1540 * beginend.cc: Same.
1542 2011-07-28 Torvald Riegel <triegel@redhat.com>
1544 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1545 closed_nesting flags, as well as a closed nesting alternative.
1546 * method-serial.cc: Same.
1547 (serial_dispatch): Renamed to serialirr_dispatch.
1548 (GTM::dispatch_serialirr): Same.
1549 (serial_dispatch_ul): Renamed to serial_dispatch.
1550 (GTM::dispatch_serial): Same.
1552 2011-07-28 Torvald Riegel <triegel@redhat.com>
1554 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1556 2011-07-28 Torvald Riegel <triegel@redhat.com>
1558 * aatree.h (aa_tree::remove): New.
1559 (aa_tree::operator new): Add placement new.
1561 2011-07-02 Torvald Riegel <triegel@redhat.com>
1563 * containers.h: New file.
1564 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1565 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1566 * common.h: ... to here.
1567 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1570 2011-06-30 Torvald Riegel <triegel@redhat.com>
1572 * libitm_i.h (STATE_ABORTING): Remove.
1573 * beginend.cc (_ITM_abortTransaction): Same.
1574 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1575 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1576 (_ITM_rollbackTransaction): Remove.
1577 * beginend.cc: Same.
1579 * libitm.texi: Document these ABI changes.
1581 2011-06-30 Torvald Riegel <triegel@redhat.com>
1583 * libitm.texi: New file.
1584 * Makefile.am: Add libitm.texi.
1585 * Makefile.in: Rebuild.
1587 2011-06-30 Torvald Riegel <triegel@redhat.com>
1589 * libitm_i.h: Move parts to common.h and dispatch.h.
1590 * common.h: New file.
1591 * dispatch.h: New file, new dispatch class.
1592 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1593 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1594 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1595 decision to retry.cc.
1596 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1598 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1599 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1601 * barrier.cc: Use new barriers definitions.
1602 (abi_dispatch::memmove_overlap_check): New.
1603 * config/x86/x86_sse.cc: Same.
1604 * config/x86/x86_avx.cc: Same.
1605 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1607 * Makefile.in: Rebuild.
1608 * method-readonly.cc: Remove.
1609 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1610 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1612 2011-06-30 Torvald Riegel <triegel@redhat.com>
1614 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1615 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1616 * testsuite/libitm.c/dropref-2.c: Same.
1617 * testsuite/libitm.c/dropref.c: Same.
1619 2011-06-30 Torvald Riegel <triegel@redhat.com>
1621 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1622 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1623 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1625 * barrier.tpl: Same.
1627 * config/generic/tls.h: Same.
1628 * config/x86/tls.h: Same.
1632 * method-readonly.cc: Same.
1633 * method-serial.cc: Same.
1634 * method-wbetl.cc: Same.
1637 2011-03-03 Richard Henderson <rth@redhat.com>
1639 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1640 From Patrik Marlier <patrick.marlier@unine.ch>.
1642 2011-02-03 Richard Henderson <rth@redhat.com>
1644 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1645 * configure.ac: Use it.
1646 * configure, config.h.in: Rebuild.
1647 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1648 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1649 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1650 * libitm.map: Use wildcards to match size_t mangling.
1652 2010-12-14 Richard Henderson <rth@redhat.com>
1654 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1655 blocks of TIDs per thread.
1656 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1657 (setup_gtm_thr): Return the thread structure.
1658 * config/x86/tls.h (setup_gtm_thr): Likewise.
1660 2010-12-14 Richard Henderson <rth@redhat.com>
1662 * clone.cc (table_lock): Remove.
1663 (find_clone): Don't take it.
1664 (ExcludeTransaction): New helper class.
1665 (_ITM_registerTMCloneTable): Use it.
1666 (_ITM_deregisterTMCloneTable): Likewise.
1668 2010-12-14 Richard Henderson <rth@redhat.com>
1670 * config/x86/tls.h: New file.
1672 2010-07-15 Richard Henderson <rth@redhat.com>
1674 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1675 * Makefile.in: Rebuild.
1677 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1679 * method-wbetl.cc (trydropreference): Fix source line.
1681 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1683 * libitm.h: Add comment.
1684 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1686 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1688 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1689 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1690 available, use pthread mutexes.
1691 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1692 * config.h.in: Regenerate.
1693 * configure: Regenerate.
1695 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1697 * libitm.h (ITM_PURE): Define.
1698 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1700 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1702 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1703 (validate): Add comment.
1704 (trydropreference): New.
1705 * method-readonly.cc (class readonly_dispatch): Add
1707 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1708 Call trydropreference().
1709 * libitm.h (_ITM_dropReferences): Remove const attribute.
1710 * method-serial.cc (class serial_dispatch): Add trydropreference.
1711 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1713 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1715 * memcpy.cc (do_memcpy): Comment.
1717 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1719 * barrier.tpl: Add comments throughout.
1721 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1723 * method-wbetl.cc (struct w_entry): Add comments.
1727 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1729 * alloc_c.cc (_ITM_dropReferences): New.
1730 * libitm.map (_ITM_dropReferences): Add.
1731 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1732 * libitm_i.h (struct gtm_transaction): Declare
1733 drop_references_allocations and drop_references_local.
1734 * local.cc (rollback_local): Ignore memory when applicable.
1735 (drop_references_local): New.
1737 2010-06-23 Richard Henderson <rth@redhat.com>
1739 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1740 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1741 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1742 * config/alpha/target.h: Likewise.
1743 * config/generic/tls.cc (gtm_mask_stack): Use it.
1745 2010-06-23 Richard Henderson <rth@redhat.com>
1747 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1748 a mutex instead of trying a lock-free compare-and-swap on the list.
1749 (gtm_cacheline_page::operator delete): Likewise.
1751 2010-06-16 Richard Henderson <rth@redhat.com>
1753 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1754 that overlap the libitm stack.
1755 * barrier.tpl: Mark incoming stack.
1756 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1757 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1758 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1759 * memcpy.cc, memset.cc: Likewise.
1760 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1761 * config/generic/tls.h (gtm_thread): Add stack_top member.
1762 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1763 * libitm_i.h (gtm_mask_stack): Declare.
1764 * config/generic/tls.cc: New file.
1765 * Makefile.am (libitm_la_SOURCES): Add it.
1766 (AM_CXXFLAGS): Turn off exceptions.
1767 * Makefile.in: Rebuild.
1769 2010-06-16 Richard Henderson <rth@redhat.com>
1771 * alloc.cc (struct gtm_alloc_action): Move definition ...
1772 * libitm_i.h: ... here.
1773 (class gtm_transaction): Declare new and delete.
1774 * beginend.cc (alloc_tx): Reformulate as operator new.
1775 (free_tx): Reformulate as operator delete.
1776 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1778 2010-06-11 Richard Henderson <rth@redhat.com>
1780 * clone.cc (clone_entry_compare): Fix typo.
1781 From Patrik Marlier <patrick.marlier@unine.ch>.
1783 2010-05-13 Richard Henderson <rth@redhat.com>
1785 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1788 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1790 * libitm_i.h (struct gtm_transaction): Remove
1791 get_allocation_size.
1792 (record_allocation): Remove size parameter.
1793 * libitm.map (_ITM_realloc): Remove.
1794 * alloc_c.cc (_ITM_realloc): Remove.
1795 (_ITM_malloc): Remove size argument to record_allocation.
1796 (_ITM_calloc): Same.
1797 * alloc_cpp.cc (_ZGTtnwm): Same.
1798 (_ZGTtnwmRKSt9nothrow_t): Same.
1800 (_ZGTtnamRKSt9nothrow_t): Same.
1801 * alloc.cc (struct gtm_alloc_action): Remove size.
1802 (get_allocation_size): Remove.
1803 (commit_allocations): Add comment.
1804 (record_allocation): Remove size parameter.
1805 (forget_allocation): Remove set of size.
1807 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1809 * Makefile.am (abi_version): New.
1810 (AM_CXXFLAGS): Pass abi_version.
1811 * Makefile.in: Regenerate.
1812 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1814 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1816 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1817 _ITM_getTMCloneOrIrrevokable.
1818 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1819 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1821 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1823 * configure.ac: Remove Linux futex support.
1824 * configure.tgt (config_path): Same.
1825 * Makefile.am: Same.
1826 * config/linux: Remove entire directory.
1827 * configure: Rebuild.
1828 * Makefile.in: Rebuild.
1829 * testsuite/Makefile.in: Rebuild.
1831 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1833 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1834 switching to serial mode.
1835 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1837 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1839 * configure.tgt: Add emacs -*- tags.
1840 * barrier.tpl: Same.
1842 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1844 * Makefile.am: Rename serial.cc to method-serial.cc.
1845 * Makefile.in: Regenerate with automake 1.11.1.
1846 * testsuite/Makefile.in: Same.
1847 * aclocal.m4: Regenerate with aclocal 1.11.1.
1848 * method-serial.cc: Rename from serial.cc.
1849 * libitm_i.h (struct gtm_transaction): Update comment on
1852 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1854 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1855 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1857 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1859 * configure: Rebuild.
1861 2009-11-12 Richard Henderson <rth@redhat.com>
1863 * Rewrite everything in C++.
1865 2009-11-03 Richard Henderson <rth@redhat.com>
1867 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1868 * Makefile.am (libitm_la_SOURCES): Add them.
1869 * configure.ac (ARCH_X86): New conditional.
1870 * Makefile.in, configure: Rebuild.
1871 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1872 Move futex setup into "other system configury" case.
1873 * local.c (rollback_local): Merge into ...
1874 (GTM_rollback_local): ... here.
1875 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1876 (_ITM_LB): Define as an alias to GTM_LB.
1878 2009-11-03 Richard Henderson <rth@redhat.com>
1880 * method-readonly.c: New file.
1881 * Makefile.am (libitm_la_SOURCES): Add it.
1882 * Makefile.in: Rebuild.
1883 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1884 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1885 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1886 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1887 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1888 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1889 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1890 gtm_get_clock, gtm_inc_clock): New.
1891 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1892 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1893 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1894 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1895 replace uses with new libitm_i.h symbols.
1896 (dispatch_wbetl): Rename from wbetl_dispatch.
1897 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1898 away from dispatch_readonly; abort if the beginTransaction call
1899 asserted that the transaction was readonly.
1901 2009-11-03 Richard Henderson <rth@redhat.com>
1903 * memset.c: New file.
1904 * Makefile.am (libitm_la_SOURCES): Add it.
1905 * Makefile.in: Rebuild.
1906 * testsuite/libitm.c/memset-1.c: New.
1908 2009-11-03 Richard Henderson <rth@redhat.com>
1910 * dispatch.c: Remove file.
1911 * useraction.c (struct gtm_user_action): Move from libitm.h.
1912 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1913 (serial_memset, serial_memmove, serial_memcpy): Remove.
1914 (serial_W*, serial_R*): Remove.
1915 (serial_dispatch): Update to match.
1916 * configure.ac: Move Werror down below configure checks. Don't
1917 check for sys/loadavg.h, do check for malloc.h. Don't check for
1918 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1919 Use GCC_AC_FUNC_MMAP_BLACKLIST
1920 * libitm.h: Split out all internal items to...
1921 * libitm_i.h: ... here. New file.
1922 * copymask.c: New file.
1923 * local.c (struct gtm_local_undo): Move from libitm.h.
1924 (GTM_alloc_local): Rename from alloc_local; export.
1925 * memcpy.c: New file.
1926 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1927 * config/posix/page.c: New file.
1928 * config/posix/target_tls.h: Remove file.
1929 * barrier.c: New file.
1930 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1932 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1933 * method-wbetl.c: Rewrite for new cacheline methods.
1934 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1936 * config/alpha/sjlj.S: Fix typo.
1937 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1938 * config/alpha/copymask.c: New file.
1939 * config/alpha/target.h (CACHELINE_SIZE): New.
1940 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1942 * config/x86/target_i.h: Copy functions from x86/target.h.
1943 * config/x86/copymask.c: New file.
1944 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1945 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1946 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1947 * config/x86/target_tls.h: Move contents to target_i.h.
1949 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1950 * testsuite/libitm.c/memcpy-1.c: New.
1952 2009-10-22 Richard Henderson <rth@redhat.com>
1954 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1955 (AM_CCASFLAGS): New.
1956 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1957 saving/restoring _AC_ARG_VAR_PRECIOUS.
1958 * Makefile.in, aclocal.m4, config.h.in, configure,
1959 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1961 2009-10-22 Richard Henderson <rth@redhat.com>
1963 * testsuite/*: Update for new compiler syntax.
1965 2009-10-21 Richard Henderson <rth@redhat.com>
1967 * libitm.h (_ITM_abortReason): Add outerAbort.
1969 2009-08-03 Richard Henderson <rth@redhat.com>
1971 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1972 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1973 * method-wbetl.c (struct w_entry): Remove mask.
1974 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1977 2009-07-22 Richard Henderson <rth@redhat.com>
1979 * eh_cpp.c: New file.
1980 * Makefile.am (libitm_la_SOURCES): Add it.
1981 * Makefile.in: Rebuild.
1982 * beginend.c (GTM_rollback_transaction): Undo exception state.
1983 (GTM_trycommit_transaction): Mark inline.
1984 (GTM_trycommit_and_finalize_transaction): Split out from ...
1985 (_ITM_commitTransaction): ... here.
1986 (_ITM_commitTransactionEH): New function.
1987 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1988 cxa_unthrown, eh_in_flight; reorder.
1990 * testsuite/libitm.c++/c++.exp: New.
1991 * testsuite/libitm.c++/eh-1.C: New.
1993 * aatree.c (aa_free): Remove REGPARM.
1994 * aatree.h: Remove all REGPARM.
1996 2009-07-18 Richard Henderson <rth@redhat.com>
1998 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1999 * Makefile.am (libitm_la_SOURCES): Add them.
2000 * Makefile.in: Rebuild.
2001 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2002 (GTM_trycommit_transaction): Likewise.
2003 * libitm.h: Include aatree.h
2004 (struct gtm_alloc_action): New.
2005 (struct gtm_transaction): Add alloc_actions.
2006 (GTM_record_allocation, GTM_forget_allocation): Declare.
2007 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2008 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2009 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2010 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2011 _ZGTtdaPvRKSt9nothrow_t): Export.
2013 2009-07-18 Richard Henderson <rth@redhat.com>
2015 * target_tls.h: Move ...
2016 * config/posix/target_tls.h: ... here.
2018 2009-07-07 Richard Henderson <rth@redhat.com>
2020 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2022 2009-07-07 Richard Henderson <rth@redhat.com>
2026 2009-07-07 Richard Henderson <rth@redhat.com>
2028 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2029 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2031 * configure.tgt: Don't use -ftls-model for x86 linux.
2032 * libitm.h: Include target.h after standard includes.
2033 (_gtm_thr): Rename from gtm_thr.
2034 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2035 (gtm_disp, set_gtm_disp): New.
2036 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2037 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2038 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2040 2009-07-07 Richard Henderson <rth@redhat.com>
2042 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2044 2009-07-06 Richard Henderson <rth@redhat.com>
2046 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2047 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2048 (_ITM_beginTransaction): Take variadic arguments.
2049 (_ITM_registerThrownObject): Declare.
2050 * beginend.c, serial.c: Update.
2051 * libitm.map: Add _ITM_registerThrownObject.
2053 2009-01-28 Richard Henderson <rth@redhat.com>
2055 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2056 * Makefile.in: Rebuild.
2057 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2058 (GTM_restart_transaction): Fix uninstrumented code check.
2059 * retry.c (GTM_decide_retry_strategy): Add serial check.
2060 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2061 automatically go irrevokable when in serial mode.
2062 * clone.c: New file.
2063 * libitm.h, libitm.map: Update.
2065 2009-01-27 Richard Henderson <rth@redhat.com>
2067 * Makefile.am (LTCCASCOMPILE): Define.
2068 (libitm_la_SOURCES): Add methid-wbetl.c.
2069 * testsuite/Makefile.am: New
2070 * configure.ac: Add testsuite/Makefile.
2071 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2072 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2073 (_ITM_abortTransaction): Finalize implementation method; pass
2074 transaction properties to longjmp.
2075 (GTM_restart_transaction): Split out from ...
2076 (_ITM_commitTransaction): ... here.
2077 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2078 Move to config/x86/target.h.
2079 * config/linux/alpha/futex_bits.h: New.
2080 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2081 * config/x86/target.h: Disable target types for 32-bit.
2082 * config/alpha/sjlj.S, config/alpha/target.h: New.
2083 * libitm.h (struct gtm_dispatch): Add init, fini.
2084 (enum restart_reason): New.
2085 (struct gtm_transaction): Add method and restarts.
2086 * retry.c (GTM_decide_retry_strategy): Implement.
2087 * serial.c (serial_init, serial_fini): New.
2088 (GTM_serialmode): Finialize outgoing method.
2089 * method-wbetl.c: New.
2091 2008-12-09 Richard Henderson <rth@redhat.com>
2093 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2094 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2095 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2096 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2097 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2098 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2099 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2100 * serial.c (serial_R##T, serial_W##T): Likewise.
2102 2008-11-21 Richard Henderson <rth@redhat.com>
2106 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2108 Copying and distribution of this file, with or without modification,
2109 are permitted in any medium without royalty provided the copyright
2110 notice and this notice are preserved.