1 2015-11-09 Torvald Riegel <triegel@redhat.com>
3 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
4 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
5 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
6 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
7 (gtm_thread::forget_allocations): New overload with size_t argument.
8 * alloc.c (gtm_thread::forget_allocation): Define new overload and
10 (gtm_thread::record_allocation): Adapt.
11 (gtm_thread::commit_allocations_1): Adapt.
12 (gtm_thread::commit_allocations_2): Adapt.
13 * testsuite/libitm.c++/newdelete.C: New.
15 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
16 Joseph Myers <joseph@codesourcery.com>
17 Mark Shinwell <shinwell@codesourcery.com>
18 Andrew Stubbs <ams@codesourcery.com>
19 Rich Felker <dalias@libc.org>
21 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
22 GTM_begin_transaction for compatibility with FDPIC.
24 2015-10-09 David Malcolm <dmalcolm@redhat.com>
26 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
29 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
32 * local_atomic (__always_inline): Rename to...
33 (__libitm_always_inline): ... this.
35 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
38 * config/powerpc/sjlj.S: Port to Xcode 2.5.
40 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
42 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
43 operands "op" and "val" to int.
45 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
47 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
48 "op" and "val" to int.
50 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
52 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
53 "op" and "val" to int.
55 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
57 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
58 Declare as static int.
59 (FUTEX_PRIVATE_FLAG): Remove L suffix.
60 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
62 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
64 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
67 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
69 * Makefile.in: Regenerated with automake-1.11.6.
70 * aclocal.m4: Likewise.
71 * configure: Likewise.
72 * testsuite/Makefile.in: Likewise.
74 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
76 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
77 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
79 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
82 * libitm.c/stackundo.c (test2): Make it static.
85 2015-01-05 Jakub Jelinek <jakub@redhat.com>
87 Update copyright years.
89 2015-01-05 Jakub Jelinek <jakub@redhat.com>
91 * libitm.texi: Bump @copying's copyright year.
93 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
95 * testsuite/lib/libitm.exp: Load target-utils.exp.
96 Move load of target-supports.exp earlier.
98 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
100 * configure.tgt (x86_64): Tune -m32 multilib to generic.
102 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
105 * configure: Regenerated.
107 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
110 * configure: Regenerate.
112 2014-10-06 Marek Polacek <polacek@redhat.com>
114 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
115 * testsuite/libitm.c/memset-1.c: Likewise.
117 2014-07-24 Richard Henderson <rth@redhat.com>
119 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
120 addressing mode in epilogue.
122 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
124 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
125 -mclear-hwcap instead.
126 * configure: Regenerate.
127 * clearcap.map: Remove.
129 2014-05-21 John Marino <gnugcc@marino.st>
131 * configure.tgt (*-*-dragonfly*): New target.
133 2014-05-19 Richard Henderson <rth@redhat.com>
135 * config/aarch64/sjlj.S: New file.
136 * config/aarch64/target.h: New file.
137 * configure.tgt: Enable aarch64.
139 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141 * config/generic/asmcfi.h: Also check for
142 __GCC_HAVE_DWARF2_CFI_ASM.
144 2013-04-02 Richard Henderson <rth@redhat.com>
146 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
147 * config/arm/target.h, config/sh/target.h: Likewise.
148 * config/sparc/target.h, config/x86/target.h: Likewise.
150 2014-03-26 Jakub Jelinek <jakub@redhat.com>
152 * config/linux/futex_bits.h: Include errno.h.
153 (sys_futex0): If syscall returns -1, return -errno rather than
156 2014-03-26 Joseph Myers <joseph@codesourcery.com>
158 * libitm.texi (Index): Rename to Library Index.
160 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
163 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
164 (x86_avx.lo): Append -mavx to CXXFLAGS.
165 * Makefile.in: Regenerate.
167 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
169 Update copyright years
171 2014-01-02 Tobias Burnus <burnus@net-b.de>
173 * libitm.texi: Bump @copying's copyright year.
175 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
177 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
178 (FUNC): Define ELFv2 variant.
185 2013-09-20 Alan Modra <amodra@gmail.com>
187 * configure: Regenerate.
189 2013-08-30 Torvald Riegel <triegel@redhat.com>
191 * config/posix/rwlock.cc: Fix initialization order.
193 2013-08-30 Torvald Riegel <triegel@redhat.com>
195 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
196 (htm_fastpath): Assign an asm name.
197 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
199 (_ITM_actions): Likewise.
200 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
202 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
203 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
204 field to the start of the structure.
205 * config/linux/rwlock.h (gtm_rwlock): Update comments.
206 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
207 handling for custom HTM fast paths.
209 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
211 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
213 * configure.tgt: Add -msoft-float to XCFLAGS.
215 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
217 * configure.tgt: Add -msoft-float to XCFLAGS.
219 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
221 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
222 (htm_transaction_active): Enable zEC12 instructions in the
224 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
226 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
228 * acinclude.m4: Add htm asm check for s390.
229 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
230 * configure: Regenerate.
231 * config/s390/target.h: Remove __HTM__ check.
232 (htm_available): Call getauxval to get hwcaps and check whether
233 HTM is available or not.
235 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
237 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
238 * configure.ac: Use it.
239 (AC_CHECK_HEADERS): Check for sys/auxv.h.
240 (AC_CHECK_FUNCS): Check for getauxval.
241 * config.h.in, configure: Rebuild.
242 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
243 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
244 (USE_HTM_FASTPATH): Define.
245 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
246 _HTM_RETRIES) New macros.
247 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
248 htm_begin_success, htm_commit, htm_transaction_active): New functions.
250 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
252 * config/s390/target.h: Include htmintrin.h.
253 (_HTM_ITM_RETRIES): New macro definition.
254 (htm_available, htm_init, htm_begin, htm_begin_success)
255 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
257 2013-06-20 Iain Sandoe <iain@codesourcery.com>
258 Cesar Philippidis <cesar@codesourcery.com>
260 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
261 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
262 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
263 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
265 2013-06-20 Torvald Riegel <triegel@redhat.com>
267 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
268 (_ITM_getTransactionId): Same.
269 * config/x86/target.h (htm_transaction_active): New.
271 2013-06-20 Torvald Riegel <triegel@redhat.com>
274 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
277 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
280 * local_atomic (__always_inline): Always define our version.
281 (__calculate_memory_order): Mark inline.
282 (atomic_thread_fence): Ditto.
283 (atomic_signal_fence): Ditto.
284 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
285 (atomic_bool::atomic_flag_clear_explicit): Ditto.
286 (atomic_bool::atomic_flag_test_and_set): Ditto.
287 (atomic_bool::atomic_flag_clear): Ditto.
289 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
291 * config/s390/sjlj.S: New file.
292 * config/s390/target.h: New file.
293 * configure.tgt: Set options for S/390.
295 2013-03-23 Andi Kleen <ak@linux.intel.com>
297 * local_atomic (__always_inline): Add.
298 (__calculate_memory_order, atomic_thread_fence,
299 atomic_signal_fence, test_and_set, clear, store, load,
300 exchange, compare_exchange_weak, compare_exchange_strong,
301 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
302 Add __always_inline to force inlining.
304 2013-02-11 Iain Sandoe <iain@codesourcery.com>
305 Jack Howarth <howarth@bromo.med.uc.edu>
306 Patrick Marlier <patrick.marlier@gmail.com>
309 * alloc_cpp.cc: Enable function declarations on darwin.
310 * eh_cpp.cc: Likewise.
312 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
314 Update copyright years.
316 2012-11-09 Torvald Riegel <triegel@redhat.com>
318 * beginend.cc (htm_fastpath): New.
319 (gtm_thread::begin_transaction, _ITM_commitTransaction,
320 _ITM_commitTransactionEH): Add HTM fastpath handling.
321 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
322 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
323 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
324 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
325 * configure.tgt: Add -mrtm to XCFLAGS.
326 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
327 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
328 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
329 * retry.cc (parse_default_method): Add HTM method parsing.
330 (gtm_thread::number_of_threads_changed): Use HTM by default if
333 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
335 * configure: Regenerate.
337 2012-10-31 Richard Henderson <rth@redhat.com>
339 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
340 * configure.ac: Use it.
341 * config.h.in, configure: Rebuild.
342 * testsuite/Makefile.in: Rebuild.
344 2012-10-24 Torvald Riegel <triegel@redhat.com>
346 * libitm.texi: Clarify ABI requirements for data-logging functions.
348 2012-10-24 Torvald Riegel <triegel@redhat.com>
350 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
351 it requires serial mode instead of assuming that for certain
353 * dispatch.h (abi_dispatch::requires_serial): New.
354 (abi_dispatch::abi_dispatch): Adapt.
355 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
356 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
357 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
358 serial_dispatch::serial_dispatch,
359 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
361 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
363 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
364 and ia32 declarations some more.
365 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
367 2012-09-20 Jakub Jelinek <jakub@redhat.com>
370 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
371 * configure: Regenerate.
372 * Makefile.in: Regenerate.
374 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
376 * configure: Regenerated.
378 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
380 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
382 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
384 * eh_cpp.cc: Fix __cxa_end_catch declaration.
386 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
388 * configure: Regenerated.
390 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
393 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
396 2012-04-03 Tristan Gingold <gingold@adacore.com>
398 * configure: Regenerate.
400 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
403 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
405 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
407 * testsuite/lib/libitm.exp: load fortran-modules.exp
409 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411 * configure.tgt (*-*-irix6*): Remove.
413 2012-03-13 Torvald Riegel <triegel@redhat.com>
416 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
419 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
421 * configure.tgt (*-*-osf*): Remove.
422 * configure: Regenerate.
424 2012-03-05 Torvald Riegel <triegel@redhat.com>
426 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
427 memtransfer/memset if size isn't larger than zero.
429 2012-03-02 Torvald Riegel <triegel@redhat.com>
431 * libitm.texi: Link to specification and add a usage example.
433 2012-02-24 Torvald Riegel <triegel@redhat.com>
435 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
436 default dispatch for more than 1 thread to ml_wt.
438 2012-02-20 Torvald Riegel <triegel@redhat.com>
440 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
442 2012-02-20 Torvald Riegel <triegel@redhat.com>
444 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
446 2012-02-20 Torvald Riegel <triegel@redhat.com>
448 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
449 serial mode corner cases made obsolete by prior gtm_rwlock changes.
450 (gl_wt_dispatch.rollback): Same.
452 2012-02-20 Torvald Riegel <triegel@redhat.com>
454 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
456 2012-02-20 Torvald Riegel <triegel@redhat.com>
458 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
459 for RfW src. Optimize number of calls to gtm_thr.
461 2012-02-20 Torvald Riegel <triegel@redhat.com>
463 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
465 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
466 (default_dispatch): Make atomic.
467 (GTM::gtm_thread::set_default_dispatch): Access atomically.
468 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
469 use decide_begin_dispatch() if default_dispatch might have changed.
470 (GTM::gtm_thread::number_of_threads_changed): Initialize
471 default_dispatch here.
473 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
474 Patrick Marlier <patrick.marlier@gmail.com>
477 * alloc_cpp.cc: No dummy definitions for darwin.
478 * eh_cpp.cc: Likewise.
480 2012-02-14 Richard Henderson <rth@redhat.com>
482 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
484 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
486 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
488 2012-02-14 Torvald Riegel <triegel@redhat.com>
490 * libitm_i.h (GTM::gtm_rwlog_entry): New.
491 (GTM::gtm_thread): Add read and write logs.
492 (GTM::dispatch_ml_wt): Declare.
493 * retry.cc (parse_default_method): Support ml_wt.
494 * method-ml.cc: New file.
495 * Makefile.am: Add method-ml.cc.
496 * Makefile.in: Regenerate.
498 2012-02-14 Torvald Riegel <triegel@redhat.com>
500 * dispatch.h (GTM::abi_dispatch::supports): New.
501 (GTM::method_group::reinit): New.
502 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
503 (GTM::gtm_thread::number_of_threads_changed): Check that the method
504 supports the current situation.
506 2012-02-14 Torvald Riegel <triegel@redhat.com>
508 * util.cc (GTM::xcalloc): New.
509 * common.h (GTM::xcalloc): Declare.
511 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
513 * config/sparc/target.h (cpu_relax): Read from CC register.
514 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
516 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
518 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
520 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
522 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
523 * config/sparc/cacheline.h: New file.
524 * config/sparc/target.h: Likewise.
525 * config/sparc/sjlj.S: Likewise.
526 * config/linux/sparc/futex_bits.h: Likewise.
528 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
530 * configure.ac (link_itm): Fix comment.
531 * configure: Regenerate.
532 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
534 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
537 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
538 Correct libgomp references.
540 2012-01-24 Torvald Riegel <triegel@redhat.com>
542 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
545 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
547 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
549 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
550 offset values. Do not copy return address. Decrement stack
552 (GTM_longjump) [__x86_64__]: Update offset values.
554 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
557 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
558 the first function argument to %eax.
560 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562 * libitm.h (_ITM_getThreadnum): Remove.
563 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
565 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
567 * clearcap.map: New file.
568 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
569 * configure.ac: Call it.
570 Clear HWCAP_LDFLAGS if defaulting to -mavx.
571 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
572 * configure: Regenerate.
573 * Makefile.in: Regenerate.
574 * testsuite/Makefile.in: Regenerate.
576 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
579 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
580 include, exclude options.
582 2012-01-14 Torvald Riegel <triegel@redhat.com>
584 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
586 * containers.h (GTM::vector::set_size): New.
588 2012-01-14 Torvald Riegel <triegel@redhat.com>
591 * config/generic/tls.h (GTM::mask_stack_top): New.
592 (GTM::mask_stack_bottom): Declare.
593 * config/generic/tls.c (GTM::mask_stack_bottom): New.
594 * local.cc (gtm_undolog::rollback): Filter out any updates that
595 overlap the libitm stack. Add current transaction as parameter.
596 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
597 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
598 * testsuite/libitm.c/stackundo.c: New test.
600 2012-01-10 Richard Henderson <rth@redhat.com>
602 * libitm_i.h (_Unwind_DeleteException): Declare weak.
603 * eh_cpp.cc (_Unwind_DeleteException): Define for
604 !HAVE_ELF_STYLE_WEAKREF.
606 2012-01-08 Torvald Riegel <triegel@redhat.com>
608 * local.cc (GTM_LB): Use GTM::gtm_undolog.
609 (GTM::gtm_thread::drop_references_undolog): Remove.
610 (GTM::gtm_thread::commit_undolog,
611 GTM::gtm_thread::rollback_undolog): Move to ...
612 * libitm_i.h (GTM::gtm_undolog): ...here. New.
613 (GTM::gtm_undolog_entry): Remove.
614 (GTM::gtm_thread): Adapt.
615 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
616 (GTM::gtm_thread::trycommit): Adapt.
617 * method-serial.cc (serial_dispatch::log): Adapt.
618 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
619 (gl_wt_dispatch::store): Fix likely/unlikely.
620 * containers.h (GTM::vector::resize): Add additional_capacity
621 parameter and handle it.
622 (GTM::vector::resize_noinline): New/adapt.
623 (GTM::vector::push): New.
625 2012-01-06 Richard Henderson <rth@redhat.com>
627 * configure.tgt: Support powerpc-linux and powerpc-darwin.
628 * config/linux/powerpc/futex_bits.h: New file.
629 * config/powerpc/cacheline.h: New file.
630 * config/powerpc/sjlj.S: New file.
631 * config/powerpc/target.h: New file.
632 * config/generic/asmcfi.h (cfi_offset): New.
633 (cfi_restore, cfi_undefined): New.
635 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
638 * testsuite/libitm.c/reentrant.c: Remove xfail.
639 (thread): Pass x to pure().
640 From Patrik Marlier <patrick.marlier@gmail.com>.
642 2011-12-24 Torvald Riegel <triegel@redhat.com>
644 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
645 privatization safety if already in serial mode.
647 2011-12-24 Torvald Riegel <triegel@redhat.com>
649 * beginend.cc (GTM::gtm_thread::restart): Add and handle
650 finish_serial_upgrade parameter.
651 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
652 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
653 Don't unset reader flag.
654 (GTM::gtm_rwlock::write_upgrade_finish): New.
655 * config/posix/rwlock.cc: Same.
656 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
658 * config/posix/rwlock.h: Same.
659 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
660 flag after commit or after rollback when restarting.
662 2011-12-24 Torvald Riegel <triegel@redhat.com>
664 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
665 (GTM::gtm_thread::try_commit): Changed memory order.
666 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
668 * config/linux/x86/futex_bits.h (sys_futex0): Same.
669 * config/linux/sh/futex_bits.h (sys_futex0): Same.
670 * config/linux/futex_bits.h (sys_futex0): Same.
671 * config/linux/futex.cc (futex_wait, futex_wake): Same.
672 * config/linux/futex.h (futex_wait, futex_wake): Same.
673 * config/linux/rwlock.h (gtm_rwlock::writers,
674 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
676 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
677 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
678 gtm_rwlock::write_unlock): Fix memory orders and fences.
679 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
680 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
681 gtm_rwlock::write_unlock): Same.
682 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
683 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
684 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
686 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
687 gl_wt_dispatch::load, gl_wt_dispatch::store,
688 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
689 orders and fences. Add comments.
691 2011-12-21 Jakub Jelinek <jakub@redhat.com>
693 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
694 * Makefile.in: Regenerated.
696 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
698 * configure.tgt: Add sh* case.
699 * config/sh/target.h: New file.
700 * config/sh/sjlj.S: New file.
701 * config/linux/sh/futex_bits.h: New file.
703 2011-12-14 Richard Henderson <rth@redhat.com>
705 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
706 * config/arm/sjlj.S, config/arm/target.h: New files.
707 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
708 (cfi_rel_offset): New.
709 * config/linux/futex_bits.h: New file.
710 * config/linux/futex.cc: Include futex_bits.h here...
711 * config/linux/futex.h: ... not here.
712 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
713 * configure.ac (ARCH_AM): New conditional.
714 * Makefile.in, configure: Rebuild.
715 * configure.tgt: Handle ARM.
717 2011-12-13 Richard Henderson <rth@redhat.com>
719 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
720 signed/unsigned comparison werror.
722 * local_atomic: New file.
723 * libitm_i.h: Include it.
724 (gtm_thread::shared_state): Use atomic template.
725 * beginend.cc (GTM::gtm_clock): Use atomic template.
726 (global_tid): Use atomic template if 64-bit atomics available.
727 (gtm_thread::gtm_thread): Update shared_state access.
728 (gtm_thread::trycommit): Likewise.
729 (choose_code_path): Update global_tid access.
730 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
731 * stmlock.h (GTM::gtm_clock): Use atomic template.
732 (gtm_get_clock, gtm_inc_clock): Update accesses.
733 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
734 redundant __sync_synchronize after atomic shared_state access.
735 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
736 (gtm_rwlock::write_lock_generic): Likewise.
737 (gtm_rwlock::read_unlock): Likewise.
738 * config/alpha/target.h (atomic_read_barrier): Remove.
739 (atomic_write_barrier): Remove.
740 * config/x86/target.h (atomic_read_barrier): Remove.
741 (atomic_write_barrier): Remove.
743 2011-11-30 Richard Henderson <rth@redhat.com>
745 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
746 * beginend.c (_ITM_abortTransaction): Update to match.
747 (GTM::gtm_thread::restart): Likewise.
748 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
749 * config/x86/sjlj.S (GTM_longjmp): Likewise.
751 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
753 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
754 * Makefile.in: Regenerate.
756 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
758 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
759 * alloc_cpp.cc: Generate dummy functions if we don't
760 HAVE_ELF_STYLE_WEAKREF.
761 * eh_cpp.cc: Likewise.
762 * configure: Regenerate.
763 * aclocal.m4: Likewise.
764 * config.h.in: Likewise.
765 * Makefile.in: Likewise.
766 * testsuite/Makefile.in: Likewise.
768 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
770 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
771 __USER_LABEL_PREFIX__ for targets that use it.
772 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
773 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
774 in portability to non-elf targets.
775 (GTM_longjmp): Likewise.
776 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
779 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
781 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
782 * testsuite/libitm.c/memset-1.c: Likewise.
784 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
786 * configure: Regenerate.
788 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
791 (LIBITM_ENABLE_SYMVERS): Handle sun style.
792 * Makefile.am: Handle sun style versioning.
793 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
794 * configure: Regenerate.
795 * Makefile.in: Regenerate.
797 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * config/generic/asmcfi.h: Fix comment.
800 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
801 sequence without .hidden support, error for non-ELF targets.
802 (GTM_longjmp) [__ELF__]: Only use .hidden if
803 HAVE_ATTRIBUTE_VISIBILITY.
805 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
807 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
808 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
810 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
811 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
813 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
816 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
817 * configure: Regenerate.
819 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
821 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
823 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
827 (.note.GNU-stack): Only use if __linux__.
828 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
829 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
830 * testsuite/libitm.c/reentrant.c: Likewise.
831 * testsuite/libitm.c/simple-2.c: Likewise.
832 * testsuite/libitm.c/txrelease.c: Likewise.
833 * testsuite/libitm.c++/static_ctor.C: Likewise.
835 2011-11-10 Richard Henderson <rth@redhat.com>
837 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
838 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
839 * configure.ac (ARCH_X86_AVX): New conditional.
840 * Makefile.in, configure: Rebuild.
842 2011-11-09 Richard Henderson <rth@redhat.com>
844 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
845 * configure.ac: Use it.
846 * config.h.in, configure: Rebuild.
847 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
849 2011-11-09 Richard Henderson <rth@redhat.com>
851 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
852 * config/alpha/unaligned.h: Remove file.
853 * config/generic/unaligned.h: Remove file.
854 * config/x86/unaligned.h: Remove file.
855 * config/generic/cachepage.h: Remove file.
856 * config/posix/cachepage.cc: Remove file.
857 * config/generic/cacheline.cc: Remove file.
858 * config/x86/cacheline.cc: Remove file.
859 * config/generic/cacheline.h (gtm_cacheline): Remove the
860 store_mask, copy_mask, copy_mask_wb methods.
861 * config/x86/cacheline.h: Likewise.
862 * config/alpha/cacheline.h: Fall back to generic after setting size.
863 * config/generic/tls.cc (gtm_mask_stack): Remove.
864 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
865 (GTM_vpalignr_table): Remove.
866 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
867 (GTM_pshift_table): Remove.
868 * config/libitm_i.h: Don't include cachepage.h.
869 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
870 * Makefile.in, testsuite/Makefile.in: Rebuild.
872 2011-11-09 Richard Henderson <rth@redhat.com>
874 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
875 to emit branch prediction hint.
877 * config/x86/sjlj.S: Protect elf directives with __ELF__.
878 Protect .note.GNU-stack with __linux__.
880 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
881 * configure, aclocal.m4, config.h.in: Rebuild.
882 * config/generic/asmcfi.h: New file.
883 * config/x86/sjlj.S: Use it.
885 2011-11-08 Richard Henderson <rth@redhat.com>
887 * local.cc (_ITM_LB): Use a normal call, not a function alias.
889 2011-11-08 Richard Henderson <rth@redhat.com>
891 * configure.tgt: Test correct directory for supported cpus.
893 * configure.ac: Exit if unsupported.
894 * configure: Rebuild.
895 * configure.tgt: Delete boilerplate from libgomp for unsupported
896 targets. Set UNSUPPORTED for unsupported targets.
898 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
900 * configure.tgt: Handle i386 like i[456]86.
901 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
903 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
904 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
906 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
908 * method-wbetl.cc: Update copyright notice.
915 * useraction.cc: Same.
919 * config/generic/tls.cc: Same.
920 * config/generic/cacheline.h: Same.
921 * config/generic/cachepage.h: Same.
922 * config/generic/cacheline.cc: Same.
923 * config/generic/unaligned.h: Same.
924 * config/x86/cacheline.h: Same.
925 * config/x86/cacheline.cc: Same.
926 * config/x86/unaligned.h: Same.
927 * config/alpha/cacheline.h: Same.
928 * config/alpha/unaligned.h: Same.
929 * config/alpha/sjlj.S: Same.
930 * config/posix/cachepage.cc: Same.
931 * config/linux/futex.h: Same.
932 * config/linux/alpha/futex_bits.h: Same.
934 2011-11-04 Torvald Riegel <triegel@redhat.com>
936 * libitm.texi: No cover text and invariant sections.
938 2011-11-03 Richard Henderson <rth@redhat.com>
940 * local_type_traits: New file.
941 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
943 2011-11-03 Richard Henderson <rth@redhat.com>
945 * configure.ac: Don't test for gfortran.
946 * configure: Rebuild.
948 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
949 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
951 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
953 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
954 * testsuite/libitm.c/memset-1.c: Same.
955 * testsuite/libitm.c/c.exp: Same.
956 * testsuite/lib/libitm-dg.exp: Same.
957 * testsuite/lib/libitm.exp: Same.
958 * testsuite/libitm.c++/c++.exp: Same.
960 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
962 * testsuite/config/default.exp: Update copyright date.
963 * configure.ac: Add copyright info.
964 * configure.tgt: Same.
966 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
968 * testsuite/libitm.c/reentrant.c: XFAIL.
969 * testsuite/libitm.c++/static_ctor.C: XFAIL.
971 2011-10-29 Torvald Riegel <triegel@redhat.com>
973 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
975 (_ITM_abortTransaction): Handle aborts of outer transactions.
977 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
978 * libitm.texi: Document aborts of outer transactions.
979 * testsuite/libitm.c/cancel.c: New file.
981 2011-10-19 Torvald Riegel <triegel@redhat.com>
983 * testsuite/*: Change __transaction to __transaction_atomic or
984 __transaction_relaxed.
986 2011-10-19 Torvald Riegel <triegel@redhat.com>
988 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
991 2011-10-19 Torvald Riegel <triegel@redhat.com>
993 * libitm_i.h: Add gl_wt dispatch.
994 * retry.cc (parse_default_method): Same.
995 * method-gl.cc: New file.
996 * Makefile.am: Use method-gl.cc.
997 * Makefile.in: Rebuild.
999 2011-10-19 Torvald Riegel <triegel@redhat.com>
1001 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1002 safety if requested by a TM method.
1003 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1004 privatization safety.
1005 * method-serial.cc: Same.
1007 2011-10-19 Torvald Riegel <triegel@redhat.com>
1009 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1010 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1011 undolog-related member functions from *_local to *_undolog.
1012 * local.cc (gtm_thread::commit_undolog): Same.
1013 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1014 (GTM::gtm_thread::rollback): Roll back undolog before
1015 dispatch-specific rollback.
1017 2011-10-19 Torvald Riegel <triegel@redhat.com>
1019 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1020 re-initialization of the current method group.
1021 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1023 2011-10-19 Torvald Riegel <triegel@redhat.com>
1025 * alloc.cc (commit_allocations_2): Do not free transaction-local
1026 memory when committing a nested transaction.
1028 2011-10-19 Torvald Riegel <triegel@redhat.com>
1030 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1031 serial-irrevocable dispatch, not serial.
1033 2011-10-19 Torvald Riegel <triegel@redhat.com>
1035 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1037 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1038 * method-serial.cc: Implement begin_or_restart().
1039 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1040 dispatch-specific begin_or_restart().
1041 (GTM::gtm_thread::restart): Same.
1043 2011-08-23 Torvald Riegel <triegel@redhat.com>
1045 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1046 restarting without switching to serial mode.
1047 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1048 transaction state. Choose closed-nesting alternative if available.
1049 (GTM::gtm_thread::set_default_dispatch): New.
1050 (parse_default_method): New.
1051 (GTM::gtm_thread::number_of_threads_changed): New.
1052 * method-serial.cc (GTM::serial_mg): New method group class.
1053 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1055 (GTM::serial_dispatch): Same.
1056 (GTM::serialirr_onwrite_dispatch): Same.
1057 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1058 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1060 (GTM::gtm_thread::gtm_thread): Same.
1061 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1062 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1063 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1064 choose dispatch but set state according to dispatch here.
1065 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1066 (GTM::method_group): New class.
1067 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1068 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1069 * libitm.texi: Document TM methods, method groups, method life cycle.
1070 Rename method sets to method groups.
1072 2011-08-23 Torvald Riegel <triegel@redhat.com>
1074 * config/x86/tls.h: Moved to ...
1075 * config/linux/x86/tls.h: ... here.
1077 2011-08-23 Torvald Riegel <triegel@redhat.com>
1079 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1081 * config/x86/sjlj.S: Same.
1083 2011-08-19 Torvald Riegel <triegel@redhat.com>
1085 * config/linux/rwlock.h: New file.
1086 * config/linux/rwlock.c: New file.
1087 * configure.ac: Reenable futex support (undo SVN rev 157758).
1088 * Makefile.am: Same.
1089 * configure.tgt: Same.
1090 * config/linux/alpha/futex_bits.h: Same.
1091 * config/linux/futex.h: Same. Return number of woken processes.
1092 * config/linux/futex.cc: Same.
1093 (futex_wait): Remove spinning.
1094 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1095 Use __x86_64__ instead of __LP64__.
1096 * aclocal.m4: Include generic futex checks.
1097 * configure: Rebuild.
1098 * Makefile.in: Rebuild.
1099 * testsuite/Makefile.in: Rebuild.
1100 * beginend.cc: Include pthread.h.
1101 * config/posix/cachepage.cc: Same.
1103 2011-08-12 Torvald Riegel <triegel@redhat.com>
1105 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1106 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1108 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1110 (GTM::gtm_thread::thread_num): Removed.
1111 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1112 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1113 tx-to-thread renaming.
1114 * beginend.cc: Adapted to tx-to-thread renaming.
1115 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1116 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1117 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1118 gtm_transaction to gtm_thread.
1119 (_ITM_getThreadnum): Removed. Not supported anymore.
1120 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1121 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1122 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1123 gtm_tx-to-gtm_thr renaming if necessary.
1130 * alloc_cpp.cc: Same.
1131 * method-serial.cc: Same.
1132 * config/generic/tls.cc: Same.
1133 * config/posix/rwlock.h (gtm_rwlock): Same.
1134 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1136 2011-08-12 Torvald Riegel <triegel@redhat.com>
1138 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1140 (gtm_rwlock::read_unlock): Same.
1141 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1142 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1143 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1144 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1145 w_upgrade. Replaced by per-transaction flags (in shared_state).
1146 Added c_confirmed_writers.
1147 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1148 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1149 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1150 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1151 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1152 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1153 * libitm.texi: Document locking conventions and implementations in
1156 2011-08-12 Torvald Riegel <triegel@redhat.com>
1158 * libitm_i.h (next_tx): Add list of all threads' transaction.
1159 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1160 transaction with list of transactions and ...
1161 (thread_exit_handler): ... deregister here.
1162 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1163 * config/x86/target.h: Same.
1165 2011-08-12 Torvald Riegel <triegel@redhat.com>
1167 * testsuite/libitm.c++/static_ctor.C: New file.
1169 2011-08-12 Torvald Riegel <triegel@redhat.com>
1171 * testsuite/libitm.c/reentrant.c: New file.
1173 2011-08-12 Torvald Riegel <triegel@redhat.com>
1175 * config/generic/tls.h: Remove the free list for transactions and ...
1176 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1177 (GTM::gtm_transaction::operator delete): ... and release here.
1178 (thread_exit_handler): New. Delete tx when thread terminates.
1179 (thread_exit_init): New.
1180 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1181 * testsuite/libitm.c/txrelease.c: New file.
1183 2011-08-12 Torvald Riegel <triegel@redhat.com>
1185 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1186 * testsuite/libitm.c/notx.c: New file.
1188 2011-08-12 Torvald Riegel <triegel@redhat.com>
1190 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1191 * libitm_i.h (local_tid): ... to here.
1192 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1193 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1195 2011-08-12 Torvald Riegel <triegel@redhat.com>
1197 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1198 serialirr_onwrite_dispatch as new default for now.
1199 * method-serial.cc (serialirr_onwrite_dispatch): New.
1200 (GTM::dispatch_serialirr_onwrite): New.
1203 2011-08-12 Torvald Riegel <triegel@redhat.com>
1205 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1206 * query.cc (_ITM_getTransactionId): There is no active transaction if
1207 the current nesting level is zero.
1209 2011-07-28 Torvald Riegel <triegel@redhat.com>
1211 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1214 2011-07-28 Torvald Riegel <triegel@redhat.com>
1216 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1217 transaction properties from the caller instead of from the
1220 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1222 2011-07-28 Torvald Riegel <triegel@redhat.com>
1224 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1225 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1227 * method-serial.cc: Same.
1228 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1229 flat nesting as default, and closed nesting on demand.
1230 (GTM::gtm_transaction::rollback): Same.
1231 (_ITM_abortTransaction): Same.
1232 (GTM::gtm_transaction::restart): Same.
1233 (GTM::gtm_transaction::trycommit): Same.
1234 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1235 (choose_code_path): New.
1236 (GTM::gtm_transaction_cp::save): New.
1237 (GTM::gtm_transaction_cp::commit): New.
1238 * query.cc (_ITM_inTransaction): Support flat nesting.
1239 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1240 (GTM::gtm_transaction): Support flat and closed nesting.
1241 * alloc.cc (commit_allocations_2): New.
1242 (commit_cb_data): New helper struct.
1243 (GTM::gtm_transaction::commit_allocations): Handle nested
1245 * libitm.texi: Update user action section, add description of nesting.
1247 2011-07-28 Torvald Riegel <triegel@redhat.com>
1249 * libitm_i.h: Add closed nesting as restart reason.
1250 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1252 2011-07-28 Torvald Riegel <triegel@redhat.com>
1254 * useraction.cc: Use vector instead of list to store actions.
1255 Also support partial rollbacks for closed nesting.
1256 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1257 * beginend.cc: Same.
1259 2011-07-28 Torvald Riegel <triegel@redhat.com>
1261 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1262 closed_nesting flags, as well as a closed nesting alternative.
1263 * method-serial.cc: Same.
1264 (serial_dispatch): Renamed to serialirr_dispatch.
1265 (GTM::dispatch_serialirr): Same.
1266 (serial_dispatch_ul): Renamed to serial_dispatch.
1267 (GTM::dispatch_serial): Same.
1269 2011-07-28 Torvald Riegel <triegel@redhat.com>
1271 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1273 2011-07-28 Torvald Riegel <triegel@redhat.com>
1275 * aatree.h (aa_tree::remove): New.
1276 (aa_tree::operator new): Add placement new.
1278 2011-07-02 Torvald Riegel <triegel@redhat.com>
1280 * containers.h: New file.
1281 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1282 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1283 * common.h: ... to here.
1284 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1287 2011-06-30 Torvald Riegel <triegel@redhat.com>
1289 * libitm_i.h (STATE_ABORTING): Remove.
1290 * beginend.cc (_ITM_abortTransaction): Same.
1291 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1292 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1293 (_ITM_rollbackTransaction): Remove.
1294 * beginend.cc: Same.
1296 * libitm.texi: Document these ABI changes.
1298 2011-06-30 Torvald Riegel <triegel@redhat.com>
1300 * libitm.texi: New file.
1301 * Makefile.am: Add libitm.texi.
1302 * Makefile.in: Rebuild.
1304 2011-06-30 Torvald Riegel <triegel@redhat.com>
1306 * libitm_i.h: Move parts to common.h and dispatch.h.
1307 * common.h: New file.
1308 * dispatch.h: New file, new dispatch class.
1309 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1310 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1311 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1312 decision to retry.cc.
1313 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1315 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1316 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1318 * barrier.cc: Use new barriers definitions.
1319 (abi_dispatch::memmove_overlap_check): New.
1320 * config/x86/x86_sse.cc: Same.
1321 * config/x86/x86_avx.cc: Same.
1322 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1324 * Makefile.in: Rebuild.
1325 * method-readonly.cc: Remove.
1326 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1327 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1329 2011-06-30 Torvald Riegel <triegel@redhat.com>
1331 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1332 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1333 * testsuite/libitm.c/dropref-2.c: Same.
1334 * testsuite/libitm.c/dropref.c: Same.
1336 2011-06-30 Torvald Riegel <triegel@redhat.com>
1338 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1339 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1340 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1342 * barrier.tpl: Same.
1344 * config/generic/tls.h: Same.
1345 * config/x86/tls.h: Same.
1349 * method-readonly.cc: Same.
1350 * method-serial.cc: Same.
1351 * method-wbetl.cc: Same.
1354 2011-03-03 Richard Henderson <rth@redhat.com>
1356 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1357 From Patrik Marlier <patrick.marlier@unine.ch>.
1359 2011-02-03 Richard Henderson <rth@redhat.com>
1361 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1362 * configure.ac: Use it.
1363 * configure, config.h.in: Rebuild.
1364 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1365 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1366 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1367 * libitm.map: Use wildcards to match size_t mangling.
1369 2010-12-14 Richard Henderson <rth@redhat.com>
1371 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1372 blocks of TIDs per thread.
1373 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1374 (setup_gtm_thr): Return the thread structure.
1375 * config/x86/tls.h (setup_gtm_thr): Likewise.
1377 2010-12-14 Richard Henderson <rth@redhat.com>
1379 * clone.cc (table_lock): Remove.
1380 (find_clone): Don't take it.
1381 (ExcludeTransaction): New helper class.
1382 (_ITM_registerTMCloneTable): Use it.
1383 (_ITM_deregisterTMCloneTable): Likewise.
1385 2010-12-14 Richard Henderson <rth@redhat.com>
1387 * config/x86/tls.h: New file.
1389 2010-07-15 Richard Henderson <rth@redhat.com>
1391 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1392 * Makefile.in: Rebuild.
1394 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1396 * method-wbetl.cc (trydropreference): Fix source line.
1398 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1400 * libitm.h: Add comment.
1401 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1403 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1405 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1406 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1407 available, use pthread mutexes.
1408 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1409 * config.h.in: Regenerate.
1410 * configure: Regenerate.
1412 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1414 * libitm.h (ITM_PURE): Define.
1415 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1417 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1419 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1420 (validate): Add comment.
1421 (trydropreference): New.
1422 * method-readonly.cc (class readonly_dispatch): Add
1424 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1425 Call trydropreference().
1426 * libitm.h (_ITM_dropReferences): Remove const attribute.
1427 * method-serial.cc (class serial_dispatch): Add trydropreference.
1428 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1430 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1432 * memcpy.cc (do_memcpy): Comment.
1434 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1436 * barrier.tpl: Add comments throughout.
1438 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1440 * method-wbetl.cc (struct w_entry): Add comments.
1444 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1446 * alloc_c.cc (_ITM_dropReferences): New.
1447 * libitm.map (_ITM_dropReferences): Add.
1448 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1449 * libitm_i.h (struct gtm_transaction): Declare
1450 drop_references_allocations and drop_references_local.
1451 * local.cc (rollback_local): Ignore memory when applicable.
1452 (drop_references_local): New.
1454 2010-06-23 Richard Henderson <rth@redhat.com>
1456 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1457 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1458 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1459 * config/alpha/target.h: Likewise.
1460 * config/generic/tls.cc (gtm_mask_stack): Use it.
1462 2010-06-23 Richard Henderson <rth@redhat.com>
1464 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1465 a mutex instead of trying a lock-free compare-and-swap on the list.
1466 (gtm_cacheline_page::operator delete): Likewise.
1468 2010-06-16 Richard Henderson <rth@redhat.com>
1470 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1471 that overlap the libitm stack.
1472 * barrier.tpl: Mark incoming stack.
1473 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1474 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1475 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1476 * memcpy.cc, memset.cc: Likewise.
1477 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1478 * config/generic/tls.h (gtm_thread): Add stack_top member.
1479 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1480 * libitm_i.h (gtm_mask_stack): Declare.
1481 * config/generic/tls.cc: New file.
1482 * Makefile.am (libitm_la_SOURCES): Add it.
1483 (AM_CXXFLAGS): Turn off exceptions.
1484 * Makefile.in: Rebuild.
1486 2010-06-16 Richard Henderson <rth@redhat.com>
1488 * alloc.cc (struct gtm_alloc_action): Move definition ...
1489 * libitm_i.h: ... here.
1490 (class gtm_transaction): Declare new and delete.
1491 * beginend.cc (alloc_tx): Reformulate as operator new.
1492 (free_tx): Reformulate as operator delete.
1493 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1495 2010-06-11 Richard Henderson <rth@redhat.com>
1497 * clone.cc (clone_entry_compare): Fix typo.
1498 From Patrik Marlier <patrick.marlier@unine.ch>.
1500 2010-05-13 Richard Henderson <rth@redhat.com>
1502 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1505 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1507 * libitm_i.h (struct gtm_transaction): Remove
1508 get_allocation_size.
1509 (record_allocation): Remove size parameter.
1510 * libitm.map (_ITM_realloc): Remove.
1511 * alloc_c.cc (_ITM_realloc): Remove.
1512 (_ITM_malloc): Remove size argument to record_allocation.
1513 (_ITM_calloc): Same.
1514 * alloc_cpp.cc (_ZGTtnwm): Same.
1515 (_ZGTtnwmRKSt9nothrow_t): Same.
1517 (_ZGTtnamRKSt9nothrow_t): Same.
1518 * alloc.cc (struct gtm_alloc_action): Remove size.
1519 (get_allocation_size): Remove.
1520 (commit_allocations): Add comment.
1521 (record_allocation): Remove size parameter.
1522 (forget_allocation): Remove set of size.
1524 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1526 * Makefile.am (abi_version): New.
1527 (AM_CXXFLAGS): Pass abi_version.
1528 * Makefile.in: Regenerate.
1529 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1531 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1533 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1534 _ITM_getTMCloneOrIrrevokable.
1535 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1536 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1538 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1540 * configure.ac: Remove Linux futex support.
1541 * configure.tgt (config_path): Same.
1542 * Makefile.am: Same.
1543 * config/linux: Remove entire directory.
1544 * configure: Rebuild.
1545 * Makefile.in: Rebuild.
1546 * testsuite/Makefile.in: Rebuild.
1548 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1550 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1551 switching to serial mode.
1552 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1554 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1556 * configure.tgt: Add emacs -*- tags.
1557 * barrier.tpl: Same.
1559 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1561 * Makefile.am: Rename serial.cc to method-serial.cc.
1562 * Makefile.in: Regenerate with automake 1.11.1.
1563 * testsuite/Makefile.in: Same.
1564 * aclocal.m4: Regenerate with aclocal 1.11.1.
1565 * method-serial.cc: Rename from serial.cc.
1566 * libitm_i.h (struct gtm_transaction): Update comment on
1569 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1571 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1572 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1574 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1576 * configure: Rebuild.
1578 2009-11-12 Richard Henderson <rth@redhat.com>
1580 * Rewrite everything in C++.
1582 2009-11-03 Richard Henderson <rth@redhat.com>
1584 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1585 * Makefile.am (libitm_la_SOURCES): Add them.
1586 * configure.ac (ARCH_X86): New conditional.
1587 * Makefile.in, configure: Rebuild.
1588 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1589 Move futex setup into "other system configury" case.
1590 * local.c (rollback_local): Merge into ...
1591 (GTM_rollback_local): ... here.
1592 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1593 (_ITM_LB): Define as an alias to GTM_LB.
1595 2009-11-03 Richard Henderson <rth@redhat.com>
1597 * method-readonly.c: New file.
1598 * Makefile.am (libitm_la_SOURCES): Add it.
1599 * Makefile.in: Rebuild.
1600 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1601 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1602 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1603 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1604 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1605 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1606 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1607 gtm_get_clock, gtm_inc_clock): New.
1608 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1609 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1610 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1611 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1612 replace uses with new libitm_i.h symbols.
1613 (dispatch_wbetl): Rename from wbetl_dispatch.
1614 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1615 away from dispatch_readonly; abort if the beginTransaction call
1616 asserted that the transaction was readonly.
1618 2009-11-03 Richard Henderson <rth@redhat.com>
1620 * memset.c: New file.
1621 * Makefile.am (libitm_la_SOURCES): Add it.
1622 * Makefile.in: Rebuild.
1623 * testsuite/libitm.c/memset-1.c: New.
1625 2009-11-03 Richard Henderson <rth@redhat.com>
1627 * dispatch.c: Remove file.
1628 * useraction.c (struct gtm_user_action): Move from libitm.h.
1629 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1630 (serial_memset, serial_memmove, serial_memcpy): Remove.
1631 (serial_W*, serial_R*): Remove.
1632 (serial_dispatch): Update to match.
1633 * configure.ac: Move Werror down below configure checks. Don't
1634 check for sys/loadavg.h, do check for malloc.h. Don't check for
1635 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1636 Use GCC_AC_FUNC_MMAP_BLACKLIST
1637 * libitm.h: Split out all internal items to...
1638 * libitm_i.h: ... here. New file.
1639 * copymask.c: New file.
1640 * local.c (struct gtm_local_undo): Move from libitm.h.
1641 (GTM_alloc_local): Rename from alloc_local; export.
1642 * memcpy.c: New file.
1643 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1644 * config/posix/page.c: New file.
1645 * config/posix/target_tls.h: Remove file.
1646 * barrier.c: New file.
1647 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1649 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1650 * method-wbetl.c: Rewrite for new cacheline methods.
1651 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1653 * config/alpha/sjlj.S: Fix typo.
1654 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1655 * config/alpha/copymask.c: New file.
1656 * config/alpha/target.h (CACHELINE_SIZE): New.
1657 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1659 * config/x86/target_i.h: Copy functions from x86/target.h.
1660 * config/x86/copymask.c: New file.
1661 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1662 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1663 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1664 * config/x86/target_tls.h: Move contents to target_i.h.
1666 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1667 * testsuite/libitm.c/memcpy-1.c: New.
1669 2009-10-22 Richard Henderson <rth@redhat.com>
1671 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1672 (AM_CCASFLAGS): New.
1673 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1674 saving/restoring _AC_ARG_VAR_PRECIOUS.
1675 * Makefile.in, aclocal.m4, config.h.in, configure,
1676 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1678 2009-10-22 Richard Henderson <rth@redhat.com>
1680 * testsuite/*: Update for new compiler syntax.
1682 2009-10-21 Richard Henderson <rth@redhat.com>
1684 * libitm.h (_ITM_abortReason): Add outerAbort.
1686 2009-08-03 Richard Henderson <rth@redhat.com>
1688 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1689 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1690 * method-wbetl.c (struct w_entry): Remove mask.
1691 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1694 2009-07-22 Richard Henderson <rth@redhat.com>
1696 * eh_cpp.c: New file.
1697 * Makefile.am (libitm_la_SOURCES): Add it.
1698 * Makefile.in: Rebuild.
1699 * beginend.c (GTM_rollback_transaction): Undo exception state.
1700 (GTM_trycommit_transaction): Mark inline.
1701 (GTM_trycommit_and_finalize_transaction): Split out from ...
1702 (_ITM_commitTransaction): ... here.
1703 (_ITM_commitTransactionEH): New function.
1704 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1705 cxa_unthrown, eh_in_flight; reorder.
1707 * testsuite/libitm.c++/c++.exp: New.
1708 * testsuite/libitm.c++/eh-1.C: New.
1710 * aatree.c (aa_free): Remove REGPARM.
1711 * aatree.h: Remove all REGPARM.
1713 2009-07-18 Richard Henderson <rth@redhat.com>
1715 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1716 * Makefile.am (libitm_la_SOURCES): Add them.
1717 * Makefile.in: Rebuild.
1718 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1719 (GTM_trycommit_transaction): Likewise.
1720 * libitm.h: Include aatree.h
1721 (struct gtm_alloc_action): New.
1722 (struct gtm_transaction): Add alloc_actions.
1723 (GTM_record_allocation, GTM_forget_allocation): Declare.
1724 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1725 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1726 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1727 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1728 _ZGTtdaPvRKSt9nothrow_t): Export.
1730 2009-07-18 Richard Henderson <rth@redhat.com>
1732 * target_tls.h: Move ...
1733 * config/posix/target_tls.h: ... here.
1735 2009-07-07 Richard Henderson <rth@redhat.com>
1737 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1739 2009-07-07 Richard Henderson <rth@redhat.com>
1743 2009-07-07 Richard Henderson <rth@redhat.com>
1745 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1746 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1748 * configure.tgt: Don't use -ftls-model for x86 linux.
1749 * libitm.h: Include target.h after standard includes.
1750 (_gtm_thr): Rename from gtm_thr.
1751 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1752 (gtm_disp, set_gtm_disp): New.
1753 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1754 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1755 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1757 2009-07-07 Richard Henderson <rth@redhat.com>
1759 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1761 2009-07-06 Richard Henderson <rth@redhat.com>
1763 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1764 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1765 (_ITM_beginTransaction): Take variadic arguments.
1766 (_ITM_registerThrownObject): Declare.
1767 * beginend.c, serial.c: Update.
1768 * libitm.map: Add _ITM_registerThrownObject.
1770 2009-01-28 Richard Henderson <rth@redhat.com>
1772 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1773 * Makefile.in: Rebuild.
1774 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1775 (GTM_restart_transaction): Fix uninstrumented code check.
1776 * retry.c (GTM_decide_retry_strategy): Add serial check.
1777 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1778 automatically go irrevokable when in serial mode.
1779 * clone.c: New file.
1780 * libitm.h, libitm.map: Update.
1782 2009-01-27 Richard Henderson <rth@redhat.com>
1784 * Makefile.am (LTCCASCOMPILE): Define.
1785 (libitm_la_SOURCES): Add methid-wbetl.c.
1786 * testsuite/Makefile.am: New
1787 * configure.ac: Add testsuite/Makefile.
1788 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1789 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1790 (_ITM_abortTransaction): Finalize implementation method; pass
1791 transaction properties to longjmp.
1792 (GTM_restart_transaction): Split out from ...
1793 (_ITM_commitTransaction): ... here.
1794 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1795 Move to config/x86/target.h.
1796 * config/linux/alpha/futex_bits.h: New.
1797 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1798 * config/x86/target.h: Disable target types for 32-bit.
1799 * config/alpha/sjlj.S, config/alpha/target.h: New.
1800 * libitm.h (struct gtm_dispatch): Add init, fini.
1801 (enum restart_reason): New.
1802 (struct gtm_transaction): Add method and restarts.
1803 * retry.c (GTM_decide_retry_strategy): Implement.
1804 * serial.c (serial_init, serial_fini): New.
1805 (GTM_serialmode): Finialize outgoing method.
1806 * method-wbetl.c: New.
1808 2008-12-09 Richard Henderson <rth@redhat.com>
1810 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1811 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1812 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1813 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1814 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1815 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1816 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1817 * serial.c (serial_R##T, serial_W##T): Likewise.
1819 2008-11-21 Richard Henderson <rth@redhat.com>