1 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/generic/asmcfi.h: Also check for
4 __GCC_HAVE_DWARF2_CFI_ASM.
6 2013-04-02 Richard Henderson <rth@redhat.com>
8 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
9 * config/arm/target.h, config/sh/target.h: Likewise.
10 * config/sparc/target.h, config/x86/target.h: Likewise.
12 2014-03-26 Jakub Jelinek <jakub@redhat.com>
14 * config/linux/futex_bits.h: Include errno.h.
15 (sys_futex0): If syscall returns -1, return -errno rather than
18 2014-03-26 Joseph Myers <joseph@codesourcery.com>
20 * libitm.texi (Index): Rename to Library Index.
22 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
25 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
26 (x86_avx.lo): Append -mavx to CXXFLAGS.
27 * Makefile.in: Regenerate.
29 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31 Update copyright years
33 2014-01-02 Tobias Burnus <burnus@net-b.de>
35 * libitm.texi: Bump @copying's copyright year.
37 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
40 (FUNC): Define ELFv2 variant.
47 2013-09-20 Alan Modra <amodra@gmail.com>
49 * configure: Regenerate.
51 2013-08-30 Torvald Riegel <triegel@redhat.com>
53 * config/posix/rwlock.cc: Fix initialization order.
55 2013-08-30 Torvald Riegel <triegel@redhat.com>
57 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
58 (htm_fastpath): Assign an asm name.
59 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
61 (_ITM_actions): Likewise.
62 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
64 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
65 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
66 field to the start of the structure.
67 * config/linux/rwlock.h (gtm_rwlock): Update comments.
68 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
69 handling for custom HTM fast paths.
71 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
73 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
75 * configure.tgt: Add -msoft-float to XCFLAGS.
77 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
79 * configure.tgt: Add -msoft-float to XCFLAGS.
81 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
83 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
84 (htm_transaction_active): Enable zEC12 instructions in the
86 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
88 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
90 * acinclude.m4: Add htm asm check for s390.
91 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
92 * configure: Regenerate.
93 * config/s390/target.h: Remove __HTM__ check.
94 (htm_available): Call getauxval to get hwcaps and check whether
95 HTM is available or not.
97 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
99 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
100 * configure.ac: Use it.
101 (AC_CHECK_HEADERS): Check for sys/auxv.h.
102 (AC_CHECK_FUNCS): Check for getauxval.
103 * config.h.in, configure: Rebuild.
104 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
105 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
106 (USE_HTM_FASTPATH): Define.
107 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
108 _HTM_RETRIES) New macros.
109 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
110 htm_begin_success, htm_commit, htm_transaction_active): New functions.
112 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
114 * config/s390/target.h: Include htmintrin.h.
115 (_HTM_ITM_RETRIES): New macro definition.
116 (htm_available, htm_init, htm_begin, htm_begin_success)
117 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
119 2013-06-20 Iain Sandoe <iain@codesourcery.com>
120 Cesar Philippidis <cesar@codesourcery.com>
122 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
123 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
124 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
125 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
127 2013-06-20 Torvald Riegel <triegel@redhat.com>
129 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
130 (_ITM_getTransactionId): Same.
131 * config/x86/target.h (htm_transaction_active): New.
133 2013-06-20 Torvald Riegel <triegel@redhat.com>
136 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
139 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
142 * local_atomic (__always_inline): Always define our version.
143 (__calculate_memory_order): Mark inline.
144 (atomic_thread_fence): Ditto.
145 (atomic_signal_fence): Ditto.
146 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
147 (atomic_bool::atomic_flag_clear_explicit): Ditto.
148 (atomic_bool::atomic_flag_test_and_set): Ditto.
149 (atomic_bool::atomic_flag_clear): Ditto.
151 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
153 * config/s390/sjlj.S: New file.
154 * config/s390/target.h: New file.
155 * configure.tgt: Set options for S/390.
157 2013-03-23 Andi Kleen <ak@linux.intel.com>
159 * local_atomic (__always_inline): Add.
160 (__calculate_memory_order, atomic_thread_fence,
161 atomic_signal_fence, test_and_set, clear, store, load,
162 exchange, compare_exchange_weak, compare_exchange_strong,
163 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
164 Add __always_inline to force inlining.
166 2013-02-11 Iain Sandoe <iain@codesourcery.com>
167 Jack Howarth <howarth@bromo.med.uc.edu>
168 Patrick Marlier <patrick.marlier@gmail.com>
171 * alloc_cpp.cc: Enable function declarations on darwin.
172 * eh_cpp.cc: Likewise.
174 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
176 Update copyright years.
178 2012-11-09 Torvald Riegel <triegel@redhat.com>
180 * beginend.cc (htm_fastpath): New.
181 (gtm_thread::begin_transaction, _ITM_commitTransaction,
182 _ITM_commitTransactionEH): Add HTM fastpath handling.
183 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
184 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
185 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
186 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
187 * configure.tgt: Add -mrtm to XCFLAGS.
188 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
189 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
190 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
191 * retry.cc (parse_default_method): Add HTM method parsing.
192 (gtm_thread::number_of_threads_changed): Use HTM by default if
195 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
197 * configure: Regenerate.
199 2012-10-31 Richard Henderson <rth@redhat.com>
201 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
202 * configure.ac: Use it.
203 * config.h.in, configure: Rebuild.
204 * testsuite/Makefile.in: Rebuild.
206 2012-10-24 Torvald Riegel <triegel@redhat.com>
208 * libitm.texi: Clarify ABI requirements for data-logging functions.
210 2012-10-24 Torvald Riegel <triegel@redhat.com>
212 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
213 it requires serial mode instead of assuming that for certain
215 * dispatch.h (abi_dispatch::requires_serial): New.
216 (abi_dispatch::abi_dispatch): Adapt.
217 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
218 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
219 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
220 serial_dispatch::serial_dispatch,
221 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
223 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
225 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
226 and ia32 declarations some more.
227 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
229 2012-09-20 Jakub Jelinek <jakub@redhat.com>
232 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
233 * configure: Regenerate.
234 * Makefile.in: Regenerate.
236 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
238 * configure: Regenerated.
240 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
242 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
244 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
246 * eh_cpp.cc: Fix __cxa_end_catch declaration.
248 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
250 * configure: Regenerated.
252 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
255 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
258 2012-04-03 Tristan Gingold <gingold@adacore.com>
260 * configure: Regenerate.
262 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
265 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
267 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
269 * testsuite/lib/libitm.exp: load fortran-modules.exp
271 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
273 * configure.tgt (*-*-irix6*): Remove.
275 2012-03-13 Torvald Riegel <triegel@redhat.com>
278 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
281 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
283 * configure.tgt (*-*-osf*): Remove.
284 * configure: Regenerate.
286 2012-03-05 Torvald Riegel <triegel@redhat.com>
288 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
289 memtransfer/memset if size isn't larger than zero.
291 2012-03-02 Torvald Riegel <triegel@redhat.com>
293 * libitm.texi: Link to specification and add a usage example.
295 2012-02-24 Torvald Riegel <triegel@redhat.com>
297 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
298 default dispatch for more than 1 thread to ml_wt.
300 2012-02-20 Torvald Riegel <triegel@redhat.com>
302 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
304 2012-02-20 Torvald Riegel <triegel@redhat.com>
306 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
308 2012-02-20 Torvald Riegel <triegel@redhat.com>
310 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
311 serial mode corner cases made obsolete by prior gtm_rwlock changes.
312 (gl_wt_dispatch.rollback): Same.
314 2012-02-20 Torvald Riegel <triegel@redhat.com>
316 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
318 2012-02-20 Torvald Riegel <triegel@redhat.com>
320 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
321 for RfW src. Optimize number of calls to gtm_thr.
323 2012-02-20 Torvald Riegel <triegel@redhat.com>
325 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
327 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
328 (default_dispatch): Make atomic.
329 (GTM::gtm_thread::set_default_dispatch): Access atomically.
330 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
331 use decide_begin_dispatch() if default_dispatch might have changed.
332 (GTM::gtm_thread::number_of_threads_changed): Initialize
333 default_dispatch here.
335 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
336 Patrick Marlier <patrick.marlier@gmail.com>
339 * alloc_cpp.cc: No dummy definitions for darwin.
340 * eh_cpp.cc: Likewise.
342 2012-02-14 Richard Henderson <rth@redhat.com>
344 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
346 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
348 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
350 2012-02-14 Torvald Riegel <triegel@redhat.com>
352 * libitm_i.h (GTM::gtm_rwlog_entry): New.
353 (GTM::gtm_thread): Add read and write logs.
354 (GTM::dispatch_ml_wt): Declare.
355 * retry.cc (parse_default_method): Support ml_wt.
356 * method-ml.cc: New file.
357 * Makefile.am: Add method-ml.cc.
358 * Makefile.in: Regenerate.
360 2012-02-14 Torvald Riegel <triegel@redhat.com>
362 * dispatch.h (GTM::abi_dispatch::supports): New.
363 (GTM::method_group::reinit): New.
364 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
365 (GTM::gtm_thread::number_of_threads_changed): Check that the method
366 supports the current situation.
368 2012-02-14 Torvald Riegel <triegel@redhat.com>
370 * util.cc (GTM::xcalloc): New.
371 * common.h (GTM::xcalloc): Declare.
373 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
375 * config/sparc/target.h (cpu_relax): Read from CC register.
376 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
378 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
380 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
382 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
384 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
385 * config/sparc/cacheline.h: New file.
386 * config/sparc/target.h: Likewise.
387 * config/sparc/sjlj.S: Likewise.
388 * config/linux/sparc/futex_bits.h: Likewise.
390 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
392 * configure.ac (link_itm): Fix comment.
393 * configure: Regenerate.
394 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
396 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
400 Correct libgomp references.
402 2012-01-24 Torvald Riegel <triegel@redhat.com>
404 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
407 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
409 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
411 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
412 offset values. Do not copy return address. Decrement stack
414 (GTM_longjump) [__x86_64__]: Update offset values.
416 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
419 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
420 the first function argument to %eax.
422 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424 * libitm.h (_ITM_getThreadnum): Remove.
425 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
427 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
429 * clearcap.map: New file.
430 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
431 * configure.ac: Call it.
432 Clear HWCAP_LDFLAGS if defaulting to -mavx.
433 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
434 * configure: Regenerate.
435 * Makefile.in: Regenerate.
436 * testsuite/Makefile.in: Regenerate.
438 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
441 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
442 include, exclude options.
444 2012-01-14 Torvald Riegel <triegel@redhat.com>
446 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
448 * containers.h (GTM::vector::set_size): New.
450 2012-01-14 Torvald Riegel <triegel@redhat.com>
453 * config/generic/tls.h (GTM::mask_stack_top): New.
454 (GTM::mask_stack_bottom): Declare.
455 * config/generic/tls.c (GTM::mask_stack_bottom): New.
456 * local.cc (gtm_undolog::rollback): Filter out any updates that
457 overlap the libitm stack. Add current transaction as parameter.
458 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
459 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
460 * testsuite/libitm.c/stackundo.c: New test.
462 2012-01-10 Richard Henderson <rth@redhat.com>
464 * libitm_i.h (_Unwind_DeleteException): Declare weak.
465 * eh_cpp.cc (_Unwind_DeleteException): Define for
466 !HAVE_ELF_STYLE_WEAKREF.
468 2012-01-08 Torvald Riegel <triegel@redhat.com>
470 * local.cc (GTM_LB): Use GTM::gtm_undolog.
471 (GTM::gtm_thread::drop_references_undolog): Remove.
472 (GTM::gtm_thread::commit_undolog,
473 GTM::gtm_thread::rollback_undolog): Move to ...
474 * libitm_i.h (GTM::gtm_undolog): ...here. New.
475 (GTM::gtm_undolog_entry): Remove.
476 (GTM::gtm_thread): Adapt.
477 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
478 (GTM::gtm_thread::trycommit): Adapt.
479 * method-serial.cc (serial_dispatch::log): Adapt.
480 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
481 (gl_wt_dispatch::store): Fix likely/unlikely.
482 * containers.h (GTM::vector::resize): Add additional_capacity
483 parameter and handle it.
484 (GTM::vector::resize_noinline): New/adapt.
485 (GTM::vector::push): New.
487 2012-01-06 Richard Henderson <rth@redhat.com>
489 * configure.tgt: Support powerpc-linux and powerpc-darwin.
490 * config/linux/powerpc/futex_bits.h: New file.
491 * config/powerpc/cacheline.h: New file.
492 * config/powerpc/sjlj.S: New file.
493 * config/powerpc/target.h: New file.
494 * config/generic/asmcfi.h (cfi_offset): New.
495 (cfi_restore, cfi_undefined): New.
497 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
500 * testsuite/libitm.c/reentrant.c: Remove xfail.
501 (thread): Pass x to pure().
502 From Patrik Marlier <patrick.marlier@gmail.com>.
504 2011-12-24 Torvald Riegel <triegel@redhat.com>
506 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
507 privatization safety if already in serial mode.
509 2011-12-24 Torvald Riegel <triegel@redhat.com>
511 * beginend.cc (GTM::gtm_thread::restart): Add and handle
512 finish_serial_upgrade parameter.
513 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
514 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
515 Don't unset reader flag.
516 (GTM::gtm_rwlock::write_upgrade_finish): New.
517 * config/posix/rwlock.cc: Same.
518 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
520 * config/posix/rwlock.h: Same.
521 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
522 flag after commit or after rollback when restarting.
524 2011-12-24 Torvald Riegel <triegel@redhat.com>
526 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
527 (GTM::gtm_thread::try_commit): Changed memory order.
528 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
530 * config/linux/x86/futex_bits.h (sys_futex0): Same.
531 * config/linux/sh/futex_bits.h (sys_futex0): Same.
532 * config/linux/futex_bits.h (sys_futex0): Same.
533 * config/linux/futex.cc (futex_wait, futex_wake): Same.
534 * config/linux/futex.h (futex_wait, futex_wake): Same.
535 * config/linux/rwlock.h (gtm_rwlock::writers,
536 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
538 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
539 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
540 gtm_rwlock::write_unlock): Fix memory orders and fences.
541 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
542 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
543 gtm_rwlock::write_unlock): Same.
544 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
545 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
546 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
548 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
549 gl_wt_dispatch::load, gl_wt_dispatch::store,
550 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
551 orders and fences. Add comments.
553 2011-12-21 Jakub Jelinek <jakub@redhat.com>
555 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
556 * Makefile.in: Regenerated.
558 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
560 * configure.tgt: Add sh* case.
561 * config/sh/target.h: New file.
562 * config/sh/sjlj.S: New file.
563 * config/linux/sh/futex_bits.h: New file.
565 2011-12-14 Richard Henderson <rth@redhat.com>
567 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
568 * config/arm/sjlj.S, config/arm/target.h: New files.
569 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
570 (cfi_rel_offset): New.
571 * config/linux/futex_bits.h: New file.
572 * config/linux/futex.cc: Include futex_bits.h here...
573 * config/linux/futex.h: ... not here.
574 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
575 * configure.ac (ARCH_AM): New conditional.
576 * Makefile.in, configure: Rebuild.
577 * configure.tgt: Handle ARM.
579 2011-12-13 Richard Henderson <rth@redhat.com>
581 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
582 signed/unsigned comparison werror.
584 * local_atomic: New file.
585 * libitm_i.h: Include it.
586 (gtm_thread::shared_state): Use atomic template.
587 * beginend.cc (GTM::gtm_clock): Use atomic template.
588 (global_tid): Use atomic template if 64-bit atomics available.
589 (gtm_thread::gtm_thread): Update shared_state access.
590 (gtm_thread::trycommit): Likewise.
591 (choose_code_path): Update global_tid access.
592 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
593 * stmlock.h (GTM::gtm_clock): Use atomic template.
594 (gtm_get_clock, gtm_inc_clock): Update accesses.
595 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
596 redundant __sync_synchronize after atomic shared_state access.
597 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
598 (gtm_rwlock::write_lock_generic): Likewise.
599 (gtm_rwlock::read_unlock): Likewise.
600 * config/alpha/target.h (atomic_read_barrier): Remove.
601 (atomic_write_barrier): Remove.
602 * config/x86/target.h (atomic_read_barrier): Remove.
603 (atomic_write_barrier): Remove.
605 2011-11-30 Richard Henderson <rth@redhat.com>
607 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
608 * beginend.c (_ITM_abortTransaction): Update to match.
609 (GTM::gtm_thread::restart): Likewise.
610 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
611 * config/x86/sjlj.S (GTM_longjmp): Likewise.
613 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
615 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
616 * Makefile.in: Regenerate.
618 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
620 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
621 * alloc_cpp.cc: Generate dummy functions if we don't
622 HAVE_ELF_STYLE_WEAKREF.
623 * eh_cpp.cc: Likewise.
624 * configure: Regenerate.
625 * aclocal.m4: Likewise.
626 * config.h.in: Likewise.
627 * Makefile.in: Likewise.
628 * testsuite/Makefile.in: Likewise.
630 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
632 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
633 __USER_LABEL_PREFIX__ for targets that use it.
634 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
635 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
636 in portability to non-elf targets.
637 (GTM_longjmp): Likewise.
638 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
641 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
643 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
644 * testsuite/libitm.c/memset-1.c: Likewise.
646 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
648 * configure: Regenerate.
650 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
652 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
653 (LIBITM_ENABLE_SYMVERS): Handle sun style.
654 * Makefile.am: Handle sun style versioning.
655 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
656 * configure: Regenerate.
657 * Makefile.in: Regenerate.
659 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
661 * config/generic/asmcfi.h: Fix comment.
662 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
663 sequence without .hidden support, error for non-ELF targets.
664 (GTM_longjmp) [__ELF__]: Only use .hidden if
665 HAVE_ATTRIBUTE_VISIBILITY.
667 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
670 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
672 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
673 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
675 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
678 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
679 * configure: Regenerate.
681 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
683 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
685 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
687 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
689 (.note.GNU-stack): Only use if __linux__.
690 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
691 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
692 * testsuite/libitm.c/reentrant.c: Likewise.
693 * testsuite/libitm.c/simple-2.c: Likewise.
694 * testsuite/libitm.c/txrelease.c: Likewise.
695 * testsuite/libitm.c++/static_ctor.C: Likewise.
697 2011-11-10 Richard Henderson <rth@redhat.com>
699 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
700 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
701 * configure.ac (ARCH_X86_AVX): New conditional.
702 * Makefile.in, configure: Rebuild.
704 2011-11-09 Richard Henderson <rth@redhat.com>
706 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
707 * configure.ac: Use it.
708 * config.h.in, configure: Rebuild.
709 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
711 2011-11-09 Richard Henderson <rth@redhat.com>
713 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
714 * config/alpha/unaligned.h: Remove file.
715 * config/generic/unaligned.h: Remove file.
716 * config/x86/unaligned.h: Remove file.
717 * config/generic/cachepage.h: Remove file.
718 * config/posix/cachepage.cc: Remove file.
719 * config/generic/cacheline.cc: Remove file.
720 * config/x86/cacheline.cc: Remove file.
721 * config/generic/cacheline.h (gtm_cacheline): Remove the
722 store_mask, copy_mask, copy_mask_wb methods.
723 * config/x86/cacheline.h: Likewise.
724 * config/alpha/cacheline.h: Fall back to generic after setting size.
725 * config/generic/tls.cc (gtm_mask_stack): Remove.
726 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
727 (GTM_vpalignr_table): Remove.
728 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
729 (GTM_pshift_table): Remove.
730 * config/libitm_i.h: Don't include cachepage.h.
731 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
732 * Makefile.in, testsuite/Makefile.in: Rebuild.
734 2011-11-09 Richard Henderson <rth@redhat.com>
736 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
737 to emit branch prediction hint.
739 * config/x86/sjlj.S: Protect elf directives with __ELF__.
740 Protect .note.GNU-stack with __linux__.
742 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
743 * configure, aclocal.m4, config.h.in: Rebuild.
744 * config/generic/asmcfi.h: New file.
745 * config/x86/sjlj.S: Use it.
747 2011-11-08 Richard Henderson <rth@redhat.com>
749 * local.cc (_ITM_LB): Use a normal call, not a function alias.
751 2011-11-08 Richard Henderson <rth@redhat.com>
753 * configure.tgt: Test correct directory for supported cpus.
755 * configure.ac: Exit if unsupported.
756 * configure: Rebuild.
757 * configure.tgt: Delete boilerplate from libgomp for unsupported
758 targets. Set UNSUPPORTED for unsupported targets.
760 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
762 * configure.tgt: Handle i386 like i[456]86.
763 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
765 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
766 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
768 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
770 * method-wbetl.cc: Update copyright notice.
777 * useraction.cc: Same.
781 * config/generic/tls.cc: Same.
782 * config/generic/cacheline.h: Same.
783 * config/generic/cachepage.h: Same.
784 * config/generic/cacheline.cc: Same.
785 * config/generic/unaligned.h: Same.
786 * config/x86/cacheline.h: Same.
787 * config/x86/cacheline.cc: Same.
788 * config/x86/unaligned.h: Same.
789 * config/alpha/cacheline.h: Same.
790 * config/alpha/unaligned.h: Same.
791 * config/alpha/sjlj.S: Same.
792 * config/posix/cachepage.cc: Same.
793 * config/linux/futex.h: Same.
794 * config/linux/alpha/futex_bits.h: Same.
796 2011-11-04 Torvald Riegel <triegel@redhat.com>
798 * libitm.texi: No cover text and invariant sections.
800 2011-11-03 Richard Henderson <rth@redhat.com>
802 * local_type_traits: New file.
803 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
805 2011-11-03 Richard Henderson <rth@redhat.com>
807 * configure.ac: Don't test for gfortran.
808 * configure: Rebuild.
810 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
811 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
813 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
815 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
816 * testsuite/libitm.c/memset-1.c: Same.
817 * testsuite/libitm.c/c.exp: Same.
818 * testsuite/lib/libitm-dg.exp: Same.
819 * testsuite/lib/libitm.exp: Same.
820 * testsuite/libitm.c++/c++.exp: Same.
822 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
824 * testsuite/config/default.exp: Update copyright date.
825 * configure.ac: Add copyright info.
826 * configure.tgt: Same.
828 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
830 * testsuite/libitm.c/reentrant.c: XFAIL.
831 * testsuite/libitm.c++/static_ctor.C: XFAIL.
833 2011-10-29 Torvald Riegel <triegel@redhat.com>
835 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
837 (_ITM_abortTransaction): Handle aborts of outer transactions.
839 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
840 * libitm.texi: Document aborts of outer transactions.
841 * testsuite/libitm.c/cancel.c: New file.
843 2011-10-19 Torvald Riegel <triegel@redhat.com>
845 * testsuite/*: Change __transaction to __transaction_atomic or
846 __transaction_relaxed.
848 2011-10-19 Torvald Riegel <triegel@redhat.com>
850 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
853 2011-10-19 Torvald Riegel <triegel@redhat.com>
855 * libitm_i.h: Add gl_wt dispatch.
856 * retry.cc (parse_default_method): Same.
857 * method-gl.cc: New file.
858 * Makefile.am: Use method-gl.cc.
859 * Makefile.in: Rebuild.
861 2011-10-19 Torvald Riegel <triegel@redhat.com>
863 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
864 safety if requested by a TM method.
865 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
866 privatization safety.
867 * method-serial.cc: Same.
869 2011-10-19 Torvald Riegel <triegel@redhat.com>
871 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
872 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
873 undolog-related member functions from *_local to *_undolog.
874 * local.cc (gtm_thread::commit_undolog): Same.
875 * beginend.cc (GTM::gtm_thread::trycommit): Same.
876 (GTM::gtm_thread::rollback): Roll back undolog before
877 dispatch-specific rollback.
879 2011-10-19 Torvald Riegel <triegel@redhat.com>
881 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
882 re-initialization of the current method group.
883 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
885 2011-10-19 Torvald Riegel <triegel@redhat.com>
887 * alloc.cc (commit_allocations_2): Do not free transaction-local
888 memory when committing a nested transaction.
890 2011-10-19 Torvald Riegel <triegel@redhat.com>
892 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
893 serial-irrevocable dispatch, not serial.
895 2011-10-19 Torvald Riegel <triegel@redhat.com>
897 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
899 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
900 * method-serial.cc: Implement begin_or_restart().
901 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
902 dispatch-specific begin_or_restart().
903 (GTM::gtm_thread::restart): Same.
905 2011-08-23 Torvald Riegel <triegel@redhat.com>
907 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
908 restarting without switching to serial mode.
909 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
910 transaction state. Choose closed-nesting alternative if available.
911 (GTM::gtm_thread::set_default_dispatch): New.
912 (parse_default_method): New.
913 (GTM::gtm_thread::number_of_threads_changed): New.
914 * method-serial.cc (GTM::serial_mg): New method group class.
915 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
917 (GTM::serial_dispatch): Same.
918 (GTM::serialirr_onwrite_dispatch): Same.
919 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
920 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
922 (GTM::gtm_thread::gtm_thread): Same.
923 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
924 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
925 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
926 choose dispatch but set state according to dispatch here.
927 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
928 (GTM::method_group): New class.
929 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
930 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
931 * libitm.texi: Document TM methods, method groups, method life cycle.
932 Rename method sets to method groups.
934 2011-08-23 Torvald Riegel <triegel@redhat.com>
936 * config/x86/tls.h: Moved to ...
937 * config/linux/x86/tls.h: ... here.
939 2011-08-23 Torvald Riegel <triegel@redhat.com>
941 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
943 * config/x86/sjlj.S: Same.
945 2011-08-19 Torvald Riegel <triegel@redhat.com>
947 * config/linux/rwlock.h: New file.
948 * config/linux/rwlock.c: New file.
949 * configure.ac: Reenable futex support (undo SVN rev 157758).
951 * configure.tgt: Same.
952 * config/linux/alpha/futex_bits.h: Same.
953 * config/linux/futex.h: Same. Return number of woken processes.
954 * config/linux/futex.cc: Same.
955 (futex_wait): Remove spinning.
956 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
957 Use __x86_64__ instead of __LP64__.
958 * aclocal.m4: Include generic futex checks.
959 * configure: Rebuild.
960 * Makefile.in: Rebuild.
961 * testsuite/Makefile.in: Rebuild.
962 * beginend.cc: Include pthread.h.
963 * config/posix/cachepage.cc: Same.
965 2011-08-12 Torvald Riegel <triegel@redhat.com>
967 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
968 (abi_disp, set_abi_disp): Move to tx's TLS slot.
970 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
972 (GTM::gtm_thread::thread_num): Removed.
973 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
974 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
975 tx-to-thread renaming.
976 * beginend.cc: Adapted to tx-to-thread renaming.
977 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
978 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
979 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
980 gtm_transaction to gtm_thread.
981 (_ITM_getThreadnum): Removed. Not supported anymore.
982 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
983 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
984 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
985 gtm_tx-to-gtm_thr renaming if necessary.
992 * alloc_cpp.cc: Same.
993 * method-serial.cc: Same.
994 * config/generic/tls.cc: Same.
995 * config/posix/rwlock.h (gtm_rwlock): Same.
996 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
998 2011-08-12 Torvald Riegel <triegel@redhat.com>
1000 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1002 (gtm_rwlock::read_unlock): Same.
1003 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1004 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1005 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1006 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1007 w_upgrade. Replaced by per-transaction flags (in shared_state).
1008 Added c_confirmed_writers.
1009 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1010 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1011 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1012 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1013 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1014 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1015 * libitm.texi: Document locking conventions and implementations in
1018 2011-08-12 Torvald Riegel <triegel@redhat.com>
1020 * libitm_i.h (next_tx): Add list of all threads' transaction.
1021 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1022 transaction with list of transactions and ...
1023 (thread_exit_handler): ... deregister here.
1024 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1025 * config/x86/target.h: Same.
1027 2011-08-12 Torvald Riegel <triegel@redhat.com>
1029 * testsuite/libitm.c++/static_ctor.C: New file.
1031 2011-08-12 Torvald Riegel <triegel@redhat.com>
1033 * testsuite/libitm.c/reentrant.c: New file.
1035 2011-08-12 Torvald Riegel <triegel@redhat.com>
1037 * config/generic/tls.h: Remove the free list for transactions and ...
1038 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1039 (GTM::gtm_transaction::operator delete): ... and release here.
1040 (thread_exit_handler): New. Delete tx when thread terminates.
1041 (thread_exit_init): New.
1042 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1043 * testsuite/libitm.c/txrelease.c: New file.
1045 2011-08-12 Torvald Riegel <triegel@redhat.com>
1047 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1048 * testsuite/libitm.c/notx.c: New file.
1050 2011-08-12 Torvald Riegel <triegel@redhat.com>
1052 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1053 * libitm_i.h (local_tid): ... to here.
1054 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1055 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1057 2011-08-12 Torvald Riegel <triegel@redhat.com>
1059 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1060 serialirr_onwrite_dispatch as new default for now.
1061 * method-serial.cc (serialirr_onwrite_dispatch): New.
1062 (GTM::dispatch_serialirr_onwrite): New.
1065 2011-08-12 Torvald Riegel <triegel@redhat.com>
1067 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1068 * query.cc (_ITM_getTransactionId): There is no active transaction if
1069 the current nesting level is zero.
1071 2011-07-28 Torvald Riegel <triegel@redhat.com>
1073 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1076 2011-07-28 Torvald Riegel <triegel@redhat.com>
1078 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1079 transaction properties from the caller instead of from the
1082 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1084 2011-07-28 Torvald Riegel <triegel@redhat.com>
1086 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1087 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1089 * method-serial.cc: Same.
1090 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1091 flat nesting as default, and closed nesting on demand.
1092 (GTM::gtm_transaction::rollback): Same.
1093 (_ITM_abortTransaction): Same.
1094 (GTM::gtm_transaction::restart): Same.
1095 (GTM::gtm_transaction::trycommit): Same.
1096 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1097 (choose_code_path): New.
1098 (GTM::gtm_transaction_cp::save): New.
1099 (GTM::gtm_transaction_cp::commit): New.
1100 * query.cc (_ITM_inTransaction): Support flat nesting.
1101 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1102 (GTM::gtm_transaction): Support flat and closed nesting.
1103 * alloc.cc (commit_allocations_2): New.
1104 (commit_cb_data): New helper struct.
1105 (GTM::gtm_transaction::commit_allocations): Handle nested
1107 * libitm.texi: Update user action section, add description of nesting.
1109 2011-07-28 Torvald Riegel <triegel@redhat.com>
1111 * libitm_i.h: Add closed nesting as restart reason.
1112 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1114 2011-07-28 Torvald Riegel <triegel@redhat.com>
1116 * useraction.cc: Use vector instead of list to store actions.
1117 Also support partial rollbacks for closed nesting.
1118 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1119 * beginend.cc: Same.
1121 2011-07-28 Torvald Riegel <triegel@redhat.com>
1123 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1124 closed_nesting flags, as well as a closed nesting alternative.
1125 * method-serial.cc: Same.
1126 (serial_dispatch): Renamed to serialirr_dispatch.
1127 (GTM::dispatch_serialirr): Same.
1128 (serial_dispatch_ul): Renamed to serial_dispatch.
1129 (GTM::dispatch_serial): Same.
1131 2011-07-28 Torvald Riegel <triegel@redhat.com>
1133 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1135 2011-07-28 Torvald Riegel <triegel@redhat.com>
1137 * aatree.h (aa_tree::remove): New.
1138 (aa_tree::operator new): Add placement new.
1140 2011-07-02 Torvald Riegel <triegel@redhat.com>
1142 * containers.h: New file.
1143 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1144 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1145 * common.h: ... to here.
1146 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1149 2011-06-30 Torvald Riegel <triegel@redhat.com>
1151 * libitm_i.h (STATE_ABORTING): Remove.
1152 * beginend.cc (_ITM_abortTransaction): Same.
1153 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1154 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1155 (_ITM_rollbackTransaction): Remove.
1156 * beginend.cc: Same.
1158 * libitm.texi: Document these ABI changes.
1160 2011-06-30 Torvald Riegel <triegel@redhat.com>
1162 * libitm.texi: New file.
1163 * Makefile.am: Add libitm.texi.
1164 * Makefile.in: Rebuild.
1166 2011-06-30 Torvald Riegel <triegel@redhat.com>
1168 * libitm_i.h: Move parts to common.h and dispatch.h.
1169 * common.h: New file.
1170 * dispatch.h: New file, new dispatch class.
1171 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1172 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1173 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1174 decision to retry.cc.
1175 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1177 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1178 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1180 * barrier.cc: Use new barriers definitions.
1181 (abi_dispatch::memmove_overlap_check): New.
1182 * config/x86/x86_sse.cc: Same.
1183 * config/x86/x86_avx.cc: Same.
1184 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1186 * Makefile.in: Rebuild.
1187 * method-readonly.cc: Remove.
1188 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1189 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1191 2011-06-30 Torvald Riegel <triegel@redhat.com>
1193 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1194 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1195 * testsuite/libitm.c/dropref-2.c: Same.
1196 * testsuite/libitm.c/dropref.c: Same.
1198 2011-06-30 Torvald Riegel <triegel@redhat.com>
1200 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1201 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1202 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1204 * barrier.tpl: Same.
1206 * config/generic/tls.h: Same.
1207 * config/x86/tls.h: Same.
1211 * method-readonly.cc: Same.
1212 * method-serial.cc: Same.
1213 * method-wbetl.cc: Same.
1216 2011-03-03 Richard Henderson <rth@redhat.com>
1218 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1219 From Patrik Marlier <patrick.marlier@unine.ch>.
1221 2011-02-03 Richard Henderson <rth@redhat.com>
1223 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1224 * configure.ac: Use it.
1225 * configure, config.h.in: Rebuild.
1226 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1227 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1228 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1229 * libitm.map: Use wildcards to match size_t mangling.
1231 2010-12-14 Richard Henderson <rth@redhat.com>
1233 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1234 blocks of TIDs per thread.
1235 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1236 (setup_gtm_thr): Return the thread structure.
1237 * config/x86/tls.h (setup_gtm_thr): Likewise.
1239 2010-12-14 Richard Henderson <rth@redhat.com>
1241 * clone.cc (table_lock): Remove.
1242 (find_clone): Don't take it.
1243 (ExcludeTransaction): New helper class.
1244 (_ITM_registerTMCloneTable): Use it.
1245 (_ITM_deregisterTMCloneTable): Likewise.
1247 2010-12-14 Richard Henderson <rth@redhat.com>
1249 * config/x86/tls.h: New file.
1251 2010-07-15 Richard Henderson <rth@redhat.com>
1253 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1254 * Makefile.in: Rebuild.
1256 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1258 * method-wbetl.cc (trydropreference): Fix source line.
1260 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1262 * libitm.h: Add comment.
1263 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1265 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1267 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1268 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1269 available, use pthread mutexes.
1270 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1271 * config.h.in: Regenerate.
1272 * configure: Regenerate.
1274 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1276 * libitm.h (ITM_PURE): Define.
1277 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1279 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1281 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1282 (validate): Add comment.
1283 (trydropreference): New.
1284 * method-readonly.cc (class readonly_dispatch): Add
1286 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1287 Call trydropreference().
1288 * libitm.h (_ITM_dropReferences): Remove const attribute.
1289 * method-serial.cc (class serial_dispatch): Add trydropreference.
1290 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1292 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1294 * memcpy.cc (do_memcpy): Comment.
1296 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1298 * barrier.tpl: Add comments throughout.
1300 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1302 * method-wbetl.cc (struct w_entry): Add comments.
1306 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1308 * alloc_c.cc (_ITM_dropReferences): New.
1309 * libitm.map (_ITM_dropReferences): Add.
1310 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1311 * libitm_i.h (struct gtm_transaction): Declare
1312 drop_references_allocations and drop_references_local.
1313 * local.cc (rollback_local): Ignore memory when applicable.
1314 (drop_references_local): New.
1316 2010-06-23 Richard Henderson <rth@redhat.com>
1318 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1319 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1320 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1321 * config/alpha/target.h: Likewise.
1322 * config/generic/tls.cc (gtm_mask_stack): Use it.
1324 2010-06-23 Richard Henderson <rth@redhat.com>
1326 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1327 a mutex instead of trying a lock-free compare-and-swap on the list.
1328 (gtm_cacheline_page::operator delete): Likewise.
1330 2010-06-16 Richard Henderson <rth@redhat.com>
1332 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1333 that overlap the libitm stack.
1334 * barrier.tpl: Mark incoming stack.
1335 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1336 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1337 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1338 * memcpy.cc, memset.cc: Likewise.
1339 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1340 * config/generic/tls.h (gtm_thread): Add stack_top member.
1341 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1342 * libitm_i.h (gtm_mask_stack): Declare.
1343 * config/generic/tls.cc: New file.
1344 * Makefile.am (libitm_la_SOURCES): Add it.
1345 (AM_CXXFLAGS): Turn off exceptions.
1346 * Makefile.in: Rebuild.
1348 2010-06-16 Richard Henderson <rth@redhat.com>
1350 * alloc.cc (struct gtm_alloc_action): Move definition ...
1351 * libitm_i.h: ... here.
1352 (class gtm_transaction): Declare new and delete.
1353 * beginend.cc (alloc_tx): Reformulate as operator new.
1354 (free_tx): Reformulate as operator delete.
1355 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1357 2010-06-11 Richard Henderson <rth@redhat.com>
1359 * clone.cc (clone_entry_compare): Fix typo.
1360 From Patrik Marlier <patrick.marlier@unine.ch>.
1362 2010-05-13 Richard Henderson <rth@redhat.com>
1364 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1367 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1369 * libitm_i.h (struct gtm_transaction): Remove
1370 get_allocation_size.
1371 (record_allocation): Remove size parameter.
1372 * libitm.map (_ITM_realloc): Remove.
1373 * alloc_c.cc (_ITM_realloc): Remove.
1374 (_ITM_malloc): Remove size argument to record_allocation.
1375 (_ITM_calloc): Same.
1376 * alloc_cpp.cc (_ZGTtnwm): Same.
1377 (_ZGTtnwmRKSt9nothrow_t): Same.
1379 (_ZGTtnamRKSt9nothrow_t): Same.
1380 * alloc.cc (struct gtm_alloc_action): Remove size.
1381 (get_allocation_size): Remove.
1382 (commit_allocations): Add comment.
1383 (record_allocation): Remove size parameter.
1384 (forget_allocation): Remove set of size.
1386 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1388 * Makefile.am (abi_version): New.
1389 (AM_CXXFLAGS): Pass abi_version.
1390 * Makefile.in: Regenerate.
1391 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1393 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1395 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1396 _ITM_getTMCloneOrIrrevokable.
1397 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1398 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1400 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1402 * configure.ac: Remove Linux futex support.
1403 * configure.tgt (config_path): Same.
1404 * Makefile.am: Same.
1405 * config/linux: Remove entire directory.
1406 * configure: Rebuild.
1407 * Makefile.in: Rebuild.
1408 * testsuite/Makefile.in: Rebuild.
1410 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1412 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1413 switching to serial mode.
1414 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1416 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1418 * configure.tgt: Add emacs -*- tags.
1419 * barrier.tpl: Same.
1421 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1423 * Makefile.am: Rename serial.cc to method-serial.cc.
1424 * Makefile.in: Regenerate with automake 1.11.1.
1425 * testsuite/Makefile.in: Same.
1426 * aclocal.m4: Regenerate with aclocal 1.11.1.
1427 * method-serial.cc: Rename from serial.cc.
1428 * libitm_i.h (struct gtm_transaction): Update comment on
1431 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1433 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1434 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1436 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1438 * configure: Rebuild.
1440 2009-11-12 Richard Henderson <rth@redhat.com>
1442 * Rewrite everything in C++.
1444 2009-11-03 Richard Henderson <rth@redhat.com>
1446 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1447 * Makefile.am (libitm_la_SOURCES): Add them.
1448 * configure.ac (ARCH_X86): New conditional.
1449 * Makefile.in, configure: Rebuild.
1450 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1451 Move futex setup into "other system configury" case.
1452 * local.c (rollback_local): Merge into ...
1453 (GTM_rollback_local): ... here.
1454 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1455 (_ITM_LB): Define as an alias to GTM_LB.
1457 2009-11-03 Richard Henderson <rth@redhat.com>
1459 * method-readonly.c: New file.
1460 * Makefile.am (libitm_la_SOURCES): Add it.
1461 * Makefile.in: Rebuild.
1462 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1463 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1464 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1465 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1466 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1467 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1468 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1469 gtm_get_clock, gtm_inc_clock): New.
1470 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1471 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1472 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1473 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1474 replace uses with new libitm_i.h symbols.
1475 (dispatch_wbetl): Rename from wbetl_dispatch.
1476 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1477 away from dispatch_readonly; abort if the beginTransaction call
1478 asserted that the transaction was readonly.
1480 2009-11-03 Richard Henderson <rth@redhat.com>
1482 * memset.c: New file.
1483 * Makefile.am (libitm_la_SOURCES): Add it.
1484 * Makefile.in: Rebuild.
1485 * testsuite/libitm.c/memset-1.c: New.
1487 2009-11-03 Richard Henderson <rth@redhat.com>
1489 * dispatch.c: Remove file.
1490 * useraction.c (struct gtm_user_action): Move from libitm.h.
1491 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1492 (serial_memset, serial_memmove, serial_memcpy): Remove.
1493 (serial_W*, serial_R*): Remove.
1494 (serial_dispatch): Update to match.
1495 * configure.ac: Move Werror down below configure checks. Don't
1496 check for sys/loadavg.h, do check for malloc.h. Don't check for
1497 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1498 Use GCC_AC_FUNC_MMAP_BLACKLIST
1499 * libitm.h: Split out all internal items to...
1500 * libitm_i.h: ... here. New file.
1501 * copymask.c: New file.
1502 * local.c (struct gtm_local_undo): Move from libitm.h.
1503 (GTM_alloc_local): Rename from alloc_local; export.
1504 * memcpy.c: New file.
1505 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1506 * config/posix/page.c: New file.
1507 * config/posix/target_tls.h: Remove file.
1508 * barrier.c: New file.
1509 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1511 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1512 * method-wbetl.c: Rewrite for new cacheline methods.
1513 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1515 * config/alpha/sjlj.S: Fix typo.
1516 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1517 * config/alpha/copymask.c: New file.
1518 * config/alpha/target.h (CACHELINE_SIZE): New.
1519 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1521 * config/x86/target_i.h: Copy functions from x86/target.h.
1522 * config/x86/copymask.c: New file.
1523 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1524 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1525 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1526 * config/x86/target_tls.h: Move contents to target_i.h.
1528 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1529 * testsuite/libitm.c/memcpy-1.c: New.
1531 2009-10-22 Richard Henderson <rth@redhat.com>
1533 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1534 (AM_CCASFLAGS): New.
1535 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1536 saving/restoring _AC_ARG_VAR_PRECIOUS.
1537 * Makefile.in, aclocal.m4, config.h.in, configure,
1538 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1540 2009-10-22 Richard Henderson <rth@redhat.com>
1542 * testsuite/*: Update for new compiler syntax.
1544 2009-10-21 Richard Henderson <rth@redhat.com>
1546 * libitm.h (_ITM_abortReason): Add outerAbort.
1548 2009-08-03 Richard Henderson <rth@redhat.com>
1550 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1551 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1552 * method-wbetl.c (struct w_entry): Remove mask.
1553 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1556 2009-07-22 Richard Henderson <rth@redhat.com>
1558 * eh_cpp.c: New file.
1559 * Makefile.am (libitm_la_SOURCES): Add it.
1560 * Makefile.in: Rebuild.
1561 * beginend.c (GTM_rollback_transaction): Undo exception state.
1562 (GTM_trycommit_transaction): Mark inline.
1563 (GTM_trycommit_and_finalize_transaction): Split out from ...
1564 (_ITM_commitTransaction): ... here.
1565 (_ITM_commitTransactionEH): New function.
1566 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1567 cxa_unthrown, eh_in_flight; reorder.
1569 * testsuite/libitm.c++/c++.exp: New.
1570 * testsuite/libitm.c++/eh-1.C: New.
1572 * aatree.c (aa_free): Remove REGPARM.
1573 * aatree.h: Remove all REGPARM.
1575 2009-07-18 Richard Henderson <rth@redhat.com>
1577 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1578 * Makefile.am (libitm_la_SOURCES): Add them.
1579 * Makefile.in: Rebuild.
1580 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1581 (GTM_trycommit_transaction): Likewise.
1582 * libitm.h: Include aatree.h
1583 (struct gtm_alloc_action): New.
1584 (struct gtm_transaction): Add alloc_actions.
1585 (GTM_record_allocation, GTM_forget_allocation): Declare.
1586 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1587 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1588 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1589 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1590 _ZGTtdaPvRKSt9nothrow_t): Export.
1592 2009-07-18 Richard Henderson <rth@redhat.com>
1594 * target_tls.h: Move ...
1595 * config/posix/target_tls.h: ... here.
1597 2009-07-07 Richard Henderson <rth@redhat.com>
1599 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1601 2009-07-07 Richard Henderson <rth@redhat.com>
1605 2009-07-07 Richard Henderson <rth@redhat.com>
1607 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1608 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1610 * configure.tgt: Don't use -ftls-model for x86 linux.
1611 * libitm.h: Include target.h after standard includes.
1612 (_gtm_thr): Rename from gtm_thr.
1613 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1614 (gtm_disp, set_gtm_disp): New.
1615 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1616 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1617 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1619 2009-07-07 Richard Henderson <rth@redhat.com>
1621 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1623 2009-07-06 Richard Henderson <rth@redhat.com>
1625 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1626 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1627 (_ITM_beginTransaction): Take variadic arguments.
1628 (_ITM_registerThrownObject): Declare.
1629 * beginend.c, serial.c: Update.
1630 * libitm.map: Add _ITM_registerThrownObject.
1632 2009-01-28 Richard Henderson <rth@redhat.com>
1634 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1635 * Makefile.in: Rebuild.
1636 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1637 (GTM_restart_transaction): Fix uninstrumented code check.
1638 * retry.c (GTM_decide_retry_strategy): Add serial check.
1639 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1640 automatically go irrevokable when in serial mode.
1641 * clone.c: New file.
1642 * libitm.h, libitm.map: Update.
1644 2009-01-27 Richard Henderson <rth@redhat.com>
1646 * Makefile.am (LTCCASCOMPILE): Define.
1647 (libitm_la_SOURCES): Add methid-wbetl.c.
1648 * testsuite/Makefile.am: New
1649 * configure.ac: Add testsuite/Makefile.
1650 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1651 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1652 (_ITM_abortTransaction): Finalize implementation method; pass
1653 transaction properties to longjmp.
1654 (GTM_restart_transaction): Split out from ...
1655 (_ITM_commitTransaction): ... here.
1656 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1657 Move to config/x86/target.h.
1658 * config/linux/alpha/futex_bits.h: New.
1659 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1660 * config/x86/target.h: Disable target types for 32-bit.
1661 * config/alpha/sjlj.S, config/alpha/target.h: New.
1662 * libitm.h (struct gtm_dispatch): Add init, fini.
1663 (enum restart_reason): New.
1664 (struct gtm_transaction): Add method and restarts.
1665 * retry.c (GTM_decide_retry_strategy): Implement.
1666 * serial.c (serial_init, serial_fini): New.
1667 (GTM_serialmode): Finialize outgoing method.
1668 * method-wbetl.c: New.
1670 2008-12-09 Richard Henderson <rth@redhat.com>
1672 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1673 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1674 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1675 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1676 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1677 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1678 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1679 * serial.c (serial_R##T, serial_W##T): Likewise.
1681 2008-11-21 Richard Henderson <rth@redhat.com>