1 2014-03-26 Jakub Jelinek <jakub@redhat.com>
3 * config/linux/futex_bits.h: Include errno.h.
4 (sys_futex0): If syscall returns -1, return -errno rather than
7 2014-03-26 Joseph Myers <joseph@codesourcery.com>
9 * libitm.texi (Index): Rename to Library Index.
11 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
14 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
15 (x86_avx.lo): Append -mavx to CXXFLAGS.
16 * Makefile.in: Regenerate.
18 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20 Update copyright years
22 2014-01-02 Tobias Burnus <burnus@net-b.de>
24 * libitm.texi: Bump @copying's copyright year.
26 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
29 (FUNC): Define ELFv2 variant.
36 2013-09-20 Alan Modra <amodra@gmail.com>
38 * configure: Regenerate.
40 2013-08-30 Torvald Riegel <triegel@redhat.com>
42 * config/posix/rwlock.cc: Fix initialization order.
44 2013-08-30 Torvald Riegel <triegel@redhat.com>
46 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
47 (htm_fastpath): Assign an asm name.
48 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
50 (_ITM_actions): Likewise.
51 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
53 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
54 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
55 field to the start of the structure.
56 * config/linux/rwlock.h (gtm_rwlock): Update comments.
57 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
58 handling for custom HTM fast paths.
60 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
62 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
64 * configure.tgt: Add -msoft-float to XCFLAGS.
66 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
68 * configure.tgt: Add -msoft-float to XCFLAGS.
70 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
72 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
73 (htm_transaction_active): Enable zEC12 instructions in the
75 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
77 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
79 * acinclude.m4: Add htm asm check for s390.
80 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
81 * configure: Regenerate.
82 * config/s390/target.h: Remove __HTM__ check.
83 (htm_available): Call getauxval to get hwcaps and check whether
84 HTM is available or not.
86 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
88 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
89 * configure.ac: Use it.
90 (AC_CHECK_HEADERS): Check for sys/auxv.h.
91 (AC_CHECK_FUNCS): Check for getauxval.
92 * config.h.in, configure: Rebuild.
93 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
94 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
95 (USE_HTM_FASTPATH): Define.
96 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
97 _HTM_RETRIES) New macros.
98 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
99 htm_begin_success, htm_commit, htm_transaction_active): New functions.
101 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
103 * config/s390/target.h: Include htmintrin.h.
104 (_HTM_ITM_RETRIES): New macro definition.
105 (htm_available, htm_init, htm_begin, htm_begin_success)
106 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
108 2013-06-20 Iain Sandoe <iain@codesourcery.com>
109 Cesar Philippidis <cesar@codesourcery.com>
111 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
112 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
113 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
114 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
116 2013-06-20 Torvald Riegel <triegel@redhat.com>
118 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
119 (_ITM_getTransactionId): Same.
120 * config/x86/target.h (htm_transaction_active): New.
122 2013-06-20 Torvald Riegel <triegel@redhat.com>
125 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
128 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
131 * local_atomic (__always_inline): Always define our version.
132 (__calculate_memory_order): Mark inline.
133 (atomic_thread_fence): Ditto.
134 (atomic_signal_fence): Ditto.
135 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
136 (atomic_bool::atomic_flag_clear_explicit): Ditto.
137 (atomic_bool::atomic_flag_test_and_set): Ditto.
138 (atomic_bool::atomic_flag_clear): Ditto.
140 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
142 * config/s390/sjlj.S: New file.
143 * config/s390/target.h: New file.
144 * configure.tgt: Set options for S/390.
146 2013-03-23 Andi Kleen <ak@linux.intel.com>
148 * local_atomic (__always_inline): Add.
149 (__calculate_memory_order, atomic_thread_fence,
150 atomic_signal_fence, test_and_set, clear, store, load,
151 exchange, compare_exchange_weak, compare_exchange_strong,
152 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
153 Add __always_inline to force inlining.
155 2013-02-11 Iain Sandoe <iain@codesourcery.com>
156 Jack Howarth <howarth@bromo.med.uc.edu>
157 Patrick Marlier <patrick.marlier@gmail.com>
160 * alloc_cpp.cc: Enable function declarations on darwin.
161 * eh_cpp.cc: Likewise.
163 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
165 Update copyright years.
167 2012-11-09 Torvald Riegel <triegel@redhat.com>
169 * beginend.cc (htm_fastpath): New.
170 (gtm_thread::begin_transaction, _ITM_commitTransaction,
171 _ITM_commitTransactionEH): Add HTM fastpath handling.
172 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
173 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
174 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
175 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
176 * configure.tgt: Add -mrtm to XCFLAGS.
177 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
178 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
179 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
180 * retry.cc (parse_default_method): Add HTM method parsing.
181 (gtm_thread::number_of_threads_changed): Use HTM by default if
184 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
186 * configure: Regenerate.
188 2012-10-31 Richard Henderson <rth@redhat.com>
190 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
191 * configure.ac: Use it.
192 * config.h.in, configure: Rebuild.
193 * testsuite/Makefile.in: Rebuild.
195 2012-10-24 Torvald Riegel <triegel@redhat.com>
197 * libitm.texi: Clarify ABI requirements for data-logging functions.
199 2012-10-24 Torvald Riegel <triegel@redhat.com>
201 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
202 it requires serial mode instead of assuming that for certain
204 * dispatch.h (abi_dispatch::requires_serial): New.
205 (abi_dispatch::abi_dispatch): Adapt.
206 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
207 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
208 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
209 serial_dispatch::serial_dispatch,
210 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
212 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
214 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
215 and ia32 declarations some more.
216 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
218 2012-09-20 Jakub Jelinek <jakub@redhat.com>
221 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
222 * configure: Regenerate.
223 * Makefile.in: Regenerate.
225 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
227 * configure: Regenerated.
229 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
231 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
233 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
235 * eh_cpp.cc: Fix __cxa_end_catch declaration.
237 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
239 * configure: Regenerated.
241 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
244 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
247 2012-04-03 Tristan Gingold <gingold@adacore.com>
249 * configure: Regenerate.
251 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
254 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
256 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
258 * testsuite/lib/libitm.exp: load fortran-modules.exp
260 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
262 * configure.tgt (*-*-irix6*): Remove.
264 2012-03-13 Torvald Riegel <triegel@redhat.com>
267 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
270 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272 * configure.tgt (*-*-osf*): Remove.
273 * configure: Regenerate.
275 2012-03-05 Torvald Riegel <triegel@redhat.com>
277 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
278 memtransfer/memset if size isn't larger than zero.
280 2012-03-02 Torvald Riegel <triegel@redhat.com>
282 * libitm.texi: Link to specification and add a usage example.
284 2012-02-24 Torvald Riegel <triegel@redhat.com>
286 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
287 default dispatch for more than 1 thread to ml_wt.
289 2012-02-20 Torvald Riegel <triegel@redhat.com>
291 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
293 2012-02-20 Torvald Riegel <triegel@redhat.com>
295 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
297 2012-02-20 Torvald Riegel <triegel@redhat.com>
299 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
300 serial mode corner cases made obsolete by prior gtm_rwlock changes.
301 (gl_wt_dispatch.rollback): Same.
303 2012-02-20 Torvald Riegel <triegel@redhat.com>
305 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
307 2012-02-20 Torvald Riegel <triegel@redhat.com>
309 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
310 for RfW src. Optimize number of calls to gtm_thr.
312 2012-02-20 Torvald Riegel <triegel@redhat.com>
314 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
316 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
317 (default_dispatch): Make atomic.
318 (GTM::gtm_thread::set_default_dispatch): Access atomically.
319 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
320 use decide_begin_dispatch() if default_dispatch might have changed.
321 (GTM::gtm_thread::number_of_threads_changed): Initialize
322 default_dispatch here.
324 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
325 Patrick Marlier <patrick.marlier@gmail.com>
328 * alloc_cpp.cc: No dummy definitions for darwin.
329 * eh_cpp.cc: Likewise.
331 2012-02-14 Richard Henderson <rth@redhat.com>
333 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
335 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
337 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
339 2012-02-14 Torvald Riegel <triegel@redhat.com>
341 * libitm_i.h (GTM::gtm_rwlog_entry): New.
342 (GTM::gtm_thread): Add read and write logs.
343 (GTM::dispatch_ml_wt): Declare.
344 * retry.cc (parse_default_method): Support ml_wt.
345 * method-ml.cc: New file.
346 * Makefile.am: Add method-ml.cc.
347 * Makefile.in: Regenerate.
349 2012-02-14 Torvald Riegel <triegel@redhat.com>
351 * dispatch.h (GTM::abi_dispatch::supports): New.
352 (GTM::method_group::reinit): New.
353 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
354 (GTM::gtm_thread::number_of_threads_changed): Check that the method
355 supports the current situation.
357 2012-02-14 Torvald Riegel <triegel@redhat.com>
359 * util.cc (GTM::xcalloc): New.
360 * common.h (GTM::xcalloc): Declare.
362 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
364 * config/sparc/target.h (cpu_relax): Read from CC register.
365 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
367 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
369 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
371 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
373 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
374 * config/sparc/cacheline.h: New file.
375 * config/sparc/target.h: Likewise.
376 * config/sparc/sjlj.S: Likewise.
377 * config/linux/sparc/futex_bits.h: Likewise.
379 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
381 * configure.ac (link_itm): Fix comment.
382 * configure: Regenerate.
383 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
385 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
389 Correct libgomp references.
391 2012-01-24 Torvald Riegel <triegel@redhat.com>
393 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
396 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
398 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
400 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
401 offset values. Do not copy return address. Decrement stack
403 (GTM_longjump) [__x86_64__]: Update offset values.
405 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
408 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
409 the first function argument to %eax.
411 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
413 * libitm.h (_ITM_getThreadnum): Remove.
414 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
416 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
418 * clearcap.map: New file.
419 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
420 * configure.ac: Call it.
421 Clear HWCAP_LDFLAGS if defaulting to -mavx.
422 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
423 * configure: Regenerate.
424 * Makefile.in: Regenerate.
425 * testsuite/Makefile.in: Regenerate.
427 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
431 include, exclude options.
433 2012-01-14 Torvald Riegel <triegel@redhat.com>
435 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
437 * containers.h (GTM::vector::set_size): New.
439 2012-01-14 Torvald Riegel <triegel@redhat.com>
442 * config/generic/tls.h (GTM::mask_stack_top): New.
443 (GTM::mask_stack_bottom): Declare.
444 * config/generic/tls.c (GTM::mask_stack_bottom): New.
445 * local.cc (gtm_undolog::rollback): Filter out any updates that
446 overlap the libitm stack. Add current transaction as parameter.
447 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
448 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
449 * testsuite/libitm.c/stackundo.c: New test.
451 2012-01-10 Richard Henderson <rth@redhat.com>
453 * libitm_i.h (_Unwind_DeleteException): Declare weak.
454 * eh_cpp.cc (_Unwind_DeleteException): Define for
455 !HAVE_ELF_STYLE_WEAKREF.
457 2012-01-08 Torvald Riegel <triegel@redhat.com>
459 * local.cc (GTM_LB): Use GTM::gtm_undolog.
460 (GTM::gtm_thread::drop_references_undolog): Remove.
461 (GTM::gtm_thread::commit_undolog,
462 GTM::gtm_thread::rollback_undolog): Move to ...
463 * libitm_i.h (GTM::gtm_undolog): ...here. New.
464 (GTM::gtm_undolog_entry): Remove.
465 (GTM::gtm_thread): Adapt.
466 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
467 (GTM::gtm_thread::trycommit): Adapt.
468 * method-serial.cc (serial_dispatch::log): Adapt.
469 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
470 (gl_wt_dispatch::store): Fix likely/unlikely.
471 * containers.h (GTM::vector::resize): Add additional_capacity
472 parameter and handle it.
473 (GTM::vector::resize_noinline): New/adapt.
474 (GTM::vector::push): New.
476 2012-01-06 Richard Henderson <rth@redhat.com>
478 * configure.tgt: Support powerpc-linux and powerpc-darwin.
479 * config/linux/powerpc/futex_bits.h: New file.
480 * config/powerpc/cacheline.h: New file.
481 * config/powerpc/sjlj.S: New file.
482 * config/powerpc/target.h: New file.
483 * config/generic/asmcfi.h (cfi_offset): New.
484 (cfi_restore, cfi_undefined): New.
486 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
489 * testsuite/libitm.c/reentrant.c: Remove xfail.
490 (thread): Pass x to pure().
491 From Patrik Marlier <patrick.marlier@gmail.com>.
493 2011-12-24 Torvald Riegel <triegel@redhat.com>
495 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
496 privatization safety if already in serial mode.
498 2011-12-24 Torvald Riegel <triegel@redhat.com>
500 * beginend.cc (GTM::gtm_thread::restart): Add and handle
501 finish_serial_upgrade parameter.
502 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
503 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
504 Don't unset reader flag.
505 (GTM::gtm_rwlock::write_upgrade_finish): New.
506 * config/posix/rwlock.cc: Same.
507 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
509 * config/posix/rwlock.h: Same.
510 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
511 flag after commit or after rollback when restarting.
513 2011-12-24 Torvald Riegel <triegel@redhat.com>
515 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
516 (GTM::gtm_thread::try_commit): Changed memory order.
517 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
519 * config/linux/x86/futex_bits.h (sys_futex0): Same.
520 * config/linux/sh/futex_bits.h (sys_futex0): Same.
521 * config/linux/futex_bits.h (sys_futex0): Same.
522 * config/linux/futex.cc (futex_wait, futex_wake): Same.
523 * config/linux/futex.h (futex_wait, futex_wake): Same.
524 * config/linux/rwlock.h (gtm_rwlock::writers,
525 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
527 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
528 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
529 gtm_rwlock::write_unlock): Fix memory orders and fences.
530 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
531 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
532 gtm_rwlock::write_unlock): Same.
533 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
534 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
535 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
537 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
538 gl_wt_dispatch::load, gl_wt_dispatch::store,
539 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
540 orders and fences. Add comments.
542 2011-12-21 Jakub Jelinek <jakub@redhat.com>
544 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
545 * Makefile.in: Regenerated.
547 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
549 * configure.tgt: Add sh* case.
550 * config/sh/target.h: New file.
551 * config/sh/sjlj.S: New file.
552 * config/linux/sh/futex_bits.h: New file.
554 2011-12-14 Richard Henderson <rth@redhat.com>
556 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
557 * config/arm/sjlj.S, config/arm/target.h: New files.
558 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
559 (cfi_rel_offset): New.
560 * config/linux/futex_bits.h: New file.
561 * config/linux/futex.cc: Include futex_bits.h here...
562 * config/linux/futex.h: ... not here.
563 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
564 * configure.ac (ARCH_AM): New conditional.
565 * Makefile.in, configure: Rebuild.
566 * configure.tgt: Handle ARM.
568 2011-12-13 Richard Henderson <rth@redhat.com>
570 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
571 signed/unsigned comparison werror.
573 * local_atomic: New file.
574 * libitm_i.h: Include it.
575 (gtm_thread::shared_state): Use atomic template.
576 * beginend.cc (GTM::gtm_clock): Use atomic template.
577 (global_tid): Use atomic template if 64-bit atomics available.
578 (gtm_thread::gtm_thread): Update shared_state access.
579 (gtm_thread::trycommit): Likewise.
580 (choose_code_path): Update global_tid access.
581 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
582 * stmlock.h (GTM::gtm_clock): Use atomic template.
583 (gtm_get_clock, gtm_inc_clock): Update accesses.
584 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
585 redundant __sync_synchronize after atomic shared_state access.
586 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
587 (gtm_rwlock::write_lock_generic): Likewise.
588 (gtm_rwlock::read_unlock): Likewise.
589 * config/alpha/target.h (atomic_read_barrier): Remove.
590 (atomic_write_barrier): Remove.
591 * config/x86/target.h (atomic_read_barrier): Remove.
592 (atomic_write_barrier): Remove.
594 2011-11-30 Richard Henderson <rth@redhat.com>
596 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
597 * beginend.c (_ITM_abortTransaction): Update to match.
598 (GTM::gtm_thread::restart): Likewise.
599 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
600 * config/x86/sjlj.S (GTM_longjmp): Likewise.
602 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
604 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
605 * Makefile.in: Regenerate.
607 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
609 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
610 * alloc_cpp.cc: Generate dummy functions if we don't
611 HAVE_ELF_STYLE_WEAKREF.
612 * eh_cpp.cc: Likewise.
613 * configure: Regenerate.
614 * aclocal.m4: Likewise.
615 * config.h.in: Likewise.
616 * Makefile.in: Likewise.
617 * testsuite/Makefile.in: Likewise.
619 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
621 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
622 __USER_LABEL_PREFIX__ for targets that use it.
623 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
624 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
625 in portability to non-elf targets.
626 (GTM_longjmp): Likewise.
627 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
630 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
632 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
633 * testsuite/libitm.c/memset-1.c: Likewise.
635 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
637 * configure: Regenerate.
639 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
642 (LIBITM_ENABLE_SYMVERS): Handle sun style.
643 * Makefile.am: Handle sun style versioning.
644 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
645 * configure: Regenerate.
646 * Makefile.in: Regenerate.
648 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
650 * config/generic/asmcfi.h: Fix comment.
651 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
652 sequence without .hidden support, error for non-ELF targets.
653 (GTM_longjmp) [__ELF__]: Only use .hidden if
654 HAVE_ATTRIBUTE_VISIBILITY.
656 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
659 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
661 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
662 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
664 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
667 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
668 * configure: Regenerate.
670 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
672 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
674 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
678 (.note.GNU-stack): Only use if __linux__.
679 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
680 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
681 * testsuite/libitm.c/reentrant.c: Likewise.
682 * testsuite/libitm.c/simple-2.c: Likewise.
683 * testsuite/libitm.c/txrelease.c: Likewise.
684 * testsuite/libitm.c++/static_ctor.C: Likewise.
686 2011-11-10 Richard Henderson <rth@redhat.com>
688 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
689 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
690 * configure.ac (ARCH_X86_AVX): New conditional.
691 * Makefile.in, configure: Rebuild.
693 2011-11-09 Richard Henderson <rth@redhat.com>
695 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
696 * configure.ac: Use it.
697 * config.h.in, configure: Rebuild.
698 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
700 2011-11-09 Richard Henderson <rth@redhat.com>
702 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
703 * config/alpha/unaligned.h: Remove file.
704 * config/generic/unaligned.h: Remove file.
705 * config/x86/unaligned.h: Remove file.
706 * config/generic/cachepage.h: Remove file.
707 * config/posix/cachepage.cc: Remove file.
708 * config/generic/cacheline.cc: Remove file.
709 * config/x86/cacheline.cc: Remove file.
710 * config/generic/cacheline.h (gtm_cacheline): Remove the
711 store_mask, copy_mask, copy_mask_wb methods.
712 * config/x86/cacheline.h: Likewise.
713 * config/alpha/cacheline.h: Fall back to generic after setting size.
714 * config/generic/tls.cc (gtm_mask_stack): Remove.
715 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
716 (GTM_vpalignr_table): Remove.
717 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
718 (GTM_pshift_table): Remove.
719 * config/libitm_i.h: Don't include cachepage.h.
720 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
721 * Makefile.in, testsuite/Makefile.in: Rebuild.
723 2011-11-09 Richard Henderson <rth@redhat.com>
725 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
726 to emit branch prediction hint.
728 * config/x86/sjlj.S: Protect elf directives with __ELF__.
729 Protect .note.GNU-stack with __linux__.
731 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
732 * configure, aclocal.m4, config.h.in: Rebuild.
733 * config/generic/asmcfi.h: New file.
734 * config/x86/sjlj.S: Use it.
736 2011-11-08 Richard Henderson <rth@redhat.com>
738 * local.cc (_ITM_LB): Use a normal call, not a function alias.
740 2011-11-08 Richard Henderson <rth@redhat.com>
742 * configure.tgt: Test correct directory for supported cpus.
744 * configure.ac: Exit if unsupported.
745 * configure: Rebuild.
746 * configure.tgt: Delete boilerplate from libgomp for unsupported
747 targets. Set UNSUPPORTED for unsupported targets.
749 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
751 * configure.tgt: Handle i386 like i[456]86.
752 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
754 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
755 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
757 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
759 * method-wbetl.cc: Update copyright notice.
766 * useraction.cc: Same.
770 * config/generic/tls.cc: Same.
771 * config/generic/cacheline.h: Same.
772 * config/generic/cachepage.h: Same.
773 * config/generic/cacheline.cc: Same.
774 * config/generic/unaligned.h: Same.
775 * config/x86/cacheline.h: Same.
776 * config/x86/cacheline.cc: Same.
777 * config/x86/unaligned.h: Same.
778 * config/alpha/cacheline.h: Same.
779 * config/alpha/unaligned.h: Same.
780 * config/alpha/sjlj.S: Same.
781 * config/posix/cachepage.cc: Same.
782 * config/linux/futex.h: Same.
783 * config/linux/alpha/futex_bits.h: Same.
785 2011-11-04 Torvald Riegel <triegel@redhat.com>
787 * libitm.texi: No cover text and invariant sections.
789 2011-11-03 Richard Henderson <rth@redhat.com>
791 * local_type_traits: New file.
792 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
794 2011-11-03 Richard Henderson <rth@redhat.com>
796 * configure.ac: Don't test for gfortran.
797 * configure: Rebuild.
799 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
800 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
802 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
804 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
805 * testsuite/libitm.c/memset-1.c: Same.
806 * testsuite/libitm.c/c.exp: Same.
807 * testsuite/lib/libitm-dg.exp: Same.
808 * testsuite/lib/libitm.exp: Same.
809 * testsuite/libitm.c++/c++.exp: Same.
811 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
813 * testsuite/config/default.exp: Update copyright date.
814 * configure.ac: Add copyright info.
815 * configure.tgt: Same.
817 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
819 * testsuite/libitm.c/reentrant.c: XFAIL.
820 * testsuite/libitm.c++/static_ctor.C: XFAIL.
822 2011-10-29 Torvald Riegel <triegel@redhat.com>
824 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
826 (_ITM_abortTransaction): Handle aborts of outer transactions.
828 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
829 * libitm.texi: Document aborts of outer transactions.
830 * testsuite/libitm.c/cancel.c: New file.
832 2011-10-19 Torvald Riegel <triegel@redhat.com>
834 * testsuite/*: Change __transaction to __transaction_atomic or
835 __transaction_relaxed.
837 2011-10-19 Torvald Riegel <triegel@redhat.com>
839 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
842 2011-10-19 Torvald Riegel <triegel@redhat.com>
844 * libitm_i.h: Add gl_wt dispatch.
845 * retry.cc (parse_default_method): Same.
846 * method-gl.cc: New file.
847 * Makefile.am: Use method-gl.cc.
848 * Makefile.in: Rebuild.
850 2011-10-19 Torvald Riegel <triegel@redhat.com>
852 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
853 safety if requested by a TM method.
854 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
855 privatization safety.
856 * method-serial.cc: Same.
858 2011-10-19 Torvald Riegel <triegel@redhat.com>
860 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
861 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
862 undolog-related member functions from *_local to *_undolog.
863 * local.cc (gtm_thread::commit_undolog): Same.
864 * beginend.cc (GTM::gtm_thread::trycommit): Same.
865 (GTM::gtm_thread::rollback): Roll back undolog before
866 dispatch-specific rollback.
868 2011-10-19 Torvald Riegel <triegel@redhat.com>
870 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
871 re-initialization of the current method group.
872 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
874 2011-10-19 Torvald Riegel <triegel@redhat.com>
876 * alloc.cc (commit_allocations_2): Do not free transaction-local
877 memory when committing a nested transaction.
879 2011-10-19 Torvald Riegel <triegel@redhat.com>
881 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
882 serial-irrevocable dispatch, not serial.
884 2011-10-19 Torvald Riegel <triegel@redhat.com>
886 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
888 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
889 * method-serial.cc: Implement begin_or_restart().
890 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
891 dispatch-specific begin_or_restart().
892 (GTM::gtm_thread::restart): Same.
894 2011-08-23 Torvald Riegel <triegel@redhat.com>
896 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
897 restarting without switching to serial mode.
898 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
899 transaction state. Choose closed-nesting alternative if available.
900 (GTM::gtm_thread::set_default_dispatch): New.
901 (parse_default_method): New.
902 (GTM::gtm_thread::number_of_threads_changed): New.
903 * method-serial.cc (GTM::serial_mg): New method group class.
904 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
906 (GTM::serial_dispatch): Same.
907 (GTM::serialirr_onwrite_dispatch): Same.
908 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
909 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
911 (GTM::gtm_thread::gtm_thread): Same.
912 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
913 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
914 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
915 choose dispatch but set state according to dispatch here.
916 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
917 (GTM::method_group): New class.
918 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
919 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
920 * libitm.texi: Document TM methods, method groups, method life cycle.
921 Rename method sets to method groups.
923 2011-08-23 Torvald Riegel <triegel@redhat.com>
925 * config/x86/tls.h: Moved to ...
926 * config/linux/x86/tls.h: ... here.
928 2011-08-23 Torvald Riegel <triegel@redhat.com>
930 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
932 * config/x86/sjlj.S: Same.
934 2011-08-19 Torvald Riegel <triegel@redhat.com>
936 * config/linux/rwlock.h: New file.
937 * config/linux/rwlock.c: New file.
938 * configure.ac: Reenable futex support (undo SVN rev 157758).
940 * configure.tgt: Same.
941 * config/linux/alpha/futex_bits.h: Same.
942 * config/linux/futex.h: Same. Return number of woken processes.
943 * config/linux/futex.cc: Same.
944 (futex_wait): Remove spinning.
945 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
946 Use __x86_64__ instead of __LP64__.
947 * aclocal.m4: Include generic futex checks.
948 * configure: Rebuild.
949 * Makefile.in: Rebuild.
950 * testsuite/Makefile.in: Rebuild.
951 * beginend.cc: Include pthread.h.
952 * config/posix/cachepage.cc: Same.
954 2011-08-12 Torvald Riegel <triegel@redhat.com>
956 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
957 (abi_disp, set_abi_disp): Move to tx's TLS slot.
959 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
961 (GTM::gtm_thread::thread_num): Removed.
962 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
963 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
964 tx-to-thread renaming.
965 * beginend.cc: Adapted to tx-to-thread renaming.
966 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
967 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
968 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
969 gtm_transaction to gtm_thread.
970 (_ITM_getThreadnum): Removed. Not supported anymore.
971 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
972 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
973 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
974 gtm_tx-to-gtm_thr renaming if necessary.
981 * alloc_cpp.cc: Same.
982 * method-serial.cc: Same.
983 * config/generic/tls.cc: Same.
984 * config/posix/rwlock.h (gtm_rwlock): Same.
985 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
987 2011-08-12 Torvald Riegel <triegel@redhat.com>
989 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
991 (gtm_rwlock::read_unlock): Same.
992 (gtm_rwlock::write_lock_generic): New. Generalized from ...
993 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
994 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
995 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
996 w_upgrade. Replaced by per-transaction flags (in shared_state).
997 Added c_confirmed_writers.
998 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
999 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1000 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1001 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1002 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1003 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1004 * libitm.texi: Document locking conventions and implementations in
1007 2011-08-12 Torvald Riegel <triegel@redhat.com>
1009 * libitm_i.h (next_tx): Add list of all threads' transaction.
1010 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1011 transaction with list of transactions and ...
1012 (thread_exit_handler): ... deregister here.
1013 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1014 * config/x86/target.h: Same.
1016 2011-08-12 Torvald Riegel <triegel@redhat.com>
1018 * testsuite/libitm.c++/static_ctor.C: New file.
1020 2011-08-12 Torvald Riegel <triegel@redhat.com>
1022 * testsuite/libitm.c/reentrant.c: New file.
1024 2011-08-12 Torvald Riegel <triegel@redhat.com>
1026 * config/generic/tls.h: Remove the free list for transactions and ...
1027 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1028 (GTM::gtm_transaction::operator delete): ... and release here.
1029 (thread_exit_handler): New. Delete tx when thread terminates.
1030 (thread_exit_init): New.
1031 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1032 * testsuite/libitm.c/txrelease.c: New file.
1034 2011-08-12 Torvald Riegel <triegel@redhat.com>
1036 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1037 * testsuite/libitm.c/notx.c: New file.
1039 2011-08-12 Torvald Riegel <triegel@redhat.com>
1041 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1042 * libitm_i.h (local_tid): ... to here.
1043 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1044 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1046 2011-08-12 Torvald Riegel <triegel@redhat.com>
1048 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1049 serialirr_onwrite_dispatch as new default for now.
1050 * method-serial.cc (serialirr_onwrite_dispatch): New.
1051 (GTM::dispatch_serialirr_onwrite): New.
1054 2011-08-12 Torvald Riegel <triegel@redhat.com>
1056 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1057 * query.cc (_ITM_getTransactionId): There is no active transaction if
1058 the current nesting level is zero.
1060 2011-07-28 Torvald Riegel <triegel@redhat.com>
1062 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1065 2011-07-28 Torvald Riegel <triegel@redhat.com>
1067 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1068 transaction properties from the caller instead of from the
1071 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1073 2011-07-28 Torvald Riegel <triegel@redhat.com>
1075 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1076 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1078 * method-serial.cc: Same.
1079 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1080 flat nesting as default, and closed nesting on demand.
1081 (GTM::gtm_transaction::rollback): Same.
1082 (_ITM_abortTransaction): Same.
1083 (GTM::gtm_transaction::restart): Same.
1084 (GTM::gtm_transaction::trycommit): Same.
1085 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1086 (choose_code_path): New.
1087 (GTM::gtm_transaction_cp::save): New.
1088 (GTM::gtm_transaction_cp::commit): New.
1089 * query.cc (_ITM_inTransaction): Support flat nesting.
1090 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1091 (GTM::gtm_transaction): Support flat and closed nesting.
1092 * alloc.cc (commit_allocations_2): New.
1093 (commit_cb_data): New helper struct.
1094 (GTM::gtm_transaction::commit_allocations): Handle nested
1096 * libitm.texi: Update user action section, add description of nesting.
1098 2011-07-28 Torvald Riegel <triegel@redhat.com>
1100 * libitm_i.h: Add closed nesting as restart reason.
1101 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1103 2011-07-28 Torvald Riegel <triegel@redhat.com>
1105 * useraction.cc: Use vector instead of list to store actions.
1106 Also support partial rollbacks for closed nesting.
1107 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1108 * beginend.cc: Same.
1110 2011-07-28 Torvald Riegel <triegel@redhat.com>
1112 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1113 closed_nesting flags, as well as a closed nesting alternative.
1114 * method-serial.cc: Same.
1115 (serial_dispatch): Renamed to serialirr_dispatch.
1116 (GTM::dispatch_serialirr): Same.
1117 (serial_dispatch_ul): Renamed to serial_dispatch.
1118 (GTM::dispatch_serial): Same.
1120 2011-07-28 Torvald Riegel <triegel@redhat.com>
1122 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1124 2011-07-28 Torvald Riegel <triegel@redhat.com>
1126 * aatree.h (aa_tree::remove): New.
1127 (aa_tree::operator new): Add placement new.
1129 2011-07-02 Torvald Riegel <triegel@redhat.com>
1131 * containers.h: New file.
1132 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1133 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1134 * common.h: ... to here.
1135 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1138 2011-06-30 Torvald Riegel <triegel@redhat.com>
1140 * libitm_i.h (STATE_ABORTING): Remove.
1141 * beginend.cc (_ITM_abortTransaction): Same.
1142 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1143 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1144 (_ITM_rollbackTransaction): Remove.
1145 * beginend.cc: Same.
1147 * libitm.texi: Document these ABI changes.
1149 2011-06-30 Torvald Riegel <triegel@redhat.com>
1151 * libitm.texi: New file.
1152 * Makefile.am: Add libitm.texi.
1153 * Makefile.in: Rebuild.
1155 2011-06-30 Torvald Riegel <triegel@redhat.com>
1157 * libitm_i.h: Move parts to common.h and dispatch.h.
1158 * common.h: New file.
1159 * dispatch.h: New file, new dispatch class.
1160 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1161 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1162 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1163 decision to retry.cc.
1164 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1166 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1167 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1169 * barrier.cc: Use new barriers definitions.
1170 (abi_dispatch::memmove_overlap_check): New.
1171 * config/x86/x86_sse.cc: Same.
1172 * config/x86/x86_avx.cc: Same.
1173 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1175 * Makefile.in: Rebuild.
1176 * method-readonly.cc: Remove.
1177 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1178 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1180 2011-06-30 Torvald Riegel <triegel@redhat.com>
1182 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1183 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1184 * testsuite/libitm.c/dropref-2.c: Same.
1185 * testsuite/libitm.c/dropref.c: Same.
1187 2011-06-30 Torvald Riegel <triegel@redhat.com>
1189 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1190 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1191 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1193 * barrier.tpl: Same.
1195 * config/generic/tls.h: Same.
1196 * config/x86/tls.h: Same.
1200 * method-readonly.cc: Same.
1201 * method-serial.cc: Same.
1202 * method-wbetl.cc: Same.
1205 2011-03-03 Richard Henderson <rth@redhat.com>
1207 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1208 From Patrik Marlier <patrick.marlier@unine.ch>.
1210 2011-02-03 Richard Henderson <rth@redhat.com>
1212 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1213 * configure.ac: Use it.
1214 * configure, config.h.in: Rebuild.
1215 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1216 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1217 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1218 * libitm.map: Use wildcards to match size_t mangling.
1220 2010-12-14 Richard Henderson <rth@redhat.com>
1222 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1223 blocks of TIDs per thread.
1224 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1225 (setup_gtm_thr): Return the thread structure.
1226 * config/x86/tls.h (setup_gtm_thr): Likewise.
1228 2010-12-14 Richard Henderson <rth@redhat.com>
1230 * clone.cc (table_lock): Remove.
1231 (find_clone): Don't take it.
1232 (ExcludeTransaction): New helper class.
1233 (_ITM_registerTMCloneTable): Use it.
1234 (_ITM_deregisterTMCloneTable): Likewise.
1236 2010-12-14 Richard Henderson <rth@redhat.com>
1238 * config/x86/tls.h: New file.
1240 2010-07-15 Richard Henderson <rth@redhat.com>
1242 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1243 * Makefile.in: Rebuild.
1245 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1247 * method-wbetl.cc (trydropreference): Fix source line.
1249 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1251 * libitm.h: Add comment.
1252 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1254 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1256 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1257 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1258 available, use pthread mutexes.
1259 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1260 * config.h.in: Regenerate.
1261 * configure: Regenerate.
1263 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1265 * libitm.h (ITM_PURE): Define.
1266 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1268 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1270 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1271 (validate): Add comment.
1272 (trydropreference): New.
1273 * method-readonly.cc (class readonly_dispatch): Add
1275 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1276 Call trydropreference().
1277 * libitm.h (_ITM_dropReferences): Remove const attribute.
1278 * method-serial.cc (class serial_dispatch): Add trydropreference.
1279 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1281 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1283 * memcpy.cc (do_memcpy): Comment.
1285 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1287 * barrier.tpl: Add comments throughout.
1289 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1291 * method-wbetl.cc (struct w_entry): Add comments.
1295 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1297 * alloc_c.cc (_ITM_dropReferences): New.
1298 * libitm.map (_ITM_dropReferences): Add.
1299 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1300 * libitm_i.h (struct gtm_transaction): Declare
1301 drop_references_allocations and drop_references_local.
1302 * local.cc (rollback_local): Ignore memory when applicable.
1303 (drop_references_local): New.
1305 2010-06-23 Richard Henderson <rth@redhat.com>
1307 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1308 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1309 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1310 * config/alpha/target.h: Likewise.
1311 * config/generic/tls.cc (gtm_mask_stack): Use it.
1313 2010-06-23 Richard Henderson <rth@redhat.com>
1315 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1316 a mutex instead of trying a lock-free compare-and-swap on the list.
1317 (gtm_cacheline_page::operator delete): Likewise.
1319 2010-06-16 Richard Henderson <rth@redhat.com>
1321 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1322 that overlap the libitm stack.
1323 * barrier.tpl: Mark incoming stack.
1324 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1325 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1326 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1327 * memcpy.cc, memset.cc: Likewise.
1328 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1329 * config/generic/tls.h (gtm_thread): Add stack_top member.
1330 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1331 * libitm_i.h (gtm_mask_stack): Declare.
1332 * config/generic/tls.cc: New file.
1333 * Makefile.am (libitm_la_SOURCES): Add it.
1334 (AM_CXXFLAGS): Turn off exceptions.
1335 * Makefile.in: Rebuild.
1337 2010-06-16 Richard Henderson <rth@redhat.com>
1339 * alloc.cc (struct gtm_alloc_action): Move definition ...
1340 * libitm_i.h: ... here.
1341 (class gtm_transaction): Declare new and delete.
1342 * beginend.cc (alloc_tx): Reformulate as operator new.
1343 (free_tx): Reformulate as operator delete.
1344 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1346 2010-06-11 Richard Henderson <rth@redhat.com>
1348 * clone.cc (clone_entry_compare): Fix typo.
1349 From Patrik Marlier <patrick.marlier@unine.ch>.
1351 2010-05-13 Richard Henderson <rth@redhat.com>
1353 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1356 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1358 * libitm_i.h (struct gtm_transaction): Remove
1359 get_allocation_size.
1360 (record_allocation): Remove size parameter.
1361 * libitm.map (_ITM_realloc): Remove.
1362 * alloc_c.cc (_ITM_realloc): Remove.
1363 (_ITM_malloc): Remove size argument to record_allocation.
1364 (_ITM_calloc): Same.
1365 * alloc_cpp.cc (_ZGTtnwm): Same.
1366 (_ZGTtnwmRKSt9nothrow_t): Same.
1368 (_ZGTtnamRKSt9nothrow_t): Same.
1369 * alloc.cc (struct gtm_alloc_action): Remove size.
1370 (get_allocation_size): Remove.
1371 (commit_allocations): Add comment.
1372 (record_allocation): Remove size parameter.
1373 (forget_allocation): Remove set of size.
1375 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1377 * Makefile.am (abi_version): New.
1378 (AM_CXXFLAGS): Pass abi_version.
1379 * Makefile.in: Regenerate.
1380 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1382 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1384 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1385 _ITM_getTMCloneOrIrrevokable.
1386 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1387 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1389 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1391 * configure.ac: Remove Linux futex support.
1392 * configure.tgt (config_path): Same.
1393 * Makefile.am: Same.
1394 * config/linux: Remove entire directory.
1395 * configure: Rebuild.
1396 * Makefile.in: Rebuild.
1397 * testsuite/Makefile.in: Rebuild.
1399 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1401 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1402 switching to serial mode.
1403 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1405 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1407 * configure.tgt: Add emacs -*- tags.
1408 * barrier.tpl: Same.
1410 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1412 * Makefile.am: Rename serial.cc to method-serial.cc.
1413 * Makefile.in: Regenerate with automake 1.11.1.
1414 * testsuite/Makefile.in: Same.
1415 * aclocal.m4: Regenerate with aclocal 1.11.1.
1416 * method-serial.cc: Rename from serial.cc.
1417 * libitm_i.h (struct gtm_transaction): Update comment on
1420 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1422 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1423 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1425 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1427 * configure: Rebuild.
1429 2009-11-12 Richard Henderson <rth@redhat.com>
1431 * Rewrite everything in C++.
1433 2009-11-03 Richard Henderson <rth@redhat.com>
1435 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1436 * Makefile.am (libitm_la_SOURCES): Add them.
1437 * configure.ac (ARCH_X86): New conditional.
1438 * Makefile.in, configure: Rebuild.
1439 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1440 Move futex setup into "other system configury" case.
1441 * local.c (rollback_local): Merge into ...
1442 (GTM_rollback_local): ... here.
1443 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1444 (_ITM_LB): Define as an alias to GTM_LB.
1446 2009-11-03 Richard Henderson <rth@redhat.com>
1448 * method-readonly.c: New file.
1449 * Makefile.am (libitm_la_SOURCES): Add it.
1450 * Makefile.in: Rebuild.
1451 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1452 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1453 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1454 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1455 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1456 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1457 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1458 gtm_get_clock, gtm_inc_clock): New.
1459 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1460 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1461 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1462 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1463 replace uses with new libitm_i.h symbols.
1464 (dispatch_wbetl): Rename from wbetl_dispatch.
1465 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1466 away from dispatch_readonly; abort if the beginTransaction call
1467 asserted that the transaction was readonly.
1469 2009-11-03 Richard Henderson <rth@redhat.com>
1471 * memset.c: New file.
1472 * Makefile.am (libitm_la_SOURCES): Add it.
1473 * Makefile.in: Rebuild.
1474 * testsuite/libitm.c/memset-1.c: New.
1476 2009-11-03 Richard Henderson <rth@redhat.com>
1478 * dispatch.c: Remove file.
1479 * useraction.c (struct gtm_user_action): Move from libitm.h.
1480 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1481 (serial_memset, serial_memmove, serial_memcpy): Remove.
1482 (serial_W*, serial_R*): Remove.
1483 (serial_dispatch): Update to match.
1484 * configure.ac: Move Werror down below configure checks. Don't
1485 check for sys/loadavg.h, do check for malloc.h. Don't check for
1486 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1487 Use GCC_AC_FUNC_MMAP_BLACKLIST
1488 * libitm.h: Split out all internal items to...
1489 * libitm_i.h: ... here. New file.
1490 * copymask.c: New file.
1491 * local.c (struct gtm_local_undo): Move from libitm.h.
1492 (GTM_alloc_local): Rename from alloc_local; export.
1493 * memcpy.c: New file.
1494 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1495 * config/posix/page.c: New file.
1496 * config/posix/target_tls.h: Remove file.
1497 * barrier.c: New file.
1498 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1500 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1501 * method-wbetl.c: Rewrite for new cacheline methods.
1502 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1504 * config/alpha/sjlj.S: Fix typo.
1505 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1506 * config/alpha/copymask.c: New file.
1507 * config/alpha/target.h (CACHELINE_SIZE): New.
1508 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1510 * config/x86/target_i.h: Copy functions from x86/target.h.
1511 * config/x86/copymask.c: New file.
1512 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1513 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1514 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1515 * config/x86/target_tls.h: Move contents to target_i.h.
1517 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1518 * testsuite/libitm.c/memcpy-1.c: New.
1520 2009-10-22 Richard Henderson <rth@redhat.com>
1522 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1523 (AM_CCASFLAGS): New.
1524 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1525 saving/restoring _AC_ARG_VAR_PRECIOUS.
1526 * Makefile.in, aclocal.m4, config.h.in, configure,
1527 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1529 2009-10-22 Richard Henderson <rth@redhat.com>
1531 * testsuite/*: Update for new compiler syntax.
1533 2009-10-21 Richard Henderson <rth@redhat.com>
1535 * libitm.h (_ITM_abortReason): Add outerAbort.
1537 2009-08-03 Richard Henderson <rth@redhat.com>
1539 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1540 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1541 * method-wbetl.c (struct w_entry): Remove mask.
1542 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1545 2009-07-22 Richard Henderson <rth@redhat.com>
1547 * eh_cpp.c: New file.
1548 * Makefile.am (libitm_la_SOURCES): Add it.
1549 * Makefile.in: Rebuild.
1550 * beginend.c (GTM_rollback_transaction): Undo exception state.
1551 (GTM_trycommit_transaction): Mark inline.
1552 (GTM_trycommit_and_finalize_transaction): Split out from ...
1553 (_ITM_commitTransaction): ... here.
1554 (_ITM_commitTransactionEH): New function.
1555 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1556 cxa_unthrown, eh_in_flight; reorder.
1558 * testsuite/libitm.c++/c++.exp: New.
1559 * testsuite/libitm.c++/eh-1.C: New.
1561 * aatree.c (aa_free): Remove REGPARM.
1562 * aatree.h: Remove all REGPARM.
1564 2009-07-18 Richard Henderson <rth@redhat.com>
1566 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1567 * Makefile.am (libitm_la_SOURCES): Add them.
1568 * Makefile.in: Rebuild.
1569 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1570 (GTM_trycommit_transaction): Likewise.
1571 * libitm.h: Include aatree.h
1572 (struct gtm_alloc_action): New.
1573 (struct gtm_transaction): Add alloc_actions.
1574 (GTM_record_allocation, GTM_forget_allocation): Declare.
1575 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1576 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1577 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1578 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1579 _ZGTtdaPvRKSt9nothrow_t): Export.
1581 2009-07-18 Richard Henderson <rth@redhat.com>
1583 * target_tls.h: Move ...
1584 * config/posix/target_tls.h: ... here.
1586 2009-07-07 Richard Henderson <rth@redhat.com>
1588 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1590 2009-07-07 Richard Henderson <rth@redhat.com>
1594 2009-07-07 Richard Henderson <rth@redhat.com>
1596 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1597 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1599 * configure.tgt: Don't use -ftls-model for x86 linux.
1600 * libitm.h: Include target.h after standard includes.
1601 (_gtm_thr): Rename from gtm_thr.
1602 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1603 (gtm_disp, set_gtm_disp): New.
1604 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1605 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1606 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1608 2009-07-07 Richard Henderson <rth@redhat.com>
1610 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1612 2009-07-06 Richard Henderson <rth@redhat.com>
1614 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1615 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1616 (_ITM_beginTransaction): Take variadic arguments.
1617 (_ITM_registerThrownObject): Declare.
1618 * beginend.c, serial.c: Update.
1619 * libitm.map: Add _ITM_registerThrownObject.
1621 2009-01-28 Richard Henderson <rth@redhat.com>
1623 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1624 * Makefile.in: Rebuild.
1625 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1626 (GTM_restart_transaction): Fix uninstrumented code check.
1627 * retry.c (GTM_decide_retry_strategy): Add serial check.
1628 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1629 automatically go irrevokable when in serial mode.
1630 * clone.c: New file.
1631 * libitm.h, libitm.map: Update.
1633 2009-01-27 Richard Henderson <rth@redhat.com>
1635 * Makefile.am (LTCCASCOMPILE): Define.
1636 (libitm_la_SOURCES): Add methid-wbetl.c.
1637 * testsuite/Makefile.am: New
1638 * configure.ac: Add testsuite/Makefile.
1639 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1640 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1641 (_ITM_abortTransaction): Finalize implementation method; pass
1642 transaction properties to longjmp.
1643 (GTM_restart_transaction): Split out from ...
1644 (_ITM_commitTransaction): ... here.
1645 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1646 Move to config/x86/target.h.
1647 * config/linux/alpha/futex_bits.h: New.
1648 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1649 * config/x86/target.h: Disable target types for 32-bit.
1650 * config/alpha/sjlj.S, config/alpha/target.h: New.
1651 * libitm.h (struct gtm_dispatch): Add init, fini.
1652 (enum restart_reason): New.
1653 (struct gtm_transaction): Add method and restarts.
1654 * retry.c (GTM_decide_retry_strategy): Implement.
1655 * serial.c (serial_init, serial_fini): New.
1656 (GTM_serialmode): Finialize outgoing method.
1657 * method-wbetl.c: New.
1659 2008-12-09 Richard Henderson <rth@redhat.com>
1661 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1662 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1663 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1664 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1665 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1666 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1667 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1668 * serial.c (serial_R##T, serial_W##T): Likewise.
1670 2008-11-21 Richard Henderson <rth@redhat.com>