1 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3 * configure: Regenerate.
5 2020-10-01 Alan Modra <amodra@gmail.com>
7 * config/powerpc/sjlj.S: Support __PCREL__ code.
9 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
13 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
15 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
16 and add BTI c to function entries.
18 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
20 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
22 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
25 * configure: Regenerated.
27 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
30 * configure: Regenerated.
32 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
34 * configure: Regenerated.
36 2020-05-12 Nathan Sidwell <nathan@acm.org>
38 Fix throw specifiers on interface.
39 * libitm/libitm.h (_ITM_NOTHROW): Define.
40 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
41 (_ITM_cxa_begin_catch): Use it.
42 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
43 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
45 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
46 (_ITM_cxa_begin_catch): Likewise.
48 2020-05-05 Nathan Sidwell <nathan@acm.org>
50 * testsuite/lib/libitm.exp (libitm_init): Add
51 -fdiagnostics-color=never to options.
53 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
58 * configure: Regenerated.
60 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
62 * configure.ac: Handle `--with-toolexeclibdir='.
63 * Makefile.in: Regenerate.
64 * aclocal.m4: Regenerate.
65 * configure: Regenerate.
66 * testsuite/Makefile.in: Regenerate.
68 2020-01-01 Jakub Jelinek <jakub@redhat.com>
70 Update copyright years.
72 * libitm.texi: Bump @copying's copyright year.
74 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
77 * configure.tgt: Avoid IE tls on *-*-musl*.
79 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
81 * configure: Regenerate.
83 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
85 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
87 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
89 * configure.tgt: Handle *-*-uclinux*.
90 * configure: Regenerate.
92 2019-09-06 Florian Weimer <fweimer@redhat.com>
94 * configure: Regenerate.
96 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
99 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
100 scanning to conform to the GNU Coding Standards.
101 * configure: Regenerate.
103 2019-05-03 Jakub Jelinek <jakub@redhat.com>
105 * Makefile.am (finclude): Remove.
106 * Makefile.in: Regenerated.
108 2019-01-01 Jakub Jelinek <jakub@redhat.com>
110 Update copyright years.
112 2019-01-01 Jakub Jelinek <jakub@redhat.com>
114 * libitm.texi: Bump @copying's copyright year.
116 2018-12-16 Jakub Jelinek <jakub@redhat.com>
119 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
120 void * to void (*) (void *).
121 (_ITM_cxa_throw): Likewise.
122 * libitm.h (_ITM_cxa_throw): Likewise.
123 * libitm.texi (_ITM_cxa_throw): Likewise.
125 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
127 * config/powerpc/target.h (htm_available): Add support for
128 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
130 2018-10-31 Joseph Myers <joseph@codesourcery.com>
133 * Makefile.am: Include multilib.am.
134 (AUTOMAKE_OPTIONS): Add info-in-builddir.
135 (CLEANFILES): Remove libitm.info.
136 * configure.ac: Remove AC_PREREQ.
137 * testsuite/Makefile.am (RUNTEST): Remove quotes.
138 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
141 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
144 * method-serial.cc: Mark varible as potentially unused
147 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
149 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
150 absolute relocation in a shared library.
152 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
155 * config/linux/x86/tls.h (SEG_READ): Use the offset of
156 __private_tm as base.
157 (SEG_WRITE): Likewise.
158 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
159 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
160 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
161 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
162 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
164 2018-05-17 Jason Merrill <jason@redhat.com>
166 * beginend.cc (save): Disable -Werror=deprecated-copy.
168 2018-05-02 Tom de Vries <tom@codesourcery.com>
171 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
173 2018-05-02 Tom de Vries <tom@codesourcery.com>
176 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
178 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
180 * config/x86/sjlj.S (_ITM_beginTransaction): Add
181 (__CET__ & 2) != 0 check for shadow stack.
182 (GTM_longjmp): Likewise.
184 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
186 * configure: Regenerated.
188 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
191 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
193 2018-04-19 Jakub Jelinek <jakub@redhat.com>
195 * configure: Regenerated.
197 2018-04-18 David Malcolm <dmalcolm@redhat.com>
200 * configure: Regenerate.
202 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
205 * configure: Regenerate.
207 2018-01-03 Jakub Jelinek <jakub@redhat.com>
209 Update copyright years.
211 * libitm.texi: Bump @copying's copyright year.
213 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
215 * Makefile.in: Regenerate.
216 * acinclude.m4: Add enable.m4 and cet.m4.
217 * config/x86/sjlj.S: Include cet.h.
218 (_ITM_beginTransaction): Add _CET_ENDBR.
219 Save Shadow Stack pointer.
220 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
221 * config/x86/target.h (struct gtm_jmpbuf):
222 Add new field for Shadow Stack pointer.
223 * configure: Regenerate.
224 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
225 * configure.ac: Update libtool_VERSION for x86.
226 * testsuite/Makefile.in: Regenerate.
228 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
230 * libitm/config/x86/target.h: Add new field (ssp).
231 * libitm/config/x86/sjlj.S: Change offsets.
233 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * testsuite/lib/libitm.exp: Load scanlang.exp.
237 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
239 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
241 2017-01-21 Jakub Jelinek <jakub@redhat.com>
244 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
245 of cat to get version from BASE-VER file.
246 * testsuite/Makefile.in: Regenerated.
248 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
250 * config/x86/target.h (htm_available): Determine vendor from
251 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
253 2017-01-18 Torvald Riegel <triegel@redhat.com>
255 * config/x86/target.h (htm_available): Add check for some processors
256 on which TSX is broken.
258 2017-01-17 Jakub Jelinek <jakub@redhat.com>
261 * configure.ac: Add GCC_BASE_VER.
262 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
263 get version from BASE-VER file.
264 * testsuite/Makefile.in: Regenerated.
265 * configure: Regenerated.
266 * Makefile.in: Regenerated.
268 2017-01-04 Alan Modra <amodra@gmail.com>
270 * Makefile.in: Regenerate.
271 * testsuite/Makefile.in: Regenerate.
273 2017-01-01 Jakub Jelinek <jakub@redhat.com>
275 Update copyright years.
277 * libitm.texi: Bump @copying's copyright year.
279 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
281 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
282 * aclocal.m4: Regenerate.
283 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
284 LIBITM_CHECK_LINKER_HWCAP.
286 2016-11-15 Matthias Klose <doko@ubuntu.com>
288 * configure: Regenerate.
290 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
293 * util.cc (xmalloc): Use posix_memalign to allocate memory on
294 on cache line if requested.
296 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
298 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
299 function attribute to disable floating point in begin_transaction() on
301 * beginend.cc (begin_transaction): Use
302 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
304 2016-01-22 Torvald Riegel <triegel@redhat.com>
306 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
308 (htm_fastpath): Remove.
309 (gtm_thread::begin_transaction): Fix HTM fastpath.
310 (_ITM_commitTransaction): Adapt.
311 (_ITM_commitTransactionEH): Adapt.
312 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
314 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
315 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
316 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
317 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
318 * libitm/method-serial.cc (htm_mg): Adapt.
319 (gtm_thread::serialirr_mode): Adapt.
320 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
322 2016-01-21 Torvald Riegel <triegel@redhat.com>
324 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
327 2016-01-19 Richard Henderson <rth@redhat.com>
332 2016-01-13 Richard Henderson <rth@redhat.com>
334 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
335 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
336 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
337 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
338 * configure.ac (ARCH_AARCH64): New conditional.
339 (ARCH_PPC, ARCH_S390): Likewise.
340 * Makefile.in, configure: Rebuild.
342 * libitm.h (_ITM_TYPE_M128): Always define.
343 * vect64.cc: Split ...
344 * vect128.cc: ... out of...
345 * config/x86/x86_sse.cc: ... here.
346 * config/arm/neon.cc: New file.
348 2016-01-19 Torvald Riegel <triegel@redhat.com>
350 * local_type_traits: Remove file.
351 * libitm_i.h: Don't include it anymore.
352 (sized_integral): Remove.
354 2016-01-16 Torvald Riegel <triegel@redhat.com>
356 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
358 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
359 * libitm/testsuite/libitm.c/priv-1.c: New.
361 2015-01-15 Torvald Riegel <triegel@redhat.com>
363 testsuite/libitm.c++/libstdc++-safeexc.C: New.
365 2016-01-13 Torvald Riegel <triegel@redhat.com>
367 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
368 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
369 (gtm_rwlock::write_unlock): Likewise.
371 2016-01-13 Richard Henderson <rth@redhat.com>
373 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
374 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
375 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
376 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
377 * configure.ac (ARCH_AARCH64): New conditional.
378 (ARCH_PPC, ARCH_S390): Likewise.
379 * Makefile.in, configure: Rebuild.
381 * libitm.h (_ITM_TYPE_M128): Always define.
382 * vect64.cc: Split ...
383 * vect128.cc: ... out of...
384 * config/x86/x86_sse.cc: ... here.
385 * config/arm/neon.cc: New file.
387 2016-01-13 Torvald Riegel <triegel@redhat.com>
389 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
390 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
391 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
392 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
393 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
394 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
395 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
396 (serialirr_dispatch::snapshot_most_recent): New.
397 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
399 2016-01-12 Torvald Riegel <triegel@redhat.com>
401 * libitm_i.h (gtm_mask_stack): Remove.
402 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
403 * stmlock.h: Remove file.
404 * config/alpha/cacheline.h: Likewise.
405 * config/generic/cacheline.h: Likewise.
406 * config/powerpc/cacheline.h: Likewise.
407 * config/sparc/cacheline.h: Likewise.
408 * config/x86/cacheline.h: Likewise.
410 2016-01-04 Jakub Jelinek <jakub@redhat.com>
412 Update copyright years.
414 * libitm.texi: Bump @copying's copyright year.
416 2015-11-26 Torvald Riegel <triegel@redhat.com>
418 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
419 (ml_wt_dispatch::pre_write): Adapt.
420 (ml_wt_dispatch::pre_load): Likewise.
422 2015-11-22 Torvald Riegel <triegel@redhat.com>
424 * libitm_i.h (gtm_alloc_action): Remove union.
425 * testsuite/libitm.c/alloc-1.c: New.
427 2015-11-19 Torvald Riegel <triegel@redhat.com>
429 * testsuite/libitm.c++/eh-5.C: New.
430 * libitm.h (_ITM_cxa_free_exception): New.
431 * libitm.map (_ITM_cxa_free_exception): Add it.
432 * libitm.texi: Update ABI docs.
433 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
434 (gtm_transaction_cp::cxa_uncaught_count): Add.
435 (gtm_thread::cxa_unthrown): Remove.
436 (gtm_thread::cxa_uncaught_count_ptr): Add.
437 (gtm_thread::cxa_uncaught_count): Add.
438 (gtm_thread::drop_references_allocations): Rename to...
439 (gtm_thread::discard_allocation): ... this and adapt.
440 (gtm_thread::init_cpp_exceptions): New.
441 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
442 (gtm_thread::begin_transaction): Likewise.
443 (gtm_transaction_cp::save): Likewise.
444 (gtm_thread::trycommit): Likewise.
445 * eh_cpp.cc: Add overview comments.
446 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
447 (free_any_exception, _ITM_cxa_free_exception): New.
448 (gtm_thread::init_cpp_exceptions): Define.
449 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
450 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
451 (gtm_thread::revert_cpp_exceptions): Likewise.
453 2015-11-09 Torvald Riegel <triegel@redhat.com>
455 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
456 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
457 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
458 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
459 (gtm_thread::forget_allocations): New overload with size_t argument.
460 * alloc.c (gtm_thread::forget_allocation): Define new overload and
462 (gtm_thread::record_allocation): Adapt.
463 (gtm_thread::commit_allocations_1): Adapt.
464 (gtm_thread::commit_allocations_2): Adapt.
465 * testsuite/libitm.c++/newdelete.C: New.
467 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
468 Joseph Myers <joseph@codesourcery.com>
469 Mark Shinwell <shinwell@codesourcery.com>
470 Andrew Stubbs <ams@codesourcery.com>
471 Rich Felker <dalias@libc.org>
473 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
474 GTM_begin_transaction for compatibility with FDPIC.
476 2015-10-09 David Malcolm <dmalcolm@redhat.com>
478 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
481 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
484 * local_atomic (__always_inline): Rename to...
485 (__libitm_always_inline): ... this.
487 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
490 * config/powerpc/sjlj.S: Port to Xcode 2.5.
492 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
494 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
495 operands "op" and "val" to int.
497 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
499 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
500 "op" and "val" to int.
502 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
504 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
505 "op" and "val" to int.
507 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
509 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
510 Declare as static int.
511 (FUTEX_PRIVATE_FLAG): Remove L suffix.
512 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
514 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
516 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
519 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
521 * Makefile.in: Regenerated with automake-1.11.6.
522 * aclocal.m4: Likewise.
523 * configure: Likewise.
524 * testsuite/Makefile.in: Likewise.
526 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
528 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
529 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
531 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
534 * libitm.c/stackundo.c (test2): Make it static.
537 2015-01-05 Jakub Jelinek <jakub@redhat.com>
539 Update copyright years.
541 2015-01-05 Jakub Jelinek <jakub@redhat.com>
543 * libitm.texi: Bump @copying's copyright year.
545 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
547 * testsuite/lib/libitm.exp: Load target-utils.exp.
548 Move load of target-supports.exp earlier.
550 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
552 * configure.tgt (x86_64): Tune -m32 multilib to generic.
554 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
557 * configure: Regenerated.
559 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
562 * configure: Regenerate.
564 2014-10-06 Marek Polacek <polacek@redhat.com>
566 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
567 * testsuite/libitm.c/memset-1.c: Likewise.
569 2014-07-24 Richard Henderson <rth@redhat.com>
571 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
572 addressing mode in epilogue.
574 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
576 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
577 -mclear-hwcap instead.
578 * configure: Regenerate.
579 * clearcap.map: Remove.
581 2014-05-21 John Marino <gnugcc@marino.st>
583 * configure.tgt (*-*-dragonfly*): New target.
585 2014-05-19 Richard Henderson <rth@redhat.com>
587 * config/aarch64/sjlj.S: New file.
588 * config/aarch64/target.h: New file.
589 * configure.tgt: Enable aarch64.
591 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
593 * config/generic/asmcfi.h: Also check for
594 __GCC_HAVE_DWARF2_CFI_ASM.
596 2013-04-02 Richard Henderson <rth@redhat.com>
598 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
599 * config/arm/target.h, config/sh/target.h: Likewise.
600 * config/sparc/target.h, config/x86/target.h: Likewise.
602 2014-03-26 Jakub Jelinek <jakub@redhat.com>
604 * config/linux/futex_bits.h: Include errno.h.
605 (sys_futex0): If syscall returns -1, return -errno rather than
608 2014-03-26 Joseph Myers <joseph@codesourcery.com>
610 * libitm.texi (Index): Rename to Library Index.
612 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
615 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
616 (x86_avx.lo): Append -mavx to CXXFLAGS.
617 * Makefile.in: Regenerate.
619 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
621 Update copyright years
623 2014-01-02 Tobias Burnus <burnus@net-b.de>
625 * libitm.texi: Bump @copying's copyright year.
627 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
629 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
630 (FUNC): Define ELFv2 variant.
637 2013-09-20 Alan Modra <amodra@gmail.com>
639 * configure: Regenerate.
641 2013-08-30 Torvald Riegel <triegel@redhat.com>
643 * config/posix/rwlock.cc: Fix initialization order.
645 2013-08-30 Torvald Riegel <triegel@redhat.com>
647 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
648 (htm_fastpath): Assign an asm name.
649 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
651 (_ITM_actions): Likewise.
652 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
654 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
655 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
656 field to the start of the structure.
657 * config/linux/rwlock.h (gtm_rwlock): Update comments.
658 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
659 handling for custom HTM fast paths.
661 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
663 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
665 * configure.tgt: Add -msoft-float to XCFLAGS.
667 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
669 * configure.tgt: Add -msoft-float to XCFLAGS.
671 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
673 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
674 (htm_transaction_active): Enable zEC12 instructions in the
676 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
678 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
680 * acinclude.m4: Add htm asm check for s390.
681 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
682 * configure: Regenerate.
683 * config/s390/target.h: Remove __HTM__ check.
684 (htm_available): Call getauxval to get hwcaps and check whether
685 HTM is available or not.
687 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
689 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
690 * configure.ac: Use it.
691 (AC_CHECK_HEADERS): Check for sys/auxv.h.
692 (AC_CHECK_FUNCS): Check for getauxval.
693 * config.h.in, configure: Rebuild.
694 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
695 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
696 (USE_HTM_FASTPATH): Define.
697 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
698 _HTM_RETRIES) New macros.
699 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
700 htm_begin_success, htm_commit, htm_transaction_active): New functions.
702 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
704 * config/s390/target.h: Include htmintrin.h.
705 (_HTM_ITM_RETRIES): New macro definition.
706 (htm_available, htm_init, htm_begin, htm_begin_success)
707 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
709 2013-06-20 Iain Sandoe <iain@codesourcery.com>
710 Cesar Philippidis <cesar@codesourcery.com>
712 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
713 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
714 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
715 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
717 2013-06-20 Torvald Riegel <triegel@redhat.com>
719 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
720 (_ITM_getTransactionId): Same.
721 * config/x86/target.h (htm_transaction_active): New.
723 2013-06-20 Torvald Riegel <triegel@redhat.com>
726 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
729 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
732 * local_atomic (__always_inline): Always define our version.
733 (__calculate_memory_order): Mark inline.
734 (atomic_thread_fence): Ditto.
735 (atomic_signal_fence): Ditto.
736 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
737 (atomic_bool::atomic_flag_clear_explicit): Ditto.
738 (atomic_bool::atomic_flag_test_and_set): Ditto.
739 (atomic_bool::atomic_flag_clear): Ditto.
741 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
743 * config/s390/sjlj.S: New file.
744 * config/s390/target.h: New file.
745 * configure.tgt: Set options for S/390.
747 2013-03-23 Andi Kleen <ak@linux.intel.com>
749 * local_atomic (__always_inline): Add.
750 (__calculate_memory_order, atomic_thread_fence,
751 atomic_signal_fence, test_and_set, clear, store, load,
752 exchange, compare_exchange_weak, compare_exchange_strong,
753 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
754 Add __always_inline to force inlining.
756 2013-02-11 Iain Sandoe <iain@codesourcery.com>
757 Jack Howarth <howarth@bromo.med.uc.edu>
758 Patrick Marlier <patrick.marlier@gmail.com>
761 * alloc_cpp.cc: Enable function declarations on darwin.
762 * eh_cpp.cc: Likewise.
764 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
766 Update copyright years.
768 2012-11-09 Torvald Riegel <triegel@redhat.com>
770 * beginend.cc (htm_fastpath): New.
771 (gtm_thread::begin_transaction, _ITM_commitTransaction,
772 _ITM_commitTransactionEH): Add HTM fastpath handling.
773 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
774 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
775 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
776 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
777 * configure.tgt: Add -mrtm to XCFLAGS.
778 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
779 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
780 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
781 * retry.cc (parse_default_method): Add HTM method parsing.
782 (gtm_thread::number_of_threads_changed): Use HTM by default if
785 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
787 * configure: Regenerate.
789 2012-10-31 Richard Henderson <rth@redhat.com>
791 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
792 * configure.ac: Use it.
793 * config.h.in, configure: Rebuild.
794 * testsuite/Makefile.in: Rebuild.
796 2012-10-24 Torvald Riegel <triegel@redhat.com>
798 * libitm.texi: Clarify ABI requirements for data-logging functions.
800 2012-10-24 Torvald Riegel <triegel@redhat.com>
802 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
803 it requires serial mode instead of assuming that for certain
805 * dispatch.h (abi_dispatch::requires_serial): New.
806 (abi_dispatch::abi_dispatch): Adapt.
807 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
808 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
809 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
810 serial_dispatch::serial_dispatch,
811 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
813 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
815 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
816 and ia32 declarations some more.
817 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
819 2012-09-20 Jakub Jelinek <jakub@redhat.com>
822 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
823 * configure: Regenerate.
824 * Makefile.in: Regenerate.
826 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
828 * configure: Regenerated.
830 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
832 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
834 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
836 * eh_cpp.cc: Fix __cxa_end_catch declaration.
838 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
840 * configure: Regenerated.
842 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
845 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
848 2012-04-03 Tristan Gingold <gingold@adacore.com>
850 * configure: Regenerate.
852 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
855 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
857 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
859 * testsuite/lib/libitm.exp: load fortran-modules.exp
861 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
863 * configure.tgt (*-*-irix6*): Remove.
865 2012-03-13 Torvald Riegel <triegel@redhat.com>
868 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
871 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
873 * configure.tgt (*-*-osf*): Remove.
874 * configure: Regenerate.
876 2012-03-05 Torvald Riegel <triegel@redhat.com>
878 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
879 memtransfer/memset if size isn't larger than zero.
881 2012-03-02 Torvald Riegel <triegel@redhat.com>
883 * libitm.texi: Link to specification and add a usage example.
885 2012-02-24 Torvald Riegel <triegel@redhat.com>
887 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
888 default dispatch for more than 1 thread to ml_wt.
890 2012-02-20 Torvald Riegel <triegel@redhat.com>
892 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
894 2012-02-20 Torvald Riegel <triegel@redhat.com>
896 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
898 2012-02-20 Torvald Riegel <triegel@redhat.com>
900 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
901 serial mode corner cases made obsolete by prior gtm_rwlock changes.
902 (gl_wt_dispatch.rollback): Same.
904 2012-02-20 Torvald Riegel <triegel@redhat.com>
906 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
908 2012-02-20 Torvald Riegel <triegel@redhat.com>
910 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
911 for RfW src. Optimize number of calls to gtm_thr.
913 2012-02-20 Torvald Riegel <triegel@redhat.com>
915 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
917 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
918 (default_dispatch): Make atomic.
919 (GTM::gtm_thread::set_default_dispatch): Access atomically.
920 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
921 use decide_begin_dispatch() if default_dispatch might have changed.
922 (GTM::gtm_thread::number_of_threads_changed): Initialize
923 default_dispatch here.
925 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
926 Patrick Marlier <patrick.marlier@gmail.com>
929 * alloc_cpp.cc: No dummy definitions for darwin.
930 * eh_cpp.cc: Likewise.
932 2012-02-14 Richard Henderson <rth@redhat.com>
934 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
936 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
938 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
940 2012-02-14 Torvald Riegel <triegel@redhat.com>
942 * libitm_i.h (GTM::gtm_rwlog_entry): New.
943 (GTM::gtm_thread): Add read and write logs.
944 (GTM::dispatch_ml_wt): Declare.
945 * retry.cc (parse_default_method): Support ml_wt.
946 * method-ml.cc: New file.
947 * Makefile.am: Add method-ml.cc.
948 * Makefile.in: Regenerate.
950 2012-02-14 Torvald Riegel <triegel@redhat.com>
952 * dispatch.h (GTM::abi_dispatch::supports): New.
953 (GTM::method_group::reinit): New.
954 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
955 (GTM::gtm_thread::number_of_threads_changed): Check that the method
956 supports the current situation.
958 2012-02-14 Torvald Riegel <triegel@redhat.com>
960 * util.cc (GTM::xcalloc): New.
961 * common.h (GTM::xcalloc): Declare.
963 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
965 * config/sparc/target.h (cpu_relax): Read from CC register.
966 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
968 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
970 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
972 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
974 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
975 * config/sparc/cacheline.h: New file.
976 * config/sparc/target.h: Likewise.
977 * config/sparc/sjlj.S: Likewise.
978 * config/linux/sparc/futex_bits.h: Likewise.
980 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
982 * configure.ac (link_itm): Fix comment.
983 * configure: Regenerate.
984 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
986 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
989 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
990 Correct libgomp references.
992 2012-01-24 Torvald Riegel <triegel@redhat.com>
994 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
997 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
999 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1001 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1002 offset values. Do not copy return address. Decrement stack
1004 (GTM_longjump) [__x86_64__]: Update offset values.
1006 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1009 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1010 the first function argument to %eax.
1012 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1014 * libitm.h (_ITM_getThreadnum): Remove.
1015 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1017 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019 * clearcap.map: New file.
1020 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1021 * configure.ac: Call it.
1022 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1023 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1024 * configure: Regenerate.
1025 * Makefile.in: Regenerate.
1026 * testsuite/Makefile.in: Regenerate.
1028 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1031 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1032 include, exclude options.
1034 2012-01-14 Torvald Riegel <triegel@redhat.com>
1036 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1038 * containers.h (GTM::vector::set_size): New.
1040 2012-01-14 Torvald Riegel <triegel@redhat.com>
1043 * config/generic/tls.h (GTM::mask_stack_top): New.
1044 (GTM::mask_stack_bottom): Declare.
1045 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1046 * local.cc (gtm_undolog::rollback): Filter out any updates that
1047 overlap the libitm stack. Add current transaction as parameter.
1048 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1049 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1050 * testsuite/libitm.c/stackundo.c: New test.
1052 2012-01-10 Richard Henderson <rth@redhat.com>
1054 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1055 * eh_cpp.cc (_Unwind_DeleteException): Define for
1056 !HAVE_ELF_STYLE_WEAKREF.
1058 2012-01-08 Torvald Riegel <triegel@redhat.com>
1060 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1061 (GTM::gtm_thread::drop_references_undolog): Remove.
1062 (GTM::gtm_thread::commit_undolog,
1063 GTM::gtm_thread::rollback_undolog): Move to ...
1064 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1065 (GTM::gtm_undolog_entry): Remove.
1066 (GTM::gtm_thread): Adapt.
1067 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1068 (GTM::gtm_thread::trycommit): Adapt.
1069 * method-serial.cc (serial_dispatch::log): Adapt.
1070 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1071 (gl_wt_dispatch::store): Fix likely/unlikely.
1072 * containers.h (GTM::vector::resize): Add additional_capacity
1073 parameter and handle it.
1074 (GTM::vector::resize_noinline): New/adapt.
1075 (GTM::vector::push): New.
1077 2012-01-06 Richard Henderson <rth@redhat.com>
1079 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1080 * config/linux/powerpc/futex_bits.h: New file.
1081 * config/powerpc/cacheline.h: New file.
1082 * config/powerpc/sjlj.S: New file.
1083 * config/powerpc/target.h: New file.
1084 * config/generic/asmcfi.h (cfi_offset): New.
1085 (cfi_restore, cfi_undefined): New.
1087 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1090 * testsuite/libitm.c/reentrant.c: Remove xfail.
1091 (thread): Pass x to pure().
1092 From Patrik Marlier <patrick.marlier@gmail.com>.
1094 2011-12-24 Torvald Riegel <triegel@redhat.com>
1096 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1097 privatization safety if already in serial mode.
1099 2011-12-24 Torvald Riegel <triegel@redhat.com>
1101 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1102 finish_serial_upgrade parameter.
1103 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1104 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1105 Don't unset reader flag.
1106 (GTM::gtm_rwlock::write_upgrade_finish): New.
1107 * config/posix/rwlock.cc: Same.
1108 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1110 * config/posix/rwlock.h: Same.
1111 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1112 flag after commit or after rollback when restarting.
1114 2011-12-24 Torvald Riegel <triegel@redhat.com>
1116 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1117 (GTM::gtm_thread::try_commit): Changed memory order.
1118 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1120 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1121 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1122 * config/linux/futex_bits.h (sys_futex0): Same.
1123 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1124 * config/linux/futex.h (futex_wait, futex_wake): Same.
1125 * config/linux/rwlock.h (gtm_rwlock::writers,
1126 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1128 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1129 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1130 gtm_rwlock::write_unlock): Fix memory orders and fences.
1131 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1132 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1133 gtm_rwlock::write_unlock): Same.
1134 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1135 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1136 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1138 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1139 gl_wt_dispatch::load, gl_wt_dispatch::store,
1140 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1141 orders and fences. Add comments.
1143 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1145 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1146 * Makefile.in: Regenerated.
1148 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1150 * configure.tgt: Add sh* case.
1151 * config/sh/target.h: New file.
1152 * config/sh/sjlj.S: New file.
1153 * config/linux/sh/futex_bits.h: New file.
1155 2011-12-14 Richard Henderson <rth@redhat.com>
1157 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1158 * config/arm/sjlj.S, config/arm/target.h: New files.
1159 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1160 (cfi_rel_offset): New.
1161 * config/linux/futex_bits.h: New file.
1162 * config/linux/futex.cc: Include futex_bits.h here...
1163 * config/linux/futex.h: ... not here.
1164 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1165 * configure.ac (ARCH_AM): New conditional.
1166 * Makefile.in, configure: Rebuild.
1167 * configure.tgt: Handle ARM.
1169 2011-12-13 Richard Henderson <rth@redhat.com>
1171 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1172 signed/unsigned comparison werror.
1174 * local_atomic: New file.
1175 * libitm_i.h: Include it.
1176 (gtm_thread::shared_state): Use atomic template.
1177 * beginend.cc (GTM::gtm_clock): Use atomic template.
1178 (global_tid): Use atomic template if 64-bit atomics available.
1179 (gtm_thread::gtm_thread): Update shared_state access.
1180 (gtm_thread::trycommit): Likewise.
1181 (choose_code_path): Update global_tid access.
1182 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1183 * stmlock.h (GTM::gtm_clock): Use atomic template.
1184 (gtm_get_clock, gtm_inc_clock): Update accesses.
1185 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1186 redundant __sync_synchronize after atomic shared_state access.
1187 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1188 (gtm_rwlock::write_lock_generic): Likewise.
1189 (gtm_rwlock::read_unlock): Likewise.
1190 * config/alpha/target.h (atomic_read_barrier): Remove.
1191 (atomic_write_barrier): Remove.
1192 * config/x86/target.h (atomic_read_barrier): Remove.
1193 (atomic_write_barrier): Remove.
1195 2011-11-30 Richard Henderson <rth@redhat.com>
1197 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1198 * beginend.c (_ITM_abortTransaction): Update to match.
1199 (GTM::gtm_thread::restart): Likewise.
1200 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1201 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1203 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1205 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1206 * Makefile.in: Regenerate.
1208 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1210 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1211 * alloc_cpp.cc: Generate dummy functions if we don't
1212 HAVE_ELF_STYLE_WEAKREF.
1213 * eh_cpp.cc: Likewise.
1214 * configure: Regenerate.
1215 * aclocal.m4: Likewise.
1216 * config.h.in: Likewise.
1217 * Makefile.in: Likewise.
1218 * testsuite/Makefile.in: Likewise.
1220 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1222 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1223 __USER_LABEL_PREFIX__ for targets that use it.
1224 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1225 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1226 in portability to non-elf targets.
1227 (GTM_longjmp): Likewise.
1228 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1231 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1233 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1234 * testsuite/libitm.c/memset-1.c: Likewise.
1236 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1238 * configure: Regenerate.
1240 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1243 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1244 * Makefile.am: Handle sun style versioning.
1245 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1246 * configure: Regenerate.
1247 * Makefile.in: Regenerate.
1249 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1251 * config/generic/asmcfi.h: Fix comment.
1252 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1253 sequence without .hidden support, error for non-ELF targets.
1254 (GTM_longjmp) [__ELF__]: Only use .hidden if
1255 HAVE_ATTRIBUTE_VISIBILITY.
1257 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1259 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1260 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1262 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1263 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1265 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1268 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1269 * configure: Regenerate.
1271 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1273 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1275 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1277 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1279 (.note.GNU-stack): Only use if __linux__.
1280 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1281 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1282 * testsuite/libitm.c/reentrant.c: Likewise.
1283 * testsuite/libitm.c/simple-2.c: Likewise.
1284 * testsuite/libitm.c/txrelease.c: Likewise.
1285 * testsuite/libitm.c++/static_ctor.C: Likewise.
1287 2011-11-10 Richard Henderson <rth@redhat.com>
1289 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1290 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1291 * configure.ac (ARCH_X86_AVX): New conditional.
1292 * Makefile.in, configure: Rebuild.
1294 2011-11-09 Richard Henderson <rth@redhat.com>
1296 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1297 * configure.ac: Use it.
1298 * config.h.in, configure: Rebuild.
1299 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1301 2011-11-09 Richard Henderson <rth@redhat.com>
1303 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1304 * config/alpha/unaligned.h: Remove file.
1305 * config/generic/unaligned.h: Remove file.
1306 * config/x86/unaligned.h: Remove file.
1307 * config/generic/cachepage.h: Remove file.
1308 * config/posix/cachepage.cc: Remove file.
1309 * config/generic/cacheline.cc: Remove file.
1310 * config/x86/cacheline.cc: Remove file.
1311 * config/generic/cacheline.h (gtm_cacheline): Remove the
1312 store_mask, copy_mask, copy_mask_wb methods.
1313 * config/x86/cacheline.h: Likewise.
1314 * config/alpha/cacheline.h: Fall back to generic after setting size.
1315 * config/generic/tls.cc (gtm_mask_stack): Remove.
1316 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1317 (GTM_vpalignr_table): Remove.
1318 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1319 (GTM_pshift_table): Remove.
1320 * config/libitm_i.h: Don't include cachepage.h.
1321 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1322 * Makefile.in, testsuite/Makefile.in: Rebuild.
1324 2011-11-09 Richard Henderson <rth@redhat.com>
1326 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1327 to emit branch prediction hint.
1329 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1330 Protect .note.GNU-stack with __linux__.
1332 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1333 * configure, aclocal.m4, config.h.in: Rebuild.
1334 * config/generic/asmcfi.h: New file.
1335 * config/x86/sjlj.S: Use it.
1337 2011-11-08 Richard Henderson <rth@redhat.com>
1339 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1341 2011-11-08 Richard Henderson <rth@redhat.com>
1343 * configure.tgt: Test correct directory for supported cpus.
1345 * configure.ac: Exit if unsupported.
1346 * configure: Rebuild.
1347 * configure.tgt: Delete boilerplate from libgomp for unsupported
1348 targets. Set UNSUPPORTED for unsupported targets.
1350 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1352 * configure.tgt: Handle i386 like i[456]86.
1353 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1355 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1356 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1358 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1360 * method-wbetl.cc: Update copyright notice.
1366 * barrier.tpl: Same.
1367 * useraction.cc: Same.
1371 * config/generic/tls.cc: Same.
1372 * config/generic/cacheline.h: Same.
1373 * config/generic/cachepage.h: Same.
1374 * config/generic/cacheline.cc: Same.
1375 * config/generic/unaligned.h: Same.
1376 * config/x86/cacheline.h: Same.
1377 * config/x86/cacheline.cc: Same.
1378 * config/x86/unaligned.h: Same.
1379 * config/alpha/cacheline.h: Same.
1380 * config/alpha/unaligned.h: Same.
1381 * config/alpha/sjlj.S: Same.
1382 * config/posix/cachepage.cc: Same.
1383 * config/linux/futex.h: Same.
1384 * config/linux/alpha/futex_bits.h: Same.
1386 2011-11-04 Torvald Riegel <triegel@redhat.com>
1388 * libitm.texi: No cover text and invariant sections.
1390 2011-11-03 Richard Henderson <rth@redhat.com>
1392 * local_type_traits: New file.
1393 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1395 2011-11-03 Richard Henderson <rth@redhat.com>
1397 * configure.ac: Don't test for gfortran.
1398 * configure: Rebuild.
1400 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1401 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1403 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1405 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1406 * testsuite/libitm.c/memset-1.c: Same.
1407 * testsuite/libitm.c/c.exp: Same.
1408 * testsuite/lib/libitm-dg.exp: Same.
1409 * testsuite/lib/libitm.exp: Same.
1410 * testsuite/libitm.c++/c++.exp: Same.
1412 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1414 * testsuite/config/default.exp: Update copyright date.
1415 * configure.ac: Add copyright info.
1416 * configure.tgt: Same.
1418 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1420 * testsuite/libitm.c/reentrant.c: XFAIL.
1421 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1423 2011-10-29 Torvald Riegel <triegel@redhat.com>
1425 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1427 (_ITM_abortTransaction): Handle aborts of outer transactions.
1429 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1430 * libitm.texi: Document aborts of outer transactions.
1431 * testsuite/libitm.c/cancel.c: New file.
1433 2011-10-19 Torvald Riegel <triegel@redhat.com>
1435 * testsuite/*: Change __transaction to __transaction_atomic or
1436 __transaction_relaxed.
1438 2011-10-19 Torvald Riegel <triegel@redhat.com>
1440 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1443 2011-10-19 Torvald Riegel <triegel@redhat.com>
1445 * libitm_i.h: Add gl_wt dispatch.
1446 * retry.cc (parse_default_method): Same.
1447 * method-gl.cc: New file.
1448 * Makefile.am: Use method-gl.cc.
1449 * Makefile.in: Rebuild.
1451 2011-10-19 Torvald Riegel <triegel@redhat.com>
1453 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1454 safety if requested by a TM method.
1455 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1456 privatization safety.
1457 * method-serial.cc: Same.
1459 2011-10-19 Torvald Riegel <triegel@redhat.com>
1461 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1462 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1463 undolog-related member functions from *_local to *_undolog.
1464 * local.cc (gtm_thread::commit_undolog): Same.
1465 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1466 (GTM::gtm_thread::rollback): Roll back undolog before
1467 dispatch-specific rollback.
1469 2011-10-19 Torvald Riegel <triegel@redhat.com>
1471 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1472 re-initialization of the current method group.
1473 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1475 2011-10-19 Torvald Riegel <triegel@redhat.com>
1477 * alloc.cc (commit_allocations_2): Do not free transaction-local
1478 memory when committing a nested transaction.
1480 2011-10-19 Torvald Riegel <triegel@redhat.com>
1482 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1483 serial-irrevocable dispatch, not serial.
1485 2011-10-19 Torvald Riegel <triegel@redhat.com>
1487 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1489 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1490 * method-serial.cc: Implement begin_or_restart().
1491 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1492 dispatch-specific begin_or_restart().
1493 (GTM::gtm_thread::restart): Same.
1495 2011-08-23 Torvald Riegel <triegel@redhat.com>
1497 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1498 restarting without switching to serial mode.
1499 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1500 transaction state. Choose closed-nesting alternative if available.
1501 (GTM::gtm_thread::set_default_dispatch): New.
1502 (parse_default_method): New.
1503 (GTM::gtm_thread::number_of_threads_changed): New.
1504 * method-serial.cc (GTM::serial_mg): New method group class.
1505 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1507 (GTM::serial_dispatch): Same.
1508 (GTM::serialirr_onwrite_dispatch): Same.
1509 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1510 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1512 (GTM::gtm_thread::gtm_thread): Same.
1513 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1514 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1515 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1516 choose dispatch but set state according to dispatch here.
1517 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1518 (GTM::method_group): New class.
1519 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1520 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1521 * libitm.texi: Document TM methods, method groups, method life cycle.
1522 Rename method sets to method groups.
1524 2011-08-23 Torvald Riegel <triegel@redhat.com>
1526 * config/x86/tls.h: Moved to ...
1527 * config/linux/x86/tls.h: ... here.
1529 2011-08-23 Torvald Riegel <triegel@redhat.com>
1531 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1533 * config/x86/sjlj.S: Same.
1535 2011-08-19 Torvald Riegel <triegel@redhat.com>
1537 * config/linux/rwlock.h: New file.
1538 * config/linux/rwlock.c: New file.
1539 * configure.ac: Reenable futex support (undo SVN rev 157758).
1540 * Makefile.am: Same.
1541 * configure.tgt: Same.
1542 * config/linux/alpha/futex_bits.h: Same.
1543 * config/linux/futex.h: Same. Return number of woken processes.
1544 * config/linux/futex.cc: Same.
1545 (futex_wait): Remove spinning.
1546 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1547 Use __x86_64__ instead of __LP64__.
1548 * aclocal.m4: Include generic futex checks.
1549 * configure: Rebuild.
1550 * Makefile.in: Rebuild.
1551 * testsuite/Makefile.in: Rebuild.
1552 * beginend.cc: Include pthread.h.
1553 * config/posix/cachepage.cc: Same.
1555 2011-08-12 Torvald Riegel <triegel@redhat.com>
1557 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1558 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1560 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1562 (GTM::gtm_thread::thread_num): Removed.
1563 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1564 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1565 tx-to-thread renaming.
1566 * beginend.cc: Adapted to tx-to-thread renaming.
1567 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1568 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1569 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1570 gtm_transaction to gtm_thread.
1571 (_ITM_getThreadnum): Removed. Not supported anymore.
1572 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1573 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1574 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1575 gtm_tx-to-gtm_thr renaming if necessary.
1582 * alloc_cpp.cc: Same.
1583 * method-serial.cc: Same.
1584 * config/generic/tls.cc: Same.
1585 * config/posix/rwlock.h (gtm_rwlock): Same.
1586 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1588 2011-08-12 Torvald Riegel <triegel@redhat.com>
1590 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1592 (gtm_rwlock::read_unlock): Same.
1593 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1594 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1595 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1596 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1597 w_upgrade. Replaced by per-transaction flags (in shared_state).
1598 Added c_confirmed_writers.
1599 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1600 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1601 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1602 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1603 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1604 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1605 * libitm.texi: Document locking conventions and implementations in
1608 2011-08-12 Torvald Riegel <triegel@redhat.com>
1610 * libitm_i.h (next_tx): Add list of all threads' transaction.
1611 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1612 transaction with list of transactions and ...
1613 (thread_exit_handler): ... deregister here.
1614 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1615 * config/x86/target.h: Same.
1617 2011-08-12 Torvald Riegel <triegel@redhat.com>
1619 * testsuite/libitm.c++/static_ctor.C: New file.
1621 2011-08-12 Torvald Riegel <triegel@redhat.com>
1623 * testsuite/libitm.c/reentrant.c: New file.
1625 2011-08-12 Torvald Riegel <triegel@redhat.com>
1627 * config/generic/tls.h: Remove the free list for transactions and ...
1628 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1629 (GTM::gtm_transaction::operator delete): ... and release here.
1630 (thread_exit_handler): New. Delete tx when thread terminates.
1631 (thread_exit_init): New.
1632 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1633 * testsuite/libitm.c/txrelease.c: New file.
1635 2011-08-12 Torvald Riegel <triegel@redhat.com>
1637 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1638 * testsuite/libitm.c/notx.c: New file.
1640 2011-08-12 Torvald Riegel <triegel@redhat.com>
1642 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1643 * libitm_i.h (local_tid): ... to here.
1644 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1645 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1647 2011-08-12 Torvald Riegel <triegel@redhat.com>
1649 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1650 serialirr_onwrite_dispatch as new default for now.
1651 * method-serial.cc (serialirr_onwrite_dispatch): New.
1652 (GTM::dispatch_serialirr_onwrite): New.
1655 2011-08-12 Torvald Riegel <triegel@redhat.com>
1657 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1658 * query.cc (_ITM_getTransactionId): There is no active transaction if
1659 the current nesting level is zero.
1661 2011-07-28 Torvald Riegel <triegel@redhat.com>
1663 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1666 2011-07-28 Torvald Riegel <triegel@redhat.com>
1668 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1669 transaction properties from the caller instead of from the
1672 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1674 2011-07-28 Torvald Riegel <triegel@redhat.com>
1676 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1677 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1679 * method-serial.cc: Same.
1680 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1681 flat nesting as default, and closed nesting on demand.
1682 (GTM::gtm_transaction::rollback): Same.
1683 (_ITM_abortTransaction): Same.
1684 (GTM::gtm_transaction::restart): Same.
1685 (GTM::gtm_transaction::trycommit): Same.
1686 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1687 (choose_code_path): New.
1688 (GTM::gtm_transaction_cp::save): New.
1689 (GTM::gtm_transaction_cp::commit): New.
1690 * query.cc (_ITM_inTransaction): Support flat nesting.
1691 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1692 (GTM::gtm_transaction): Support flat and closed nesting.
1693 * alloc.cc (commit_allocations_2): New.
1694 (commit_cb_data): New helper struct.
1695 (GTM::gtm_transaction::commit_allocations): Handle nested
1697 * libitm.texi: Update user action section, add description of nesting.
1699 2011-07-28 Torvald Riegel <triegel@redhat.com>
1701 * libitm_i.h: Add closed nesting as restart reason.
1702 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1704 2011-07-28 Torvald Riegel <triegel@redhat.com>
1706 * useraction.cc: Use vector instead of list to store actions.
1707 Also support partial rollbacks for closed nesting.
1708 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1709 * beginend.cc: Same.
1711 2011-07-28 Torvald Riegel <triegel@redhat.com>
1713 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1714 closed_nesting flags, as well as a closed nesting alternative.
1715 * method-serial.cc: Same.
1716 (serial_dispatch): Renamed to serialirr_dispatch.
1717 (GTM::dispatch_serialirr): Same.
1718 (serial_dispatch_ul): Renamed to serial_dispatch.
1719 (GTM::dispatch_serial): Same.
1721 2011-07-28 Torvald Riegel <triegel@redhat.com>
1723 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1725 2011-07-28 Torvald Riegel <triegel@redhat.com>
1727 * aatree.h (aa_tree::remove): New.
1728 (aa_tree::operator new): Add placement new.
1730 2011-07-02 Torvald Riegel <triegel@redhat.com>
1732 * containers.h: New file.
1733 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1734 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1735 * common.h: ... to here.
1736 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1739 2011-06-30 Torvald Riegel <triegel@redhat.com>
1741 * libitm_i.h (STATE_ABORTING): Remove.
1742 * beginend.cc (_ITM_abortTransaction): Same.
1743 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1744 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1745 (_ITM_rollbackTransaction): Remove.
1746 * beginend.cc: Same.
1748 * libitm.texi: Document these ABI changes.
1750 2011-06-30 Torvald Riegel <triegel@redhat.com>
1752 * libitm.texi: New file.
1753 * Makefile.am: Add libitm.texi.
1754 * Makefile.in: Rebuild.
1756 2011-06-30 Torvald Riegel <triegel@redhat.com>
1758 * libitm_i.h: Move parts to common.h and dispatch.h.
1759 * common.h: New file.
1760 * dispatch.h: New file, new dispatch class.
1761 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1762 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1763 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1764 decision to retry.cc.
1765 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1767 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1768 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1770 * barrier.cc: Use new barriers definitions.
1771 (abi_dispatch::memmove_overlap_check): New.
1772 * config/x86/x86_sse.cc: Same.
1773 * config/x86/x86_avx.cc: Same.
1774 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1776 * Makefile.in: Rebuild.
1777 * method-readonly.cc: Remove.
1778 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1779 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1781 2011-06-30 Torvald Riegel <triegel@redhat.com>
1783 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1784 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1785 * testsuite/libitm.c/dropref-2.c: Same.
1786 * testsuite/libitm.c/dropref.c: Same.
1788 2011-06-30 Torvald Riegel <triegel@redhat.com>
1790 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1791 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1792 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1794 * barrier.tpl: Same.
1796 * config/generic/tls.h: Same.
1797 * config/x86/tls.h: Same.
1801 * method-readonly.cc: Same.
1802 * method-serial.cc: Same.
1803 * method-wbetl.cc: Same.
1806 2011-03-03 Richard Henderson <rth@redhat.com>
1808 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1809 From Patrik Marlier <patrick.marlier@unine.ch>.
1811 2011-02-03 Richard Henderson <rth@redhat.com>
1813 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1814 * configure.ac: Use it.
1815 * configure, config.h.in: Rebuild.
1816 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1817 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1818 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1819 * libitm.map: Use wildcards to match size_t mangling.
1821 2010-12-14 Richard Henderson <rth@redhat.com>
1823 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1824 blocks of TIDs per thread.
1825 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1826 (setup_gtm_thr): Return the thread structure.
1827 * config/x86/tls.h (setup_gtm_thr): Likewise.
1829 2010-12-14 Richard Henderson <rth@redhat.com>
1831 * clone.cc (table_lock): Remove.
1832 (find_clone): Don't take it.
1833 (ExcludeTransaction): New helper class.
1834 (_ITM_registerTMCloneTable): Use it.
1835 (_ITM_deregisterTMCloneTable): Likewise.
1837 2010-12-14 Richard Henderson <rth@redhat.com>
1839 * config/x86/tls.h: New file.
1841 2010-07-15 Richard Henderson <rth@redhat.com>
1843 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1844 * Makefile.in: Rebuild.
1846 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1848 * method-wbetl.cc (trydropreference): Fix source line.
1850 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1852 * libitm.h: Add comment.
1853 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1855 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1857 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1858 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1859 available, use pthread mutexes.
1860 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1861 * config.h.in: Regenerate.
1862 * configure: Regenerate.
1864 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1866 * libitm.h (ITM_PURE): Define.
1867 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1869 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1871 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1872 (validate): Add comment.
1873 (trydropreference): New.
1874 * method-readonly.cc (class readonly_dispatch): Add
1876 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1877 Call trydropreference().
1878 * libitm.h (_ITM_dropReferences): Remove const attribute.
1879 * method-serial.cc (class serial_dispatch): Add trydropreference.
1880 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1882 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1884 * memcpy.cc (do_memcpy): Comment.
1886 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1888 * barrier.tpl: Add comments throughout.
1890 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1892 * method-wbetl.cc (struct w_entry): Add comments.
1896 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1898 * alloc_c.cc (_ITM_dropReferences): New.
1899 * libitm.map (_ITM_dropReferences): Add.
1900 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1901 * libitm_i.h (struct gtm_transaction): Declare
1902 drop_references_allocations and drop_references_local.
1903 * local.cc (rollback_local): Ignore memory when applicable.
1904 (drop_references_local): New.
1906 2010-06-23 Richard Henderson <rth@redhat.com>
1908 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1909 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1910 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1911 * config/alpha/target.h: Likewise.
1912 * config/generic/tls.cc (gtm_mask_stack): Use it.
1914 2010-06-23 Richard Henderson <rth@redhat.com>
1916 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1917 a mutex instead of trying a lock-free compare-and-swap on the list.
1918 (gtm_cacheline_page::operator delete): Likewise.
1920 2010-06-16 Richard Henderson <rth@redhat.com>
1922 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1923 that overlap the libitm stack.
1924 * barrier.tpl: Mark incoming stack.
1925 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1926 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1927 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1928 * memcpy.cc, memset.cc: Likewise.
1929 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1930 * config/generic/tls.h (gtm_thread): Add stack_top member.
1931 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1932 * libitm_i.h (gtm_mask_stack): Declare.
1933 * config/generic/tls.cc: New file.
1934 * Makefile.am (libitm_la_SOURCES): Add it.
1935 (AM_CXXFLAGS): Turn off exceptions.
1936 * Makefile.in: Rebuild.
1938 2010-06-16 Richard Henderson <rth@redhat.com>
1940 * alloc.cc (struct gtm_alloc_action): Move definition ...
1941 * libitm_i.h: ... here.
1942 (class gtm_transaction): Declare new and delete.
1943 * beginend.cc (alloc_tx): Reformulate as operator new.
1944 (free_tx): Reformulate as operator delete.
1945 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1947 2010-06-11 Richard Henderson <rth@redhat.com>
1949 * clone.cc (clone_entry_compare): Fix typo.
1950 From Patrik Marlier <patrick.marlier@unine.ch>.
1952 2010-05-13 Richard Henderson <rth@redhat.com>
1954 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1957 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1959 * libitm_i.h (struct gtm_transaction): Remove
1960 get_allocation_size.
1961 (record_allocation): Remove size parameter.
1962 * libitm.map (_ITM_realloc): Remove.
1963 * alloc_c.cc (_ITM_realloc): Remove.
1964 (_ITM_malloc): Remove size argument to record_allocation.
1965 (_ITM_calloc): Same.
1966 * alloc_cpp.cc (_ZGTtnwm): Same.
1967 (_ZGTtnwmRKSt9nothrow_t): Same.
1969 (_ZGTtnamRKSt9nothrow_t): Same.
1970 * alloc.cc (struct gtm_alloc_action): Remove size.
1971 (get_allocation_size): Remove.
1972 (commit_allocations): Add comment.
1973 (record_allocation): Remove size parameter.
1974 (forget_allocation): Remove set of size.
1976 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1978 * Makefile.am (abi_version): New.
1979 (AM_CXXFLAGS): Pass abi_version.
1980 * Makefile.in: Regenerate.
1981 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1983 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1985 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1986 _ITM_getTMCloneOrIrrevokable.
1987 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1988 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1990 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1992 * configure.ac: Remove Linux futex support.
1993 * configure.tgt (config_path): Same.
1994 * Makefile.am: Same.
1995 * config/linux: Remove entire directory.
1996 * configure: Rebuild.
1997 * Makefile.in: Rebuild.
1998 * testsuite/Makefile.in: Rebuild.
2000 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2002 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2003 switching to serial mode.
2004 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2006 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2008 * configure.tgt: Add emacs -*- tags.
2009 * barrier.tpl: Same.
2011 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2013 * Makefile.am: Rename serial.cc to method-serial.cc.
2014 * Makefile.in: Regenerate with automake 1.11.1.
2015 * testsuite/Makefile.in: Same.
2016 * aclocal.m4: Regenerate with aclocal 1.11.1.
2017 * method-serial.cc: Rename from serial.cc.
2018 * libitm_i.h (struct gtm_transaction): Update comment on
2021 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2023 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2024 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2026 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2028 * configure: Rebuild.
2030 2009-11-12 Richard Henderson <rth@redhat.com>
2032 * Rewrite everything in C++.
2034 2009-11-03 Richard Henderson <rth@redhat.com>
2036 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2037 * Makefile.am (libitm_la_SOURCES): Add them.
2038 * configure.ac (ARCH_X86): New conditional.
2039 * Makefile.in, configure: Rebuild.
2040 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2041 Move futex setup into "other system configury" case.
2042 * local.c (rollback_local): Merge into ...
2043 (GTM_rollback_local): ... here.
2044 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2045 (_ITM_LB): Define as an alias to GTM_LB.
2047 2009-11-03 Richard Henderson <rth@redhat.com>
2049 * method-readonly.c: New file.
2050 * Makefile.am (libitm_la_SOURCES): Add it.
2051 * Makefile.in: Rebuild.
2052 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2053 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2054 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2055 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2056 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2057 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2058 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2059 gtm_get_clock, gtm_inc_clock): New.
2060 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2061 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2062 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2063 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2064 replace uses with new libitm_i.h symbols.
2065 (dispatch_wbetl): Rename from wbetl_dispatch.
2066 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2067 away from dispatch_readonly; abort if the beginTransaction call
2068 asserted that the transaction was readonly.
2070 2009-11-03 Richard Henderson <rth@redhat.com>
2072 * memset.c: New file.
2073 * Makefile.am (libitm_la_SOURCES): Add it.
2074 * Makefile.in: Rebuild.
2075 * testsuite/libitm.c/memset-1.c: New.
2077 2009-11-03 Richard Henderson <rth@redhat.com>
2079 * dispatch.c: Remove file.
2080 * useraction.c (struct gtm_user_action): Move from libitm.h.
2081 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2082 (serial_memset, serial_memmove, serial_memcpy): Remove.
2083 (serial_W*, serial_R*): Remove.
2084 (serial_dispatch): Update to match.
2085 * configure.ac: Move Werror down below configure checks. Don't
2086 check for sys/loadavg.h, do check for malloc.h. Don't check for
2087 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2088 Use GCC_AC_FUNC_MMAP_BLACKLIST
2089 * libitm.h: Split out all internal items to...
2090 * libitm_i.h: ... here. New file.
2091 * copymask.c: New file.
2092 * local.c (struct gtm_local_undo): Move from libitm.h.
2093 (GTM_alloc_local): Rename from alloc_local; export.
2094 * memcpy.c: New file.
2095 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2096 * config/posix/page.c: New file.
2097 * config/posix/target_tls.h: Remove file.
2098 * barrier.c: New file.
2099 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2101 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2102 * method-wbetl.c: Rewrite for new cacheline methods.
2103 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2105 * config/alpha/sjlj.S: Fix typo.
2106 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2107 * config/alpha/copymask.c: New file.
2108 * config/alpha/target.h (CACHELINE_SIZE): New.
2109 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2111 * config/x86/target_i.h: Copy functions from x86/target.h.
2112 * config/x86/copymask.c: New file.
2113 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2114 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2115 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2116 * config/x86/target_tls.h: Move contents to target_i.h.
2118 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2119 * testsuite/libitm.c/memcpy-1.c: New.
2121 2009-10-22 Richard Henderson <rth@redhat.com>
2123 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2124 (AM_CCASFLAGS): New.
2125 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2126 saving/restoring _AC_ARG_VAR_PRECIOUS.
2127 * Makefile.in, aclocal.m4, config.h.in, configure,
2128 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2130 2009-10-22 Richard Henderson <rth@redhat.com>
2132 * testsuite/*: Update for new compiler syntax.
2134 2009-10-21 Richard Henderson <rth@redhat.com>
2136 * libitm.h (_ITM_abortReason): Add outerAbort.
2138 2009-08-03 Richard Henderson <rth@redhat.com>
2140 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2141 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2142 * method-wbetl.c (struct w_entry): Remove mask.
2143 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2146 2009-07-22 Richard Henderson <rth@redhat.com>
2148 * eh_cpp.c: New file.
2149 * Makefile.am (libitm_la_SOURCES): Add it.
2150 * Makefile.in: Rebuild.
2151 * beginend.c (GTM_rollback_transaction): Undo exception state.
2152 (GTM_trycommit_transaction): Mark inline.
2153 (GTM_trycommit_and_finalize_transaction): Split out from ...
2154 (_ITM_commitTransaction): ... here.
2155 (_ITM_commitTransactionEH): New function.
2156 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2157 cxa_unthrown, eh_in_flight; reorder.
2159 * testsuite/libitm.c++/c++.exp: New.
2160 * testsuite/libitm.c++/eh-1.C: New.
2162 * aatree.c (aa_free): Remove REGPARM.
2163 * aatree.h: Remove all REGPARM.
2165 2009-07-18 Richard Henderson <rth@redhat.com>
2167 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2168 * Makefile.am (libitm_la_SOURCES): Add them.
2169 * Makefile.in: Rebuild.
2170 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2171 (GTM_trycommit_transaction): Likewise.
2172 * libitm.h: Include aatree.h
2173 (struct gtm_alloc_action): New.
2174 (struct gtm_transaction): Add alloc_actions.
2175 (GTM_record_allocation, GTM_forget_allocation): Declare.
2176 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2177 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2178 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2179 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2180 _ZGTtdaPvRKSt9nothrow_t): Export.
2182 2009-07-18 Richard Henderson <rth@redhat.com>
2184 * target_tls.h: Move ...
2185 * config/posix/target_tls.h: ... here.
2187 2009-07-07 Richard Henderson <rth@redhat.com>
2189 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2191 2009-07-07 Richard Henderson <rth@redhat.com>
2195 2009-07-07 Richard Henderson <rth@redhat.com>
2197 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2198 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2200 * configure.tgt: Don't use -ftls-model for x86 linux.
2201 * libitm.h: Include target.h after standard includes.
2202 (_gtm_thr): Rename from gtm_thr.
2203 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2204 (gtm_disp, set_gtm_disp): New.
2205 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2206 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2207 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2209 2009-07-07 Richard Henderson <rth@redhat.com>
2211 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2213 2009-07-06 Richard Henderson <rth@redhat.com>
2215 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2216 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2217 (_ITM_beginTransaction): Take variadic arguments.
2218 (_ITM_registerThrownObject): Declare.
2219 * beginend.c, serial.c: Update.
2220 * libitm.map: Add _ITM_registerThrownObject.
2222 2009-01-28 Richard Henderson <rth@redhat.com>
2224 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2225 * Makefile.in: Rebuild.
2226 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2227 (GTM_restart_transaction): Fix uninstrumented code check.
2228 * retry.c (GTM_decide_retry_strategy): Add serial check.
2229 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2230 automatically go irrevokable when in serial mode.
2231 * clone.c: New file.
2232 * libitm.h, libitm.map: Update.
2234 2009-01-27 Richard Henderson <rth@redhat.com>
2236 * Makefile.am (LTCCASCOMPILE): Define.
2237 (libitm_la_SOURCES): Add methid-wbetl.c.
2238 * testsuite/Makefile.am: New
2239 * configure.ac: Add testsuite/Makefile.
2240 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2241 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2242 (_ITM_abortTransaction): Finalize implementation method; pass
2243 transaction properties to longjmp.
2244 (GTM_restart_transaction): Split out from ...
2245 (_ITM_commitTransaction): ... here.
2246 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2247 Move to config/x86/target.h.
2248 * config/linux/alpha/futex_bits.h: New.
2249 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2250 * config/x86/target.h: Disable target types for 32-bit.
2251 * config/alpha/sjlj.S, config/alpha/target.h: New.
2252 * libitm.h (struct gtm_dispatch): Add init, fini.
2253 (enum restart_reason): New.
2254 (struct gtm_transaction): Add method and restarts.
2255 * retry.c (GTM_decide_retry_strategy): Implement.
2256 * serial.c (serial_init, serial_fini): New.
2257 (GTM_serialmode): Finialize outgoing method.
2258 * method-wbetl.c: New.
2260 2008-12-09 Richard Henderson <rth@redhat.com>
2262 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2263 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2264 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2265 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2266 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2267 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2268 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2269 * serial.c (serial_R##T, serial_W##T): Likewise.
2271 2008-11-21 Richard Henderson <rth@redhat.com>
2275 Copyright (C) 2008-2020 Free Software Foundation, Inc.
2277 Copying and distribution of this file, with or without modification,
2278 are permitted in any medium without royalty provided the copyright
2279 notice and this notice are preserved.