1 2013-08-30 Torvald Riegel <triegel@redhat.com>
3 * config/posix/rwlock.cc: Fix initialization order.
5 2013-08-30 Torvald Riegel <triegel@redhat.com>
7 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
8 (htm_fastpath): Assign an asm name.
9 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
11 (_ITM_actions): Likewise.
12 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
14 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
15 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
16 field to the start of the structure.
17 * config/linux/rwlock.h (gtm_rwlock): Update comments.
18 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
19 handling for custom HTM fast paths.
21 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25 * configure.tgt: Add -msoft-float to XCFLAGS.
27 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29 * configure.tgt: Add -msoft-float to XCFLAGS.
31 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
34 (htm_transaction_active): Enable zEC12 instructions in the
36 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
38 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40 * acinclude.m4: Add htm asm check for s390.
41 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
42 * configure: Regenerate.
43 * config/s390/target.h: Remove __HTM__ check.
44 (htm_available): Call getauxval to get hwcaps and check whether
45 HTM is available or not.
47 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
49 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
50 * configure.ac: Use it.
51 (AC_CHECK_HEADERS): Check for sys/auxv.h.
52 (AC_CHECK_FUNCS): Check for getauxval.
53 * config.h.in, configure: Rebuild.
54 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
55 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
56 (USE_HTM_FASTPATH): Define.
57 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
58 _HTM_RETRIES) New macros.
59 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
60 htm_begin_success, htm_commit, htm_transaction_active): New functions.
62 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
64 * config/s390/target.h: Include htmintrin.h.
65 (_HTM_ITM_RETRIES): New macro definition.
66 (htm_available, htm_init, htm_begin, htm_begin_success)
67 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
69 2013-06-20 Iain Sandoe <iain@codesourcery.com>
70 Cesar Philippidis <cesar@codesourcery.com>
72 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
73 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
74 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
75 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
77 2013-06-20 Torvald Riegel <triegel@redhat.com>
79 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
80 (_ITM_getTransactionId): Same.
81 * config/x86/target.h (htm_transaction_active): New.
83 2013-06-20 Torvald Riegel <triegel@redhat.com>
86 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
89 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
92 * local_atomic (__always_inline): Always define our version.
93 (__calculate_memory_order): Mark inline.
94 (atomic_thread_fence): Ditto.
95 (atomic_signal_fence): Ditto.
96 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
97 (atomic_bool::atomic_flag_clear_explicit): Ditto.
98 (atomic_bool::atomic_flag_test_and_set): Ditto.
99 (atomic_bool::atomic_flag_clear): Ditto.
101 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
103 * config/s390/sjlj.S: New file.
104 * config/s390/target.h: New file.
105 * configure.tgt: Set options for S/390.
107 2013-03-23 Andi Kleen <ak@linux.intel.com>
109 * local_atomic (__always_inline): Add.
110 (__calculate_memory_order, atomic_thread_fence,
111 atomic_signal_fence, test_and_set, clear, store, load,
112 exchange, compare_exchange_weak, compare_exchange_strong,
113 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
114 Add __always_inline to force inlining.
116 2013-02-11 Iain Sandoe <iain@codesourcery.com>
117 Jack Howarth <howarth@bromo.med.uc.edu>
118 Patrick Marlier <patrick.marlier@gmail.com>
121 * alloc_cpp.cc: Enable function declarations on darwin.
122 * eh_cpp.cc: Likewise.
124 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
126 Update copyright years.
128 2012-11-09 Torvald Riegel <triegel@redhat.com>
130 * beginend.cc (htm_fastpath): New.
131 (gtm_thread::begin_transaction, _ITM_commitTransaction,
132 _ITM_commitTransactionEH): Add HTM fastpath handling.
133 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
134 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
135 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
136 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
137 * configure.tgt: Add -mrtm to XCFLAGS.
138 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
139 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
140 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
141 * retry.cc (parse_default_method): Add HTM method parsing.
142 (gtm_thread::number_of_threads_changed): Use HTM by default if
145 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
147 * configure: Regenerate.
149 2012-10-31 Richard Henderson <rth@redhat.com>
151 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
152 * configure.ac: Use it.
153 * config.h.in, configure: Rebuild.
154 * testsuite/Makefile.in: Rebuild.
156 2012-10-24 Torvald Riegel <triegel@redhat.com>
158 * libitm.texi: Clarify ABI requirements for data-logging functions.
160 2012-10-24 Torvald Riegel <triegel@redhat.com>
162 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
163 it requires serial mode instead of assuming that for certain
165 * dispatch.h (abi_dispatch::requires_serial): New.
166 (abi_dispatch::abi_dispatch): Adapt.
167 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
168 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
169 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
170 serial_dispatch::serial_dispatch,
171 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
173 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
175 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
176 and ia32 declarations some more.
177 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
179 2012-09-20 Jakub Jelinek <jakub@redhat.com>
182 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
183 * configure: Regenerate.
184 * Makefile.in: Regenerate.
186 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
188 * configure: Regenerated.
190 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
192 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
194 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
196 * eh_cpp.cc: Fix __cxa_end_catch declaration.
198 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
200 * configure: Regenerated.
202 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
205 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
208 2012-04-03 Tristan Gingold <gingold@adacore.com>
210 * configure: Regenerate.
212 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
215 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
217 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
219 * testsuite/lib/libitm.exp: load fortran-modules.exp
221 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
223 * configure.tgt (*-*-irix6*): Remove.
225 2012-03-13 Torvald Riegel <triegel@redhat.com>
228 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
231 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
233 * configure.tgt (*-*-osf*): Remove.
234 * configure: Regenerate.
236 2012-03-05 Torvald Riegel <triegel@redhat.com>
238 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
239 memtransfer/memset if size isn't larger than zero.
241 2012-03-02 Torvald Riegel <triegel@redhat.com>
243 * libitm.texi: Link to specification and add a usage example.
245 2012-02-24 Torvald Riegel <triegel@redhat.com>
247 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
248 default dispatch for more than 1 thread to ml_wt.
250 2012-02-20 Torvald Riegel <triegel@redhat.com>
252 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
254 2012-02-20 Torvald Riegel <triegel@redhat.com>
256 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
258 2012-02-20 Torvald Riegel <triegel@redhat.com>
260 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
261 serial mode corner cases made obsolete by prior gtm_rwlock changes.
262 (gl_wt_dispatch.rollback): Same.
264 2012-02-20 Torvald Riegel <triegel@redhat.com>
266 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
268 2012-02-20 Torvald Riegel <triegel@redhat.com>
270 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
271 for RfW src. Optimize number of calls to gtm_thr.
273 2012-02-20 Torvald Riegel <triegel@redhat.com>
275 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
277 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
278 (default_dispatch): Make atomic.
279 (GTM::gtm_thread::set_default_dispatch): Access atomically.
280 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
281 use decide_begin_dispatch() if default_dispatch might have changed.
282 (GTM::gtm_thread::number_of_threads_changed): Initialize
283 default_dispatch here.
285 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
286 Patrick Marlier <patrick.marlier@gmail.com>
289 * alloc_cpp.cc: No dummy definitions for darwin.
290 * eh_cpp.cc: Likewise.
292 2012-02-14 Richard Henderson <rth@redhat.com>
294 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
296 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
298 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
300 2012-02-14 Torvald Riegel <triegel@redhat.com>
302 * libitm_i.h (GTM::gtm_rwlog_entry): New.
303 (GTM::gtm_thread): Add read and write logs.
304 (GTM::dispatch_ml_wt): Declare.
305 * retry.cc (parse_default_method): Support ml_wt.
306 * method-ml.cc: New file.
307 * Makefile.am: Add method-ml.cc.
308 * Makefile.in: Regenerate.
310 2012-02-14 Torvald Riegel <triegel@redhat.com>
312 * dispatch.h (GTM::abi_dispatch::supports): New.
313 (GTM::method_group::reinit): New.
314 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
315 (GTM::gtm_thread::number_of_threads_changed): Check that the method
316 supports the current situation.
318 2012-02-14 Torvald Riegel <triegel@redhat.com>
320 * util.cc (GTM::xcalloc): New.
321 * common.h (GTM::xcalloc): Declare.
323 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
325 * config/sparc/target.h (cpu_relax): Read from CC register.
326 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
328 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
330 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
332 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
334 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
335 * config/sparc/cacheline.h: New file.
336 * config/sparc/target.h: Likewise.
337 * config/sparc/sjlj.S: Likewise.
338 * config/linux/sparc/futex_bits.h: Likewise.
340 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
342 * configure.ac (link_itm): Fix comment.
343 * configure: Regenerate.
344 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
346 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
350 Correct libgomp references.
352 2012-01-24 Torvald Riegel <triegel@redhat.com>
354 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
357 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
359 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
361 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
362 offset values. Do not copy return address. Decrement stack
364 (GTM_longjump) [__x86_64__]: Update offset values.
366 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
369 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
370 the first function argument to %eax.
372 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374 * libitm.h (_ITM_getThreadnum): Remove.
375 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
377 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379 * clearcap.map: New file.
380 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
381 * configure.ac: Call it.
382 Clear HWCAP_LDFLAGS if defaulting to -mavx.
383 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
384 * configure: Regenerate.
385 * Makefile.in: Regenerate.
386 * testsuite/Makefile.in: Regenerate.
388 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
391 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
392 include, exclude options.
394 2012-01-14 Torvald Riegel <triegel@redhat.com>
396 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
398 * containers.h (GTM::vector::set_size): New.
400 2012-01-14 Torvald Riegel <triegel@redhat.com>
403 * config/generic/tls.h (GTM::mask_stack_top): New.
404 (GTM::mask_stack_bottom): Declare.
405 * config/generic/tls.c (GTM::mask_stack_bottom): New.
406 * local.cc (gtm_undolog::rollback): Filter out any updates that
407 overlap the libitm stack. Add current transaction as parameter.
408 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
409 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
410 * testsuite/libitm.c/stackundo.c: New test.
412 2012-01-10 Richard Henderson <rth@redhat.com>
414 * libitm_i.h (_Unwind_DeleteException): Declare weak.
415 * eh_cpp.cc (_Unwind_DeleteException): Define for
416 !HAVE_ELF_STYLE_WEAKREF.
418 2012-01-08 Torvald Riegel <triegel@redhat.com>
420 * local.cc (GTM_LB): Use GTM::gtm_undolog.
421 (GTM::gtm_thread::drop_references_undolog): Remove.
422 (GTM::gtm_thread::commit_undolog,
423 GTM::gtm_thread::rollback_undolog): Move to ...
424 * libitm_i.h (GTM::gtm_undolog): ...here. New.
425 (GTM::gtm_undolog_entry): Remove.
426 (GTM::gtm_thread): Adapt.
427 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
428 (GTM::gtm_thread::trycommit): Adapt.
429 * method-serial.cc (serial_dispatch::log): Adapt.
430 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
431 (gl_wt_dispatch::store): Fix likely/unlikely.
432 * containers.h (GTM::vector::resize): Add additional_capacity
433 parameter and handle it.
434 (GTM::vector::resize_noinline): New/adapt.
435 (GTM::vector::push): New.
437 2012-01-06 Richard Henderson <rth@redhat.com>
439 * configure.tgt: Support powerpc-linux and powerpc-darwin.
440 * config/linux/powerpc/futex_bits.h: New file.
441 * config/powerpc/cacheline.h: New file.
442 * config/powerpc/sjlj.S: New file.
443 * config/powerpc/target.h: New file.
444 * config/generic/asmcfi.h (cfi_offset): New.
445 (cfi_restore, cfi_undefined): New.
447 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
450 * testsuite/libitm.c/reentrant.c: Remove xfail.
451 (thread): Pass x to pure().
452 From Patrik Marlier <patrick.marlier@gmail.com>.
454 2011-12-24 Torvald Riegel <triegel@redhat.com>
456 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
457 privatization safety if already in serial mode.
459 2011-12-24 Torvald Riegel <triegel@redhat.com>
461 * beginend.cc (GTM::gtm_thread::restart): Add and handle
462 finish_serial_upgrade parameter.
463 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
464 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
465 Don't unset reader flag.
466 (GTM::gtm_rwlock::write_upgrade_finish): New.
467 * config/posix/rwlock.cc: Same.
468 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
470 * config/posix/rwlock.h: Same.
471 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
472 flag after commit or after rollback when restarting.
474 2011-12-24 Torvald Riegel <triegel@redhat.com>
476 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
477 (GTM::gtm_thread::try_commit): Changed memory order.
478 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
480 * config/linux/x86/futex_bits.h (sys_futex0): Same.
481 * config/linux/sh/futex_bits.h (sys_futex0): Same.
482 * config/linux/futex_bits.h (sys_futex0): Same.
483 * config/linux/futex.cc (futex_wait, futex_wake): Same.
484 * config/linux/futex.h (futex_wait, futex_wake): Same.
485 * config/linux/rwlock.h (gtm_rwlock::writers,
486 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
488 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
489 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
490 gtm_rwlock::write_unlock): Fix memory orders and fences.
491 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
492 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
493 gtm_rwlock::write_unlock): Same.
494 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
495 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
496 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
498 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
499 gl_wt_dispatch::load, gl_wt_dispatch::store,
500 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
501 orders and fences. Add comments.
503 2011-12-21 Jakub Jelinek <jakub@redhat.com>
505 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
506 * Makefile.in: Regenerated.
508 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
510 * configure.tgt: Add sh* case.
511 * config/sh/target.h: New file.
512 * config/sh/sjlj.S: New file.
513 * config/linux/sh/futex_bits.h: New file.
515 2011-12-14 Richard Henderson <rth@redhat.com>
517 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
518 * config/arm/sjlj.S, config/arm/target.h: New files.
519 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
520 (cfi_rel_offset): New.
521 * config/linux/futex_bits.h: New file.
522 * config/linux/futex.cc: Include futex_bits.h here...
523 * config/linux/futex.h: ... not here.
524 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
525 * configure.ac (ARCH_AM): New conditional.
526 * Makefile.in, configure: Rebuild.
527 * configure.tgt: Handle ARM.
529 2011-12-13 Richard Henderson <rth@redhat.com>
531 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
532 signed/unsigned comparison werror.
534 * local_atomic: New file.
535 * libitm_i.h: Include it.
536 (gtm_thread::shared_state): Use atomic template.
537 * beginend.cc (GTM::gtm_clock): Use atomic template.
538 (global_tid): Use atomic template if 64-bit atomics available.
539 (gtm_thread::gtm_thread): Update shared_state access.
540 (gtm_thread::trycommit): Likewise.
541 (choose_code_path): Update global_tid access.
542 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
543 * stmlock.h (GTM::gtm_clock): Use atomic template.
544 (gtm_get_clock, gtm_inc_clock): Update accesses.
545 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
546 redundant __sync_synchronize after atomic shared_state access.
547 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
548 (gtm_rwlock::write_lock_generic): Likewise.
549 (gtm_rwlock::read_unlock): Likewise.
550 * config/alpha/target.h (atomic_read_barrier): Remove.
551 (atomic_write_barrier): Remove.
552 * config/x86/target.h (atomic_read_barrier): Remove.
553 (atomic_write_barrier): Remove.
555 2011-11-30 Richard Henderson <rth@redhat.com>
557 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
558 * beginend.c (_ITM_abortTransaction): Update to match.
559 (GTM::gtm_thread::restart): Likewise.
560 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
561 * config/x86/sjlj.S (GTM_longjmp): Likewise.
563 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
565 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
566 * Makefile.in: Regenerate.
568 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
570 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
571 * alloc_cpp.cc: Generate dummy functions if we don't
572 HAVE_ELF_STYLE_WEAKREF.
573 * eh_cpp.cc: Likewise.
574 * configure: Regenerate.
575 * aclocal.m4: Likewise.
576 * config.h.in: Likewise.
577 * Makefile.in: Likewise.
578 * testsuite/Makefile.in: Likewise.
580 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
582 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
583 __USER_LABEL_PREFIX__ for targets that use it.
584 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
585 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
586 in portability to non-elf targets.
587 (GTM_longjmp): Likewise.
588 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
591 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
593 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
594 * testsuite/libitm.c/memset-1.c: Likewise.
596 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
598 * configure: Regenerate.
600 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
602 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
603 (LIBITM_ENABLE_SYMVERS): Handle sun style.
604 * Makefile.am: Handle sun style versioning.
605 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
606 * configure: Regenerate.
607 * Makefile.in: Regenerate.
609 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
611 * config/generic/asmcfi.h: Fix comment.
612 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
613 sequence without .hidden support, error for non-ELF targets.
614 (GTM_longjmp) [__ELF__]: Only use .hidden if
615 HAVE_ATTRIBUTE_VISIBILITY.
617 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
619 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
620 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
622 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
623 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
625 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
628 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
629 * configure: Regenerate.
631 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
633 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
635 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
639 (.note.GNU-stack): Only use if __linux__.
640 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
641 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
642 * testsuite/libitm.c/reentrant.c: Likewise.
643 * testsuite/libitm.c/simple-2.c: Likewise.
644 * testsuite/libitm.c/txrelease.c: Likewise.
645 * testsuite/libitm.c++/static_ctor.C: Likewise.
647 2011-11-10 Richard Henderson <rth@redhat.com>
649 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
650 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
651 * configure.ac (ARCH_X86_AVX): New conditional.
652 * Makefile.in, configure: Rebuild.
654 2011-11-09 Richard Henderson <rth@redhat.com>
656 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
657 * configure.ac: Use it.
658 * config.h.in, configure: Rebuild.
659 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
661 2011-11-09 Richard Henderson <rth@redhat.com>
663 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
664 * config/alpha/unaligned.h: Remove file.
665 * config/generic/unaligned.h: Remove file.
666 * config/x86/unaligned.h: Remove file.
667 * config/generic/cachepage.h: Remove file.
668 * config/posix/cachepage.cc: Remove file.
669 * config/generic/cacheline.cc: Remove file.
670 * config/x86/cacheline.cc: Remove file.
671 * config/generic/cacheline.h (gtm_cacheline): Remove the
672 store_mask, copy_mask, copy_mask_wb methods.
673 * config/x86/cacheline.h: Likewise.
674 * config/alpha/cacheline.h: Fall back to generic after setting size.
675 * config/generic/tls.cc (gtm_mask_stack): Remove.
676 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
677 (GTM_vpalignr_table): Remove.
678 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
679 (GTM_pshift_table): Remove.
680 * config/libitm_i.h: Don't include cachepage.h.
681 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
682 * Makefile.in, testsuite/Makefile.in: Rebuild.
684 2011-11-09 Richard Henderson <rth@redhat.com>
686 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
687 to emit branch prediction hint.
689 * config/x86/sjlj.S: Protect elf directives with __ELF__.
690 Protect .note.GNU-stack with __linux__.
692 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
693 * configure, aclocal.m4, config.h.in: Rebuild.
694 * config/generic/asmcfi.h: New file.
695 * config/x86/sjlj.S: Use it.
697 2011-11-08 Richard Henderson <rth@redhat.com>
699 * local.cc (_ITM_LB): Use a normal call, not a function alias.
701 2011-11-08 Richard Henderson <rth@redhat.com>
703 * configure.tgt: Test correct directory for supported cpus.
705 * configure.ac: Exit if unsupported.
706 * configure: Rebuild.
707 * configure.tgt: Delete boilerplate from libgomp for unsupported
708 targets. Set UNSUPPORTED for unsupported targets.
710 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
712 * configure.tgt: Handle i386 like i[456]86.
713 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
715 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
716 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
718 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
720 * method-wbetl.cc: Update copyright notice.
727 * useraction.cc: Same.
731 * config/generic/tls.cc: Same.
732 * config/generic/cacheline.h: Same.
733 * config/generic/cachepage.h: Same.
734 * config/generic/cacheline.cc: Same.
735 * config/generic/unaligned.h: Same.
736 * config/x86/cacheline.h: Same.
737 * config/x86/cacheline.cc: Same.
738 * config/x86/unaligned.h: Same.
739 * config/alpha/cacheline.h: Same.
740 * config/alpha/unaligned.h: Same.
741 * config/alpha/sjlj.S: Same.
742 * config/posix/cachepage.cc: Same.
743 * config/linux/futex.h: Same.
744 * config/linux/alpha/futex_bits.h: Same.
746 2011-11-04 Torvald Riegel <triegel@redhat.com>
748 * libitm.texi: No cover text and invariant sections.
750 2011-11-03 Richard Henderson <rth@redhat.com>
752 * local_type_traits: New file.
753 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
755 2011-11-03 Richard Henderson <rth@redhat.com>
757 * configure.ac: Don't test for gfortran.
758 * configure: Rebuild.
760 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
761 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
763 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
765 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
766 * testsuite/libitm.c/memset-1.c: Same.
767 * testsuite/libitm.c/c.exp: Same.
768 * testsuite/lib/libitm-dg.exp: Same.
769 * testsuite/lib/libitm.exp: Same.
770 * testsuite/libitm.c++/c++.exp: Same.
772 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
774 * testsuite/config/default.exp: Update copyright date.
775 * configure.ac: Add copyright info.
776 * configure.tgt: Same.
778 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
780 * testsuite/libitm.c/reentrant.c: XFAIL.
781 * testsuite/libitm.c++/static_ctor.C: XFAIL.
783 2011-10-29 Torvald Riegel <triegel@redhat.com>
785 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
787 (_ITM_abortTransaction): Handle aborts of outer transactions.
789 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
790 * libitm.texi: Document aborts of outer transactions.
791 * testsuite/libitm.c/cancel.c: New file.
793 2011-10-19 Torvald Riegel <triegel@redhat.com>
795 * testsuite/*: Change __transaction to __transaction_atomic or
796 __transaction_relaxed.
798 2011-10-19 Torvald Riegel <triegel@redhat.com>
800 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
803 2011-10-19 Torvald Riegel <triegel@redhat.com>
805 * libitm_i.h: Add gl_wt dispatch.
806 * retry.cc (parse_default_method): Same.
807 * method-gl.cc: New file.
808 * Makefile.am: Use method-gl.cc.
809 * Makefile.in: Rebuild.
811 2011-10-19 Torvald Riegel <triegel@redhat.com>
813 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
814 safety if requested by a TM method.
815 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
816 privatization safety.
817 * method-serial.cc: Same.
819 2011-10-19 Torvald Riegel <triegel@redhat.com>
821 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
822 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
823 undolog-related member functions from *_local to *_undolog.
824 * local.cc (gtm_thread::commit_undolog): Same.
825 * beginend.cc (GTM::gtm_thread::trycommit): Same.
826 (GTM::gtm_thread::rollback): Roll back undolog before
827 dispatch-specific rollback.
829 2011-10-19 Torvald Riegel <triegel@redhat.com>
831 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
832 re-initialization of the current method group.
833 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
835 2011-10-19 Torvald Riegel <triegel@redhat.com>
837 * alloc.cc (commit_allocations_2): Do not free transaction-local
838 memory when committing a nested transaction.
840 2011-10-19 Torvald Riegel <triegel@redhat.com>
842 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
843 serial-irrevocable dispatch, not serial.
845 2011-10-19 Torvald Riegel <triegel@redhat.com>
847 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
849 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
850 * method-serial.cc: Implement begin_or_restart().
851 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
852 dispatch-specific begin_or_restart().
853 (GTM::gtm_thread::restart): Same.
855 2011-08-23 Torvald Riegel <triegel@redhat.com>
857 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
858 restarting without switching to serial mode.
859 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
860 transaction state. Choose closed-nesting alternative if available.
861 (GTM::gtm_thread::set_default_dispatch): New.
862 (parse_default_method): New.
863 (GTM::gtm_thread::number_of_threads_changed): New.
864 * method-serial.cc (GTM::serial_mg): New method group class.
865 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
867 (GTM::serial_dispatch): Same.
868 (GTM::serialirr_onwrite_dispatch): Same.
869 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
870 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
872 (GTM::gtm_thread::gtm_thread): Same.
873 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
874 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
875 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
876 choose dispatch but set state according to dispatch here.
877 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
878 (GTM::method_group): New class.
879 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
880 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
881 * libitm.texi: Document TM methods, method groups, method life cycle.
882 Rename method sets to method groups.
884 2011-08-23 Torvald Riegel <triegel@redhat.com>
886 * config/x86/tls.h: Moved to ...
887 * config/linux/x86/tls.h: ... here.
889 2011-08-23 Torvald Riegel <triegel@redhat.com>
891 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
893 * config/x86/sjlj.S: Same.
895 2011-08-19 Torvald Riegel <triegel@redhat.com>
897 * config/linux/rwlock.h: New file.
898 * config/linux/rwlock.c: New file.
899 * configure.ac: Reenable futex support (undo SVN rev 157758).
901 * configure.tgt: Same.
902 * config/linux/alpha/futex_bits.h: Same.
903 * config/linux/futex.h: Same. Return number of woken processes.
904 * config/linux/futex.cc: Same.
905 (futex_wait): Remove spinning.
906 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
907 Use __x86_64__ instead of __LP64__.
908 * aclocal.m4: Include generic futex checks.
909 * configure: Rebuild.
910 * Makefile.in: Rebuild.
911 * testsuite/Makefile.in: Rebuild.
912 * beginend.cc: Include pthread.h.
913 * config/posix/cachepage.cc: Same.
915 2011-08-12 Torvald Riegel <triegel@redhat.com>
917 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
918 (abi_disp, set_abi_disp): Move to tx's TLS slot.
920 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
922 (GTM::gtm_thread::thread_num): Removed.
923 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
924 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
925 tx-to-thread renaming.
926 * beginend.cc: Adapted to tx-to-thread renaming.
927 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
928 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
929 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
930 gtm_transaction to gtm_thread.
931 (_ITM_getThreadnum): Removed. Not supported anymore.
932 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
933 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
934 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
935 gtm_tx-to-gtm_thr renaming if necessary.
942 * alloc_cpp.cc: Same.
943 * method-serial.cc: Same.
944 * config/generic/tls.cc: Same.
945 * config/posix/rwlock.h (gtm_rwlock): Same.
946 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
948 2011-08-12 Torvald Riegel <triegel@redhat.com>
950 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
952 (gtm_rwlock::read_unlock): Same.
953 (gtm_rwlock::write_lock_generic): New. Generalized from ...
954 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
955 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
956 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
957 w_upgrade. Replaced by per-transaction flags (in shared_state).
958 Added c_confirmed_writers.
959 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
960 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
961 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
962 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
963 * beginend.cc (GTM::gtm_transaction::begin_transaction,
964 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
965 * libitm.texi: Document locking conventions and implementations in
968 2011-08-12 Torvald Riegel <triegel@redhat.com>
970 * libitm_i.h (next_tx): Add list of all threads' transaction.
971 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
972 transaction with list of transactions and ...
973 (thread_exit_handler): ... deregister here.
974 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
975 * config/x86/target.h: Same.
977 2011-08-12 Torvald Riegel <triegel@redhat.com>
979 * testsuite/libitm.c++/static_ctor.C: New file.
981 2011-08-12 Torvald Riegel <triegel@redhat.com>
983 * testsuite/libitm.c/reentrant.c: New file.
985 2011-08-12 Torvald Riegel <triegel@redhat.com>
987 * config/generic/tls.h: Remove the free list for transactions and ...
988 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
989 (GTM::gtm_transaction::operator delete): ... and release here.
990 (thread_exit_handler): New. Delete tx when thread terminates.
991 (thread_exit_init): New.
992 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
993 * testsuite/libitm.c/txrelease.c: New file.
995 2011-08-12 Torvald Riegel <triegel@redhat.com>
997 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
998 * testsuite/libitm.c/notx.c: New file.
1000 2011-08-12 Torvald Riegel <triegel@redhat.com>
1002 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1003 * libitm_i.h (local_tid): ... to here.
1004 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1005 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1007 2011-08-12 Torvald Riegel <triegel@redhat.com>
1009 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1010 serialirr_onwrite_dispatch as new default for now.
1011 * method-serial.cc (serialirr_onwrite_dispatch): New.
1012 (GTM::dispatch_serialirr_onwrite): New.
1015 2011-08-12 Torvald Riegel <triegel@redhat.com>
1017 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1018 * query.cc (_ITM_getTransactionId): There is no active transaction if
1019 the current nesting level is zero.
1021 2011-07-28 Torvald Riegel <triegel@redhat.com>
1023 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1026 2011-07-28 Torvald Riegel <triegel@redhat.com>
1028 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1029 transaction properties from the caller instead of from the
1032 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1034 2011-07-28 Torvald Riegel <triegel@redhat.com>
1036 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1037 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1039 * method-serial.cc: Same.
1040 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1041 flat nesting as default, and closed nesting on demand.
1042 (GTM::gtm_transaction::rollback): Same.
1043 (_ITM_abortTransaction): Same.
1044 (GTM::gtm_transaction::restart): Same.
1045 (GTM::gtm_transaction::trycommit): Same.
1046 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1047 (choose_code_path): New.
1048 (GTM::gtm_transaction_cp::save): New.
1049 (GTM::gtm_transaction_cp::commit): New.
1050 * query.cc (_ITM_inTransaction): Support flat nesting.
1051 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1052 (GTM::gtm_transaction): Support flat and closed nesting.
1053 * alloc.cc (commit_allocations_2): New.
1054 (commit_cb_data): New helper struct.
1055 (GTM::gtm_transaction::commit_allocations): Handle nested
1057 * libitm.texi: Update user action section, add description of nesting.
1059 2011-07-28 Torvald Riegel <triegel@redhat.com>
1061 * libitm_i.h: Add closed nesting as restart reason.
1062 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1064 2011-07-28 Torvald Riegel <triegel@redhat.com>
1066 * useraction.cc: Use vector instead of list to store actions.
1067 Also support partial rollbacks for closed nesting.
1068 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1069 * beginend.cc: Same.
1071 2011-07-28 Torvald Riegel <triegel@redhat.com>
1073 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1074 closed_nesting flags, as well as a closed nesting alternative.
1075 * method-serial.cc: Same.
1076 (serial_dispatch): Renamed to serialirr_dispatch.
1077 (GTM::dispatch_serialirr): Same.
1078 (serial_dispatch_ul): Renamed to serial_dispatch.
1079 (GTM::dispatch_serial): Same.
1081 2011-07-28 Torvald Riegel <triegel@redhat.com>
1083 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1085 2011-07-28 Torvald Riegel <triegel@redhat.com>
1087 * aatree.h (aa_tree::remove): New.
1088 (aa_tree::operator new): Add placement new.
1090 2011-07-02 Torvald Riegel <triegel@redhat.com>
1092 * containers.h: New file.
1093 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1094 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1095 * common.h: ... to here.
1096 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1099 2011-06-30 Torvald Riegel <triegel@redhat.com>
1101 * libitm_i.h (STATE_ABORTING): Remove.
1102 * beginend.cc (_ITM_abortTransaction): Same.
1103 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1104 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1105 (_ITM_rollbackTransaction): Remove.
1106 * beginend.cc: Same.
1108 * libitm.texi: Document these ABI changes.
1110 2011-06-30 Torvald Riegel <triegel@redhat.com>
1112 * libitm.texi: New file.
1113 * Makefile.am: Add libitm.texi.
1114 * Makefile.in: Rebuild.
1116 2011-06-30 Torvald Riegel <triegel@redhat.com>
1118 * libitm_i.h: Move parts to common.h and dispatch.h.
1119 * common.h: New file.
1120 * dispatch.h: New file, new dispatch class.
1121 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1122 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1123 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1124 decision to retry.cc.
1125 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1127 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1128 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1130 * barrier.cc: Use new barriers definitions.
1131 (abi_dispatch::memmove_overlap_check): New.
1132 * config/x86/x86_sse.cc: Same.
1133 * config/x86/x86_avx.cc: Same.
1134 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1136 * Makefile.in: Rebuild.
1137 * method-readonly.cc: Remove.
1138 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1139 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1141 2011-06-30 Torvald Riegel <triegel@redhat.com>
1143 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1144 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1145 * testsuite/libitm.c/dropref-2.c: Same.
1146 * testsuite/libitm.c/dropref.c: Same.
1148 2011-06-30 Torvald Riegel <triegel@redhat.com>
1150 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1151 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1152 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1154 * barrier.tpl: Same.
1156 * config/generic/tls.h: Same.
1157 * config/x86/tls.h: Same.
1161 * method-readonly.cc: Same.
1162 * method-serial.cc: Same.
1163 * method-wbetl.cc: Same.
1166 2011-03-03 Richard Henderson <rth@redhat.com>
1168 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1169 From Patrik Marlier <patrick.marlier@unine.ch>.
1171 2011-02-03 Richard Henderson <rth@redhat.com>
1173 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1174 * configure.ac: Use it.
1175 * configure, config.h.in: Rebuild.
1176 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1177 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1178 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1179 * libitm.map: Use wildcards to match size_t mangling.
1181 2010-12-14 Richard Henderson <rth@redhat.com>
1183 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1184 blocks of TIDs per thread.
1185 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1186 (setup_gtm_thr): Return the thread structure.
1187 * config/x86/tls.h (setup_gtm_thr): Likewise.
1189 2010-12-14 Richard Henderson <rth@redhat.com>
1191 * clone.cc (table_lock): Remove.
1192 (find_clone): Don't take it.
1193 (ExcludeTransaction): New helper class.
1194 (_ITM_registerTMCloneTable): Use it.
1195 (_ITM_deregisterTMCloneTable): Likewise.
1197 2010-12-14 Richard Henderson <rth@redhat.com>
1199 * config/x86/tls.h: New file.
1201 2010-07-15 Richard Henderson <rth@redhat.com>
1203 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1204 * Makefile.in: Rebuild.
1206 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1208 * method-wbetl.cc (trydropreference): Fix source line.
1210 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1212 * libitm.h: Add comment.
1213 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1215 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1217 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1218 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1219 available, use pthread mutexes.
1220 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1221 * config.h.in: Regenerate.
1222 * configure: Regenerate.
1224 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1226 * libitm.h (ITM_PURE): Define.
1227 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1229 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1231 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1232 (validate): Add comment.
1233 (trydropreference): New.
1234 * method-readonly.cc (class readonly_dispatch): Add
1236 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1237 Call trydropreference().
1238 * libitm.h (_ITM_dropReferences): Remove const attribute.
1239 * method-serial.cc (class serial_dispatch): Add trydropreference.
1240 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1242 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1244 * memcpy.cc (do_memcpy): Comment.
1246 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1248 * barrier.tpl: Add comments throughout.
1250 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1252 * method-wbetl.cc (struct w_entry): Add comments.
1256 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1258 * alloc_c.cc (_ITM_dropReferences): New.
1259 * libitm.map (_ITM_dropReferences): Add.
1260 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1261 * libitm_i.h (struct gtm_transaction): Declare
1262 drop_references_allocations and drop_references_local.
1263 * local.cc (rollback_local): Ignore memory when applicable.
1264 (drop_references_local): New.
1266 2010-06-23 Richard Henderson <rth@redhat.com>
1268 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1269 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1270 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1271 * config/alpha/target.h: Likewise.
1272 * config/generic/tls.cc (gtm_mask_stack): Use it.
1274 2010-06-23 Richard Henderson <rth@redhat.com>
1276 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1277 a mutex instead of trying a lock-free compare-and-swap on the list.
1278 (gtm_cacheline_page::operator delete): Likewise.
1280 2010-06-16 Richard Henderson <rth@redhat.com>
1282 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1283 that overlap the libitm stack.
1284 * barrier.tpl: Mark incoming stack.
1285 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1286 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1287 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1288 * memcpy.cc, memset.cc: Likewise.
1289 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1290 * config/generic/tls.h (gtm_thread): Add stack_top member.
1291 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1292 * libitm_i.h (gtm_mask_stack): Declare.
1293 * config/generic/tls.cc: New file.
1294 * Makefile.am (libitm_la_SOURCES): Add it.
1295 (AM_CXXFLAGS): Turn off exceptions.
1296 * Makefile.in: Rebuild.
1298 2010-06-16 Richard Henderson <rth@redhat.com>
1300 * alloc.cc (struct gtm_alloc_action): Move definition ...
1301 * libitm_i.h: ... here.
1302 (class gtm_transaction): Declare new and delete.
1303 * beginend.cc (alloc_tx): Reformulate as operator new.
1304 (free_tx): Reformulate as operator delete.
1305 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1307 2010-06-11 Richard Henderson <rth@redhat.com>
1309 * clone.cc (clone_entry_compare): Fix typo.
1310 From Patrik Marlier <patrick.marlier@unine.ch>.
1312 2010-05-13 Richard Henderson <rth@redhat.com>
1314 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1317 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1319 * libitm_i.h (struct gtm_transaction): Remove
1320 get_allocation_size.
1321 (record_allocation): Remove size parameter.
1322 * libitm.map (_ITM_realloc): Remove.
1323 * alloc_c.cc (_ITM_realloc): Remove.
1324 (_ITM_malloc): Remove size argument to record_allocation.
1325 (_ITM_calloc): Same.
1326 * alloc_cpp.cc (_ZGTtnwm): Same.
1327 (_ZGTtnwmRKSt9nothrow_t): Same.
1329 (_ZGTtnamRKSt9nothrow_t): Same.
1330 * alloc.cc (struct gtm_alloc_action): Remove size.
1331 (get_allocation_size): Remove.
1332 (commit_allocations): Add comment.
1333 (record_allocation): Remove size parameter.
1334 (forget_allocation): Remove set of size.
1336 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1338 * Makefile.am (abi_version): New.
1339 (AM_CXXFLAGS): Pass abi_version.
1340 * Makefile.in: Regenerate.
1341 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1343 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1345 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1346 _ITM_getTMCloneOrIrrevokable.
1347 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1348 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1350 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1352 * configure.ac: Remove Linux futex support.
1353 * configure.tgt (config_path): Same.
1354 * Makefile.am: Same.
1355 * config/linux: Remove entire directory.
1356 * configure: Rebuild.
1357 * Makefile.in: Rebuild.
1358 * testsuite/Makefile.in: Rebuild.
1360 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1362 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1363 switching to serial mode.
1364 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1366 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1368 * configure.tgt: Add emacs -*- tags.
1369 * barrier.tpl: Same.
1371 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1373 * Makefile.am: Rename serial.cc to method-serial.cc.
1374 * Makefile.in: Regenerate with automake 1.11.1.
1375 * testsuite/Makefile.in: Same.
1376 * aclocal.m4: Regenerate with aclocal 1.11.1.
1377 * method-serial.cc: Rename from serial.cc.
1378 * libitm_i.h (struct gtm_transaction): Update comment on
1381 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1383 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1384 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1386 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1388 * configure: Rebuild.
1390 2009-11-12 Richard Henderson <rth@redhat.com>
1392 * Rewrite everything in C++.
1394 2009-11-03 Richard Henderson <rth@redhat.com>
1396 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1397 * Makefile.am (libitm_la_SOURCES): Add them.
1398 * configure.ac (ARCH_X86): New conditional.
1399 * Makefile.in, configure: Rebuild.
1400 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1401 Move futex setup into "other system configury" case.
1402 * local.c (rollback_local): Merge into ...
1403 (GTM_rollback_local): ... here.
1404 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1405 (_ITM_LB): Define as an alias to GTM_LB.
1407 2009-11-03 Richard Henderson <rth@redhat.com>
1409 * method-readonly.c: New file.
1410 * Makefile.am (libitm_la_SOURCES): Add it.
1411 * Makefile.in: Rebuild.
1412 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1413 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1414 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1415 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1416 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1417 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1418 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1419 gtm_get_clock, gtm_inc_clock): New.
1420 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1421 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1422 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1423 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1424 replace uses with new libitm_i.h symbols.
1425 (dispatch_wbetl): Rename from wbetl_dispatch.
1426 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1427 away from dispatch_readonly; abort if the beginTransaction call
1428 asserted that the transaction was readonly.
1430 2009-11-03 Richard Henderson <rth@redhat.com>
1432 * memset.c: New file.
1433 * Makefile.am (libitm_la_SOURCES): Add it.
1434 * Makefile.in: Rebuild.
1435 * testsuite/libitm.c/memset-1.c: New.
1437 2009-11-03 Richard Henderson <rth@redhat.com>
1439 * dispatch.c: Remove file.
1440 * useraction.c (struct gtm_user_action): Move from libitm.h.
1441 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1442 (serial_memset, serial_memmove, serial_memcpy): Remove.
1443 (serial_W*, serial_R*): Remove.
1444 (serial_dispatch): Update to match.
1445 * configure.ac: Move Werror down below configure checks. Don't
1446 check for sys/loadavg.h, do check for malloc.h. Don't check for
1447 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1448 Use GCC_AC_FUNC_MMAP_BLACKLIST
1449 * libitm.h: Split out all internal items to...
1450 * libitm_i.h: ... here. New file.
1451 * copymask.c: New file.
1452 * local.c (struct gtm_local_undo): Move from libitm.h.
1453 (GTM_alloc_local): Rename from alloc_local; export.
1454 * memcpy.c: New file.
1455 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1456 * config/posix/page.c: New file.
1457 * config/posix/target_tls.h: Remove file.
1458 * barrier.c: New file.
1459 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1461 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1462 * method-wbetl.c: Rewrite for new cacheline methods.
1463 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1465 * config/alpha/sjlj.S: Fix typo.
1466 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1467 * config/alpha/copymask.c: New file.
1468 * config/alpha/target.h (CACHELINE_SIZE): New.
1469 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1471 * config/x86/target_i.h: Copy functions from x86/target.h.
1472 * config/x86/copymask.c: New file.
1473 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1474 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1475 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1476 * config/x86/target_tls.h: Move contents to target_i.h.
1478 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1479 * testsuite/libitm.c/memcpy-1.c: New.
1481 2009-10-22 Richard Henderson <rth@redhat.com>
1483 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1484 (AM_CCASFLAGS): New.
1485 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1486 saving/restoring _AC_ARG_VAR_PRECIOUS.
1487 * Makefile.in, aclocal.m4, config.h.in, configure,
1488 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1490 2009-10-22 Richard Henderson <rth@redhat.com>
1492 * testsuite/*: Update for new compiler syntax.
1494 2009-10-21 Richard Henderson <rth@redhat.com>
1496 * libitm.h (_ITM_abortReason): Add outerAbort.
1498 2009-08-03 Richard Henderson <rth@redhat.com>
1500 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1501 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1502 * method-wbetl.c (struct w_entry): Remove mask.
1503 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1506 2009-07-22 Richard Henderson <rth@redhat.com>
1508 * eh_cpp.c: New file.
1509 * Makefile.am (libitm_la_SOURCES): Add it.
1510 * Makefile.in: Rebuild.
1511 * beginend.c (GTM_rollback_transaction): Undo exception state.
1512 (GTM_trycommit_transaction): Mark inline.
1513 (GTM_trycommit_and_finalize_transaction): Split out from ...
1514 (_ITM_commitTransaction): ... here.
1515 (_ITM_commitTransactionEH): New function.
1516 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1517 cxa_unthrown, eh_in_flight; reorder.
1519 * testsuite/libitm.c++/c++.exp: New.
1520 * testsuite/libitm.c++/eh-1.C: New.
1522 * aatree.c (aa_free): Remove REGPARM.
1523 * aatree.h: Remove all REGPARM.
1525 2009-07-18 Richard Henderson <rth@redhat.com>
1527 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1528 * Makefile.am (libitm_la_SOURCES): Add them.
1529 * Makefile.in: Rebuild.
1530 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1531 (GTM_trycommit_transaction): Likewise.
1532 * libitm.h: Include aatree.h
1533 (struct gtm_alloc_action): New.
1534 (struct gtm_transaction): Add alloc_actions.
1535 (GTM_record_allocation, GTM_forget_allocation): Declare.
1536 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1537 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1538 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1539 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1540 _ZGTtdaPvRKSt9nothrow_t): Export.
1542 2009-07-18 Richard Henderson <rth@redhat.com>
1544 * target_tls.h: Move ...
1545 * config/posix/target_tls.h: ... here.
1547 2009-07-07 Richard Henderson <rth@redhat.com>
1549 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1551 2009-07-07 Richard Henderson <rth@redhat.com>
1555 2009-07-07 Richard Henderson <rth@redhat.com>
1557 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1558 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1560 * configure.tgt: Don't use -ftls-model for x86 linux.
1561 * libitm.h: Include target.h after standard includes.
1562 (_gtm_thr): Rename from gtm_thr.
1563 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1564 (gtm_disp, set_gtm_disp): New.
1565 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1566 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1567 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1569 2009-07-07 Richard Henderson <rth@redhat.com>
1571 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1573 2009-07-06 Richard Henderson <rth@redhat.com>
1575 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1576 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1577 (_ITM_beginTransaction): Take variadic arguments.
1578 (_ITM_registerThrownObject): Declare.
1579 * beginend.c, serial.c: Update.
1580 * libitm.map: Add _ITM_registerThrownObject.
1582 2009-01-28 Richard Henderson <rth@redhat.com>
1584 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1585 * Makefile.in: Rebuild.
1586 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1587 (GTM_restart_transaction): Fix uninstrumented code check.
1588 * retry.c (GTM_decide_retry_strategy): Add serial check.
1589 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1590 automatically go irrevokable when in serial mode.
1591 * clone.c: New file.
1592 * libitm.h, libitm.map: Update.
1594 2009-01-27 Richard Henderson <rth@redhat.com>
1596 * Makefile.am (LTCCASCOMPILE): Define.
1597 (libitm_la_SOURCES): Add methid-wbetl.c.
1598 * testsuite/Makefile.am: New
1599 * configure.ac: Add testsuite/Makefile.
1600 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1601 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1602 (_ITM_abortTransaction): Finalize implementation method; pass
1603 transaction properties to longjmp.
1604 (GTM_restart_transaction): Split out from ...
1605 (_ITM_commitTransaction): ... here.
1606 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1607 Move to config/x86/target.h.
1608 * config/linux/alpha/futex_bits.h: New.
1609 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1610 * config/x86/target.h: Disable target types for 32-bit.
1611 * config/alpha/sjlj.S, config/alpha/target.h: New.
1612 * libitm.h (struct gtm_dispatch): Add init, fini.
1613 (enum restart_reason): New.
1614 (struct gtm_transaction): Add method and restarts.
1615 * retry.c (GTM_decide_retry_strategy): Implement.
1616 * serial.c (serial_init, serial_fini): New.
1617 (GTM_serialmode): Finialize outgoing method.
1618 * method-wbetl.c: New.
1620 2008-12-09 Richard Henderson <rth@redhat.com>
1622 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1623 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1624 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1625 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1626 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1627 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1628 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1629 * serial.c (serial_R##T, serial_W##T): Likewise.
1631 2008-11-21 Richard Henderson <rth@redhat.com>