1 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
4 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
6 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8 * configure: Regenerated.
10 2018-04-18 David Malcolm <dmalcolm@redhat.com>
13 * configure: Regenerate.
15 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
18 * configure: Regenerate.
20 2018-01-03 Jakub Jelinek <jakub@redhat.com>
22 Update copyright years.
24 * libitm.texi: Bump @copying's copyright year.
26 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
28 * Makefile.in: Regenerate.
29 * acinclude.m4: Add enable.m4 and cet.m4.
30 * config/x86/sjlj.S: Include cet.h.
31 (_ITM_beginTransaction): Add _CET_ENDBR.
32 Save Shadow Stack pointer.
33 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
34 * config/x86/target.h (struct gtm_jmpbuf):
35 Add new field for Shadow Stack pointer.
36 * configure: Regenerate.
37 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
38 * configure.ac: Update libtool_VERSION for x86.
39 * testsuite/Makefile.in: Regenerate.
41 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
43 * libitm/config/x86/target.h: Add new field (ssp).
44 * libitm/config/x86/sjlj.S: Change offsets.
46 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48 * testsuite/lib/libitm.exp: Load scanlang.exp.
50 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
52 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
54 2017-01-21 Jakub Jelinek <jakub@redhat.com>
57 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
58 of cat to get version from BASE-VER file.
59 * testsuite/Makefile.in: Regenerated.
61 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
63 * config/x86/target.h (htm_available): Determine vendor from
64 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
66 2017-01-18 Torvald Riegel <triegel@redhat.com>
68 * config/x86/target.h (htm_available): Add check for some processors
69 on which TSX is broken.
71 2017-01-17 Jakub Jelinek <jakub@redhat.com>
74 * configure.ac: Add GCC_BASE_VER.
75 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
76 get version from BASE-VER file.
77 * testsuite/Makefile.in: Regenerated.
78 * configure: Regenerated.
79 * Makefile.in: Regenerated.
81 2017-01-04 Alan Modra <amodra@gmail.com>
83 * Makefile.in: Regenerate.
84 * testsuite/Makefile.in: Regenerate.
86 2017-01-01 Jakub Jelinek <jakub@redhat.com>
88 Update copyright years.
90 * libitm.texi: Bump @copying's copyright year.
92 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
94 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
95 * aclocal.m4: Regenerate.
96 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
97 LIBITM_CHECK_LINKER_HWCAP.
99 2016-11-15 Matthias Klose <doko@ubuntu.com>
101 * configure: Regenerate.
103 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
106 * util.cc (xmalloc): Use posix_memalign to allocate memory on
107 on cache line if requested.
109 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
111 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
112 function attribute to disable floating point in begin_transaction() on
114 * beginend.cc (begin_transaction): Use
115 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
117 2016-01-22 Torvald Riegel <triegel@redhat.com>
119 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
121 (htm_fastpath): Remove.
122 (gtm_thread::begin_transaction): Fix HTM fastpath.
123 (_ITM_commitTransaction): Adapt.
124 (_ITM_commitTransactionEH): Adapt.
125 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
127 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
128 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
129 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
130 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
131 * libitm/method-serial.cc (htm_mg): Adapt.
132 (gtm_thread::serialirr_mode): Adapt.
133 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
135 2016-01-21 Torvald Riegel <triegel@redhat.com>
137 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
140 2016-01-19 Richard Henderson <rth@redhat.com>
145 2016-01-13 Richard Henderson <rth@redhat.com>
147 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
148 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
149 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
150 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
151 * configure.ac (ARCH_AARCH64): New conditional.
152 (ARCH_PPC, ARCH_S390): Likewise.
153 * Makefile.in, configure: Rebuild.
155 * libitm.h (_ITM_TYPE_M128): Always define.
156 * vect64.cc: Split ...
157 * vect128.cc: ... out of...
158 * config/x86/x86_sse.cc: ... here.
159 * config/arm/neon.cc: New file.
161 2016-01-19 Torvald Riegel <triegel@redhat.com>
163 * local_type_traits: Remove file.
164 * libitm_i.h: Don't include it anymore.
165 (sized_integral): Remove.
167 2016-01-16 Torvald Riegel <triegel@redhat.com>
169 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
171 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
172 * libitm/testsuite/libitm.c/priv-1.c: New.
174 2015-01-15 Torvald Riegel <triegel@redhat.com>
176 testsuite/libitm.c++/libstdc++-safeexc.C: New.
178 2016-01-13 Torvald Riegel <triegel@redhat.com>
180 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
181 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
182 (gtm_rwlock::write_unlock): Likewise.
184 2016-01-13 Richard Henderson <rth@redhat.com>
186 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
187 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
188 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
189 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
190 * configure.ac (ARCH_AARCH64): New conditional.
191 (ARCH_PPC, ARCH_S390): Likewise.
192 * Makefile.in, configure: Rebuild.
194 * libitm.h (_ITM_TYPE_M128): Always define.
195 * vect64.cc: Split ...
196 * vect128.cc: ... out of...
197 * config/x86/x86_sse.cc: ... here.
198 * config/arm/neon.cc: New file.
200 2016-01-13 Torvald Riegel <triegel@redhat.com>
202 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
203 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
204 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
205 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
206 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
207 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
208 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
209 (serialirr_dispatch::snapshot_most_recent): New.
210 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
212 2016-01-12 Torvald Riegel <triegel@redhat.com>
214 * libitm_i.h (gtm_mask_stack): Remove.
215 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
216 * stmlock.h: Remove file.
217 * config/alpha/cacheline.h: Likewise.
218 * config/generic/cacheline.h: Likewise.
219 * config/powerpc/cacheline.h: Likewise.
220 * config/sparc/cacheline.h: Likewise.
221 * config/x86/cacheline.h: Likewise.
223 2016-01-04 Jakub Jelinek <jakub@redhat.com>
225 Update copyright years.
227 * libitm.texi: Bump @copying's copyright year.
229 2015-11-26 Torvald Riegel <triegel@redhat.com>
231 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
232 (ml_wt_dispatch::pre_write): Adapt.
233 (ml_wt_dispatch::pre_load): Likewise.
235 2015-11-22 Torvald Riegel <triegel@redhat.com>
237 * libitm_i.h (gtm_alloc_action): Remove union.
238 * testsuite/libitm.c/alloc-1.c: New.
240 2015-11-19 Torvald Riegel <triegel@redhat.com>
242 * testsuite/libitm.c++/eh-5.C: New.
243 * libitm.h (_ITM_cxa_free_exception): New.
244 * libitm.map (_ITM_cxa_free_exception): Add it.
245 * libitm.texi: Update ABI docs.
246 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
247 (gtm_transaction_cp::cxa_uncaught_count): Add.
248 (gtm_thread::cxa_unthrown): Remove.
249 (gtm_thread::cxa_uncaught_count_ptr): Add.
250 (gtm_thread::cxa_uncaught_count): Add.
251 (gtm_thread::drop_references_allocations): Rename to...
252 (gtm_thread::discard_allocation): ... this and adapt.
253 (gtm_thread::init_cpp_exceptions): New.
254 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
255 (gtm_thread::begin_transaction): Likewise.
256 (gtm_transaction_cp::save): Likewise.
257 (gtm_thread::trycommit): Likewise.
258 * eh_cpp.cc: Add overview comments.
259 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
260 (free_any_exception, _ITM_cxa_free_exception): New.
261 (gtm_thread::init_cpp_exceptions): Define.
262 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
263 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
264 (gtm_thread::revert_cpp_exceptions): Likewise.
266 2015-11-09 Torvald Riegel <triegel@redhat.com>
268 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
269 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
270 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
271 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
272 (gtm_thread::forget_allocations): New overload with size_t argument.
273 * alloc.c (gtm_thread::forget_allocation): Define new overload and
275 (gtm_thread::record_allocation): Adapt.
276 (gtm_thread::commit_allocations_1): Adapt.
277 (gtm_thread::commit_allocations_2): Adapt.
278 * testsuite/libitm.c++/newdelete.C: New.
280 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
281 Joseph Myers <joseph@codesourcery.com>
282 Mark Shinwell <shinwell@codesourcery.com>
283 Andrew Stubbs <ams@codesourcery.com>
284 Rich Felker <dalias@libc.org>
286 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
287 GTM_begin_transaction for compatibility with FDPIC.
289 2015-10-09 David Malcolm <dmalcolm@redhat.com>
291 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
294 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
297 * local_atomic (__always_inline): Rename to...
298 (__libitm_always_inline): ... this.
300 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
303 * config/powerpc/sjlj.S: Port to Xcode 2.5.
305 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
307 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
308 operands "op" and "val" to int.
310 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
312 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
313 "op" and "val" to int.
315 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
317 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
318 "op" and "val" to int.
320 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
322 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
323 Declare as static int.
324 (FUTEX_PRIVATE_FLAG): Remove L suffix.
325 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
327 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
329 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
332 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
334 * Makefile.in: Regenerated with automake-1.11.6.
335 * aclocal.m4: Likewise.
336 * configure: Likewise.
337 * testsuite/Makefile.in: Likewise.
339 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
341 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
342 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
344 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
347 * libitm.c/stackundo.c (test2): Make it static.
350 2015-01-05 Jakub Jelinek <jakub@redhat.com>
352 Update copyright years.
354 2015-01-05 Jakub Jelinek <jakub@redhat.com>
356 * libitm.texi: Bump @copying's copyright year.
358 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
360 * testsuite/lib/libitm.exp: Load target-utils.exp.
361 Move load of target-supports.exp earlier.
363 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
365 * configure.tgt (x86_64): Tune -m32 multilib to generic.
367 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
370 * configure: Regenerated.
372 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
375 * configure: Regenerate.
377 2014-10-06 Marek Polacek <polacek@redhat.com>
379 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
380 * testsuite/libitm.c/memset-1.c: Likewise.
382 2014-07-24 Richard Henderson <rth@redhat.com>
384 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
385 addressing mode in epilogue.
387 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
389 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
390 -mclear-hwcap instead.
391 * configure: Regenerate.
392 * clearcap.map: Remove.
394 2014-05-21 John Marino <gnugcc@marino.st>
396 * configure.tgt (*-*-dragonfly*): New target.
398 2014-05-19 Richard Henderson <rth@redhat.com>
400 * config/aarch64/sjlj.S: New file.
401 * config/aarch64/target.h: New file.
402 * configure.tgt: Enable aarch64.
404 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
406 * config/generic/asmcfi.h: Also check for
407 __GCC_HAVE_DWARF2_CFI_ASM.
409 2013-04-02 Richard Henderson <rth@redhat.com>
411 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
412 * config/arm/target.h, config/sh/target.h: Likewise.
413 * config/sparc/target.h, config/x86/target.h: Likewise.
415 2014-03-26 Jakub Jelinek <jakub@redhat.com>
417 * config/linux/futex_bits.h: Include errno.h.
418 (sys_futex0): If syscall returns -1, return -errno rather than
421 2014-03-26 Joseph Myers <joseph@codesourcery.com>
423 * libitm.texi (Index): Rename to Library Index.
425 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
428 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
429 (x86_avx.lo): Append -mavx to CXXFLAGS.
430 * Makefile.in: Regenerate.
432 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
434 Update copyright years
436 2014-01-02 Tobias Burnus <burnus@net-b.de>
438 * libitm.texi: Bump @copying's copyright year.
440 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
442 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
443 (FUNC): Define ELFv2 variant.
450 2013-09-20 Alan Modra <amodra@gmail.com>
452 * configure: Regenerate.
454 2013-08-30 Torvald Riegel <triegel@redhat.com>
456 * config/posix/rwlock.cc: Fix initialization order.
458 2013-08-30 Torvald Riegel <triegel@redhat.com>
460 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
461 (htm_fastpath): Assign an asm name.
462 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
464 (_ITM_actions): Likewise.
465 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
467 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
468 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
469 field to the start of the structure.
470 * config/linux/rwlock.h (gtm_rwlock): Update comments.
471 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
472 handling for custom HTM fast paths.
474 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
476 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
478 * configure.tgt: Add -msoft-float to XCFLAGS.
480 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
482 * configure.tgt: Add -msoft-float to XCFLAGS.
484 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
486 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
487 (htm_transaction_active): Enable zEC12 instructions in the
489 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
491 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
493 * acinclude.m4: Add htm asm check for s390.
494 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
495 * configure: Regenerate.
496 * config/s390/target.h: Remove __HTM__ check.
497 (htm_available): Call getauxval to get hwcaps and check whether
498 HTM is available or not.
500 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
502 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
503 * configure.ac: Use it.
504 (AC_CHECK_HEADERS): Check for sys/auxv.h.
505 (AC_CHECK_FUNCS): Check for getauxval.
506 * config.h.in, configure: Rebuild.
507 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
508 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
509 (USE_HTM_FASTPATH): Define.
510 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
511 _HTM_RETRIES) New macros.
512 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
513 htm_begin_success, htm_commit, htm_transaction_active): New functions.
515 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
517 * config/s390/target.h: Include htmintrin.h.
518 (_HTM_ITM_RETRIES): New macro definition.
519 (htm_available, htm_init, htm_begin, htm_begin_success)
520 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
522 2013-06-20 Iain Sandoe <iain@codesourcery.com>
523 Cesar Philippidis <cesar@codesourcery.com>
525 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
526 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
527 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
528 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
530 2013-06-20 Torvald Riegel <triegel@redhat.com>
532 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
533 (_ITM_getTransactionId): Same.
534 * config/x86/target.h (htm_transaction_active): New.
536 2013-06-20 Torvald Riegel <triegel@redhat.com>
539 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
542 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
545 * local_atomic (__always_inline): Always define our version.
546 (__calculate_memory_order): Mark inline.
547 (atomic_thread_fence): Ditto.
548 (atomic_signal_fence): Ditto.
549 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
550 (atomic_bool::atomic_flag_clear_explicit): Ditto.
551 (atomic_bool::atomic_flag_test_and_set): Ditto.
552 (atomic_bool::atomic_flag_clear): Ditto.
554 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
556 * config/s390/sjlj.S: New file.
557 * config/s390/target.h: New file.
558 * configure.tgt: Set options for S/390.
560 2013-03-23 Andi Kleen <ak@linux.intel.com>
562 * local_atomic (__always_inline): Add.
563 (__calculate_memory_order, atomic_thread_fence,
564 atomic_signal_fence, test_and_set, clear, store, load,
565 exchange, compare_exchange_weak, compare_exchange_strong,
566 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
567 Add __always_inline to force inlining.
569 2013-02-11 Iain Sandoe <iain@codesourcery.com>
570 Jack Howarth <howarth@bromo.med.uc.edu>
571 Patrick Marlier <patrick.marlier@gmail.com>
574 * alloc_cpp.cc: Enable function declarations on darwin.
575 * eh_cpp.cc: Likewise.
577 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
579 Update copyright years.
581 2012-11-09 Torvald Riegel <triegel@redhat.com>
583 * beginend.cc (htm_fastpath): New.
584 (gtm_thread::begin_transaction, _ITM_commitTransaction,
585 _ITM_commitTransactionEH): Add HTM fastpath handling.
586 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
587 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
588 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
589 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
590 * configure.tgt: Add -mrtm to XCFLAGS.
591 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
592 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
593 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
594 * retry.cc (parse_default_method): Add HTM method parsing.
595 (gtm_thread::number_of_threads_changed): Use HTM by default if
598 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
600 * configure: Regenerate.
602 2012-10-31 Richard Henderson <rth@redhat.com>
604 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
605 * configure.ac: Use it.
606 * config.h.in, configure: Rebuild.
607 * testsuite/Makefile.in: Rebuild.
609 2012-10-24 Torvald Riegel <triegel@redhat.com>
611 * libitm.texi: Clarify ABI requirements for data-logging functions.
613 2012-10-24 Torvald Riegel <triegel@redhat.com>
615 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
616 it requires serial mode instead of assuming that for certain
618 * dispatch.h (abi_dispatch::requires_serial): New.
619 (abi_dispatch::abi_dispatch): Adapt.
620 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
621 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
622 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
623 serial_dispatch::serial_dispatch,
624 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
626 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
628 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
629 and ia32 declarations some more.
630 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
632 2012-09-20 Jakub Jelinek <jakub@redhat.com>
635 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
636 * configure: Regenerate.
637 * Makefile.in: Regenerate.
639 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
641 * configure: Regenerated.
643 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
645 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
647 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
649 * eh_cpp.cc: Fix __cxa_end_catch declaration.
651 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
653 * configure: Regenerated.
655 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
658 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
661 2012-04-03 Tristan Gingold <gingold@adacore.com>
663 * configure: Regenerate.
665 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
668 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
670 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
672 * testsuite/lib/libitm.exp: load fortran-modules.exp
674 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 * configure.tgt (*-*-irix6*): Remove.
678 2012-03-13 Torvald Riegel <triegel@redhat.com>
681 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
684 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686 * configure.tgt (*-*-osf*): Remove.
687 * configure: Regenerate.
689 2012-03-05 Torvald Riegel <triegel@redhat.com>
691 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
692 memtransfer/memset if size isn't larger than zero.
694 2012-03-02 Torvald Riegel <triegel@redhat.com>
696 * libitm.texi: Link to specification and add a usage example.
698 2012-02-24 Torvald Riegel <triegel@redhat.com>
700 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
701 default dispatch for more than 1 thread to ml_wt.
703 2012-02-20 Torvald Riegel <triegel@redhat.com>
705 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
707 2012-02-20 Torvald Riegel <triegel@redhat.com>
709 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
711 2012-02-20 Torvald Riegel <triegel@redhat.com>
713 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
714 serial mode corner cases made obsolete by prior gtm_rwlock changes.
715 (gl_wt_dispatch.rollback): Same.
717 2012-02-20 Torvald Riegel <triegel@redhat.com>
719 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
721 2012-02-20 Torvald Riegel <triegel@redhat.com>
723 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
724 for RfW src. Optimize number of calls to gtm_thr.
726 2012-02-20 Torvald Riegel <triegel@redhat.com>
728 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
730 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
731 (default_dispatch): Make atomic.
732 (GTM::gtm_thread::set_default_dispatch): Access atomically.
733 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
734 use decide_begin_dispatch() if default_dispatch might have changed.
735 (GTM::gtm_thread::number_of_threads_changed): Initialize
736 default_dispatch here.
738 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
739 Patrick Marlier <patrick.marlier@gmail.com>
742 * alloc_cpp.cc: No dummy definitions for darwin.
743 * eh_cpp.cc: Likewise.
745 2012-02-14 Richard Henderson <rth@redhat.com>
747 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
749 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
751 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
753 2012-02-14 Torvald Riegel <triegel@redhat.com>
755 * libitm_i.h (GTM::gtm_rwlog_entry): New.
756 (GTM::gtm_thread): Add read and write logs.
757 (GTM::dispatch_ml_wt): Declare.
758 * retry.cc (parse_default_method): Support ml_wt.
759 * method-ml.cc: New file.
760 * Makefile.am: Add method-ml.cc.
761 * Makefile.in: Regenerate.
763 2012-02-14 Torvald Riegel <triegel@redhat.com>
765 * dispatch.h (GTM::abi_dispatch::supports): New.
766 (GTM::method_group::reinit): New.
767 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
768 (GTM::gtm_thread::number_of_threads_changed): Check that the method
769 supports the current situation.
771 2012-02-14 Torvald Riegel <triegel@redhat.com>
773 * util.cc (GTM::xcalloc): New.
774 * common.h (GTM::xcalloc): Declare.
776 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
778 * config/sparc/target.h (cpu_relax): Read from CC register.
779 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
781 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
783 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
785 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
787 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
788 * config/sparc/cacheline.h: New file.
789 * config/sparc/target.h: Likewise.
790 * config/sparc/sjlj.S: Likewise.
791 * config/linux/sparc/futex_bits.h: Likewise.
793 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
795 * configure.ac (link_itm): Fix comment.
796 * configure: Regenerate.
797 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
799 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
803 Correct libgomp references.
805 2012-01-24 Torvald Riegel <triegel@redhat.com>
807 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
810 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
812 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
814 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
815 offset values. Do not copy return address. Decrement stack
817 (GTM_longjump) [__x86_64__]: Update offset values.
819 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
822 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
823 the first function argument to %eax.
825 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
827 * libitm.h (_ITM_getThreadnum): Remove.
828 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
830 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
832 * clearcap.map: New file.
833 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
834 * configure.ac: Call it.
835 Clear HWCAP_LDFLAGS if defaulting to -mavx.
836 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
837 * configure: Regenerate.
838 * Makefile.in: Regenerate.
839 * testsuite/Makefile.in: Regenerate.
841 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
844 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
845 include, exclude options.
847 2012-01-14 Torvald Riegel <triegel@redhat.com>
849 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
851 * containers.h (GTM::vector::set_size): New.
853 2012-01-14 Torvald Riegel <triegel@redhat.com>
856 * config/generic/tls.h (GTM::mask_stack_top): New.
857 (GTM::mask_stack_bottom): Declare.
858 * config/generic/tls.c (GTM::mask_stack_bottom): New.
859 * local.cc (gtm_undolog::rollback): Filter out any updates that
860 overlap the libitm stack. Add current transaction as parameter.
861 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
862 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
863 * testsuite/libitm.c/stackundo.c: New test.
865 2012-01-10 Richard Henderson <rth@redhat.com>
867 * libitm_i.h (_Unwind_DeleteException): Declare weak.
868 * eh_cpp.cc (_Unwind_DeleteException): Define for
869 !HAVE_ELF_STYLE_WEAKREF.
871 2012-01-08 Torvald Riegel <triegel@redhat.com>
873 * local.cc (GTM_LB): Use GTM::gtm_undolog.
874 (GTM::gtm_thread::drop_references_undolog): Remove.
875 (GTM::gtm_thread::commit_undolog,
876 GTM::gtm_thread::rollback_undolog): Move to ...
877 * libitm_i.h (GTM::gtm_undolog): ...here. New.
878 (GTM::gtm_undolog_entry): Remove.
879 (GTM::gtm_thread): Adapt.
880 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
881 (GTM::gtm_thread::trycommit): Adapt.
882 * method-serial.cc (serial_dispatch::log): Adapt.
883 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
884 (gl_wt_dispatch::store): Fix likely/unlikely.
885 * containers.h (GTM::vector::resize): Add additional_capacity
886 parameter and handle it.
887 (GTM::vector::resize_noinline): New/adapt.
888 (GTM::vector::push): New.
890 2012-01-06 Richard Henderson <rth@redhat.com>
892 * configure.tgt: Support powerpc-linux and powerpc-darwin.
893 * config/linux/powerpc/futex_bits.h: New file.
894 * config/powerpc/cacheline.h: New file.
895 * config/powerpc/sjlj.S: New file.
896 * config/powerpc/target.h: New file.
897 * config/generic/asmcfi.h (cfi_offset): New.
898 (cfi_restore, cfi_undefined): New.
900 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
903 * testsuite/libitm.c/reentrant.c: Remove xfail.
904 (thread): Pass x to pure().
905 From Patrik Marlier <patrick.marlier@gmail.com>.
907 2011-12-24 Torvald Riegel <triegel@redhat.com>
909 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
910 privatization safety if already in serial mode.
912 2011-12-24 Torvald Riegel <triegel@redhat.com>
914 * beginend.cc (GTM::gtm_thread::restart): Add and handle
915 finish_serial_upgrade parameter.
916 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
917 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
918 Don't unset reader flag.
919 (GTM::gtm_rwlock::write_upgrade_finish): New.
920 * config/posix/rwlock.cc: Same.
921 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
923 * config/posix/rwlock.h: Same.
924 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
925 flag after commit or after rollback when restarting.
927 2011-12-24 Torvald Riegel <triegel@redhat.com>
929 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
930 (GTM::gtm_thread::try_commit): Changed memory order.
931 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
933 * config/linux/x86/futex_bits.h (sys_futex0): Same.
934 * config/linux/sh/futex_bits.h (sys_futex0): Same.
935 * config/linux/futex_bits.h (sys_futex0): Same.
936 * config/linux/futex.cc (futex_wait, futex_wake): Same.
937 * config/linux/futex.h (futex_wait, futex_wake): Same.
938 * config/linux/rwlock.h (gtm_rwlock::writers,
939 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
941 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
942 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
943 gtm_rwlock::write_unlock): Fix memory orders and fences.
944 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
945 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
946 gtm_rwlock::write_unlock): Same.
947 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
948 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
949 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
951 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
952 gl_wt_dispatch::load, gl_wt_dispatch::store,
953 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
954 orders and fences. Add comments.
956 2011-12-21 Jakub Jelinek <jakub@redhat.com>
958 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
959 * Makefile.in: Regenerated.
961 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
963 * configure.tgt: Add sh* case.
964 * config/sh/target.h: New file.
965 * config/sh/sjlj.S: New file.
966 * config/linux/sh/futex_bits.h: New file.
968 2011-12-14 Richard Henderson <rth@redhat.com>
970 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
971 * config/arm/sjlj.S, config/arm/target.h: New files.
972 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
973 (cfi_rel_offset): New.
974 * config/linux/futex_bits.h: New file.
975 * config/linux/futex.cc: Include futex_bits.h here...
976 * config/linux/futex.h: ... not here.
977 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
978 * configure.ac (ARCH_AM): New conditional.
979 * Makefile.in, configure: Rebuild.
980 * configure.tgt: Handle ARM.
982 2011-12-13 Richard Henderson <rth@redhat.com>
984 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
985 signed/unsigned comparison werror.
987 * local_atomic: New file.
988 * libitm_i.h: Include it.
989 (gtm_thread::shared_state): Use atomic template.
990 * beginend.cc (GTM::gtm_clock): Use atomic template.
991 (global_tid): Use atomic template if 64-bit atomics available.
992 (gtm_thread::gtm_thread): Update shared_state access.
993 (gtm_thread::trycommit): Likewise.
994 (choose_code_path): Update global_tid access.
995 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
996 * stmlock.h (GTM::gtm_clock): Use atomic template.
997 (gtm_get_clock, gtm_inc_clock): Update accesses.
998 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
999 redundant __sync_synchronize after atomic shared_state access.
1000 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1001 (gtm_rwlock::write_lock_generic): Likewise.
1002 (gtm_rwlock::read_unlock): Likewise.
1003 * config/alpha/target.h (atomic_read_barrier): Remove.
1004 (atomic_write_barrier): Remove.
1005 * config/x86/target.h (atomic_read_barrier): Remove.
1006 (atomic_write_barrier): Remove.
1008 2011-11-30 Richard Henderson <rth@redhat.com>
1010 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1011 * beginend.c (_ITM_abortTransaction): Update to match.
1012 (GTM::gtm_thread::restart): Likewise.
1013 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1014 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1016 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1018 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1019 * Makefile.in: Regenerate.
1021 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1023 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1024 * alloc_cpp.cc: Generate dummy functions if we don't
1025 HAVE_ELF_STYLE_WEAKREF.
1026 * eh_cpp.cc: Likewise.
1027 * configure: Regenerate.
1028 * aclocal.m4: Likewise.
1029 * config.h.in: Likewise.
1030 * Makefile.in: Likewise.
1031 * testsuite/Makefile.in: Likewise.
1033 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1035 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1036 __USER_LABEL_PREFIX__ for targets that use it.
1037 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1038 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1039 in portability to non-elf targets.
1040 (GTM_longjmp): Likewise.
1041 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1044 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1046 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1047 * testsuite/libitm.c/memset-1.c: Likewise.
1049 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1051 * configure: Regenerate.
1053 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1055 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1056 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1057 * Makefile.am: Handle sun style versioning.
1058 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1059 * configure: Regenerate.
1060 * Makefile.in: Regenerate.
1062 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1064 * config/generic/asmcfi.h: Fix comment.
1065 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1066 sequence without .hidden support, error for non-ELF targets.
1067 (GTM_longjmp) [__ELF__]: Only use .hidden if
1068 HAVE_ATTRIBUTE_VISIBILITY.
1070 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1072 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1073 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1075 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1076 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1078 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1081 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1082 * configure: Regenerate.
1084 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1086 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1088 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1092 (.note.GNU-stack): Only use if __linux__.
1093 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1094 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1095 * testsuite/libitm.c/reentrant.c: Likewise.
1096 * testsuite/libitm.c/simple-2.c: Likewise.
1097 * testsuite/libitm.c/txrelease.c: Likewise.
1098 * testsuite/libitm.c++/static_ctor.C: Likewise.
1100 2011-11-10 Richard Henderson <rth@redhat.com>
1102 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1103 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1104 * configure.ac (ARCH_X86_AVX): New conditional.
1105 * Makefile.in, configure: Rebuild.
1107 2011-11-09 Richard Henderson <rth@redhat.com>
1109 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1110 * configure.ac: Use it.
1111 * config.h.in, configure: Rebuild.
1112 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1114 2011-11-09 Richard Henderson <rth@redhat.com>
1116 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1117 * config/alpha/unaligned.h: Remove file.
1118 * config/generic/unaligned.h: Remove file.
1119 * config/x86/unaligned.h: Remove file.
1120 * config/generic/cachepage.h: Remove file.
1121 * config/posix/cachepage.cc: Remove file.
1122 * config/generic/cacheline.cc: Remove file.
1123 * config/x86/cacheline.cc: Remove file.
1124 * config/generic/cacheline.h (gtm_cacheline): Remove the
1125 store_mask, copy_mask, copy_mask_wb methods.
1126 * config/x86/cacheline.h: Likewise.
1127 * config/alpha/cacheline.h: Fall back to generic after setting size.
1128 * config/generic/tls.cc (gtm_mask_stack): Remove.
1129 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1130 (GTM_vpalignr_table): Remove.
1131 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1132 (GTM_pshift_table): Remove.
1133 * config/libitm_i.h: Don't include cachepage.h.
1134 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1135 * Makefile.in, testsuite/Makefile.in: Rebuild.
1137 2011-11-09 Richard Henderson <rth@redhat.com>
1139 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1140 to emit branch prediction hint.
1142 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1143 Protect .note.GNU-stack with __linux__.
1145 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1146 * configure, aclocal.m4, config.h.in: Rebuild.
1147 * config/generic/asmcfi.h: New file.
1148 * config/x86/sjlj.S: Use it.
1150 2011-11-08 Richard Henderson <rth@redhat.com>
1152 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1154 2011-11-08 Richard Henderson <rth@redhat.com>
1156 * configure.tgt: Test correct directory for supported cpus.
1158 * configure.ac: Exit if unsupported.
1159 * configure: Rebuild.
1160 * configure.tgt: Delete boilerplate from libgomp for unsupported
1161 targets. Set UNSUPPORTED for unsupported targets.
1163 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1165 * configure.tgt: Handle i386 like i[456]86.
1166 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1168 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1169 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1171 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1173 * method-wbetl.cc: Update copyright notice.
1179 * barrier.tpl: Same.
1180 * useraction.cc: Same.
1184 * config/generic/tls.cc: Same.
1185 * config/generic/cacheline.h: Same.
1186 * config/generic/cachepage.h: Same.
1187 * config/generic/cacheline.cc: Same.
1188 * config/generic/unaligned.h: Same.
1189 * config/x86/cacheline.h: Same.
1190 * config/x86/cacheline.cc: Same.
1191 * config/x86/unaligned.h: Same.
1192 * config/alpha/cacheline.h: Same.
1193 * config/alpha/unaligned.h: Same.
1194 * config/alpha/sjlj.S: Same.
1195 * config/posix/cachepage.cc: Same.
1196 * config/linux/futex.h: Same.
1197 * config/linux/alpha/futex_bits.h: Same.
1199 2011-11-04 Torvald Riegel <triegel@redhat.com>
1201 * libitm.texi: No cover text and invariant sections.
1203 2011-11-03 Richard Henderson <rth@redhat.com>
1205 * local_type_traits: New file.
1206 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1208 2011-11-03 Richard Henderson <rth@redhat.com>
1210 * configure.ac: Don't test for gfortran.
1211 * configure: Rebuild.
1213 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1214 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1216 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1218 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1219 * testsuite/libitm.c/memset-1.c: Same.
1220 * testsuite/libitm.c/c.exp: Same.
1221 * testsuite/lib/libitm-dg.exp: Same.
1222 * testsuite/lib/libitm.exp: Same.
1223 * testsuite/libitm.c++/c++.exp: Same.
1225 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1227 * testsuite/config/default.exp: Update copyright date.
1228 * configure.ac: Add copyright info.
1229 * configure.tgt: Same.
1231 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1233 * testsuite/libitm.c/reentrant.c: XFAIL.
1234 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1236 2011-10-29 Torvald Riegel <triegel@redhat.com>
1238 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1240 (_ITM_abortTransaction): Handle aborts of outer transactions.
1242 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1243 * libitm.texi: Document aborts of outer transactions.
1244 * testsuite/libitm.c/cancel.c: New file.
1246 2011-10-19 Torvald Riegel <triegel@redhat.com>
1248 * testsuite/*: Change __transaction to __transaction_atomic or
1249 __transaction_relaxed.
1251 2011-10-19 Torvald Riegel <triegel@redhat.com>
1253 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1256 2011-10-19 Torvald Riegel <triegel@redhat.com>
1258 * libitm_i.h: Add gl_wt dispatch.
1259 * retry.cc (parse_default_method): Same.
1260 * method-gl.cc: New file.
1261 * Makefile.am: Use method-gl.cc.
1262 * Makefile.in: Rebuild.
1264 2011-10-19 Torvald Riegel <triegel@redhat.com>
1266 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1267 safety if requested by a TM method.
1268 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1269 privatization safety.
1270 * method-serial.cc: Same.
1272 2011-10-19 Torvald Riegel <triegel@redhat.com>
1274 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1275 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1276 undolog-related member functions from *_local to *_undolog.
1277 * local.cc (gtm_thread::commit_undolog): Same.
1278 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1279 (GTM::gtm_thread::rollback): Roll back undolog before
1280 dispatch-specific rollback.
1282 2011-10-19 Torvald Riegel <triegel@redhat.com>
1284 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1285 re-initialization of the current method group.
1286 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1288 2011-10-19 Torvald Riegel <triegel@redhat.com>
1290 * alloc.cc (commit_allocations_2): Do not free transaction-local
1291 memory when committing a nested transaction.
1293 2011-10-19 Torvald Riegel <triegel@redhat.com>
1295 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1296 serial-irrevocable dispatch, not serial.
1298 2011-10-19 Torvald Riegel <triegel@redhat.com>
1300 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1302 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1303 * method-serial.cc: Implement begin_or_restart().
1304 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1305 dispatch-specific begin_or_restart().
1306 (GTM::gtm_thread::restart): Same.
1308 2011-08-23 Torvald Riegel <triegel@redhat.com>
1310 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1311 restarting without switching to serial mode.
1312 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1313 transaction state. Choose closed-nesting alternative if available.
1314 (GTM::gtm_thread::set_default_dispatch): New.
1315 (parse_default_method): New.
1316 (GTM::gtm_thread::number_of_threads_changed): New.
1317 * method-serial.cc (GTM::serial_mg): New method group class.
1318 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1320 (GTM::serial_dispatch): Same.
1321 (GTM::serialirr_onwrite_dispatch): Same.
1322 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1323 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1325 (GTM::gtm_thread::gtm_thread): Same.
1326 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1327 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1328 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1329 choose dispatch but set state according to dispatch here.
1330 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1331 (GTM::method_group): New class.
1332 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1333 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1334 * libitm.texi: Document TM methods, method groups, method life cycle.
1335 Rename method sets to method groups.
1337 2011-08-23 Torvald Riegel <triegel@redhat.com>
1339 * config/x86/tls.h: Moved to ...
1340 * config/linux/x86/tls.h: ... here.
1342 2011-08-23 Torvald Riegel <triegel@redhat.com>
1344 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1346 * config/x86/sjlj.S: Same.
1348 2011-08-19 Torvald Riegel <triegel@redhat.com>
1350 * config/linux/rwlock.h: New file.
1351 * config/linux/rwlock.c: New file.
1352 * configure.ac: Reenable futex support (undo SVN rev 157758).
1353 * Makefile.am: Same.
1354 * configure.tgt: Same.
1355 * config/linux/alpha/futex_bits.h: Same.
1356 * config/linux/futex.h: Same. Return number of woken processes.
1357 * config/linux/futex.cc: Same.
1358 (futex_wait): Remove spinning.
1359 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1360 Use __x86_64__ instead of __LP64__.
1361 * aclocal.m4: Include generic futex checks.
1362 * configure: Rebuild.
1363 * Makefile.in: Rebuild.
1364 * testsuite/Makefile.in: Rebuild.
1365 * beginend.cc: Include pthread.h.
1366 * config/posix/cachepage.cc: Same.
1368 2011-08-12 Torvald Riegel <triegel@redhat.com>
1370 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1371 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1373 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1375 (GTM::gtm_thread::thread_num): Removed.
1376 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1377 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1378 tx-to-thread renaming.
1379 * beginend.cc: Adapted to tx-to-thread renaming.
1380 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1381 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1382 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1383 gtm_transaction to gtm_thread.
1384 (_ITM_getThreadnum): Removed. Not supported anymore.
1385 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1386 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1387 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1388 gtm_tx-to-gtm_thr renaming if necessary.
1395 * alloc_cpp.cc: Same.
1396 * method-serial.cc: Same.
1397 * config/generic/tls.cc: Same.
1398 * config/posix/rwlock.h (gtm_rwlock): Same.
1399 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1401 2011-08-12 Torvald Riegel <triegel@redhat.com>
1403 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1405 (gtm_rwlock::read_unlock): Same.
1406 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1407 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1408 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1409 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1410 w_upgrade. Replaced by per-transaction flags (in shared_state).
1411 Added c_confirmed_writers.
1412 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1413 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1414 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1415 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1416 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1417 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1418 * libitm.texi: Document locking conventions and implementations in
1421 2011-08-12 Torvald Riegel <triegel@redhat.com>
1423 * libitm_i.h (next_tx): Add list of all threads' transaction.
1424 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1425 transaction with list of transactions and ...
1426 (thread_exit_handler): ... deregister here.
1427 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1428 * config/x86/target.h: Same.
1430 2011-08-12 Torvald Riegel <triegel@redhat.com>
1432 * testsuite/libitm.c++/static_ctor.C: New file.
1434 2011-08-12 Torvald Riegel <triegel@redhat.com>
1436 * testsuite/libitm.c/reentrant.c: New file.
1438 2011-08-12 Torvald Riegel <triegel@redhat.com>
1440 * config/generic/tls.h: Remove the free list for transactions and ...
1441 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1442 (GTM::gtm_transaction::operator delete): ... and release here.
1443 (thread_exit_handler): New. Delete tx when thread terminates.
1444 (thread_exit_init): New.
1445 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1446 * testsuite/libitm.c/txrelease.c: New file.
1448 2011-08-12 Torvald Riegel <triegel@redhat.com>
1450 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1451 * testsuite/libitm.c/notx.c: New file.
1453 2011-08-12 Torvald Riegel <triegel@redhat.com>
1455 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1456 * libitm_i.h (local_tid): ... to here.
1457 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1458 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1460 2011-08-12 Torvald Riegel <triegel@redhat.com>
1462 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1463 serialirr_onwrite_dispatch as new default for now.
1464 * method-serial.cc (serialirr_onwrite_dispatch): New.
1465 (GTM::dispatch_serialirr_onwrite): New.
1468 2011-08-12 Torvald Riegel <triegel@redhat.com>
1470 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1471 * query.cc (_ITM_getTransactionId): There is no active transaction if
1472 the current nesting level is zero.
1474 2011-07-28 Torvald Riegel <triegel@redhat.com>
1476 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1479 2011-07-28 Torvald Riegel <triegel@redhat.com>
1481 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1482 transaction properties from the caller instead of from the
1485 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1487 2011-07-28 Torvald Riegel <triegel@redhat.com>
1489 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1490 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1492 * method-serial.cc: Same.
1493 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1494 flat nesting as default, and closed nesting on demand.
1495 (GTM::gtm_transaction::rollback): Same.
1496 (_ITM_abortTransaction): Same.
1497 (GTM::gtm_transaction::restart): Same.
1498 (GTM::gtm_transaction::trycommit): Same.
1499 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1500 (choose_code_path): New.
1501 (GTM::gtm_transaction_cp::save): New.
1502 (GTM::gtm_transaction_cp::commit): New.
1503 * query.cc (_ITM_inTransaction): Support flat nesting.
1504 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1505 (GTM::gtm_transaction): Support flat and closed nesting.
1506 * alloc.cc (commit_allocations_2): New.
1507 (commit_cb_data): New helper struct.
1508 (GTM::gtm_transaction::commit_allocations): Handle nested
1510 * libitm.texi: Update user action section, add description of nesting.
1512 2011-07-28 Torvald Riegel <triegel@redhat.com>
1514 * libitm_i.h: Add closed nesting as restart reason.
1515 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1517 2011-07-28 Torvald Riegel <triegel@redhat.com>
1519 * useraction.cc: Use vector instead of list to store actions.
1520 Also support partial rollbacks for closed nesting.
1521 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1522 * beginend.cc: Same.
1524 2011-07-28 Torvald Riegel <triegel@redhat.com>
1526 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1527 closed_nesting flags, as well as a closed nesting alternative.
1528 * method-serial.cc: Same.
1529 (serial_dispatch): Renamed to serialirr_dispatch.
1530 (GTM::dispatch_serialirr): Same.
1531 (serial_dispatch_ul): Renamed to serial_dispatch.
1532 (GTM::dispatch_serial): Same.
1534 2011-07-28 Torvald Riegel <triegel@redhat.com>
1536 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1538 2011-07-28 Torvald Riegel <triegel@redhat.com>
1540 * aatree.h (aa_tree::remove): New.
1541 (aa_tree::operator new): Add placement new.
1543 2011-07-02 Torvald Riegel <triegel@redhat.com>
1545 * containers.h: New file.
1546 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1547 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1548 * common.h: ... to here.
1549 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1552 2011-06-30 Torvald Riegel <triegel@redhat.com>
1554 * libitm_i.h (STATE_ABORTING): Remove.
1555 * beginend.cc (_ITM_abortTransaction): Same.
1556 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1557 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1558 (_ITM_rollbackTransaction): Remove.
1559 * beginend.cc: Same.
1561 * libitm.texi: Document these ABI changes.
1563 2011-06-30 Torvald Riegel <triegel@redhat.com>
1565 * libitm.texi: New file.
1566 * Makefile.am: Add libitm.texi.
1567 * Makefile.in: Rebuild.
1569 2011-06-30 Torvald Riegel <triegel@redhat.com>
1571 * libitm_i.h: Move parts to common.h and dispatch.h.
1572 * common.h: New file.
1573 * dispatch.h: New file, new dispatch class.
1574 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1575 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1576 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1577 decision to retry.cc.
1578 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1580 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1581 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1583 * barrier.cc: Use new barriers definitions.
1584 (abi_dispatch::memmove_overlap_check): New.
1585 * config/x86/x86_sse.cc: Same.
1586 * config/x86/x86_avx.cc: Same.
1587 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1589 * Makefile.in: Rebuild.
1590 * method-readonly.cc: Remove.
1591 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1592 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1594 2011-06-30 Torvald Riegel <triegel@redhat.com>
1596 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1597 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1598 * testsuite/libitm.c/dropref-2.c: Same.
1599 * testsuite/libitm.c/dropref.c: Same.
1601 2011-06-30 Torvald Riegel <triegel@redhat.com>
1603 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1604 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1605 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1607 * barrier.tpl: Same.
1609 * config/generic/tls.h: Same.
1610 * config/x86/tls.h: Same.
1614 * method-readonly.cc: Same.
1615 * method-serial.cc: Same.
1616 * method-wbetl.cc: Same.
1619 2011-03-03 Richard Henderson <rth@redhat.com>
1621 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1622 From Patrik Marlier <patrick.marlier@unine.ch>.
1624 2011-02-03 Richard Henderson <rth@redhat.com>
1626 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1627 * configure.ac: Use it.
1628 * configure, config.h.in: Rebuild.
1629 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1630 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1631 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1632 * libitm.map: Use wildcards to match size_t mangling.
1634 2010-12-14 Richard Henderson <rth@redhat.com>
1636 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1637 blocks of TIDs per thread.
1638 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1639 (setup_gtm_thr): Return the thread structure.
1640 * config/x86/tls.h (setup_gtm_thr): Likewise.
1642 2010-12-14 Richard Henderson <rth@redhat.com>
1644 * clone.cc (table_lock): Remove.
1645 (find_clone): Don't take it.
1646 (ExcludeTransaction): New helper class.
1647 (_ITM_registerTMCloneTable): Use it.
1648 (_ITM_deregisterTMCloneTable): Likewise.
1650 2010-12-14 Richard Henderson <rth@redhat.com>
1652 * config/x86/tls.h: New file.
1654 2010-07-15 Richard Henderson <rth@redhat.com>
1656 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1657 * Makefile.in: Rebuild.
1659 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1661 * method-wbetl.cc (trydropreference): Fix source line.
1663 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1665 * libitm.h: Add comment.
1666 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1668 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1670 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1671 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1672 available, use pthread mutexes.
1673 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1674 * config.h.in: Regenerate.
1675 * configure: Regenerate.
1677 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1679 * libitm.h (ITM_PURE): Define.
1680 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1682 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1684 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1685 (validate): Add comment.
1686 (trydropreference): New.
1687 * method-readonly.cc (class readonly_dispatch): Add
1689 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1690 Call trydropreference().
1691 * libitm.h (_ITM_dropReferences): Remove const attribute.
1692 * method-serial.cc (class serial_dispatch): Add trydropreference.
1693 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1695 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1697 * memcpy.cc (do_memcpy): Comment.
1699 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1701 * barrier.tpl: Add comments throughout.
1703 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1705 * method-wbetl.cc (struct w_entry): Add comments.
1709 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1711 * alloc_c.cc (_ITM_dropReferences): New.
1712 * libitm.map (_ITM_dropReferences): Add.
1713 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1714 * libitm_i.h (struct gtm_transaction): Declare
1715 drop_references_allocations and drop_references_local.
1716 * local.cc (rollback_local): Ignore memory when applicable.
1717 (drop_references_local): New.
1719 2010-06-23 Richard Henderson <rth@redhat.com>
1721 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1722 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1723 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1724 * config/alpha/target.h: Likewise.
1725 * config/generic/tls.cc (gtm_mask_stack): Use it.
1727 2010-06-23 Richard Henderson <rth@redhat.com>
1729 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1730 a mutex instead of trying a lock-free compare-and-swap on the list.
1731 (gtm_cacheline_page::operator delete): Likewise.
1733 2010-06-16 Richard Henderson <rth@redhat.com>
1735 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1736 that overlap the libitm stack.
1737 * barrier.tpl: Mark incoming stack.
1738 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1739 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1740 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1741 * memcpy.cc, memset.cc: Likewise.
1742 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1743 * config/generic/tls.h (gtm_thread): Add stack_top member.
1744 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1745 * libitm_i.h (gtm_mask_stack): Declare.
1746 * config/generic/tls.cc: New file.
1747 * Makefile.am (libitm_la_SOURCES): Add it.
1748 (AM_CXXFLAGS): Turn off exceptions.
1749 * Makefile.in: Rebuild.
1751 2010-06-16 Richard Henderson <rth@redhat.com>
1753 * alloc.cc (struct gtm_alloc_action): Move definition ...
1754 * libitm_i.h: ... here.
1755 (class gtm_transaction): Declare new and delete.
1756 * beginend.cc (alloc_tx): Reformulate as operator new.
1757 (free_tx): Reformulate as operator delete.
1758 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1760 2010-06-11 Richard Henderson <rth@redhat.com>
1762 * clone.cc (clone_entry_compare): Fix typo.
1763 From Patrik Marlier <patrick.marlier@unine.ch>.
1765 2010-05-13 Richard Henderson <rth@redhat.com>
1767 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1770 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1772 * libitm_i.h (struct gtm_transaction): Remove
1773 get_allocation_size.
1774 (record_allocation): Remove size parameter.
1775 * libitm.map (_ITM_realloc): Remove.
1776 * alloc_c.cc (_ITM_realloc): Remove.
1777 (_ITM_malloc): Remove size argument to record_allocation.
1778 (_ITM_calloc): Same.
1779 * alloc_cpp.cc (_ZGTtnwm): Same.
1780 (_ZGTtnwmRKSt9nothrow_t): Same.
1782 (_ZGTtnamRKSt9nothrow_t): Same.
1783 * alloc.cc (struct gtm_alloc_action): Remove size.
1784 (get_allocation_size): Remove.
1785 (commit_allocations): Add comment.
1786 (record_allocation): Remove size parameter.
1787 (forget_allocation): Remove set of size.
1789 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1791 * Makefile.am (abi_version): New.
1792 (AM_CXXFLAGS): Pass abi_version.
1793 * Makefile.in: Regenerate.
1794 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1796 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1798 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1799 _ITM_getTMCloneOrIrrevokable.
1800 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1801 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1803 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1805 * configure.ac: Remove Linux futex support.
1806 * configure.tgt (config_path): Same.
1807 * Makefile.am: Same.
1808 * config/linux: Remove entire directory.
1809 * configure: Rebuild.
1810 * Makefile.in: Rebuild.
1811 * testsuite/Makefile.in: Rebuild.
1813 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1815 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1816 switching to serial mode.
1817 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1819 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1821 * configure.tgt: Add emacs -*- tags.
1822 * barrier.tpl: Same.
1824 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1826 * Makefile.am: Rename serial.cc to method-serial.cc.
1827 * Makefile.in: Regenerate with automake 1.11.1.
1828 * testsuite/Makefile.in: Same.
1829 * aclocal.m4: Regenerate with aclocal 1.11.1.
1830 * method-serial.cc: Rename from serial.cc.
1831 * libitm_i.h (struct gtm_transaction): Update comment on
1834 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1836 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1837 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1839 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1841 * configure: Rebuild.
1843 2009-11-12 Richard Henderson <rth@redhat.com>
1845 * Rewrite everything in C++.
1847 2009-11-03 Richard Henderson <rth@redhat.com>
1849 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1850 * Makefile.am (libitm_la_SOURCES): Add them.
1851 * configure.ac (ARCH_X86): New conditional.
1852 * Makefile.in, configure: Rebuild.
1853 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1854 Move futex setup into "other system configury" case.
1855 * local.c (rollback_local): Merge into ...
1856 (GTM_rollback_local): ... here.
1857 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1858 (_ITM_LB): Define as an alias to GTM_LB.
1860 2009-11-03 Richard Henderson <rth@redhat.com>
1862 * method-readonly.c: New file.
1863 * Makefile.am (libitm_la_SOURCES): Add it.
1864 * Makefile.in: Rebuild.
1865 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1866 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1867 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1868 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1869 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1870 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1871 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1872 gtm_get_clock, gtm_inc_clock): New.
1873 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1874 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1875 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1876 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1877 replace uses with new libitm_i.h symbols.
1878 (dispatch_wbetl): Rename from wbetl_dispatch.
1879 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1880 away from dispatch_readonly; abort if the beginTransaction call
1881 asserted that the transaction was readonly.
1883 2009-11-03 Richard Henderson <rth@redhat.com>
1885 * memset.c: New file.
1886 * Makefile.am (libitm_la_SOURCES): Add it.
1887 * Makefile.in: Rebuild.
1888 * testsuite/libitm.c/memset-1.c: New.
1890 2009-11-03 Richard Henderson <rth@redhat.com>
1892 * dispatch.c: Remove file.
1893 * useraction.c (struct gtm_user_action): Move from libitm.h.
1894 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1895 (serial_memset, serial_memmove, serial_memcpy): Remove.
1896 (serial_W*, serial_R*): Remove.
1897 (serial_dispatch): Update to match.
1898 * configure.ac: Move Werror down below configure checks. Don't
1899 check for sys/loadavg.h, do check for malloc.h. Don't check for
1900 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1901 Use GCC_AC_FUNC_MMAP_BLACKLIST
1902 * libitm.h: Split out all internal items to...
1903 * libitm_i.h: ... here. New file.
1904 * copymask.c: New file.
1905 * local.c (struct gtm_local_undo): Move from libitm.h.
1906 (GTM_alloc_local): Rename from alloc_local; export.
1907 * memcpy.c: New file.
1908 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1909 * config/posix/page.c: New file.
1910 * config/posix/target_tls.h: Remove file.
1911 * barrier.c: New file.
1912 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1914 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1915 * method-wbetl.c: Rewrite for new cacheline methods.
1916 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1918 * config/alpha/sjlj.S: Fix typo.
1919 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1920 * config/alpha/copymask.c: New file.
1921 * config/alpha/target.h (CACHELINE_SIZE): New.
1922 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1924 * config/x86/target_i.h: Copy functions from x86/target.h.
1925 * config/x86/copymask.c: New file.
1926 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1927 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1928 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1929 * config/x86/target_tls.h: Move contents to target_i.h.
1931 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1932 * testsuite/libitm.c/memcpy-1.c: New.
1934 2009-10-22 Richard Henderson <rth@redhat.com>
1936 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1937 (AM_CCASFLAGS): New.
1938 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1939 saving/restoring _AC_ARG_VAR_PRECIOUS.
1940 * Makefile.in, aclocal.m4, config.h.in, configure,
1941 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1943 2009-10-22 Richard Henderson <rth@redhat.com>
1945 * testsuite/*: Update for new compiler syntax.
1947 2009-10-21 Richard Henderson <rth@redhat.com>
1949 * libitm.h (_ITM_abortReason): Add outerAbort.
1951 2009-08-03 Richard Henderson <rth@redhat.com>
1953 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1954 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1955 * method-wbetl.c (struct w_entry): Remove mask.
1956 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1959 2009-07-22 Richard Henderson <rth@redhat.com>
1961 * eh_cpp.c: New file.
1962 * Makefile.am (libitm_la_SOURCES): Add it.
1963 * Makefile.in: Rebuild.
1964 * beginend.c (GTM_rollback_transaction): Undo exception state.
1965 (GTM_trycommit_transaction): Mark inline.
1966 (GTM_trycommit_and_finalize_transaction): Split out from ...
1967 (_ITM_commitTransaction): ... here.
1968 (_ITM_commitTransactionEH): New function.
1969 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1970 cxa_unthrown, eh_in_flight; reorder.
1972 * testsuite/libitm.c++/c++.exp: New.
1973 * testsuite/libitm.c++/eh-1.C: New.
1975 * aatree.c (aa_free): Remove REGPARM.
1976 * aatree.h: Remove all REGPARM.
1978 2009-07-18 Richard Henderson <rth@redhat.com>
1980 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1981 * Makefile.am (libitm_la_SOURCES): Add them.
1982 * Makefile.in: Rebuild.
1983 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1984 (GTM_trycommit_transaction): Likewise.
1985 * libitm.h: Include aatree.h
1986 (struct gtm_alloc_action): New.
1987 (struct gtm_transaction): Add alloc_actions.
1988 (GTM_record_allocation, GTM_forget_allocation): Declare.
1989 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1990 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1991 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1992 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1993 _ZGTtdaPvRKSt9nothrow_t): Export.
1995 2009-07-18 Richard Henderson <rth@redhat.com>
1997 * target_tls.h: Move ...
1998 * config/posix/target_tls.h: ... here.
2000 2009-07-07 Richard Henderson <rth@redhat.com>
2002 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2004 2009-07-07 Richard Henderson <rth@redhat.com>
2008 2009-07-07 Richard Henderson <rth@redhat.com>
2010 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2011 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2013 * configure.tgt: Don't use -ftls-model for x86 linux.
2014 * libitm.h: Include target.h after standard includes.
2015 (_gtm_thr): Rename from gtm_thr.
2016 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2017 (gtm_disp, set_gtm_disp): New.
2018 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2019 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2020 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2022 2009-07-07 Richard Henderson <rth@redhat.com>
2024 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2026 2009-07-06 Richard Henderson <rth@redhat.com>
2028 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2029 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2030 (_ITM_beginTransaction): Take variadic arguments.
2031 (_ITM_registerThrownObject): Declare.
2032 * beginend.c, serial.c: Update.
2033 * libitm.map: Add _ITM_registerThrownObject.
2035 2009-01-28 Richard Henderson <rth@redhat.com>
2037 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2038 * Makefile.in: Rebuild.
2039 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2040 (GTM_restart_transaction): Fix uninstrumented code check.
2041 * retry.c (GTM_decide_retry_strategy): Add serial check.
2042 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2043 automatically go irrevokable when in serial mode.
2044 * clone.c: New file.
2045 * libitm.h, libitm.map: Update.
2047 2009-01-27 Richard Henderson <rth@redhat.com>
2049 * Makefile.am (LTCCASCOMPILE): Define.
2050 (libitm_la_SOURCES): Add methid-wbetl.c.
2051 * testsuite/Makefile.am: New
2052 * configure.ac: Add testsuite/Makefile.
2053 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2054 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2055 (_ITM_abortTransaction): Finalize implementation method; pass
2056 transaction properties to longjmp.
2057 (GTM_restart_transaction): Split out from ...
2058 (_ITM_commitTransaction): ... here.
2059 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2060 Move to config/x86/target.h.
2061 * config/linux/alpha/futex_bits.h: New.
2062 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2063 * config/x86/target.h: Disable target types for 32-bit.
2064 * config/alpha/sjlj.S, config/alpha/target.h: New.
2065 * libitm.h (struct gtm_dispatch): Add init, fini.
2066 (enum restart_reason): New.
2067 (struct gtm_transaction): Add method and restarts.
2068 * retry.c (GTM_decide_retry_strategy): Implement.
2069 * serial.c (serial_init, serial_fini): New.
2070 (GTM_serialmode): Finialize outgoing method.
2071 * method-wbetl.c: New.
2073 2008-12-09 Richard Henderson <rth@redhat.com>
2075 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2076 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2077 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2078 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2079 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2080 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2081 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2082 * serial.c (serial_R##T, serial_W##T): Likewise.
2084 2008-11-21 Richard Henderson <rth@redhat.com>
2088 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2090 Copying and distribution of this file, with or without modification,
2091 are permitted in any medium without royalty provided the copyright
2092 notice and this notice are preserved.