1 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
2 Joseph Myers <joseph@codesourcery.com>
3 Mark Shinwell <shinwell@codesourcery.com>
4 Andrew Stubbs <ams@codesourcery.com>
5 Rich Felker <dalias@libc.org>
7 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
8 GTM_begin_transaction for compatibility with FDPIC.
10 2015-10-09 David Malcolm <dmalcolm@redhat.com>
12 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
15 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
18 * local_atomic (__always_inline): Rename to...
19 (__libitm_always_inline): ... this.
21 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
24 * config/powerpc/sjlj.S: Port to Xcode 2.5.
26 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
28 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
29 operands "op" and "val" to int.
31 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
33 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
34 "op" and "val" to int.
36 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
38 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
39 "op" and "val" to int.
41 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
43 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
44 Declare as static int.
45 (FUTEX_PRIVATE_FLAG): Remove L suffix.
46 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
48 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
50 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
53 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
55 * Makefile.in: Regenerated with automake-1.11.6.
56 * aclocal.m4: Likewise.
57 * configure: Likewise.
58 * testsuite/Makefile.in: Likewise.
60 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
62 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
63 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
65 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
68 * libitm.c/stackundo.c (test2): Make it static.
71 2015-01-05 Jakub Jelinek <jakub@redhat.com>
73 Update copyright years.
75 2015-01-05 Jakub Jelinek <jakub@redhat.com>
77 * libitm.texi: Bump @copying's copyright year.
79 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
81 * testsuite/lib/libitm.exp: Load target-utils.exp.
82 Move load of target-supports.exp earlier.
84 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
86 * configure.tgt (x86_64): Tune -m32 multilib to generic.
88 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
91 * configure: Regenerated.
93 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
96 * configure: Regenerate.
98 2014-10-06 Marek Polacek <polacek@redhat.com>
100 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
101 * testsuite/libitm.c/memset-1.c: Likewise.
103 2014-07-24 Richard Henderson <rth@redhat.com>
105 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
106 addressing mode in epilogue.
108 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
111 -mclear-hwcap instead.
112 * configure: Regenerate.
113 * clearcap.map: Remove.
115 2014-05-21 John Marino <gnugcc@marino.st>
117 * configure.tgt (*-*-dragonfly*): New target.
119 2014-05-19 Richard Henderson <rth@redhat.com>
121 * config/aarch64/sjlj.S: New file.
122 * config/aarch64/target.h: New file.
123 * configure.tgt: Enable aarch64.
125 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127 * config/generic/asmcfi.h: Also check for
128 __GCC_HAVE_DWARF2_CFI_ASM.
130 2013-04-02 Richard Henderson <rth@redhat.com>
132 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
133 * config/arm/target.h, config/sh/target.h: Likewise.
134 * config/sparc/target.h, config/x86/target.h: Likewise.
136 2014-03-26 Jakub Jelinek <jakub@redhat.com>
138 * config/linux/futex_bits.h: Include errno.h.
139 (sys_futex0): If syscall returns -1, return -errno rather than
142 2014-03-26 Joseph Myers <joseph@codesourcery.com>
144 * libitm.texi (Index): Rename to Library Index.
146 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
149 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
150 (x86_avx.lo): Append -mavx to CXXFLAGS.
151 * Makefile.in: Regenerate.
153 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
155 Update copyright years
157 2014-01-02 Tobias Burnus <burnus@net-b.de>
159 * libitm.texi: Bump @copying's copyright year.
161 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
163 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
164 (FUNC): Define ELFv2 variant.
171 2013-09-20 Alan Modra <amodra@gmail.com>
173 * configure: Regenerate.
175 2013-08-30 Torvald Riegel <triegel@redhat.com>
177 * config/posix/rwlock.cc: Fix initialization order.
179 2013-08-30 Torvald Riegel <triegel@redhat.com>
181 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
182 (htm_fastpath): Assign an asm name.
183 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
185 (_ITM_actions): Likewise.
186 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
188 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
189 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
190 field to the start of the structure.
191 * config/linux/rwlock.h (gtm_rwlock): Update comments.
192 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
193 handling for custom HTM fast paths.
195 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
197 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
199 * configure.tgt: Add -msoft-float to XCFLAGS.
201 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
203 * configure.tgt: Add -msoft-float to XCFLAGS.
205 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
207 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
208 (htm_transaction_active): Enable zEC12 instructions in the
210 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
212 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
214 * acinclude.m4: Add htm asm check for s390.
215 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
216 * configure: Regenerate.
217 * config/s390/target.h: Remove __HTM__ check.
218 (htm_available): Call getauxval to get hwcaps and check whether
219 HTM is available or not.
221 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
223 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
224 * configure.ac: Use it.
225 (AC_CHECK_HEADERS): Check for sys/auxv.h.
226 (AC_CHECK_FUNCS): Check for getauxval.
227 * config.h.in, configure: Rebuild.
228 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
229 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
230 (USE_HTM_FASTPATH): Define.
231 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
232 _HTM_RETRIES) New macros.
233 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
234 htm_begin_success, htm_commit, htm_transaction_active): New functions.
236 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
238 * config/s390/target.h: Include htmintrin.h.
239 (_HTM_ITM_RETRIES): New macro definition.
240 (htm_available, htm_init, htm_begin, htm_begin_success)
241 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
243 2013-06-20 Iain Sandoe <iain@codesourcery.com>
244 Cesar Philippidis <cesar@codesourcery.com>
246 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
247 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
248 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
249 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
251 2013-06-20 Torvald Riegel <triegel@redhat.com>
253 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
254 (_ITM_getTransactionId): Same.
255 * config/x86/target.h (htm_transaction_active): New.
257 2013-06-20 Torvald Riegel <triegel@redhat.com>
260 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
263 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
266 * local_atomic (__always_inline): Always define our version.
267 (__calculate_memory_order): Mark inline.
268 (atomic_thread_fence): Ditto.
269 (atomic_signal_fence): Ditto.
270 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
271 (atomic_bool::atomic_flag_clear_explicit): Ditto.
272 (atomic_bool::atomic_flag_test_and_set): Ditto.
273 (atomic_bool::atomic_flag_clear): Ditto.
275 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
277 * config/s390/sjlj.S: New file.
278 * config/s390/target.h: New file.
279 * configure.tgt: Set options for S/390.
281 2013-03-23 Andi Kleen <ak@linux.intel.com>
283 * local_atomic (__always_inline): Add.
284 (__calculate_memory_order, atomic_thread_fence,
285 atomic_signal_fence, test_and_set, clear, store, load,
286 exchange, compare_exchange_weak, compare_exchange_strong,
287 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
288 Add __always_inline to force inlining.
290 2013-02-11 Iain Sandoe <iain@codesourcery.com>
291 Jack Howarth <howarth@bromo.med.uc.edu>
292 Patrick Marlier <patrick.marlier@gmail.com>
295 * alloc_cpp.cc: Enable function declarations on darwin.
296 * eh_cpp.cc: Likewise.
298 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
300 Update copyright years.
302 2012-11-09 Torvald Riegel <triegel@redhat.com>
304 * beginend.cc (htm_fastpath): New.
305 (gtm_thread::begin_transaction, _ITM_commitTransaction,
306 _ITM_commitTransactionEH): Add HTM fastpath handling.
307 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
308 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
309 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
310 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
311 * configure.tgt: Add -mrtm to XCFLAGS.
312 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
313 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
314 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
315 * retry.cc (parse_default_method): Add HTM method parsing.
316 (gtm_thread::number_of_threads_changed): Use HTM by default if
319 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
321 * configure: Regenerate.
323 2012-10-31 Richard Henderson <rth@redhat.com>
325 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
326 * configure.ac: Use it.
327 * config.h.in, configure: Rebuild.
328 * testsuite/Makefile.in: Rebuild.
330 2012-10-24 Torvald Riegel <triegel@redhat.com>
332 * libitm.texi: Clarify ABI requirements for data-logging functions.
334 2012-10-24 Torvald Riegel <triegel@redhat.com>
336 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
337 it requires serial mode instead of assuming that for certain
339 * dispatch.h (abi_dispatch::requires_serial): New.
340 (abi_dispatch::abi_dispatch): Adapt.
341 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
342 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
343 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
344 serial_dispatch::serial_dispatch,
345 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
347 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
349 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
350 and ia32 declarations some more.
351 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
353 2012-09-20 Jakub Jelinek <jakub@redhat.com>
356 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
357 * configure: Regenerate.
358 * Makefile.in: Regenerate.
360 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
362 * configure: Regenerated.
364 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
366 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
368 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
370 * eh_cpp.cc: Fix __cxa_end_catch declaration.
372 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
374 * configure: Regenerated.
376 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
379 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
382 2012-04-03 Tristan Gingold <gingold@adacore.com>
384 * configure: Regenerate.
386 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
389 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
391 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
393 * testsuite/lib/libitm.exp: load fortran-modules.exp
395 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397 * configure.tgt (*-*-irix6*): Remove.
399 2012-03-13 Torvald Riegel <triegel@redhat.com>
402 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
405 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
407 * configure.tgt (*-*-osf*): Remove.
408 * configure: Regenerate.
410 2012-03-05 Torvald Riegel <triegel@redhat.com>
412 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
413 memtransfer/memset if size isn't larger than zero.
415 2012-03-02 Torvald Riegel <triegel@redhat.com>
417 * libitm.texi: Link to specification and add a usage example.
419 2012-02-24 Torvald Riegel <triegel@redhat.com>
421 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
422 default dispatch for more than 1 thread to ml_wt.
424 2012-02-20 Torvald Riegel <triegel@redhat.com>
426 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
428 2012-02-20 Torvald Riegel <triegel@redhat.com>
430 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
432 2012-02-20 Torvald Riegel <triegel@redhat.com>
434 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
435 serial mode corner cases made obsolete by prior gtm_rwlock changes.
436 (gl_wt_dispatch.rollback): Same.
438 2012-02-20 Torvald Riegel <triegel@redhat.com>
440 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
442 2012-02-20 Torvald Riegel <triegel@redhat.com>
444 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
445 for RfW src. Optimize number of calls to gtm_thr.
447 2012-02-20 Torvald Riegel <triegel@redhat.com>
449 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
451 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
452 (default_dispatch): Make atomic.
453 (GTM::gtm_thread::set_default_dispatch): Access atomically.
454 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
455 use decide_begin_dispatch() if default_dispatch might have changed.
456 (GTM::gtm_thread::number_of_threads_changed): Initialize
457 default_dispatch here.
459 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
460 Patrick Marlier <patrick.marlier@gmail.com>
463 * alloc_cpp.cc: No dummy definitions for darwin.
464 * eh_cpp.cc: Likewise.
466 2012-02-14 Richard Henderson <rth@redhat.com>
468 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
470 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
472 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
474 2012-02-14 Torvald Riegel <triegel@redhat.com>
476 * libitm_i.h (GTM::gtm_rwlog_entry): New.
477 (GTM::gtm_thread): Add read and write logs.
478 (GTM::dispatch_ml_wt): Declare.
479 * retry.cc (parse_default_method): Support ml_wt.
480 * method-ml.cc: New file.
481 * Makefile.am: Add method-ml.cc.
482 * Makefile.in: Regenerate.
484 2012-02-14 Torvald Riegel <triegel@redhat.com>
486 * dispatch.h (GTM::abi_dispatch::supports): New.
487 (GTM::method_group::reinit): New.
488 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
489 (GTM::gtm_thread::number_of_threads_changed): Check that the method
490 supports the current situation.
492 2012-02-14 Torvald Riegel <triegel@redhat.com>
494 * util.cc (GTM::xcalloc): New.
495 * common.h (GTM::xcalloc): Declare.
497 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
499 * config/sparc/target.h (cpu_relax): Read from CC register.
500 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
502 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
504 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
506 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
508 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
509 * config/sparc/cacheline.h: New file.
510 * config/sparc/target.h: Likewise.
511 * config/sparc/sjlj.S: Likewise.
512 * config/linux/sparc/futex_bits.h: Likewise.
514 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
516 * configure.ac (link_itm): Fix comment.
517 * configure: Regenerate.
518 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
520 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
523 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
524 Correct libgomp references.
526 2012-01-24 Torvald Riegel <triegel@redhat.com>
528 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
531 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
533 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
535 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
536 offset values. Do not copy return address. Decrement stack
538 (GTM_longjump) [__x86_64__]: Update offset values.
540 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
543 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
544 the first function argument to %eax.
546 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
548 * libitm.h (_ITM_getThreadnum): Remove.
549 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
551 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553 * clearcap.map: New file.
554 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
555 * configure.ac: Call it.
556 Clear HWCAP_LDFLAGS if defaulting to -mavx.
557 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
558 * configure: Regenerate.
559 * Makefile.in: Regenerate.
560 * testsuite/Makefile.in: Regenerate.
562 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
565 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
566 include, exclude options.
568 2012-01-14 Torvald Riegel <triegel@redhat.com>
570 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
572 * containers.h (GTM::vector::set_size): New.
574 2012-01-14 Torvald Riegel <triegel@redhat.com>
577 * config/generic/tls.h (GTM::mask_stack_top): New.
578 (GTM::mask_stack_bottom): Declare.
579 * config/generic/tls.c (GTM::mask_stack_bottom): New.
580 * local.cc (gtm_undolog::rollback): Filter out any updates that
581 overlap the libitm stack. Add current transaction as parameter.
582 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
583 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
584 * testsuite/libitm.c/stackundo.c: New test.
586 2012-01-10 Richard Henderson <rth@redhat.com>
588 * libitm_i.h (_Unwind_DeleteException): Declare weak.
589 * eh_cpp.cc (_Unwind_DeleteException): Define for
590 !HAVE_ELF_STYLE_WEAKREF.
592 2012-01-08 Torvald Riegel <triegel@redhat.com>
594 * local.cc (GTM_LB): Use GTM::gtm_undolog.
595 (GTM::gtm_thread::drop_references_undolog): Remove.
596 (GTM::gtm_thread::commit_undolog,
597 GTM::gtm_thread::rollback_undolog): Move to ...
598 * libitm_i.h (GTM::gtm_undolog): ...here. New.
599 (GTM::gtm_undolog_entry): Remove.
600 (GTM::gtm_thread): Adapt.
601 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
602 (GTM::gtm_thread::trycommit): Adapt.
603 * method-serial.cc (serial_dispatch::log): Adapt.
604 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
605 (gl_wt_dispatch::store): Fix likely/unlikely.
606 * containers.h (GTM::vector::resize): Add additional_capacity
607 parameter and handle it.
608 (GTM::vector::resize_noinline): New/adapt.
609 (GTM::vector::push): New.
611 2012-01-06 Richard Henderson <rth@redhat.com>
613 * configure.tgt: Support powerpc-linux and powerpc-darwin.
614 * config/linux/powerpc/futex_bits.h: New file.
615 * config/powerpc/cacheline.h: New file.
616 * config/powerpc/sjlj.S: New file.
617 * config/powerpc/target.h: New file.
618 * config/generic/asmcfi.h (cfi_offset): New.
619 (cfi_restore, cfi_undefined): New.
621 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
624 * testsuite/libitm.c/reentrant.c: Remove xfail.
625 (thread): Pass x to pure().
626 From Patrik Marlier <patrick.marlier@gmail.com>.
628 2011-12-24 Torvald Riegel <triegel@redhat.com>
630 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
631 privatization safety if already in serial mode.
633 2011-12-24 Torvald Riegel <triegel@redhat.com>
635 * beginend.cc (GTM::gtm_thread::restart): Add and handle
636 finish_serial_upgrade parameter.
637 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
638 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
639 Don't unset reader flag.
640 (GTM::gtm_rwlock::write_upgrade_finish): New.
641 * config/posix/rwlock.cc: Same.
642 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
644 * config/posix/rwlock.h: Same.
645 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
646 flag after commit or after rollback when restarting.
648 2011-12-24 Torvald Riegel <triegel@redhat.com>
650 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
651 (GTM::gtm_thread::try_commit): Changed memory order.
652 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
654 * config/linux/x86/futex_bits.h (sys_futex0): Same.
655 * config/linux/sh/futex_bits.h (sys_futex0): Same.
656 * config/linux/futex_bits.h (sys_futex0): Same.
657 * config/linux/futex.cc (futex_wait, futex_wake): Same.
658 * config/linux/futex.h (futex_wait, futex_wake): Same.
659 * config/linux/rwlock.h (gtm_rwlock::writers,
660 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
662 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
663 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
664 gtm_rwlock::write_unlock): Fix memory orders and fences.
665 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
666 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
667 gtm_rwlock::write_unlock): Same.
668 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
669 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
670 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
672 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
673 gl_wt_dispatch::load, gl_wt_dispatch::store,
674 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
675 orders and fences. Add comments.
677 2011-12-21 Jakub Jelinek <jakub@redhat.com>
679 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
680 * Makefile.in: Regenerated.
682 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
684 * configure.tgt: Add sh* case.
685 * config/sh/target.h: New file.
686 * config/sh/sjlj.S: New file.
687 * config/linux/sh/futex_bits.h: New file.
689 2011-12-14 Richard Henderson <rth@redhat.com>
691 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
692 * config/arm/sjlj.S, config/arm/target.h: New files.
693 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
694 (cfi_rel_offset): New.
695 * config/linux/futex_bits.h: New file.
696 * config/linux/futex.cc: Include futex_bits.h here...
697 * config/linux/futex.h: ... not here.
698 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
699 * configure.ac (ARCH_AM): New conditional.
700 * Makefile.in, configure: Rebuild.
701 * configure.tgt: Handle ARM.
703 2011-12-13 Richard Henderson <rth@redhat.com>
705 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
706 signed/unsigned comparison werror.
708 * local_atomic: New file.
709 * libitm_i.h: Include it.
710 (gtm_thread::shared_state): Use atomic template.
711 * beginend.cc (GTM::gtm_clock): Use atomic template.
712 (global_tid): Use atomic template if 64-bit atomics available.
713 (gtm_thread::gtm_thread): Update shared_state access.
714 (gtm_thread::trycommit): Likewise.
715 (choose_code_path): Update global_tid access.
716 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
717 * stmlock.h (GTM::gtm_clock): Use atomic template.
718 (gtm_get_clock, gtm_inc_clock): Update accesses.
719 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
720 redundant __sync_synchronize after atomic shared_state access.
721 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
722 (gtm_rwlock::write_lock_generic): Likewise.
723 (gtm_rwlock::read_unlock): Likewise.
724 * config/alpha/target.h (atomic_read_barrier): Remove.
725 (atomic_write_barrier): Remove.
726 * config/x86/target.h (atomic_read_barrier): Remove.
727 (atomic_write_barrier): Remove.
729 2011-11-30 Richard Henderson <rth@redhat.com>
731 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
732 * beginend.c (_ITM_abortTransaction): Update to match.
733 (GTM::gtm_thread::restart): Likewise.
734 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
735 * config/x86/sjlj.S (GTM_longjmp): Likewise.
737 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
739 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
740 * Makefile.in: Regenerate.
742 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
744 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
745 * alloc_cpp.cc: Generate dummy functions if we don't
746 HAVE_ELF_STYLE_WEAKREF.
747 * eh_cpp.cc: Likewise.
748 * configure: Regenerate.
749 * aclocal.m4: Likewise.
750 * config.h.in: Likewise.
751 * Makefile.in: Likewise.
752 * testsuite/Makefile.in: Likewise.
754 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
756 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
757 __USER_LABEL_PREFIX__ for targets that use it.
758 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
759 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
760 in portability to non-elf targets.
761 (GTM_longjmp): Likewise.
762 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
765 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
767 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
768 * testsuite/libitm.c/memset-1.c: Likewise.
770 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
772 * configure: Regenerate.
774 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
776 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
777 (LIBITM_ENABLE_SYMVERS): Handle sun style.
778 * Makefile.am: Handle sun style versioning.
779 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
780 * configure: Regenerate.
781 * Makefile.in: Regenerate.
783 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
785 * config/generic/asmcfi.h: Fix comment.
786 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
787 sequence without .hidden support, error for non-ELF targets.
788 (GTM_longjmp) [__ELF__]: Only use .hidden if
789 HAVE_ATTRIBUTE_VISIBILITY.
791 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
794 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
796 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
797 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
799 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
802 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
803 * configure: Regenerate.
805 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
807 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
809 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
811 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
813 (.note.GNU-stack): Only use if __linux__.
814 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
815 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
816 * testsuite/libitm.c/reentrant.c: Likewise.
817 * testsuite/libitm.c/simple-2.c: Likewise.
818 * testsuite/libitm.c/txrelease.c: Likewise.
819 * testsuite/libitm.c++/static_ctor.C: Likewise.
821 2011-11-10 Richard Henderson <rth@redhat.com>
823 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
824 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
825 * configure.ac (ARCH_X86_AVX): New conditional.
826 * Makefile.in, configure: Rebuild.
828 2011-11-09 Richard Henderson <rth@redhat.com>
830 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
831 * configure.ac: Use it.
832 * config.h.in, configure: Rebuild.
833 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
835 2011-11-09 Richard Henderson <rth@redhat.com>
837 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
838 * config/alpha/unaligned.h: Remove file.
839 * config/generic/unaligned.h: Remove file.
840 * config/x86/unaligned.h: Remove file.
841 * config/generic/cachepage.h: Remove file.
842 * config/posix/cachepage.cc: Remove file.
843 * config/generic/cacheline.cc: Remove file.
844 * config/x86/cacheline.cc: Remove file.
845 * config/generic/cacheline.h (gtm_cacheline): Remove the
846 store_mask, copy_mask, copy_mask_wb methods.
847 * config/x86/cacheline.h: Likewise.
848 * config/alpha/cacheline.h: Fall back to generic after setting size.
849 * config/generic/tls.cc (gtm_mask_stack): Remove.
850 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
851 (GTM_vpalignr_table): Remove.
852 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
853 (GTM_pshift_table): Remove.
854 * config/libitm_i.h: Don't include cachepage.h.
855 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
856 * Makefile.in, testsuite/Makefile.in: Rebuild.
858 2011-11-09 Richard Henderson <rth@redhat.com>
860 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
861 to emit branch prediction hint.
863 * config/x86/sjlj.S: Protect elf directives with __ELF__.
864 Protect .note.GNU-stack with __linux__.
866 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
867 * configure, aclocal.m4, config.h.in: Rebuild.
868 * config/generic/asmcfi.h: New file.
869 * config/x86/sjlj.S: Use it.
871 2011-11-08 Richard Henderson <rth@redhat.com>
873 * local.cc (_ITM_LB): Use a normal call, not a function alias.
875 2011-11-08 Richard Henderson <rth@redhat.com>
877 * configure.tgt: Test correct directory for supported cpus.
879 * configure.ac: Exit if unsupported.
880 * configure: Rebuild.
881 * configure.tgt: Delete boilerplate from libgomp for unsupported
882 targets. Set UNSUPPORTED for unsupported targets.
884 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
886 * configure.tgt: Handle i386 like i[456]86.
887 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
889 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
890 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
892 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
894 * method-wbetl.cc: Update copyright notice.
901 * useraction.cc: Same.
905 * config/generic/tls.cc: Same.
906 * config/generic/cacheline.h: Same.
907 * config/generic/cachepage.h: Same.
908 * config/generic/cacheline.cc: Same.
909 * config/generic/unaligned.h: Same.
910 * config/x86/cacheline.h: Same.
911 * config/x86/cacheline.cc: Same.
912 * config/x86/unaligned.h: Same.
913 * config/alpha/cacheline.h: Same.
914 * config/alpha/unaligned.h: Same.
915 * config/alpha/sjlj.S: Same.
916 * config/posix/cachepage.cc: Same.
917 * config/linux/futex.h: Same.
918 * config/linux/alpha/futex_bits.h: Same.
920 2011-11-04 Torvald Riegel <triegel@redhat.com>
922 * libitm.texi: No cover text and invariant sections.
924 2011-11-03 Richard Henderson <rth@redhat.com>
926 * local_type_traits: New file.
927 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
929 2011-11-03 Richard Henderson <rth@redhat.com>
931 * configure.ac: Don't test for gfortran.
932 * configure: Rebuild.
934 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
935 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
937 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
939 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
940 * testsuite/libitm.c/memset-1.c: Same.
941 * testsuite/libitm.c/c.exp: Same.
942 * testsuite/lib/libitm-dg.exp: Same.
943 * testsuite/lib/libitm.exp: Same.
944 * testsuite/libitm.c++/c++.exp: Same.
946 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
948 * testsuite/config/default.exp: Update copyright date.
949 * configure.ac: Add copyright info.
950 * configure.tgt: Same.
952 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
954 * testsuite/libitm.c/reentrant.c: XFAIL.
955 * testsuite/libitm.c++/static_ctor.C: XFAIL.
957 2011-10-29 Torvald Riegel <triegel@redhat.com>
959 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
961 (_ITM_abortTransaction): Handle aborts of outer transactions.
963 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
964 * libitm.texi: Document aborts of outer transactions.
965 * testsuite/libitm.c/cancel.c: New file.
967 2011-10-19 Torvald Riegel <triegel@redhat.com>
969 * testsuite/*: Change __transaction to __transaction_atomic or
970 __transaction_relaxed.
972 2011-10-19 Torvald Riegel <triegel@redhat.com>
974 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
977 2011-10-19 Torvald Riegel <triegel@redhat.com>
979 * libitm_i.h: Add gl_wt dispatch.
980 * retry.cc (parse_default_method): Same.
981 * method-gl.cc: New file.
982 * Makefile.am: Use method-gl.cc.
983 * Makefile.in: Rebuild.
985 2011-10-19 Torvald Riegel <triegel@redhat.com>
987 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
988 safety if requested by a TM method.
989 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
990 privatization safety.
991 * method-serial.cc: Same.
993 2011-10-19 Torvald Riegel <triegel@redhat.com>
995 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
996 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
997 undolog-related member functions from *_local to *_undolog.
998 * local.cc (gtm_thread::commit_undolog): Same.
999 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1000 (GTM::gtm_thread::rollback): Roll back undolog before
1001 dispatch-specific rollback.
1003 2011-10-19 Torvald Riegel <triegel@redhat.com>
1005 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1006 re-initialization of the current method group.
1007 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1009 2011-10-19 Torvald Riegel <triegel@redhat.com>
1011 * alloc.cc (commit_allocations_2): Do not free transaction-local
1012 memory when committing a nested transaction.
1014 2011-10-19 Torvald Riegel <triegel@redhat.com>
1016 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1017 serial-irrevocable dispatch, not serial.
1019 2011-10-19 Torvald Riegel <triegel@redhat.com>
1021 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1023 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1024 * method-serial.cc: Implement begin_or_restart().
1025 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1026 dispatch-specific begin_or_restart().
1027 (GTM::gtm_thread::restart): Same.
1029 2011-08-23 Torvald Riegel <triegel@redhat.com>
1031 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1032 restarting without switching to serial mode.
1033 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1034 transaction state. Choose closed-nesting alternative if available.
1035 (GTM::gtm_thread::set_default_dispatch): New.
1036 (parse_default_method): New.
1037 (GTM::gtm_thread::number_of_threads_changed): New.
1038 * method-serial.cc (GTM::serial_mg): New method group class.
1039 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1041 (GTM::serial_dispatch): Same.
1042 (GTM::serialirr_onwrite_dispatch): Same.
1043 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1044 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1046 (GTM::gtm_thread::gtm_thread): Same.
1047 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1048 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1049 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1050 choose dispatch but set state according to dispatch here.
1051 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1052 (GTM::method_group): New class.
1053 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1054 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1055 * libitm.texi: Document TM methods, method groups, method life cycle.
1056 Rename method sets to method groups.
1058 2011-08-23 Torvald Riegel <triegel@redhat.com>
1060 * config/x86/tls.h: Moved to ...
1061 * config/linux/x86/tls.h: ... here.
1063 2011-08-23 Torvald Riegel <triegel@redhat.com>
1065 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1067 * config/x86/sjlj.S: Same.
1069 2011-08-19 Torvald Riegel <triegel@redhat.com>
1071 * config/linux/rwlock.h: New file.
1072 * config/linux/rwlock.c: New file.
1073 * configure.ac: Reenable futex support (undo SVN rev 157758).
1074 * Makefile.am: Same.
1075 * configure.tgt: Same.
1076 * config/linux/alpha/futex_bits.h: Same.
1077 * config/linux/futex.h: Same. Return number of woken processes.
1078 * config/linux/futex.cc: Same.
1079 (futex_wait): Remove spinning.
1080 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1081 Use __x86_64__ instead of __LP64__.
1082 * aclocal.m4: Include generic futex checks.
1083 * configure: Rebuild.
1084 * Makefile.in: Rebuild.
1085 * testsuite/Makefile.in: Rebuild.
1086 * beginend.cc: Include pthread.h.
1087 * config/posix/cachepage.cc: Same.
1089 2011-08-12 Torvald Riegel <triegel@redhat.com>
1091 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1092 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1094 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1096 (GTM::gtm_thread::thread_num): Removed.
1097 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1098 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1099 tx-to-thread renaming.
1100 * beginend.cc: Adapted to tx-to-thread renaming.
1101 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1102 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1103 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1104 gtm_transaction to gtm_thread.
1105 (_ITM_getThreadnum): Removed. Not supported anymore.
1106 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1107 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1108 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1109 gtm_tx-to-gtm_thr renaming if necessary.
1116 * alloc_cpp.cc: Same.
1117 * method-serial.cc: Same.
1118 * config/generic/tls.cc: Same.
1119 * config/posix/rwlock.h (gtm_rwlock): Same.
1120 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1122 2011-08-12 Torvald Riegel <triegel@redhat.com>
1124 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1126 (gtm_rwlock::read_unlock): Same.
1127 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1128 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1129 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1130 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1131 w_upgrade. Replaced by per-transaction flags (in shared_state).
1132 Added c_confirmed_writers.
1133 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1134 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1135 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1136 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1137 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1138 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1139 * libitm.texi: Document locking conventions and implementations in
1142 2011-08-12 Torvald Riegel <triegel@redhat.com>
1144 * libitm_i.h (next_tx): Add list of all threads' transaction.
1145 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1146 transaction with list of transactions and ...
1147 (thread_exit_handler): ... deregister here.
1148 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1149 * config/x86/target.h: Same.
1151 2011-08-12 Torvald Riegel <triegel@redhat.com>
1153 * testsuite/libitm.c++/static_ctor.C: New file.
1155 2011-08-12 Torvald Riegel <triegel@redhat.com>
1157 * testsuite/libitm.c/reentrant.c: New file.
1159 2011-08-12 Torvald Riegel <triegel@redhat.com>
1161 * config/generic/tls.h: Remove the free list for transactions and ...
1162 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1163 (GTM::gtm_transaction::operator delete): ... and release here.
1164 (thread_exit_handler): New. Delete tx when thread terminates.
1165 (thread_exit_init): New.
1166 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1167 * testsuite/libitm.c/txrelease.c: New file.
1169 2011-08-12 Torvald Riegel <triegel@redhat.com>
1171 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1172 * testsuite/libitm.c/notx.c: New file.
1174 2011-08-12 Torvald Riegel <triegel@redhat.com>
1176 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1177 * libitm_i.h (local_tid): ... to here.
1178 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1179 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1181 2011-08-12 Torvald Riegel <triegel@redhat.com>
1183 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1184 serialirr_onwrite_dispatch as new default for now.
1185 * method-serial.cc (serialirr_onwrite_dispatch): New.
1186 (GTM::dispatch_serialirr_onwrite): New.
1189 2011-08-12 Torvald Riegel <triegel@redhat.com>
1191 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1192 * query.cc (_ITM_getTransactionId): There is no active transaction if
1193 the current nesting level is zero.
1195 2011-07-28 Torvald Riegel <triegel@redhat.com>
1197 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1200 2011-07-28 Torvald Riegel <triegel@redhat.com>
1202 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1203 transaction properties from the caller instead of from the
1206 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1208 2011-07-28 Torvald Riegel <triegel@redhat.com>
1210 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1211 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1213 * method-serial.cc: Same.
1214 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1215 flat nesting as default, and closed nesting on demand.
1216 (GTM::gtm_transaction::rollback): Same.
1217 (_ITM_abortTransaction): Same.
1218 (GTM::gtm_transaction::restart): Same.
1219 (GTM::gtm_transaction::trycommit): Same.
1220 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1221 (choose_code_path): New.
1222 (GTM::gtm_transaction_cp::save): New.
1223 (GTM::gtm_transaction_cp::commit): New.
1224 * query.cc (_ITM_inTransaction): Support flat nesting.
1225 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1226 (GTM::gtm_transaction): Support flat and closed nesting.
1227 * alloc.cc (commit_allocations_2): New.
1228 (commit_cb_data): New helper struct.
1229 (GTM::gtm_transaction::commit_allocations): Handle nested
1231 * libitm.texi: Update user action section, add description of nesting.
1233 2011-07-28 Torvald Riegel <triegel@redhat.com>
1235 * libitm_i.h: Add closed nesting as restart reason.
1236 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1238 2011-07-28 Torvald Riegel <triegel@redhat.com>
1240 * useraction.cc: Use vector instead of list to store actions.
1241 Also support partial rollbacks for closed nesting.
1242 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1243 * beginend.cc: Same.
1245 2011-07-28 Torvald Riegel <triegel@redhat.com>
1247 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1248 closed_nesting flags, as well as a closed nesting alternative.
1249 * method-serial.cc: Same.
1250 (serial_dispatch): Renamed to serialirr_dispatch.
1251 (GTM::dispatch_serialirr): Same.
1252 (serial_dispatch_ul): Renamed to serial_dispatch.
1253 (GTM::dispatch_serial): Same.
1255 2011-07-28 Torvald Riegel <triegel@redhat.com>
1257 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1259 2011-07-28 Torvald Riegel <triegel@redhat.com>
1261 * aatree.h (aa_tree::remove): New.
1262 (aa_tree::operator new): Add placement new.
1264 2011-07-02 Torvald Riegel <triegel@redhat.com>
1266 * containers.h: New file.
1267 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1268 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1269 * common.h: ... to here.
1270 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1273 2011-06-30 Torvald Riegel <triegel@redhat.com>
1275 * libitm_i.h (STATE_ABORTING): Remove.
1276 * beginend.cc (_ITM_abortTransaction): Same.
1277 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1278 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1279 (_ITM_rollbackTransaction): Remove.
1280 * beginend.cc: Same.
1282 * libitm.texi: Document these ABI changes.
1284 2011-06-30 Torvald Riegel <triegel@redhat.com>
1286 * libitm.texi: New file.
1287 * Makefile.am: Add libitm.texi.
1288 * Makefile.in: Rebuild.
1290 2011-06-30 Torvald Riegel <triegel@redhat.com>
1292 * libitm_i.h: Move parts to common.h and dispatch.h.
1293 * common.h: New file.
1294 * dispatch.h: New file, new dispatch class.
1295 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1296 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1297 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1298 decision to retry.cc.
1299 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1301 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1302 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1304 * barrier.cc: Use new barriers definitions.
1305 (abi_dispatch::memmove_overlap_check): New.
1306 * config/x86/x86_sse.cc: Same.
1307 * config/x86/x86_avx.cc: Same.
1308 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1310 * Makefile.in: Rebuild.
1311 * method-readonly.cc: Remove.
1312 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1313 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1315 2011-06-30 Torvald Riegel <triegel@redhat.com>
1317 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1318 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1319 * testsuite/libitm.c/dropref-2.c: Same.
1320 * testsuite/libitm.c/dropref.c: Same.
1322 2011-06-30 Torvald Riegel <triegel@redhat.com>
1324 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1325 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1326 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1328 * barrier.tpl: Same.
1330 * config/generic/tls.h: Same.
1331 * config/x86/tls.h: Same.
1335 * method-readonly.cc: Same.
1336 * method-serial.cc: Same.
1337 * method-wbetl.cc: Same.
1340 2011-03-03 Richard Henderson <rth@redhat.com>
1342 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1343 From Patrik Marlier <patrick.marlier@unine.ch>.
1345 2011-02-03 Richard Henderson <rth@redhat.com>
1347 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1348 * configure.ac: Use it.
1349 * configure, config.h.in: Rebuild.
1350 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1351 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1352 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1353 * libitm.map: Use wildcards to match size_t mangling.
1355 2010-12-14 Richard Henderson <rth@redhat.com>
1357 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1358 blocks of TIDs per thread.
1359 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1360 (setup_gtm_thr): Return the thread structure.
1361 * config/x86/tls.h (setup_gtm_thr): Likewise.
1363 2010-12-14 Richard Henderson <rth@redhat.com>
1365 * clone.cc (table_lock): Remove.
1366 (find_clone): Don't take it.
1367 (ExcludeTransaction): New helper class.
1368 (_ITM_registerTMCloneTable): Use it.
1369 (_ITM_deregisterTMCloneTable): Likewise.
1371 2010-12-14 Richard Henderson <rth@redhat.com>
1373 * config/x86/tls.h: New file.
1375 2010-07-15 Richard Henderson <rth@redhat.com>
1377 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1378 * Makefile.in: Rebuild.
1380 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1382 * method-wbetl.cc (trydropreference): Fix source line.
1384 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1386 * libitm.h: Add comment.
1387 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1389 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1391 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1392 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1393 available, use pthread mutexes.
1394 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1395 * config.h.in: Regenerate.
1396 * configure: Regenerate.
1398 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1400 * libitm.h (ITM_PURE): Define.
1401 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1403 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1405 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1406 (validate): Add comment.
1407 (trydropreference): New.
1408 * method-readonly.cc (class readonly_dispatch): Add
1410 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1411 Call trydropreference().
1412 * libitm.h (_ITM_dropReferences): Remove const attribute.
1413 * method-serial.cc (class serial_dispatch): Add trydropreference.
1414 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1416 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1418 * memcpy.cc (do_memcpy): Comment.
1420 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1422 * barrier.tpl: Add comments throughout.
1424 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1426 * method-wbetl.cc (struct w_entry): Add comments.
1430 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1432 * alloc_c.cc (_ITM_dropReferences): New.
1433 * libitm.map (_ITM_dropReferences): Add.
1434 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1435 * libitm_i.h (struct gtm_transaction): Declare
1436 drop_references_allocations and drop_references_local.
1437 * local.cc (rollback_local): Ignore memory when applicable.
1438 (drop_references_local): New.
1440 2010-06-23 Richard Henderson <rth@redhat.com>
1442 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1443 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1444 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1445 * config/alpha/target.h: Likewise.
1446 * config/generic/tls.cc (gtm_mask_stack): Use it.
1448 2010-06-23 Richard Henderson <rth@redhat.com>
1450 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1451 a mutex instead of trying a lock-free compare-and-swap on the list.
1452 (gtm_cacheline_page::operator delete): Likewise.
1454 2010-06-16 Richard Henderson <rth@redhat.com>
1456 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1457 that overlap the libitm stack.
1458 * barrier.tpl: Mark incoming stack.
1459 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1460 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1461 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1462 * memcpy.cc, memset.cc: Likewise.
1463 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1464 * config/generic/tls.h (gtm_thread): Add stack_top member.
1465 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1466 * libitm_i.h (gtm_mask_stack): Declare.
1467 * config/generic/tls.cc: New file.
1468 * Makefile.am (libitm_la_SOURCES): Add it.
1469 (AM_CXXFLAGS): Turn off exceptions.
1470 * Makefile.in: Rebuild.
1472 2010-06-16 Richard Henderson <rth@redhat.com>
1474 * alloc.cc (struct gtm_alloc_action): Move definition ...
1475 * libitm_i.h: ... here.
1476 (class gtm_transaction): Declare new and delete.
1477 * beginend.cc (alloc_tx): Reformulate as operator new.
1478 (free_tx): Reformulate as operator delete.
1479 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1481 2010-06-11 Richard Henderson <rth@redhat.com>
1483 * clone.cc (clone_entry_compare): Fix typo.
1484 From Patrik Marlier <patrick.marlier@unine.ch>.
1486 2010-05-13 Richard Henderson <rth@redhat.com>
1488 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1491 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1493 * libitm_i.h (struct gtm_transaction): Remove
1494 get_allocation_size.
1495 (record_allocation): Remove size parameter.
1496 * libitm.map (_ITM_realloc): Remove.
1497 * alloc_c.cc (_ITM_realloc): Remove.
1498 (_ITM_malloc): Remove size argument to record_allocation.
1499 (_ITM_calloc): Same.
1500 * alloc_cpp.cc (_ZGTtnwm): Same.
1501 (_ZGTtnwmRKSt9nothrow_t): Same.
1503 (_ZGTtnamRKSt9nothrow_t): Same.
1504 * alloc.cc (struct gtm_alloc_action): Remove size.
1505 (get_allocation_size): Remove.
1506 (commit_allocations): Add comment.
1507 (record_allocation): Remove size parameter.
1508 (forget_allocation): Remove set of size.
1510 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1512 * Makefile.am (abi_version): New.
1513 (AM_CXXFLAGS): Pass abi_version.
1514 * Makefile.in: Regenerate.
1515 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1517 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1519 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1520 _ITM_getTMCloneOrIrrevokable.
1521 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1522 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1524 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1526 * configure.ac: Remove Linux futex support.
1527 * configure.tgt (config_path): Same.
1528 * Makefile.am: Same.
1529 * config/linux: Remove entire directory.
1530 * configure: Rebuild.
1531 * Makefile.in: Rebuild.
1532 * testsuite/Makefile.in: Rebuild.
1534 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1536 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1537 switching to serial mode.
1538 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1540 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1542 * configure.tgt: Add emacs -*- tags.
1543 * barrier.tpl: Same.
1545 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1547 * Makefile.am: Rename serial.cc to method-serial.cc.
1548 * Makefile.in: Regenerate with automake 1.11.1.
1549 * testsuite/Makefile.in: Same.
1550 * aclocal.m4: Regenerate with aclocal 1.11.1.
1551 * method-serial.cc: Rename from serial.cc.
1552 * libitm_i.h (struct gtm_transaction): Update comment on
1555 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1557 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1558 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1560 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1562 * configure: Rebuild.
1564 2009-11-12 Richard Henderson <rth@redhat.com>
1566 * Rewrite everything in C++.
1568 2009-11-03 Richard Henderson <rth@redhat.com>
1570 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1571 * Makefile.am (libitm_la_SOURCES): Add them.
1572 * configure.ac (ARCH_X86): New conditional.
1573 * Makefile.in, configure: Rebuild.
1574 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1575 Move futex setup into "other system configury" case.
1576 * local.c (rollback_local): Merge into ...
1577 (GTM_rollback_local): ... here.
1578 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1579 (_ITM_LB): Define as an alias to GTM_LB.
1581 2009-11-03 Richard Henderson <rth@redhat.com>
1583 * method-readonly.c: New file.
1584 * Makefile.am (libitm_la_SOURCES): Add it.
1585 * Makefile.in: Rebuild.
1586 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1587 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1588 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1589 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1590 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1591 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1592 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1593 gtm_get_clock, gtm_inc_clock): New.
1594 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1595 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1596 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1597 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1598 replace uses with new libitm_i.h symbols.
1599 (dispatch_wbetl): Rename from wbetl_dispatch.
1600 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1601 away from dispatch_readonly; abort if the beginTransaction call
1602 asserted that the transaction was readonly.
1604 2009-11-03 Richard Henderson <rth@redhat.com>
1606 * memset.c: New file.
1607 * Makefile.am (libitm_la_SOURCES): Add it.
1608 * Makefile.in: Rebuild.
1609 * testsuite/libitm.c/memset-1.c: New.
1611 2009-11-03 Richard Henderson <rth@redhat.com>
1613 * dispatch.c: Remove file.
1614 * useraction.c (struct gtm_user_action): Move from libitm.h.
1615 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1616 (serial_memset, serial_memmove, serial_memcpy): Remove.
1617 (serial_W*, serial_R*): Remove.
1618 (serial_dispatch): Update to match.
1619 * configure.ac: Move Werror down below configure checks. Don't
1620 check for sys/loadavg.h, do check for malloc.h. Don't check for
1621 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1622 Use GCC_AC_FUNC_MMAP_BLACKLIST
1623 * libitm.h: Split out all internal items to...
1624 * libitm_i.h: ... here. New file.
1625 * copymask.c: New file.
1626 * local.c (struct gtm_local_undo): Move from libitm.h.
1627 (GTM_alloc_local): Rename from alloc_local; export.
1628 * memcpy.c: New file.
1629 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1630 * config/posix/page.c: New file.
1631 * config/posix/target_tls.h: Remove file.
1632 * barrier.c: New file.
1633 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1635 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1636 * method-wbetl.c: Rewrite for new cacheline methods.
1637 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1639 * config/alpha/sjlj.S: Fix typo.
1640 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1641 * config/alpha/copymask.c: New file.
1642 * config/alpha/target.h (CACHELINE_SIZE): New.
1643 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1645 * config/x86/target_i.h: Copy functions from x86/target.h.
1646 * config/x86/copymask.c: New file.
1647 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1648 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1649 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1650 * config/x86/target_tls.h: Move contents to target_i.h.
1652 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1653 * testsuite/libitm.c/memcpy-1.c: New.
1655 2009-10-22 Richard Henderson <rth@redhat.com>
1657 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1658 (AM_CCASFLAGS): New.
1659 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1660 saving/restoring _AC_ARG_VAR_PRECIOUS.
1661 * Makefile.in, aclocal.m4, config.h.in, configure,
1662 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1664 2009-10-22 Richard Henderson <rth@redhat.com>
1666 * testsuite/*: Update for new compiler syntax.
1668 2009-10-21 Richard Henderson <rth@redhat.com>
1670 * libitm.h (_ITM_abortReason): Add outerAbort.
1672 2009-08-03 Richard Henderson <rth@redhat.com>
1674 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1675 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1676 * method-wbetl.c (struct w_entry): Remove mask.
1677 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1680 2009-07-22 Richard Henderson <rth@redhat.com>
1682 * eh_cpp.c: New file.
1683 * Makefile.am (libitm_la_SOURCES): Add it.
1684 * Makefile.in: Rebuild.
1685 * beginend.c (GTM_rollback_transaction): Undo exception state.
1686 (GTM_trycommit_transaction): Mark inline.
1687 (GTM_trycommit_and_finalize_transaction): Split out from ...
1688 (_ITM_commitTransaction): ... here.
1689 (_ITM_commitTransactionEH): New function.
1690 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1691 cxa_unthrown, eh_in_flight; reorder.
1693 * testsuite/libitm.c++/c++.exp: New.
1694 * testsuite/libitm.c++/eh-1.C: New.
1696 * aatree.c (aa_free): Remove REGPARM.
1697 * aatree.h: Remove all REGPARM.
1699 2009-07-18 Richard Henderson <rth@redhat.com>
1701 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1702 * Makefile.am (libitm_la_SOURCES): Add them.
1703 * Makefile.in: Rebuild.
1704 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1705 (GTM_trycommit_transaction): Likewise.
1706 * libitm.h: Include aatree.h
1707 (struct gtm_alloc_action): New.
1708 (struct gtm_transaction): Add alloc_actions.
1709 (GTM_record_allocation, GTM_forget_allocation): Declare.
1710 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1711 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1712 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1713 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1714 _ZGTtdaPvRKSt9nothrow_t): Export.
1716 2009-07-18 Richard Henderson <rth@redhat.com>
1718 * target_tls.h: Move ...
1719 * config/posix/target_tls.h: ... here.
1721 2009-07-07 Richard Henderson <rth@redhat.com>
1723 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1725 2009-07-07 Richard Henderson <rth@redhat.com>
1729 2009-07-07 Richard Henderson <rth@redhat.com>
1731 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1732 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1734 * configure.tgt: Don't use -ftls-model for x86 linux.
1735 * libitm.h: Include target.h after standard includes.
1736 (_gtm_thr): Rename from gtm_thr.
1737 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1738 (gtm_disp, set_gtm_disp): New.
1739 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1740 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1741 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1743 2009-07-07 Richard Henderson <rth@redhat.com>
1745 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1747 2009-07-06 Richard Henderson <rth@redhat.com>
1749 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1750 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1751 (_ITM_beginTransaction): Take variadic arguments.
1752 (_ITM_registerThrownObject): Declare.
1753 * beginend.c, serial.c: Update.
1754 * libitm.map: Add _ITM_registerThrownObject.
1756 2009-01-28 Richard Henderson <rth@redhat.com>
1758 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1759 * Makefile.in: Rebuild.
1760 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1761 (GTM_restart_transaction): Fix uninstrumented code check.
1762 * retry.c (GTM_decide_retry_strategy): Add serial check.
1763 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1764 automatically go irrevokable when in serial mode.
1765 * clone.c: New file.
1766 * libitm.h, libitm.map: Update.
1768 2009-01-27 Richard Henderson <rth@redhat.com>
1770 * Makefile.am (LTCCASCOMPILE): Define.
1771 (libitm_la_SOURCES): Add methid-wbetl.c.
1772 * testsuite/Makefile.am: New
1773 * configure.ac: Add testsuite/Makefile.
1774 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1775 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1776 (_ITM_abortTransaction): Finalize implementation method; pass
1777 transaction properties to longjmp.
1778 (GTM_restart_transaction): Split out from ...
1779 (_ITM_commitTransaction): ... here.
1780 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1781 Move to config/x86/target.h.
1782 * config/linux/alpha/futex_bits.h: New.
1783 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1784 * config/x86/target.h: Disable target types for 32-bit.
1785 * config/alpha/sjlj.S, config/alpha/target.h: New.
1786 * libitm.h (struct gtm_dispatch): Add init, fini.
1787 (enum restart_reason): New.
1788 (struct gtm_transaction): Add method and restarts.
1789 * retry.c (GTM_decide_retry_strategy): Implement.
1790 * serial.c (serial_init, serial_fini): New.
1791 (GTM_serialmode): Finialize outgoing method.
1792 * method-wbetl.c: New.
1794 2008-12-09 Richard Henderson <rth@redhat.com>
1796 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1797 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1798 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1799 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1800 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1801 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1802 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1803 * serial.c (serial_R##T, serial_W##T): Likewise.
1805 2008-11-21 Richard Henderson <rth@redhat.com>