1 2015-07-16 Release Manager
5 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
8 * config/powerpc/sjlj.S: Port to Xcode 2.5.
10 2015-04-22 Release Manager
14 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
17 * libitm.c/stackundo.c (test2): Make it static.
20 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22 Update copyright years.
24 2015-01-05 Jakub Jelinek <jakub@redhat.com>
26 * libitm.texi: Bump @copying's copyright year.
28 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30 * testsuite/lib/libitm.exp: Load target-utils.exp.
31 Move load of target-supports.exp earlier.
33 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
35 * configure.tgt (x86_64): Tune -m32 multilib to generic.
37 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
40 * configure: Regenerated.
42 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
45 * configure: Regenerate.
47 2014-10-06 Marek Polacek <polacek@redhat.com>
49 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
50 * testsuite/libitm.c/memset-1.c: Likewise.
52 2014-07-24 Richard Henderson <rth@redhat.com>
54 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
55 addressing mode in epilogue.
57 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
60 -mclear-hwcap instead.
61 * configure: Regenerate.
62 * clearcap.map: Remove.
64 2014-05-21 John Marino <gnugcc@marino.st>
66 * configure.tgt (*-*-dragonfly*): New target.
68 2014-05-19 Richard Henderson <rth@redhat.com>
70 * config/aarch64/sjlj.S: New file.
71 * config/aarch64/target.h: New file.
72 * configure.tgt: Enable aarch64.
74 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
76 * config/generic/asmcfi.h: Also check for
77 __GCC_HAVE_DWARF2_CFI_ASM.
79 2013-04-02 Richard Henderson <rth@redhat.com>
81 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
82 * config/arm/target.h, config/sh/target.h: Likewise.
83 * config/sparc/target.h, config/x86/target.h: Likewise.
85 2014-03-26 Jakub Jelinek <jakub@redhat.com>
87 * config/linux/futex_bits.h: Include errno.h.
88 (sys_futex0): If syscall returns -1, return -errno rather than
91 2014-03-26 Joseph Myers <joseph@codesourcery.com>
93 * libitm.texi (Index): Rename to Library Index.
95 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
98 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
99 (x86_avx.lo): Append -mavx to CXXFLAGS.
100 * Makefile.in: Regenerate.
102 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
104 Update copyright years
106 2014-01-02 Tobias Burnus <burnus@net-b.de>
108 * libitm.texi: Bump @copying's copyright year.
110 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
112 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
113 (FUNC): Define ELFv2 variant.
120 2013-09-20 Alan Modra <amodra@gmail.com>
122 * configure: Regenerate.
124 2013-08-30 Torvald Riegel <triegel@redhat.com>
126 * config/posix/rwlock.cc: Fix initialization order.
128 2013-08-30 Torvald Riegel <triegel@redhat.com>
130 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
131 (htm_fastpath): Assign an asm name.
132 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
134 (_ITM_actions): Likewise.
135 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
137 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
138 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
139 field to the start of the structure.
140 * config/linux/rwlock.h (gtm_rwlock): Update comments.
141 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
142 handling for custom HTM fast paths.
144 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
146 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
148 * configure.tgt: Add -msoft-float to XCFLAGS.
150 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
152 * configure.tgt: Add -msoft-float to XCFLAGS.
154 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
156 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
157 (htm_transaction_active): Enable zEC12 instructions in the
159 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
161 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
163 * acinclude.m4: Add htm asm check for s390.
164 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
165 * configure: Regenerate.
166 * config/s390/target.h: Remove __HTM__ check.
167 (htm_available): Call getauxval to get hwcaps and check whether
168 HTM is available or not.
170 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
172 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
173 * configure.ac: Use it.
174 (AC_CHECK_HEADERS): Check for sys/auxv.h.
175 (AC_CHECK_FUNCS): Check for getauxval.
176 * config.h.in, configure: Rebuild.
177 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
178 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
179 (USE_HTM_FASTPATH): Define.
180 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
181 _HTM_RETRIES) New macros.
182 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
183 htm_begin_success, htm_commit, htm_transaction_active): New functions.
185 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
187 * config/s390/target.h: Include htmintrin.h.
188 (_HTM_ITM_RETRIES): New macro definition.
189 (htm_available, htm_init, htm_begin, htm_begin_success)
190 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
192 2013-06-20 Iain Sandoe <iain@codesourcery.com>
193 Cesar Philippidis <cesar@codesourcery.com>
195 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
196 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
197 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
198 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
200 2013-06-20 Torvald Riegel <triegel@redhat.com>
202 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
203 (_ITM_getTransactionId): Same.
204 * config/x86/target.h (htm_transaction_active): New.
206 2013-06-20 Torvald Riegel <triegel@redhat.com>
209 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
212 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
215 * local_atomic (__always_inline): Always define our version.
216 (__calculate_memory_order): Mark inline.
217 (atomic_thread_fence): Ditto.
218 (atomic_signal_fence): Ditto.
219 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
220 (atomic_bool::atomic_flag_clear_explicit): Ditto.
221 (atomic_bool::atomic_flag_test_and_set): Ditto.
222 (atomic_bool::atomic_flag_clear): Ditto.
224 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
226 * config/s390/sjlj.S: New file.
227 * config/s390/target.h: New file.
228 * configure.tgt: Set options for S/390.
230 2013-03-23 Andi Kleen <ak@linux.intel.com>
232 * local_atomic (__always_inline): Add.
233 (__calculate_memory_order, atomic_thread_fence,
234 atomic_signal_fence, test_and_set, clear, store, load,
235 exchange, compare_exchange_weak, compare_exchange_strong,
236 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
237 Add __always_inline to force inlining.
239 2013-02-11 Iain Sandoe <iain@codesourcery.com>
240 Jack Howarth <howarth@bromo.med.uc.edu>
241 Patrick Marlier <patrick.marlier@gmail.com>
244 * alloc_cpp.cc: Enable function declarations on darwin.
245 * eh_cpp.cc: Likewise.
247 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
249 Update copyright years.
251 2012-11-09 Torvald Riegel <triegel@redhat.com>
253 * beginend.cc (htm_fastpath): New.
254 (gtm_thread::begin_transaction, _ITM_commitTransaction,
255 _ITM_commitTransactionEH): Add HTM fastpath handling.
256 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
257 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
258 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
259 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
260 * configure.tgt: Add -mrtm to XCFLAGS.
261 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
262 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
263 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
264 * retry.cc (parse_default_method): Add HTM method parsing.
265 (gtm_thread::number_of_threads_changed): Use HTM by default if
268 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
270 * configure: Regenerate.
272 2012-10-31 Richard Henderson <rth@redhat.com>
274 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
275 * configure.ac: Use it.
276 * config.h.in, configure: Rebuild.
277 * testsuite/Makefile.in: Rebuild.
279 2012-10-24 Torvald Riegel <triegel@redhat.com>
281 * libitm.texi: Clarify ABI requirements for data-logging functions.
283 2012-10-24 Torvald Riegel <triegel@redhat.com>
285 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
286 it requires serial mode instead of assuming that for certain
288 * dispatch.h (abi_dispatch::requires_serial): New.
289 (abi_dispatch::abi_dispatch): Adapt.
290 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
291 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
292 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
293 serial_dispatch::serial_dispatch,
294 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
296 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
298 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
299 and ia32 declarations some more.
300 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
302 2012-09-20 Jakub Jelinek <jakub@redhat.com>
305 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
306 * configure: Regenerate.
307 * Makefile.in: Regenerate.
309 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
311 * configure: Regenerated.
313 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
315 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
317 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
319 * eh_cpp.cc: Fix __cxa_end_catch declaration.
321 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
323 * configure: Regenerated.
325 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
328 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
331 2012-04-03 Tristan Gingold <gingold@adacore.com>
333 * configure: Regenerate.
335 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
338 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
340 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
342 * testsuite/lib/libitm.exp: load fortran-modules.exp
344 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346 * configure.tgt (*-*-irix6*): Remove.
348 2012-03-13 Torvald Riegel <triegel@redhat.com>
351 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
354 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 * configure.tgt (*-*-osf*): Remove.
357 * configure: Regenerate.
359 2012-03-05 Torvald Riegel <triegel@redhat.com>
361 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
362 memtransfer/memset if size isn't larger than zero.
364 2012-03-02 Torvald Riegel <triegel@redhat.com>
366 * libitm.texi: Link to specification and add a usage example.
368 2012-02-24 Torvald Riegel <triegel@redhat.com>
370 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
371 default dispatch for more than 1 thread to ml_wt.
373 2012-02-20 Torvald Riegel <triegel@redhat.com>
375 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
377 2012-02-20 Torvald Riegel <triegel@redhat.com>
379 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
381 2012-02-20 Torvald Riegel <triegel@redhat.com>
383 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
384 serial mode corner cases made obsolete by prior gtm_rwlock changes.
385 (gl_wt_dispatch.rollback): Same.
387 2012-02-20 Torvald Riegel <triegel@redhat.com>
389 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
391 2012-02-20 Torvald Riegel <triegel@redhat.com>
393 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
394 for RfW src. Optimize number of calls to gtm_thr.
396 2012-02-20 Torvald Riegel <triegel@redhat.com>
398 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
400 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
401 (default_dispatch): Make atomic.
402 (GTM::gtm_thread::set_default_dispatch): Access atomically.
403 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
404 use decide_begin_dispatch() if default_dispatch might have changed.
405 (GTM::gtm_thread::number_of_threads_changed): Initialize
406 default_dispatch here.
408 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
409 Patrick Marlier <patrick.marlier@gmail.com>
412 * alloc_cpp.cc: No dummy definitions for darwin.
413 * eh_cpp.cc: Likewise.
415 2012-02-14 Richard Henderson <rth@redhat.com>
417 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
419 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
421 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
423 2012-02-14 Torvald Riegel <triegel@redhat.com>
425 * libitm_i.h (GTM::gtm_rwlog_entry): New.
426 (GTM::gtm_thread): Add read and write logs.
427 (GTM::dispatch_ml_wt): Declare.
428 * retry.cc (parse_default_method): Support ml_wt.
429 * method-ml.cc: New file.
430 * Makefile.am: Add method-ml.cc.
431 * Makefile.in: Regenerate.
433 2012-02-14 Torvald Riegel <triegel@redhat.com>
435 * dispatch.h (GTM::abi_dispatch::supports): New.
436 (GTM::method_group::reinit): New.
437 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
438 (GTM::gtm_thread::number_of_threads_changed): Check that the method
439 supports the current situation.
441 2012-02-14 Torvald Riegel <triegel@redhat.com>
443 * util.cc (GTM::xcalloc): New.
444 * common.h (GTM::xcalloc): Declare.
446 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
448 * config/sparc/target.h (cpu_relax): Read from CC register.
449 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
451 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
453 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
455 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
457 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
458 * config/sparc/cacheline.h: New file.
459 * config/sparc/target.h: Likewise.
460 * config/sparc/sjlj.S: Likewise.
461 * config/linux/sparc/futex_bits.h: Likewise.
463 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
465 * configure.ac (link_itm): Fix comment.
466 * configure: Regenerate.
467 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
469 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
472 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
473 Correct libgomp references.
475 2012-01-24 Torvald Riegel <triegel@redhat.com>
477 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
480 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
482 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
484 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
485 offset values. Do not copy return address. Decrement stack
487 (GTM_longjump) [__x86_64__]: Update offset values.
489 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
492 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
493 the first function argument to %eax.
495 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497 * libitm.h (_ITM_getThreadnum): Remove.
498 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
500 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502 * clearcap.map: New file.
503 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
504 * configure.ac: Call it.
505 Clear HWCAP_LDFLAGS if defaulting to -mavx.
506 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
507 * configure: Regenerate.
508 * Makefile.in: Regenerate.
509 * testsuite/Makefile.in: Regenerate.
511 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
515 include, exclude options.
517 2012-01-14 Torvald Riegel <triegel@redhat.com>
519 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
521 * containers.h (GTM::vector::set_size): New.
523 2012-01-14 Torvald Riegel <triegel@redhat.com>
526 * config/generic/tls.h (GTM::mask_stack_top): New.
527 (GTM::mask_stack_bottom): Declare.
528 * config/generic/tls.c (GTM::mask_stack_bottom): New.
529 * local.cc (gtm_undolog::rollback): Filter out any updates that
530 overlap the libitm stack. Add current transaction as parameter.
531 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
532 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
533 * testsuite/libitm.c/stackundo.c: New test.
535 2012-01-10 Richard Henderson <rth@redhat.com>
537 * libitm_i.h (_Unwind_DeleteException): Declare weak.
538 * eh_cpp.cc (_Unwind_DeleteException): Define for
539 !HAVE_ELF_STYLE_WEAKREF.
541 2012-01-08 Torvald Riegel <triegel@redhat.com>
543 * local.cc (GTM_LB): Use GTM::gtm_undolog.
544 (GTM::gtm_thread::drop_references_undolog): Remove.
545 (GTM::gtm_thread::commit_undolog,
546 GTM::gtm_thread::rollback_undolog): Move to ...
547 * libitm_i.h (GTM::gtm_undolog): ...here. New.
548 (GTM::gtm_undolog_entry): Remove.
549 (GTM::gtm_thread): Adapt.
550 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
551 (GTM::gtm_thread::trycommit): Adapt.
552 * method-serial.cc (serial_dispatch::log): Adapt.
553 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
554 (gl_wt_dispatch::store): Fix likely/unlikely.
555 * containers.h (GTM::vector::resize): Add additional_capacity
556 parameter and handle it.
557 (GTM::vector::resize_noinline): New/adapt.
558 (GTM::vector::push): New.
560 2012-01-06 Richard Henderson <rth@redhat.com>
562 * configure.tgt: Support powerpc-linux and powerpc-darwin.
563 * config/linux/powerpc/futex_bits.h: New file.
564 * config/powerpc/cacheline.h: New file.
565 * config/powerpc/sjlj.S: New file.
566 * config/powerpc/target.h: New file.
567 * config/generic/asmcfi.h (cfi_offset): New.
568 (cfi_restore, cfi_undefined): New.
570 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
573 * testsuite/libitm.c/reentrant.c: Remove xfail.
574 (thread): Pass x to pure().
575 From Patrik Marlier <patrick.marlier@gmail.com>.
577 2011-12-24 Torvald Riegel <triegel@redhat.com>
579 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
580 privatization safety if already in serial mode.
582 2011-12-24 Torvald Riegel <triegel@redhat.com>
584 * beginend.cc (GTM::gtm_thread::restart): Add and handle
585 finish_serial_upgrade parameter.
586 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
587 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
588 Don't unset reader flag.
589 (GTM::gtm_rwlock::write_upgrade_finish): New.
590 * config/posix/rwlock.cc: Same.
591 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
593 * config/posix/rwlock.h: Same.
594 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
595 flag after commit or after rollback when restarting.
597 2011-12-24 Torvald Riegel <triegel@redhat.com>
599 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
600 (GTM::gtm_thread::try_commit): Changed memory order.
601 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
603 * config/linux/x86/futex_bits.h (sys_futex0): Same.
604 * config/linux/sh/futex_bits.h (sys_futex0): Same.
605 * config/linux/futex_bits.h (sys_futex0): Same.
606 * config/linux/futex.cc (futex_wait, futex_wake): Same.
607 * config/linux/futex.h (futex_wait, futex_wake): Same.
608 * config/linux/rwlock.h (gtm_rwlock::writers,
609 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
611 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
612 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
613 gtm_rwlock::write_unlock): Fix memory orders and fences.
614 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
615 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
616 gtm_rwlock::write_unlock): Same.
617 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
618 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
619 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
621 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
622 gl_wt_dispatch::load, gl_wt_dispatch::store,
623 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
624 orders and fences. Add comments.
626 2011-12-21 Jakub Jelinek <jakub@redhat.com>
628 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
629 * Makefile.in: Regenerated.
631 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
633 * configure.tgt: Add sh* case.
634 * config/sh/target.h: New file.
635 * config/sh/sjlj.S: New file.
636 * config/linux/sh/futex_bits.h: New file.
638 2011-12-14 Richard Henderson <rth@redhat.com>
640 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
641 * config/arm/sjlj.S, config/arm/target.h: New files.
642 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
643 (cfi_rel_offset): New.
644 * config/linux/futex_bits.h: New file.
645 * config/linux/futex.cc: Include futex_bits.h here...
646 * config/linux/futex.h: ... not here.
647 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
648 * configure.ac (ARCH_AM): New conditional.
649 * Makefile.in, configure: Rebuild.
650 * configure.tgt: Handle ARM.
652 2011-12-13 Richard Henderson <rth@redhat.com>
654 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
655 signed/unsigned comparison werror.
657 * local_atomic: New file.
658 * libitm_i.h: Include it.
659 (gtm_thread::shared_state): Use atomic template.
660 * beginend.cc (GTM::gtm_clock): Use atomic template.
661 (global_tid): Use atomic template if 64-bit atomics available.
662 (gtm_thread::gtm_thread): Update shared_state access.
663 (gtm_thread::trycommit): Likewise.
664 (choose_code_path): Update global_tid access.
665 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
666 * stmlock.h (GTM::gtm_clock): Use atomic template.
667 (gtm_get_clock, gtm_inc_clock): Update accesses.
668 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
669 redundant __sync_synchronize after atomic shared_state access.
670 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
671 (gtm_rwlock::write_lock_generic): Likewise.
672 (gtm_rwlock::read_unlock): Likewise.
673 * config/alpha/target.h (atomic_read_barrier): Remove.
674 (atomic_write_barrier): Remove.
675 * config/x86/target.h (atomic_read_barrier): Remove.
676 (atomic_write_barrier): Remove.
678 2011-11-30 Richard Henderson <rth@redhat.com>
680 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
681 * beginend.c (_ITM_abortTransaction): Update to match.
682 (GTM::gtm_thread::restart): Likewise.
683 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
684 * config/x86/sjlj.S (GTM_longjmp): Likewise.
686 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
688 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
689 * Makefile.in: Regenerate.
691 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
693 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
694 * alloc_cpp.cc: Generate dummy functions if we don't
695 HAVE_ELF_STYLE_WEAKREF.
696 * eh_cpp.cc: Likewise.
697 * configure: Regenerate.
698 * aclocal.m4: Likewise.
699 * config.h.in: Likewise.
700 * Makefile.in: Likewise.
701 * testsuite/Makefile.in: Likewise.
703 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
705 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
706 __USER_LABEL_PREFIX__ for targets that use it.
707 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
708 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
709 in portability to non-elf targets.
710 (GTM_longjmp): Likewise.
711 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
714 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
716 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
717 * testsuite/libitm.c/memset-1.c: Likewise.
719 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
721 * configure: Regenerate.
723 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
725 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
726 (LIBITM_ENABLE_SYMVERS): Handle sun style.
727 * Makefile.am: Handle sun style versioning.
728 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
729 * configure: Regenerate.
730 * Makefile.in: Regenerate.
732 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
734 * config/generic/asmcfi.h: Fix comment.
735 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
736 sequence without .hidden support, error for non-ELF targets.
737 (GTM_longjmp) [__ELF__]: Only use .hidden if
738 HAVE_ATTRIBUTE_VISIBILITY.
740 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
742 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
743 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
745 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
746 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
748 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
751 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
752 * configure: Regenerate.
754 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
756 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
758 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
760 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
762 (.note.GNU-stack): Only use if __linux__.
763 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
764 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
765 * testsuite/libitm.c/reentrant.c: Likewise.
766 * testsuite/libitm.c/simple-2.c: Likewise.
767 * testsuite/libitm.c/txrelease.c: Likewise.
768 * testsuite/libitm.c++/static_ctor.C: Likewise.
770 2011-11-10 Richard Henderson <rth@redhat.com>
772 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
773 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
774 * configure.ac (ARCH_X86_AVX): New conditional.
775 * Makefile.in, configure: Rebuild.
777 2011-11-09 Richard Henderson <rth@redhat.com>
779 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
780 * configure.ac: Use it.
781 * config.h.in, configure: Rebuild.
782 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
784 2011-11-09 Richard Henderson <rth@redhat.com>
786 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
787 * config/alpha/unaligned.h: Remove file.
788 * config/generic/unaligned.h: Remove file.
789 * config/x86/unaligned.h: Remove file.
790 * config/generic/cachepage.h: Remove file.
791 * config/posix/cachepage.cc: Remove file.
792 * config/generic/cacheline.cc: Remove file.
793 * config/x86/cacheline.cc: Remove file.
794 * config/generic/cacheline.h (gtm_cacheline): Remove the
795 store_mask, copy_mask, copy_mask_wb methods.
796 * config/x86/cacheline.h: Likewise.
797 * config/alpha/cacheline.h: Fall back to generic after setting size.
798 * config/generic/tls.cc (gtm_mask_stack): Remove.
799 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
800 (GTM_vpalignr_table): Remove.
801 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
802 (GTM_pshift_table): Remove.
803 * config/libitm_i.h: Don't include cachepage.h.
804 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
805 * Makefile.in, testsuite/Makefile.in: Rebuild.
807 2011-11-09 Richard Henderson <rth@redhat.com>
809 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
810 to emit branch prediction hint.
812 * config/x86/sjlj.S: Protect elf directives with __ELF__.
813 Protect .note.GNU-stack with __linux__.
815 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
816 * configure, aclocal.m4, config.h.in: Rebuild.
817 * config/generic/asmcfi.h: New file.
818 * config/x86/sjlj.S: Use it.
820 2011-11-08 Richard Henderson <rth@redhat.com>
822 * local.cc (_ITM_LB): Use a normal call, not a function alias.
824 2011-11-08 Richard Henderson <rth@redhat.com>
826 * configure.tgt: Test correct directory for supported cpus.
828 * configure.ac: Exit if unsupported.
829 * configure: Rebuild.
830 * configure.tgt: Delete boilerplate from libgomp for unsupported
831 targets. Set UNSUPPORTED for unsupported targets.
833 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
835 * configure.tgt: Handle i386 like i[456]86.
836 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
838 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
839 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
841 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
843 * method-wbetl.cc: Update copyright notice.
850 * useraction.cc: Same.
854 * config/generic/tls.cc: Same.
855 * config/generic/cacheline.h: Same.
856 * config/generic/cachepage.h: Same.
857 * config/generic/cacheline.cc: Same.
858 * config/generic/unaligned.h: Same.
859 * config/x86/cacheline.h: Same.
860 * config/x86/cacheline.cc: Same.
861 * config/x86/unaligned.h: Same.
862 * config/alpha/cacheline.h: Same.
863 * config/alpha/unaligned.h: Same.
864 * config/alpha/sjlj.S: Same.
865 * config/posix/cachepage.cc: Same.
866 * config/linux/futex.h: Same.
867 * config/linux/alpha/futex_bits.h: Same.
869 2011-11-04 Torvald Riegel <triegel@redhat.com>
871 * libitm.texi: No cover text and invariant sections.
873 2011-11-03 Richard Henderson <rth@redhat.com>
875 * local_type_traits: New file.
876 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
878 2011-11-03 Richard Henderson <rth@redhat.com>
880 * configure.ac: Don't test for gfortran.
881 * configure: Rebuild.
883 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
884 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
886 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
888 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
889 * testsuite/libitm.c/memset-1.c: Same.
890 * testsuite/libitm.c/c.exp: Same.
891 * testsuite/lib/libitm-dg.exp: Same.
892 * testsuite/lib/libitm.exp: Same.
893 * testsuite/libitm.c++/c++.exp: Same.
895 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
897 * testsuite/config/default.exp: Update copyright date.
898 * configure.ac: Add copyright info.
899 * configure.tgt: Same.
901 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
903 * testsuite/libitm.c/reentrant.c: XFAIL.
904 * testsuite/libitm.c++/static_ctor.C: XFAIL.
906 2011-10-29 Torvald Riegel <triegel@redhat.com>
908 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
910 (_ITM_abortTransaction): Handle aborts of outer transactions.
912 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
913 * libitm.texi: Document aborts of outer transactions.
914 * testsuite/libitm.c/cancel.c: New file.
916 2011-10-19 Torvald Riegel <triegel@redhat.com>
918 * testsuite/*: Change __transaction to __transaction_atomic or
919 __transaction_relaxed.
921 2011-10-19 Torvald Riegel <triegel@redhat.com>
923 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
926 2011-10-19 Torvald Riegel <triegel@redhat.com>
928 * libitm_i.h: Add gl_wt dispatch.
929 * retry.cc (parse_default_method): Same.
930 * method-gl.cc: New file.
931 * Makefile.am: Use method-gl.cc.
932 * Makefile.in: Rebuild.
934 2011-10-19 Torvald Riegel <triegel@redhat.com>
936 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
937 safety if requested by a TM method.
938 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
939 privatization safety.
940 * method-serial.cc: Same.
942 2011-10-19 Torvald Riegel <triegel@redhat.com>
944 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
945 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
946 undolog-related member functions from *_local to *_undolog.
947 * local.cc (gtm_thread::commit_undolog): Same.
948 * beginend.cc (GTM::gtm_thread::trycommit): Same.
949 (GTM::gtm_thread::rollback): Roll back undolog before
950 dispatch-specific rollback.
952 2011-10-19 Torvald Riegel <triegel@redhat.com>
954 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
955 re-initialization of the current method group.
956 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
958 2011-10-19 Torvald Riegel <triegel@redhat.com>
960 * alloc.cc (commit_allocations_2): Do not free transaction-local
961 memory when committing a nested transaction.
963 2011-10-19 Torvald Riegel <triegel@redhat.com>
965 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
966 serial-irrevocable dispatch, not serial.
968 2011-10-19 Torvald Riegel <triegel@redhat.com>
970 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
972 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
973 * method-serial.cc: Implement begin_or_restart().
974 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
975 dispatch-specific begin_or_restart().
976 (GTM::gtm_thread::restart): Same.
978 2011-08-23 Torvald Riegel <triegel@redhat.com>
980 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
981 restarting without switching to serial mode.
982 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
983 transaction state. Choose closed-nesting alternative if available.
984 (GTM::gtm_thread::set_default_dispatch): New.
985 (parse_default_method): New.
986 (GTM::gtm_thread::number_of_threads_changed): New.
987 * method-serial.cc (GTM::serial_mg): New method group class.
988 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
990 (GTM::serial_dispatch): Same.
991 (GTM::serialirr_onwrite_dispatch): Same.
992 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
993 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
995 (GTM::gtm_thread::gtm_thread): Same.
996 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
997 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
998 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
999 choose dispatch but set state according to dispatch here.
1000 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1001 (GTM::method_group): New class.
1002 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1003 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1004 * libitm.texi: Document TM methods, method groups, method life cycle.
1005 Rename method sets to method groups.
1007 2011-08-23 Torvald Riegel <triegel@redhat.com>
1009 * config/x86/tls.h: Moved to ...
1010 * config/linux/x86/tls.h: ... here.
1012 2011-08-23 Torvald Riegel <triegel@redhat.com>
1014 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1016 * config/x86/sjlj.S: Same.
1018 2011-08-19 Torvald Riegel <triegel@redhat.com>
1020 * config/linux/rwlock.h: New file.
1021 * config/linux/rwlock.c: New file.
1022 * configure.ac: Reenable futex support (undo SVN rev 157758).
1023 * Makefile.am: Same.
1024 * configure.tgt: Same.
1025 * config/linux/alpha/futex_bits.h: Same.
1026 * config/linux/futex.h: Same. Return number of woken processes.
1027 * config/linux/futex.cc: Same.
1028 (futex_wait): Remove spinning.
1029 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1030 Use __x86_64__ instead of __LP64__.
1031 * aclocal.m4: Include generic futex checks.
1032 * configure: Rebuild.
1033 * Makefile.in: Rebuild.
1034 * testsuite/Makefile.in: Rebuild.
1035 * beginend.cc: Include pthread.h.
1036 * config/posix/cachepage.cc: Same.
1038 2011-08-12 Torvald Riegel <triegel@redhat.com>
1040 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1041 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1043 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1045 (GTM::gtm_thread::thread_num): Removed.
1046 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1047 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1048 tx-to-thread renaming.
1049 * beginend.cc: Adapted to tx-to-thread renaming.
1050 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1051 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1052 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1053 gtm_transaction to gtm_thread.
1054 (_ITM_getThreadnum): Removed. Not supported anymore.
1055 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1056 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1057 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1058 gtm_tx-to-gtm_thr renaming if necessary.
1065 * alloc_cpp.cc: Same.
1066 * method-serial.cc: Same.
1067 * config/generic/tls.cc: Same.
1068 * config/posix/rwlock.h (gtm_rwlock): Same.
1069 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1071 2011-08-12 Torvald Riegel <triegel@redhat.com>
1073 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1075 (gtm_rwlock::read_unlock): Same.
1076 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1077 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1078 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1079 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1080 w_upgrade. Replaced by per-transaction flags (in shared_state).
1081 Added c_confirmed_writers.
1082 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1083 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1084 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1085 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1086 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1087 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1088 * libitm.texi: Document locking conventions and implementations in
1091 2011-08-12 Torvald Riegel <triegel@redhat.com>
1093 * libitm_i.h (next_tx): Add list of all threads' transaction.
1094 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1095 transaction with list of transactions and ...
1096 (thread_exit_handler): ... deregister here.
1097 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1098 * config/x86/target.h: Same.
1100 2011-08-12 Torvald Riegel <triegel@redhat.com>
1102 * testsuite/libitm.c++/static_ctor.C: New file.
1104 2011-08-12 Torvald Riegel <triegel@redhat.com>
1106 * testsuite/libitm.c/reentrant.c: New file.
1108 2011-08-12 Torvald Riegel <triegel@redhat.com>
1110 * config/generic/tls.h: Remove the free list for transactions and ...
1111 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1112 (GTM::gtm_transaction::operator delete): ... and release here.
1113 (thread_exit_handler): New. Delete tx when thread terminates.
1114 (thread_exit_init): New.
1115 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1116 * testsuite/libitm.c/txrelease.c: New file.
1118 2011-08-12 Torvald Riegel <triegel@redhat.com>
1120 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1121 * testsuite/libitm.c/notx.c: New file.
1123 2011-08-12 Torvald Riegel <triegel@redhat.com>
1125 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1126 * libitm_i.h (local_tid): ... to here.
1127 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1128 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1130 2011-08-12 Torvald Riegel <triegel@redhat.com>
1132 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1133 serialirr_onwrite_dispatch as new default for now.
1134 * method-serial.cc (serialirr_onwrite_dispatch): New.
1135 (GTM::dispatch_serialirr_onwrite): New.
1138 2011-08-12 Torvald Riegel <triegel@redhat.com>
1140 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1141 * query.cc (_ITM_getTransactionId): There is no active transaction if
1142 the current nesting level is zero.
1144 2011-07-28 Torvald Riegel <triegel@redhat.com>
1146 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1149 2011-07-28 Torvald Riegel <triegel@redhat.com>
1151 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1152 transaction properties from the caller instead of from the
1155 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1157 2011-07-28 Torvald Riegel <triegel@redhat.com>
1159 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1160 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1162 * method-serial.cc: Same.
1163 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1164 flat nesting as default, and closed nesting on demand.
1165 (GTM::gtm_transaction::rollback): Same.
1166 (_ITM_abortTransaction): Same.
1167 (GTM::gtm_transaction::restart): Same.
1168 (GTM::gtm_transaction::trycommit): Same.
1169 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1170 (choose_code_path): New.
1171 (GTM::gtm_transaction_cp::save): New.
1172 (GTM::gtm_transaction_cp::commit): New.
1173 * query.cc (_ITM_inTransaction): Support flat nesting.
1174 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1175 (GTM::gtm_transaction): Support flat and closed nesting.
1176 * alloc.cc (commit_allocations_2): New.
1177 (commit_cb_data): New helper struct.
1178 (GTM::gtm_transaction::commit_allocations): Handle nested
1180 * libitm.texi: Update user action section, add description of nesting.
1182 2011-07-28 Torvald Riegel <triegel@redhat.com>
1184 * libitm_i.h: Add closed nesting as restart reason.
1185 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1187 2011-07-28 Torvald Riegel <triegel@redhat.com>
1189 * useraction.cc: Use vector instead of list to store actions.
1190 Also support partial rollbacks for closed nesting.
1191 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1192 * beginend.cc: Same.
1194 2011-07-28 Torvald Riegel <triegel@redhat.com>
1196 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1197 closed_nesting flags, as well as a closed nesting alternative.
1198 * method-serial.cc: Same.
1199 (serial_dispatch): Renamed to serialirr_dispatch.
1200 (GTM::dispatch_serialirr): Same.
1201 (serial_dispatch_ul): Renamed to serial_dispatch.
1202 (GTM::dispatch_serial): Same.
1204 2011-07-28 Torvald Riegel <triegel@redhat.com>
1206 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1208 2011-07-28 Torvald Riegel <triegel@redhat.com>
1210 * aatree.h (aa_tree::remove): New.
1211 (aa_tree::operator new): Add placement new.
1213 2011-07-02 Torvald Riegel <triegel@redhat.com>
1215 * containers.h: New file.
1216 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1217 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1218 * common.h: ... to here.
1219 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1222 2011-06-30 Torvald Riegel <triegel@redhat.com>
1224 * libitm_i.h (STATE_ABORTING): Remove.
1225 * beginend.cc (_ITM_abortTransaction): Same.
1226 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1227 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1228 (_ITM_rollbackTransaction): Remove.
1229 * beginend.cc: Same.
1231 * libitm.texi: Document these ABI changes.
1233 2011-06-30 Torvald Riegel <triegel@redhat.com>
1235 * libitm.texi: New file.
1236 * Makefile.am: Add libitm.texi.
1237 * Makefile.in: Rebuild.
1239 2011-06-30 Torvald Riegel <triegel@redhat.com>
1241 * libitm_i.h: Move parts to common.h and dispatch.h.
1242 * common.h: New file.
1243 * dispatch.h: New file, new dispatch class.
1244 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1245 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1246 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1247 decision to retry.cc.
1248 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1250 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1251 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1253 * barrier.cc: Use new barriers definitions.
1254 (abi_dispatch::memmove_overlap_check): New.
1255 * config/x86/x86_sse.cc: Same.
1256 * config/x86/x86_avx.cc: Same.
1257 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1259 * Makefile.in: Rebuild.
1260 * method-readonly.cc: Remove.
1261 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1262 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1264 2011-06-30 Torvald Riegel <triegel@redhat.com>
1266 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1267 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1268 * testsuite/libitm.c/dropref-2.c: Same.
1269 * testsuite/libitm.c/dropref.c: Same.
1271 2011-06-30 Torvald Riegel <triegel@redhat.com>
1273 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1274 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1275 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1277 * barrier.tpl: Same.
1279 * config/generic/tls.h: Same.
1280 * config/x86/tls.h: Same.
1284 * method-readonly.cc: Same.
1285 * method-serial.cc: Same.
1286 * method-wbetl.cc: Same.
1289 2011-03-03 Richard Henderson <rth@redhat.com>
1291 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1292 From Patrik Marlier <patrick.marlier@unine.ch>.
1294 2011-02-03 Richard Henderson <rth@redhat.com>
1296 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1297 * configure.ac: Use it.
1298 * configure, config.h.in: Rebuild.
1299 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1300 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1301 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1302 * libitm.map: Use wildcards to match size_t mangling.
1304 2010-12-14 Richard Henderson <rth@redhat.com>
1306 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1307 blocks of TIDs per thread.
1308 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1309 (setup_gtm_thr): Return the thread structure.
1310 * config/x86/tls.h (setup_gtm_thr): Likewise.
1312 2010-12-14 Richard Henderson <rth@redhat.com>
1314 * clone.cc (table_lock): Remove.
1315 (find_clone): Don't take it.
1316 (ExcludeTransaction): New helper class.
1317 (_ITM_registerTMCloneTable): Use it.
1318 (_ITM_deregisterTMCloneTable): Likewise.
1320 2010-12-14 Richard Henderson <rth@redhat.com>
1322 * config/x86/tls.h: New file.
1324 2010-07-15 Richard Henderson <rth@redhat.com>
1326 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1327 * Makefile.in: Rebuild.
1329 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1331 * method-wbetl.cc (trydropreference): Fix source line.
1333 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1335 * libitm.h: Add comment.
1336 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1338 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1340 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1341 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1342 available, use pthread mutexes.
1343 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1344 * config.h.in: Regenerate.
1345 * configure: Regenerate.
1347 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1349 * libitm.h (ITM_PURE): Define.
1350 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1352 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1354 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1355 (validate): Add comment.
1356 (trydropreference): New.
1357 * method-readonly.cc (class readonly_dispatch): Add
1359 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1360 Call trydropreference().
1361 * libitm.h (_ITM_dropReferences): Remove const attribute.
1362 * method-serial.cc (class serial_dispatch): Add trydropreference.
1363 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1365 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1367 * memcpy.cc (do_memcpy): Comment.
1369 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1371 * barrier.tpl: Add comments throughout.
1373 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1375 * method-wbetl.cc (struct w_entry): Add comments.
1379 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1381 * alloc_c.cc (_ITM_dropReferences): New.
1382 * libitm.map (_ITM_dropReferences): Add.
1383 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1384 * libitm_i.h (struct gtm_transaction): Declare
1385 drop_references_allocations and drop_references_local.
1386 * local.cc (rollback_local): Ignore memory when applicable.
1387 (drop_references_local): New.
1389 2010-06-23 Richard Henderson <rth@redhat.com>
1391 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1392 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1393 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1394 * config/alpha/target.h: Likewise.
1395 * config/generic/tls.cc (gtm_mask_stack): Use it.
1397 2010-06-23 Richard Henderson <rth@redhat.com>
1399 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1400 a mutex instead of trying a lock-free compare-and-swap on the list.
1401 (gtm_cacheline_page::operator delete): Likewise.
1403 2010-06-16 Richard Henderson <rth@redhat.com>
1405 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1406 that overlap the libitm stack.
1407 * barrier.tpl: Mark incoming stack.
1408 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1409 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1410 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1411 * memcpy.cc, memset.cc: Likewise.
1412 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1413 * config/generic/tls.h (gtm_thread): Add stack_top member.
1414 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1415 * libitm_i.h (gtm_mask_stack): Declare.
1416 * config/generic/tls.cc: New file.
1417 * Makefile.am (libitm_la_SOURCES): Add it.
1418 (AM_CXXFLAGS): Turn off exceptions.
1419 * Makefile.in: Rebuild.
1421 2010-06-16 Richard Henderson <rth@redhat.com>
1423 * alloc.cc (struct gtm_alloc_action): Move definition ...
1424 * libitm_i.h: ... here.
1425 (class gtm_transaction): Declare new and delete.
1426 * beginend.cc (alloc_tx): Reformulate as operator new.
1427 (free_tx): Reformulate as operator delete.
1428 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1430 2010-06-11 Richard Henderson <rth@redhat.com>
1432 * clone.cc (clone_entry_compare): Fix typo.
1433 From Patrik Marlier <patrick.marlier@unine.ch>.
1435 2010-05-13 Richard Henderson <rth@redhat.com>
1437 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1440 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1442 * libitm_i.h (struct gtm_transaction): Remove
1443 get_allocation_size.
1444 (record_allocation): Remove size parameter.
1445 * libitm.map (_ITM_realloc): Remove.
1446 * alloc_c.cc (_ITM_realloc): Remove.
1447 (_ITM_malloc): Remove size argument to record_allocation.
1448 (_ITM_calloc): Same.
1449 * alloc_cpp.cc (_ZGTtnwm): Same.
1450 (_ZGTtnwmRKSt9nothrow_t): Same.
1452 (_ZGTtnamRKSt9nothrow_t): Same.
1453 * alloc.cc (struct gtm_alloc_action): Remove size.
1454 (get_allocation_size): Remove.
1455 (commit_allocations): Add comment.
1456 (record_allocation): Remove size parameter.
1457 (forget_allocation): Remove set of size.
1459 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1461 * Makefile.am (abi_version): New.
1462 (AM_CXXFLAGS): Pass abi_version.
1463 * Makefile.in: Regenerate.
1464 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1466 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1468 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1469 _ITM_getTMCloneOrIrrevokable.
1470 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1471 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1473 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1475 * configure.ac: Remove Linux futex support.
1476 * configure.tgt (config_path): Same.
1477 * Makefile.am: Same.
1478 * config/linux: Remove entire directory.
1479 * configure: Rebuild.
1480 * Makefile.in: Rebuild.
1481 * testsuite/Makefile.in: Rebuild.
1483 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1485 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1486 switching to serial mode.
1487 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1489 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1491 * configure.tgt: Add emacs -*- tags.
1492 * barrier.tpl: Same.
1494 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1496 * Makefile.am: Rename serial.cc to method-serial.cc.
1497 * Makefile.in: Regenerate with automake 1.11.1.
1498 * testsuite/Makefile.in: Same.
1499 * aclocal.m4: Regenerate with aclocal 1.11.1.
1500 * method-serial.cc: Rename from serial.cc.
1501 * libitm_i.h (struct gtm_transaction): Update comment on
1504 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1506 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1507 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1509 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1511 * configure: Rebuild.
1513 2009-11-12 Richard Henderson <rth@redhat.com>
1515 * Rewrite everything in C++.
1517 2009-11-03 Richard Henderson <rth@redhat.com>
1519 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1520 * Makefile.am (libitm_la_SOURCES): Add them.
1521 * configure.ac (ARCH_X86): New conditional.
1522 * Makefile.in, configure: Rebuild.
1523 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1524 Move futex setup into "other system configury" case.
1525 * local.c (rollback_local): Merge into ...
1526 (GTM_rollback_local): ... here.
1527 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1528 (_ITM_LB): Define as an alias to GTM_LB.
1530 2009-11-03 Richard Henderson <rth@redhat.com>
1532 * method-readonly.c: New file.
1533 * Makefile.am (libitm_la_SOURCES): Add it.
1534 * Makefile.in: Rebuild.
1535 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1536 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1537 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1538 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1539 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1540 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1541 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1542 gtm_get_clock, gtm_inc_clock): New.
1543 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1544 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1545 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1546 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1547 replace uses with new libitm_i.h symbols.
1548 (dispatch_wbetl): Rename from wbetl_dispatch.
1549 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1550 away from dispatch_readonly; abort if the beginTransaction call
1551 asserted that the transaction was readonly.
1553 2009-11-03 Richard Henderson <rth@redhat.com>
1555 * memset.c: New file.
1556 * Makefile.am (libitm_la_SOURCES): Add it.
1557 * Makefile.in: Rebuild.
1558 * testsuite/libitm.c/memset-1.c: New.
1560 2009-11-03 Richard Henderson <rth@redhat.com>
1562 * dispatch.c: Remove file.
1563 * useraction.c (struct gtm_user_action): Move from libitm.h.
1564 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1565 (serial_memset, serial_memmove, serial_memcpy): Remove.
1566 (serial_W*, serial_R*): Remove.
1567 (serial_dispatch): Update to match.
1568 * configure.ac: Move Werror down below configure checks. Don't
1569 check for sys/loadavg.h, do check for malloc.h. Don't check for
1570 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1571 Use GCC_AC_FUNC_MMAP_BLACKLIST
1572 * libitm.h: Split out all internal items to...
1573 * libitm_i.h: ... here. New file.
1574 * copymask.c: New file.
1575 * local.c (struct gtm_local_undo): Move from libitm.h.
1576 (GTM_alloc_local): Rename from alloc_local; export.
1577 * memcpy.c: New file.
1578 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1579 * config/posix/page.c: New file.
1580 * config/posix/target_tls.h: Remove file.
1581 * barrier.c: New file.
1582 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1584 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1585 * method-wbetl.c: Rewrite for new cacheline methods.
1586 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1588 * config/alpha/sjlj.S: Fix typo.
1589 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1590 * config/alpha/copymask.c: New file.
1591 * config/alpha/target.h (CACHELINE_SIZE): New.
1592 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1594 * config/x86/target_i.h: Copy functions from x86/target.h.
1595 * config/x86/copymask.c: New file.
1596 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1597 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1598 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1599 * config/x86/target_tls.h: Move contents to target_i.h.
1601 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1602 * testsuite/libitm.c/memcpy-1.c: New.
1604 2009-10-22 Richard Henderson <rth@redhat.com>
1606 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1607 (AM_CCASFLAGS): New.
1608 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1609 saving/restoring _AC_ARG_VAR_PRECIOUS.
1610 * Makefile.in, aclocal.m4, config.h.in, configure,
1611 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1613 2009-10-22 Richard Henderson <rth@redhat.com>
1615 * testsuite/*: Update for new compiler syntax.
1617 2009-10-21 Richard Henderson <rth@redhat.com>
1619 * libitm.h (_ITM_abortReason): Add outerAbort.
1621 2009-08-03 Richard Henderson <rth@redhat.com>
1623 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1624 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1625 * method-wbetl.c (struct w_entry): Remove mask.
1626 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1629 2009-07-22 Richard Henderson <rth@redhat.com>
1631 * eh_cpp.c: New file.
1632 * Makefile.am (libitm_la_SOURCES): Add it.
1633 * Makefile.in: Rebuild.
1634 * beginend.c (GTM_rollback_transaction): Undo exception state.
1635 (GTM_trycommit_transaction): Mark inline.
1636 (GTM_trycommit_and_finalize_transaction): Split out from ...
1637 (_ITM_commitTransaction): ... here.
1638 (_ITM_commitTransactionEH): New function.
1639 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1640 cxa_unthrown, eh_in_flight; reorder.
1642 * testsuite/libitm.c++/c++.exp: New.
1643 * testsuite/libitm.c++/eh-1.C: New.
1645 * aatree.c (aa_free): Remove REGPARM.
1646 * aatree.h: Remove all REGPARM.
1648 2009-07-18 Richard Henderson <rth@redhat.com>
1650 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1651 * Makefile.am (libitm_la_SOURCES): Add them.
1652 * Makefile.in: Rebuild.
1653 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1654 (GTM_trycommit_transaction): Likewise.
1655 * libitm.h: Include aatree.h
1656 (struct gtm_alloc_action): New.
1657 (struct gtm_transaction): Add alloc_actions.
1658 (GTM_record_allocation, GTM_forget_allocation): Declare.
1659 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1660 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1661 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1662 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1663 _ZGTtdaPvRKSt9nothrow_t): Export.
1665 2009-07-18 Richard Henderson <rth@redhat.com>
1667 * target_tls.h: Move ...
1668 * config/posix/target_tls.h: ... here.
1670 2009-07-07 Richard Henderson <rth@redhat.com>
1672 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1674 2009-07-07 Richard Henderson <rth@redhat.com>
1678 2009-07-07 Richard Henderson <rth@redhat.com>
1680 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1681 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1683 * configure.tgt: Don't use -ftls-model for x86 linux.
1684 * libitm.h: Include target.h after standard includes.
1685 (_gtm_thr): Rename from gtm_thr.
1686 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1687 (gtm_disp, set_gtm_disp): New.
1688 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1689 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1690 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1692 2009-07-07 Richard Henderson <rth@redhat.com>
1694 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1696 2009-07-06 Richard Henderson <rth@redhat.com>
1698 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1699 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1700 (_ITM_beginTransaction): Take variadic arguments.
1701 (_ITM_registerThrownObject): Declare.
1702 * beginend.c, serial.c: Update.
1703 * libitm.map: Add _ITM_registerThrownObject.
1705 2009-01-28 Richard Henderson <rth@redhat.com>
1707 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1708 * Makefile.in: Rebuild.
1709 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1710 (GTM_restart_transaction): Fix uninstrumented code check.
1711 * retry.c (GTM_decide_retry_strategy): Add serial check.
1712 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1713 automatically go irrevokable when in serial mode.
1714 * clone.c: New file.
1715 * libitm.h, libitm.map: Update.
1717 2009-01-27 Richard Henderson <rth@redhat.com>
1719 * Makefile.am (LTCCASCOMPILE): Define.
1720 (libitm_la_SOURCES): Add methid-wbetl.c.
1721 * testsuite/Makefile.am: New
1722 * configure.ac: Add testsuite/Makefile.
1723 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1724 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1725 (_ITM_abortTransaction): Finalize implementation method; pass
1726 transaction properties to longjmp.
1727 (GTM_restart_transaction): Split out from ...
1728 (_ITM_commitTransaction): ... here.
1729 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1730 Move to config/x86/target.h.
1731 * config/linux/alpha/futex_bits.h: New.
1732 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1733 * config/x86/target.h: Disable target types for 32-bit.
1734 * config/alpha/sjlj.S, config/alpha/target.h: New.
1735 * libitm.h (struct gtm_dispatch): Add init, fini.
1736 (enum restart_reason): New.
1737 (struct gtm_transaction): Add method and restarts.
1738 * retry.c (GTM_decide_retry_strategy): Implement.
1739 * serial.c (serial_init, serial_fini): New.
1740 (GTM_serialmode): Finialize outgoing method.
1741 * method-wbetl.c: New.
1743 2008-12-09 Richard Henderson <rth@redhat.com>
1745 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1746 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1747 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1748 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1749 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1750 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1751 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1752 * serial.c (serial_R##T, serial_W##T): Likewise.
1754 2008-11-21 Richard Henderson <rth@redhat.com>