1 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4 * configure.tgt: Avoid IE tls on *-*-musl*.
6 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8 * configure: Regenerate.
10 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
14 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
16 * configure.tgt: Handle *-*-uclinux*.
17 * configure: Regenerate.
19 2019-09-06 Florian Weimer <fweimer@redhat.com>
21 * configure: Regenerate.
23 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
26 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
27 scanning to conform to the GNU Coding Standards.
28 * configure: Regenerate.
30 2019-05-03 Jakub Jelinek <jakub@redhat.com>
32 * Makefile.am (finclude): Remove.
33 * Makefile.in: Regenerated.
35 2019-01-01 Jakub Jelinek <jakub@redhat.com>
37 Update copyright years.
39 2019-01-01 Jakub Jelinek <jakub@redhat.com>
41 * libitm.texi: Bump @copying's copyright year.
43 2018-12-16 Jakub Jelinek <jakub@redhat.com>
46 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
47 void * to void (*) (void *).
48 (_ITM_cxa_throw): Likewise.
49 * libitm.h (_ITM_cxa_throw): Likewise.
50 * libitm.texi (_ITM_cxa_throw): Likewise.
52 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
54 * config/powerpc/target.h (htm_available): Add support for
55 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
57 2018-10-31 Joseph Myers <joseph@codesourcery.com>
60 * Makefile.am: Include multilib.am.
61 (AUTOMAKE_OPTIONS): Add info-in-builddir.
62 (CLEANFILES): Remove libitm.info.
63 * configure.ac: Remove AC_PREREQ.
64 * testsuite/Makefile.am (RUNTEST): Remove quotes.
65 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
68 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
71 * method-serial.cc: Mark varible as potentially unused
74 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
76 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
77 absolute relocation in a shared library.
79 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
82 * config/linux/x86/tls.h (SEG_READ): Use the offset of
84 (SEG_WRITE): Likewise.
85 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
86 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
87 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
88 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
89 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
91 2018-05-17 Jason Merrill <jason@redhat.com>
93 * beginend.cc (save): Disable -Werror=deprecated-copy.
95 2018-05-02 Tom de Vries <tom@codesourcery.com>
98 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
100 2018-05-02 Tom de Vries <tom@codesourcery.com>
103 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
105 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
107 * config/x86/sjlj.S (_ITM_beginTransaction): Add
108 (__CET__ & 2) != 0 check for shadow stack.
109 (GTM_longjmp): Likewise.
111 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
113 * configure: Regenerated.
115 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
118 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
120 2018-04-19 Jakub Jelinek <jakub@redhat.com>
122 * configure: Regenerated.
124 2018-04-18 David Malcolm <dmalcolm@redhat.com>
127 * configure: Regenerate.
129 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
132 * configure: Regenerate.
134 2018-01-03 Jakub Jelinek <jakub@redhat.com>
136 Update copyright years.
138 * libitm.texi: Bump @copying's copyright year.
140 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
142 * Makefile.in: Regenerate.
143 * acinclude.m4: Add enable.m4 and cet.m4.
144 * config/x86/sjlj.S: Include cet.h.
145 (_ITM_beginTransaction): Add _CET_ENDBR.
146 Save Shadow Stack pointer.
147 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
148 * config/x86/target.h (struct gtm_jmpbuf):
149 Add new field for Shadow Stack pointer.
150 * configure: Regenerate.
151 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
152 * configure.ac: Update libtool_VERSION for x86.
153 * testsuite/Makefile.in: Regenerate.
155 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
157 * libitm/config/x86/target.h: Add new field (ssp).
158 * libitm/config/x86/sjlj.S: Change offsets.
160 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
162 * testsuite/lib/libitm.exp: Load scanlang.exp.
164 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
166 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
168 2017-01-21 Jakub Jelinek <jakub@redhat.com>
171 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
172 of cat to get version from BASE-VER file.
173 * testsuite/Makefile.in: Regenerated.
175 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
177 * config/x86/target.h (htm_available): Determine vendor from
178 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
180 2017-01-18 Torvald Riegel <triegel@redhat.com>
182 * config/x86/target.h (htm_available): Add check for some processors
183 on which TSX is broken.
185 2017-01-17 Jakub Jelinek <jakub@redhat.com>
188 * configure.ac: Add GCC_BASE_VER.
189 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
190 get version from BASE-VER file.
191 * testsuite/Makefile.in: Regenerated.
192 * configure: Regenerated.
193 * Makefile.in: Regenerated.
195 2017-01-04 Alan Modra <amodra@gmail.com>
197 * Makefile.in: Regenerate.
198 * testsuite/Makefile.in: Regenerate.
200 2017-01-01 Jakub Jelinek <jakub@redhat.com>
202 Update copyright years.
204 * libitm.texi: Bump @copying's copyright year.
206 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
208 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
209 * aclocal.m4: Regenerate.
210 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
211 LIBITM_CHECK_LINKER_HWCAP.
213 2016-11-15 Matthias Klose <doko@ubuntu.com>
215 * configure: Regenerate.
217 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
220 * util.cc (xmalloc): Use posix_memalign to allocate memory on
221 on cache line if requested.
223 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
225 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
226 function attribute to disable floating point in begin_transaction() on
228 * beginend.cc (begin_transaction): Use
229 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
231 2016-01-22 Torvald Riegel <triegel@redhat.com>
233 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
235 (htm_fastpath): Remove.
236 (gtm_thread::begin_transaction): Fix HTM fastpath.
237 (_ITM_commitTransaction): Adapt.
238 (_ITM_commitTransactionEH): Adapt.
239 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
241 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
242 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
243 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
244 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
245 * libitm/method-serial.cc (htm_mg): Adapt.
246 (gtm_thread::serialirr_mode): Adapt.
247 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
249 2016-01-21 Torvald Riegel <triegel@redhat.com>
251 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
254 2016-01-19 Richard Henderson <rth@redhat.com>
259 2016-01-13 Richard Henderson <rth@redhat.com>
261 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
262 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
263 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
264 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
265 * configure.ac (ARCH_AARCH64): New conditional.
266 (ARCH_PPC, ARCH_S390): Likewise.
267 * Makefile.in, configure: Rebuild.
269 * libitm.h (_ITM_TYPE_M128): Always define.
270 * vect64.cc: Split ...
271 * vect128.cc: ... out of...
272 * config/x86/x86_sse.cc: ... here.
273 * config/arm/neon.cc: New file.
275 2016-01-19 Torvald Riegel <triegel@redhat.com>
277 * local_type_traits: Remove file.
278 * libitm_i.h: Don't include it anymore.
279 (sized_integral): Remove.
281 2016-01-16 Torvald Riegel <triegel@redhat.com>
283 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
285 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
286 * libitm/testsuite/libitm.c/priv-1.c: New.
288 2015-01-15 Torvald Riegel <triegel@redhat.com>
290 testsuite/libitm.c++/libstdc++-safeexc.C: New.
292 2016-01-13 Torvald Riegel <triegel@redhat.com>
294 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
295 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
296 (gtm_rwlock::write_unlock): Likewise.
298 2016-01-13 Richard Henderson <rth@redhat.com>
300 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
301 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
302 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
303 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
304 * configure.ac (ARCH_AARCH64): New conditional.
305 (ARCH_PPC, ARCH_S390): Likewise.
306 * Makefile.in, configure: Rebuild.
308 * libitm.h (_ITM_TYPE_M128): Always define.
309 * vect64.cc: Split ...
310 * vect128.cc: ... out of...
311 * config/x86/x86_sse.cc: ... here.
312 * config/arm/neon.cc: New file.
314 2016-01-13 Torvald Riegel <triegel@redhat.com>
316 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
317 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
318 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
319 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
320 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
321 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
322 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
323 (serialirr_dispatch::snapshot_most_recent): New.
324 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
326 2016-01-12 Torvald Riegel <triegel@redhat.com>
328 * libitm_i.h (gtm_mask_stack): Remove.
329 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
330 * stmlock.h: Remove file.
331 * config/alpha/cacheline.h: Likewise.
332 * config/generic/cacheline.h: Likewise.
333 * config/powerpc/cacheline.h: Likewise.
334 * config/sparc/cacheline.h: Likewise.
335 * config/x86/cacheline.h: Likewise.
337 2016-01-04 Jakub Jelinek <jakub@redhat.com>
339 Update copyright years.
341 * libitm.texi: Bump @copying's copyright year.
343 2015-11-26 Torvald Riegel <triegel@redhat.com>
345 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
346 (ml_wt_dispatch::pre_write): Adapt.
347 (ml_wt_dispatch::pre_load): Likewise.
349 2015-11-22 Torvald Riegel <triegel@redhat.com>
351 * libitm_i.h (gtm_alloc_action): Remove union.
352 * testsuite/libitm.c/alloc-1.c: New.
354 2015-11-19 Torvald Riegel <triegel@redhat.com>
356 * testsuite/libitm.c++/eh-5.C: New.
357 * libitm.h (_ITM_cxa_free_exception): New.
358 * libitm.map (_ITM_cxa_free_exception): Add it.
359 * libitm.texi: Update ABI docs.
360 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
361 (gtm_transaction_cp::cxa_uncaught_count): Add.
362 (gtm_thread::cxa_unthrown): Remove.
363 (gtm_thread::cxa_uncaught_count_ptr): Add.
364 (gtm_thread::cxa_uncaught_count): Add.
365 (gtm_thread::drop_references_allocations): Rename to...
366 (gtm_thread::discard_allocation): ... this and adapt.
367 (gtm_thread::init_cpp_exceptions): New.
368 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
369 (gtm_thread::begin_transaction): Likewise.
370 (gtm_transaction_cp::save): Likewise.
371 (gtm_thread::trycommit): Likewise.
372 * eh_cpp.cc: Add overview comments.
373 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
374 (free_any_exception, _ITM_cxa_free_exception): New.
375 (gtm_thread::init_cpp_exceptions): Define.
376 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
377 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
378 (gtm_thread::revert_cpp_exceptions): Likewise.
380 2015-11-09 Torvald Riegel <triegel@redhat.com>
382 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
383 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
384 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
385 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
386 (gtm_thread::forget_allocations): New overload with size_t argument.
387 * alloc.c (gtm_thread::forget_allocation): Define new overload and
389 (gtm_thread::record_allocation): Adapt.
390 (gtm_thread::commit_allocations_1): Adapt.
391 (gtm_thread::commit_allocations_2): Adapt.
392 * testsuite/libitm.c++/newdelete.C: New.
394 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
395 Joseph Myers <joseph@codesourcery.com>
396 Mark Shinwell <shinwell@codesourcery.com>
397 Andrew Stubbs <ams@codesourcery.com>
398 Rich Felker <dalias@libc.org>
400 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
401 GTM_begin_transaction for compatibility with FDPIC.
403 2015-10-09 David Malcolm <dmalcolm@redhat.com>
405 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
408 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
411 * local_atomic (__always_inline): Rename to...
412 (__libitm_always_inline): ... this.
414 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
417 * config/powerpc/sjlj.S: Port to Xcode 2.5.
419 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
421 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
422 operands "op" and "val" to int.
424 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
426 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
427 "op" and "val" to int.
429 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
431 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
432 "op" and "val" to int.
434 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
436 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
437 Declare as static int.
438 (FUTEX_PRIVATE_FLAG): Remove L suffix.
439 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
441 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
443 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
446 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
448 * Makefile.in: Regenerated with automake-1.11.6.
449 * aclocal.m4: Likewise.
450 * configure: Likewise.
451 * testsuite/Makefile.in: Likewise.
453 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
455 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
456 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
458 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
461 * libitm.c/stackundo.c (test2): Make it static.
464 2015-01-05 Jakub Jelinek <jakub@redhat.com>
466 Update copyright years.
468 2015-01-05 Jakub Jelinek <jakub@redhat.com>
470 * libitm.texi: Bump @copying's copyright year.
472 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
474 * testsuite/lib/libitm.exp: Load target-utils.exp.
475 Move load of target-supports.exp earlier.
477 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
479 * configure.tgt (x86_64): Tune -m32 multilib to generic.
481 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
484 * configure: Regenerated.
486 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
489 * configure: Regenerate.
491 2014-10-06 Marek Polacek <polacek@redhat.com>
493 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
494 * testsuite/libitm.c/memset-1.c: Likewise.
496 2014-07-24 Richard Henderson <rth@redhat.com>
498 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
499 addressing mode in epilogue.
501 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
503 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
504 -mclear-hwcap instead.
505 * configure: Regenerate.
506 * clearcap.map: Remove.
508 2014-05-21 John Marino <gnugcc@marino.st>
510 * configure.tgt (*-*-dragonfly*): New target.
512 2014-05-19 Richard Henderson <rth@redhat.com>
514 * config/aarch64/sjlj.S: New file.
515 * config/aarch64/target.h: New file.
516 * configure.tgt: Enable aarch64.
518 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
520 * config/generic/asmcfi.h: Also check for
521 __GCC_HAVE_DWARF2_CFI_ASM.
523 2013-04-02 Richard Henderson <rth@redhat.com>
525 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
526 * config/arm/target.h, config/sh/target.h: Likewise.
527 * config/sparc/target.h, config/x86/target.h: Likewise.
529 2014-03-26 Jakub Jelinek <jakub@redhat.com>
531 * config/linux/futex_bits.h: Include errno.h.
532 (sys_futex0): If syscall returns -1, return -errno rather than
535 2014-03-26 Joseph Myers <joseph@codesourcery.com>
537 * libitm.texi (Index): Rename to Library Index.
539 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
542 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
543 (x86_avx.lo): Append -mavx to CXXFLAGS.
544 * Makefile.in: Regenerate.
546 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
548 Update copyright years
550 2014-01-02 Tobias Burnus <burnus@net-b.de>
552 * libitm.texi: Bump @copying's copyright year.
554 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
556 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
557 (FUNC): Define ELFv2 variant.
564 2013-09-20 Alan Modra <amodra@gmail.com>
566 * configure: Regenerate.
568 2013-08-30 Torvald Riegel <triegel@redhat.com>
570 * config/posix/rwlock.cc: Fix initialization order.
572 2013-08-30 Torvald Riegel <triegel@redhat.com>
574 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
575 (htm_fastpath): Assign an asm name.
576 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
578 (_ITM_actions): Likewise.
579 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
581 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
582 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
583 field to the start of the structure.
584 * config/linux/rwlock.h (gtm_rwlock): Update comments.
585 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
586 handling for custom HTM fast paths.
588 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
590 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
592 * configure.tgt: Add -msoft-float to XCFLAGS.
594 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
596 * configure.tgt: Add -msoft-float to XCFLAGS.
598 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
600 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
601 (htm_transaction_active): Enable zEC12 instructions in the
603 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
605 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
607 * acinclude.m4: Add htm asm check for s390.
608 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
609 * configure: Regenerate.
610 * config/s390/target.h: Remove __HTM__ check.
611 (htm_available): Call getauxval to get hwcaps and check whether
612 HTM is available or not.
614 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
616 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
617 * configure.ac: Use it.
618 (AC_CHECK_HEADERS): Check for sys/auxv.h.
619 (AC_CHECK_FUNCS): Check for getauxval.
620 * config.h.in, configure: Rebuild.
621 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
622 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
623 (USE_HTM_FASTPATH): Define.
624 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
625 _HTM_RETRIES) New macros.
626 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
627 htm_begin_success, htm_commit, htm_transaction_active): New functions.
629 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
631 * config/s390/target.h: Include htmintrin.h.
632 (_HTM_ITM_RETRIES): New macro definition.
633 (htm_available, htm_init, htm_begin, htm_begin_success)
634 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
636 2013-06-20 Iain Sandoe <iain@codesourcery.com>
637 Cesar Philippidis <cesar@codesourcery.com>
639 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
640 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
641 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
642 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
644 2013-06-20 Torvald Riegel <triegel@redhat.com>
646 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
647 (_ITM_getTransactionId): Same.
648 * config/x86/target.h (htm_transaction_active): New.
650 2013-06-20 Torvald Riegel <triegel@redhat.com>
653 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
656 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
659 * local_atomic (__always_inline): Always define our version.
660 (__calculate_memory_order): Mark inline.
661 (atomic_thread_fence): Ditto.
662 (atomic_signal_fence): Ditto.
663 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
664 (atomic_bool::atomic_flag_clear_explicit): Ditto.
665 (atomic_bool::atomic_flag_test_and_set): Ditto.
666 (atomic_bool::atomic_flag_clear): Ditto.
668 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
670 * config/s390/sjlj.S: New file.
671 * config/s390/target.h: New file.
672 * configure.tgt: Set options for S/390.
674 2013-03-23 Andi Kleen <ak@linux.intel.com>
676 * local_atomic (__always_inline): Add.
677 (__calculate_memory_order, atomic_thread_fence,
678 atomic_signal_fence, test_and_set, clear, store, load,
679 exchange, compare_exchange_weak, compare_exchange_strong,
680 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
681 Add __always_inline to force inlining.
683 2013-02-11 Iain Sandoe <iain@codesourcery.com>
684 Jack Howarth <howarth@bromo.med.uc.edu>
685 Patrick Marlier <patrick.marlier@gmail.com>
688 * alloc_cpp.cc: Enable function declarations on darwin.
689 * eh_cpp.cc: Likewise.
691 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
693 Update copyright years.
695 2012-11-09 Torvald Riegel <triegel@redhat.com>
697 * beginend.cc (htm_fastpath): New.
698 (gtm_thread::begin_transaction, _ITM_commitTransaction,
699 _ITM_commitTransactionEH): Add HTM fastpath handling.
700 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
701 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
702 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
703 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
704 * configure.tgt: Add -mrtm to XCFLAGS.
705 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
706 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
707 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
708 * retry.cc (parse_default_method): Add HTM method parsing.
709 (gtm_thread::number_of_threads_changed): Use HTM by default if
712 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
714 * configure: Regenerate.
716 2012-10-31 Richard Henderson <rth@redhat.com>
718 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
719 * configure.ac: Use it.
720 * config.h.in, configure: Rebuild.
721 * testsuite/Makefile.in: Rebuild.
723 2012-10-24 Torvald Riegel <triegel@redhat.com>
725 * libitm.texi: Clarify ABI requirements for data-logging functions.
727 2012-10-24 Torvald Riegel <triegel@redhat.com>
729 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
730 it requires serial mode instead of assuming that for certain
732 * dispatch.h (abi_dispatch::requires_serial): New.
733 (abi_dispatch::abi_dispatch): Adapt.
734 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
735 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
736 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
737 serial_dispatch::serial_dispatch,
738 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
740 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
742 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
743 and ia32 declarations some more.
744 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
746 2012-09-20 Jakub Jelinek <jakub@redhat.com>
749 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
750 * configure: Regenerate.
751 * Makefile.in: Regenerate.
753 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
755 * configure: Regenerated.
757 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
759 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
761 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
763 * eh_cpp.cc: Fix __cxa_end_catch declaration.
765 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
767 * configure: Regenerated.
769 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
772 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
775 2012-04-03 Tristan Gingold <gingold@adacore.com>
777 * configure: Regenerate.
779 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
782 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
784 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
786 * testsuite/lib/libitm.exp: load fortran-modules.exp
788 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790 * configure.tgt (*-*-irix6*): Remove.
792 2012-03-13 Torvald Riegel <triegel@redhat.com>
795 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
798 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
800 * configure.tgt (*-*-osf*): Remove.
801 * configure: Regenerate.
803 2012-03-05 Torvald Riegel <triegel@redhat.com>
805 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
806 memtransfer/memset if size isn't larger than zero.
808 2012-03-02 Torvald Riegel <triegel@redhat.com>
810 * libitm.texi: Link to specification and add a usage example.
812 2012-02-24 Torvald Riegel <triegel@redhat.com>
814 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
815 default dispatch for more than 1 thread to ml_wt.
817 2012-02-20 Torvald Riegel <triegel@redhat.com>
819 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
821 2012-02-20 Torvald Riegel <triegel@redhat.com>
823 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
825 2012-02-20 Torvald Riegel <triegel@redhat.com>
827 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
828 serial mode corner cases made obsolete by prior gtm_rwlock changes.
829 (gl_wt_dispatch.rollback): Same.
831 2012-02-20 Torvald Riegel <triegel@redhat.com>
833 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
835 2012-02-20 Torvald Riegel <triegel@redhat.com>
837 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
838 for RfW src. Optimize number of calls to gtm_thr.
840 2012-02-20 Torvald Riegel <triegel@redhat.com>
842 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
844 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
845 (default_dispatch): Make atomic.
846 (GTM::gtm_thread::set_default_dispatch): Access atomically.
847 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
848 use decide_begin_dispatch() if default_dispatch might have changed.
849 (GTM::gtm_thread::number_of_threads_changed): Initialize
850 default_dispatch here.
852 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
853 Patrick Marlier <patrick.marlier@gmail.com>
856 * alloc_cpp.cc: No dummy definitions for darwin.
857 * eh_cpp.cc: Likewise.
859 2012-02-14 Richard Henderson <rth@redhat.com>
861 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
863 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
865 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
867 2012-02-14 Torvald Riegel <triegel@redhat.com>
869 * libitm_i.h (GTM::gtm_rwlog_entry): New.
870 (GTM::gtm_thread): Add read and write logs.
871 (GTM::dispatch_ml_wt): Declare.
872 * retry.cc (parse_default_method): Support ml_wt.
873 * method-ml.cc: New file.
874 * Makefile.am: Add method-ml.cc.
875 * Makefile.in: Regenerate.
877 2012-02-14 Torvald Riegel <triegel@redhat.com>
879 * dispatch.h (GTM::abi_dispatch::supports): New.
880 (GTM::method_group::reinit): New.
881 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
882 (GTM::gtm_thread::number_of_threads_changed): Check that the method
883 supports the current situation.
885 2012-02-14 Torvald Riegel <triegel@redhat.com>
887 * util.cc (GTM::xcalloc): New.
888 * common.h (GTM::xcalloc): Declare.
890 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
892 * config/sparc/target.h (cpu_relax): Read from CC register.
893 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
895 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
897 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
899 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
901 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
902 * config/sparc/cacheline.h: New file.
903 * config/sparc/target.h: Likewise.
904 * config/sparc/sjlj.S: Likewise.
905 * config/linux/sparc/futex_bits.h: Likewise.
907 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
909 * configure.ac (link_itm): Fix comment.
910 * configure: Regenerate.
911 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
913 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
916 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
917 Correct libgomp references.
919 2012-01-24 Torvald Riegel <triegel@redhat.com>
921 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
924 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
926 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
928 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
929 offset values. Do not copy return address. Decrement stack
931 (GTM_longjump) [__x86_64__]: Update offset values.
933 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
936 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
937 the first function argument to %eax.
939 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941 * libitm.h (_ITM_getThreadnum): Remove.
942 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
944 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
946 * clearcap.map: New file.
947 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
948 * configure.ac: Call it.
949 Clear HWCAP_LDFLAGS if defaulting to -mavx.
950 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
951 * configure: Regenerate.
952 * Makefile.in: Regenerate.
953 * testsuite/Makefile.in: Regenerate.
955 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
958 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
959 include, exclude options.
961 2012-01-14 Torvald Riegel <triegel@redhat.com>
963 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
965 * containers.h (GTM::vector::set_size): New.
967 2012-01-14 Torvald Riegel <triegel@redhat.com>
970 * config/generic/tls.h (GTM::mask_stack_top): New.
971 (GTM::mask_stack_bottom): Declare.
972 * config/generic/tls.c (GTM::mask_stack_bottom): New.
973 * local.cc (gtm_undolog::rollback): Filter out any updates that
974 overlap the libitm stack. Add current transaction as parameter.
975 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
976 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
977 * testsuite/libitm.c/stackundo.c: New test.
979 2012-01-10 Richard Henderson <rth@redhat.com>
981 * libitm_i.h (_Unwind_DeleteException): Declare weak.
982 * eh_cpp.cc (_Unwind_DeleteException): Define for
983 !HAVE_ELF_STYLE_WEAKREF.
985 2012-01-08 Torvald Riegel <triegel@redhat.com>
987 * local.cc (GTM_LB): Use GTM::gtm_undolog.
988 (GTM::gtm_thread::drop_references_undolog): Remove.
989 (GTM::gtm_thread::commit_undolog,
990 GTM::gtm_thread::rollback_undolog): Move to ...
991 * libitm_i.h (GTM::gtm_undolog): ...here. New.
992 (GTM::gtm_undolog_entry): Remove.
993 (GTM::gtm_thread): Adapt.
994 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
995 (GTM::gtm_thread::trycommit): Adapt.
996 * method-serial.cc (serial_dispatch::log): Adapt.
997 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
998 (gl_wt_dispatch::store): Fix likely/unlikely.
999 * containers.h (GTM::vector::resize): Add additional_capacity
1000 parameter and handle it.
1001 (GTM::vector::resize_noinline): New/adapt.
1002 (GTM::vector::push): New.
1004 2012-01-06 Richard Henderson <rth@redhat.com>
1006 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1007 * config/linux/powerpc/futex_bits.h: New file.
1008 * config/powerpc/cacheline.h: New file.
1009 * config/powerpc/sjlj.S: New file.
1010 * config/powerpc/target.h: New file.
1011 * config/generic/asmcfi.h (cfi_offset): New.
1012 (cfi_restore, cfi_undefined): New.
1014 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1017 * testsuite/libitm.c/reentrant.c: Remove xfail.
1018 (thread): Pass x to pure().
1019 From Patrik Marlier <patrick.marlier@gmail.com>.
1021 2011-12-24 Torvald Riegel <triegel@redhat.com>
1023 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1024 privatization safety if already in serial mode.
1026 2011-12-24 Torvald Riegel <triegel@redhat.com>
1028 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1029 finish_serial_upgrade parameter.
1030 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1031 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1032 Don't unset reader flag.
1033 (GTM::gtm_rwlock::write_upgrade_finish): New.
1034 * config/posix/rwlock.cc: Same.
1035 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1037 * config/posix/rwlock.h: Same.
1038 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1039 flag after commit or after rollback when restarting.
1041 2011-12-24 Torvald Riegel <triegel@redhat.com>
1043 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1044 (GTM::gtm_thread::try_commit): Changed memory order.
1045 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1047 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1048 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1049 * config/linux/futex_bits.h (sys_futex0): Same.
1050 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1051 * config/linux/futex.h (futex_wait, futex_wake): Same.
1052 * config/linux/rwlock.h (gtm_rwlock::writers,
1053 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1055 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1056 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1057 gtm_rwlock::write_unlock): Fix memory orders and fences.
1058 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1059 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1060 gtm_rwlock::write_unlock): Same.
1061 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1062 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1063 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1065 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1066 gl_wt_dispatch::load, gl_wt_dispatch::store,
1067 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1068 orders and fences. Add comments.
1070 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1072 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1073 * Makefile.in: Regenerated.
1075 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1077 * configure.tgt: Add sh* case.
1078 * config/sh/target.h: New file.
1079 * config/sh/sjlj.S: New file.
1080 * config/linux/sh/futex_bits.h: New file.
1082 2011-12-14 Richard Henderson <rth@redhat.com>
1084 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1085 * config/arm/sjlj.S, config/arm/target.h: New files.
1086 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1087 (cfi_rel_offset): New.
1088 * config/linux/futex_bits.h: New file.
1089 * config/linux/futex.cc: Include futex_bits.h here...
1090 * config/linux/futex.h: ... not here.
1091 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1092 * configure.ac (ARCH_AM): New conditional.
1093 * Makefile.in, configure: Rebuild.
1094 * configure.tgt: Handle ARM.
1096 2011-12-13 Richard Henderson <rth@redhat.com>
1098 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1099 signed/unsigned comparison werror.
1101 * local_atomic: New file.
1102 * libitm_i.h: Include it.
1103 (gtm_thread::shared_state): Use atomic template.
1104 * beginend.cc (GTM::gtm_clock): Use atomic template.
1105 (global_tid): Use atomic template if 64-bit atomics available.
1106 (gtm_thread::gtm_thread): Update shared_state access.
1107 (gtm_thread::trycommit): Likewise.
1108 (choose_code_path): Update global_tid access.
1109 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1110 * stmlock.h (GTM::gtm_clock): Use atomic template.
1111 (gtm_get_clock, gtm_inc_clock): Update accesses.
1112 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1113 redundant __sync_synchronize after atomic shared_state access.
1114 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1115 (gtm_rwlock::write_lock_generic): Likewise.
1116 (gtm_rwlock::read_unlock): Likewise.
1117 * config/alpha/target.h (atomic_read_barrier): Remove.
1118 (atomic_write_barrier): Remove.
1119 * config/x86/target.h (atomic_read_barrier): Remove.
1120 (atomic_write_barrier): Remove.
1122 2011-11-30 Richard Henderson <rth@redhat.com>
1124 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1125 * beginend.c (_ITM_abortTransaction): Update to match.
1126 (GTM::gtm_thread::restart): Likewise.
1127 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1128 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1130 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1132 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1133 * Makefile.in: Regenerate.
1135 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1137 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1138 * alloc_cpp.cc: Generate dummy functions if we don't
1139 HAVE_ELF_STYLE_WEAKREF.
1140 * eh_cpp.cc: Likewise.
1141 * configure: Regenerate.
1142 * aclocal.m4: Likewise.
1143 * config.h.in: Likewise.
1144 * Makefile.in: Likewise.
1145 * testsuite/Makefile.in: Likewise.
1147 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1149 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1150 __USER_LABEL_PREFIX__ for targets that use it.
1151 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1152 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1153 in portability to non-elf targets.
1154 (GTM_longjmp): Likewise.
1155 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1158 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1160 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1161 * testsuite/libitm.c/memset-1.c: Likewise.
1163 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1165 * configure: Regenerate.
1167 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1170 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1171 * Makefile.am: Handle sun style versioning.
1172 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1173 * configure: Regenerate.
1174 * Makefile.in: Regenerate.
1176 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1178 * config/generic/asmcfi.h: Fix comment.
1179 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1180 sequence without .hidden support, error for non-ELF targets.
1181 (GTM_longjmp) [__ELF__]: Only use .hidden if
1182 HAVE_ATTRIBUTE_VISIBILITY.
1184 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1187 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1189 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1190 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1192 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1195 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1196 * configure: Regenerate.
1198 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1200 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1202 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1204 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1206 (.note.GNU-stack): Only use if __linux__.
1207 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1208 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1209 * testsuite/libitm.c/reentrant.c: Likewise.
1210 * testsuite/libitm.c/simple-2.c: Likewise.
1211 * testsuite/libitm.c/txrelease.c: Likewise.
1212 * testsuite/libitm.c++/static_ctor.C: Likewise.
1214 2011-11-10 Richard Henderson <rth@redhat.com>
1216 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1217 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1218 * configure.ac (ARCH_X86_AVX): New conditional.
1219 * Makefile.in, configure: Rebuild.
1221 2011-11-09 Richard Henderson <rth@redhat.com>
1223 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1224 * configure.ac: Use it.
1225 * config.h.in, configure: Rebuild.
1226 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1228 2011-11-09 Richard Henderson <rth@redhat.com>
1230 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1231 * config/alpha/unaligned.h: Remove file.
1232 * config/generic/unaligned.h: Remove file.
1233 * config/x86/unaligned.h: Remove file.
1234 * config/generic/cachepage.h: Remove file.
1235 * config/posix/cachepage.cc: Remove file.
1236 * config/generic/cacheline.cc: Remove file.
1237 * config/x86/cacheline.cc: Remove file.
1238 * config/generic/cacheline.h (gtm_cacheline): Remove the
1239 store_mask, copy_mask, copy_mask_wb methods.
1240 * config/x86/cacheline.h: Likewise.
1241 * config/alpha/cacheline.h: Fall back to generic after setting size.
1242 * config/generic/tls.cc (gtm_mask_stack): Remove.
1243 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1244 (GTM_vpalignr_table): Remove.
1245 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1246 (GTM_pshift_table): Remove.
1247 * config/libitm_i.h: Don't include cachepage.h.
1248 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1249 * Makefile.in, testsuite/Makefile.in: Rebuild.
1251 2011-11-09 Richard Henderson <rth@redhat.com>
1253 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1254 to emit branch prediction hint.
1256 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1257 Protect .note.GNU-stack with __linux__.
1259 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1260 * configure, aclocal.m4, config.h.in: Rebuild.
1261 * config/generic/asmcfi.h: New file.
1262 * config/x86/sjlj.S: Use it.
1264 2011-11-08 Richard Henderson <rth@redhat.com>
1266 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1268 2011-11-08 Richard Henderson <rth@redhat.com>
1270 * configure.tgt: Test correct directory for supported cpus.
1272 * configure.ac: Exit if unsupported.
1273 * configure: Rebuild.
1274 * configure.tgt: Delete boilerplate from libgomp for unsupported
1275 targets. Set UNSUPPORTED for unsupported targets.
1277 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279 * configure.tgt: Handle i386 like i[456]86.
1280 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1282 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1283 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1285 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1287 * method-wbetl.cc: Update copyright notice.
1293 * barrier.tpl: Same.
1294 * useraction.cc: Same.
1298 * config/generic/tls.cc: Same.
1299 * config/generic/cacheline.h: Same.
1300 * config/generic/cachepage.h: Same.
1301 * config/generic/cacheline.cc: Same.
1302 * config/generic/unaligned.h: Same.
1303 * config/x86/cacheline.h: Same.
1304 * config/x86/cacheline.cc: Same.
1305 * config/x86/unaligned.h: Same.
1306 * config/alpha/cacheline.h: Same.
1307 * config/alpha/unaligned.h: Same.
1308 * config/alpha/sjlj.S: Same.
1309 * config/posix/cachepage.cc: Same.
1310 * config/linux/futex.h: Same.
1311 * config/linux/alpha/futex_bits.h: Same.
1313 2011-11-04 Torvald Riegel <triegel@redhat.com>
1315 * libitm.texi: No cover text and invariant sections.
1317 2011-11-03 Richard Henderson <rth@redhat.com>
1319 * local_type_traits: New file.
1320 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1322 2011-11-03 Richard Henderson <rth@redhat.com>
1324 * configure.ac: Don't test for gfortran.
1325 * configure: Rebuild.
1327 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1328 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1330 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1332 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1333 * testsuite/libitm.c/memset-1.c: Same.
1334 * testsuite/libitm.c/c.exp: Same.
1335 * testsuite/lib/libitm-dg.exp: Same.
1336 * testsuite/lib/libitm.exp: Same.
1337 * testsuite/libitm.c++/c++.exp: Same.
1339 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1341 * testsuite/config/default.exp: Update copyright date.
1342 * configure.ac: Add copyright info.
1343 * configure.tgt: Same.
1345 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1347 * testsuite/libitm.c/reentrant.c: XFAIL.
1348 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1350 2011-10-29 Torvald Riegel <triegel@redhat.com>
1352 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1354 (_ITM_abortTransaction): Handle aborts of outer transactions.
1356 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1357 * libitm.texi: Document aborts of outer transactions.
1358 * testsuite/libitm.c/cancel.c: New file.
1360 2011-10-19 Torvald Riegel <triegel@redhat.com>
1362 * testsuite/*: Change __transaction to __transaction_atomic or
1363 __transaction_relaxed.
1365 2011-10-19 Torvald Riegel <triegel@redhat.com>
1367 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1370 2011-10-19 Torvald Riegel <triegel@redhat.com>
1372 * libitm_i.h: Add gl_wt dispatch.
1373 * retry.cc (parse_default_method): Same.
1374 * method-gl.cc: New file.
1375 * Makefile.am: Use method-gl.cc.
1376 * Makefile.in: Rebuild.
1378 2011-10-19 Torvald Riegel <triegel@redhat.com>
1380 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1381 safety if requested by a TM method.
1382 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1383 privatization safety.
1384 * method-serial.cc: Same.
1386 2011-10-19 Torvald Riegel <triegel@redhat.com>
1388 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1389 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1390 undolog-related member functions from *_local to *_undolog.
1391 * local.cc (gtm_thread::commit_undolog): Same.
1392 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1393 (GTM::gtm_thread::rollback): Roll back undolog before
1394 dispatch-specific rollback.
1396 2011-10-19 Torvald Riegel <triegel@redhat.com>
1398 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1399 re-initialization of the current method group.
1400 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1402 2011-10-19 Torvald Riegel <triegel@redhat.com>
1404 * alloc.cc (commit_allocations_2): Do not free transaction-local
1405 memory when committing a nested transaction.
1407 2011-10-19 Torvald Riegel <triegel@redhat.com>
1409 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1410 serial-irrevocable dispatch, not serial.
1412 2011-10-19 Torvald Riegel <triegel@redhat.com>
1414 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1416 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1417 * method-serial.cc: Implement begin_or_restart().
1418 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1419 dispatch-specific begin_or_restart().
1420 (GTM::gtm_thread::restart): Same.
1422 2011-08-23 Torvald Riegel <triegel@redhat.com>
1424 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1425 restarting without switching to serial mode.
1426 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1427 transaction state. Choose closed-nesting alternative if available.
1428 (GTM::gtm_thread::set_default_dispatch): New.
1429 (parse_default_method): New.
1430 (GTM::gtm_thread::number_of_threads_changed): New.
1431 * method-serial.cc (GTM::serial_mg): New method group class.
1432 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1434 (GTM::serial_dispatch): Same.
1435 (GTM::serialirr_onwrite_dispatch): Same.
1436 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1437 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1439 (GTM::gtm_thread::gtm_thread): Same.
1440 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1441 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1442 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1443 choose dispatch but set state according to dispatch here.
1444 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1445 (GTM::method_group): New class.
1446 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1447 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1448 * libitm.texi: Document TM methods, method groups, method life cycle.
1449 Rename method sets to method groups.
1451 2011-08-23 Torvald Riegel <triegel@redhat.com>
1453 * config/x86/tls.h: Moved to ...
1454 * config/linux/x86/tls.h: ... here.
1456 2011-08-23 Torvald Riegel <triegel@redhat.com>
1458 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1460 * config/x86/sjlj.S: Same.
1462 2011-08-19 Torvald Riegel <triegel@redhat.com>
1464 * config/linux/rwlock.h: New file.
1465 * config/linux/rwlock.c: New file.
1466 * configure.ac: Reenable futex support (undo SVN rev 157758).
1467 * Makefile.am: Same.
1468 * configure.tgt: Same.
1469 * config/linux/alpha/futex_bits.h: Same.
1470 * config/linux/futex.h: Same. Return number of woken processes.
1471 * config/linux/futex.cc: Same.
1472 (futex_wait): Remove spinning.
1473 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1474 Use __x86_64__ instead of __LP64__.
1475 * aclocal.m4: Include generic futex checks.
1476 * configure: Rebuild.
1477 * Makefile.in: Rebuild.
1478 * testsuite/Makefile.in: Rebuild.
1479 * beginend.cc: Include pthread.h.
1480 * config/posix/cachepage.cc: Same.
1482 2011-08-12 Torvald Riegel <triegel@redhat.com>
1484 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1485 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1487 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1489 (GTM::gtm_thread::thread_num): Removed.
1490 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1491 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1492 tx-to-thread renaming.
1493 * beginend.cc: Adapted to tx-to-thread renaming.
1494 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1495 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1496 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1497 gtm_transaction to gtm_thread.
1498 (_ITM_getThreadnum): Removed. Not supported anymore.
1499 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1500 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1501 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1502 gtm_tx-to-gtm_thr renaming if necessary.
1509 * alloc_cpp.cc: Same.
1510 * method-serial.cc: Same.
1511 * config/generic/tls.cc: Same.
1512 * config/posix/rwlock.h (gtm_rwlock): Same.
1513 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1515 2011-08-12 Torvald Riegel <triegel@redhat.com>
1517 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1519 (gtm_rwlock::read_unlock): Same.
1520 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1521 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1522 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1523 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1524 w_upgrade. Replaced by per-transaction flags (in shared_state).
1525 Added c_confirmed_writers.
1526 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1527 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1528 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1529 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1530 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1531 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1532 * libitm.texi: Document locking conventions and implementations in
1535 2011-08-12 Torvald Riegel <triegel@redhat.com>
1537 * libitm_i.h (next_tx): Add list of all threads' transaction.
1538 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1539 transaction with list of transactions and ...
1540 (thread_exit_handler): ... deregister here.
1541 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1542 * config/x86/target.h: Same.
1544 2011-08-12 Torvald Riegel <triegel@redhat.com>
1546 * testsuite/libitm.c++/static_ctor.C: New file.
1548 2011-08-12 Torvald Riegel <triegel@redhat.com>
1550 * testsuite/libitm.c/reentrant.c: New file.
1552 2011-08-12 Torvald Riegel <triegel@redhat.com>
1554 * config/generic/tls.h: Remove the free list for transactions and ...
1555 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1556 (GTM::gtm_transaction::operator delete): ... and release here.
1557 (thread_exit_handler): New. Delete tx when thread terminates.
1558 (thread_exit_init): New.
1559 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1560 * testsuite/libitm.c/txrelease.c: New file.
1562 2011-08-12 Torvald Riegel <triegel@redhat.com>
1564 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1565 * testsuite/libitm.c/notx.c: New file.
1567 2011-08-12 Torvald Riegel <triegel@redhat.com>
1569 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1570 * libitm_i.h (local_tid): ... to here.
1571 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1572 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1574 2011-08-12 Torvald Riegel <triegel@redhat.com>
1576 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1577 serialirr_onwrite_dispatch as new default for now.
1578 * method-serial.cc (serialirr_onwrite_dispatch): New.
1579 (GTM::dispatch_serialirr_onwrite): New.
1582 2011-08-12 Torvald Riegel <triegel@redhat.com>
1584 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1585 * query.cc (_ITM_getTransactionId): There is no active transaction if
1586 the current nesting level is zero.
1588 2011-07-28 Torvald Riegel <triegel@redhat.com>
1590 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1593 2011-07-28 Torvald Riegel <triegel@redhat.com>
1595 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1596 transaction properties from the caller instead of from the
1599 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1601 2011-07-28 Torvald Riegel <triegel@redhat.com>
1603 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1604 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1606 * method-serial.cc: Same.
1607 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1608 flat nesting as default, and closed nesting on demand.
1609 (GTM::gtm_transaction::rollback): Same.
1610 (_ITM_abortTransaction): Same.
1611 (GTM::gtm_transaction::restart): Same.
1612 (GTM::gtm_transaction::trycommit): Same.
1613 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1614 (choose_code_path): New.
1615 (GTM::gtm_transaction_cp::save): New.
1616 (GTM::gtm_transaction_cp::commit): New.
1617 * query.cc (_ITM_inTransaction): Support flat nesting.
1618 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1619 (GTM::gtm_transaction): Support flat and closed nesting.
1620 * alloc.cc (commit_allocations_2): New.
1621 (commit_cb_data): New helper struct.
1622 (GTM::gtm_transaction::commit_allocations): Handle nested
1624 * libitm.texi: Update user action section, add description of nesting.
1626 2011-07-28 Torvald Riegel <triegel@redhat.com>
1628 * libitm_i.h: Add closed nesting as restart reason.
1629 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1631 2011-07-28 Torvald Riegel <triegel@redhat.com>
1633 * useraction.cc: Use vector instead of list to store actions.
1634 Also support partial rollbacks for closed nesting.
1635 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1636 * beginend.cc: Same.
1638 2011-07-28 Torvald Riegel <triegel@redhat.com>
1640 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1641 closed_nesting flags, as well as a closed nesting alternative.
1642 * method-serial.cc: Same.
1643 (serial_dispatch): Renamed to serialirr_dispatch.
1644 (GTM::dispatch_serialirr): Same.
1645 (serial_dispatch_ul): Renamed to serial_dispatch.
1646 (GTM::dispatch_serial): Same.
1648 2011-07-28 Torvald Riegel <triegel@redhat.com>
1650 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1652 2011-07-28 Torvald Riegel <triegel@redhat.com>
1654 * aatree.h (aa_tree::remove): New.
1655 (aa_tree::operator new): Add placement new.
1657 2011-07-02 Torvald Riegel <triegel@redhat.com>
1659 * containers.h: New file.
1660 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1661 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1662 * common.h: ... to here.
1663 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1666 2011-06-30 Torvald Riegel <triegel@redhat.com>
1668 * libitm_i.h (STATE_ABORTING): Remove.
1669 * beginend.cc (_ITM_abortTransaction): Same.
1670 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1671 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1672 (_ITM_rollbackTransaction): Remove.
1673 * beginend.cc: Same.
1675 * libitm.texi: Document these ABI changes.
1677 2011-06-30 Torvald Riegel <triegel@redhat.com>
1679 * libitm.texi: New file.
1680 * Makefile.am: Add libitm.texi.
1681 * Makefile.in: Rebuild.
1683 2011-06-30 Torvald Riegel <triegel@redhat.com>
1685 * libitm_i.h: Move parts to common.h and dispatch.h.
1686 * common.h: New file.
1687 * dispatch.h: New file, new dispatch class.
1688 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1689 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1690 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1691 decision to retry.cc.
1692 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1694 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1695 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1697 * barrier.cc: Use new barriers definitions.
1698 (abi_dispatch::memmove_overlap_check): New.
1699 * config/x86/x86_sse.cc: Same.
1700 * config/x86/x86_avx.cc: Same.
1701 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1703 * Makefile.in: Rebuild.
1704 * method-readonly.cc: Remove.
1705 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1706 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1708 2011-06-30 Torvald Riegel <triegel@redhat.com>
1710 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1711 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1712 * testsuite/libitm.c/dropref-2.c: Same.
1713 * testsuite/libitm.c/dropref.c: Same.
1715 2011-06-30 Torvald Riegel <triegel@redhat.com>
1717 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1718 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1719 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1721 * barrier.tpl: Same.
1723 * config/generic/tls.h: Same.
1724 * config/x86/tls.h: Same.
1728 * method-readonly.cc: Same.
1729 * method-serial.cc: Same.
1730 * method-wbetl.cc: Same.
1733 2011-03-03 Richard Henderson <rth@redhat.com>
1735 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1736 From Patrik Marlier <patrick.marlier@unine.ch>.
1738 2011-02-03 Richard Henderson <rth@redhat.com>
1740 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1741 * configure.ac: Use it.
1742 * configure, config.h.in: Rebuild.
1743 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1744 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1745 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1746 * libitm.map: Use wildcards to match size_t mangling.
1748 2010-12-14 Richard Henderson <rth@redhat.com>
1750 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1751 blocks of TIDs per thread.
1752 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1753 (setup_gtm_thr): Return the thread structure.
1754 * config/x86/tls.h (setup_gtm_thr): Likewise.
1756 2010-12-14 Richard Henderson <rth@redhat.com>
1758 * clone.cc (table_lock): Remove.
1759 (find_clone): Don't take it.
1760 (ExcludeTransaction): New helper class.
1761 (_ITM_registerTMCloneTable): Use it.
1762 (_ITM_deregisterTMCloneTable): Likewise.
1764 2010-12-14 Richard Henderson <rth@redhat.com>
1766 * config/x86/tls.h: New file.
1768 2010-07-15 Richard Henderson <rth@redhat.com>
1770 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1771 * Makefile.in: Rebuild.
1773 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1775 * method-wbetl.cc (trydropreference): Fix source line.
1777 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1779 * libitm.h: Add comment.
1780 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1782 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1784 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1785 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1786 available, use pthread mutexes.
1787 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1788 * config.h.in: Regenerate.
1789 * configure: Regenerate.
1791 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1793 * libitm.h (ITM_PURE): Define.
1794 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1796 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1798 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1799 (validate): Add comment.
1800 (trydropreference): New.
1801 * method-readonly.cc (class readonly_dispatch): Add
1803 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1804 Call trydropreference().
1805 * libitm.h (_ITM_dropReferences): Remove const attribute.
1806 * method-serial.cc (class serial_dispatch): Add trydropreference.
1807 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1809 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1811 * memcpy.cc (do_memcpy): Comment.
1813 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1815 * barrier.tpl: Add comments throughout.
1817 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1819 * method-wbetl.cc (struct w_entry): Add comments.
1823 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1825 * alloc_c.cc (_ITM_dropReferences): New.
1826 * libitm.map (_ITM_dropReferences): Add.
1827 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1828 * libitm_i.h (struct gtm_transaction): Declare
1829 drop_references_allocations and drop_references_local.
1830 * local.cc (rollback_local): Ignore memory when applicable.
1831 (drop_references_local): New.
1833 2010-06-23 Richard Henderson <rth@redhat.com>
1835 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1836 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1837 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1838 * config/alpha/target.h: Likewise.
1839 * config/generic/tls.cc (gtm_mask_stack): Use it.
1841 2010-06-23 Richard Henderson <rth@redhat.com>
1843 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1844 a mutex instead of trying a lock-free compare-and-swap on the list.
1845 (gtm_cacheline_page::operator delete): Likewise.
1847 2010-06-16 Richard Henderson <rth@redhat.com>
1849 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1850 that overlap the libitm stack.
1851 * barrier.tpl: Mark incoming stack.
1852 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1853 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1854 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1855 * memcpy.cc, memset.cc: Likewise.
1856 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1857 * config/generic/tls.h (gtm_thread): Add stack_top member.
1858 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1859 * libitm_i.h (gtm_mask_stack): Declare.
1860 * config/generic/tls.cc: New file.
1861 * Makefile.am (libitm_la_SOURCES): Add it.
1862 (AM_CXXFLAGS): Turn off exceptions.
1863 * Makefile.in: Rebuild.
1865 2010-06-16 Richard Henderson <rth@redhat.com>
1867 * alloc.cc (struct gtm_alloc_action): Move definition ...
1868 * libitm_i.h: ... here.
1869 (class gtm_transaction): Declare new and delete.
1870 * beginend.cc (alloc_tx): Reformulate as operator new.
1871 (free_tx): Reformulate as operator delete.
1872 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1874 2010-06-11 Richard Henderson <rth@redhat.com>
1876 * clone.cc (clone_entry_compare): Fix typo.
1877 From Patrik Marlier <patrick.marlier@unine.ch>.
1879 2010-05-13 Richard Henderson <rth@redhat.com>
1881 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1884 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1886 * libitm_i.h (struct gtm_transaction): Remove
1887 get_allocation_size.
1888 (record_allocation): Remove size parameter.
1889 * libitm.map (_ITM_realloc): Remove.
1890 * alloc_c.cc (_ITM_realloc): Remove.
1891 (_ITM_malloc): Remove size argument to record_allocation.
1892 (_ITM_calloc): Same.
1893 * alloc_cpp.cc (_ZGTtnwm): Same.
1894 (_ZGTtnwmRKSt9nothrow_t): Same.
1896 (_ZGTtnamRKSt9nothrow_t): Same.
1897 * alloc.cc (struct gtm_alloc_action): Remove size.
1898 (get_allocation_size): Remove.
1899 (commit_allocations): Add comment.
1900 (record_allocation): Remove size parameter.
1901 (forget_allocation): Remove set of size.
1903 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1905 * Makefile.am (abi_version): New.
1906 (AM_CXXFLAGS): Pass abi_version.
1907 * Makefile.in: Regenerate.
1908 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1910 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1912 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1913 _ITM_getTMCloneOrIrrevokable.
1914 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1915 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1917 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1919 * configure.ac: Remove Linux futex support.
1920 * configure.tgt (config_path): Same.
1921 * Makefile.am: Same.
1922 * config/linux: Remove entire directory.
1923 * configure: Rebuild.
1924 * Makefile.in: Rebuild.
1925 * testsuite/Makefile.in: Rebuild.
1927 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1929 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1930 switching to serial mode.
1931 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1933 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1935 * configure.tgt: Add emacs -*- tags.
1936 * barrier.tpl: Same.
1938 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1940 * Makefile.am: Rename serial.cc to method-serial.cc.
1941 * Makefile.in: Regenerate with automake 1.11.1.
1942 * testsuite/Makefile.in: Same.
1943 * aclocal.m4: Regenerate with aclocal 1.11.1.
1944 * method-serial.cc: Rename from serial.cc.
1945 * libitm_i.h (struct gtm_transaction): Update comment on
1948 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1950 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1951 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1953 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1955 * configure: Rebuild.
1957 2009-11-12 Richard Henderson <rth@redhat.com>
1959 * Rewrite everything in C++.
1961 2009-11-03 Richard Henderson <rth@redhat.com>
1963 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1964 * Makefile.am (libitm_la_SOURCES): Add them.
1965 * configure.ac (ARCH_X86): New conditional.
1966 * Makefile.in, configure: Rebuild.
1967 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1968 Move futex setup into "other system configury" case.
1969 * local.c (rollback_local): Merge into ...
1970 (GTM_rollback_local): ... here.
1971 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1972 (_ITM_LB): Define as an alias to GTM_LB.
1974 2009-11-03 Richard Henderson <rth@redhat.com>
1976 * method-readonly.c: New file.
1977 * Makefile.am (libitm_la_SOURCES): Add it.
1978 * Makefile.in: Rebuild.
1979 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1980 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1981 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1982 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1983 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1984 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1985 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1986 gtm_get_clock, gtm_inc_clock): New.
1987 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1988 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1989 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1990 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1991 replace uses with new libitm_i.h symbols.
1992 (dispatch_wbetl): Rename from wbetl_dispatch.
1993 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1994 away from dispatch_readonly; abort if the beginTransaction call
1995 asserted that the transaction was readonly.
1997 2009-11-03 Richard Henderson <rth@redhat.com>
1999 * memset.c: New file.
2000 * Makefile.am (libitm_la_SOURCES): Add it.
2001 * Makefile.in: Rebuild.
2002 * testsuite/libitm.c/memset-1.c: New.
2004 2009-11-03 Richard Henderson <rth@redhat.com>
2006 * dispatch.c: Remove file.
2007 * useraction.c (struct gtm_user_action): Move from libitm.h.
2008 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2009 (serial_memset, serial_memmove, serial_memcpy): Remove.
2010 (serial_W*, serial_R*): Remove.
2011 (serial_dispatch): Update to match.
2012 * configure.ac: Move Werror down below configure checks. Don't
2013 check for sys/loadavg.h, do check for malloc.h. Don't check for
2014 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2015 Use GCC_AC_FUNC_MMAP_BLACKLIST
2016 * libitm.h: Split out all internal items to...
2017 * libitm_i.h: ... here. New file.
2018 * copymask.c: New file.
2019 * local.c (struct gtm_local_undo): Move from libitm.h.
2020 (GTM_alloc_local): Rename from alloc_local; export.
2021 * memcpy.c: New file.
2022 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2023 * config/posix/page.c: New file.
2024 * config/posix/target_tls.h: Remove file.
2025 * barrier.c: New file.
2026 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2028 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2029 * method-wbetl.c: Rewrite for new cacheline methods.
2030 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2032 * config/alpha/sjlj.S: Fix typo.
2033 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2034 * config/alpha/copymask.c: New file.
2035 * config/alpha/target.h (CACHELINE_SIZE): New.
2036 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2038 * config/x86/target_i.h: Copy functions from x86/target.h.
2039 * config/x86/copymask.c: New file.
2040 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2041 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2042 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2043 * config/x86/target_tls.h: Move contents to target_i.h.
2045 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2046 * testsuite/libitm.c/memcpy-1.c: New.
2048 2009-10-22 Richard Henderson <rth@redhat.com>
2050 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2051 (AM_CCASFLAGS): New.
2052 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2053 saving/restoring _AC_ARG_VAR_PRECIOUS.
2054 * Makefile.in, aclocal.m4, config.h.in, configure,
2055 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2057 2009-10-22 Richard Henderson <rth@redhat.com>
2059 * testsuite/*: Update for new compiler syntax.
2061 2009-10-21 Richard Henderson <rth@redhat.com>
2063 * libitm.h (_ITM_abortReason): Add outerAbort.
2065 2009-08-03 Richard Henderson <rth@redhat.com>
2067 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2068 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2069 * method-wbetl.c (struct w_entry): Remove mask.
2070 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2073 2009-07-22 Richard Henderson <rth@redhat.com>
2075 * eh_cpp.c: New file.
2076 * Makefile.am (libitm_la_SOURCES): Add it.
2077 * Makefile.in: Rebuild.
2078 * beginend.c (GTM_rollback_transaction): Undo exception state.
2079 (GTM_trycommit_transaction): Mark inline.
2080 (GTM_trycommit_and_finalize_transaction): Split out from ...
2081 (_ITM_commitTransaction): ... here.
2082 (_ITM_commitTransactionEH): New function.
2083 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2084 cxa_unthrown, eh_in_flight; reorder.
2086 * testsuite/libitm.c++/c++.exp: New.
2087 * testsuite/libitm.c++/eh-1.C: New.
2089 * aatree.c (aa_free): Remove REGPARM.
2090 * aatree.h: Remove all REGPARM.
2092 2009-07-18 Richard Henderson <rth@redhat.com>
2094 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2095 * Makefile.am (libitm_la_SOURCES): Add them.
2096 * Makefile.in: Rebuild.
2097 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2098 (GTM_trycommit_transaction): Likewise.
2099 * libitm.h: Include aatree.h
2100 (struct gtm_alloc_action): New.
2101 (struct gtm_transaction): Add alloc_actions.
2102 (GTM_record_allocation, GTM_forget_allocation): Declare.
2103 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2104 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2105 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2106 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2107 _ZGTtdaPvRKSt9nothrow_t): Export.
2109 2009-07-18 Richard Henderson <rth@redhat.com>
2111 * target_tls.h: Move ...
2112 * config/posix/target_tls.h: ... here.
2114 2009-07-07 Richard Henderson <rth@redhat.com>
2116 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2118 2009-07-07 Richard Henderson <rth@redhat.com>
2122 2009-07-07 Richard Henderson <rth@redhat.com>
2124 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2125 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2127 * configure.tgt: Don't use -ftls-model for x86 linux.
2128 * libitm.h: Include target.h after standard includes.
2129 (_gtm_thr): Rename from gtm_thr.
2130 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2131 (gtm_disp, set_gtm_disp): New.
2132 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2133 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2134 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2136 2009-07-07 Richard Henderson <rth@redhat.com>
2138 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2140 2009-07-06 Richard Henderson <rth@redhat.com>
2142 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2143 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2144 (_ITM_beginTransaction): Take variadic arguments.
2145 (_ITM_registerThrownObject): Declare.
2146 * beginend.c, serial.c: Update.
2147 * libitm.map: Add _ITM_registerThrownObject.
2149 2009-01-28 Richard Henderson <rth@redhat.com>
2151 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2152 * Makefile.in: Rebuild.
2153 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2154 (GTM_restart_transaction): Fix uninstrumented code check.
2155 * retry.c (GTM_decide_retry_strategy): Add serial check.
2156 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2157 automatically go irrevokable when in serial mode.
2158 * clone.c: New file.
2159 * libitm.h, libitm.map: Update.
2161 2009-01-27 Richard Henderson <rth@redhat.com>
2163 * Makefile.am (LTCCASCOMPILE): Define.
2164 (libitm_la_SOURCES): Add methid-wbetl.c.
2165 * testsuite/Makefile.am: New
2166 * configure.ac: Add testsuite/Makefile.
2167 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2168 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2169 (_ITM_abortTransaction): Finalize implementation method; pass
2170 transaction properties to longjmp.
2171 (GTM_restart_transaction): Split out from ...
2172 (_ITM_commitTransaction): ... here.
2173 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2174 Move to config/x86/target.h.
2175 * config/linux/alpha/futex_bits.h: New.
2176 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2177 * config/x86/target.h: Disable target types for 32-bit.
2178 * config/alpha/sjlj.S, config/alpha/target.h: New.
2179 * libitm.h (struct gtm_dispatch): Add init, fini.
2180 (enum restart_reason): New.
2181 (struct gtm_transaction): Add method and restarts.
2182 * retry.c (GTM_decide_retry_strategy): Implement.
2183 * serial.c (serial_init, serial_fini): New.
2184 (GTM_serialmode): Finialize outgoing method.
2185 * method-wbetl.c: New.
2187 2008-12-09 Richard Henderson <rth@redhat.com>
2189 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2190 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2191 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2192 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2193 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2194 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2195 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2196 * serial.c (serial_R##T, serial_W##T): Likewise.
2198 2008-11-21 Richard Henderson <rth@redhat.com>
2202 Copyright (C) 2008-2019 Free Software Foundation, Inc.
2204 Copying and distribution of this file, with or without modification,
2205 are permitted in any medium without royalty provided the copyright
2206 notice and this notice are preserved.