1 2017-10-10 Release Manager
5 2016-06-03 Release Manager
9 2015-12-04 Release Manager
13 2015-07-16 Release Manager
17 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
20 * config/powerpc/sjlj.S: Port to Xcode 2.5.
22 2015-04-22 Release Manager
26 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
29 * libitm.c/stackundo.c (test2): Make it static.
32 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34 Update copyright years.
36 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38 * libitm.texi: Bump @copying's copyright year.
40 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42 * testsuite/lib/libitm.exp: Load target-utils.exp.
43 Move load of target-supports.exp earlier.
45 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
47 * configure.tgt (x86_64): Tune -m32 multilib to generic.
49 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
52 * configure: Regenerated.
54 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
57 * configure: Regenerate.
59 2014-10-06 Marek Polacek <polacek@redhat.com>
61 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
62 * testsuite/libitm.c/memset-1.c: Likewise.
64 2014-07-24 Richard Henderson <rth@redhat.com>
66 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
67 addressing mode in epilogue.
69 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
71 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
72 -mclear-hwcap instead.
73 * configure: Regenerate.
74 * clearcap.map: Remove.
76 2014-05-21 John Marino <gnugcc@marino.st>
78 * configure.tgt (*-*-dragonfly*): New target.
80 2014-05-19 Richard Henderson <rth@redhat.com>
82 * config/aarch64/sjlj.S: New file.
83 * config/aarch64/target.h: New file.
84 * configure.tgt: Enable aarch64.
86 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
88 * config/generic/asmcfi.h: Also check for
89 __GCC_HAVE_DWARF2_CFI_ASM.
91 2013-04-02 Richard Henderson <rth@redhat.com>
93 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
94 * config/arm/target.h, config/sh/target.h: Likewise.
95 * config/sparc/target.h, config/x86/target.h: Likewise.
97 2014-03-26 Jakub Jelinek <jakub@redhat.com>
99 * config/linux/futex_bits.h: Include errno.h.
100 (sys_futex0): If syscall returns -1, return -errno rather than
103 2014-03-26 Joseph Myers <joseph@codesourcery.com>
105 * libitm.texi (Index): Rename to Library Index.
107 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
110 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
111 (x86_avx.lo): Append -mavx to CXXFLAGS.
112 * Makefile.in: Regenerate.
114 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
116 Update copyright years
118 2014-01-02 Tobias Burnus <burnus@net-b.de>
120 * libitm.texi: Bump @copying's copyright year.
122 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
124 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
125 (FUNC): Define ELFv2 variant.
132 2013-09-20 Alan Modra <amodra@gmail.com>
134 * configure: Regenerate.
136 2013-08-30 Torvald Riegel <triegel@redhat.com>
138 * config/posix/rwlock.cc: Fix initialization order.
140 2013-08-30 Torvald Riegel <triegel@redhat.com>
142 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
143 (htm_fastpath): Assign an asm name.
144 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
146 (_ITM_actions): Likewise.
147 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
149 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
150 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
151 field to the start of the structure.
152 * config/linux/rwlock.h (gtm_rwlock): Update comments.
153 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
154 handling for custom HTM fast paths.
156 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
158 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
160 * configure.tgt: Add -msoft-float to XCFLAGS.
162 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
164 * configure.tgt: Add -msoft-float to XCFLAGS.
166 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
168 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
169 (htm_transaction_active): Enable zEC12 instructions in the
171 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
173 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
175 * acinclude.m4: Add htm asm check for s390.
176 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
177 * configure: Regenerate.
178 * config/s390/target.h: Remove __HTM__ check.
179 (htm_available): Call getauxval to get hwcaps and check whether
180 HTM is available or not.
182 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
184 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
185 * configure.ac: Use it.
186 (AC_CHECK_HEADERS): Check for sys/auxv.h.
187 (AC_CHECK_FUNCS): Check for getauxval.
188 * config.h.in, configure: Rebuild.
189 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
190 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
191 (USE_HTM_FASTPATH): Define.
192 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
193 _HTM_RETRIES) New macros.
194 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
195 htm_begin_success, htm_commit, htm_transaction_active): New functions.
197 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
199 * config/s390/target.h: Include htmintrin.h.
200 (_HTM_ITM_RETRIES): New macro definition.
201 (htm_available, htm_init, htm_begin, htm_begin_success)
202 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
204 2013-06-20 Iain Sandoe <iain@codesourcery.com>
205 Cesar Philippidis <cesar@codesourcery.com>
207 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
208 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
209 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
210 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
212 2013-06-20 Torvald Riegel <triegel@redhat.com>
214 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
215 (_ITM_getTransactionId): Same.
216 * config/x86/target.h (htm_transaction_active): New.
218 2013-06-20 Torvald Riegel <triegel@redhat.com>
221 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
224 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
227 * local_atomic (__always_inline): Always define our version.
228 (__calculate_memory_order): Mark inline.
229 (atomic_thread_fence): Ditto.
230 (atomic_signal_fence): Ditto.
231 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
232 (atomic_bool::atomic_flag_clear_explicit): Ditto.
233 (atomic_bool::atomic_flag_test_and_set): Ditto.
234 (atomic_bool::atomic_flag_clear): Ditto.
236 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
238 * config/s390/sjlj.S: New file.
239 * config/s390/target.h: New file.
240 * configure.tgt: Set options for S/390.
242 2013-03-23 Andi Kleen <ak@linux.intel.com>
244 * local_atomic (__always_inline): Add.
245 (__calculate_memory_order, atomic_thread_fence,
246 atomic_signal_fence, test_and_set, clear, store, load,
247 exchange, compare_exchange_weak, compare_exchange_strong,
248 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
249 Add __always_inline to force inlining.
251 2013-02-11 Iain Sandoe <iain@codesourcery.com>
252 Jack Howarth <howarth@bromo.med.uc.edu>
253 Patrick Marlier <patrick.marlier@gmail.com>
256 * alloc_cpp.cc: Enable function declarations on darwin.
257 * eh_cpp.cc: Likewise.
259 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
261 Update copyright years.
263 2012-11-09 Torvald Riegel <triegel@redhat.com>
265 * beginend.cc (htm_fastpath): New.
266 (gtm_thread::begin_transaction, _ITM_commitTransaction,
267 _ITM_commitTransactionEH): Add HTM fastpath handling.
268 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
269 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
270 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
271 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
272 * configure.tgt: Add -mrtm to XCFLAGS.
273 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
274 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
275 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
276 * retry.cc (parse_default_method): Add HTM method parsing.
277 (gtm_thread::number_of_threads_changed): Use HTM by default if
280 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
282 * configure: Regenerate.
284 2012-10-31 Richard Henderson <rth@redhat.com>
286 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
287 * configure.ac: Use it.
288 * config.h.in, configure: Rebuild.
289 * testsuite/Makefile.in: Rebuild.
291 2012-10-24 Torvald Riegel <triegel@redhat.com>
293 * libitm.texi: Clarify ABI requirements for data-logging functions.
295 2012-10-24 Torvald Riegel <triegel@redhat.com>
297 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
298 it requires serial mode instead of assuming that for certain
300 * dispatch.h (abi_dispatch::requires_serial): New.
301 (abi_dispatch::abi_dispatch): Adapt.
302 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
303 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
304 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
305 serial_dispatch::serial_dispatch,
306 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
308 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
310 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
311 and ia32 declarations some more.
312 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
314 2012-09-20 Jakub Jelinek <jakub@redhat.com>
317 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
318 * configure: Regenerate.
319 * Makefile.in: Regenerate.
321 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
323 * configure: Regenerated.
325 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
327 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
329 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
331 * eh_cpp.cc: Fix __cxa_end_catch declaration.
333 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
335 * configure: Regenerated.
337 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
340 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
343 2012-04-03 Tristan Gingold <gingold@adacore.com>
345 * configure: Regenerate.
347 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
350 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
352 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
354 * testsuite/lib/libitm.exp: load fortran-modules.exp
356 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
358 * configure.tgt (*-*-irix6*): Remove.
360 2012-03-13 Torvald Riegel <triegel@redhat.com>
363 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
366 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
368 * configure.tgt (*-*-osf*): Remove.
369 * configure: Regenerate.
371 2012-03-05 Torvald Riegel <triegel@redhat.com>
373 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
374 memtransfer/memset if size isn't larger than zero.
376 2012-03-02 Torvald Riegel <triegel@redhat.com>
378 * libitm.texi: Link to specification and add a usage example.
380 2012-02-24 Torvald Riegel <triegel@redhat.com>
382 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
383 default dispatch for more than 1 thread to ml_wt.
385 2012-02-20 Torvald Riegel <triegel@redhat.com>
387 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
389 2012-02-20 Torvald Riegel <triegel@redhat.com>
391 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
393 2012-02-20 Torvald Riegel <triegel@redhat.com>
395 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
396 serial mode corner cases made obsolete by prior gtm_rwlock changes.
397 (gl_wt_dispatch.rollback): Same.
399 2012-02-20 Torvald Riegel <triegel@redhat.com>
401 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
403 2012-02-20 Torvald Riegel <triegel@redhat.com>
405 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
406 for RfW src. Optimize number of calls to gtm_thr.
408 2012-02-20 Torvald Riegel <triegel@redhat.com>
410 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
412 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
413 (default_dispatch): Make atomic.
414 (GTM::gtm_thread::set_default_dispatch): Access atomically.
415 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
416 use decide_begin_dispatch() if default_dispatch might have changed.
417 (GTM::gtm_thread::number_of_threads_changed): Initialize
418 default_dispatch here.
420 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
421 Patrick Marlier <patrick.marlier@gmail.com>
424 * alloc_cpp.cc: No dummy definitions for darwin.
425 * eh_cpp.cc: Likewise.
427 2012-02-14 Richard Henderson <rth@redhat.com>
429 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
431 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
433 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
435 2012-02-14 Torvald Riegel <triegel@redhat.com>
437 * libitm_i.h (GTM::gtm_rwlog_entry): New.
438 (GTM::gtm_thread): Add read and write logs.
439 (GTM::dispatch_ml_wt): Declare.
440 * retry.cc (parse_default_method): Support ml_wt.
441 * method-ml.cc: New file.
442 * Makefile.am: Add method-ml.cc.
443 * Makefile.in: Regenerate.
445 2012-02-14 Torvald Riegel <triegel@redhat.com>
447 * dispatch.h (GTM::abi_dispatch::supports): New.
448 (GTM::method_group::reinit): New.
449 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
450 (GTM::gtm_thread::number_of_threads_changed): Check that the method
451 supports the current situation.
453 2012-02-14 Torvald Riegel <triegel@redhat.com>
455 * util.cc (GTM::xcalloc): New.
456 * common.h (GTM::xcalloc): Declare.
458 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
460 * config/sparc/target.h (cpu_relax): Read from CC register.
461 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
463 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
465 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
467 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
469 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
470 * config/sparc/cacheline.h: New file.
471 * config/sparc/target.h: Likewise.
472 * config/sparc/sjlj.S: Likewise.
473 * config/linux/sparc/futex_bits.h: Likewise.
475 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
477 * configure.ac (link_itm): Fix comment.
478 * configure: Regenerate.
479 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
481 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
485 Correct libgomp references.
487 2012-01-24 Torvald Riegel <triegel@redhat.com>
489 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
492 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
494 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
496 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
497 offset values. Do not copy return address. Decrement stack
499 (GTM_longjump) [__x86_64__]: Update offset values.
501 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
504 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
505 the first function argument to %eax.
507 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509 * libitm.h (_ITM_getThreadnum): Remove.
510 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
512 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514 * clearcap.map: New file.
515 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
516 * configure.ac: Call it.
517 Clear HWCAP_LDFLAGS if defaulting to -mavx.
518 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
519 * configure: Regenerate.
520 * Makefile.in: Regenerate.
521 * testsuite/Makefile.in: Regenerate.
523 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
527 include, exclude options.
529 2012-01-14 Torvald Riegel <triegel@redhat.com>
531 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
533 * containers.h (GTM::vector::set_size): New.
535 2012-01-14 Torvald Riegel <triegel@redhat.com>
538 * config/generic/tls.h (GTM::mask_stack_top): New.
539 (GTM::mask_stack_bottom): Declare.
540 * config/generic/tls.c (GTM::mask_stack_bottom): New.
541 * local.cc (gtm_undolog::rollback): Filter out any updates that
542 overlap the libitm stack. Add current transaction as parameter.
543 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
544 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
545 * testsuite/libitm.c/stackundo.c: New test.
547 2012-01-10 Richard Henderson <rth@redhat.com>
549 * libitm_i.h (_Unwind_DeleteException): Declare weak.
550 * eh_cpp.cc (_Unwind_DeleteException): Define for
551 !HAVE_ELF_STYLE_WEAKREF.
553 2012-01-08 Torvald Riegel <triegel@redhat.com>
555 * local.cc (GTM_LB): Use GTM::gtm_undolog.
556 (GTM::gtm_thread::drop_references_undolog): Remove.
557 (GTM::gtm_thread::commit_undolog,
558 GTM::gtm_thread::rollback_undolog): Move to ...
559 * libitm_i.h (GTM::gtm_undolog): ...here. New.
560 (GTM::gtm_undolog_entry): Remove.
561 (GTM::gtm_thread): Adapt.
562 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
563 (GTM::gtm_thread::trycommit): Adapt.
564 * method-serial.cc (serial_dispatch::log): Adapt.
565 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
566 (gl_wt_dispatch::store): Fix likely/unlikely.
567 * containers.h (GTM::vector::resize): Add additional_capacity
568 parameter and handle it.
569 (GTM::vector::resize_noinline): New/adapt.
570 (GTM::vector::push): New.
572 2012-01-06 Richard Henderson <rth@redhat.com>
574 * configure.tgt: Support powerpc-linux and powerpc-darwin.
575 * config/linux/powerpc/futex_bits.h: New file.
576 * config/powerpc/cacheline.h: New file.
577 * config/powerpc/sjlj.S: New file.
578 * config/powerpc/target.h: New file.
579 * config/generic/asmcfi.h (cfi_offset): New.
580 (cfi_restore, cfi_undefined): New.
582 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
585 * testsuite/libitm.c/reentrant.c: Remove xfail.
586 (thread): Pass x to pure().
587 From Patrik Marlier <patrick.marlier@gmail.com>.
589 2011-12-24 Torvald Riegel <triegel@redhat.com>
591 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
592 privatization safety if already in serial mode.
594 2011-12-24 Torvald Riegel <triegel@redhat.com>
596 * beginend.cc (GTM::gtm_thread::restart): Add and handle
597 finish_serial_upgrade parameter.
598 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
599 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
600 Don't unset reader flag.
601 (GTM::gtm_rwlock::write_upgrade_finish): New.
602 * config/posix/rwlock.cc: Same.
603 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
605 * config/posix/rwlock.h: Same.
606 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
607 flag after commit or after rollback when restarting.
609 2011-12-24 Torvald Riegel <triegel@redhat.com>
611 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
612 (GTM::gtm_thread::try_commit): Changed memory order.
613 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
615 * config/linux/x86/futex_bits.h (sys_futex0): Same.
616 * config/linux/sh/futex_bits.h (sys_futex0): Same.
617 * config/linux/futex_bits.h (sys_futex0): Same.
618 * config/linux/futex.cc (futex_wait, futex_wake): Same.
619 * config/linux/futex.h (futex_wait, futex_wake): Same.
620 * config/linux/rwlock.h (gtm_rwlock::writers,
621 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
623 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
624 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
625 gtm_rwlock::write_unlock): Fix memory orders and fences.
626 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
627 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
628 gtm_rwlock::write_unlock): Same.
629 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
630 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
631 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
633 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
634 gl_wt_dispatch::load, gl_wt_dispatch::store,
635 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
636 orders and fences. Add comments.
638 2011-12-21 Jakub Jelinek <jakub@redhat.com>
640 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
641 * Makefile.in: Regenerated.
643 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
645 * configure.tgt: Add sh* case.
646 * config/sh/target.h: New file.
647 * config/sh/sjlj.S: New file.
648 * config/linux/sh/futex_bits.h: New file.
650 2011-12-14 Richard Henderson <rth@redhat.com>
652 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
653 * config/arm/sjlj.S, config/arm/target.h: New files.
654 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
655 (cfi_rel_offset): New.
656 * config/linux/futex_bits.h: New file.
657 * config/linux/futex.cc: Include futex_bits.h here...
658 * config/linux/futex.h: ... not here.
659 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
660 * configure.ac (ARCH_AM): New conditional.
661 * Makefile.in, configure: Rebuild.
662 * configure.tgt: Handle ARM.
664 2011-12-13 Richard Henderson <rth@redhat.com>
666 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
667 signed/unsigned comparison werror.
669 * local_atomic: New file.
670 * libitm_i.h: Include it.
671 (gtm_thread::shared_state): Use atomic template.
672 * beginend.cc (GTM::gtm_clock): Use atomic template.
673 (global_tid): Use atomic template if 64-bit atomics available.
674 (gtm_thread::gtm_thread): Update shared_state access.
675 (gtm_thread::trycommit): Likewise.
676 (choose_code_path): Update global_tid access.
677 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
678 * stmlock.h (GTM::gtm_clock): Use atomic template.
679 (gtm_get_clock, gtm_inc_clock): Update accesses.
680 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
681 redundant __sync_synchronize after atomic shared_state access.
682 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
683 (gtm_rwlock::write_lock_generic): Likewise.
684 (gtm_rwlock::read_unlock): Likewise.
685 * config/alpha/target.h (atomic_read_barrier): Remove.
686 (atomic_write_barrier): Remove.
687 * config/x86/target.h (atomic_read_barrier): Remove.
688 (atomic_write_barrier): Remove.
690 2011-11-30 Richard Henderson <rth@redhat.com>
692 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
693 * beginend.c (_ITM_abortTransaction): Update to match.
694 (GTM::gtm_thread::restart): Likewise.
695 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
696 * config/x86/sjlj.S (GTM_longjmp): Likewise.
698 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
700 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
701 * Makefile.in: Regenerate.
703 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
705 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
706 * alloc_cpp.cc: Generate dummy functions if we don't
707 HAVE_ELF_STYLE_WEAKREF.
708 * eh_cpp.cc: Likewise.
709 * configure: Regenerate.
710 * aclocal.m4: Likewise.
711 * config.h.in: Likewise.
712 * Makefile.in: Likewise.
713 * testsuite/Makefile.in: Likewise.
715 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
717 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
718 __USER_LABEL_PREFIX__ for targets that use it.
719 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
720 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
721 in portability to non-elf targets.
722 (GTM_longjmp): Likewise.
723 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
726 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
728 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
729 * testsuite/libitm.c/memset-1.c: Likewise.
731 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
733 * configure: Regenerate.
735 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
737 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
738 (LIBITM_ENABLE_SYMVERS): Handle sun style.
739 * Makefile.am: Handle sun style versioning.
740 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
741 * configure: Regenerate.
742 * Makefile.in: Regenerate.
744 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
746 * config/generic/asmcfi.h: Fix comment.
747 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
748 sequence without .hidden support, error for non-ELF targets.
749 (GTM_longjmp) [__ELF__]: Only use .hidden if
750 HAVE_ATTRIBUTE_VISIBILITY.
752 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
754 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
755 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
757 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
758 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
760 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
763 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
764 * configure: Regenerate.
766 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
768 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
770 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
772 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
774 (.note.GNU-stack): Only use if __linux__.
775 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
776 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
777 * testsuite/libitm.c/reentrant.c: Likewise.
778 * testsuite/libitm.c/simple-2.c: Likewise.
779 * testsuite/libitm.c/txrelease.c: Likewise.
780 * testsuite/libitm.c++/static_ctor.C: Likewise.
782 2011-11-10 Richard Henderson <rth@redhat.com>
784 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
785 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
786 * configure.ac (ARCH_X86_AVX): New conditional.
787 * Makefile.in, configure: Rebuild.
789 2011-11-09 Richard Henderson <rth@redhat.com>
791 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
792 * configure.ac: Use it.
793 * config.h.in, configure: Rebuild.
794 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
796 2011-11-09 Richard Henderson <rth@redhat.com>
798 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
799 * config/alpha/unaligned.h: Remove file.
800 * config/generic/unaligned.h: Remove file.
801 * config/x86/unaligned.h: Remove file.
802 * config/generic/cachepage.h: Remove file.
803 * config/posix/cachepage.cc: Remove file.
804 * config/generic/cacheline.cc: Remove file.
805 * config/x86/cacheline.cc: Remove file.
806 * config/generic/cacheline.h (gtm_cacheline): Remove the
807 store_mask, copy_mask, copy_mask_wb methods.
808 * config/x86/cacheline.h: Likewise.
809 * config/alpha/cacheline.h: Fall back to generic after setting size.
810 * config/generic/tls.cc (gtm_mask_stack): Remove.
811 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
812 (GTM_vpalignr_table): Remove.
813 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
814 (GTM_pshift_table): Remove.
815 * config/libitm_i.h: Don't include cachepage.h.
816 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
817 * Makefile.in, testsuite/Makefile.in: Rebuild.
819 2011-11-09 Richard Henderson <rth@redhat.com>
821 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
822 to emit branch prediction hint.
824 * config/x86/sjlj.S: Protect elf directives with __ELF__.
825 Protect .note.GNU-stack with __linux__.
827 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
828 * configure, aclocal.m4, config.h.in: Rebuild.
829 * config/generic/asmcfi.h: New file.
830 * config/x86/sjlj.S: Use it.
832 2011-11-08 Richard Henderson <rth@redhat.com>
834 * local.cc (_ITM_LB): Use a normal call, not a function alias.
836 2011-11-08 Richard Henderson <rth@redhat.com>
838 * configure.tgt: Test correct directory for supported cpus.
840 * configure.ac: Exit if unsupported.
841 * configure: Rebuild.
842 * configure.tgt: Delete boilerplate from libgomp for unsupported
843 targets. Set UNSUPPORTED for unsupported targets.
845 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
847 * configure.tgt: Handle i386 like i[456]86.
848 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
850 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
851 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
853 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
855 * method-wbetl.cc: Update copyright notice.
862 * useraction.cc: Same.
866 * config/generic/tls.cc: Same.
867 * config/generic/cacheline.h: Same.
868 * config/generic/cachepage.h: Same.
869 * config/generic/cacheline.cc: Same.
870 * config/generic/unaligned.h: Same.
871 * config/x86/cacheline.h: Same.
872 * config/x86/cacheline.cc: Same.
873 * config/x86/unaligned.h: Same.
874 * config/alpha/cacheline.h: Same.
875 * config/alpha/unaligned.h: Same.
876 * config/alpha/sjlj.S: Same.
877 * config/posix/cachepage.cc: Same.
878 * config/linux/futex.h: Same.
879 * config/linux/alpha/futex_bits.h: Same.
881 2011-11-04 Torvald Riegel <triegel@redhat.com>
883 * libitm.texi: No cover text and invariant sections.
885 2011-11-03 Richard Henderson <rth@redhat.com>
887 * local_type_traits: New file.
888 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
890 2011-11-03 Richard Henderson <rth@redhat.com>
892 * configure.ac: Don't test for gfortran.
893 * configure: Rebuild.
895 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
896 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
898 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
900 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
901 * testsuite/libitm.c/memset-1.c: Same.
902 * testsuite/libitm.c/c.exp: Same.
903 * testsuite/lib/libitm-dg.exp: Same.
904 * testsuite/lib/libitm.exp: Same.
905 * testsuite/libitm.c++/c++.exp: Same.
907 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
909 * testsuite/config/default.exp: Update copyright date.
910 * configure.ac: Add copyright info.
911 * configure.tgt: Same.
913 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
915 * testsuite/libitm.c/reentrant.c: XFAIL.
916 * testsuite/libitm.c++/static_ctor.C: XFAIL.
918 2011-10-29 Torvald Riegel <triegel@redhat.com>
920 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
922 (_ITM_abortTransaction): Handle aborts of outer transactions.
924 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
925 * libitm.texi: Document aborts of outer transactions.
926 * testsuite/libitm.c/cancel.c: New file.
928 2011-10-19 Torvald Riegel <triegel@redhat.com>
930 * testsuite/*: Change __transaction to __transaction_atomic or
931 __transaction_relaxed.
933 2011-10-19 Torvald Riegel <triegel@redhat.com>
935 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
938 2011-10-19 Torvald Riegel <triegel@redhat.com>
940 * libitm_i.h: Add gl_wt dispatch.
941 * retry.cc (parse_default_method): Same.
942 * method-gl.cc: New file.
943 * Makefile.am: Use method-gl.cc.
944 * Makefile.in: Rebuild.
946 2011-10-19 Torvald Riegel <triegel@redhat.com>
948 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
949 safety if requested by a TM method.
950 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
951 privatization safety.
952 * method-serial.cc: Same.
954 2011-10-19 Torvald Riegel <triegel@redhat.com>
956 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
957 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
958 undolog-related member functions from *_local to *_undolog.
959 * local.cc (gtm_thread::commit_undolog): Same.
960 * beginend.cc (GTM::gtm_thread::trycommit): Same.
961 (GTM::gtm_thread::rollback): Roll back undolog before
962 dispatch-specific rollback.
964 2011-10-19 Torvald Riegel <triegel@redhat.com>
966 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
967 re-initialization of the current method group.
968 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
970 2011-10-19 Torvald Riegel <triegel@redhat.com>
972 * alloc.cc (commit_allocations_2): Do not free transaction-local
973 memory when committing a nested transaction.
975 2011-10-19 Torvald Riegel <triegel@redhat.com>
977 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
978 serial-irrevocable dispatch, not serial.
980 2011-10-19 Torvald Riegel <triegel@redhat.com>
982 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
984 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
985 * method-serial.cc: Implement begin_or_restart().
986 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
987 dispatch-specific begin_or_restart().
988 (GTM::gtm_thread::restart): Same.
990 2011-08-23 Torvald Riegel <triegel@redhat.com>
992 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
993 restarting without switching to serial mode.
994 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
995 transaction state. Choose closed-nesting alternative if available.
996 (GTM::gtm_thread::set_default_dispatch): New.
997 (parse_default_method): New.
998 (GTM::gtm_thread::number_of_threads_changed): New.
999 * method-serial.cc (GTM::serial_mg): New method group class.
1000 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1002 (GTM::serial_dispatch): Same.
1003 (GTM::serialirr_onwrite_dispatch): Same.
1004 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1005 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1007 (GTM::gtm_thread::gtm_thread): Same.
1008 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1009 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1010 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1011 choose dispatch but set state according to dispatch here.
1012 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1013 (GTM::method_group): New class.
1014 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1015 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1016 * libitm.texi: Document TM methods, method groups, method life cycle.
1017 Rename method sets to method groups.
1019 2011-08-23 Torvald Riegel <triegel@redhat.com>
1021 * config/x86/tls.h: Moved to ...
1022 * config/linux/x86/tls.h: ... here.
1024 2011-08-23 Torvald Riegel <triegel@redhat.com>
1026 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1028 * config/x86/sjlj.S: Same.
1030 2011-08-19 Torvald Riegel <triegel@redhat.com>
1032 * config/linux/rwlock.h: New file.
1033 * config/linux/rwlock.c: New file.
1034 * configure.ac: Reenable futex support (undo SVN rev 157758).
1035 * Makefile.am: Same.
1036 * configure.tgt: Same.
1037 * config/linux/alpha/futex_bits.h: Same.
1038 * config/linux/futex.h: Same. Return number of woken processes.
1039 * config/linux/futex.cc: Same.
1040 (futex_wait): Remove spinning.
1041 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1042 Use __x86_64__ instead of __LP64__.
1043 * aclocal.m4: Include generic futex checks.
1044 * configure: Rebuild.
1045 * Makefile.in: Rebuild.
1046 * testsuite/Makefile.in: Rebuild.
1047 * beginend.cc: Include pthread.h.
1048 * config/posix/cachepage.cc: Same.
1050 2011-08-12 Torvald Riegel <triegel@redhat.com>
1052 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1053 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1055 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1057 (GTM::gtm_thread::thread_num): Removed.
1058 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1059 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1060 tx-to-thread renaming.
1061 * beginend.cc: Adapted to tx-to-thread renaming.
1062 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1063 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1064 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1065 gtm_transaction to gtm_thread.
1066 (_ITM_getThreadnum): Removed. Not supported anymore.
1067 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1068 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1069 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1070 gtm_tx-to-gtm_thr renaming if necessary.
1077 * alloc_cpp.cc: Same.
1078 * method-serial.cc: Same.
1079 * config/generic/tls.cc: Same.
1080 * config/posix/rwlock.h (gtm_rwlock): Same.
1081 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1083 2011-08-12 Torvald Riegel <triegel@redhat.com>
1085 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1087 (gtm_rwlock::read_unlock): Same.
1088 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1089 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1090 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1091 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1092 w_upgrade. Replaced by per-transaction flags (in shared_state).
1093 Added c_confirmed_writers.
1094 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1095 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1096 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1097 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1098 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1099 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1100 * libitm.texi: Document locking conventions and implementations in
1103 2011-08-12 Torvald Riegel <triegel@redhat.com>
1105 * libitm_i.h (next_tx): Add list of all threads' transaction.
1106 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1107 transaction with list of transactions and ...
1108 (thread_exit_handler): ... deregister here.
1109 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1110 * config/x86/target.h: Same.
1112 2011-08-12 Torvald Riegel <triegel@redhat.com>
1114 * testsuite/libitm.c++/static_ctor.C: New file.
1116 2011-08-12 Torvald Riegel <triegel@redhat.com>
1118 * testsuite/libitm.c/reentrant.c: New file.
1120 2011-08-12 Torvald Riegel <triegel@redhat.com>
1122 * config/generic/tls.h: Remove the free list for transactions and ...
1123 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1124 (GTM::gtm_transaction::operator delete): ... and release here.
1125 (thread_exit_handler): New. Delete tx when thread terminates.
1126 (thread_exit_init): New.
1127 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1128 * testsuite/libitm.c/txrelease.c: New file.
1130 2011-08-12 Torvald Riegel <triegel@redhat.com>
1132 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1133 * testsuite/libitm.c/notx.c: New file.
1135 2011-08-12 Torvald Riegel <triegel@redhat.com>
1137 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1138 * libitm_i.h (local_tid): ... to here.
1139 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1140 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1142 2011-08-12 Torvald Riegel <triegel@redhat.com>
1144 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1145 serialirr_onwrite_dispatch as new default for now.
1146 * method-serial.cc (serialirr_onwrite_dispatch): New.
1147 (GTM::dispatch_serialirr_onwrite): New.
1150 2011-08-12 Torvald Riegel <triegel@redhat.com>
1152 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1153 * query.cc (_ITM_getTransactionId): There is no active transaction if
1154 the current nesting level is zero.
1156 2011-07-28 Torvald Riegel <triegel@redhat.com>
1158 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1161 2011-07-28 Torvald Riegel <triegel@redhat.com>
1163 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1164 transaction properties from the caller instead of from the
1167 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1169 2011-07-28 Torvald Riegel <triegel@redhat.com>
1171 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1172 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1174 * method-serial.cc: Same.
1175 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1176 flat nesting as default, and closed nesting on demand.
1177 (GTM::gtm_transaction::rollback): Same.
1178 (_ITM_abortTransaction): Same.
1179 (GTM::gtm_transaction::restart): Same.
1180 (GTM::gtm_transaction::trycommit): Same.
1181 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1182 (choose_code_path): New.
1183 (GTM::gtm_transaction_cp::save): New.
1184 (GTM::gtm_transaction_cp::commit): New.
1185 * query.cc (_ITM_inTransaction): Support flat nesting.
1186 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1187 (GTM::gtm_transaction): Support flat and closed nesting.
1188 * alloc.cc (commit_allocations_2): New.
1189 (commit_cb_data): New helper struct.
1190 (GTM::gtm_transaction::commit_allocations): Handle nested
1192 * libitm.texi: Update user action section, add description of nesting.
1194 2011-07-28 Torvald Riegel <triegel@redhat.com>
1196 * libitm_i.h: Add closed nesting as restart reason.
1197 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1199 2011-07-28 Torvald Riegel <triegel@redhat.com>
1201 * useraction.cc: Use vector instead of list to store actions.
1202 Also support partial rollbacks for closed nesting.
1203 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1204 * beginend.cc: Same.
1206 2011-07-28 Torvald Riegel <triegel@redhat.com>
1208 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1209 closed_nesting flags, as well as a closed nesting alternative.
1210 * method-serial.cc: Same.
1211 (serial_dispatch): Renamed to serialirr_dispatch.
1212 (GTM::dispatch_serialirr): Same.
1213 (serial_dispatch_ul): Renamed to serial_dispatch.
1214 (GTM::dispatch_serial): Same.
1216 2011-07-28 Torvald Riegel <triegel@redhat.com>
1218 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1220 2011-07-28 Torvald Riegel <triegel@redhat.com>
1222 * aatree.h (aa_tree::remove): New.
1223 (aa_tree::operator new): Add placement new.
1225 2011-07-02 Torvald Riegel <triegel@redhat.com>
1227 * containers.h: New file.
1228 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1229 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1230 * common.h: ... to here.
1231 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1234 2011-06-30 Torvald Riegel <triegel@redhat.com>
1236 * libitm_i.h (STATE_ABORTING): Remove.
1237 * beginend.cc (_ITM_abortTransaction): Same.
1238 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1239 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1240 (_ITM_rollbackTransaction): Remove.
1241 * beginend.cc: Same.
1243 * libitm.texi: Document these ABI changes.
1245 2011-06-30 Torvald Riegel <triegel@redhat.com>
1247 * libitm.texi: New file.
1248 * Makefile.am: Add libitm.texi.
1249 * Makefile.in: Rebuild.
1251 2011-06-30 Torvald Riegel <triegel@redhat.com>
1253 * libitm_i.h: Move parts to common.h and dispatch.h.
1254 * common.h: New file.
1255 * dispatch.h: New file, new dispatch class.
1256 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1257 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1258 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1259 decision to retry.cc.
1260 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1262 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1263 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1265 * barrier.cc: Use new barriers definitions.
1266 (abi_dispatch::memmove_overlap_check): New.
1267 * config/x86/x86_sse.cc: Same.
1268 * config/x86/x86_avx.cc: Same.
1269 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1271 * Makefile.in: Rebuild.
1272 * method-readonly.cc: Remove.
1273 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1274 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1276 2011-06-30 Torvald Riegel <triegel@redhat.com>
1278 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1279 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1280 * testsuite/libitm.c/dropref-2.c: Same.
1281 * testsuite/libitm.c/dropref.c: Same.
1283 2011-06-30 Torvald Riegel <triegel@redhat.com>
1285 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1286 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1287 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1289 * barrier.tpl: Same.
1291 * config/generic/tls.h: Same.
1292 * config/x86/tls.h: Same.
1296 * method-readonly.cc: Same.
1297 * method-serial.cc: Same.
1298 * method-wbetl.cc: Same.
1301 2011-03-03 Richard Henderson <rth@redhat.com>
1303 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1304 From Patrik Marlier <patrick.marlier@unine.ch>.
1306 2011-02-03 Richard Henderson <rth@redhat.com>
1308 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1309 * configure.ac: Use it.
1310 * configure, config.h.in: Rebuild.
1311 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1312 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1313 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1314 * libitm.map: Use wildcards to match size_t mangling.
1316 2010-12-14 Richard Henderson <rth@redhat.com>
1318 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1319 blocks of TIDs per thread.
1320 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1321 (setup_gtm_thr): Return the thread structure.
1322 * config/x86/tls.h (setup_gtm_thr): Likewise.
1324 2010-12-14 Richard Henderson <rth@redhat.com>
1326 * clone.cc (table_lock): Remove.
1327 (find_clone): Don't take it.
1328 (ExcludeTransaction): New helper class.
1329 (_ITM_registerTMCloneTable): Use it.
1330 (_ITM_deregisterTMCloneTable): Likewise.
1332 2010-12-14 Richard Henderson <rth@redhat.com>
1334 * config/x86/tls.h: New file.
1336 2010-07-15 Richard Henderson <rth@redhat.com>
1338 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1339 * Makefile.in: Rebuild.
1341 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1343 * method-wbetl.cc (trydropreference): Fix source line.
1345 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1347 * libitm.h: Add comment.
1348 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1350 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1352 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1353 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1354 available, use pthread mutexes.
1355 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1356 * config.h.in: Regenerate.
1357 * configure: Regenerate.
1359 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1361 * libitm.h (ITM_PURE): Define.
1362 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1364 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1366 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1367 (validate): Add comment.
1368 (trydropreference): New.
1369 * method-readonly.cc (class readonly_dispatch): Add
1371 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1372 Call trydropreference().
1373 * libitm.h (_ITM_dropReferences): Remove const attribute.
1374 * method-serial.cc (class serial_dispatch): Add trydropreference.
1375 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1377 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1379 * memcpy.cc (do_memcpy): Comment.
1381 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1383 * barrier.tpl: Add comments throughout.
1385 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1387 * method-wbetl.cc (struct w_entry): Add comments.
1391 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1393 * alloc_c.cc (_ITM_dropReferences): New.
1394 * libitm.map (_ITM_dropReferences): Add.
1395 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1396 * libitm_i.h (struct gtm_transaction): Declare
1397 drop_references_allocations and drop_references_local.
1398 * local.cc (rollback_local): Ignore memory when applicable.
1399 (drop_references_local): New.
1401 2010-06-23 Richard Henderson <rth@redhat.com>
1403 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1404 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1405 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1406 * config/alpha/target.h: Likewise.
1407 * config/generic/tls.cc (gtm_mask_stack): Use it.
1409 2010-06-23 Richard Henderson <rth@redhat.com>
1411 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1412 a mutex instead of trying a lock-free compare-and-swap on the list.
1413 (gtm_cacheline_page::operator delete): Likewise.
1415 2010-06-16 Richard Henderson <rth@redhat.com>
1417 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1418 that overlap the libitm stack.
1419 * barrier.tpl: Mark incoming stack.
1420 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1421 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1422 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1423 * memcpy.cc, memset.cc: Likewise.
1424 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1425 * config/generic/tls.h (gtm_thread): Add stack_top member.
1426 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1427 * libitm_i.h (gtm_mask_stack): Declare.
1428 * config/generic/tls.cc: New file.
1429 * Makefile.am (libitm_la_SOURCES): Add it.
1430 (AM_CXXFLAGS): Turn off exceptions.
1431 * Makefile.in: Rebuild.
1433 2010-06-16 Richard Henderson <rth@redhat.com>
1435 * alloc.cc (struct gtm_alloc_action): Move definition ...
1436 * libitm_i.h: ... here.
1437 (class gtm_transaction): Declare new and delete.
1438 * beginend.cc (alloc_tx): Reformulate as operator new.
1439 (free_tx): Reformulate as operator delete.
1440 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1442 2010-06-11 Richard Henderson <rth@redhat.com>
1444 * clone.cc (clone_entry_compare): Fix typo.
1445 From Patrik Marlier <patrick.marlier@unine.ch>.
1447 2010-05-13 Richard Henderson <rth@redhat.com>
1449 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1452 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1454 * libitm_i.h (struct gtm_transaction): Remove
1455 get_allocation_size.
1456 (record_allocation): Remove size parameter.
1457 * libitm.map (_ITM_realloc): Remove.
1458 * alloc_c.cc (_ITM_realloc): Remove.
1459 (_ITM_malloc): Remove size argument to record_allocation.
1460 (_ITM_calloc): Same.
1461 * alloc_cpp.cc (_ZGTtnwm): Same.
1462 (_ZGTtnwmRKSt9nothrow_t): Same.
1464 (_ZGTtnamRKSt9nothrow_t): Same.
1465 * alloc.cc (struct gtm_alloc_action): Remove size.
1466 (get_allocation_size): Remove.
1467 (commit_allocations): Add comment.
1468 (record_allocation): Remove size parameter.
1469 (forget_allocation): Remove set of size.
1471 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1473 * Makefile.am (abi_version): New.
1474 (AM_CXXFLAGS): Pass abi_version.
1475 * Makefile.in: Regenerate.
1476 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1478 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1480 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1481 _ITM_getTMCloneOrIrrevokable.
1482 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1483 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1485 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1487 * configure.ac: Remove Linux futex support.
1488 * configure.tgt (config_path): Same.
1489 * Makefile.am: Same.
1490 * config/linux: Remove entire directory.
1491 * configure: Rebuild.
1492 * Makefile.in: Rebuild.
1493 * testsuite/Makefile.in: Rebuild.
1495 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1497 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1498 switching to serial mode.
1499 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1501 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1503 * configure.tgt: Add emacs -*- tags.
1504 * barrier.tpl: Same.
1506 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1508 * Makefile.am: Rename serial.cc to method-serial.cc.
1509 * Makefile.in: Regenerate with automake 1.11.1.
1510 * testsuite/Makefile.in: Same.
1511 * aclocal.m4: Regenerate with aclocal 1.11.1.
1512 * method-serial.cc: Rename from serial.cc.
1513 * libitm_i.h (struct gtm_transaction): Update comment on
1516 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1518 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1519 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1521 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1523 * configure: Rebuild.
1525 2009-11-12 Richard Henderson <rth@redhat.com>
1527 * Rewrite everything in C++.
1529 2009-11-03 Richard Henderson <rth@redhat.com>
1531 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1532 * Makefile.am (libitm_la_SOURCES): Add them.
1533 * configure.ac (ARCH_X86): New conditional.
1534 * Makefile.in, configure: Rebuild.
1535 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1536 Move futex setup into "other system configury" case.
1537 * local.c (rollback_local): Merge into ...
1538 (GTM_rollback_local): ... here.
1539 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1540 (_ITM_LB): Define as an alias to GTM_LB.
1542 2009-11-03 Richard Henderson <rth@redhat.com>
1544 * method-readonly.c: New file.
1545 * Makefile.am (libitm_la_SOURCES): Add it.
1546 * Makefile.in: Rebuild.
1547 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1548 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1549 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1550 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1551 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1552 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1553 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1554 gtm_get_clock, gtm_inc_clock): New.
1555 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1556 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1557 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1558 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1559 replace uses with new libitm_i.h symbols.
1560 (dispatch_wbetl): Rename from wbetl_dispatch.
1561 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1562 away from dispatch_readonly; abort if the beginTransaction call
1563 asserted that the transaction was readonly.
1565 2009-11-03 Richard Henderson <rth@redhat.com>
1567 * memset.c: New file.
1568 * Makefile.am (libitm_la_SOURCES): Add it.
1569 * Makefile.in: Rebuild.
1570 * testsuite/libitm.c/memset-1.c: New.
1572 2009-11-03 Richard Henderson <rth@redhat.com>
1574 * dispatch.c: Remove file.
1575 * useraction.c (struct gtm_user_action): Move from libitm.h.
1576 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1577 (serial_memset, serial_memmove, serial_memcpy): Remove.
1578 (serial_W*, serial_R*): Remove.
1579 (serial_dispatch): Update to match.
1580 * configure.ac: Move Werror down below configure checks. Don't
1581 check for sys/loadavg.h, do check for malloc.h. Don't check for
1582 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1583 Use GCC_AC_FUNC_MMAP_BLACKLIST
1584 * libitm.h: Split out all internal items to...
1585 * libitm_i.h: ... here. New file.
1586 * copymask.c: New file.
1587 * local.c (struct gtm_local_undo): Move from libitm.h.
1588 (GTM_alloc_local): Rename from alloc_local; export.
1589 * memcpy.c: New file.
1590 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1591 * config/posix/page.c: New file.
1592 * config/posix/target_tls.h: Remove file.
1593 * barrier.c: New file.
1594 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1596 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1597 * method-wbetl.c: Rewrite for new cacheline methods.
1598 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1600 * config/alpha/sjlj.S: Fix typo.
1601 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1602 * config/alpha/copymask.c: New file.
1603 * config/alpha/target.h (CACHELINE_SIZE): New.
1604 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1606 * config/x86/target_i.h: Copy functions from x86/target.h.
1607 * config/x86/copymask.c: New file.
1608 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1609 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1610 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1611 * config/x86/target_tls.h: Move contents to target_i.h.
1613 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1614 * testsuite/libitm.c/memcpy-1.c: New.
1616 2009-10-22 Richard Henderson <rth@redhat.com>
1618 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1619 (AM_CCASFLAGS): New.
1620 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1621 saving/restoring _AC_ARG_VAR_PRECIOUS.
1622 * Makefile.in, aclocal.m4, config.h.in, configure,
1623 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1625 2009-10-22 Richard Henderson <rth@redhat.com>
1627 * testsuite/*: Update for new compiler syntax.
1629 2009-10-21 Richard Henderson <rth@redhat.com>
1631 * libitm.h (_ITM_abortReason): Add outerAbort.
1633 2009-08-03 Richard Henderson <rth@redhat.com>
1635 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1636 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1637 * method-wbetl.c (struct w_entry): Remove mask.
1638 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1641 2009-07-22 Richard Henderson <rth@redhat.com>
1643 * eh_cpp.c: New file.
1644 * Makefile.am (libitm_la_SOURCES): Add it.
1645 * Makefile.in: Rebuild.
1646 * beginend.c (GTM_rollback_transaction): Undo exception state.
1647 (GTM_trycommit_transaction): Mark inline.
1648 (GTM_trycommit_and_finalize_transaction): Split out from ...
1649 (_ITM_commitTransaction): ... here.
1650 (_ITM_commitTransactionEH): New function.
1651 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1652 cxa_unthrown, eh_in_flight; reorder.
1654 * testsuite/libitm.c++/c++.exp: New.
1655 * testsuite/libitm.c++/eh-1.C: New.
1657 * aatree.c (aa_free): Remove REGPARM.
1658 * aatree.h: Remove all REGPARM.
1660 2009-07-18 Richard Henderson <rth@redhat.com>
1662 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1663 * Makefile.am (libitm_la_SOURCES): Add them.
1664 * Makefile.in: Rebuild.
1665 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1666 (GTM_trycommit_transaction): Likewise.
1667 * libitm.h: Include aatree.h
1668 (struct gtm_alloc_action): New.
1669 (struct gtm_transaction): Add alloc_actions.
1670 (GTM_record_allocation, GTM_forget_allocation): Declare.
1671 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1672 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1673 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1674 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1675 _ZGTtdaPvRKSt9nothrow_t): Export.
1677 2009-07-18 Richard Henderson <rth@redhat.com>
1679 * target_tls.h: Move ...
1680 * config/posix/target_tls.h: ... here.
1682 2009-07-07 Richard Henderson <rth@redhat.com>
1684 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1686 2009-07-07 Richard Henderson <rth@redhat.com>
1690 2009-07-07 Richard Henderson <rth@redhat.com>
1692 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1693 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1695 * configure.tgt: Don't use -ftls-model for x86 linux.
1696 * libitm.h: Include target.h after standard includes.
1697 (_gtm_thr): Rename from gtm_thr.
1698 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1699 (gtm_disp, set_gtm_disp): New.
1700 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1701 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1702 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1704 2009-07-07 Richard Henderson <rth@redhat.com>
1706 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1708 2009-07-06 Richard Henderson <rth@redhat.com>
1710 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1711 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1712 (_ITM_beginTransaction): Take variadic arguments.
1713 (_ITM_registerThrownObject): Declare.
1714 * beginend.c, serial.c: Update.
1715 * libitm.map: Add _ITM_registerThrownObject.
1717 2009-01-28 Richard Henderson <rth@redhat.com>
1719 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1720 * Makefile.in: Rebuild.
1721 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1722 (GTM_restart_transaction): Fix uninstrumented code check.
1723 * retry.c (GTM_decide_retry_strategy): Add serial check.
1724 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1725 automatically go irrevokable when in serial mode.
1726 * clone.c: New file.
1727 * libitm.h, libitm.map: Update.
1729 2009-01-27 Richard Henderson <rth@redhat.com>
1731 * Makefile.am (LTCCASCOMPILE): Define.
1732 (libitm_la_SOURCES): Add methid-wbetl.c.
1733 * testsuite/Makefile.am: New
1734 * configure.ac: Add testsuite/Makefile.
1735 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1736 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1737 (_ITM_abortTransaction): Finalize implementation method; pass
1738 transaction properties to longjmp.
1739 (GTM_restart_transaction): Split out from ...
1740 (_ITM_commitTransaction): ... here.
1741 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1742 Move to config/x86/target.h.
1743 * config/linux/alpha/futex_bits.h: New.
1744 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1745 * config/x86/target.h: Disable target types for 32-bit.
1746 * config/alpha/sjlj.S, config/alpha/target.h: New.
1747 * libitm.h (struct gtm_dispatch): Add init, fini.
1748 (enum restart_reason): New.
1749 (struct gtm_transaction): Add method and restarts.
1750 * retry.c (GTM_decide_retry_strategy): Implement.
1751 * serial.c (serial_init, serial_fini): New.
1752 (GTM_serialmode): Finialize outgoing method.
1753 * method-wbetl.c: New.
1755 2008-12-09 Richard Henderson <rth@redhat.com>
1757 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1758 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1759 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1760 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1761 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1762 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1763 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1764 * serial.c (serial_R##T, serial_W##T): Likewise.
1766 2008-11-21 Richard Henderson <rth@redhat.com>