1 2020-05-12 Nathan Sidwell <nathan@acm.org>
3 Fix throw specifiers on interface.
4 * libitm/libitm.h (_ITM_NOTHROW): Define.
5 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
6 (_ITM_cxa_begin_catch): Use it.
7 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
8 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
10 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
11 (_ITM_cxa_begin_catch): Likewise.
13 2020-05-05 Nathan Sidwell <nathan@acm.org>
15 * testsuite/lib/libitm.exp (libitm_init): Add
16 -fdiagnostics-color=never to options.
18 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
23 * configure: Regenerated.
25 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
27 * configure.ac: Handle `--with-toolexeclibdir='.
28 * Makefile.in: Regenerate.
29 * aclocal.m4: Regenerate.
30 * configure: Regenerate.
31 * testsuite/Makefile.in: Regenerate.
33 2020-01-01 Jakub Jelinek <jakub@redhat.com>
35 Update copyright years.
37 * libitm.texi: Bump @copying's copyright year.
39 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
42 * configure.tgt: Avoid IE tls on *-*-musl*.
44 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
46 * configure: Regenerate.
48 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
50 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
52 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
54 * configure.tgt: Handle *-*-uclinux*.
55 * configure: Regenerate.
57 2019-09-06 Florian Weimer <fweimer@redhat.com>
59 * configure: Regenerate.
61 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
64 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
65 scanning to conform to the GNU Coding Standards.
66 * configure: Regenerate.
68 2019-05-03 Jakub Jelinek <jakub@redhat.com>
70 * Makefile.am (finclude): Remove.
71 * Makefile.in: Regenerated.
73 2019-01-01 Jakub Jelinek <jakub@redhat.com>
75 Update copyright years.
77 2019-01-01 Jakub Jelinek <jakub@redhat.com>
79 * libitm.texi: Bump @copying's copyright year.
81 2018-12-16 Jakub Jelinek <jakub@redhat.com>
84 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
85 void * to void (*) (void *).
86 (_ITM_cxa_throw): Likewise.
87 * libitm.h (_ITM_cxa_throw): Likewise.
88 * libitm.texi (_ITM_cxa_throw): Likewise.
90 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
92 * config/powerpc/target.h (htm_available): Add support for
93 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
95 2018-10-31 Joseph Myers <joseph@codesourcery.com>
98 * Makefile.am: Include multilib.am.
99 (AUTOMAKE_OPTIONS): Add info-in-builddir.
100 (CLEANFILES): Remove libitm.info.
101 * configure.ac: Remove AC_PREREQ.
102 * testsuite/Makefile.am (RUNTEST): Remove quotes.
103 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
106 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
109 * method-serial.cc: Mark varible as potentially unused
112 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
114 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
115 absolute relocation in a shared library.
117 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
120 * config/linux/x86/tls.h (SEG_READ): Use the offset of
121 __private_tm as base.
122 (SEG_WRITE): Likewise.
123 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
124 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
125 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
126 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
127 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
129 2018-05-17 Jason Merrill <jason@redhat.com>
131 * beginend.cc (save): Disable -Werror=deprecated-copy.
133 2018-05-02 Tom de Vries <tom@codesourcery.com>
136 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
138 2018-05-02 Tom de Vries <tom@codesourcery.com>
141 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
143 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
145 * config/x86/sjlj.S (_ITM_beginTransaction): Add
146 (__CET__ & 2) != 0 check for shadow stack.
147 (GTM_longjmp): Likewise.
149 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
151 * configure: Regenerated.
153 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
156 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
158 2018-04-19 Jakub Jelinek <jakub@redhat.com>
160 * configure: Regenerated.
162 2018-04-18 David Malcolm <dmalcolm@redhat.com>
165 * configure: Regenerate.
167 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
170 * configure: Regenerate.
172 2018-01-03 Jakub Jelinek <jakub@redhat.com>
174 Update copyright years.
176 * libitm.texi: Bump @copying's copyright year.
178 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
180 * Makefile.in: Regenerate.
181 * acinclude.m4: Add enable.m4 and cet.m4.
182 * config/x86/sjlj.S: Include cet.h.
183 (_ITM_beginTransaction): Add _CET_ENDBR.
184 Save Shadow Stack pointer.
185 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
186 * config/x86/target.h (struct gtm_jmpbuf):
187 Add new field for Shadow Stack pointer.
188 * configure: Regenerate.
189 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
190 * configure.ac: Update libtool_VERSION for x86.
191 * testsuite/Makefile.in: Regenerate.
193 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
195 * libitm/config/x86/target.h: Add new field (ssp).
196 * libitm/config/x86/sjlj.S: Change offsets.
198 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
200 * testsuite/lib/libitm.exp: Load scanlang.exp.
202 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
204 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
206 2017-01-21 Jakub Jelinek <jakub@redhat.com>
209 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
210 of cat to get version from BASE-VER file.
211 * testsuite/Makefile.in: Regenerated.
213 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
215 * config/x86/target.h (htm_available): Determine vendor from
216 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
218 2017-01-18 Torvald Riegel <triegel@redhat.com>
220 * config/x86/target.h (htm_available): Add check for some processors
221 on which TSX is broken.
223 2017-01-17 Jakub Jelinek <jakub@redhat.com>
226 * configure.ac: Add GCC_BASE_VER.
227 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
228 get version from BASE-VER file.
229 * testsuite/Makefile.in: Regenerated.
230 * configure: Regenerated.
231 * Makefile.in: Regenerated.
233 2017-01-04 Alan Modra <amodra@gmail.com>
235 * Makefile.in: Regenerate.
236 * testsuite/Makefile.in: Regenerate.
238 2017-01-01 Jakub Jelinek <jakub@redhat.com>
240 Update copyright years.
242 * libitm.texi: Bump @copying's copyright year.
244 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
246 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
247 * aclocal.m4: Regenerate.
248 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
249 LIBITM_CHECK_LINKER_HWCAP.
251 2016-11-15 Matthias Klose <doko@ubuntu.com>
253 * configure: Regenerate.
255 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
258 * util.cc (xmalloc): Use posix_memalign to allocate memory on
259 on cache line if requested.
261 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
263 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
264 function attribute to disable floating point in begin_transaction() on
266 * beginend.cc (begin_transaction): Use
267 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
269 2016-01-22 Torvald Riegel <triegel@redhat.com>
271 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
273 (htm_fastpath): Remove.
274 (gtm_thread::begin_transaction): Fix HTM fastpath.
275 (_ITM_commitTransaction): Adapt.
276 (_ITM_commitTransactionEH): Adapt.
277 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
279 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
280 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
281 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
282 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
283 * libitm/method-serial.cc (htm_mg): Adapt.
284 (gtm_thread::serialirr_mode): Adapt.
285 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
287 2016-01-21 Torvald Riegel <triegel@redhat.com>
289 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
292 2016-01-19 Richard Henderson <rth@redhat.com>
297 2016-01-13 Richard Henderson <rth@redhat.com>
299 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
300 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
301 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
302 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
303 * configure.ac (ARCH_AARCH64): New conditional.
304 (ARCH_PPC, ARCH_S390): Likewise.
305 * Makefile.in, configure: Rebuild.
307 * libitm.h (_ITM_TYPE_M128): Always define.
308 * vect64.cc: Split ...
309 * vect128.cc: ... out of...
310 * config/x86/x86_sse.cc: ... here.
311 * config/arm/neon.cc: New file.
313 2016-01-19 Torvald Riegel <triegel@redhat.com>
315 * local_type_traits: Remove file.
316 * libitm_i.h: Don't include it anymore.
317 (sized_integral): Remove.
319 2016-01-16 Torvald Riegel <triegel@redhat.com>
321 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
323 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
324 * libitm/testsuite/libitm.c/priv-1.c: New.
326 2015-01-15 Torvald Riegel <triegel@redhat.com>
328 testsuite/libitm.c++/libstdc++-safeexc.C: New.
330 2016-01-13 Torvald Riegel <triegel@redhat.com>
332 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
333 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
334 (gtm_rwlock::write_unlock): Likewise.
336 2016-01-13 Richard Henderson <rth@redhat.com>
338 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
339 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
340 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
341 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
342 * configure.ac (ARCH_AARCH64): New conditional.
343 (ARCH_PPC, ARCH_S390): Likewise.
344 * Makefile.in, configure: Rebuild.
346 * libitm.h (_ITM_TYPE_M128): Always define.
347 * vect64.cc: Split ...
348 * vect128.cc: ... out of...
349 * config/x86/x86_sse.cc: ... here.
350 * config/arm/neon.cc: New file.
352 2016-01-13 Torvald Riegel <triegel@redhat.com>
354 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
355 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
356 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
357 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
358 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
359 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
360 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
361 (serialirr_dispatch::snapshot_most_recent): New.
362 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
364 2016-01-12 Torvald Riegel <triegel@redhat.com>
366 * libitm_i.h (gtm_mask_stack): Remove.
367 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
368 * stmlock.h: Remove file.
369 * config/alpha/cacheline.h: Likewise.
370 * config/generic/cacheline.h: Likewise.
371 * config/powerpc/cacheline.h: Likewise.
372 * config/sparc/cacheline.h: Likewise.
373 * config/x86/cacheline.h: Likewise.
375 2016-01-04 Jakub Jelinek <jakub@redhat.com>
377 Update copyright years.
379 * libitm.texi: Bump @copying's copyright year.
381 2015-11-26 Torvald Riegel <triegel@redhat.com>
383 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
384 (ml_wt_dispatch::pre_write): Adapt.
385 (ml_wt_dispatch::pre_load): Likewise.
387 2015-11-22 Torvald Riegel <triegel@redhat.com>
389 * libitm_i.h (gtm_alloc_action): Remove union.
390 * testsuite/libitm.c/alloc-1.c: New.
392 2015-11-19 Torvald Riegel <triegel@redhat.com>
394 * testsuite/libitm.c++/eh-5.C: New.
395 * libitm.h (_ITM_cxa_free_exception): New.
396 * libitm.map (_ITM_cxa_free_exception): Add it.
397 * libitm.texi: Update ABI docs.
398 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
399 (gtm_transaction_cp::cxa_uncaught_count): Add.
400 (gtm_thread::cxa_unthrown): Remove.
401 (gtm_thread::cxa_uncaught_count_ptr): Add.
402 (gtm_thread::cxa_uncaught_count): Add.
403 (gtm_thread::drop_references_allocations): Rename to...
404 (gtm_thread::discard_allocation): ... this and adapt.
405 (gtm_thread::init_cpp_exceptions): New.
406 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
407 (gtm_thread::begin_transaction): Likewise.
408 (gtm_transaction_cp::save): Likewise.
409 (gtm_thread::trycommit): Likewise.
410 * eh_cpp.cc: Add overview comments.
411 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
412 (free_any_exception, _ITM_cxa_free_exception): New.
413 (gtm_thread::init_cpp_exceptions): Define.
414 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
415 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
416 (gtm_thread::revert_cpp_exceptions): Likewise.
418 2015-11-09 Torvald Riegel <triegel@redhat.com>
420 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
421 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
422 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
423 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
424 (gtm_thread::forget_allocations): New overload with size_t argument.
425 * alloc.c (gtm_thread::forget_allocation): Define new overload and
427 (gtm_thread::record_allocation): Adapt.
428 (gtm_thread::commit_allocations_1): Adapt.
429 (gtm_thread::commit_allocations_2): Adapt.
430 * testsuite/libitm.c++/newdelete.C: New.
432 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
433 Joseph Myers <joseph@codesourcery.com>
434 Mark Shinwell <shinwell@codesourcery.com>
435 Andrew Stubbs <ams@codesourcery.com>
436 Rich Felker <dalias@libc.org>
438 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
439 GTM_begin_transaction for compatibility with FDPIC.
441 2015-10-09 David Malcolm <dmalcolm@redhat.com>
443 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
446 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
449 * local_atomic (__always_inline): Rename to...
450 (__libitm_always_inline): ... this.
452 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
455 * config/powerpc/sjlj.S: Port to Xcode 2.5.
457 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
459 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
460 operands "op" and "val" to int.
462 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
464 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
465 "op" and "val" to int.
467 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
469 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
470 "op" and "val" to int.
472 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
474 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
475 Declare as static int.
476 (FUTEX_PRIVATE_FLAG): Remove L suffix.
477 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
479 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
481 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
484 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
486 * Makefile.in: Regenerated with automake-1.11.6.
487 * aclocal.m4: Likewise.
488 * configure: Likewise.
489 * testsuite/Makefile.in: Likewise.
491 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
493 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
494 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
496 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
499 * libitm.c/stackundo.c (test2): Make it static.
502 2015-01-05 Jakub Jelinek <jakub@redhat.com>
504 Update copyright years.
506 2015-01-05 Jakub Jelinek <jakub@redhat.com>
508 * libitm.texi: Bump @copying's copyright year.
510 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
512 * testsuite/lib/libitm.exp: Load target-utils.exp.
513 Move load of target-supports.exp earlier.
515 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
517 * configure.tgt (x86_64): Tune -m32 multilib to generic.
519 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
522 * configure: Regenerated.
524 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
527 * configure: Regenerate.
529 2014-10-06 Marek Polacek <polacek@redhat.com>
531 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
532 * testsuite/libitm.c/memset-1.c: Likewise.
534 2014-07-24 Richard Henderson <rth@redhat.com>
536 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
537 addressing mode in epilogue.
539 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
541 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
542 -mclear-hwcap instead.
543 * configure: Regenerate.
544 * clearcap.map: Remove.
546 2014-05-21 John Marino <gnugcc@marino.st>
548 * configure.tgt (*-*-dragonfly*): New target.
550 2014-05-19 Richard Henderson <rth@redhat.com>
552 * config/aarch64/sjlj.S: New file.
553 * config/aarch64/target.h: New file.
554 * configure.tgt: Enable aarch64.
556 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558 * config/generic/asmcfi.h: Also check for
559 __GCC_HAVE_DWARF2_CFI_ASM.
561 2013-04-02 Richard Henderson <rth@redhat.com>
563 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
564 * config/arm/target.h, config/sh/target.h: Likewise.
565 * config/sparc/target.h, config/x86/target.h: Likewise.
567 2014-03-26 Jakub Jelinek <jakub@redhat.com>
569 * config/linux/futex_bits.h: Include errno.h.
570 (sys_futex0): If syscall returns -1, return -errno rather than
573 2014-03-26 Joseph Myers <joseph@codesourcery.com>
575 * libitm.texi (Index): Rename to Library Index.
577 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
580 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
581 (x86_avx.lo): Append -mavx to CXXFLAGS.
582 * Makefile.in: Regenerate.
584 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
586 Update copyright years
588 2014-01-02 Tobias Burnus <burnus@net-b.de>
590 * libitm.texi: Bump @copying's copyright year.
592 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
594 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
595 (FUNC): Define ELFv2 variant.
602 2013-09-20 Alan Modra <amodra@gmail.com>
604 * configure: Regenerate.
606 2013-08-30 Torvald Riegel <triegel@redhat.com>
608 * config/posix/rwlock.cc: Fix initialization order.
610 2013-08-30 Torvald Riegel <triegel@redhat.com>
612 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
613 (htm_fastpath): Assign an asm name.
614 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
616 (_ITM_actions): Likewise.
617 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
619 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
620 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
621 field to the start of the structure.
622 * config/linux/rwlock.h (gtm_rwlock): Update comments.
623 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
624 handling for custom HTM fast paths.
626 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
628 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
630 * configure.tgt: Add -msoft-float to XCFLAGS.
632 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
634 * configure.tgt: Add -msoft-float to XCFLAGS.
636 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
638 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
639 (htm_transaction_active): Enable zEC12 instructions in the
641 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
643 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
645 * acinclude.m4: Add htm asm check for s390.
646 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
647 * configure: Regenerate.
648 * config/s390/target.h: Remove __HTM__ check.
649 (htm_available): Call getauxval to get hwcaps and check whether
650 HTM is available or not.
652 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
654 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
655 * configure.ac: Use it.
656 (AC_CHECK_HEADERS): Check for sys/auxv.h.
657 (AC_CHECK_FUNCS): Check for getauxval.
658 * config.h.in, configure: Rebuild.
659 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
660 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
661 (USE_HTM_FASTPATH): Define.
662 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
663 _HTM_RETRIES) New macros.
664 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
665 htm_begin_success, htm_commit, htm_transaction_active): New functions.
667 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
669 * config/s390/target.h: Include htmintrin.h.
670 (_HTM_ITM_RETRIES): New macro definition.
671 (htm_available, htm_init, htm_begin, htm_begin_success)
672 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
674 2013-06-20 Iain Sandoe <iain@codesourcery.com>
675 Cesar Philippidis <cesar@codesourcery.com>
677 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
678 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
679 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
680 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
682 2013-06-20 Torvald Riegel <triegel@redhat.com>
684 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
685 (_ITM_getTransactionId): Same.
686 * config/x86/target.h (htm_transaction_active): New.
688 2013-06-20 Torvald Riegel <triegel@redhat.com>
691 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
694 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
697 * local_atomic (__always_inline): Always define our version.
698 (__calculate_memory_order): Mark inline.
699 (atomic_thread_fence): Ditto.
700 (atomic_signal_fence): Ditto.
701 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
702 (atomic_bool::atomic_flag_clear_explicit): Ditto.
703 (atomic_bool::atomic_flag_test_and_set): Ditto.
704 (atomic_bool::atomic_flag_clear): Ditto.
706 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
708 * config/s390/sjlj.S: New file.
709 * config/s390/target.h: New file.
710 * configure.tgt: Set options for S/390.
712 2013-03-23 Andi Kleen <ak@linux.intel.com>
714 * local_atomic (__always_inline): Add.
715 (__calculate_memory_order, atomic_thread_fence,
716 atomic_signal_fence, test_and_set, clear, store, load,
717 exchange, compare_exchange_weak, compare_exchange_strong,
718 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
719 Add __always_inline to force inlining.
721 2013-02-11 Iain Sandoe <iain@codesourcery.com>
722 Jack Howarth <howarth@bromo.med.uc.edu>
723 Patrick Marlier <patrick.marlier@gmail.com>
726 * alloc_cpp.cc: Enable function declarations on darwin.
727 * eh_cpp.cc: Likewise.
729 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
731 Update copyright years.
733 2012-11-09 Torvald Riegel <triegel@redhat.com>
735 * beginend.cc (htm_fastpath): New.
736 (gtm_thread::begin_transaction, _ITM_commitTransaction,
737 _ITM_commitTransactionEH): Add HTM fastpath handling.
738 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
739 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
740 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
741 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
742 * configure.tgt: Add -mrtm to XCFLAGS.
743 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
744 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
745 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
746 * retry.cc (parse_default_method): Add HTM method parsing.
747 (gtm_thread::number_of_threads_changed): Use HTM by default if
750 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
752 * configure: Regenerate.
754 2012-10-31 Richard Henderson <rth@redhat.com>
756 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
757 * configure.ac: Use it.
758 * config.h.in, configure: Rebuild.
759 * testsuite/Makefile.in: Rebuild.
761 2012-10-24 Torvald Riegel <triegel@redhat.com>
763 * libitm.texi: Clarify ABI requirements for data-logging functions.
765 2012-10-24 Torvald Riegel <triegel@redhat.com>
767 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
768 it requires serial mode instead of assuming that for certain
770 * dispatch.h (abi_dispatch::requires_serial): New.
771 (abi_dispatch::abi_dispatch): Adapt.
772 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
773 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
774 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
775 serial_dispatch::serial_dispatch,
776 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
778 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
780 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
781 and ia32 declarations some more.
782 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
784 2012-09-20 Jakub Jelinek <jakub@redhat.com>
787 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
788 * configure: Regenerate.
789 * Makefile.in: Regenerate.
791 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
793 * configure: Regenerated.
795 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
797 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
799 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
801 * eh_cpp.cc: Fix __cxa_end_catch declaration.
803 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
805 * configure: Regenerated.
807 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
810 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
813 2012-04-03 Tristan Gingold <gingold@adacore.com>
815 * configure: Regenerate.
817 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
820 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
822 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
824 * testsuite/lib/libitm.exp: load fortran-modules.exp
826 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
828 * configure.tgt (*-*-irix6*): Remove.
830 2012-03-13 Torvald Riegel <triegel@redhat.com>
833 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
836 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
838 * configure.tgt (*-*-osf*): Remove.
839 * configure: Regenerate.
841 2012-03-05 Torvald Riegel <triegel@redhat.com>
843 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
844 memtransfer/memset if size isn't larger than zero.
846 2012-03-02 Torvald Riegel <triegel@redhat.com>
848 * libitm.texi: Link to specification and add a usage example.
850 2012-02-24 Torvald Riegel <triegel@redhat.com>
852 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
853 default dispatch for more than 1 thread to ml_wt.
855 2012-02-20 Torvald Riegel <triegel@redhat.com>
857 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
859 2012-02-20 Torvald Riegel <triegel@redhat.com>
861 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
863 2012-02-20 Torvald Riegel <triegel@redhat.com>
865 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
866 serial mode corner cases made obsolete by prior gtm_rwlock changes.
867 (gl_wt_dispatch.rollback): Same.
869 2012-02-20 Torvald Riegel <triegel@redhat.com>
871 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
873 2012-02-20 Torvald Riegel <triegel@redhat.com>
875 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
876 for RfW src. Optimize number of calls to gtm_thr.
878 2012-02-20 Torvald Riegel <triegel@redhat.com>
880 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
882 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
883 (default_dispatch): Make atomic.
884 (GTM::gtm_thread::set_default_dispatch): Access atomically.
885 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
886 use decide_begin_dispatch() if default_dispatch might have changed.
887 (GTM::gtm_thread::number_of_threads_changed): Initialize
888 default_dispatch here.
890 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
891 Patrick Marlier <patrick.marlier@gmail.com>
894 * alloc_cpp.cc: No dummy definitions for darwin.
895 * eh_cpp.cc: Likewise.
897 2012-02-14 Richard Henderson <rth@redhat.com>
899 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
901 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
903 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
905 2012-02-14 Torvald Riegel <triegel@redhat.com>
907 * libitm_i.h (GTM::gtm_rwlog_entry): New.
908 (GTM::gtm_thread): Add read and write logs.
909 (GTM::dispatch_ml_wt): Declare.
910 * retry.cc (parse_default_method): Support ml_wt.
911 * method-ml.cc: New file.
912 * Makefile.am: Add method-ml.cc.
913 * Makefile.in: Regenerate.
915 2012-02-14 Torvald Riegel <triegel@redhat.com>
917 * dispatch.h (GTM::abi_dispatch::supports): New.
918 (GTM::method_group::reinit): New.
919 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
920 (GTM::gtm_thread::number_of_threads_changed): Check that the method
921 supports the current situation.
923 2012-02-14 Torvald Riegel <triegel@redhat.com>
925 * util.cc (GTM::xcalloc): New.
926 * common.h (GTM::xcalloc): Declare.
928 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
930 * config/sparc/target.h (cpu_relax): Read from CC register.
931 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
933 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
935 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
937 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
939 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
940 * config/sparc/cacheline.h: New file.
941 * config/sparc/target.h: Likewise.
942 * config/sparc/sjlj.S: Likewise.
943 * config/linux/sparc/futex_bits.h: Likewise.
945 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
947 * configure.ac (link_itm): Fix comment.
948 * configure: Regenerate.
949 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
951 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
954 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
955 Correct libgomp references.
957 2012-01-24 Torvald Riegel <triegel@redhat.com>
959 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
962 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
964 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
966 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
967 offset values. Do not copy return address. Decrement stack
969 (GTM_longjump) [__x86_64__]: Update offset values.
971 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
974 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
975 the first function argument to %eax.
977 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
979 * libitm.h (_ITM_getThreadnum): Remove.
980 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
982 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
984 * clearcap.map: New file.
985 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
986 * configure.ac: Call it.
987 Clear HWCAP_LDFLAGS if defaulting to -mavx.
988 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
989 * configure: Regenerate.
990 * Makefile.in: Regenerate.
991 * testsuite/Makefile.in: Regenerate.
993 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
996 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
997 include, exclude options.
999 2012-01-14 Torvald Riegel <triegel@redhat.com>
1001 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1003 * containers.h (GTM::vector::set_size): New.
1005 2012-01-14 Torvald Riegel <triegel@redhat.com>
1008 * config/generic/tls.h (GTM::mask_stack_top): New.
1009 (GTM::mask_stack_bottom): Declare.
1010 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1011 * local.cc (gtm_undolog::rollback): Filter out any updates that
1012 overlap the libitm stack. Add current transaction as parameter.
1013 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1014 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1015 * testsuite/libitm.c/stackundo.c: New test.
1017 2012-01-10 Richard Henderson <rth@redhat.com>
1019 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1020 * eh_cpp.cc (_Unwind_DeleteException): Define for
1021 !HAVE_ELF_STYLE_WEAKREF.
1023 2012-01-08 Torvald Riegel <triegel@redhat.com>
1025 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1026 (GTM::gtm_thread::drop_references_undolog): Remove.
1027 (GTM::gtm_thread::commit_undolog,
1028 GTM::gtm_thread::rollback_undolog): Move to ...
1029 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1030 (GTM::gtm_undolog_entry): Remove.
1031 (GTM::gtm_thread): Adapt.
1032 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1033 (GTM::gtm_thread::trycommit): Adapt.
1034 * method-serial.cc (serial_dispatch::log): Adapt.
1035 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1036 (gl_wt_dispatch::store): Fix likely/unlikely.
1037 * containers.h (GTM::vector::resize): Add additional_capacity
1038 parameter and handle it.
1039 (GTM::vector::resize_noinline): New/adapt.
1040 (GTM::vector::push): New.
1042 2012-01-06 Richard Henderson <rth@redhat.com>
1044 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1045 * config/linux/powerpc/futex_bits.h: New file.
1046 * config/powerpc/cacheline.h: New file.
1047 * config/powerpc/sjlj.S: New file.
1048 * config/powerpc/target.h: New file.
1049 * config/generic/asmcfi.h (cfi_offset): New.
1050 (cfi_restore, cfi_undefined): New.
1052 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1055 * testsuite/libitm.c/reentrant.c: Remove xfail.
1056 (thread): Pass x to pure().
1057 From Patrik Marlier <patrick.marlier@gmail.com>.
1059 2011-12-24 Torvald Riegel <triegel@redhat.com>
1061 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1062 privatization safety if already in serial mode.
1064 2011-12-24 Torvald Riegel <triegel@redhat.com>
1066 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1067 finish_serial_upgrade parameter.
1068 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1069 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1070 Don't unset reader flag.
1071 (GTM::gtm_rwlock::write_upgrade_finish): New.
1072 * config/posix/rwlock.cc: Same.
1073 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1075 * config/posix/rwlock.h: Same.
1076 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1077 flag after commit or after rollback when restarting.
1079 2011-12-24 Torvald Riegel <triegel@redhat.com>
1081 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1082 (GTM::gtm_thread::try_commit): Changed memory order.
1083 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1085 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1086 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1087 * config/linux/futex_bits.h (sys_futex0): Same.
1088 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1089 * config/linux/futex.h (futex_wait, futex_wake): Same.
1090 * config/linux/rwlock.h (gtm_rwlock::writers,
1091 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1093 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1094 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1095 gtm_rwlock::write_unlock): Fix memory orders and fences.
1096 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1097 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1098 gtm_rwlock::write_unlock): Same.
1099 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1100 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1101 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1103 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1104 gl_wt_dispatch::load, gl_wt_dispatch::store,
1105 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1106 orders and fences. Add comments.
1108 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1110 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1111 * Makefile.in: Regenerated.
1113 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1115 * configure.tgt: Add sh* case.
1116 * config/sh/target.h: New file.
1117 * config/sh/sjlj.S: New file.
1118 * config/linux/sh/futex_bits.h: New file.
1120 2011-12-14 Richard Henderson <rth@redhat.com>
1122 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1123 * config/arm/sjlj.S, config/arm/target.h: New files.
1124 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1125 (cfi_rel_offset): New.
1126 * config/linux/futex_bits.h: New file.
1127 * config/linux/futex.cc: Include futex_bits.h here...
1128 * config/linux/futex.h: ... not here.
1129 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1130 * configure.ac (ARCH_AM): New conditional.
1131 * Makefile.in, configure: Rebuild.
1132 * configure.tgt: Handle ARM.
1134 2011-12-13 Richard Henderson <rth@redhat.com>
1136 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1137 signed/unsigned comparison werror.
1139 * local_atomic: New file.
1140 * libitm_i.h: Include it.
1141 (gtm_thread::shared_state): Use atomic template.
1142 * beginend.cc (GTM::gtm_clock): Use atomic template.
1143 (global_tid): Use atomic template if 64-bit atomics available.
1144 (gtm_thread::gtm_thread): Update shared_state access.
1145 (gtm_thread::trycommit): Likewise.
1146 (choose_code_path): Update global_tid access.
1147 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1148 * stmlock.h (GTM::gtm_clock): Use atomic template.
1149 (gtm_get_clock, gtm_inc_clock): Update accesses.
1150 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1151 redundant __sync_synchronize after atomic shared_state access.
1152 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1153 (gtm_rwlock::write_lock_generic): Likewise.
1154 (gtm_rwlock::read_unlock): Likewise.
1155 * config/alpha/target.h (atomic_read_barrier): Remove.
1156 (atomic_write_barrier): Remove.
1157 * config/x86/target.h (atomic_read_barrier): Remove.
1158 (atomic_write_barrier): Remove.
1160 2011-11-30 Richard Henderson <rth@redhat.com>
1162 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1163 * beginend.c (_ITM_abortTransaction): Update to match.
1164 (GTM::gtm_thread::restart): Likewise.
1165 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1166 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1168 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1170 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1171 * Makefile.in: Regenerate.
1173 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1175 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1176 * alloc_cpp.cc: Generate dummy functions if we don't
1177 HAVE_ELF_STYLE_WEAKREF.
1178 * eh_cpp.cc: Likewise.
1179 * configure: Regenerate.
1180 * aclocal.m4: Likewise.
1181 * config.h.in: Likewise.
1182 * Makefile.in: Likewise.
1183 * testsuite/Makefile.in: Likewise.
1185 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1187 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1188 __USER_LABEL_PREFIX__ for targets that use it.
1189 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1190 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1191 in portability to non-elf targets.
1192 (GTM_longjmp): Likewise.
1193 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1196 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1198 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1199 * testsuite/libitm.c/memset-1.c: Likewise.
1201 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1203 * configure: Regenerate.
1205 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1207 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1208 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1209 * Makefile.am: Handle sun style versioning.
1210 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1211 * configure: Regenerate.
1212 * Makefile.in: Regenerate.
1214 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1216 * config/generic/asmcfi.h: Fix comment.
1217 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1218 sequence without .hidden support, error for non-ELF targets.
1219 (GTM_longjmp) [__ELF__]: Only use .hidden if
1220 HAVE_ATTRIBUTE_VISIBILITY.
1222 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1224 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1225 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1227 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1228 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1230 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1233 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1234 * configure: Regenerate.
1236 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1238 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1240 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1244 (.note.GNU-stack): Only use if __linux__.
1245 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1246 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1247 * testsuite/libitm.c/reentrant.c: Likewise.
1248 * testsuite/libitm.c/simple-2.c: Likewise.
1249 * testsuite/libitm.c/txrelease.c: Likewise.
1250 * testsuite/libitm.c++/static_ctor.C: Likewise.
1252 2011-11-10 Richard Henderson <rth@redhat.com>
1254 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1255 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1256 * configure.ac (ARCH_X86_AVX): New conditional.
1257 * Makefile.in, configure: Rebuild.
1259 2011-11-09 Richard Henderson <rth@redhat.com>
1261 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1262 * configure.ac: Use it.
1263 * config.h.in, configure: Rebuild.
1264 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1266 2011-11-09 Richard Henderson <rth@redhat.com>
1268 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1269 * config/alpha/unaligned.h: Remove file.
1270 * config/generic/unaligned.h: Remove file.
1271 * config/x86/unaligned.h: Remove file.
1272 * config/generic/cachepage.h: Remove file.
1273 * config/posix/cachepage.cc: Remove file.
1274 * config/generic/cacheline.cc: Remove file.
1275 * config/x86/cacheline.cc: Remove file.
1276 * config/generic/cacheline.h (gtm_cacheline): Remove the
1277 store_mask, copy_mask, copy_mask_wb methods.
1278 * config/x86/cacheline.h: Likewise.
1279 * config/alpha/cacheline.h: Fall back to generic after setting size.
1280 * config/generic/tls.cc (gtm_mask_stack): Remove.
1281 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1282 (GTM_vpalignr_table): Remove.
1283 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1284 (GTM_pshift_table): Remove.
1285 * config/libitm_i.h: Don't include cachepage.h.
1286 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1287 * Makefile.in, testsuite/Makefile.in: Rebuild.
1289 2011-11-09 Richard Henderson <rth@redhat.com>
1291 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1292 to emit branch prediction hint.
1294 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1295 Protect .note.GNU-stack with __linux__.
1297 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1298 * configure, aclocal.m4, config.h.in: Rebuild.
1299 * config/generic/asmcfi.h: New file.
1300 * config/x86/sjlj.S: Use it.
1302 2011-11-08 Richard Henderson <rth@redhat.com>
1304 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1306 2011-11-08 Richard Henderson <rth@redhat.com>
1308 * configure.tgt: Test correct directory for supported cpus.
1310 * configure.ac: Exit if unsupported.
1311 * configure: Rebuild.
1312 * configure.tgt: Delete boilerplate from libgomp for unsupported
1313 targets. Set UNSUPPORTED for unsupported targets.
1315 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1317 * configure.tgt: Handle i386 like i[456]86.
1318 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1320 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1321 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1323 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1325 * method-wbetl.cc: Update copyright notice.
1331 * barrier.tpl: Same.
1332 * useraction.cc: Same.
1336 * config/generic/tls.cc: Same.
1337 * config/generic/cacheline.h: Same.
1338 * config/generic/cachepage.h: Same.
1339 * config/generic/cacheline.cc: Same.
1340 * config/generic/unaligned.h: Same.
1341 * config/x86/cacheline.h: Same.
1342 * config/x86/cacheline.cc: Same.
1343 * config/x86/unaligned.h: Same.
1344 * config/alpha/cacheline.h: Same.
1345 * config/alpha/unaligned.h: Same.
1346 * config/alpha/sjlj.S: Same.
1347 * config/posix/cachepage.cc: Same.
1348 * config/linux/futex.h: Same.
1349 * config/linux/alpha/futex_bits.h: Same.
1351 2011-11-04 Torvald Riegel <triegel@redhat.com>
1353 * libitm.texi: No cover text and invariant sections.
1355 2011-11-03 Richard Henderson <rth@redhat.com>
1357 * local_type_traits: New file.
1358 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1360 2011-11-03 Richard Henderson <rth@redhat.com>
1362 * configure.ac: Don't test for gfortran.
1363 * configure: Rebuild.
1365 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1366 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1368 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1370 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1371 * testsuite/libitm.c/memset-1.c: Same.
1372 * testsuite/libitm.c/c.exp: Same.
1373 * testsuite/lib/libitm-dg.exp: Same.
1374 * testsuite/lib/libitm.exp: Same.
1375 * testsuite/libitm.c++/c++.exp: Same.
1377 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1379 * testsuite/config/default.exp: Update copyright date.
1380 * configure.ac: Add copyright info.
1381 * configure.tgt: Same.
1383 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1385 * testsuite/libitm.c/reentrant.c: XFAIL.
1386 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1388 2011-10-29 Torvald Riegel <triegel@redhat.com>
1390 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1392 (_ITM_abortTransaction): Handle aborts of outer transactions.
1394 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1395 * libitm.texi: Document aborts of outer transactions.
1396 * testsuite/libitm.c/cancel.c: New file.
1398 2011-10-19 Torvald Riegel <triegel@redhat.com>
1400 * testsuite/*: Change __transaction to __transaction_atomic or
1401 __transaction_relaxed.
1403 2011-10-19 Torvald Riegel <triegel@redhat.com>
1405 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1408 2011-10-19 Torvald Riegel <triegel@redhat.com>
1410 * libitm_i.h: Add gl_wt dispatch.
1411 * retry.cc (parse_default_method): Same.
1412 * method-gl.cc: New file.
1413 * Makefile.am: Use method-gl.cc.
1414 * Makefile.in: Rebuild.
1416 2011-10-19 Torvald Riegel <triegel@redhat.com>
1418 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1419 safety if requested by a TM method.
1420 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1421 privatization safety.
1422 * method-serial.cc: Same.
1424 2011-10-19 Torvald Riegel <triegel@redhat.com>
1426 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1427 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1428 undolog-related member functions from *_local to *_undolog.
1429 * local.cc (gtm_thread::commit_undolog): Same.
1430 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1431 (GTM::gtm_thread::rollback): Roll back undolog before
1432 dispatch-specific rollback.
1434 2011-10-19 Torvald Riegel <triegel@redhat.com>
1436 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1437 re-initialization of the current method group.
1438 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1440 2011-10-19 Torvald Riegel <triegel@redhat.com>
1442 * alloc.cc (commit_allocations_2): Do not free transaction-local
1443 memory when committing a nested transaction.
1445 2011-10-19 Torvald Riegel <triegel@redhat.com>
1447 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1448 serial-irrevocable dispatch, not serial.
1450 2011-10-19 Torvald Riegel <triegel@redhat.com>
1452 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1454 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1455 * method-serial.cc: Implement begin_or_restart().
1456 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1457 dispatch-specific begin_or_restart().
1458 (GTM::gtm_thread::restart): Same.
1460 2011-08-23 Torvald Riegel <triegel@redhat.com>
1462 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1463 restarting without switching to serial mode.
1464 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1465 transaction state. Choose closed-nesting alternative if available.
1466 (GTM::gtm_thread::set_default_dispatch): New.
1467 (parse_default_method): New.
1468 (GTM::gtm_thread::number_of_threads_changed): New.
1469 * method-serial.cc (GTM::serial_mg): New method group class.
1470 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1472 (GTM::serial_dispatch): Same.
1473 (GTM::serialirr_onwrite_dispatch): Same.
1474 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1475 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1477 (GTM::gtm_thread::gtm_thread): Same.
1478 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1479 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1480 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1481 choose dispatch but set state according to dispatch here.
1482 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1483 (GTM::method_group): New class.
1484 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1485 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1486 * libitm.texi: Document TM methods, method groups, method life cycle.
1487 Rename method sets to method groups.
1489 2011-08-23 Torvald Riegel <triegel@redhat.com>
1491 * config/x86/tls.h: Moved to ...
1492 * config/linux/x86/tls.h: ... here.
1494 2011-08-23 Torvald Riegel <triegel@redhat.com>
1496 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1498 * config/x86/sjlj.S: Same.
1500 2011-08-19 Torvald Riegel <triegel@redhat.com>
1502 * config/linux/rwlock.h: New file.
1503 * config/linux/rwlock.c: New file.
1504 * configure.ac: Reenable futex support (undo SVN rev 157758).
1505 * Makefile.am: Same.
1506 * configure.tgt: Same.
1507 * config/linux/alpha/futex_bits.h: Same.
1508 * config/linux/futex.h: Same. Return number of woken processes.
1509 * config/linux/futex.cc: Same.
1510 (futex_wait): Remove spinning.
1511 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1512 Use __x86_64__ instead of __LP64__.
1513 * aclocal.m4: Include generic futex checks.
1514 * configure: Rebuild.
1515 * Makefile.in: Rebuild.
1516 * testsuite/Makefile.in: Rebuild.
1517 * beginend.cc: Include pthread.h.
1518 * config/posix/cachepage.cc: Same.
1520 2011-08-12 Torvald Riegel <triegel@redhat.com>
1522 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1523 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1525 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1527 (GTM::gtm_thread::thread_num): Removed.
1528 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1529 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1530 tx-to-thread renaming.
1531 * beginend.cc: Adapted to tx-to-thread renaming.
1532 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1533 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1534 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1535 gtm_transaction to gtm_thread.
1536 (_ITM_getThreadnum): Removed. Not supported anymore.
1537 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1538 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1539 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1540 gtm_tx-to-gtm_thr renaming if necessary.
1547 * alloc_cpp.cc: Same.
1548 * method-serial.cc: Same.
1549 * config/generic/tls.cc: Same.
1550 * config/posix/rwlock.h (gtm_rwlock): Same.
1551 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1553 2011-08-12 Torvald Riegel <triegel@redhat.com>
1555 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1557 (gtm_rwlock::read_unlock): Same.
1558 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1559 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1560 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1561 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1562 w_upgrade. Replaced by per-transaction flags (in shared_state).
1563 Added c_confirmed_writers.
1564 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1565 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1566 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1567 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1568 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1569 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1570 * libitm.texi: Document locking conventions and implementations in
1573 2011-08-12 Torvald Riegel <triegel@redhat.com>
1575 * libitm_i.h (next_tx): Add list of all threads' transaction.
1576 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1577 transaction with list of transactions and ...
1578 (thread_exit_handler): ... deregister here.
1579 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1580 * config/x86/target.h: Same.
1582 2011-08-12 Torvald Riegel <triegel@redhat.com>
1584 * testsuite/libitm.c++/static_ctor.C: New file.
1586 2011-08-12 Torvald Riegel <triegel@redhat.com>
1588 * testsuite/libitm.c/reentrant.c: New file.
1590 2011-08-12 Torvald Riegel <triegel@redhat.com>
1592 * config/generic/tls.h: Remove the free list for transactions and ...
1593 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1594 (GTM::gtm_transaction::operator delete): ... and release here.
1595 (thread_exit_handler): New. Delete tx when thread terminates.
1596 (thread_exit_init): New.
1597 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1598 * testsuite/libitm.c/txrelease.c: New file.
1600 2011-08-12 Torvald Riegel <triegel@redhat.com>
1602 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1603 * testsuite/libitm.c/notx.c: New file.
1605 2011-08-12 Torvald Riegel <triegel@redhat.com>
1607 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1608 * libitm_i.h (local_tid): ... to here.
1609 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1610 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1612 2011-08-12 Torvald Riegel <triegel@redhat.com>
1614 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1615 serialirr_onwrite_dispatch as new default for now.
1616 * method-serial.cc (serialirr_onwrite_dispatch): New.
1617 (GTM::dispatch_serialirr_onwrite): New.
1620 2011-08-12 Torvald Riegel <triegel@redhat.com>
1622 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1623 * query.cc (_ITM_getTransactionId): There is no active transaction if
1624 the current nesting level is zero.
1626 2011-07-28 Torvald Riegel <triegel@redhat.com>
1628 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1631 2011-07-28 Torvald Riegel <triegel@redhat.com>
1633 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1634 transaction properties from the caller instead of from the
1637 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1639 2011-07-28 Torvald Riegel <triegel@redhat.com>
1641 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1642 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1644 * method-serial.cc: Same.
1645 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1646 flat nesting as default, and closed nesting on demand.
1647 (GTM::gtm_transaction::rollback): Same.
1648 (_ITM_abortTransaction): Same.
1649 (GTM::gtm_transaction::restart): Same.
1650 (GTM::gtm_transaction::trycommit): Same.
1651 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1652 (choose_code_path): New.
1653 (GTM::gtm_transaction_cp::save): New.
1654 (GTM::gtm_transaction_cp::commit): New.
1655 * query.cc (_ITM_inTransaction): Support flat nesting.
1656 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1657 (GTM::gtm_transaction): Support flat and closed nesting.
1658 * alloc.cc (commit_allocations_2): New.
1659 (commit_cb_data): New helper struct.
1660 (GTM::gtm_transaction::commit_allocations): Handle nested
1662 * libitm.texi: Update user action section, add description of nesting.
1664 2011-07-28 Torvald Riegel <triegel@redhat.com>
1666 * libitm_i.h: Add closed nesting as restart reason.
1667 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1669 2011-07-28 Torvald Riegel <triegel@redhat.com>
1671 * useraction.cc: Use vector instead of list to store actions.
1672 Also support partial rollbacks for closed nesting.
1673 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1674 * beginend.cc: Same.
1676 2011-07-28 Torvald Riegel <triegel@redhat.com>
1678 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1679 closed_nesting flags, as well as a closed nesting alternative.
1680 * method-serial.cc: Same.
1681 (serial_dispatch): Renamed to serialirr_dispatch.
1682 (GTM::dispatch_serialirr): Same.
1683 (serial_dispatch_ul): Renamed to serial_dispatch.
1684 (GTM::dispatch_serial): Same.
1686 2011-07-28 Torvald Riegel <triegel@redhat.com>
1688 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1690 2011-07-28 Torvald Riegel <triegel@redhat.com>
1692 * aatree.h (aa_tree::remove): New.
1693 (aa_tree::operator new): Add placement new.
1695 2011-07-02 Torvald Riegel <triegel@redhat.com>
1697 * containers.h: New file.
1698 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1699 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1700 * common.h: ... to here.
1701 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1704 2011-06-30 Torvald Riegel <triegel@redhat.com>
1706 * libitm_i.h (STATE_ABORTING): Remove.
1707 * beginend.cc (_ITM_abortTransaction): Same.
1708 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1709 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1710 (_ITM_rollbackTransaction): Remove.
1711 * beginend.cc: Same.
1713 * libitm.texi: Document these ABI changes.
1715 2011-06-30 Torvald Riegel <triegel@redhat.com>
1717 * libitm.texi: New file.
1718 * Makefile.am: Add libitm.texi.
1719 * Makefile.in: Rebuild.
1721 2011-06-30 Torvald Riegel <triegel@redhat.com>
1723 * libitm_i.h: Move parts to common.h and dispatch.h.
1724 * common.h: New file.
1725 * dispatch.h: New file, new dispatch class.
1726 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1727 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1728 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1729 decision to retry.cc.
1730 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1732 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1733 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1735 * barrier.cc: Use new barriers definitions.
1736 (abi_dispatch::memmove_overlap_check): New.
1737 * config/x86/x86_sse.cc: Same.
1738 * config/x86/x86_avx.cc: Same.
1739 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1741 * Makefile.in: Rebuild.
1742 * method-readonly.cc: Remove.
1743 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1744 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1746 2011-06-30 Torvald Riegel <triegel@redhat.com>
1748 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1749 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1750 * testsuite/libitm.c/dropref-2.c: Same.
1751 * testsuite/libitm.c/dropref.c: Same.
1753 2011-06-30 Torvald Riegel <triegel@redhat.com>
1755 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1756 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1757 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1759 * barrier.tpl: Same.
1761 * config/generic/tls.h: Same.
1762 * config/x86/tls.h: Same.
1766 * method-readonly.cc: Same.
1767 * method-serial.cc: Same.
1768 * method-wbetl.cc: Same.
1771 2011-03-03 Richard Henderson <rth@redhat.com>
1773 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1774 From Patrik Marlier <patrick.marlier@unine.ch>.
1776 2011-02-03 Richard Henderson <rth@redhat.com>
1778 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1779 * configure.ac: Use it.
1780 * configure, config.h.in: Rebuild.
1781 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1782 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1783 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1784 * libitm.map: Use wildcards to match size_t mangling.
1786 2010-12-14 Richard Henderson <rth@redhat.com>
1788 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1789 blocks of TIDs per thread.
1790 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1791 (setup_gtm_thr): Return the thread structure.
1792 * config/x86/tls.h (setup_gtm_thr): Likewise.
1794 2010-12-14 Richard Henderson <rth@redhat.com>
1796 * clone.cc (table_lock): Remove.
1797 (find_clone): Don't take it.
1798 (ExcludeTransaction): New helper class.
1799 (_ITM_registerTMCloneTable): Use it.
1800 (_ITM_deregisterTMCloneTable): Likewise.
1802 2010-12-14 Richard Henderson <rth@redhat.com>
1804 * config/x86/tls.h: New file.
1806 2010-07-15 Richard Henderson <rth@redhat.com>
1808 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1809 * Makefile.in: Rebuild.
1811 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1813 * method-wbetl.cc (trydropreference): Fix source line.
1815 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1817 * libitm.h: Add comment.
1818 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1820 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1822 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1823 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1824 available, use pthread mutexes.
1825 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1826 * config.h.in: Regenerate.
1827 * configure: Regenerate.
1829 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1831 * libitm.h (ITM_PURE): Define.
1832 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1834 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1836 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1837 (validate): Add comment.
1838 (trydropreference): New.
1839 * method-readonly.cc (class readonly_dispatch): Add
1841 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1842 Call trydropreference().
1843 * libitm.h (_ITM_dropReferences): Remove const attribute.
1844 * method-serial.cc (class serial_dispatch): Add trydropreference.
1845 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1847 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1849 * memcpy.cc (do_memcpy): Comment.
1851 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1853 * barrier.tpl: Add comments throughout.
1855 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1857 * method-wbetl.cc (struct w_entry): Add comments.
1861 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1863 * alloc_c.cc (_ITM_dropReferences): New.
1864 * libitm.map (_ITM_dropReferences): Add.
1865 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1866 * libitm_i.h (struct gtm_transaction): Declare
1867 drop_references_allocations and drop_references_local.
1868 * local.cc (rollback_local): Ignore memory when applicable.
1869 (drop_references_local): New.
1871 2010-06-23 Richard Henderson <rth@redhat.com>
1873 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1874 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1875 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1876 * config/alpha/target.h: Likewise.
1877 * config/generic/tls.cc (gtm_mask_stack): Use it.
1879 2010-06-23 Richard Henderson <rth@redhat.com>
1881 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1882 a mutex instead of trying a lock-free compare-and-swap on the list.
1883 (gtm_cacheline_page::operator delete): Likewise.
1885 2010-06-16 Richard Henderson <rth@redhat.com>
1887 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1888 that overlap the libitm stack.
1889 * barrier.tpl: Mark incoming stack.
1890 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1891 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1892 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1893 * memcpy.cc, memset.cc: Likewise.
1894 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1895 * config/generic/tls.h (gtm_thread): Add stack_top member.
1896 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1897 * libitm_i.h (gtm_mask_stack): Declare.
1898 * config/generic/tls.cc: New file.
1899 * Makefile.am (libitm_la_SOURCES): Add it.
1900 (AM_CXXFLAGS): Turn off exceptions.
1901 * Makefile.in: Rebuild.
1903 2010-06-16 Richard Henderson <rth@redhat.com>
1905 * alloc.cc (struct gtm_alloc_action): Move definition ...
1906 * libitm_i.h: ... here.
1907 (class gtm_transaction): Declare new and delete.
1908 * beginend.cc (alloc_tx): Reformulate as operator new.
1909 (free_tx): Reformulate as operator delete.
1910 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1912 2010-06-11 Richard Henderson <rth@redhat.com>
1914 * clone.cc (clone_entry_compare): Fix typo.
1915 From Patrik Marlier <patrick.marlier@unine.ch>.
1917 2010-05-13 Richard Henderson <rth@redhat.com>
1919 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1922 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1924 * libitm_i.h (struct gtm_transaction): Remove
1925 get_allocation_size.
1926 (record_allocation): Remove size parameter.
1927 * libitm.map (_ITM_realloc): Remove.
1928 * alloc_c.cc (_ITM_realloc): Remove.
1929 (_ITM_malloc): Remove size argument to record_allocation.
1930 (_ITM_calloc): Same.
1931 * alloc_cpp.cc (_ZGTtnwm): Same.
1932 (_ZGTtnwmRKSt9nothrow_t): Same.
1934 (_ZGTtnamRKSt9nothrow_t): Same.
1935 * alloc.cc (struct gtm_alloc_action): Remove size.
1936 (get_allocation_size): Remove.
1937 (commit_allocations): Add comment.
1938 (record_allocation): Remove size parameter.
1939 (forget_allocation): Remove set of size.
1941 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1943 * Makefile.am (abi_version): New.
1944 (AM_CXXFLAGS): Pass abi_version.
1945 * Makefile.in: Regenerate.
1946 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1948 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1950 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1951 _ITM_getTMCloneOrIrrevokable.
1952 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1953 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1955 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1957 * configure.ac: Remove Linux futex support.
1958 * configure.tgt (config_path): Same.
1959 * Makefile.am: Same.
1960 * config/linux: Remove entire directory.
1961 * configure: Rebuild.
1962 * Makefile.in: Rebuild.
1963 * testsuite/Makefile.in: Rebuild.
1965 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1967 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1968 switching to serial mode.
1969 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1971 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1973 * configure.tgt: Add emacs -*- tags.
1974 * barrier.tpl: Same.
1976 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1978 * Makefile.am: Rename serial.cc to method-serial.cc.
1979 * Makefile.in: Regenerate with automake 1.11.1.
1980 * testsuite/Makefile.in: Same.
1981 * aclocal.m4: Regenerate with aclocal 1.11.1.
1982 * method-serial.cc: Rename from serial.cc.
1983 * libitm_i.h (struct gtm_transaction): Update comment on
1986 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1988 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1989 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1991 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1993 * configure: Rebuild.
1995 2009-11-12 Richard Henderson <rth@redhat.com>
1997 * Rewrite everything in C++.
1999 2009-11-03 Richard Henderson <rth@redhat.com>
2001 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2002 * Makefile.am (libitm_la_SOURCES): Add them.
2003 * configure.ac (ARCH_X86): New conditional.
2004 * Makefile.in, configure: Rebuild.
2005 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2006 Move futex setup into "other system configury" case.
2007 * local.c (rollback_local): Merge into ...
2008 (GTM_rollback_local): ... here.
2009 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2010 (_ITM_LB): Define as an alias to GTM_LB.
2012 2009-11-03 Richard Henderson <rth@redhat.com>
2014 * method-readonly.c: New file.
2015 * Makefile.am (libitm_la_SOURCES): Add it.
2016 * Makefile.in: Rebuild.
2017 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2018 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2019 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2020 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2021 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2022 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2023 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2024 gtm_get_clock, gtm_inc_clock): New.
2025 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2026 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2027 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2028 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2029 replace uses with new libitm_i.h symbols.
2030 (dispatch_wbetl): Rename from wbetl_dispatch.
2031 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2032 away from dispatch_readonly; abort if the beginTransaction call
2033 asserted that the transaction was readonly.
2035 2009-11-03 Richard Henderson <rth@redhat.com>
2037 * memset.c: New file.
2038 * Makefile.am (libitm_la_SOURCES): Add it.
2039 * Makefile.in: Rebuild.
2040 * testsuite/libitm.c/memset-1.c: New.
2042 2009-11-03 Richard Henderson <rth@redhat.com>
2044 * dispatch.c: Remove file.
2045 * useraction.c (struct gtm_user_action): Move from libitm.h.
2046 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2047 (serial_memset, serial_memmove, serial_memcpy): Remove.
2048 (serial_W*, serial_R*): Remove.
2049 (serial_dispatch): Update to match.
2050 * configure.ac: Move Werror down below configure checks. Don't
2051 check for sys/loadavg.h, do check for malloc.h. Don't check for
2052 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2053 Use GCC_AC_FUNC_MMAP_BLACKLIST
2054 * libitm.h: Split out all internal items to...
2055 * libitm_i.h: ... here. New file.
2056 * copymask.c: New file.
2057 * local.c (struct gtm_local_undo): Move from libitm.h.
2058 (GTM_alloc_local): Rename from alloc_local; export.
2059 * memcpy.c: New file.
2060 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2061 * config/posix/page.c: New file.
2062 * config/posix/target_tls.h: Remove file.
2063 * barrier.c: New file.
2064 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2066 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2067 * method-wbetl.c: Rewrite for new cacheline methods.
2068 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2070 * config/alpha/sjlj.S: Fix typo.
2071 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2072 * config/alpha/copymask.c: New file.
2073 * config/alpha/target.h (CACHELINE_SIZE): New.
2074 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2076 * config/x86/target_i.h: Copy functions from x86/target.h.
2077 * config/x86/copymask.c: New file.
2078 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2079 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2080 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2081 * config/x86/target_tls.h: Move contents to target_i.h.
2083 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2084 * testsuite/libitm.c/memcpy-1.c: New.
2086 2009-10-22 Richard Henderson <rth@redhat.com>
2088 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2089 (AM_CCASFLAGS): New.
2090 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2091 saving/restoring _AC_ARG_VAR_PRECIOUS.
2092 * Makefile.in, aclocal.m4, config.h.in, configure,
2093 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2095 2009-10-22 Richard Henderson <rth@redhat.com>
2097 * testsuite/*: Update for new compiler syntax.
2099 2009-10-21 Richard Henderson <rth@redhat.com>
2101 * libitm.h (_ITM_abortReason): Add outerAbort.
2103 2009-08-03 Richard Henderson <rth@redhat.com>
2105 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2106 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2107 * method-wbetl.c (struct w_entry): Remove mask.
2108 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2111 2009-07-22 Richard Henderson <rth@redhat.com>
2113 * eh_cpp.c: New file.
2114 * Makefile.am (libitm_la_SOURCES): Add it.
2115 * Makefile.in: Rebuild.
2116 * beginend.c (GTM_rollback_transaction): Undo exception state.
2117 (GTM_trycommit_transaction): Mark inline.
2118 (GTM_trycommit_and_finalize_transaction): Split out from ...
2119 (_ITM_commitTransaction): ... here.
2120 (_ITM_commitTransactionEH): New function.
2121 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2122 cxa_unthrown, eh_in_flight; reorder.
2124 * testsuite/libitm.c++/c++.exp: New.
2125 * testsuite/libitm.c++/eh-1.C: New.
2127 * aatree.c (aa_free): Remove REGPARM.
2128 * aatree.h: Remove all REGPARM.
2130 2009-07-18 Richard Henderson <rth@redhat.com>
2132 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2133 * Makefile.am (libitm_la_SOURCES): Add them.
2134 * Makefile.in: Rebuild.
2135 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2136 (GTM_trycommit_transaction): Likewise.
2137 * libitm.h: Include aatree.h
2138 (struct gtm_alloc_action): New.
2139 (struct gtm_transaction): Add alloc_actions.
2140 (GTM_record_allocation, GTM_forget_allocation): Declare.
2141 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2142 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2143 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2144 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2145 _ZGTtdaPvRKSt9nothrow_t): Export.
2147 2009-07-18 Richard Henderson <rth@redhat.com>
2149 * target_tls.h: Move ...
2150 * config/posix/target_tls.h: ... here.
2152 2009-07-07 Richard Henderson <rth@redhat.com>
2154 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2156 2009-07-07 Richard Henderson <rth@redhat.com>
2160 2009-07-07 Richard Henderson <rth@redhat.com>
2162 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2163 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2165 * configure.tgt: Don't use -ftls-model for x86 linux.
2166 * libitm.h: Include target.h after standard includes.
2167 (_gtm_thr): Rename from gtm_thr.
2168 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2169 (gtm_disp, set_gtm_disp): New.
2170 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2171 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2172 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2174 2009-07-07 Richard Henderson <rth@redhat.com>
2176 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2178 2009-07-06 Richard Henderson <rth@redhat.com>
2180 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2181 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2182 (_ITM_beginTransaction): Take variadic arguments.
2183 (_ITM_registerThrownObject): Declare.
2184 * beginend.c, serial.c: Update.
2185 * libitm.map: Add _ITM_registerThrownObject.
2187 2009-01-28 Richard Henderson <rth@redhat.com>
2189 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2190 * Makefile.in: Rebuild.
2191 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2192 (GTM_restart_transaction): Fix uninstrumented code check.
2193 * retry.c (GTM_decide_retry_strategy): Add serial check.
2194 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2195 automatically go irrevokable when in serial mode.
2196 * clone.c: New file.
2197 * libitm.h, libitm.map: Update.
2199 2009-01-27 Richard Henderson <rth@redhat.com>
2201 * Makefile.am (LTCCASCOMPILE): Define.
2202 (libitm_la_SOURCES): Add methid-wbetl.c.
2203 * testsuite/Makefile.am: New
2204 * configure.ac: Add testsuite/Makefile.
2205 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2206 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2207 (_ITM_abortTransaction): Finalize implementation method; pass
2208 transaction properties to longjmp.
2209 (GTM_restart_transaction): Split out from ...
2210 (_ITM_commitTransaction): ... here.
2211 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2212 Move to config/x86/target.h.
2213 * config/linux/alpha/futex_bits.h: New.
2214 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2215 * config/x86/target.h: Disable target types for 32-bit.
2216 * config/alpha/sjlj.S, config/alpha/target.h: New.
2217 * libitm.h (struct gtm_dispatch): Add init, fini.
2218 (enum restart_reason): New.
2219 (struct gtm_transaction): Add method and restarts.
2220 * retry.c (GTM_decide_retry_strategy): Implement.
2221 * serial.c (serial_init, serial_fini): New.
2222 (GTM_serialmode): Finialize outgoing method.
2223 * method-wbetl.c: New.
2225 2008-12-09 Richard Henderson <rth@redhat.com>
2227 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2228 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2229 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2230 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2231 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2232 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2233 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2234 * serial.c (serial_R##T, serial_W##T): Likewise.
2236 2008-11-21 Richard Henderson <rth@redhat.com>
2240 Copyright (C) 2008-2020 Free Software Foundation, Inc.
2242 Copying and distribution of this file, with or without modification,
2243 are permitted in any medium without royalty provided the copyright
2244 notice and this notice are preserved.