1 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
4 * method-serial.cc: Mark varible as potentially unused
7 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
9 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
10 absolute relocation in a shared library.
12 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15 * config/linux/x86/tls.h (SEG_READ): Use the offset of
17 (SEG_WRITE): Likewise.
18 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
19 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
20 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
21 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
22 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
24 2018-05-17 Jason Merrill <jason@redhat.com>
26 * beginend.cc (save): Disable -Werror=deprecated-copy.
28 2018-05-02 Tom de Vries <tom@codesourcery.com>
31 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
33 2018-05-02 Tom de Vries <tom@codesourcery.com>
36 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
38 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
40 * config/x86/sjlj.S (_ITM_beginTransaction): Add
41 (__CET__ & 2) != 0 check for shadow stack.
42 (GTM_longjmp): Likewise.
44 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
46 * configure: Regenerated.
48 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
51 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
53 2018-04-19 Jakub Jelinek <jakub@redhat.com>
55 * configure: Regenerated.
57 2018-04-18 David Malcolm <dmalcolm@redhat.com>
60 * configure: Regenerate.
62 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
65 * configure: Regenerate.
67 2018-01-03 Jakub Jelinek <jakub@redhat.com>
69 Update copyright years.
71 * libitm.texi: Bump @copying's copyright year.
73 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
75 * Makefile.in: Regenerate.
76 * acinclude.m4: Add enable.m4 and cet.m4.
77 * config/x86/sjlj.S: Include cet.h.
78 (_ITM_beginTransaction): Add _CET_ENDBR.
79 Save Shadow Stack pointer.
80 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
81 * config/x86/target.h (struct gtm_jmpbuf):
82 Add new field for Shadow Stack pointer.
83 * configure: Regenerate.
84 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
85 * configure.ac: Update libtool_VERSION for x86.
86 * testsuite/Makefile.in: Regenerate.
88 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
90 * libitm/config/x86/target.h: Add new field (ssp).
91 * libitm/config/x86/sjlj.S: Change offsets.
93 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
95 * testsuite/lib/libitm.exp: Load scanlang.exp.
97 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
99 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
101 2017-01-21 Jakub Jelinek <jakub@redhat.com>
104 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
105 of cat to get version from BASE-VER file.
106 * testsuite/Makefile.in: Regenerated.
108 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
110 * config/x86/target.h (htm_available): Determine vendor from
111 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
113 2017-01-18 Torvald Riegel <triegel@redhat.com>
115 * config/x86/target.h (htm_available): Add check for some processors
116 on which TSX is broken.
118 2017-01-17 Jakub Jelinek <jakub@redhat.com>
121 * configure.ac: Add GCC_BASE_VER.
122 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
123 get version from BASE-VER file.
124 * testsuite/Makefile.in: Regenerated.
125 * configure: Regenerated.
126 * Makefile.in: Regenerated.
128 2017-01-04 Alan Modra <amodra@gmail.com>
130 * Makefile.in: Regenerate.
131 * testsuite/Makefile.in: Regenerate.
133 2017-01-01 Jakub Jelinek <jakub@redhat.com>
135 Update copyright years.
137 * libitm.texi: Bump @copying's copyright year.
139 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
142 * aclocal.m4: Regenerate.
143 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
144 LIBITM_CHECK_LINKER_HWCAP.
146 2016-11-15 Matthias Klose <doko@ubuntu.com>
148 * configure: Regenerate.
150 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
153 * util.cc (xmalloc): Use posix_memalign to allocate memory on
154 on cache line if requested.
156 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
158 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
159 function attribute to disable floating point in begin_transaction() on
161 * beginend.cc (begin_transaction): Use
162 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
164 2016-01-22 Torvald Riegel <triegel@redhat.com>
166 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
168 (htm_fastpath): Remove.
169 (gtm_thread::begin_transaction): Fix HTM fastpath.
170 (_ITM_commitTransaction): Adapt.
171 (_ITM_commitTransactionEH): Adapt.
172 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
174 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
175 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
176 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
177 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
178 * libitm/method-serial.cc (htm_mg): Adapt.
179 (gtm_thread::serialirr_mode): Adapt.
180 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
182 2016-01-21 Torvald Riegel <triegel@redhat.com>
184 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
187 2016-01-19 Richard Henderson <rth@redhat.com>
192 2016-01-13 Richard Henderson <rth@redhat.com>
194 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
195 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
196 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
197 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
198 * configure.ac (ARCH_AARCH64): New conditional.
199 (ARCH_PPC, ARCH_S390): Likewise.
200 * Makefile.in, configure: Rebuild.
202 * libitm.h (_ITM_TYPE_M128): Always define.
203 * vect64.cc: Split ...
204 * vect128.cc: ... out of...
205 * config/x86/x86_sse.cc: ... here.
206 * config/arm/neon.cc: New file.
208 2016-01-19 Torvald Riegel <triegel@redhat.com>
210 * local_type_traits: Remove file.
211 * libitm_i.h: Don't include it anymore.
212 (sized_integral): Remove.
214 2016-01-16 Torvald Riegel <triegel@redhat.com>
216 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
218 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
219 * libitm/testsuite/libitm.c/priv-1.c: New.
221 2015-01-15 Torvald Riegel <triegel@redhat.com>
223 testsuite/libitm.c++/libstdc++-safeexc.C: New.
225 2016-01-13 Torvald Riegel <triegel@redhat.com>
227 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
228 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
229 (gtm_rwlock::write_unlock): Likewise.
231 2016-01-13 Richard Henderson <rth@redhat.com>
233 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
234 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
235 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
236 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
237 * configure.ac (ARCH_AARCH64): New conditional.
238 (ARCH_PPC, ARCH_S390): Likewise.
239 * Makefile.in, configure: Rebuild.
241 * libitm.h (_ITM_TYPE_M128): Always define.
242 * vect64.cc: Split ...
243 * vect128.cc: ... out of...
244 * config/x86/x86_sse.cc: ... here.
245 * config/arm/neon.cc: New file.
247 2016-01-13 Torvald Riegel <triegel@redhat.com>
249 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
250 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
251 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
252 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
253 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
254 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
255 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
256 (serialirr_dispatch::snapshot_most_recent): New.
257 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
259 2016-01-12 Torvald Riegel <triegel@redhat.com>
261 * libitm_i.h (gtm_mask_stack): Remove.
262 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
263 * stmlock.h: Remove file.
264 * config/alpha/cacheline.h: Likewise.
265 * config/generic/cacheline.h: Likewise.
266 * config/powerpc/cacheline.h: Likewise.
267 * config/sparc/cacheline.h: Likewise.
268 * config/x86/cacheline.h: Likewise.
270 2016-01-04 Jakub Jelinek <jakub@redhat.com>
272 Update copyright years.
274 * libitm.texi: Bump @copying's copyright year.
276 2015-11-26 Torvald Riegel <triegel@redhat.com>
278 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
279 (ml_wt_dispatch::pre_write): Adapt.
280 (ml_wt_dispatch::pre_load): Likewise.
282 2015-11-22 Torvald Riegel <triegel@redhat.com>
284 * libitm_i.h (gtm_alloc_action): Remove union.
285 * testsuite/libitm.c/alloc-1.c: New.
287 2015-11-19 Torvald Riegel <triegel@redhat.com>
289 * testsuite/libitm.c++/eh-5.C: New.
290 * libitm.h (_ITM_cxa_free_exception): New.
291 * libitm.map (_ITM_cxa_free_exception): Add it.
292 * libitm.texi: Update ABI docs.
293 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
294 (gtm_transaction_cp::cxa_uncaught_count): Add.
295 (gtm_thread::cxa_unthrown): Remove.
296 (gtm_thread::cxa_uncaught_count_ptr): Add.
297 (gtm_thread::cxa_uncaught_count): Add.
298 (gtm_thread::drop_references_allocations): Rename to...
299 (gtm_thread::discard_allocation): ... this and adapt.
300 (gtm_thread::init_cpp_exceptions): New.
301 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
302 (gtm_thread::begin_transaction): Likewise.
303 (gtm_transaction_cp::save): Likewise.
304 (gtm_thread::trycommit): Likewise.
305 * eh_cpp.cc: Add overview comments.
306 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
307 (free_any_exception, _ITM_cxa_free_exception): New.
308 (gtm_thread::init_cpp_exceptions): Define.
309 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
310 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
311 (gtm_thread::revert_cpp_exceptions): Likewise.
313 2015-11-09 Torvald Riegel <triegel@redhat.com>
315 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
316 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
317 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
318 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
319 (gtm_thread::forget_allocations): New overload with size_t argument.
320 * alloc.c (gtm_thread::forget_allocation): Define new overload and
322 (gtm_thread::record_allocation): Adapt.
323 (gtm_thread::commit_allocations_1): Adapt.
324 (gtm_thread::commit_allocations_2): Adapt.
325 * testsuite/libitm.c++/newdelete.C: New.
327 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
328 Joseph Myers <joseph@codesourcery.com>
329 Mark Shinwell <shinwell@codesourcery.com>
330 Andrew Stubbs <ams@codesourcery.com>
331 Rich Felker <dalias@libc.org>
333 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
334 GTM_begin_transaction for compatibility with FDPIC.
336 2015-10-09 David Malcolm <dmalcolm@redhat.com>
338 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
341 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
344 * local_atomic (__always_inline): Rename to...
345 (__libitm_always_inline): ... this.
347 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
350 * config/powerpc/sjlj.S: Port to Xcode 2.5.
352 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
354 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
355 operands "op" and "val" to int.
357 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
359 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
360 "op" and "val" to int.
362 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
364 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
365 "op" and "val" to int.
367 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
369 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
370 Declare as static int.
371 (FUTEX_PRIVATE_FLAG): Remove L suffix.
372 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
374 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
376 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
379 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
381 * Makefile.in: Regenerated with automake-1.11.6.
382 * aclocal.m4: Likewise.
383 * configure: Likewise.
384 * testsuite/Makefile.in: Likewise.
386 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
388 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
389 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
391 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
394 * libitm.c/stackundo.c (test2): Make it static.
397 2015-01-05 Jakub Jelinek <jakub@redhat.com>
399 Update copyright years.
401 2015-01-05 Jakub Jelinek <jakub@redhat.com>
403 * libitm.texi: Bump @copying's copyright year.
405 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
407 * testsuite/lib/libitm.exp: Load target-utils.exp.
408 Move load of target-supports.exp earlier.
410 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
412 * configure.tgt (x86_64): Tune -m32 multilib to generic.
414 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
417 * configure: Regenerated.
419 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
422 * configure: Regenerate.
424 2014-10-06 Marek Polacek <polacek@redhat.com>
426 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
427 * testsuite/libitm.c/memset-1.c: Likewise.
429 2014-07-24 Richard Henderson <rth@redhat.com>
431 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
432 addressing mode in epilogue.
434 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
436 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
437 -mclear-hwcap instead.
438 * configure: Regenerate.
439 * clearcap.map: Remove.
441 2014-05-21 John Marino <gnugcc@marino.st>
443 * configure.tgt (*-*-dragonfly*): New target.
445 2014-05-19 Richard Henderson <rth@redhat.com>
447 * config/aarch64/sjlj.S: New file.
448 * config/aarch64/target.h: New file.
449 * configure.tgt: Enable aarch64.
451 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
453 * config/generic/asmcfi.h: Also check for
454 __GCC_HAVE_DWARF2_CFI_ASM.
456 2013-04-02 Richard Henderson <rth@redhat.com>
458 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
459 * config/arm/target.h, config/sh/target.h: Likewise.
460 * config/sparc/target.h, config/x86/target.h: Likewise.
462 2014-03-26 Jakub Jelinek <jakub@redhat.com>
464 * config/linux/futex_bits.h: Include errno.h.
465 (sys_futex0): If syscall returns -1, return -errno rather than
468 2014-03-26 Joseph Myers <joseph@codesourcery.com>
470 * libitm.texi (Index): Rename to Library Index.
472 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
475 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
476 (x86_avx.lo): Append -mavx to CXXFLAGS.
477 * Makefile.in: Regenerate.
479 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
481 Update copyright years
483 2014-01-02 Tobias Burnus <burnus@net-b.de>
485 * libitm.texi: Bump @copying's copyright year.
487 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
489 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
490 (FUNC): Define ELFv2 variant.
497 2013-09-20 Alan Modra <amodra@gmail.com>
499 * configure: Regenerate.
501 2013-08-30 Torvald Riegel <triegel@redhat.com>
503 * config/posix/rwlock.cc: Fix initialization order.
505 2013-08-30 Torvald Riegel <triegel@redhat.com>
507 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
508 (htm_fastpath): Assign an asm name.
509 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
511 (_ITM_actions): Likewise.
512 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
514 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
515 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
516 field to the start of the structure.
517 * config/linux/rwlock.h (gtm_rwlock): Update comments.
518 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
519 handling for custom HTM fast paths.
521 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
523 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
525 * configure.tgt: Add -msoft-float to XCFLAGS.
527 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
529 * configure.tgt: Add -msoft-float to XCFLAGS.
531 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
533 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
534 (htm_transaction_active): Enable zEC12 instructions in the
536 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
538 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
540 * acinclude.m4: Add htm asm check for s390.
541 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
542 * configure: Regenerate.
543 * config/s390/target.h: Remove __HTM__ check.
544 (htm_available): Call getauxval to get hwcaps and check whether
545 HTM is available or not.
547 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
549 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
550 * configure.ac: Use it.
551 (AC_CHECK_HEADERS): Check for sys/auxv.h.
552 (AC_CHECK_FUNCS): Check for getauxval.
553 * config.h.in, configure: Rebuild.
554 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
555 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
556 (USE_HTM_FASTPATH): Define.
557 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
558 _HTM_RETRIES) New macros.
559 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
560 htm_begin_success, htm_commit, htm_transaction_active): New functions.
562 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
564 * config/s390/target.h: Include htmintrin.h.
565 (_HTM_ITM_RETRIES): New macro definition.
566 (htm_available, htm_init, htm_begin, htm_begin_success)
567 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
569 2013-06-20 Iain Sandoe <iain@codesourcery.com>
570 Cesar Philippidis <cesar@codesourcery.com>
572 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
573 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
574 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
575 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
577 2013-06-20 Torvald Riegel <triegel@redhat.com>
579 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
580 (_ITM_getTransactionId): Same.
581 * config/x86/target.h (htm_transaction_active): New.
583 2013-06-20 Torvald Riegel <triegel@redhat.com>
586 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
589 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
592 * local_atomic (__always_inline): Always define our version.
593 (__calculate_memory_order): Mark inline.
594 (atomic_thread_fence): Ditto.
595 (atomic_signal_fence): Ditto.
596 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
597 (atomic_bool::atomic_flag_clear_explicit): Ditto.
598 (atomic_bool::atomic_flag_test_and_set): Ditto.
599 (atomic_bool::atomic_flag_clear): Ditto.
601 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
603 * config/s390/sjlj.S: New file.
604 * config/s390/target.h: New file.
605 * configure.tgt: Set options for S/390.
607 2013-03-23 Andi Kleen <ak@linux.intel.com>
609 * local_atomic (__always_inline): Add.
610 (__calculate_memory_order, atomic_thread_fence,
611 atomic_signal_fence, test_and_set, clear, store, load,
612 exchange, compare_exchange_weak, compare_exchange_strong,
613 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
614 Add __always_inline to force inlining.
616 2013-02-11 Iain Sandoe <iain@codesourcery.com>
617 Jack Howarth <howarth@bromo.med.uc.edu>
618 Patrick Marlier <patrick.marlier@gmail.com>
621 * alloc_cpp.cc: Enable function declarations on darwin.
622 * eh_cpp.cc: Likewise.
624 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
626 Update copyright years.
628 2012-11-09 Torvald Riegel <triegel@redhat.com>
630 * beginend.cc (htm_fastpath): New.
631 (gtm_thread::begin_transaction, _ITM_commitTransaction,
632 _ITM_commitTransactionEH): Add HTM fastpath handling.
633 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
634 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
635 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
636 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
637 * configure.tgt: Add -mrtm to XCFLAGS.
638 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
639 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
640 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
641 * retry.cc (parse_default_method): Add HTM method parsing.
642 (gtm_thread::number_of_threads_changed): Use HTM by default if
645 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
647 * configure: Regenerate.
649 2012-10-31 Richard Henderson <rth@redhat.com>
651 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
652 * configure.ac: Use it.
653 * config.h.in, configure: Rebuild.
654 * testsuite/Makefile.in: Rebuild.
656 2012-10-24 Torvald Riegel <triegel@redhat.com>
658 * libitm.texi: Clarify ABI requirements for data-logging functions.
660 2012-10-24 Torvald Riegel <triegel@redhat.com>
662 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
663 it requires serial mode instead of assuming that for certain
665 * dispatch.h (abi_dispatch::requires_serial): New.
666 (abi_dispatch::abi_dispatch): Adapt.
667 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
668 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
669 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
670 serial_dispatch::serial_dispatch,
671 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
673 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
675 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
676 and ia32 declarations some more.
677 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
679 2012-09-20 Jakub Jelinek <jakub@redhat.com>
682 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
683 * configure: Regenerate.
684 * Makefile.in: Regenerate.
686 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
688 * configure: Regenerated.
690 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
692 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
694 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
696 * eh_cpp.cc: Fix __cxa_end_catch declaration.
698 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
700 * configure: Regenerated.
702 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
705 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
708 2012-04-03 Tristan Gingold <gingold@adacore.com>
710 * configure: Regenerate.
712 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
715 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
717 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
719 * testsuite/lib/libitm.exp: load fortran-modules.exp
721 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
723 * configure.tgt (*-*-irix6*): Remove.
725 2012-03-13 Torvald Riegel <triegel@redhat.com>
728 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
731 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 * configure.tgt (*-*-osf*): Remove.
734 * configure: Regenerate.
736 2012-03-05 Torvald Riegel <triegel@redhat.com>
738 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
739 memtransfer/memset if size isn't larger than zero.
741 2012-03-02 Torvald Riegel <triegel@redhat.com>
743 * libitm.texi: Link to specification and add a usage example.
745 2012-02-24 Torvald Riegel <triegel@redhat.com>
747 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
748 default dispatch for more than 1 thread to ml_wt.
750 2012-02-20 Torvald Riegel <triegel@redhat.com>
752 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
754 2012-02-20 Torvald Riegel <triegel@redhat.com>
756 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
758 2012-02-20 Torvald Riegel <triegel@redhat.com>
760 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
761 serial mode corner cases made obsolete by prior gtm_rwlock changes.
762 (gl_wt_dispatch.rollback): Same.
764 2012-02-20 Torvald Riegel <triegel@redhat.com>
766 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
768 2012-02-20 Torvald Riegel <triegel@redhat.com>
770 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
771 for RfW src. Optimize number of calls to gtm_thr.
773 2012-02-20 Torvald Riegel <triegel@redhat.com>
775 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
777 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
778 (default_dispatch): Make atomic.
779 (GTM::gtm_thread::set_default_dispatch): Access atomically.
780 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
781 use decide_begin_dispatch() if default_dispatch might have changed.
782 (GTM::gtm_thread::number_of_threads_changed): Initialize
783 default_dispatch here.
785 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
786 Patrick Marlier <patrick.marlier@gmail.com>
789 * alloc_cpp.cc: No dummy definitions for darwin.
790 * eh_cpp.cc: Likewise.
792 2012-02-14 Richard Henderson <rth@redhat.com>
794 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
796 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
798 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
800 2012-02-14 Torvald Riegel <triegel@redhat.com>
802 * libitm_i.h (GTM::gtm_rwlog_entry): New.
803 (GTM::gtm_thread): Add read and write logs.
804 (GTM::dispatch_ml_wt): Declare.
805 * retry.cc (parse_default_method): Support ml_wt.
806 * method-ml.cc: New file.
807 * Makefile.am: Add method-ml.cc.
808 * Makefile.in: Regenerate.
810 2012-02-14 Torvald Riegel <triegel@redhat.com>
812 * dispatch.h (GTM::abi_dispatch::supports): New.
813 (GTM::method_group::reinit): New.
814 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
815 (GTM::gtm_thread::number_of_threads_changed): Check that the method
816 supports the current situation.
818 2012-02-14 Torvald Riegel <triegel@redhat.com>
820 * util.cc (GTM::xcalloc): New.
821 * common.h (GTM::xcalloc): Declare.
823 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
825 * config/sparc/target.h (cpu_relax): Read from CC register.
826 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
828 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
830 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
832 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
834 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
835 * config/sparc/cacheline.h: New file.
836 * config/sparc/target.h: Likewise.
837 * config/sparc/sjlj.S: Likewise.
838 * config/linux/sparc/futex_bits.h: Likewise.
840 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
842 * configure.ac (link_itm): Fix comment.
843 * configure: Regenerate.
844 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
846 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
849 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
850 Correct libgomp references.
852 2012-01-24 Torvald Riegel <triegel@redhat.com>
854 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
857 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
859 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
861 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
862 offset values. Do not copy return address. Decrement stack
864 (GTM_longjump) [__x86_64__]: Update offset values.
866 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
869 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
870 the first function argument to %eax.
872 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
874 * libitm.h (_ITM_getThreadnum): Remove.
875 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
877 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879 * clearcap.map: New file.
880 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
881 * configure.ac: Call it.
882 Clear HWCAP_LDFLAGS if defaulting to -mavx.
883 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
884 * configure: Regenerate.
885 * Makefile.in: Regenerate.
886 * testsuite/Makefile.in: Regenerate.
888 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
891 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
892 include, exclude options.
894 2012-01-14 Torvald Riegel <triegel@redhat.com>
896 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
898 * containers.h (GTM::vector::set_size): New.
900 2012-01-14 Torvald Riegel <triegel@redhat.com>
903 * config/generic/tls.h (GTM::mask_stack_top): New.
904 (GTM::mask_stack_bottom): Declare.
905 * config/generic/tls.c (GTM::mask_stack_bottom): New.
906 * local.cc (gtm_undolog::rollback): Filter out any updates that
907 overlap the libitm stack. Add current transaction as parameter.
908 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
909 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
910 * testsuite/libitm.c/stackundo.c: New test.
912 2012-01-10 Richard Henderson <rth@redhat.com>
914 * libitm_i.h (_Unwind_DeleteException): Declare weak.
915 * eh_cpp.cc (_Unwind_DeleteException): Define for
916 !HAVE_ELF_STYLE_WEAKREF.
918 2012-01-08 Torvald Riegel <triegel@redhat.com>
920 * local.cc (GTM_LB): Use GTM::gtm_undolog.
921 (GTM::gtm_thread::drop_references_undolog): Remove.
922 (GTM::gtm_thread::commit_undolog,
923 GTM::gtm_thread::rollback_undolog): Move to ...
924 * libitm_i.h (GTM::gtm_undolog): ...here. New.
925 (GTM::gtm_undolog_entry): Remove.
926 (GTM::gtm_thread): Adapt.
927 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
928 (GTM::gtm_thread::trycommit): Adapt.
929 * method-serial.cc (serial_dispatch::log): Adapt.
930 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
931 (gl_wt_dispatch::store): Fix likely/unlikely.
932 * containers.h (GTM::vector::resize): Add additional_capacity
933 parameter and handle it.
934 (GTM::vector::resize_noinline): New/adapt.
935 (GTM::vector::push): New.
937 2012-01-06 Richard Henderson <rth@redhat.com>
939 * configure.tgt: Support powerpc-linux and powerpc-darwin.
940 * config/linux/powerpc/futex_bits.h: New file.
941 * config/powerpc/cacheline.h: New file.
942 * config/powerpc/sjlj.S: New file.
943 * config/powerpc/target.h: New file.
944 * config/generic/asmcfi.h (cfi_offset): New.
945 (cfi_restore, cfi_undefined): New.
947 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
950 * testsuite/libitm.c/reentrant.c: Remove xfail.
951 (thread): Pass x to pure().
952 From Patrik Marlier <patrick.marlier@gmail.com>.
954 2011-12-24 Torvald Riegel <triegel@redhat.com>
956 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
957 privatization safety if already in serial mode.
959 2011-12-24 Torvald Riegel <triegel@redhat.com>
961 * beginend.cc (GTM::gtm_thread::restart): Add and handle
962 finish_serial_upgrade parameter.
963 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
964 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
965 Don't unset reader flag.
966 (GTM::gtm_rwlock::write_upgrade_finish): New.
967 * config/posix/rwlock.cc: Same.
968 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
970 * config/posix/rwlock.h: Same.
971 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
972 flag after commit or after rollback when restarting.
974 2011-12-24 Torvald Riegel <triegel@redhat.com>
976 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
977 (GTM::gtm_thread::try_commit): Changed memory order.
978 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
980 * config/linux/x86/futex_bits.h (sys_futex0): Same.
981 * config/linux/sh/futex_bits.h (sys_futex0): Same.
982 * config/linux/futex_bits.h (sys_futex0): Same.
983 * config/linux/futex.cc (futex_wait, futex_wake): Same.
984 * config/linux/futex.h (futex_wait, futex_wake): Same.
985 * config/linux/rwlock.h (gtm_rwlock::writers,
986 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
988 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
989 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
990 gtm_rwlock::write_unlock): Fix memory orders and fences.
991 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
992 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
993 gtm_rwlock::write_unlock): Same.
994 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
995 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
996 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
998 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
999 gl_wt_dispatch::load, gl_wt_dispatch::store,
1000 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1001 orders and fences. Add comments.
1003 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1005 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1006 * Makefile.in: Regenerated.
1008 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1010 * configure.tgt: Add sh* case.
1011 * config/sh/target.h: New file.
1012 * config/sh/sjlj.S: New file.
1013 * config/linux/sh/futex_bits.h: New file.
1015 2011-12-14 Richard Henderson <rth@redhat.com>
1017 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1018 * config/arm/sjlj.S, config/arm/target.h: New files.
1019 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1020 (cfi_rel_offset): New.
1021 * config/linux/futex_bits.h: New file.
1022 * config/linux/futex.cc: Include futex_bits.h here...
1023 * config/linux/futex.h: ... not here.
1024 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1025 * configure.ac (ARCH_AM): New conditional.
1026 * Makefile.in, configure: Rebuild.
1027 * configure.tgt: Handle ARM.
1029 2011-12-13 Richard Henderson <rth@redhat.com>
1031 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1032 signed/unsigned comparison werror.
1034 * local_atomic: New file.
1035 * libitm_i.h: Include it.
1036 (gtm_thread::shared_state): Use atomic template.
1037 * beginend.cc (GTM::gtm_clock): Use atomic template.
1038 (global_tid): Use atomic template if 64-bit atomics available.
1039 (gtm_thread::gtm_thread): Update shared_state access.
1040 (gtm_thread::trycommit): Likewise.
1041 (choose_code_path): Update global_tid access.
1042 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1043 * stmlock.h (GTM::gtm_clock): Use atomic template.
1044 (gtm_get_clock, gtm_inc_clock): Update accesses.
1045 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1046 redundant __sync_synchronize after atomic shared_state access.
1047 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1048 (gtm_rwlock::write_lock_generic): Likewise.
1049 (gtm_rwlock::read_unlock): Likewise.
1050 * config/alpha/target.h (atomic_read_barrier): Remove.
1051 (atomic_write_barrier): Remove.
1052 * config/x86/target.h (atomic_read_barrier): Remove.
1053 (atomic_write_barrier): Remove.
1055 2011-11-30 Richard Henderson <rth@redhat.com>
1057 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1058 * beginend.c (_ITM_abortTransaction): Update to match.
1059 (GTM::gtm_thread::restart): Likewise.
1060 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1061 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1063 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1065 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1066 * Makefile.in: Regenerate.
1068 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1070 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1071 * alloc_cpp.cc: Generate dummy functions if we don't
1072 HAVE_ELF_STYLE_WEAKREF.
1073 * eh_cpp.cc: Likewise.
1074 * configure: Regenerate.
1075 * aclocal.m4: Likewise.
1076 * config.h.in: Likewise.
1077 * Makefile.in: Likewise.
1078 * testsuite/Makefile.in: Likewise.
1080 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1082 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1083 __USER_LABEL_PREFIX__ for targets that use it.
1084 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1085 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1086 in portability to non-elf targets.
1087 (GTM_longjmp): Likewise.
1088 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1091 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1093 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1094 * testsuite/libitm.c/memset-1.c: Likewise.
1096 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1098 * configure: Regenerate.
1100 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1102 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1103 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1104 * Makefile.am: Handle sun style versioning.
1105 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1106 * configure: Regenerate.
1107 * Makefile.in: Regenerate.
1109 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1111 * config/generic/asmcfi.h: Fix comment.
1112 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1113 sequence without .hidden support, error for non-ELF targets.
1114 (GTM_longjmp) [__ELF__]: Only use .hidden if
1115 HAVE_ATTRIBUTE_VISIBILITY.
1117 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1119 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1120 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1122 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1123 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1125 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1128 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1129 * configure: Regenerate.
1131 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1133 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1135 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1137 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1139 (.note.GNU-stack): Only use if __linux__.
1140 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1141 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1142 * testsuite/libitm.c/reentrant.c: Likewise.
1143 * testsuite/libitm.c/simple-2.c: Likewise.
1144 * testsuite/libitm.c/txrelease.c: Likewise.
1145 * testsuite/libitm.c++/static_ctor.C: Likewise.
1147 2011-11-10 Richard Henderson <rth@redhat.com>
1149 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1150 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1151 * configure.ac (ARCH_X86_AVX): New conditional.
1152 * Makefile.in, configure: Rebuild.
1154 2011-11-09 Richard Henderson <rth@redhat.com>
1156 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1157 * configure.ac: Use it.
1158 * config.h.in, configure: Rebuild.
1159 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1161 2011-11-09 Richard Henderson <rth@redhat.com>
1163 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1164 * config/alpha/unaligned.h: Remove file.
1165 * config/generic/unaligned.h: Remove file.
1166 * config/x86/unaligned.h: Remove file.
1167 * config/generic/cachepage.h: Remove file.
1168 * config/posix/cachepage.cc: Remove file.
1169 * config/generic/cacheline.cc: Remove file.
1170 * config/x86/cacheline.cc: Remove file.
1171 * config/generic/cacheline.h (gtm_cacheline): Remove the
1172 store_mask, copy_mask, copy_mask_wb methods.
1173 * config/x86/cacheline.h: Likewise.
1174 * config/alpha/cacheline.h: Fall back to generic after setting size.
1175 * config/generic/tls.cc (gtm_mask_stack): Remove.
1176 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1177 (GTM_vpalignr_table): Remove.
1178 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1179 (GTM_pshift_table): Remove.
1180 * config/libitm_i.h: Don't include cachepage.h.
1181 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1182 * Makefile.in, testsuite/Makefile.in: Rebuild.
1184 2011-11-09 Richard Henderson <rth@redhat.com>
1186 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1187 to emit branch prediction hint.
1189 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1190 Protect .note.GNU-stack with __linux__.
1192 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1193 * configure, aclocal.m4, config.h.in: Rebuild.
1194 * config/generic/asmcfi.h: New file.
1195 * config/x86/sjlj.S: Use it.
1197 2011-11-08 Richard Henderson <rth@redhat.com>
1199 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1201 2011-11-08 Richard Henderson <rth@redhat.com>
1203 * configure.tgt: Test correct directory for supported cpus.
1205 * configure.ac: Exit if unsupported.
1206 * configure: Rebuild.
1207 * configure.tgt: Delete boilerplate from libgomp for unsupported
1208 targets. Set UNSUPPORTED for unsupported targets.
1210 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1212 * configure.tgt: Handle i386 like i[456]86.
1213 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1215 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1216 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1218 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1220 * method-wbetl.cc: Update copyright notice.
1226 * barrier.tpl: Same.
1227 * useraction.cc: Same.
1231 * config/generic/tls.cc: Same.
1232 * config/generic/cacheline.h: Same.
1233 * config/generic/cachepage.h: Same.
1234 * config/generic/cacheline.cc: Same.
1235 * config/generic/unaligned.h: Same.
1236 * config/x86/cacheline.h: Same.
1237 * config/x86/cacheline.cc: Same.
1238 * config/x86/unaligned.h: Same.
1239 * config/alpha/cacheline.h: Same.
1240 * config/alpha/unaligned.h: Same.
1241 * config/alpha/sjlj.S: Same.
1242 * config/posix/cachepage.cc: Same.
1243 * config/linux/futex.h: Same.
1244 * config/linux/alpha/futex_bits.h: Same.
1246 2011-11-04 Torvald Riegel <triegel@redhat.com>
1248 * libitm.texi: No cover text and invariant sections.
1250 2011-11-03 Richard Henderson <rth@redhat.com>
1252 * local_type_traits: New file.
1253 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1255 2011-11-03 Richard Henderson <rth@redhat.com>
1257 * configure.ac: Don't test for gfortran.
1258 * configure: Rebuild.
1260 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1261 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1263 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1265 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1266 * testsuite/libitm.c/memset-1.c: Same.
1267 * testsuite/libitm.c/c.exp: Same.
1268 * testsuite/lib/libitm-dg.exp: Same.
1269 * testsuite/lib/libitm.exp: Same.
1270 * testsuite/libitm.c++/c++.exp: Same.
1272 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1274 * testsuite/config/default.exp: Update copyright date.
1275 * configure.ac: Add copyright info.
1276 * configure.tgt: Same.
1278 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1280 * testsuite/libitm.c/reentrant.c: XFAIL.
1281 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1283 2011-10-29 Torvald Riegel <triegel@redhat.com>
1285 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1287 (_ITM_abortTransaction): Handle aborts of outer transactions.
1289 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1290 * libitm.texi: Document aborts of outer transactions.
1291 * testsuite/libitm.c/cancel.c: New file.
1293 2011-10-19 Torvald Riegel <triegel@redhat.com>
1295 * testsuite/*: Change __transaction to __transaction_atomic or
1296 __transaction_relaxed.
1298 2011-10-19 Torvald Riegel <triegel@redhat.com>
1300 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1303 2011-10-19 Torvald Riegel <triegel@redhat.com>
1305 * libitm_i.h: Add gl_wt dispatch.
1306 * retry.cc (parse_default_method): Same.
1307 * method-gl.cc: New file.
1308 * Makefile.am: Use method-gl.cc.
1309 * Makefile.in: Rebuild.
1311 2011-10-19 Torvald Riegel <triegel@redhat.com>
1313 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1314 safety if requested by a TM method.
1315 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1316 privatization safety.
1317 * method-serial.cc: Same.
1319 2011-10-19 Torvald Riegel <triegel@redhat.com>
1321 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1322 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1323 undolog-related member functions from *_local to *_undolog.
1324 * local.cc (gtm_thread::commit_undolog): Same.
1325 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1326 (GTM::gtm_thread::rollback): Roll back undolog before
1327 dispatch-specific rollback.
1329 2011-10-19 Torvald Riegel <triegel@redhat.com>
1331 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1332 re-initialization of the current method group.
1333 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1335 2011-10-19 Torvald Riegel <triegel@redhat.com>
1337 * alloc.cc (commit_allocations_2): Do not free transaction-local
1338 memory when committing a nested transaction.
1340 2011-10-19 Torvald Riegel <triegel@redhat.com>
1342 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1343 serial-irrevocable dispatch, not serial.
1345 2011-10-19 Torvald Riegel <triegel@redhat.com>
1347 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1349 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1350 * method-serial.cc: Implement begin_or_restart().
1351 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1352 dispatch-specific begin_or_restart().
1353 (GTM::gtm_thread::restart): Same.
1355 2011-08-23 Torvald Riegel <triegel@redhat.com>
1357 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1358 restarting without switching to serial mode.
1359 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1360 transaction state. Choose closed-nesting alternative if available.
1361 (GTM::gtm_thread::set_default_dispatch): New.
1362 (parse_default_method): New.
1363 (GTM::gtm_thread::number_of_threads_changed): New.
1364 * method-serial.cc (GTM::serial_mg): New method group class.
1365 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1367 (GTM::serial_dispatch): Same.
1368 (GTM::serialirr_onwrite_dispatch): Same.
1369 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1370 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1372 (GTM::gtm_thread::gtm_thread): Same.
1373 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1374 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1375 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1376 choose dispatch but set state according to dispatch here.
1377 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1378 (GTM::method_group): New class.
1379 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1380 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1381 * libitm.texi: Document TM methods, method groups, method life cycle.
1382 Rename method sets to method groups.
1384 2011-08-23 Torvald Riegel <triegel@redhat.com>
1386 * config/x86/tls.h: Moved to ...
1387 * config/linux/x86/tls.h: ... here.
1389 2011-08-23 Torvald Riegel <triegel@redhat.com>
1391 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1393 * config/x86/sjlj.S: Same.
1395 2011-08-19 Torvald Riegel <triegel@redhat.com>
1397 * config/linux/rwlock.h: New file.
1398 * config/linux/rwlock.c: New file.
1399 * configure.ac: Reenable futex support (undo SVN rev 157758).
1400 * Makefile.am: Same.
1401 * configure.tgt: Same.
1402 * config/linux/alpha/futex_bits.h: Same.
1403 * config/linux/futex.h: Same. Return number of woken processes.
1404 * config/linux/futex.cc: Same.
1405 (futex_wait): Remove spinning.
1406 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1407 Use __x86_64__ instead of __LP64__.
1408 * aclocal.m4: Include generic futex checks.
1409 * configure: Rebuild.
1410 * Makefile.in: Rebuild.
1411 * testsuite/Makefile.in: Rebuild.
1412 * beginend.cc: Include pthread.h.
1413 * config/posix/cachepage.cc: Same.
1415 2011-08-12 Torvald Riegel <triegel@redhat.com>
1417 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1418 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1420 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1422 (GTM::gtm_thread::thread_num): Removed.
1423 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1424 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1425 tx-to-thread renaming.
1426 * beginend.cc: Adapted to tx-to-thread renaming.
1427 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1428 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1429 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1430 gtm_transaction to gtm_thread.
1431 (_ITM_getThreadnum): Removed. Not supported anymore.
1432 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1433 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1434 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1435 gtm_tx-to-gtm_thr renaming if necessary.
1442 * alloc_cpp.cc: Same.
1443 * method-serial.cc: Same.
1444 * config/generic/tls.cc: Same.
1445 * config/posix/rwlock.h (gtm_rwlock): Same.
1446 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1448 2011-08-12 Torvald Riegel <triegel@redhat.com>
1450 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1452 (gtm_rwlock::read_unlock): Same.
1453 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1454 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1455 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1456 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1457 w_upgrade. Replaced by per-transaction flags (in shared_state).
1458 Added c_confirmed_writers.
1459 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1460 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1461 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1462 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1463 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1464 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1465 * libitm.texi: Document locking conventions and implementations in
1468 2011-08-12 Torvald Riegel <triegel@redhat.com>
1470 * libitm_i.h (next_tx): Add list of all threads' transaction.
1471 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1472 transaction with list of transactions and ...
1473 (thread_exit_handler): ... deregister here.
1474 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1475 * config/x86/target.h: Same.
1477 2011-08-12 Torvald Riegel <triegel@redhat.com>
1479 * testsuite/libitm.c++/static_ctor.C: New file.
1481 2011-08-12 Torvald Riegel <triegel@redhat.com>
1483 * testsuite/libitm.c/reentrant.c: New file.
1485 2011-08-12 Torvald Riegel <triegel@redhat.com>
1487 * config/generic/tls.h: Remove the free list for transactions and ...
1488 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1489 (GTM::gtm_transaction::operator delete): ... and release here.
1490 (thread_exit_handler): New. Delete tx when thread terminates.
1491 (thread_exit_init): New.
1492 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1493 * testsuite/libitm.c/txrelease.c: New file.
1495 2011-08-12 Torvald Riegel <triegel@redhat.com>
1497 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1498 * testsuite/libitm.c/notx.c: New file.
1500 2011-08-12 Torvald Riegel <triegel@redhat.com>
1502 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1503 * libitm_i.h (local_tid): ... to here.
1504 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1505 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1507 2011-08-12 Torvald Riegel <triegel@redhat.com>
1509 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1510 serialirr_onwrite_dispatch as new default for now.
1511 * method-serial.cc (serialirr_onwrite_dispatch): New.
1512 (GTM::dispatch_serialirr_onwrite): New.
1515 2011-08-12 Torvald Riegel <triegel@redhat.com>
1517 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1518 * query.cc (_ITM_getTransactionId): There is no active transaction if
1519 the current nesting level is zero.
1521 2011-07-28 Torvald Riegel <triegel@redhat.com>
1523 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1526 2011-07-28 Torvald Riegel <triegel@redhat.com>
1528 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1529 transaction properties from the caller instead of from the
1532 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1534 2011-07-28 Torvald Riegel <triegel@redhat.com>
1536 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1537 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1539 * method-serial.cc: Same.
1540 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1541 flat nesting as default, and closed nesting on demand.
1542 (GTM::gtm_transaction::rollback): Same.
1543 (_ITM_abortTransaction): Same.
1544 (GTM::gtm_transaction::restart): Same.
1545 (GTM::gtm_transaction::trycommit): Same.
1546 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1547 (choose_code_path): New.
1548 (GTM::gtm_transaction_cp::save): New.
1549 (GTM::gtm_transaction_cp::commit): New.
1550 * query.cc (_ITM_inTransaction): Support flat nesting.
1551 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1552 (GTM::gtm_transaction): Support flat and closed nesting.
1553 * alloc.cc (commit_allocations_2): New.
1554 (commit_cb_data): New helper struct.
1555 (GTM::gtm_transaction::commit_allocations): Handle nested
1557 * libitm.texi: Update user action section, add description of nesting.
1559 2011-07-28 Torvald Riegel <triegel@redhat.com>
1561 * libitm_i.h: Add closed nesting as restart reason.
1562 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1564 2011-07-28 Torvald Riegel <triegel@redhat.com>
1566 * useraction.cc: Use vector instead of list to store actions.
1567 Also support partial rollbacks for closed nesting.
1568 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1569 * beginend.cc: Same.
1571 2011-07-28 Torvald Riegel <triegel@redhat.com>
1573 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1574 closed_nesting flags, as well as a closed nesting alternative.
1575 * method-serial.cc: Same.
1576 (serial_dispatch): Renamed to serialirr_dispatch.
1577 (GTM::dispatch_serialirr): Same.
1578 (serial_dispatch_ul): Renamed to serial_dispatch.
1579 (GTM::dispatch_serial): Same.
1581 2011-07-28 Torvald Riegel <triegel@redhat.com>
1583 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1585 2011-07-28 Torvald Riegel <triegel@redhat.com>
1587 * aatree.h (aa_tree::remove): New.
1588 (aa_tree::operator new): Add placement new.
1590 2011-07-02 Torvald Riegel <triegel@redhat.com>
1592 * containers.h: New file.
1593 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1594 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1595 * common.h: ... to here.
1596 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1599 2011-06-30 Torvald Riegel <triegel@redhat.com>
1601 * libitm_i.h (STATE_ABORTING): Remove.
1602 * beginend.cc (_ITM_abortTransaction): Same.
1603 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1604 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1605 (_ITM_rollbackTransaction): Remove.
1606 * beginend.cc: Same.
1608 * libitm.texi: Document these ABI changes.
1610 2011-06-30 Torvald Riegel <triegel@redhat.com>
1612 * libitm.texi: New file.
1613 * Makefile.am: Add libitm.texi.
1614 * Makefile.in: Rebuild.
1616 2011-06-30 Torvald Riegel <triegel@redhat.com>
1618 * libitm_i.h: Move parts to common.h and dispatch.h.
1619 * common.h: New file.
1620 * dispatch.h: New file, new dispatch class.
1621 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1622 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1623 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1624 decision to retry.cc.
1625 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1627 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1628 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1630 * barrier.cc: Use new barriers definitions.
1631 (abi_dispatch::memmove_overlap_check): New.
1632 * config/x86/x86_sse.cc: Same.
1633 * config/x86/x86_avx.cc: Same.
1634 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1636 * Makefile.in: Rebuild.
1637 * method-readonly.cc: Remove.
1638 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1639 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1641 2011-06-30 Torvald Riegel <triegel@redhat.com>
1643 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1644 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1645 * testsuite/libitm.c/dropref-2.c: Same.
1646 * testsuite/libitm.c/dropref.c: Same.
1648 2011-06-30 Torvald Riegel <triegel@redhat.com>
1650 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1651 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1652 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1654 * barrier.tpl: Same.
1656 * config/generic/tls.h: Same.
1657 * config/x86/tls.h: Same.
1661 * method-readonly.cc: Same.
1662 * method-serial.cc: Same.
1663 * method-wbetl.cc: Same.
1666 2011-03-03 Richard Henderson <rth@redhat.com>
1668 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1669 From Patrik Marlier <patrick.marlier@unine.ch>.
1671 2011-02-03 Richard Henderson <rth@redhat.com>
1673 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1674 * configure.ac: Use it.
1675 * configure, config.h.in: Rebuild.
1676 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1677 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1678 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1679 * libitm.map: Use wildcards to match size_t mangling.
1681 2010-12-14 Richard Henderson <rth@redhat.com>
1683 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1684 blocks of TIDs per thread.
1685 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1686 (setup_gtm_thr): Return the thread structure.
1687 * config/x86/tls.h (setup_gtm_thr): Likewise.
1689 2010-12-14 Richard Henderson <rth@redhat.com>
1691 * clone.cc (table_lock): Remove.
1692 (find_clone): Don't take it.
1693 (ExcludeTransaction): New helper class.
1694 (_ITM_registerTMCloneTable): Use it.
1695 (_ITM_deregisterTMCloneTable): Likewise.
1697 2010-12-14 Richard Henderson <rth@redhat.com>
1699 * config/x86/tls.h: New file.
1701 2010-07-15 Richard Henderson <rth@redhat.com>
1703 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1704 * Makefile.in: Rebuild.
1706 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1708 * method-wbetl.cc (trydropreference): Fix source line.
1710 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1712 * libitm.h: Add comment.
1713 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1715 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1717 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1718 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1719 available, use pthread mutexes.
1720 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1721 * config.h.in: Regenerate.
1722 * configure: Regenerate.
1724 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1726 * libitm.h (ITM_PURE): Define.
1727 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1729 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1731 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1732 (validate): Add comment.
1733 (trydropreference): New.
1734 * method-readonly.cc (class readonly_dispatch): Add
1736 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1737 Call trydropreference().
1738 * libitm.h (_ITM_dropReferences): Remove const attribute.
1739 * method-serial.cc (class serial_dispatch): Add trydropreference.
1740 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1742 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1744 * memcpy.cc (do_memcpy): Comment.
1746 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1748 * barrier.tpl: Add comments throughout.
1750 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1752 * method-wbetl.cc (struct w_entry): Add comments.
1756 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1758 * alloc_c.cc (_ITM_dropReferences): New.
1759 * libitm.map (_ITM_dropReferences): Add.
1760 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1761 * libitm_i.h (struct gtm_transaction): Declare
1762 drop_references_allocations and drop_references_local.
1763 * local.cc (rollback_local): Ignore memory when applicable.
1764 (drop_references_local): New.
1766 2010-06-23 Richard Henderson <rth@redhat.com>
1768 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1769 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1770 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1771 * config/alpha/target.h: Likewise.
1772 * config/generic/tls.cc (gtm_mask_stack): Use it.
1774 2010-06-23 Richard Henderson <rth@redhat.com>
1776 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1777 a mutex instead of trying a lock-free compare-and-swap on the list.
1778 (gtm_cacheline_page::operator delete): Likewise.
1780 2010-06-16 Richard Henderson <rth@redhat.com>
1782 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1783 that overlap the libitm stack.
1784 * barrier.tpl: Mark incoming stack.
1785 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1786 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1787 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1788 * memcpy.cc, memset.cc: Likewise.
1789 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1790 * config/generic/tls.h (gtm_thread): Add stack_top member.
1791 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1792 * libitm_i.h (gtm_mask_stack): Declare.
1793 * config/generic/tls.cc: New file.
1794 * Makefile.am (libitm_la_SOURCES): Add it.
1795 (AM_CXXFLAGS): Turn off exceptions.
1796 * Makefile.in: Rebuild.
1798 2010-06-16 Richard Henderson <rth@redhat.com>
1800 * alloc.cc (struct gtm_alloc_action): Move definition ...
1801 * libitm_i.h: ... here.
1802 (class gtm_transaction): Declare new and delete.
1803 * beginend.cc (alloc_tx): Reformulate as operator new.
1804 (free_tx): Reformulate as operator delete.
1805 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1807 2010-06-11 Richard Henderson <rth@redhat.com>
1809 * clone.cc (clone_entry_compare): Fix typo.
1810 From Patrik Marlier <patrick.marlier@unine.ch>.
1812 2010-05-13 Richard Henderson <rth@redhat.com>
1814 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1817 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1819 * libitm_i.h (struct gtm_transaction): Remove
1820 get_allocation_size.
1821 (record_allocation): Remove size parameter.
1822 * libitm.map (_ITM_realloc): Remove.
1823 * alloc_c.cc (_ITM_realloc): Remove.
1824 (_ITM_malloc): Remove size argument to record_allocation.
1825 (_ITM_calloc): Same.
1826 * alloc_cpp.cc (_ZGTtnwm): Same.
1827 (_ZGTtnwmRKSt9nothrow_t): Same.
1829 (_ZGTtnamRKSt9nothrow_t): Same.
1830 * alloc.cc (struct gtm_alloc_action): Remove size.
1831 (get_allocation_size): Remove.
1832 (commit_allocations): Add comment.
1833 (record_allocation): Remove size parameter.
1834 (forget_allocation): Remove set of size.
1836 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1838 * Makefile.am (abi_version): New.
1839 (AM_CXXFLAGS): Pass abi_version.
1840 * Makefile.in: Regenerate.
1841 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1843 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1845 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1846 _ITM_getTMCloneOrIrrevokable.
1847 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1848 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1850 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1852 * configure.ac: Remove Linux futex support.
1853 * configure.tgt (config_path): Same.
1854 * Makefile.am: Same.
1855 * config/linux: Remove entire directory.
1856 * configure: Rebuild.
1857 * Makefile.in: Rebuild.
1858 * testsuite/Makefile.in: Rebuild.
1860 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1862 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1863 switching to serial mode.
1864 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1866 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1868 * configure.tgt: Add emacs -*- tags.
1869 * barrier.tpl: Same.
1871 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1873 * Makefile.am: Rename serial.cc to method-serial.cc.
1874 * Makefile.in: Regenerate with automake 1.11.1.
1875 * testsuite/Makefile.in: Same.
1876 * aclocal.m4: Regenerate with aclocal 1.11.1.
1877 * method-serial.cc: Rename from serial.cc.
1878 * libitm_i.h (struct gtm_transaction): Update comment on
1881 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1883 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1884 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1886 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1888 * configure: Rebuild.
1890 2009-11-12 Richard Henderson <rth@redhat.com>
1892 * Rewrite everything in C++.
1894 2009-11-03 Richard Henderson <rth@redhat.com>
1896 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1897 * Makefile.am (libitm_la_SOURCES): Add them.
1898 * configure.ac (ARCH_X86): New conditional.
1899 * Makefile.in, configure: Rebuild.
1900 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1901 Move futex setup into "other system configury" case.
1902 * local.c (rollback_local): Merge into ...
1903 (GTM_rollback_local): ... here.
1904 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1905 (_ITM_LB): Define as an alias to GTM_LB.
1907 2009-11-03 Richard Henderson <rth@redhat.com>
1909 * method-readonly.c: New file.
1910 * Makefile.am (libitm_la_SOURCES): Add it.
1911 * Makefile.in: Rebuild.
1912 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1913 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1914 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1915 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1916 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1917 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1918 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1919 gtm_get_clock, gtm_inc_clock): New.
1920 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1921 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1922 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1923 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1924 replace uses with new libitm_i.h symbols.
1925 (dispatch_wbetl): Rename from wbetl_dispatch.
1926 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1927 away from dispatch_readonly; abort if the beginTransaction call
1928 asserted that the transaction was readonly.
1930 2009-11-03 Richard Henderson <rth@redhat.com>
1932 * memset.c: New file.
1933 * Makefile.am (libitm_la_SOURCES): Add it.
1934 * Makefile.in: Rebuild.
1935 * testsuite/libitm.c/memset-1.c: New.
1937 2009-11-03 Richard Henderson <rth@redhat.com>
1939 * dispatch.c: Remove file.
1940 * useraction.c (struct gtm_user_action): Move from libitm.h.
1941 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1942 (serial_memset, serial_memmove, serial_memcpy): Remove.
1943 (serial_W*, serial_R*): Remove.
1944 (serial_dispatch): Update to match.
1945 * configure.ac: Move Werror down below configure checks. Don't
1946 check for sys/loadavg.h, do check for malloc.h. Don't check for
1947 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1948 Use GCC_AC_FUNC_MMAP_BLACKLIST
1949 * libitm.h: Split out all internal items to...
1950 * libitm_i.h: ... here. New file.
1951 * copymask.c: New file.
1952 * local.c (struct gtm_local_undo): Move from libitm.h.
1953 (GTM_alloc_local): Rename from alloc_local; export.
1954 * memcpy.c: New file.
1955 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1956 * config/posix/page.c: New file.
1957 * config/posix/target_tls.h: Remove file.
1958 * barrier.c: New file.
1959 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1961 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1962 * method-wbetl.c: Rewrite for new cacheline methods.
1963 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1965 * config/alpha/sjlj.S: Fix typo.
1966 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1967 * config/alpha/copymask.c: New file.
1968 * config/alpha/target.h (CACHELINE_SIZE): New.
1969 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1971 * config/x86/target_i.h: Copy functions from x86/target.h.
1972 * config/x86/copymask.c: New file.
1973 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1974 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1975 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1976 * config/x86/target_tls.h: Move contents to target_i.h.
1978 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1979 * testsuite/libitm.c/memcpy-1.c: New.
1981 2009-10-22 Richard Henderson <rth@redhat.com>
1983 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1984 (AM_CCASFLAGS): New.
1985 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1986 saving/restoring _AC_ARG_VAR_PRECIOUS.
1987 * Makefile.in, aclocal.m4, config.h.in, configure,
1988 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1990 2009-10-22 Richard Henderson <rth@redhat.com>
1992 * testsuite/*: Update for new compiler syntax.
1994 2009-10-21 Richard Henderson <rth@redhat.com>
1996 * libitm.h (_ITM_abortReason): Add outerAbort.
1998 2009-08-03 Richard Henderson <rth@redhat.com>
2000 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2001 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2002 * method-wbetl.c (struct w_entry): Remove mask.
2003 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2006 2009-07-22 Richard Henderson <rth@redhat.com>
2008 * eh_cpp.c: New file.
2009 * Makefile.am (libitm_la_SOURCES): Add it.
2010 * Makefile.in: Rebuild.
2011 * beginend.c (GTM_rollback_transaction): Undo exception state.
2012 (GTM_trycommit_transaction): Mark inline.
2013 (GTM_trycommit_and_finalize_transaction): Split out from ...
2014 (_ITM_commitTransaction): ... here.
2015 (_ITM_commitTransactionEH): New function.
2016 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2017 cxa_unthrown, eh_in_flight; reorder.
2019 * testsuite/libitm.c++/c++.exp: New.
2020 * testsuite/libitm.c++/eh-1.C: New.
2022 * aatree.c (aa_free): Remove REGPARM.
2023 * aatree.h: Remove all REGPARM.
2025 2009-07-18 Richard Henderson <rth@redhat.com>
2027 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2028 * Makefile.am (libitm_la_SOURCES): Add them.
2029 * Makefile.in: Rebuild.
2030 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2031 (GTM_trycommit_transaction): Likewise.
2032 * libitm.h: Include aatree.h
2033 (struct gtm_alloc_action): New.
2034 (struct gtm_transaction): Add alloc_actions.
2035 (GTM_record_allocation, GTM_forget_allocation): Declare.
2036 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2037 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2038 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2039 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2040 _ZGTtdaPvRKSt9nothrow_t): Export.
2042 2009-07-18 Richard Henderson <rth@redhat.com>
2044 * target_tls.h: Move ...
2045 * config/posix/target_tls.h: ... here.
2047 2009-07-07 Richard Henderson <rth@redhat.com>
2049 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2051 2009-07-07 Richard Henderson <rth@redhat.com>
2055 2009-07-07 Richard Henderson <rth@redhat.com>
2057 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2058 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2060 * configure.tgt: Don't use -ftls-model for x86 linux.
2061 * libitm.h: Include target.h after standard includes.
2062 (_gtm_thr): Rename from gtm_thr.
2063 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2064 (gtm_disp, set_gtm_disp): New.
2065 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2066 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2067 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2069 2009-07-07 Richard Henderson <rth@redhat.com>
2071 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2073 2009-07-06 Richard Henderson <rth@redhat.com>
2075 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2076 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2077 (_ITM_beginTransaction): Take variadic arguments.
2078 (_ITM_registerThrownObject): Declare.
2079 * beginend.c, serial.c: Update.
2080 * libitm.map: Add _ITM_registerThrownObject.
2082 2009-01-28 Richard Henderson <rth@redhat.com>
2084 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2085 * Makefile.in: Rebuild.
2086 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2087 (GTM_restart_transaction): Fix uninstrumented code check.
2088 * retry.c (GTM_decide_retry_strategy): Add serial check.
2089 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2090 automatically go irrevokable when in serial mode.
2091 * clone.c: New file.
2092 * libitm.h, libitm.map: Update.
2094 2009-01-27 Richard Henderson <rth@redhat.com>
2096 * Makefile.am (LTCCASCOMPILE): Define.
2097 (libitm_la_SOURCES): Add methid-wbetl.c.
2098 * testsuite/Makefile.am: New
2099 * configure.ac: Add testsuite/Makefile.
2100 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2101 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2102 (_ITM_abortTransaction): Finalize implementation method; pass
2103 transaction properties to longjmp.
2104 (GTM_restart_transaction): Split out from ...
2105 (_ITM_commitTransaction): ... here.
2106 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2107 Move to config/x86/target.h.
2108 * config/linux/alpha/futex_bits.h: New.
2109 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2110 * config/x86/target.h: Disable target types for 32-bit.
2111 * config/alpha/sjlj.S, config/alpha/target.h: New.
2112 * libitm.h (struct gtm_dispatch): Add init, fini.
2113 (enum restart_reason): New.
2114 (struct gtm_transaction): Add method and restarts.
2115 * retry.c (GTM_decide_retry_strategy): Implement.
2116 * serial.c (serial_init, serial_fini): New.
2117 (GTM_serialmode): Finialize outgoing method.
2118 * method-wbetl.c: New.
2120 2008-12-09 Richard Henderson <rth@redhat.com>
2122 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2123 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2124 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2125 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2126 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2127 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2128 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2129 * serial.c (serial_R##T, serial_W##T): Likewise.
2131 2008-11-21 Richard Henderson <rth@redhat.com>
2135 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2137 Copying and distribution of this file, with or without modification,
2138 are permitted in any medium without royalty provided the copyright
2139 notice and this notice are preserved.