1 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4 * configure: Regenerate.
6 2014-10-06 Marek Polacek <polacek@redhat.com>
8 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
9 * testsuite/libitm.c/memset-1.c: Likewise.
11 2014-07-24 Richard Henderson <rth@redhat.com>
13 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
14 addressing mode in epilogue.
16 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
19 -mclear-hwcap instead.
20 * configure: Regenerate.
21 * clearcap.map: Remove.
23 2014-05-21 John Marino <gnugcc@marino.st>
25 * configure.tgt (*-*-dragonfly*): New target.
27 2014-05-19 Richard Henderson <rth@redhat.com>
29 * config/aarch64/sjlj.S: New file.
30 * config/aarch64/target.h: New file.
31 * configure.tgt: Enable aarch64.
33 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35 * config/generic/asmcfi.h: Also check for
36 __GCC_HAVE_DWARF2_CFI_ASM.
38 2013-04-02 Richard Henderson <rth@redhat.com>
40 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
41 * config/arm/target.h, config/sh/target.h: Likewise.
42 * config/sparc/target.h, config/x86/target.h: Likewise.
44 2014-03-26 Jakub Jelinek <jakub@redhat.com>
46 * config/linux/futex_bits.h: Include errno.h.
47 (sys_futex0): If syscall returns -1, return -errno rather than
50 2014-03-26 Joseph Myers <joseph@codesourcery.com>
52 * libitm.texi (Index): Rename to Library Index.
54 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
57 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
58 (x86_avx.lo): Append -mavx to CXXFLAGS.
59 * Makefile.in: Regenerate.
61 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
63 Update copyright years
65 2014-01-02 Tobias Burnus <burnus@net-b.de>
67 * libitm.texi: Bump @copying's copyright year.
69 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
71 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
72 (FUNC): Define ELFv2 variant.
79 2013-09-20 Alan Modra <amodra@gmail.com>
81 * configure: Regenerate.
83 2013-08-30 Torvald Riegel <triegel@redhat.com>
85 * config/posix/rwlock.cc: Fix initialization order.
87 2013-08-30 Torvald Riegel <triegel@redhat.com>
89 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
90 (htm_fastpath): Assign an asm name.
91 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
93 (_ITM_actions): Likewise.
94 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
96 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
97 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
98 field to the start of the structure.
99 * config/linux/rwlock.h (gtm_rwlock): Update comments.
100 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
101 handling for custom HTM fast paths.
103 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
105 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
107 * configure.tgt: Add -msoft-float to XCFLAGS.
109 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
111 * configure.tgt: Add -msoft-float to XCFLAGS.
113 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
115 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
116 (htm_transaction_active): Enable zEC12 instructions in the
118 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
120 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
122 * acinclude.m4: Add htm asm check for s390.
123 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
124 * configure: Regenerate.
125 * config/s390/target.h: Remove __HTM__ check.
126 (htm_available): Call getauxval to get hwcaps and check whether
127 HTM is available or not.
129 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
131 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
132 * configure.ac: Use it.
133 (AC_CHECK_HEADERS): Check for sys/auxv.h.
134 (AC_CHECK_FUNCS): Check for getauxval.
135 * config.h.in, configure: Rebuild.
136 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
137 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
138 (USE_HTM_FASTPATH): Define.
139 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
140 _HTM_RETRIES) New macros.
141 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
142 htm_begin_success, htm_commit, htm_transaction_active): New functions.
144 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
146 * config/s390/target.h: Include htmintrin.h.
147 (_HTM_ITM_RETRIES): New macro definition.
148 (htm_available, htm_init, htm_begin, htm_begin_success)
149 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
151 2013-06-20 Iain Sandoe <iain@codesourcery.com>
152 Cesar Philippidis <cesar@codesourcery.com>
154 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
155 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
156 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
157 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
159 2013-06-20 Torvald Riegel <triegel@redhat.com>
161 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
162 (_ITM_getTransactionId): Same.
163 * config/x86/target.h (htm_transaction_active): New.
165 2013-06-20 Torvald Riegel <triegel@redhat.com>
168 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
171 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
174 * local_atomic (__always_inline): Always define our version.
175 (__calculate_memory_order): Mark inline.
176 (atomic_thread_fence): Ditto.
177 (atomic_signal_fence): Ditto.
178 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
179 (atomic_bool::atomic_flag_clear_explicit): Ditto.
180 (atomic_bool::atomic_flag_test_and_set): Ditto.
181 (atomic_bool::atomic_flag_clear): Ditto.
183 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
185 * config/s390/sjlj.S: New file.
186 * config/s390/target.h: New file.
187 * configure.tgt: Set options for S/390.
189 2013-03-23 Andi Kleen <ak@linux.intel.com>
191 * local_atomic (__always_inline): Add.
192 (__calculate_memory_order, atomic_thread_fence,
193 atomic_signal_fence, test_and_set, clear, store, load,
194 exchange, compare_exchange_weak, compare_exchange_strong,
195 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
196 Add __always_inline to force inlining.
198 2013-02-11 Iain Sandoe <iain@codesourcery.com>
199 Jack Howarth <howarth@bromo.med.uc.edu>
200 Patrick Marlier <patrick.marlier@gmail.com>
203 * alloc_cpp.cc: Enable function declarations on darwin.
204 * eh_cpp.cc: Likewise.
206 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
208 Update copyright years.
210 2012-11-09 Torvald Riegel <triegel@redhat.com>
212 * beginend.cc (htm_fastpath): New.
213 (gtm_thread::begin_transaction, _ITM_commitTransaction,
214 _ITM_commitTransactionEH): Add HTM fastpath handling.
215 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
216 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
217 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
218 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
219 * configure.tgt: Add -mrtm to XCFLAGS.
220 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
221 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
222 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
223 * retry.cc (parse_default_method): Add HTM method parsing.
224 (gtm_thread::number_of_threads_changed): Use HTM by default if
227 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
229 * configure: Regenerate.
231 2012-10-31 Richard Henderson <rth@redhat.com>
233 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
234 * configure.ac: Use it.
235 * config.h.in, configure: Rebuild.
236 * testsuite/Makefile.in: Rebuild.
238 2012-10-24 Torvald Riegel <triegel@redhat.com>
240 * libitm.texi: Clarify ABI requirements for data-logging functions.
242 2012-10-24 Torvald Riegel <triegel@redhat.com>
244 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
245 it requires serial mode instead of assuming that for certain
247 * dispatch.h (abi_dispatch::requires_serial): New.
248 (abi_dispatch::abi_dispatch): Adapt.
249 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
250 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
251 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
252 serial_dispatch::serial_dispatch,
253 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
255 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
257 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
258 and ia32 declarations some more.
259 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
261 2012-09-20 Jakub Jelinek <jakub@redhat.com>
264 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
265 * configure: Regenerate.
266 * Makefile.in: Regenerate.
268 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
270 * configure: Regenerated.
272 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
274 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
276 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
278 * eh_cpp.cc: Fix __cxa_end_catch declaration.
280 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
282 * configure: Regenerated.
284 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
287 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
290 2012-04-03 Tristan Gingold <gingold@adacore.com>
292 * configure: Regenerate.
294 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
297 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
299 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
301 * testsuite/lib/libitm.exp: load fortran-modules.exp
303 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305 * configure.tgt (*-*-irix6*): Remove.
307 2012-03-13 Torvald Riegel <triegel@redhat.com>
310 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
313 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315 * configure.tgt (*-*-osf*): Remove.
316 * configure: Regenerate.
318 2012-03-05 Torvald Riegel <triegel@redhat.com>
320 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
321 memtransfer/memset if size isn't larger than zero.
323 2012-03-02 Torvald Riegel <triegel@redhat.com>
325 * libitm.texi: Link to specification and add a usage example.
327 2012-02-24 Torvald Riegel <triegel@redhat.com>
329 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
330 default dispatch for more than 1 thread to ml_wt.
332 2012-02-20 Torvald Riegel <triegel@redhat.com>
334 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
336 2012-02-20 Torvald Riegel <triegel@redhat.com>
338 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
340 2012-02-20 Torvald Riegel <triegel@redhat.com>
342 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
343 serial mode corner cases made obsolete by prior gtm_rwlock changes.
344 (gl_wt_dispatch.rollback): Same.
346 2012-02-20 Torvald Riegel <triegel@redhat.com>
348 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
350 2012-02-20 Torvald Riegel <triegel@redhat.com>
352 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
353 for RfW src. Optimize number of calls to gtm_thr.
355 2012-02-20 Torvald Riegel <triegel@redhat.com>
357 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
359 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
360 (default_dispatch): Make atomic.
361 (GTM::gtm_thread::set_default_dispatch): Access atomically.
362 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
363 use decide_begin_dispatch() if default_dispatch might have changed.
364 (GTM::gtm_thread::number_of_threads_changed): Initialize
365 default_dispatch here.
367 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
368 Patrick Marlier <patrick.marlier@gmail.com>
371 * alloc_cpp.cc: No dummy definitions for darwin.
372 * eh_cpp.cc: Likewise.
374 2012-02-14 Richard Henderson <rth@redhat.com>
376 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
378 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
380 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
382 2012-02-14 Torvald Riegel <triegel@redhat.com>
384 * libitm_i.h (GTM::gtm_rwlog_entry): New.
385 (GTM::gtm_thread): Add read and write logs.
386 (GTM::dispatch_ml_wt): Declare.
387 * retry.cc (parse_default_method): Support ml_wt.
388 * method-ml.cc: New file.
389 * Makefile.am: Add method-ml.cc.
390 * Makefile.in: Regenerate.
392 2012-02-14 Torvald Riegel <triegel@redhat.com>
394 * dispatch.h (GTM::abi_dispatch::supports): New.
395 (GTM::method_group::reinit): New.
396 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
397 (GTM::gtm_thread::number_of_threads_changed): Check that the method
398 supports the current situation.
400 2012-02-14 Torvald Riegel <triegel@redhat.com>
402 * util.cc (GTM::xcalloc): New.
403 * common.h (GTM::xcalloc): Declare.
405 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
407 * config/sparc/target.h (cpu_relax): Read from CC register.
408 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
410 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
412 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
414 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
416 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
417 * config/sparc/cacheline.h: New file.
418 * config/sparc/target.h: Likewise.
419 * config/sparc/sjlj.S: Likewise.
420 * config/linux/sparc/futex_bits.h: Likewise.
422 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
424 * configure.ac (link_itm): Fix comment.
425 * configure: Regenerate.
426 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
428 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
432 Correct libgomp references.
434 2012-01-24 Torvald Riegel <triegel@redhat.com>
436 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
439 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
441 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
443 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
444 offset values. Do not copy return address. Decrement stack
446 (GTM_longjump) [__x86_64__]: Update offset values.
448 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
451 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
452 the first function argument to %eax.
454 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456 * libitm.h (_ITM_getThreadnum): Remove.
457 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
459 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461 * clearcap.map: New file.
462 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
463 * configure.ac: Call it.
464 Clear HWCAP_LDFLAGS if defaulting to -mavx.
465 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
466 * configure: Regenerate.
467 * Makefile.in: Regenerate.
468 * testsuite/Makefile.in: Regenerate.
470 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
473 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
474 include, exclude options.
476 2012-01-14 Torvald Riegel <triegel@redhat.com>
478 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
480 * containers.h (GTM::vector::set_size): New.
482 2012-01-14 Torvald Riegel <triegel@redhat.com>
485 * config/generic/tls.h (GTM::mask_stack_top): New.
486 (GTM::mask_stack_bottom): Declare.
487 * config/generic/tls.c (GTM::mask_stack_bottom): New.
488 * local.cc (gtm_undolog::rollback): Filter out any updates that
489 overlap the libitm stack. Add current transaction as parameter.
490 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
491 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
492 * testsuite/libitm.c/stackundo.c: New test.
494 2012-01-10 Richard Henderson <rth@redhat.com>
496 * libitm_i.h (_Unwind_DeleteException): Declare weak.
497 * eh_cpp.cc (_Unwind_DeleteException): Define for
498 !HAVE_ELF_STYLE_WEAKREF.
500 2012-01-08 Torvald Riegel <triegel@redhat.com>
502 * local.cc (GTM_LB): Use GTM::gtm_undolog.
503 (GTM::gtm_thread::drop_references_undolog): Remove.
504 (GTM::gtm_thread::commit_undolog,
505 GTM::gtm_thread::rollback_undolog): Move to ...
506 * libitm_i.h (GTM::gtm_undolog): ...here. New.
507 (GTM::gtm_undolog_entry): Remove.
508 (GTM::gtm_thread): Adapt.
509 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
510 (GTM::gtm_thread::trycommit): Adapt.
511 * method-serial.cc (serial_dispatch::log): Adapt.
512 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
513 (gl_wt_dispatch::store): Fix likely/unlikely.
514 * containers.h (GTM::vector::resize): Add additional_capacity
515 parameter and handle it.
516 (GTM::vector::resize_noinline): New/adapt.
517 (GTM::vector::push): New.
519 2012-01-06 Richard Henderson <rth@redhat.com>
521 * configure.tgt: Support powerpc-linux and powerpc-darwin.
522 * config/linux/powerpc/futex_bits.h: New file.
523 * config/powerpc/cacheline.h: New file.
524 * config/powerpc/sjlj.S: New file.
525 * config/powerpc/target.h: New file.
526 * config/generic/asmcfi.h (cfi_offset): New.
527 (cfi_restore, cfi_undefined): New.
529 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
532 * testsuite/libitm.c/reentrant.c: Remove xfail.
533 (thread): Pass x to pure().
534 From Patrik Marlier <patrick.marlier@gmail.com>.
536 2011-12-24 Torvald Riegel <triegel@redhat.com>
538 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
539 privatization safety if already in serial mode.
541 2011-12-24 Torvald Riegel <triegel@redhat.com>
543 * beginend.cc (GTM::gtm_thread::restart): Add and handle
544 finish_serial_upgrade parameter.
545 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
546 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
547 Don't unset reader flag.
548 (GTM::gtm_rwlock::write_upgrade_finish): New.
549 * config/posix/rwlock.cc: Same.
550 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
552 * config/posix/rwlock.h: Same.
553 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
554 flag after commit or after rollback when restarting.
556 2011-12-24 Torvald Riegel <triegel@redhat.com>
558 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
559 (GTM::gtm_thread::try_commit): Changed memory order.
560 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
562 * config/linux/x86/futex_bits.h (sys_futex0): Same.
563 * config/linux/sh/futex_bits.h (sys_futex0): Same.
564 * config/linux/futex_bits.h (sys_futex0): Same.
565 * config/linux/futex.cc (futex_wait, futex_wake): Same.
566 * config/linux/futex.h (futex_wait, futex_wake): Same.
567 * config/linux/rwlock.h (gtm_rwlock::writers,
568 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
570 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
571 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
572 gtm_rwlock::write_unlock): Fix memory orders and fences.
573 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
574 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
575 gtm_rwlock::write_unlock): Same.
576 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
577 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
578 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
580 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
581 gl_wt_dispatch::load, gl_wt_dispatch::store,
582 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
583 orders and fences. Add comments.
585 2011-12-21 Jakub Jelinek <jakub@redhat.com>
587 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
588 * Makefile.in: Regenerated.
590 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
592 * configure.tgt: Add sh* case.
593 * config/sh/target.h: New file.
594 * config/sh/sjlj.S: New file.
595 * config/linux/sh/futex_bits.h: New file.
597 2011-12-14 Richard Henderson <rth@redhat.com>
599 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
600 * config/arm/sjlj.S, config/arm/target.h: New files.
601 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
602 (cfi_rel_offset): New.
603 * config/linux/futex_bits.h: New file.
604 * config/linux/futex.cc: Include futex_bits.h here...
605 * config/linux/futex.h: ... not here.
606 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
607 * configure.ac (ARCH_AM): New conditional.
608 * Makefile.in, configure: Rebuild.
609 * configure.tgt: Handle ARM.
611 2011-12-13 Richard Henderson <rth@redhat.com>
613 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
614 signed/unsigned comparison werror.
616 * local_atomic: New file.
617 * libitm_i.h: Include it.
618 (gtm_thread::shared_state): Use atomic template.
619 * beginend.cc (GTM::gtm_clock): Use atomic template.
620 (global_tid): Use atomic template if 64-bit atomics available.
621 (gtm_thread::gtm_thread): Update shared_state access.
622 (gtm_thread::trycommit): Likewise.
623 (choose_code_path): Update global_tid access.
624 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
625 * stmlock.h (GTM::gtm_clock): Use atomic template.
626 (gtm_get_clock, gtm_inc_clock): Update accesses.
627 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
628 redundant __sync_synchronize after atomic shared_state access.
629 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
630 (gtm_rwlock::write_lock_generic): Likewise.
631 (gtm_rwlock::read_unlock): Likewise.
632 * config/alpha/target.h (atomic_read_barrier): Remove.
633 (atomic_write_barrier): Remove.
634 * config/x86/target.h (atomic_read_barrier): Remove.
635 (atomic_write_barrier): Remove.
637 2011-11-30 Richard Henderson <rth@redhat.com>
639 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
640 * beginend.c (_ITM_abortTransaction): Update to match.
641 (GTM::gtm_thread::restart): Likewise.
642 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
643 * config/x86/sjlj.S (GTM_longjmp): Likewise.
645 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
647 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
648 * Makefile.in: Regenerate.
650 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
652 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
653 * alloc_cpp.cc: Generate dummy functions if we don't
654 HAVE_ELF_STYLE_WEAKREF.
655 * eh_cpp.cc: Likewise.
656 * configure: Regenerate.
657 * aclocal.m4: Likewise.
658 * config.h.in: Likewise.
659 * Makefile.in: Likewise.
660 * testsuite/Makefile.in: Likewise.
662 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
664 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
665 __USER_LABEL_PREFIX__ for targets that use it.
666 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
667 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
668 in portability to non-elf targets.
669 (GTM_longjmp): Likewise.
670 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
673 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
675 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
676 * testsuite/libitm.c/memset-1.c: Likewise.
678 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
680 * configure: Regenerate.
682 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
685 (LIBITM_ENABLE_SYMVERS): Handle sun style.
686 * Makefile.am: Handle sun style versioning.
687 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
688 * configure: Regenerate.
689 * Makefile.in: Regenerate.
691 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693 * config/generic/asmcfi.h: Fix comment.
694 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
695 sequence without .hidden support, error for non-ELF targets.
696 (GTM_longjmp) [__ELF__]: Only use .hidden if
697 HAVE_ATTRIBUTE_VISIBILITY.
699 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
701 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
702 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
704 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
705 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
707 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
710 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
711 * configure: Regenerate.
713 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
715 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
717 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
719 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
721 (.note.GNU-stack): Only use if __linux__.
722 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
723 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
724 * testsuite/libitm.c/reentrant.c: Likewise.
725 * testsuite/libitm.c/simple-2.c: Likewise.
726 * testsuite/libitm.c/txrelease.c: Likewise.
727 * testsuite/libitm.c++/static_ctor.C: Likewise.
729 2011-11-10 Richard Henderson <rth@redhat.com>
731 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
732 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
733 * configure.ac (ARCH_X86_AVX): New conditional.
734 * Makefile.in, configure: Rebuild.
736 2011-11-09 Richard Henderson <rth@redhat.com>
738 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
739 * configure.ac: Use it.
740 * config.h.in, configure: Rebuild.
741 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
743 2011-11-09 Richard Henderson <rth@redhat.com>
745 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
746 * config/alpha/unaligned.h: Remove file.
747 * config/generic/unaligned.h: Remove file.
748 * config/x86/unaligned.h: Remove file.
749 * config/generic/cachepage.h: Remove file.
750 * config/posix/cachepage.cc: Remove file.
751 * config/generic/cacheline.cc: Remove file.
752 * config/x86/cacheline.cc: Remove file.
753 * config/generic/cacheline.h (gtm_cacheline): Remove the
754 store_mask, copy_mask, copy_mask_wb methods.
755 * config/x86/cacheline.h: Likewise.
756 * config/alpha/cacheline.h: Fall back to generic after setting size.
757 * config/generic/tls.cc (gtm_mask_stack): Remove.
758 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
759 (GTM_vpalignr_table): Remove.
760 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
761 (GTM_pshift_table): Remove.
762 * config/libitm_i.h: Don't include cachepage.h.
763 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
764 * Makefile.in, testsuite/Makefile.in: Rebuild.
766 2011-11-09 Richard Henderson <rth@redhat.com>
768 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
769 to emit branch prediction hint.
771 * config/x86/sjlj.S: Protect elf directives with __ELF__.
772 Protect .note.GNU-stack with __linux__.
774 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
775 * configure, aclocal.m4, config.h.in: Rebuild.
776 * config/generic/asmcfi.h: New file.
777 * config/x86/sjlj.S: Use it.
779 2011-11-08 Richard Henderson <rth@redhat.com>
781 * local.cc (_ITM_LB): Use a normal call, not a function alias.
783 2011-11-08 Richard Henderson <rth@redhat.com>
785 * configure.tgt: Test correct directory for supported cpus.
787 * configure.ac: Exit if unsupported.
788 * configure: Rebuild.
789 * configure.tgt: Delete boilerplate from libgomp for unsupported
790 targets. Set UNSUPPORTED for unsupported targets.
792 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
794 * configure.tgt: Handle i386 like i[456]86.
795 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
797 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
798 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
800 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
802 * method-wbetl.cc: Update copyright notice.
809 * useraction.cc: Same.
813 * config/generic/tls.cc: Same.
814 * config/generic/cacheline.h: Same.
815 * config/generic/cachepage.h: Same.
816 * config/generic/cacheline.cc: Same.
817 * config/generic/unaligned.h: Same.
818 * config/x86/cacheline.h: Same.
819 * config/x86/cacheline.cc: Same.
820 * config/x86/unaligned.h: Same.
821 * config/alpha/cacheline.h: Same.
822 * config/alpha/unaligned.h: Same.
823 * config/alpha/sjlj.S: Same.
824 * config/posix/cachepage.cc: Same.
825 * config/linux/futex.h: Same.
826 * config/linux/alpha/futex_bits.h: Same.
828 2011-11-04 Torvald Riegel <triegel@redhat.com>
830 * libitm.texi: No cover text and invariant sections.
832 2011-11-03 Richard Henderson <rth@redhat.com>
834 * local_type_traits: New file.
835 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
837 2011-11-03 Richard Henderson <rth@redhat.com>
839 * configure.ac: Don't test for gfortran.
840 * configure: Rebuild.
842 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
843 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
845 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
847 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
848 * testsuite/libitm.c/memset-1.c: Same.
849 * testsuite/libitm.c/c.exp: Same.
850 * testsuite/lib/libitm-dg.exp: Same.
851 * testsuite/lib/libitm.exp: Same.
852 * testsuite/libitm.c++/c++.exp: Same.
854 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
856 * testsuite/config/default.exp: Update copyright date.
857 * configure.ac: Add copyright info.
858 * configure.tgt: Same.
860 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
862 * testsuite/libitm.c/reentrant.c: XFAIL.
863 * testsuite/libitm.c++/static_ctor.C: XFAIL.
865 2011-10-29 Torvald Riegel <triegel@redhat.com>
867 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
869 (_ITM_abortTransaction): Handle aborts of outer transactions.
871 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
872 * libitm.texi: Document aborts of outer transactions.
873 * testsuite/libitm.c/cancel.c: New file.
875 2011-10-19 Torvald Riegel <triegel@redhat.com>
877 * testsuite/*: Change __transaction to __transaction_atomic or
878 __transaction_relaxed.
880 2011-10-19 Torvald Riegel <triegel@redhat.com>
882 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
885 2011-10-19 Torvald Riegel <triegel@redhat.com>
887 * libitm_i.h: Add gl_wt dispatch.
888 * retry.cc (parse_default_method): Same.
889 * method-gl.cc: New file.
890 * Makefile.am: Use method-gl.cc.
891 * Makefile.in: Rebuild.
893 2011-10-19 Torvald Riegel <triegel@redhat.com>
895 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
896 safety if requested by a TM method.
897 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
898 privatization safety.
899 * method-serial.cc: Same.
901 2011-10-19 Torvald Riegel <triegel@redhat.com>
903 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
904 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
905 undolog-related member functions from *_local to *_undolog.
906 * local.cc (gtm_thread::commit_undolog): Same.
907 * beginend.cc (GTM::gtm_thread::trycommit): Same.
908 (GTM::gtm_thread::rollback): Roll back undolog before
909 dispatch-specific rollback.
911 2011-10-19 Torvald Riegel <triegel@redhat.com>
913 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
914 re-initialization of the current method group.
915 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
917 2011-10-19 Torvald Riegel <triegel@redhat.com>
919 * alloc.cc (commit_allocations_2): Do not free transaction-local
920 memory when committing a nested transaction.
922 2011-10-19 Torvald Riegel <triegel@redhat.com>
924 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
925 serial-irrevocable dispatch, not serial.
927 2011-10-19 Torvald Riegel <triegel@redhat.com>
929 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
931 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
932 * method-serial.cc: Implement begin_or_restart().
933 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
934 dispatch-specific begin_or_restart().
935 (GTM::gtm_thread::restart): Same.
937 2011-08-23 Torvald Riegel <triegel@redhat.com>
939 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
940 restarting without switching to serial mode.
941 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
942 transaction state. Choose closed-nesting alternative if available.
943 (GTM::gtm_thread::set_default_dispatch): New.
944 (parse_default_method): New.
945 (GTM::gtm_thread::number_of_threads_changed): New.
946 * method-serial.cc (GTM::serial_mg): New method group class.
947 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
949 (GTM::serial_dispatch): Same.
950 (GTM::serialirr_onwrite_dispatch): Same.
951 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
952 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
954 (GTM::gtm_thread::gtm_thread): Same.
955 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
956 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
957 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
958 choose dispatch but set state according to dispatch here.
959 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
960 (GTM::method_group): New class.
961 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
962 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
963 * libitm.texi: Document TM methods, method groups, method life cycle.
964 Rename method sets to method groups.
966 2011-08-23 Torvald Riegel <triegel@redhat.com>
968 * config/x86/tls.h: Moved to ...
969 * config/linux/x86/tls.h: ... here.
971 2011-08-23 Torvald Riegel <triegel@redhat.com>
973 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
975 * config/x86/sjlj.S: Same.
977 2011-08-19 Torvald Riegel <triegel@redhat.com>
979 * config/linux/rwlock.h: New file.
980 * config/linux/rwlock.c: New file.
981 * configure.ac: Reenable futex support (undo SVN rev 157758).
983 * configure.tgt: Same.
984 * config/linux/alpha/futex_bits.h: Same.
985 * config/linux/futex.h: Same. Return number of woken processes.
986 * config/linux/futex.cc: Same.
987 (futex_wait): Remove spinning.
988 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
989 Use __x86_64__ instead of __LP64__.
990 * aclocal.m4: Include generic futex checks.
991 * configure: Rebuild.
992 * Makefile.in: Rebuild.
993 * testsuite/Makefile.in: Rebuild.
994 * beginend.cc: Include pthread.h.
995 * config/posix/cachepage.cc: Same.
997 2011-08-12 Torvald Riegel <triegel@redhat.com>
999 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1000 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1002 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1004 (GTM::gtm_thread::thread_num): Removed.
1005 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1006 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1007 tx-to-thread renaming.
1008 * beginend.cc: Adapted to tx-to-thread renaming.
1009 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1010 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1011 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1012 gtm_transaction to gtm_thread.
1013 (_ITM_getThreadnum): Removed. Not supported anymore.
1014 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1015 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1016 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1017 gtm_tx-to-gtm_thr renaming if necessary.
1024 * alloc_cpp.cc: Same.
1025 * method-serial.cc: Same.
1026 * config/generic/tls.cc: Same.
1027 * config/posix/rwlock.h (gtm_rwlock): Same.
1028 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1030 2011-08-12 Torvald Riegel <triegel@redhat.com>
1032 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1034 (gtm_rwlock::read_unlock): Same.
1035 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1036 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1037 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1038 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1039 w_upgrade. Replaced by per-transaction flags (in shared_state).
1040 Added c_confirmed_writers.
1041 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1042 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1043 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1044 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1045 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1046 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1047 * libitm.texi: Document locking conventions and implementations in
1050 2011-08-12 Torvald Riegel <triegel@redhat.com>
1052 * libitm_i.h (next_tx): Add list of all threads' transaction.
1053 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1054 transaction with list of transactions and ...
1055 (thread_exit_handler): ... deregister here.
1056 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1057 * config/x86/target.h: Same.
1059 2011-08-12 Torvald Riegel <triegel@redhat.com>
1061 * testsuite/libitm.c++/static_ctor.C: New file.
1063 2011-08-12 Torvald Riegel <triegel@redhat.com>
1065 * testsuite/libitm.c/reentrant.c: New file.
1067 2011-08-12 Torvald Riegel <triegel@redhat.com>
1069 * config/generic/tls.h: Remove the free list for transactions and ...
1070 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1071 (GTM::gtm_transaction::operator delete): ... and release here.
1072 (thread_exit_handler): New. Delete tx when thread terminates.
1073 (thread_exit_init): New.
1074 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1075 * testsuite/libitm.c/txrelease.c: New file.
1077 2011-08-12 Torvald Riegel <triegel@redhat.com>
1079 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1080 * testsuite/libitm.c/notx.c: New file.
1082 2011-08-12 Torvald Riegel <triegel@redhat.com>
1084 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1085 * libitm_i.h (local_tid): ... to here.
1086 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1087 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1089 2011-08-12 Torvald Riegel <triegel@redhat.com>
1091 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1092 serialirr_onwrite_dispatch as new default for now.
1093 * method-serial.cc (serialirr_onwrite_dispatch): New.
1094 (GTM::dispatch_serialirr_onwrite): New.
1097 2011-08-12 Torvald Riegel <triegel@redhat.com>
1099 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1100 * query.cc (_ITM_getTransactionId): There is no active transaction if
1101 the current nesting level is zero.
1103 2011-07-28 Torvald Riegel <triegel@redhat.com>
1105 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1108 2011-07-28 Torvald Riegel <triegel@redhat.com>
1110 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1111 transaction properties from the caller instead of from the
1114 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1116 2011-07-28 Torvald Riegel <triegel@redhat.com>
1118 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1119 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1121 * method-serial.cc: Same.
1122 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1123 flat nesting as default, and closed nesting on demand.
1124 (GTM::gtm_transaction::rollback): Same.
1125 (_ITM_abortTransaction): Same.
1126 (GTM::gtm_transaction::restart): Same.
1127 (GTM::gtm_transaction::trycommit): Same.
1128 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1129 (choose_code_path): New.
1130 (GTM::gtm_transaction_cp::save): New.
1131 (GTM::gtm_transaction_cp::commit): New.
1132 * query.cc (_ITM_inTransaction): Support flat nesting.
1133 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1134 (GTM::gtm_transaction): Support flat and closed nesting.
1135 * alloc.cc (commit_allocations_2): New.
1136 (commit_cb_data): New helper struct.
1137 (GTM::gtm_transaction::commit_allocations): Handle nested
1139 * libitm.texi: Update user action section, add description of nesting.
1141 2011-07-28 Torvald Riegel <triegel@redhat.com>
1143 * libitm_i.h: Add closed nesting as restart reason.
1144 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1146 2011-07-28 Torvald Riegel <triegel@redhat.com>
1148 * useraction.cc: Use vector instead of list to store actions.
1149 Also support partial rollbacks for closed nesting.
1150 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1151 * beginend.cc: Same.
1153 2011-07-28 Torvald Riegel <triegel@redhat.com>
1155 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1156 closed_nesting flags, as well as a closed nesting alternative.
1157 * method-serial.cc: Same.
1158 (serial_dispatch): Renamed to serialirr_dispatch.
1159 (GTM::dispatch_serialirr): Same.
1160 (serial_dispatch_ul): Renamed to serial_dispatch.
1161 (GTM::dispatch_serial): Same.
1163 2011-07-28 Torvald Riegel <triegel@redhat.com>
1165 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1167 2011-07-28 Torvald Riegel <triegel@redhat.com>
1169 * aatree.h (aa_tree::remove): New.
1170 (aa_tree::operator new): Add placement new.
1172 2011-07-02 Torvald Riegel <triegel@redhat.com>
1174 * containers.h: New file.
1175 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1176 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1177 * common.h: ... to here.
1178 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1181 2011-06-30 Torvald Riegel <triegel@redhat.com>
1183 * libitm_i.h (STATE_ABORTING): Remove.
1184 * beginend.cc (_ITM_abortTransaction): Same.
1185 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1186 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1187 (_ITM_rollbackTransaction): Remove.
1188 * beginend.cc: Same.
1190 * libitm.texi: Document these ABI changes.
1192 2011-06-30 Torvald Riegel <triegel@redhat.com>
1194 * libitm.texi: New file.
1195 * Makefile.am: Add libitm.texi.
1196 * Makefile.in: Rebuild.
1198 2011-06-30 Torvald Riegel <triegel@redhat.com>
1200 * libitm_i.h: Move parts to common.h and dispatch.h.
1201 * common.h: New file.
1202 * dispatch.h: New file, new dispatch class.
1203 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1204 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1205 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1206 decision to retry.cc.
1207 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1209 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1210 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1212 * barrier.cc: Use new barriers definitions.
1213 (abi_dispatch::memmove_overlap_check): New.
1214 * config/x86/x86_sse.cc: Same.
1215 * config/x86/x86_avx.cc: Same.
1216 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1218 * Makefile.in: Rebuild.
1219 * method-readonly.cc: Remove.
1220 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1221 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1223 2011-06-30 Torvald Riegel <triegel@redhat.com>
1225 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1226 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1227 * testsuite/libitm.c/dropref-2.c: Same.
1228 * testsuite/libitm.c/dropref.c: Same.
1230 2011-06-30 Torvald Riegel <triegel@redhat.com>
1232 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1233 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1234 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1236 * barrier.tpl: Same.
1238 * config/generic/tls.h: Same.
1239 * config/x86/tls.h: Same.
1243 * method-readonly.cc: Same.
1244 * method-serial.cc: Same.
1245 * method-wbetl.cc: Same.
1248 2011-03-03 Richard Henderson <rth@redhat.com>
1250 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1251 From Patrik Marlier <patrick.marlier@unine.ch>.
1253 2011-02-03 Richard Henderson <rth@redhat.com>
1255 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1256 * configure.ac: Use it.
1257 * configure, config.h.in: Rebuild.
1258 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1259 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1260 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1261 * libitm.map: Use wildcards to match size_t mangling.
1263 2010-12-14 Richard Henderson <rth@redhat.com>
1265 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1266 blocks of TIDs per thread.
1267 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1268 (setup_gtm_thr): Return the thread structure.
1269 * config/x86/tls.h (setup_gtm_thr): Likewise.
1271 2010-12-14 Richard Henderson <rth@redhat.com>
1273 * clone.cc (table_lock): Remove.
1274 (find_clone): Don't take it.
1275 (ExcludeTransaction): New helper class.
1276 (_ITM_registerTMCloneTable): Use it.
1277 (_ITM_deregisterTMCloneTable): Likewise.
1279 2010-12-14 Richard Henderson <rth@redhat.com>
1281 * config/x86/tls.h: New file.
1283 2010-07-15 Richard Henderson <rth@redhat.com>
1285 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1286 * Makefile.in: Rebuild.
1288 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1290 * method-wbetl.cc (trydropreference): Fix source line.
1292 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1294 * libitm.h: Add comment.
1295 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1297 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1299 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1300 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1301 available, use pthread mutexes.
1302 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1303 * config.h.in: Regenerate.
1304 * configure: Regenerate.
1306 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1308 * libitm.h (ITM_PURE): Define.
1309 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1311 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1313 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1314 (validate): Add comment.
1315 (trydropreference): New.
1316 * method-readonly.cc (class readonly_dispatch): Add
1318 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1319 Call trydropreference().
1320 * libitm.h (_ITM_dropReferences): Remove const attribute.
1321 * method-serial.cc (class serial_dispatch): Add trydropreference.
1322 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1324 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1326 * memcpy.cc (do_memcpy): Comment.
1328 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1330 * barrier.tpl: Add comments throughout.
1332 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1334 * method-wbetl.cc (struct w_entry): Add comments.
1338 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1340 * alloc_c.cc (_ITM_dropReferences): New.
1341 * libitm.map (_ITM_dropReferences): Add.
1342 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1343 * libitm_i.h (struct gtm_transaction): Declare
1344 drop_references_allocations and drop_references_local.
1345 * local.cc (rollback_local): Ignore memory when applicable.
1346 (drop_references_local): New.
1348 2010-06-23 Richard Henderson <rth@redhat.com>
1350 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1351 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1352 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1353 * config/alpha/target.h: Likewise.
1354 * config/generic/tls.cc (gtm_mask_stack): Use it.
1356 2010-06-23 Richard Henderson <rth@redhat.com>
1358 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1359 a mutex instead of trying a lock-free compare-and-swap on the list.
1360 (gtm_cacheline_page::operator delete): Likewise.
1362 2010-06-16 Richard Henderson <rth@redhat.com>
1364 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1365 that overlap the libitm stack.
1366 * barrier.tpl: Mark incoming stack.
1367 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1368 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1369 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1370 * memcpy.cc, memset.cc: Likewise.
1371 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1372 * config/generic/tls.h (gtm_thread): Add stack_top member.
1373 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1374 * libitm_i.h (gtm_mask_stack): Declare.
1375 * config/generic/tls.cc: New file.
1376 * Makefile.am (libitm_la_SOURCES): Add it.
1377 (AM_CXXFLAGS): Turn off exceptions.
1378 * Makefile.in: Rebuild.
1380 2010-06-16 Richard Henderson <rth@redhat.com>
1382 * alloc.cc (struct gtm_alloc_action): Move definition ...
1383 * libitm_i.h: ... here.
1384 (class gtm_transaction): Declare new and delete.
1385 * beginend.cc (alloc_tx): Reformulate as operator new.
1386 (free_tx): Reformulate as operator delete.
1387 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1389 2010-06-11 Richard Henderson <rth@redhat.com>
1391 * clone.cc (clone_entry_compare): Fix typo.
1392 From Patrik Marlier <patrick.marlier@unine.ch>.
1394 2010-05-13 Richard Henderson <rth@redhat.com>
1396 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1399 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1401 * libitm_i.h (struct gtm_transaction): Remove
1402 get_allocation_size.
1403 (record_allocation): Remove size parameter.
1404 * libitm.map (_ITM_realloc): Remove.
1405 * alloc_c.cc (_ITM_realloc): Remove.
1406 (_ITM_malloc): Remove size argument to record_allocation.
1407 (_ITM_calloc): Same.
1408 * alloc_cpp.cc (_ZGTtnwm): Same.
1409 (_ZGTtnwmRKSt9nothrow_t): Same.
1411 (_ZGTtnamRKSt9nothrow_t): Same.
1412 * alloc.cc (struct gtm_alloc_action): Remove size.
1413 (get_allocation_size): Remove.
1414 (commit_allocations): Add comment.
1415 (record_allocation): Remove size parameter.
1416 (forget_allocation): Remove set of size.
1418 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1420 * Makefile.am (abi_version): New.
1421 (AM_CXXFLAGS): Pass abi_version.
1422 * Makefile.in: Regenerate.
1423 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1425 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1427 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1428 _ITM_getTMCloneOrIrrevokable.
1429 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1430 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1432 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1434 * configure.ac: Remove Linux futex support.
1435 * configure.tgt (config_path): Same.
1436 * Makefile.am: Same.
1437 * config/linux: Remove entire directory.
1438 * configure: Rebuild.
1439 * Makefile.in: Rebuild.
1440 * testsuite/Makefile.in: Rebuild.
1442 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1444 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1445 switching to serial mode.
1446 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1448 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1450 * configure.tgt: Add emacs -*- tags.
1451 * barrier.tpl: Same.
1453 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1455 * Makefile.am: Rename serial.cc to method-serial.cc.
1456 * Makefile.in: Regenerate with automake 1.11.1.
1457 * testsuite/Makefile.in: Same.
1458 * aclocal.m4: Regenerate with aclocal 1.11.1.
1459 * method-serial.cc: Rename from serial.cc.
1460 * libitm_i.h (struct gtm_transaction): Update comment on
1463 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1465 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1466 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1468 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1470 * configure: Rebuild.
1472 2009-11-12 Richard Henderson <rth@redhat.com>
1474 * Rewrite everything in C++.
1476 2009-11-03 Richard Henderson <rth@redhat.com>
1478 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1479 * Makefile.am (libitm_la_SOURCES): Add them.
1480 * configure.ac (ARCH_X86): New conditional.
1481 * Makefile.in, configure: Rebuild.
1482 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1483 Move futex setup into "other system configury" case.
1484 * local.c (rollback_local): Merge into ...
1485 (GTM_rollback_local): ... here.
1486 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1487 (_ITM_LB): Define as an alias to GTM_LB.
1489 2009-11-03 Richard Henderson <rth@redhat.com>
1491 * method-readonly.c: New file.
1492 * Makefile.am (libitm_la_SOURCES): Add it.
1493 * Makefile.in: Rebuild.
1494 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1495 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1496 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1497 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1498 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1499 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1500 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1501 gtm_get_clock, gtm_inc_clock): New.
1502 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1503 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1504 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1505 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1506 replace uses with new libitm_i.h symbols.
1507 (dispatch_wbetl): Rename from wbetl_dispatch.
1508 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1509 away from dispatch_readonly; abort if the beginTransaction call
1510 asserted that the transaction was readonly.
1512 2009-11-03 Richard Henderson <rth@redhat.com>
1514 * memset.c: New file.
1515 * Makefile.am (libitm_la_SOURCES): Add it.
1516 * Makefile.in: Rebuild.
1517 * testsuite/libitm.c/memset-1.c: New.
1519 2009-11-03 Richard Henderson <rth@redhat.com>
1521 * dispatch.c: Remove file.
1522 * useraction.c (struct gtm_user_action): Move from libitm.h.
1523 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1524 (serial_memset, serial_memmove, serial_memcpy): Remove.
1525 (serial_W*, serial_R*): Remove.
1526 (serial_dispatch): Update to match.
1527 * configure.ac: Move Werror down below configure checks. Don't
1528 check for sys/loadavg.h, do check for malloc.h. Don't check for
1529 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1530 Use GCC_AC_FUNC_MMAP_BLACKLIST
1531 * libitm.h: Split out all internal items to...
1532 * libitm_i.h: ... here. New file.
1533 * copymask.c: New file.
1534 * local.c (struct gtm_local_undo): Move from libitm.h.
1535 (GTM_alloc_local): Rename from alloc_local; export.
1536 * memcpy.c: New file.
1537 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1538 * config/posix/page.c: New file.
1539 * config/posix/target_tls.h: Remove file.
1540 * barrier.c: New file.
1541 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1543 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1544 * method-wbetl.c: Rewrite for new cacheline methods.
1545 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1547 * config/alpha/sjlj.S: Fix typo.
1548 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1549 * config/alpha/copymask.c: New file.
1550 * config/alpha/target.h (CACHELINE_SIZE): New.
1551 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1553 * config/x86/target_i.h: Copy functions from x86/target.h.
1554 * config/x86/copymask.c: New file.
1555 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1556 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1557 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1558 * config/x86/target_tls.h: Move contents to target_i.h.
1560 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1561 * testsuite/libitm.c/memcpy-1.c: New.
1563 2009-10-22 Richard Henderson <rth@redhat.com>
1565 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1566 (AM_CCASFLAGS): New.
1567 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1568 saving/restoring _AC_ARG_VAR_PRECIOUS.
1569 * Makefile.in, aclocal.m4, config.h.in, configure,
1570 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1572 2009-10-22 Richard Henderson <rth@redhat.com>
1574 * testsuite/*: Update for new compiler syntax.
1576 2009-10-21 Richard Henderson <rth@redhat.com>
1578 * libitm.h (_ITM_abortReason): Add outerAbort.
1580 2009-08-03 Richard Henderson <rth@redhat.com>
1582 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1583 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1584 * method-wbetl.c (struct w_entry): Remove mask.
1585 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1588 2009-07-22 Richard Henderson <rth@redhat.com>
1590 * eh_cpp.c: New file.
1591 * Makefile.am (libitm_la_SOURCES): Add it.
1592 * Makefile.in: Rebuild.
1593 * beginend.c (GTM_rollback_transaction): Undo exception state.
1594 (GTM_trycommit_transaction): Mark inline.
1595 (GTM_trycommit_and_finalize_transaction): Split out from ...
1596 (_ITM_commitTransaction): ... here.
1597 (_ITM_commitTransactionEH): New function.
1598 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1599 cxa_unthrown, eh_in_flight; reorder.
1601 * testsuite/libitm.c++/c++.exp: New.
1602 * testsuite/libitm.c++/eh-1.C: New.
1604 * aatree.c (aa_free): Remove REGPARM.
1605 * aatree.h: Remove all REGPARM.
1607 2009-07-18 Richard Henderson <rth@redhat.com>
1609 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1610 * Makefile.am (libitm_la_SOURCES): Add them.
1611 * Makefile.in: Rebuild.
1612 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1613 (GTM_trycommit_transaction): Likewise.
1614 * libitm.h: Include aatree.h
1615 (struct gtm_alloc_action): New.
1616 (struct gtm_transaction): Add alloc_actions.
1617 (GTM_record_allocation, GTM_forget_allocation): Declare.
1618 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1619 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1620 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1621 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1622 _ZGTtdaPvRKSt9nothrow_t): Export.
1624 2009-07-18 Richard Henderson <rth@redhat.com>
1626 * target_tls.h: Move ...
1627 * config/posix/target_tls.h: ... here.
1629 2009-07-07 Richard Henderson <rth@redhat.com>
1631 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1633 2009-07-07 Richard Henderson <rth@redhat.com>
1637 2009-07-07 Richard Henderson <rth@redhat.com>
1639 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1640 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1642 * configure.tgt: Don't use -ftls-model for x86 linux.
1643 * libitm.h: Include target.h after standard includes.
1644 (_gtm_thr): Rename from gtm_thr.
1645 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1646 (gtm_disp, set_gtm_disp): New.
1647 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1648 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1649 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1651 2009-07-07 Richard Henderson <rth@redhat.com>
1653 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1655 2009-07-06 Richard Henderson <rth@redhat.com>
1657 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1658 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1659 (_ITM_beginTransaction): Take variadic arguments.
1660 (_ITM_registerThrownObject): Declare.
1661 * beginend.c, serial.c: Update.
1662 * libitm.map: Add _ITM_registerThrownObject.
1664 2009-01-28 Richard Henderson <rth@redhat.com>
1666 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1667 * Makefile.in: Rebuild.
1668 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1669 (GTM_restart_transaction): Fix uninstrumented code check.
1670 * retry.c (GTM_decide_retry_strategy): Add serial check.
1671 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1672 automatically go irrevokable when in serial mode.
1673 * clone.c: New file.
1674 * libitm.h, libitm.map: Update.
1676 2009-01-27 Richard Henderson <rth@redhat.com>
1678 * Makefile.am (LTCCASCOMPILE): Define.
1679 (libitm_la_SOURCES): Add methid-wbetl.c.
1680 * testsuite/Makefile.am: New
1681 * configure.ac: Add testsuite/Makefile.
1682 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1683 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1684 (_ITM_abortTransaction): Finalize implementation method; pass
1685 transaction properties to longjmp.
1686 (GTM_restart_transaction): Split out from ...
1687 (_ITM_commitTransaction): ... here.
1688 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1689 Move to config/x86/target.h.
1690 * config/linux/alpha/futex_bits.h: New.
1691 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1692 * config/x86/target.h: Disable target types for 32-bit.
1693 * config/alpha/sjlj.S, config/alpha/target.h: New.
1694 * libitm.h (struct gtm_dispatch): Add init, fini.
1695 (enum restart_reason): New.
1696 (struct gtm_transaction): Add method and restarts.
1697 * retry.c (GTM_decide_retry_strategy): Implement.
1698 * serial.c (serial_init, serial_fini): New.
1699 (GTM_serialmode): Finialize outgoing method.
1700 * method-wbetl.c: New.
1702 2008-12-09 Richard Henderson <rth@redhat.com>
1704 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1705 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1706 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1707 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1708 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1709 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1710 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1711 * serial.c (serial_R##T, serial_W##T): Likewise.
1713 2008-11-21 Richard Henderson <rth@redhat.com>