1 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * testsuite/lib/libitm.exp: Load target-utils.exp.
4 Move load of target-supports.exp earlier.
6 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8 * configure.tgt (x86_64): Tune -m32 multilib to generic.
10 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13 * configure: Regenerated.
15 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18 * configure: Regenerate.
20 2014-10-06 Marek Polacek <polacek@redhat.com>
22 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
23 * testsuite/libitm.c/memset-1.c: Likewise.
25 2014-07-24 Richard Henderson <rth@redhat.com>
27 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
28 addressing mode in epilogue.
30 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
33 -mclear-hwcap instead.
34 * configure: Regenerate.
35 * clearcap.map: Remove.
37 2014-05-21 John Marino <gnugcc@marino.st>
39 * configure.tgt (*-*-dragonfly*): New target.
41 2014-05-19 Richard Henderson <rth@redhat.com>
43 * config/aarch64/sjlj.S: New file.
44 * config/aarch64/target.h: New file.
45 * configure.tgt: Enable aarch64.
47 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
49 * config/generic/asmcfi.h: Also check for
50 __GCC_HAVE_DWARF2_CFI_ASM.
52 2013-04-02 Richard Henderson <rth@redhat.com>
54 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
55 * config/arm/target.h, config/sh/target.h: Likewise.
56 * config/sparc/target.h, config/x86/target.h: Likewise.
58 2014-03-26 Jakub Jelinek <jakub@redhat.com>
60 * config/linux/futex_bits.h: Include errno.h.
61 (sys_futex0): If syscall returns -1, return -errno rather than
64 2014-03-26 Joseph Myers <joseph@codesourcery.com>
66 * libitm.texi (Index): Rename to Library Index.
68 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
71 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
72 (x86_avx.lo): Append -mavx to CXXFLAGS.
73 * Makefile.in: Regenerate.
75 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
77 Update copyright years
79 2014-01-02 Tobias Burnus <burnus@net-b.de>
81 * libitm.texi: Bump @copying's copyright year.
83 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
85 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
86 (FUNC): Define ELFv2 variant.
93 2013-09-20 Alan Modra <amodra@gmail.com>
95 * configure: Regenerate.
97 2013-08-30 Torvald Riegel <triegel@redhat.com>
99 * config/posix/rwlock.cc: Fix initialization order.
101 2013-08-30 Torvald Riegel <triegel@redhat.com>
103 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
104 (htm_fastpath): Assign an asm name.
105 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
107 (_ITM_actions): Likewise.
108 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
110 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
111 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
112 field to the start of the structure.
113 * config/linux/rwlock.h (gtm_rwlock): Update comments.
114 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
115 handling for custom HTM fast paths.
117 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
119 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
121 * configure.tgt: Add -msoft-float to XCFLAGS.
123 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
125 * configure.tgt: Add -msoft-float to XCFLAGS.
127 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
129 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
130 (htm_transaction_active): Enable zEC12 instructions in the
132 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
134 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
136 * acinclude.m4: Add htm asm check for s390.
137 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
138 * configure: Regenerate.
139 * config/s390/target.h: Remove __HTM__ check.
140 (htm_available): Call getauxval to get hwcaps and check whether
141 HTM is available or not.
143 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
145 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
146 * configure.ac: Use it.
147 (AC_CHECK_HEADERS): Check for sys/auxv.h.
148 (AC_CHECK_FUNCS): Check for getauxval.
149 * config.h.in, configure: Rebuild.
150 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
151 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
152 (USE_HTM_FASTPATH): Define.
153 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
154 _HTM_RETRIES) New macros.
155 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
156 htm_begin_success, htm_commit, htm_transaction_active): New functions.
158 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
160 * config/s390/target.h: Include htmintrin.h.
161 (_HTM_ITM_RETRIES): New macro definition.
162 (htm_available, htm_init, htm_begin, htm_begin_success)
163 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
165 2013-06-20 Iain Sandoe <iain@codesourcery.com>
166 Cesar Philippidis <cesar@codesourcery.com>
168 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
169 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
170 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
171 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
173 2013-06-20 Torvald Riegel <triegel@redhat.com>
175 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
176 (_ITM_getTransactionId): Same.
177 * config/x86/target.h (htm_transaction_active): New.
179 2013-06-20 Torvald Riegel <triegel@redhat.com>
182 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
185 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
188 * local_atomic (__always_inline): Always define our version.
189 (__calculate_memory_order): Mark inline.
190 (atomic_thread_fence): Ditto.
191 (atomic_signal_fence): Ditto.
192 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
193 (atomic_bool::atomic_flag_clear_explicit): Ditto.
194 (atomic_bool::atomic_flag_test_and_set): Ditto.
195 (atomic_bool::atomic_flag_clear): Ditto.
197 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
199 * config/s390/sjlj.S: New file.
200 * config/s390/target.h: New file.
201 * configure.tgt: Set options for S/390.
203 2013-03-23 Andi Kleen <ak@linux.intel.com>
205 * local_atomic (__always_inline): Add.
206 (__calculate_memory_order, atomic_thread_fence,
207 atomic_signal_fence, test_and_set, clear, store, load,
208 exchange, compare_exchange_weak, compare_exchange_strong,
209 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
210 Add __always_inline to force inlining.
212 2013-02-11 Iain Sandoe <iain@codesourcery.com>
213 Jack Howarth <howarth@bromo.med.uc.edu>
214 Patrick Marlier <patrick.marlier@gmail.com>
217 * alloc_cpp.cc: Enable function declarations on darwin.
218 * eh_cpp.cc: Likewise.
220 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
222 Update copyright years.
224 2012-11-09 Torvald Riegel <triegel@redhat.com>
226 * beginend.cc (htm_fastpath): New.
227 (gtm_thread::begin_transaction, _ITM_commitTransaction,
228 _ITM_commitTransactionEH): Add HTM fastpath handling.
229 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
230 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
231 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
232 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
233 * configure.tgt: Add -mrtm to XCFLAGS.
234 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
235 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
236 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
237 * retry.cc (parse_default_method): Add HTM method parsing.
238 (gtm_thread::number_of_threads_changed): Use HTM by default if
241 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
243 * configure: Regenerate.
245 2012-10-31 Richard Henderson <rth@redhat.com>
247 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
248 * configure.ac: Use it.
249 * config.h.in, configure: Rebuild.
250 * testsuite/Makefile.in: Rebuild.
252 2012-10-24 Torvald Riegel <triegel@redhat.com>
254 * libitm.texi: Clarify ABI requirements for data-logging functions.
256 2012-10-24 Torvald Riegel <triegel@redhat.com>
258 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
259 it requires serial mode instead of assuming that for certain
261 * dispatch.h (abi_dispatch::requires_serial): New.
262 (abi_dispatch::abi_dispatch): Adapt.
263 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
264 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
265 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
266 serial_dispatch::serial_dispatch,
267 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
269 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
271 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
272 and ia32 declarations some more.
273 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
275 2012-09-20 Jakub Jelinek <jakub@redhat.com>
278 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
279 * configure: Regenerate.
280 * Makefile.in: Regenerate.
282 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
284 * configure: Regenerated.
286 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
288 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
290 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
292 * eh_cpp.cc: Fix __cxa_end_catch declaration.
294 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
296 * configure: Regenerated.
298 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
301 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
304 2012-04-03 Tristan Gingold <gingold@adacore.com>
306 * configure: Regenerate.
308 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
311 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
313 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
315 * testsuite/lib/libitm.exp: load fortran-modules.exp
317 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319 * configure.tgt (*-*-irix6*): Remove.
321 2012-03-13 Torvald Riegel <triegel@redhat.com>
324 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
327 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329 * configure.tgt (*-*-osf*): Remove.
330 * configure: Regenerate.
332 2012-03-05 Torvald Riegel <triegel@redhat.com>
334 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
335 memtransfer/memset if size isn't larger than zero.
337 2012-03-02 Torvald Riegel <triegel@redhat.com>
339 * libitm.texi: Link to specification and add a usage example.
341 2012-02-24 Torvald Riegel <triegel@redhat.com>
343 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
344 default dispatch for more than 1 thread to ml_wt.
346 2012-02-20 Torvald Riegel <triegel@redhat.com>
348 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
350 2012-02-20 Torvald Riegel <triegel@redhat.com>
352 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
354 2012-02-20 Torvald Riegel <triegel@redhat.com>
356 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
357 serial mode corner cases made obsolete by prior gtm_rwlock changes.
358 (gl_wt_dispatch.rollback): Same.
360 2012-02-20 Torvald Riegel <triegel@redhat.com>
362 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
364 2012-02-20 Torvald Riegel <triegel@redhat.com>
366 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
367 for RfW src. Optimize number of calls to gtm_thr.
369 2012-02-20 Torvald Riegel <triegel@redhat.com>
371 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
373 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
374 (default_dispatch): Make atomic.
375 (GTM::gtm_thread::set_default_dispatch): Access atomically.
376 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
377 use decide_begin_dispatch() if default_dispatch might have changed.
378 (GTM::gtm_thread::number_of_threads_changed): Initialize
379 default_dispatch here.
381 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
382 Patrick Marlier <patrick.marlier@gmail.com>
385 * alloc_cpp.cc: No dummy definitions for darwin.
386 * eh_cpp.cc: Likewise.
388 2012-02-14 Richard Henderson <rth@redhat.com>
390 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
392 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
394 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
396 2012-02-14 Torvald Riegel <triegel@redhat.com>
398 * libitm_i.h (GTM::gtm_rwlog_entry): New.
399 (GTM::gtm_thread): Add read and write logs.
400 (GTM::dispatch_ml_wt): Declare.
401 * retry.cc (parse_default_method): Support ml_wt.
402 * method-ml.cc: New file.
403 * Makefile.am: Add method-ml.cc.
404 * Makefile.in: Regenerate.
406 2012-02-14 Torvald Riegel <triegel@redhat.com>
408 * dispatch.h (GTM::abi_dispatch::supports): New.
409 (GTM::method_group::reinit): New.
410 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
411 (GTM::gtm_thread::number_of_threads_changed): Check that the method
412 supports the current situation.
414 2012-02-14 Torvald Riegel <triegel@redhat.com>
416 * util.cc (GTM::xcalloc): New.
417 * common.h (GTM::xcalloc): Declare.
419 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
421 * config/sparc/target.h (cpu_relax): Read from CC register.
422 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
424 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
426 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
428 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
430 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
431 * config/sparc/cacheline.h: New file.
432 * config/sparc/target.h: Likewise.
433 * config/sparc/sjlj.S: Likewise.
434 * config/linux/sparc/futex_bits.h: Likewise.
436 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
438 * configure.ac (link_itm): Fix comment.
439 * configure: Regenerate.
440 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
442 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
445 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
446 Correct libgomp references.
448 2012-01-24 Torvald Riegel <triegel@redhat.com>
450 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
453 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
455 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
457 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
458 offset values. Do not copy return address. Decrement stack
460 (GTM_longjump) [__x86_64__]: Update offset values.
462 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
465 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
466 the first function argument to %eax.
468 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
470 * libitm.h (_ITM_getThreadnum): Remove.
471 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
473 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
475 * clearcap.map: New file.
476 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
477 * configure.ac: Call it.
478 Clear HWCAP_LDFLAGS if defaulting to -mavx.
479 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
480 * configure: Regenerate.
481 * Makefile.in: Regenerate.
482 * testsuite/Makefile.in: Regenerate.
484 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
487 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
488 include, exclude options.
490 2012-01-14 Torvald Riegel <triegel@redhat.com>
492 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
494 * containers.h (GTM::vector::set_size): New.
496 2012-01-14 Torvald Riegel <triegel@redhat.com>
499 * config/generic/tls.h (GTM::mask_stack_top): New.
500 (GTM::mask_stack_bottom): Declare.
501 * config/generic/tls.c (GTM::mask_stack_bottom): New.
502 * local.cc (gtm_undolog::rollback): Filter out any updates that
503 overlap the libitm stack. Add current transaction as parameter.
504 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
505 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
506 * testsuite/libitm.c/stackundo.c: New test.
508 2012-01-10 Richard Henderson <rth@redhat.com>
510 * libitm_i.h (_Unwind_DeleteException): Declare weak.
511 * eh_cpp.cc (_Unwind_DeleteException): Define for
512 !HAVE_ELF_STYLE_WEAKREF.
514 2012-01-08 Torvald Riegel <triegel@redhat.com>
516 * local.cc (GTM_LB): Use GTM::gtm_undolog.
517 (GTM::gtm_thread::drop_references_undolog): Remove.
518 (GTM::gtm_thread::commit_undolog,
519 GTM::gtm_thread::rollback_undolog): Move to ...
520 * libitm_i.h (GTM::gtm_undolog): ...here. New.
521 (GTM::gtm_undolog_entry): Remove.
522 (GTM::gtm_thread): Adapt.
523 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
524 (GTM::gtm_thread::trycommit): Adapt.
525 * method-serial.cc (serial_dispatch::log): Adapt.
526 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
527 (gl_wt_dispatch::store): Fix likely/unlikely.
528 * containers.h (GTM::vector::resize): Add additional_capacity
529 parameter and handle it.
530 (GTM::vector::resize_noinline): New/adapt.
531 (GTM::vector::push): New.
533 2012-01-06 Richard Henderson <rth@redhat.com>
535 * configure.tgt: Support powerpc-linux and powerpc-darwin.
536 * config/linux/powerpc/futex_bits.h: New file.
537 * config/powerpc/cacheline.h: New file.
538 * config/powerpc/sjlj.S: New file.
539 * config/powerpc/target.h: New file.
540 * config/generic/asmcfi.h (cfi_offset): New.
541 (cfi_restore, cfi_undefined): New.
543 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
546 * testsuite/libitm.c/reentrant.c: Remove xfail.
547 (thread): Pass x to pure().
548 From Patrik Marlier <patrick.marlier@gmail.com>.
550 2011-12-24 Torvald Riegel <triegel@redhat.com>
552 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
553 privatization safety if already in serial mode.
555 2011-12-24 Torvald Riegel <triegel@redhat.com>
557 * beginend.cc (GTM::gtm_thread::restart): Add and handle
558 finish_serial_upgrade parameter.
559 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
560 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
561 Don't unset reader flag.
562 (GTM::gtm_rwlock::write_upgrade_finish): New.
563 * config/posix/rwlock.cc: Same.
564 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
566 * config/posix/rwlock.h: Same.
567 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
568 flag after commit or after rollback when restarting.
570 2011-12-24 Torvald Riegel <triegel@redhat.com>
572 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
573 (GTM::gtm_thread::try_commit): Changed memory order.
574 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
576 * config/linux/x86/futex_bits.h (sys_futex0): Same.
577 * config/linux/sh/futex_bits.h (sys_futex0): Same.
578 * config/linux/futex_bits.h (sys_futex0): Same.
579 * config/linux/futex.cc (futex_wait, futex_wake): Same.
580 * config/linux/futex.h (futex_wait, futex_wake): Same.
581 * config/linux/rwlock.h (gtm_rwlock::writers,
582 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
584 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
585 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
586 gtm_rwlock::write_unlock): Fix memory orders and fences.
587 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
588 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
589 gtm_rwlock::write_unlock): Same.
590 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
591 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
592 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
594 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
595 gl_wt_dispatch::load, gl_wt_dispatch::store,
596 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
597 orders and fences. Add comments.
599 2011-12-21 Jakub Jelinek <jakub@redhat.com>
601 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
602 * Makefile.in: Regenerated.
604 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
606 * configure.tgt: Add sh* case.
607 * config/sh/target.h: New file.
608 * config/sh/sjlj.S: New file.
609 * config/linux/sh/futex_bits.h: New file.
611 2011-12-14 Richard Henderson <rth@redhat.com>
613 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
614 * config/arm/sjlj.S, config/arm/target.h: New files.
615 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
616 (cfi_rel_offset): New.
617 * config/linux/futex_bits.h: New file.
618 * config/linux/futex.cc: Include futex_bits.h here...
619 * config/linux/futex.h: ... not here.
620 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
621 * configure.ac (ARCH_AM): New conditional.
622 * Makefile.in, configure: Rebuild.
623 * configure.tgt: Handle ARM.
625 2011-12-13 Richard Henderson <rth@redhat.com>
627 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
628 signed/unsigned comparison werror.
630 * local_atomic: New file.
631 * libitm_i.h: Include it.
632 (gtm_thread::shared_state): Use atomic template.
633 * beginend.cc (GTM::gtm_clock): Use atomic template.
634 (global_tid): Use atomic template if 64-bit atomics available.
635 (gtm_thread::gtm_thread): Update shared_state access.
636 (gtm_thread::trycommit): Likewise.
637 (choose_code_path): Update global_tid access.
638 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
639 * stmlock.h (GTM::gtm_clock): Use atomic template.
640 (gtm_get_clock, gtm_inc_clock): Update accesses.
641 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
642 redundant __sync_synchronize after atomic shared_state access.
643 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
644 (gtm_rwlock::write_lock_generic): Likewise.
645 (gtm_rwlock::read_unlock): Likewise.
646 * config/alpha/target.h (atomic_read_barrier): Remove.
647 (atomic_write_barrier): Remove.
648 * config/x86/target.h (atomic_read_barrier): Remove.
649 (atomic_write_barrier): Remove.
651 2011-11-30 Richard Henderson <rth@redhat.com>
653 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
654 * beginend.c (_ITM_abortTransaction): Update to match.
655 (GTM::gtm_thread::restart): Likewise.
656 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
657 * config/x86/sjlj.S (GTM_longjmp): Likewise.
659 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
661 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
662 * Makefile.in: Regenerate.
664 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
666 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
667 * alloc_cpp.cc: Generate dummy functions if we don't
668 HAVE_ELF_STYLE_WEAKREF.
669 * eh_cpp.cc: Likewise.
670 * configure: Regenerate.
671 * aclocal.m4: Likewise.
672 * config.h.in: Likewise.
673 * Makefile.in: Likewise.
674 * testsuite/Makefile.in: Likewise.
676 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
678 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
679 __USER_LABEL_PREFIX__ for targets that use it.
680 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
681 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
682 in portability to non-elf targets.
683 (GTM_longjmp): Likewise.
684 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
687 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
689 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
690 * testsuite/libitm.c/memset-1.c: Likewise.
692 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
694 * configure: Regenerate.
696 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
699 (LIBITM_ENABLE_SYMVERS): Handle sun style.
700 * Makefile.am: Handle sun style versioning.
701 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
702 * configure: Regenerate.
703 * Makefile.in: Regenerate.
705 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
707 * config/generic/asmcfi.h: Fix comment.
708 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
709 sequence without .hidden support, error for non-ELF targets.
710 (GTM_longjmp) [__ELF__]: Only use .hidden if
711 HAVE_ATTRIBUTE_VISIBILITY.
713 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
715 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
716 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
718 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
719 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
721 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
724 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
725 * configure: Regenerate.
727 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
729 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
731 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
735 (.note.GNU-stack): Only use if __linux__.
736 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
737 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
738 * testsuite/libitm.c/reentrant.c: Likewise.
739 * testsuite/libitm.c/simple-2.c: Likewise.
740 * testsuite/libitm.c/txrelease.c: Likewise.
741 * testsuite/libitm.c++/static_ctor.C: Likewise.
743 2011-11-10 Richard Henderson <rth@redhat.com>
745 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
746 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
747 * configure.ac (ARCH_X86_AVX): New conditional.
748 * Makefile.in, configure: Rebuild.
750 2011-11-09 Richard Henderson <rth@redhat.com>
752 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
753 * configure.ac: Use it.
754 * config.h.in, configure: Rebuild.
755 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
757 2011-11-09 Richard Henderson <rth@redhat.com>
759 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
760 * config/alpha/unaligned.h: Remove file.
761 * config/generic/unaligned.h: Remove file.
762 * config/x86/unaligned.h: Remove file.
763 * config/generic/cachepage.h: Remove file.
764 * config/posix/cachepage.cc: Remove file.
765 * config/generic/cacheline.cc: Remove file.
766 * config/x86/cacheline.cc: Remove file.
767 * config/generic/cacheline.h (gtm_cacheline): Remove the
768 store_mask, copy_mask, copy_mask_wb methods.
769 * config/x86/cacheline.h: Likewise.
770 * config/alpha/cacheline.h: Fall back to generic after setting size.
771 * config/generic/tls.cc (gtm_mask_stack): Remove.
772 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
773 (GTM_vpalignr_table): Remove.
774 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
775 (GTM_pshift_table): Remove.
776 * config/libitm_i.h: Don't include cachepage.h.
777 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
778 * Makefile.in, testsuite/Makefile.in: Rebuild.
780 2011-11-09 Richard Henderson <rth@redhat.com>
782 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
783 to emit branch prediction hint.
785 * config/x86/sjlj.S: Protect elf directives with __ELF__.
786 Protect .note.GNU-stack with __linux__.
788 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
789 * configure, aclocal.m4, config.h.in: Rebuild.
790 * config/generic/asmcfi.h: New file.
791 * config/x86/sjlj.S: Use it.
793 2011-11-08 Richard Henderson <rth@redhat.com>
795 * local.cc (_ITM_LB): Use a normal call, not a function alias.
797 2011-11-08 Richard Henderson <rth@redhat.com>
799 * configure.tgt: Test correct directory for supported cpus.
801 * configure.ac: Exit if unsupported.
802 * configure: Rebuild.
803 * configure.tgt: Delete boilerplate from libgomp for unsupported
804 targets. Set UNSUPPORTED for unsupported targets.
806 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
808 * configure.tgt: Handle i386 like i[456]86.
809 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
811 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
812 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
814 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
816 * method-wbetl.cc: Update copyright notice.
823 * useraction.cc: Same.
827 * config/generic/tls.cc: Same.
828 * config/generic/cacheline.h: Same.
829 * config/generic/cachepage.h: Same.
830 * config/generic/cacheline.cc: Same.
831 * config/generic/unaligned.h: Same.
832 * config/x86/cacheline.h: Same.
833 * config/x86/cacheline.cc: Same.
834 * config/x86/unaligned.h: Same.
835 * config/alpha/cacheline.h: Same.
836 * config/alpha/unaligned.h: Same.
837 * config/alpha/sjlj.S: Same.
838 * config/posix/cachepage.cc: Same.
839 * config/linux/futex.h: Same.
840 * config/linux/alpha/futex_bits.h: Same.
842 2011-11-04 Torvald Riegel <triegel@redhat.com>
844 * libitm.texi: No cover text and invariant sections.
846 2011-11-03 Richard Henderson <rth@redhat.com>
848 * local_type_traits: New file.
849 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
851 2011-11-03 Richard Henderson <rth@redhat.com>
853 * configure.ac: Don't test for gfortran.
854 * configure: Rebuild.
856 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
857 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
859 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
861 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
862 * testsuite/libitm.c/memset-1.c: Same.
863 * testsuite/libitm.c/c.exp: Same.
864 * testsuite/lib/libitm-dg.exp: Same.
865 * testsuite/lib/libitm.exp: Same.
866 * testsuite/libitm.c++/c++.exp: Same.
868 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
870 * testsuite/config/default.exp: Update copyright date.
871 * configure.ac: Add copyright info.
872 * configure.tgt: Same.
874 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
876 * testsuite/libitm.c/reentrant.c: XFAIL.
877 * testsuite/libitm.c++/static_ctor.C: XFAIL.
879 2011-10-29 Torvald Riegel <triegel@redhat.com>
881 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
883 (_ITM_abortTransaction): Handle aborts of outer transactions.
885 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
886 * libitm.texi: Document aborts of outer transactions.
887 * testsuite/libitm.c/cancel.c: New file.
889 2011-10-19 Torvald Riegel <triegel@redhat.com>
891 * testsuite/*: Change __transaction to __transaction_atomic or
892 __transaction_relaxed.
894 2011-10-19 Torvald Riegel <triegel@redhat.com>
896 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
899 2011-10-19 Torvald Riegel <triegel@redhat.com>
901 * libitm_i.h: Add gl_wt dispatch.
902 * retry.cc (parse_default_method): Same.
903 * method-gl.cc: New file.
904 * Makefile.am: Use method-gl.cc.
905 * Makefile.in: Rebuild.
907 2011-10-19 Torvald Riegel <triegel@redhat.com>
909 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
910 safety if requested by a TM method.
911 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
912 privatization safety.
913 * method-serial.cc: Same.
915 2011-10-19 Torvald Riegel <triegel@redhat.com>
917 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
918 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
919 undolog-related member functions from *_local to *_undolog.
920 * local.cc (gtm_thread::commit_undolog): Same.
921 * beginend.cc (GTM::gtm_thread::trycommit): Same.
922 (GTM::gtm_thread::rollback): Roll back undolog before
923 dispatch-specific rollback.
925 2011-10-19 Torvald Riegel <triegel@redhat.com>
927 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
928 re-initialization of the current method group.
929 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
931 2011-10-19 Torvald Riegel <triegel@redhat.com>
933 * alloc.cc (commit_allocations_2): Do not free transaction-local
934 memory when committing a nested transaction.
936 2011-10-19 Torvald Riegel <triegel@redhat.com>
938 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
939 serial-irrevocable dispatch, not serial.
941 2011-10-19 Torvald Riegel <triegel@redhat.com>
943 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
945 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
946 * method-serial.cc: Implement begin_or_restart().
947 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
948 dispatch-specific begin_or_restart().
949 (GTM::gtm_thread::restart): Same.
951 2011-08-23 Torvald Riegel <triegel@redhat.com>
953 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
954 restarting without switching to serial mode.
955 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
956 transaction state. Choose closed-nesting alternative if available.
957 (GTM::gtm_thread::set_default_dispatch): New.
958 (parse_default_method): New.
959 (GTM::gtm_thread::number_of_threads_changed): New.
960 * method-serial.cc (GTM::serial_mg): New method group class.
961 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
963 (GTM::serial_dispatch): Same.
964 (GTM::serialirr_onwrite_dispatch): Same.
965 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
966 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
968 (GTM::gtm_thread::gtm_thread): Same.
969 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
970 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
971 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
972 choose dispatch but set state according to dispatch here.
973 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
974 (GTM::method_group): New class.
975 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
976 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
977 * libitm.texi: Document TM methods, method groups, method life cycle.
978 Rename method sets to method groups.
980 2011-08-23 Torvald Riegel <triegel@redhat.com>
982 * config/x86/tls.h: Moved to ...
983 * config/linux/x86/tls.h: ... here.
985 2011-08-23 Torvald Riegel <triegel@redhat.com>
987 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
989 * config/x86/sjlj.S: Same.
991 2011-08-19 Torvald Riegel <triegel@redhat.com>
993 * config/linux/rwlock.h: New file.
994 * config/linux/rwlock.c: New file.
995 * configure.ac: Reenable futex support (undo SVN rev 157758).
997 * configure.tgt: Same.
998 * config/linux/alpha/futex_bits.h: Same.
999 * config/linux/futex.h: Same. Return number of woken processes.
1000 * config/linux/futex.cc: Same.
1001 (futex_wait): Remove spinning.
1002 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1003 Use __x86_64__ instead of __LP64__.
1004 * aclocal.m4: Include generic futex checks.
1005 * configure: Rebuild.
1006 * Makefile.in: Rebuild.
1007 * testsuite/Makefile.in: Rebuild.
1008 * beginend.cc: Include pthread.h.
1009 * config/posix/cachepage.cc: Same.
1011 2011-08-12 Torvald Riegel <triegel@redhat.com>
1013 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1014 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1016 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1018 (GTM::gtm_thread::thread_num): Removed.
1019 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1020 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1021 tx-to-thread renaming.
1022 * beginend.cc: Adapted to tx-to-thread renaming.
1023 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1024 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1025 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1026 gtm_transaction to gtm_thread.
1027 (_ITM_getThreadnum): Removed. Not supported anymore.
1028 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1029 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1030 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1031 gtm_tx-to-gtm_thr renaming if necessary.
1038 * alloc_cpp.cc: Same.
1039 * method-serial.cc: Same.
1040 * config/generic/tls.cc: Same.
1041 * config/posix/rwlock.h (gtm_rwlock): Same.
1042 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1044 2011-08-12 Torvald Riegel <triegel@redhat.com>
1046 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1048 (gtm_rwlock::read_unlock): Same.
1049 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1050 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1051 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1052 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1053 w_upgrade. Replaced by per-transaction flags (in shared_state).
1054 Added c_confirmed_writers.
1055 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1056 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1057 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1058 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1059 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1060 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1061 * libitm.texi: Document locking conventions and implementations in
1064 2011-08-12 Torvald Riegel <triegel@redhat.com>
1066 * libitm_i.h (next_tx): Add list of all threads' transaction.
1067 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1068 transaction with list of transactions and ...
1069 (thread_exit_handler): ... deregister here.
1070 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1071 * config/x86/target.h: Same.
1073 2011-08-12 Torvald Riegel <triegel@redhat.com>
1075 * testsuite/libitm.c++/static_ctor.C: New file.
1077 2011-08-12 Torvald Riegel <triegel@redhat.com>
1079 * testsuite/libitm.c/reentrant.c: New file.
1081 2011-08-12 Torvald Riegel <triegel@redhat.com>
1083 * config/generic/tls.h: Remove the free list for transactions and ...
1084 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1085 (GTM::gtm_transaction::operator delete): ... and release here.
1086 (thread_exit_handler): New. Delete tx when thread terminates.
1087 (thread_exit_init): New.
1088 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1089 * testsuite/libitm.c/txrelease.c: New file.
1091 2011-08-12 Torvald Riegel <triegel@redhat.com>
1093 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1094 * testsuite/libitm.c/notx.c: New file.
1096 2011-08-12 Torvald Riegel <triegel@redhat.com>
1098 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1099 * libitm_i.h (local_tid): ... to here.
1100 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1101 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1103 2011-08-12 Torvald Riegel <triegel@redhat.com>
1105 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1106 serialirr_onwrite_dispatch as new default for now.
1107 * method-serial.cc (serialirr_onwrite_dispatch): New.
1108 (GTM::dispatch_serialirr_onwrite): New.
1111 2011-08-12 Torvald Riegel <triegel@redhat.com>
1113 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1114 * query.cc (_ITM_getTransactionId): There is no active transaction if
1115 the current nesting level is zero.
1117 2011-07-28 Torvald Riegel <triegel@redhat.com>
1119 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1122 2011-07-28 Torvald Riegel <triegel@redhat.com>
1124 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1125 transaction properties from the caller instead of from the
1128 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1130 2011-07-28 Torvald Riegel <triegel@redhat.com>
1132 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1133 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1135 * method-serial.cc: Same.
1136 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1137 flat nesting as default, and closed nesting on demand.
1138 (GTM::gtm_transaction::rollback): Same.
1139 (_ITM_abortTransaction): Same.
1140 (GTM::gtm_transaction::restart): Same.
1141 (GTM::gtm_transaction::trycommit): Same.
1142 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1143 (choose_code_path): New.
1144 (GTM::gtm_transaction_cp::save): New.
1145 (GTM::gtm_transaction_cp::commit): New.
1146 * query.cc (_ITM_inTransaction): Support flat nesting.
1147 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1148 (GTM::gtm_transaction): Support flat and closed nesting.
1149 * alloc.cc (commit_allocations_2): New.
1150 (commit_cb_data): New helper struct.
1151 (GTM::gtm_transaction::commit_allocations): Handle nested
1153 * libitm.texi: Update user action section, add description of nesting.
1155 2011-07-28 Torvald Riegel <triegel@redhat.com>
1157 * libitm_i.h: Add closed nesting as restart reason.
1158 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1160 2011-07-28 Torvald Riegel <triegel@redhat.com>
1162 * useraction.cc: Use vector instead of list to store actions.
1163 Also support partial rollbacks for closed nesting.
1164 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1165 * beginend.cc: Same.
1167 2011-07-28 Torvald Riegel <triegel@redhat.com>
1169 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1170 closed_nesting flags, as well as a closed nesting alternative.
1171 * method-serial.cc: Same.
1172 (serial_dispatch): Renamed to serialirr_dispatch.
1173 (GTM::dispatch_serialirr): Same.
1174 (serial_dispatch_ul): Renamed to serial_dispatch.
1175 (GTM::dispatch_serial): Same.
1177 2011-07-28 Torvald Riegel <triegel@redhat.com>
1179 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1181 2011-07-28 Torvald Riegel <triegel@redhat.com>
1183 * aatree.h (aa_tree::remove): New.
1184 (aa_tree::operator new): Add placement new.
1186 2011-07-02 Torvald Riegel <triegel@redhat.com>
1188 * containers.h: New file.
1189 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1190 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1191 * common.h: ... to here.
1192 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1195 2011-06-30 Torvald Riegel <triegel@redhat.com>
1197 * libitm_i.h (STATE_ABORTING): Remove.
1198 * beginend.cc (_ITM_abortTransaction): Same.
1199 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1200 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1201 (_ITM_rollbackTransaction): Remove.
1202 * beginend.cc: Same.
1204 * libitm.texi: Document these ABI changes.
1206 2011-06-30 Torvald Riegel <triegel@redhat.com>
1208 * libitm.texi: New file.
1209 * Makefile.am: Add libitm.texi.
1210 * Makefile.in: Rebuild.
1212 2011-06-30 Torvald Riegel <triegel@redhat.com>
1214 * libitm_i.h: Move parts to common.h and dispatch.h.
1215 * common.h: New file.
1216 * dispatch.h: New file, new dispatch class.
1217 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1218 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1219 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1220 decision to retry.cc.
1221 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1223 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1224 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1226 * barrier.cc: Use new barriers definitions.
1227 (abi_dispatch::memmove_overlap_check): New.
1228 * config/x86/x86_sse.cc: Same.
1229 * config/x86/x86_avx.cc: Same.
1230 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1232 * Makefile.in: Rebuild.
1233 * method-readonly.cc: Remove.
1234 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1235 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1237 2011-06-30 Torvald Riegel <triegel@redhat.com>
1239 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1240 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1241 * testsuite/libitm.c/dropref-2.c: Same.
1242 * testsuite/libitm.c/dropref.c: Same.
1244 2011-06-30 Torvald Riegel <triegel@redhat.com>
1246 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1247 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1248 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1250 * barrier.tpl: Same.
1252 * config/generic/tls.h: Same.
1253 * config/x86/tls.h: Same.
1257 * method-readonly.cc: Same.
1258 * method-serial.cc: Same.
1259 * method-wbetl.cc: Same.
1262 2011-03-03 Richard Henderson <rth@redhat.com>
1264 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1265 From Patrik Marlier <patrick.marlier@unine.ch>.
1267 2011-02-03 Richard Henderson <rth@redhat.com>
1269 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1270 * configure.ac: Use it.
1271 * configure, config.h.in: Rebuild.
1272 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1273 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1274 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1275 * libitm.map: Use wildcards to match size_t mangling.
1277 2010-12-14 Richard Henderson <rth@redhat.com>
1279 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1280 blocks of TIDs per thread.
1281 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1282 (setup_gtm_thr): Return the thread structure.
1283 * config/x86/tls.h (setup_gtm_thr): Likewise.
1285 2010-12-14 Richard Henderson <rth@redhat.com>
1287 * clone.cc (table_lock): Remove.
1288 (find_clone): Don't take it.
1289 (ExcludeTransaction): New helper class.
1290 (_ITM_registerTMCloneTable): Use it.
1291 (_ITM_deregisterTMCloneTable): Likewise.
1293 2010-12-14 Richard Henderson <rth@redhat.com>
1295 * config/x86/tls.h: New file.
1297 2010-07-15 Richard Henderson <rth@redhat.com>
1299 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1300 * Makefile.in: Rebuild.
1302 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1304 * method-wbetl.cc (trydropreference): Fix source line.
1306 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1308 * libitm.h: Add comment.
1309 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1311 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1313 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1314 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1315 available, use pthread mutexes.
1316 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1317 * config.h.in: Regenerate.
1318 * configure: Regenerate.
1320 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1322 * libitm.h (ITM_PURE): Define.
1323 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1325 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1327 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1328 (validate): Add comment.
1329 (trydropreference): New.
1330 * method-readonly.cc (class readonly_dispatch): Add
1332 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1333 Call trydropreference().
1334 * libitm.h (_ITM_dropReferences): Remove const attribute.
1335 * method-serial.cc (class serial_dispatch): Add trydropreference.
1336 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1338 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1340 * memcpy.cc (do_memcpy): Comment.
1342 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1344 * barrier.tpl: Add comments throughout.
1346 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1348 * method-wbetl.cc (struct w_entry): Add comments.
1352 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1354 * alloc_c.cc (_ITM_dropReferences): New.
1355 * libitm.map (_ITM_dropReferences): Add.
1356 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1357 * libitm_i.h (struct gtm_transaction): Declare
1358 drop_references_allocations and drop_references_local.
1359 * local.cc (rollback_local): Ignore memory when applicable.
1360 (drop_references_local): New.
1362 2010-06-23 Richard Henderson <rth@redhat.com>
1364 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1365 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1366 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1367 * config/alpha/target.h: Likewise.
1368 * config/generic/tls.cc (gtm_mask_stack): Use it.
1370 2010-06-23 Richard Henderson <rth@redhat.com>
1372 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1373 a mutex instead of trying a lock-free compare-and-swap on the list.
1374 (gtm_cacheline_page::operator delete): Likewise.
1376 2010-06-16 Richard Henderson <rth@redhat.com>
1378 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1379 that overlap the libitm stack.
1380 * barrier.tpl: Mark incoming stack.
1381 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1382 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1383 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1384 * memcpy.cc, memset.cc: Likewise.
1385 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1386 * config/generic/tls.h (gtm_thread): Add stack_top member.
1387 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1388 * libitm_i.h (gtm_mask_stack): Declare.
1389 * config/generic/tls.cc: New file.
1390 * Makefile.am (libitm_la_SOURCES): Add it.
1391 (AM_CXXFLAGS): Turn off exceptions.
1392 * Makefile.in: Rebuild.
1394 2010-06-16 Richard Henderson <rth@redhat.com>
1396 * alloc.cc (struct gtm_alloc_action): Move definition ...
1397 * libitm_i.h: ... here.
1398 (class gtm_transaction): Declare new and delete.
1399 * beginend.cc (alloc_tx): Reformulate as operator new.
1400 (free_tx): Reformulate as operator delete.
1401 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1403 2010-06-11 Richard Henderson <rth@redhat.com>
1405 * clone.cc (clone_entry_compare): Fix typo.
1406 From Patrik Marlier <patrick.marlier@unine.ch>.
1408 2010-05-13 Richard Henderson <rth@redhat.com>
1410 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1413 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1415 * libitm_i.h (struct gtm_transaction): Remove
1416 get_allocation_size.
1417 (record_allocation): Remove size parameter.
1418 * libitm.map (_ITM_realloc): Remove.
1419 * alloc_c.cc (_ITM_realloc): Remove.
1420 (_ITM_malloc): Remove size argument to record_allocation.
1421 (_ITM_calloc): Same.
1422 * alloc_cpp.cc (_ZGTtnwm): Same.
1423 (_ZGTtnwmRKSt9nothrow_t): Same.
1425 (_ZGTtnamRKSt9nothrow_t): Same.
1426 * alloc.cc (struct gtm_alloc_action): Remove size.
1427 (get_allocation_size): Remove.
1428 (commit_allocations): Add comment.
1429 (record_allocation): Remove size parameter.
1430 (forget_allocation): Remove set of size.
1432 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1434 * Makefile.am (abi_version): New.
1435 (AM_CXXFLAGS): Pass abi_version.
1436 * Makefile.in: Regenerate.
1437 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1439 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1441 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1442 _ITM_getTMCloneOrIrrevokable.
1443 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1444 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1446 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1448 * configure.ac: Remove Linux futex support.
1449 * configure.tgt (config_path): Same.
1450 * Makefile.am: Same.
1451 * config/linux: Remove entire directory.
1452 * configure: Rebuild.
1453 * Makefile.in: Rebuild.
1454 * testsuite/Makefile.in: Rebuild.
1456 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1458 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1459 switching to serial mode.
1460 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1462 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1464 * configure.tgt: Add emacs -*- tags.
1465 * barrier.tpl: Same.
1467 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1469 * Makefile.am: Rename serial.cc to method-serial.cc.
1470 * Makefile.in: Regenerate with automake 1.11.1.
1471 * testsuite/Makefile.in: Same.
1472 * aclocal.m4: Regenerate with aclocal 1.11.1.
1473 * method-serial.cc: Rename from serial.cc.
1474 * libitm_i.h (struct gtm_transaction): Update comment on
1477 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1479 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1480 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1482 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1484 * configure: Rebuild.
1486 2009-11-12 Richard Henderson <rth@redhat.com>
1488 * Rewrite everything in C++.
1490 2009-11-03 Richard Henderson <rth@redhat.com>
1492 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1493 * Makefile.am (libitm_la_SOURCES): Add them.
1494 * configure.ac (ARCH_X86): New conditional.
1495 * Makefile.in, configure: Rebuild.
1496 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1497 Move futex setup into "other system configury" case.
1498 * local.c (rollback_local): Merge into ...
1499 (GTM_rollback_local): ... here.
1500 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1501 (_ITM_LB): Define as an alias to GTM_LB.
1503 2009-11-03 Richard Henderson <rth@redhat.com>
1505 * method-readonly.c: New file.
1506 * Makefile.am (libitm_la_SOURCES): Add it.
1507 * Makefile.in: Rebuild.
1508 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1509 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1510 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1511 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1512 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1513 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1514 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1515 gtm_get_clock, gtm_inc_clock): New.
1516 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1517 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1518 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1519 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1520 replace uses with new libitm_i.h symbols.
1521 (dispatch_wbetl): Rename from wbetl_dispatch.
1522 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1523 away from dispatch_readonly; abort if the beginTransaction call
1524 asserted that the transaction was readonly.
1526 2009-11-03 Richard Henderson <rth@redhat.com>
1528 * memset.c: New file.
1529 * Makefile.am (libitm_la_SOURCES): Add it.
1530 * Makefile.in: Rebuild.
1531 * testsuite/libitm.c/memset-1.c: New.
1533 2009-11-03 Richard Henderson <rth@redhat.com>
1535 * dispatch.c: Remove file.
1536 * useraction.c (struct gtm_user_action): Move from libitm.h.
1537 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1538 (serial_memset, serial_memmove, serial_memcpy): Remove.
1539 (serial_W*, serial_R*): Remove.
1540 (serial_dispatch): Update to match.
1541 * configure.ac: Move Werror down below configure checks. Don't
1542 check for sys/loadavg.h, do check for malloc.h. Don't check for
1543 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1544 Use GCC_AC_FUNC_MMAP_BLACKLIST
1545 * libitm.h: Split out all internal items to...
1546 * libitm_i.h: ... here. New file.
1547 * copymask.c: New file.
1548 * local.c (struct gtm_local_undo): Move from libitm.h.
1549 (GTM_alloc_local): Rename from alloc_local; export.
1550 * memcpy.c: New file.
1551 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1552 * config/posix/page.c: New file.
1553 * config/posix/target_tls.h: Remove file.
1554 * barrier.c: New file.
1555 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1557 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1558 * method-wbetl.c: Rewrite for new cacheline methods.
1559 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1561 * config/alpha/sjlj.S: Fix typo.
1562 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1563 * config/alpha/copymask.c: New file.
1564 * config/alpha/target.h (CACHELINE_SIZE): New.
1565 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1567 * config/x86/target_i.h: Copy functions from x86/target.h.
1568 * config/x86/copymask.c: New file.
1569 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1570 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1571 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1572 * config/x86/target_tls.h: Move contents to target_i.h.
1574 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1575 * testsuite/libitm.c/memcpy-1.c: New.
1577 2009-10-22 Richard Henderson <rth@redhat.com>
1579 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1580 (AM_CCASFLAGS): New.
1581 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1582 saving/restoring _AC_ARG_VAR_PRECIOUS.
1583 * Makefile.in, aclocal.m4, config.h.in, configure,
1584 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1586 2009-10-22 Richard Henderson <rth@redhat.com>
1588 * testsuite/*: Update for new compiler syntax.
1590 2009-10-21 Richard Henderson <rth@redhat.com>
1592 * libitm.h (_ITM_abortReason): Add outerAbort.
1594 2009-08-03 Richard Henderson <rth@redhat.com>
1596 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1597 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1598 * method-wbetl.c (struct w_entry): Remove mask.
1599 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1602 2009-07-22 Richard Henderson <rth@redhat.com>
1604 * eh_cpp.c: New file.
1605 * Makefile.am (libitm_la_SOURCES): Add it.
1606 * Makefile.in: Rebuild.
1607 * beginend.c (GTM_rollback_transaction): Undo exception state.
1608 (GTM_trycommit_transaction): Mark inline.
1609 (GTM_trycommit_and_finalize_transaction): Split out from ...
1610 (_ITM_commitTransaction): ... here.
1611 (_ITM_commitTransactionEH): New function.
1612 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1613 cxa_unthrown, eh_in_flight; reorder.
1615 * testsuite/libitm.c++/c++.exp: New.
1616 * testsuite/libitm.c++/eh-1.C: New.
1618 * aatree.c (aa_free): Remove REGPARM.
1619 * aatree.h: Remove all REGPARM.
1621 2009-07-18 Richard Henderson <rth@redhat.com>
1623 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1624 * Makefile.am (libitm_la_SOURCES): Add them.
1625 * Makefile.in: Rebuild.
1626 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1627 (GTM_trycommit_transaction): Likewise.
1628 * libitm.h: Include aatree.h
1629 (struct gtm_alloc_action): New.
1630 (struct gtm_transaction): Add alloc_actions.
1631 (GTM_record_allocation, GTM_forget_allocation): Declare.
1632 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1633 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1634 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1635 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1636 _ZGTtdaPvRKSt9nothrow_t): Export.
1638 2009-07-18 Richard Henderson <rth@redhat.com>
1640 * target_tls.h: Move ...
1641 * config/posix/target_tls.h: ... here.
1643 2009-07-07 Richard Henderson <rth@redhat.com>
1645 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1647 2009-07-07 Richard Henderson <rth@redhat.com>
1651 2009-07-07 Richard Henderson <rth@redhat.com>
1653 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1654 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1656 * configure.tgt: Don't use -ftls-model for x86 linux.
1657 * libitm.h: Include target.h after standard includes.
1658 (_gtm_thr): Rename from gtm_thr.
1659 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1660 (gtm_disp, set_gtm_disp): New.
1661 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1662 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1663 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1665 2009-07-07 Richard Henderson <rth@redhat.com>
1667 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1669 2009-07-06 Richard Henderson <rth@redhat.com>
1671 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1672 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1673 (_ITM_beginTransaction): Take variadic arguments.
1674 (_ITM_registerThrownObject): Declare.
1675 * beginend.c, serial.c: Update.
1676 * libitm.map: Add _ITM_registerThrownObject.
1678 2009-01-28 Richard Henderson <rth@redhat.com>
1680 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1681 * Makefile.in: Rebuild.
1682 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1683 (GTM_restart_transaction): Fix uninstrumented code check.
1684 * retry.c (GTM_decide_retry_strategy): Add serial check.
1685 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1686 automatically go irrevokable when in serial mode.
1687 * clone.c: New file.
1688 * libitm.h, libitm.map: Update.
1690 2009-01-27 Richard Henderson <rth@redhat.com>
1692 * Makefile.am (LTCCASCOMPILE): Define.
1693 (libitm_la_SOURCES): Add methid-wbetl.c.
1694 * testsuite/Makefile.am: New
1695 * configure.ac: Add testsuite/Makefile.
1696 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1697 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1698 (_ITM_abortTransaction): Finalize implementation method; pass
1699 transaction properties to longjmp.
1700 (GTM_restart_transaction): Split out from ...
1701 (_ITM_commitTransaction): ... here.
1702 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1703 Move to config/x86/target.h.
1704 * config/linux/alpha/futex_bits.h: New.
1705 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1706 * config/x86/target.h: Disable target types for 32-bit.
1707 * config/alpha/sjlj.S, config/alpha/target.h: New.
1708 * libitm.h (struct gtm_dispatch): Add init, fini.
1709 (enum restart_reason): New.
1710 (struct gtm_transaction): Add method and restarts.
1711 * retry.c (GTM_decide_retry_strategy): Implement.
1712 * serial.c (serial_init, serial_fini): New.
1713 (GTM_serialmode): Finialize outgoing method.
1714 * method-wbetl.c: New.
1716 2008-12-09 Richard Henderson <rth@redhat.com>
1718 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1719 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1720 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1721 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1722 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1723 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1724 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1725 * serial.c (serial_R##T, serial_W##T): Likewise.
1727 2008-11-21 Richard Henderson <rth@redhat.com>