1 2014-01-02 Tobias Burnus <burnus@net-b.de>
3 * libitm.texi: Bump @copying's copyright year.
5 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
8 (FUNC): Define ELFv2 variant.
15 2013-09-20 Alan Modra <amodra@gmail.com>
17 * configure: Regenerate.
19 2013-08-30 Torvald Riegel <triegel@redhat.com>
21 * config/posix/rwlock.cc: Fix initialization order.
23 2013-08-30 Torvald Riegel <triegel@redhat.com>
25 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
26 (htm_fastpath): Assign an asm name.
27 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
29 (_ITM_actions): Likewise.
30 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
32 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
33 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
34 field to the start of the structure.
35 * config/linux/rwlock.h (gtm_rwlock): Update comments.
36 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
37 handling for custom HTM fast paths.
39 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43 * configure.tgt: Add -msoft-float to XCFLAGS.
45 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
47 * configure.tgt: Add -msoft-float to XCFLAGS.
49 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
51 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
52 (htm_transaction_active): Enable zEC12 instructions in the
54 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
56 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
58 * acinclude.m4: Add htm asm check for s390.
59 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
60 * configure: Regenerate.
61 * config/s390/target.h: Remove __HTM__ check.
62 (htm_available): Call getauxval to get hwcaps and check whether
63 HTM is available or not.
65 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
67 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
68 * configure.ac: Use it.
69 (AC_CHECK_HEADERS): Check for sys/auxv.h.
70 (AC_CHECK_FUNCS): Check for getauxval.
71 * config.h.in, configure: Rebuild.
72 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
73 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
74 (USE_HTM_FASTPATH): Define.
75 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
76 _HTM_RETRIES) New macros.
77 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
78 htm_begin_success, htm_commit, htm_transaction_active): New functions.
80 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
82 * config/s390/target.h: Include htmintrin.h.
83 (_HTM_ITM_RETRIES): New macro definition.
84 (htm_available, htm_init, htm_begin, htm_begin_success)
85 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
87 2013-06-20 Iain Sandoe <iain@codesourcery.com>
88 Cesar Philippidis <cesar@codesourcery.com>
90 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
91 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
92 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
93 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
95 2013-06-20 Torvald Riegel <triegel@redhat.com>
97 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
98 (_ITM_getTransactionId): Same.
99 * config/x86/target.h (htm_transaction_active): New.
101 2013-06-20 Torvald Riegel <triegel@redhat.com>
104 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
107 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
110 * local_atomic (__always_inline): Always define our version.
111 (__calculate_memory_order): Mark inline.
112 (atomic_thread_fence): Ditto.
113 (atomic_signal_fence): Ditto.
114 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
115 (atomic_bool::atomic_flag_clear_explicit): Ditto.
116 (atomic_bool::atomic_flag_test_and_set): Ditto.
117 (atomic_bool::atomic_flag_clear): Ditto.
119 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
121 * config/s390/sjlj.S: New file.
122 * config/s390/target.h: New file.
123 * configure.tgt: Set options for S/390.
125 2013-03-23 Andi Kleen <ak@linux.intel.com>
127 * local_atomic (__always_inline): Add.
128 (__calculate_memory_order, atomic_thread_fence,
129 atomic_signal_fence, test_and_set, clear, store, load,
130 exchange, compare_exchange_weak, compare_exchange_strong,
131 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
132 Add __always_inline to force inlining.
134 2013-02-11 Iain Sandoe <iain@codesourcery.com>
135 Jack Howarth <howarth@bromo.med.uc.edu>
136 Patrick Marlier <patrick.marlier@gmail.com>
139 * alloc_cpp.cc: Enable function declarations on darwin.
140 * eh_cpp.cc: Likewise.
142 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
144 Update copyright years.
146 2012-11-09 Torvald Riegel <triegel@redhat.com>
148 * beginend.cc (htm_fastpath): New.
149 (gtm_thread::begin_transaction, _ITM_commitTransaction,
150 _ITM_commitTransactionEH): Add HTM fastpath handling.
151 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
152 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
153 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
154 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
155 * configure.tgt: Add -mrtm to XCFLAGS.
156 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
157 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
158 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
159 * retry.cc (parse_default_method): Add HTM method parsing.
160 (gtm_thread::number_of_threads_changed): Use HTM by default if
163 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
165 * configure: Regenerate.
167 2012-10-31 Richard Henderson <rth@redhat.com>
169 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
170 * configure.ac: Use it.
171 * config.h.in, configure: Rebuild.
172 * testsuite/Makefile.in: Rebuild.
174 2012-10-24 Torvald Riegel <triegel@redhat.com>
176 * libitm.texi: Clarify ABI requirements for data-logging functions.
178 2012-10-24 Torvald Riegel <triegel@redhat.com>
180 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
181 it requires serial mode instead of assuming that for certain
183 * dispatch.h (abi_dispatch::requires_serial): New.
184 (abi_dispatch::abi_dispatch): Adapt.
185 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
186 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
187 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
188 serial_dispatch::serial_dispatch,
189 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
191 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
193 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
194 and ia32 declarations some more.
195 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
197 2012-09-20 Jakub Jelinek <jakub@redhat.com>
200 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
201 * configure: Regenerate.
202 * Makefile.in: Regenerate.
204 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
206 * configure: Regenerated.
208 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
210 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
212 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
214 * eh_cpp.cc: Fix __cxa_end_catch declaration.
216 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
218 * configure: Regenerated.
220 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
223 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
226 2012-04-03 Tristan Gingold <gingold@adacore.com>
228 * configure: Regenerate.
230 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
233 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
235 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
237 * testsuite/lib/libitm.exp: load fortran-modules.exp
239 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241 * configure.tgt (*-*-irix6*): Remove.
243 2012-03-13 Torvald Riegel <triegel@redhat.com>
246 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
249 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * configure.tgt (*-*-osf*): Remove.
252 * configure: Regenerate.
254 2012-03-05 Torvald Riegel <triegel@redhat.com>
256 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
257 memtransfer/memset if size isn't larger than zero.
259 2012-03-02 Torvald Riegel <triegel@redhat.com>
261 * libitm.texi: Link to specification and add a usage example.
263 2012-02-24 Torvald Riegel <triegel@redhat.com>
265 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
266 default dispatch for more than 1 thread to ml_wt.
268 2012-02-20 Torvald Riegel <triegel@redhat.com>
270 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
272 2012-02-20 Torvald Riegel <triegel@redhat.com>
274 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
276 2012-02-20 Torvald Riegel <triegel@redhat.com>
278 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
279 serial mode corner cases made obsolete by prior gtm_rwlock changes.
280 (gl_wt_dispatch.rollback): Same.
282 2012-02-20 Torvald Riegel <triegel@redhat.com>
284 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
286 2012-02-20 Torvald Riegel <triegel@redhat.com>
288 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
289 for RfW src. Optimize number of calls to gtm_thr.
291 2012-02-20 Torvald Riegel <triegel@redhat.com>
293 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
295 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
296 (default_dispatch): Make atomic.
297 (GTM::gtm_thread::set_default_dispatch): Access atomically.
298 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
299 use decide_begin_dispatch() if default_dispatch might have changed.
300 (GTM::gtm_thread::number_of_threads_changed): Initialize
301 default_dispatch here.
303 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
304 Patrick Marlier <patrick.marlier@gmail.com>
307 * alloc_cpp.cc: No dummy definitions for darwin.
308 * eh_cpp.cc: Likewise.
310 2012-02-14 Richard Henderson <rth@redhat.com>
312 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
314 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
316 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
318 2012-02-14 Torvald Riegel <triegel@redhat.com>
320 * libitm_i.h (GTM::gtm_rwlog_entry): New.
321 (GTM::gtm_thread): Add read and write logs.
322 (GTM::dispatch_ml_wt): Declare.
323 * retry.cc (parse_default_method): Support ml_wt.
324 * method-ml.cc: New file.
325 * Makefile.am: Add method-ml.cc.
326 * Makefile.in: Regenerate.
328 2012-02-14 Torvald Riegel <triegel@redhat.com>
330 * dispatch.h (GTM::abi_dispatch::supports): New.
331 (GTM::method_group::reinit): New.
332 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
333 (GTM::gtm_thread::number_of_threads_changed): Check that the method
334 supports the current situation.
336 2012-02-14 Torvald Riegel <triegel@redhat.com>
338 * util.cc (GTM::xcalloc): New.
339 * common.h (GTM::xcalloc): Declare.
341 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
343 * config/sparc/target.h (cpu_relax): Read from CC register.
344 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
346 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
348 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
350 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
352 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
353 * config/sparc/cacheline.h: New file.
354 * config/sparc/target.h: Likewise.
355 * config/sparc/sjlj.S: Likewise.
356 * config/linux/sparc/futex_bits.h: Likewise.
358 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
360 * configure.ac (link_itm): Fix comment.
361 * configure: Regenerate.
362 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
364 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
368 Correct libgomp references.
370 2012-01-24 Torvald Riegel <triegel@redhat.com>
372 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
375 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
377 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
379 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
380 offset values. Do not copy return address. Decrement stack
382 (GTM_longjump) [__x86_64__]: Update offset values.
384 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
387 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
388 the first function argument to %eax.
390 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
392 * libitm.h (_ITM_getThreadnum): Remove.
393 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
395 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397 * clearcap.map: New file.
398 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
399 * configure.ac: Call it.
400 Clear HWCAP_LDFLAGS if defaulting to -mavx.
401 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
402 * configure: Regenerate.
403 * Makefile.in: Regenerate.
404 * testsuite/Makefile.in: Regenerate.
406 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
409 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
410 include, exclude options.
412 2012-01-14 Torvald Riegel <triegel@redhat.com>
414 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
416 * containers.h (GTM::vector::set_size): New.
418 2012-01-14 Torvald Riegel <triegel@redhat.com>
421 * config/generic/tls.h (GTM::mask_stack_top): New.
422 (GTM::mask_stack_bottom): Declare.
423 * config/generic/tls.c (GTM::mask_stack_bottom): New.
424 * local.cc (gtm_undolog::rollback): Filter out any updates that
425 overlap the libitm stack. Add current transaction as parameter.
426 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
427 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
428 * testsuite/libitm.c/stackundo.c: New test.
430 2012-01-10 Richard Henderson <rth@redhat.com>
432 * libitm_i.h (_Unwind_DeleteException): Declare weak.
433 * eh_cpp.cc (_Unwind_DeleteException): Define for
434 !HAVE_ELF_STYLE_WEAKREF.
436 2012-01-08 Torvald Riegel <triegel@redhat.com>
438 * local.cc (GTM_LB): Use GTM::gtm_undolog.
439 (GTM::gtm_thread::drop_references_undolog): Remove.
440 (GTM::gtm_thread::commit_undolog,
441 GTM::gtm_thread::rollback_undolog): Move to ...
442 * libitm_i.h (GTM::gtm_undolog): ...here. New.
443 (GTM::gtm_undolog_entry): Remove.
444 (GTM::gtm_thread): Adapt.
445 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
446 (GTM::gtm_thread::trycommit): Adapt.
447 * method-serial.cc (serial_dispatch::log): Adapt.
448 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
449 (gl_wt_dispatch::store): Fix likely/unlikely.
450 * containers.h (GTM::vector::resize): Add additional_capacity
451 parameter and handle it.
452 (GTM::vector::resize_noinline): New/adapt.
453 (GTM::vector::push): New.
455 2012-01-06 Richard Henderson <rth@redhat.com>
457 * configure.tgt: Support powerpc-linux and powerpc-darwin.
458 * config/linux/powerpc/futex_bits.h: New file.
459 * config/powerpc/cacheline.h: New file.
460 * config/powerpc/sjlj.S: New file.
461 * config/powerpc/target.h: New file.
462 * config/generic/asmcfi.h (cfi_offset): New.
463 (cfi_restore, cfi_undefined): New.
465 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
468 * testsuite/libitm.c/reentrant.c: Remove xfail.
469 (thread): Pass x to pure().
470 From Patrik Marlier <patrick.marlier@gmail.com>.
472 2011-12-24 Torvald Riegel <triegel@redhat.com>
474 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
475 privatization safety if already in serial mode.
477 2011-12-24 Torvald Riegel <triegel@redhat.com>
479 * beginend.cc (GTM::gtm_thread::restart): Add and handle
480 finish_serial_upgrade parameter.
481 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
482 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
483 Don't unset reader flag.
484 (GTM::gtm_rwlock::write_upgrade_finish): New.
485 * config/posix/rwlock.cc: Same.
486 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
488 * config/posix/rwlock.h: Same.
489 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
490 flag after commit or after rollback when restarting.
492 2011-12-24 Torvald Riegel <triegel@redhat.com>
494 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
495 (GTM::gtm_thread::try_commit): Changed memory order.
496 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
498 * config/linux/x86/futex_bits.h (sys_futex0): Same.
499 * config/linux/sh/futex_bits.h (sys_futex0): Same.
500 * config/linux/futex_bits.h (sys_futex0): Same.
501 * config/linux/futex.cc (futex_wait, futex_wake): Same.
502 * config/linux/futex.h (futex_wait, futex_wake): Same.
503 * config/linux/rwlock.h (gtm_rwlock::writers,
504 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
506 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
507 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
508 gtm_rwlock::write_unlock): Fix memory orders and fences.
509 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
510 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
511 gtm_rwlock::write_unlock): Same.
512 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
513 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
514 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
516 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
517 gl_wt_dispatch::load, gl_wt_dispatch::store,
518 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
519 orders and fences. Add comments.
521 2011-12-21 Jakub Jelinek <jakub@redhat.com>
523 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
524 * Makefile.in: Regenerated.
526 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
528 * configure.tgt: Add sh* case.
529 * config/sh/target.h: New file.
530 * config/sh/sjlj.S: New file.
531 * config/linux/sh/futex_bits.h: New file.
533 2011-12-14 Richard Henderson <rth@redhat.com>
535 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
536 * config/arm/sjlj.S, config/arm/target.h: New files.
537 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
538 (cfi_rel_offset): New.
539 * config/linux/futex_bits.h: New file.
540 * config/linux/futex.cc: Include futex_bits.h here...
541 * config/linux/futex.h: ... not here.
542 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
543 * configure.ac (ARCH_AM): New conditional.
544 * Makefile.in, configure: Rebuild.
545 * configure.tgt: Handle ARM.
547 2011-12-13 Richard Henderson <rth@redhat.com>
549 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
550 signed/unsigned comparison werror.
552 * local_atomic: New file.
553 * libitm_i.h: Include it.
554 (gtm_thread::shared_state): Use atomic template.
555 * beginend.cc (GTM::gtm_clock): Use atomic template.
556 (global_tid): Use atomic template if 64-bit atomics available.
557 (gtm_thread::gtm_thread): Update shared_state access.
558 (gtm_thread::trycommit): Likewise.
559 (choose_code_path): Update global_tid access.
560 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
561 * stmlock.h (GTM::gtm_clock): Use atomic template.
562 (gtm_get_clock, gtm_inc_clock): Update accesses.
563 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
564 redundant __sync_synchronize after atomic shared_state access.
565 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
566 (gtm_rwlock::write_lock_generic): Likewise.
567 (gtm_rwlock::read_unlock): Likewise.
568 * config/alpha/target.h (atomic_read_barrier): Remove.
569 (atomic_write_barrier): Remove.
570 * config/x86/target.h (atomic_read_barrier): Remove.
571 (atomic_write_barrier): Remove.
573 2011-11-30 Richard Henderson <rth@redhat.com>
575 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
576 * beginend.c (_ITM_abortTransaction): Update to match.
577 (GTM::gtm_thread::restart): Likewise.
578 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
579 * config/x86/sjlj.S (GTM_longjmp): Likewise.
581 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
583 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
584 * Makefile.in: Regenerate.
586 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
588 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
589 * alloc_cpp.cc: Generate dummy functions if we don't
590 HAVE_ELF_STYLE_WEAKREF.
591 * eh_cpp.cc: Likewise.
592 * configure: Regenerate.
593 * aclocal.m4: Likewise.
594 * config.h.in: Likewise.
595 * Makefile.in: Likewise.
596 * testsuite/Makefile.in: Likewise.
598 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
600 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
601 __USER_LABEL_PREFIX__ for targets that use it.
602 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
603 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
604 in portability to non-elf targets.
605 (GTM_longjmp): Likewise.
606 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
609 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
611 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
612 * testsuite/libitm.c/memset-1.c: Likewise.
614 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
616 * configure: Regenerate.
618 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
621 (LIBITM_ENABLE_SYMVERS): Handle sun style.
622 * Makefile.am: Handle sun style versioning.
623 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
624 * configure: Regenerate.
625 * Makefile.in: Regenerate.
627 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629 * config/generic/asmcfi.h: Fix comment.
630 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
631 sequence without .hidden support, error for non-ELF targets.
632 (GTM_longjmp) [__ELF__]: Only use .hidden if
633 HAVE_ATTRIBUTE_VISIBILITY.
635 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
638 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
640 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
641 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
643 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
646 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
647 * configure: Regenerate.
649 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
651 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
653 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
655 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
657 (.note.GNU-stack): Only use if __linux__.
658 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
659 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
660 * testsuite/libitm.c/reentrant.c: Likewise.
661 * testsuite/libitm.c/simple-2.c: Likewise.
662 * testsuite/libitm.c/txrelease.c: Likewise.
663 * testsuite/libitm.c++/static_ctor.C: Likewise.
665 2011-11-10 Richard Henderson <rth@redhat.com>
667 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
668 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
669 * configure.ac (ARCH_X86_AVX): New conditional.
670 * Makefile.in, configure: Rebuild.
672 2011-11-09 Richard Henderson <rth@redhat.com>
674 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
675 * configure.ac: Use it.
676 * config.h.in, configure: Rebuild.
677 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
679 2011-11-09 Richard Henderson <rth@redhat.com>
681 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
682 * config/alpha/unaligned.h: Remove file.
683 * config/generic/unaligned.h: Remove file.
684 * config/x86/unaligned.h: Remove file.
685 * config/generic/cachepage.h: Remove file.
686 * config/posix/cachepage.cc: Remove file.
687 * config/generic/cacheline.cc: Remove file.
688 * config/x86/cacheline.cc: Remove file.
689 * config/generic/cacheline.h (gtm_cacheline): Remove the
690 store_mask, copy_mask, copy_mask_wb methods.
691 * config/x86/cacheline.h: Likewise.
692 * config/alpha/cacheline.h: Fall back to generic after setting size.
693 * config/generic/tls.cc (gtm_mask_stack): Remove.
694 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
695 (GTM_vpalignr_table): Remove.
696 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
697 (GTM_pshift_table): Remove.
698 * config/libitm_i.h: Don't include cachepage.h.
699 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
700 * Makefile.in, testsuite/Makefile.in: Rebuild.
702 2011-11-09 Richard Henderson <rth@redhat.com>
704 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
705 to emit branch prediction hint.
707 * config/x86/sjlj.S: Protect elf directives with __ELF__.
708 Protect .note.GNU-stack with __linux__.
710 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
711 * configure, aclocal.m4, config.h.in: Rebuild.
712 * config/generic/asmcfi.h: New file.
713 * config/x86/sjlj.S: Use it.
715 2011-11-08 Richard Henderson <rth@redhat.com>
717 * local.cc (_ITM_LB): Use a normal call, not a function alias.
719 2011-11-08 Richard Henderson <rth@redhat.com>
721 * configure.tgt: Test correct directory for supported cpus.
723 * configure.ac: Exit if unsupported.
724 * configure: Rebuild.
725 * configure.tgt: Delete boilerplate from libgomp for unsupported
726 targets. Set UNSUPPORTED for unsupported targets.
728 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
730 * configure.tgt: Handle i386 like i[456]86.
731 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
733 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
734 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
736 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
738 * method-wbetl.cc: Update copyright notice.
745 * useraction.cc: Same.
749 * config/generic/tls.cc: Same.
750 * config/generic/cacheline.h: Same.
751 * config/generic/cachepage.h: Same.
752 * config/generic/cacheline.cc: Same.
753 * config/generic/unaligned.h: Same.
754 * config/x86/cacheline.h: Same.
755 * config/x86/cacheline.cc: Same.
756 * config/x86/unaligned.h: Same.
757 * config/alpha/cacheline.h: Same.
758 * config/alpha/unaligned.h: Same.
759 * config/alpha/sjlj.S: Same.
760 * config/posix/cachepage.cc: Same.
761 * config/linux/futex.h: Same.
762 * config/linux/alpha/futex_bits.h: Same.
764 2011-11-04 Torvald Riegel <triegel@redhat.com>
766 * libitm.texi: No cover text and invariant sections.
768 2011-11-03 Richard Henderson <rth@redhat.com>
770 * local_type_traits: New file.
771 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
773 2011-11-03 Richard Henderson <rth@redhat.com>
775 * configure.ac: Don't test for gfortran.
776 * configure: Rebuild.
778 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
779 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
781 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
783 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
784 * testsuite/libitm.c/memset-1.c: Same.
785 * testsuite/libitm.c/c.exp: Same.
786 * testsuite/lib/libitm-dg.exp: Same.
787 * testsuite/lib/libitm.exp: Same.
788 * testsuite/libitm.c++/c++.exp: Same.
790 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
792 * testsuite/config/default.exp: Update copyright date.
793 * configure.ac: Add copyright info.
794 * configure.tgt: Same.
796 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
798 * testsuite/libitm.c/reentrant.c: XFAIL.
799 * testsuite/libitm.c++/static_ctor.C: XFAIL.
801 2011-10-29 Torvald Riegel <triegel@redhat.com>
803 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
805 (_ITM_abortTransaction): Handle aborts of outer transactions.
807 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
808 * libitm.texi: Document aborts of outer transactions.
809 * testsuite/libitm.c/cancel.c: New file.
811 2011-10-19 Torvald Riegel <triegel@redhat.com>
813 * testsuite/*: Change __transaction to __transaction_atomic or
814 __transaction_relaxed.
816 2011-10-19 Torvald Riegel <triegel@redhat.com>
818 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
821 2011-10-19 Torvald Riegel <triegel@redhat.com>
823 * libitm_i.h: Add gl_wt dispatch.
824 * retry.cc (parse_default_method): Same.
825 * method-gl.cc: New file.
826 * Makefile.am: Use method-gl.cc.
827 * Makefile.in: Rebuild.
829 2011-10-19 Torvald Riegel <triegel@redhat.com>
831 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
832 safety if requested by a TM method.
833 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
834 privatization safety.
835 * method-serial.cc: Same.
837 2011-10-19 Torvald Riegel <triegel@redhat.com>
839 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
840 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
841 undolog-related member functions from *_local to *_undolog.
842 * local.cc (gtm_thread::commit_undolog): Same.
843 * beginend.cc (GTM::gtm_thread::trycommit): Same.
844 (GTM::gtm_thread::rollback): Roll back undolog before
845 dispatch-specific rollback.
847 2011-10-19 Torvald Riegel <triegel@redhat.com>
849 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
850 re-initialization of the current method group.
851 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
853 2011-10-19 Torvald Riegel <triegel@redhat.com>
855 * alloc.cc (commit_allocations_2): Do not free transaction-local
856 memory when committing a nested transaction.
858 2011-10-19 Torvald Riegel <triegel@redhat.com>
860 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
861 serial-irrevocable dispatch, not serial.
863 2011-10-19 Torvald Riegel <triegel@redhat.com>
865 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
867 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
868 * method-serial.cc: Implement begin_or_restart().
869 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
870 dispatch-specific begin_or_restart().
871 (GTM::gtm_thread::restart): Same.
873 2011-08-23 Torvald Riegel <triegel@redhat.com>
875 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
876 restarting without switching to serial mode.
877 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
878 transaction state. Choose closed-nesting alternative if available.
879 (GTM::gtm_thread::set_default_dispatch): New.
880 (parse_default_method): New.
881 (GTM::gtm_thread::number_of_threads_changed): New.
882 * method-serial.cc (GTM::serial_mg): New method group class.
883 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
885 (GTM::serial_dispatch): Same.
886 (GTM::serialirr_onwrite_dispatch): Same.
887 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
888 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
890 (GTM::gtm_thread::gtm_thread): Same.
891 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
892 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
893 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
894 choose dispatch but set state according to dispatch here.
895 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
896 (GTM::method_group): New class.
897 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
898 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
899 * libitm.texi: Document TM methods, method groups, method life cycle.
900 Rename method sets to method groups.
902 2011-08-23 Torvald Riegel <triegel@redhat.com>
904 * config/x86/tls.h: Moved to ...
905 * config/linux/x86/tls.h: ... here.
907 2011-08-23 Torvald Riegel <triegel@redhat.com>
909 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
911 * config/x86/sjlj.S: Same.
913 2011-08-19 Torvald Riegel <triegel@redhat.com>
915 * config/linux/rwlock.h: New file.
916 * config/linux/rwlock.c: New file.
917 * configure.ac: Reenable futex support (undo SVN rev 157758).
919 * configure.tgt: Same.
920 * config/linux/alpha/futex_bits.h: Same.
921 * config/linux/futex.h: Same. Return number of woken processes.
922 * config/linux/futex.cc: Same.
923 (futex_wait): Remove spinning.
924 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
925 Use __x86_64__ instead of __LP64__.
926 * aclocal.m4: Include generic futex checks.
927 * configure: Rebuild.
928 * Makefile.in: Rebuild.
929 * testsuite/Makefile.in: Rebuild.
930 * beginend.cc: Include pthread.h.
931 * config/posix/cachepage.cc: Same.
933 2011-08-12 Torvald Riegel <triegel@redhat.com>
935 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
936 (abi_disp, set_abi_disp): Move to tx's TLS slot.
938 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
940 (GTM::gtm_thread::thread_num): Removed.
941 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
942 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
943 tx-to-thread renaming.
944 * beginend.cc: Adapted to tx-to-thread renaming.
945 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
946 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
947 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
948 gtm_transaction to gtm_thread.
949 (_ITM_getThreadnum): Removed. Not supported anymore.
950 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
951 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
952 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
953 gtm_tx-to-gtm_thr renaming if necessary.
960 * alloc_cpp.cc: Same.
961 * method-serial.cc: Same.
962 * config/generic/tls.cc: Same.
963 * config/posix/rwlock.h (gtm_rwlock): Same.
964 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
966 2011-08-12 Torvald Riegel <triegel@redhat.com>
968 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
970 (gtm_rwlock::read_unlock): Same.
971 (gtm_rwlock::write_lock_generic): New. Generalized from ...
972 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
973 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
974 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
975 w_upgrade. Replaced by per-transaction flags (in shared_state).
976 Added c_confirmed_writers.
977 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
978 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
979 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
980 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
981 * beginend.cc (GTM::gtm_transaction::begin_transaction,
982 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
983 * libitm.texi: Document locking conventions and implementations in
986 2011-08-12 Torvald Riegel <triegel@redhat.com>
988 * libitm_i.h (next_tx): Add list of all threads' transaction.
989 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
990 transaction with list of transactions and ...
991 (thread_exit_handler): ... deregister here.
992 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
993 * config/x86/target.h: Same.
995 2011-08-12 Torvald Riegel <triegel@redhat.com>
997 * testsuite/libitm.c++/static_ctor.C: New file.
999 2011-08-12 Torvald Riegel <triegel@redhat.com>
1001 * testsuite/libitm.c/reentrant.c: New file.
1003 2011-08-12 Torvald Riegel <triegel@redhat.com>
1005 * config/generic/tls.h: Remove the free list for transactions and ...
1006 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1007 (GTM::gtm_transaction::operator delete): ... and release here.
1008 (thread_exit_handler): New. Delete tx when thread terminates.
1009 (thread_exit_init): New.
1010 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1011 * testsuite/libitm.c/txrelease.c: New file.
1013 2011-08-12 Torvald Riegel <triegel@redhat.com>
1015 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1016 * testsuite/libitm.c/notx.c: New file.
1018 2011-08-12 Torvald Riegel <triegel@redhat.com>
1020 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1021 * libitm_i.h (local_tid): ... to here.
1022 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1023 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1025 2011-08-12 Torvald Riegel <triegel@redhat.com>
1027 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1028 serialirr_onwrite_dispatch as new default for now.
1029 * method-serial.cc (serialirr_onwrite_dispatch): New.
1030 (GTM::dispatch_serialirr_onwrite): New.
1033 2011-08-12 Torvald Riegel <triegel@redhat.com>
1035 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1036 * query.cc (_ITM_getTransactionId): There is no active transaction if
1037 the current nesting level is zero.
1039 2011-07-28 Torvald Riegel <triegel@redhat.com>
1041 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1044 2011-07-28 Torvald Riegel <triegel@redhat.com>
1046 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1047 transaction properties from the caller instead of from the
1050 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1052 2011-07-28 Torvald Riegel <triegel@redhat.com>
1054 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1055 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1057 * method-serial.cc: Same.
1058 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1059 flat nesting as default, and closed nesting on demand.
1060 (GTM::gtm_transaction::rollback): Same.
1061 (_ITM_abortTransaction): Same.
1062 (GTM::gtm_transaction::restart): Same.
1063 (GTM::gtm_transaction::trycommit): Same.
1064 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1065 (choose_code_path): New.
1066 (GTM::gtm_transaction_cp::save): New.
1067 (GTM::gtm_transaction_cp::commit): New.
1068 * query.cc (_ITM_inTransaction): Support flat nesting.
1069 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1070 (GTM::gtm_transaction): Support flat and closed nesting.
1071 * alloc.cc (commit_allocations_2): New.
1072 (commit_cb_data): New helper struct.
1073 (GTM::gtm_transaction::commit_allocations): Handle nested
1075 * libitm.texi: Update user action section, add description of nesting.
1077 2011-07-28 Torvald Riegel <triegel@redhat.com>
1079 * libitm_i.h: Add closed nesting as restart reason.
1080 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1082 2011-07-28 Torvald Riegel <triegel@redhat.com>
1084 * useraction.cc: Use vector instead of list to store actions.
1085 Also support partial rollbacks for closed nesting.
1086 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1087 * beginend.cc: Same.
1089 2011-07-28 Torvald Riegel <triegel@redhat.com>
1091 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1092 closed_nesting flags, as well as a closed nesting alternative.
1093 * method-serial.cc: Same.
1094 (serial_dispatch): Renamed to serialirr_dispatch.
1095 (GTM::dispatch_serialirr): Same.
1096 (serial_dispatch_ul): Renamed to serial_dispatch.
1097 (GTM::dispatch_serial): Same.
1099 2011-07-28 Torvald Riegel <triegel@redhat.com>
1101 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1103 2011-07-28 Torvald Riegel <triegel@redhat.com>
1105 * aatree.h (aa_tree::remove): New.
1106 (aa_tree::operator new): Add placement new.
1108 2011-07-02 Torvald Riegel <triegel@redhat.com>
1110 * containers.h: New file.
1111 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1112 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1113 * common.h: ... to here.
1114 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1117 2011-06-30 Torvald Riegel <triegel@redhat.com>
1119 * libitm_i.h (STATE_ABORTING): Remove.
1120 * beginend.cc (_ITM_abortTransaction): Same.
1121 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1122 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1123 (_ITM_rollbackTransaction): Remove.
1124 * beginend.cc: Same.
1126 * libitm.texi: Document these ABI changes.
1128 2011-06-30 Torvald Riegel <triegel@redhat.com>
1130 * libitm.texi: New file.
1131 * Makefile.am: Add libitm.texi.
1132 * Makefile.in: Rebuild.
1134 2011-06-30 Torvald Riegel <triegel@redhat.com>
1136 * libitm_i.h: Move parts to common.h and dispatch.h.
1137 * common.h: New file.
1138 * dispatch.h: New file, new dispatch class.
1139 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1140 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1141 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1142 decision to retry.cc.
1143 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1145 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1146 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1148 * barrier.cc: Use new barriers definitions.
1149 (abi_dispatch::memmove_overlap_check): New.
1150 * config/x86/x86_sse.cc: Same.
1151 * config/x86/x86_avx.cc: Same.
1152 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1154 * Makefile.in: Rebuild.
1155 * method-readonly.cc: Remove.
1156 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1157 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1159 2011-06-30 Torvald Riegel <triegel@redhat.com>
1161 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1162 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1163 * testsuite/libitm.c/dropref-2.c: Same.
1164 * testsuite/libitm.c/dropref.c: Same.
1166 2011-06-30 Torvald Riegel <triegel@redhat.com>
1168 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1169 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1170 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1172 * barrier.tpl: Same.
1174 * config/generic/tls.h: Same.
1175 * config/x86/tls.h: Same.
1179 * method-readonly.cc: Same.
1180 * method-serial.cc: Same.
1181 * method-wbetl.cc: Same.
1184 2011-03-03 Richard Henderson <rth@redhat.com>
1186 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1187 From Patrik Marlier <patrick.marlier@unine.ch>.
1189 2011-02-03 Richard Henderson <rth@redhat.com>
1191 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1192 * configure.ac: Use it.
1193 * configure, config.h.in: Rebuild.
1194 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1195 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1196 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1197 * libitm.map: Use wildcards to match size_t mangling.
1199 2010-12-14 Richard Henderson <rth@redhat.com>
1201 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1202 blocks of TIDs per thread.
1203 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1204 (setup_gtm_thr): Return the thread structure.
1205 * config/x86/tls.h (setup_gtm_thr): Likewise.
1207 2010-12-14 Richard Henderson <rth@redhat.com>
1209 * clone.cc (table_lock): Remove.
1210 (find_clone): Don't take it.
1211 (ExcludeTransaction): New helper class.
1212 (_ITM_registerTMCloneTable): Use it.
1213 (_ITM_deregisterTMCloneTable): Likewise.
1215 2010-12-14 Richard Henderson <rth@redhat.com>
1217 * config/x86/tls.h: New file.
1219 2010-07-15 Richard Henderson <rth@redhat.com>
1221 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1222 * Makefile.in: Rebuild.
1224 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1226 * method-wbetl.cc (trydropreference): Fix source line.
1228 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1230 * libitm.h: Add comment.
1231 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1233 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1235 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1236 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1237 available, use pthread mutexes.
1238 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1239 * config.h.in: Regenerate.
1240 * configure: Regenerate.
1242 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1244 * libitm.h (ITM_PURE): Define.
1245 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1247 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1249 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1250 (validate): Add comment.
1251 (trydropreference): New.
1252 * method-readonly.cc (class readonly_dispatch): Add
1254 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1255 Call trydropreference().
1256 * libitm.h (_ITM_dropReferences): Remove const attribute.
1257 * method-serial.cc (class serial_dispatch): Add trydropreference.
1258 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1260 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1262 * memcpy.cc (do_memcpy): Comment.
1264 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1266 * barrier.tpl: Add comments throughout.
1268 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1270 * method-wbetl.cc (struct w_entry): Add comments.
1274 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1276 * alloc_c.cc (_ITM_dropReferences): New.
1277 * libitm.map (_ITM_dropReferences): Add.
1278 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1279 * libitm_i.h (struct gtm_transaction): Declare
1280 drop_references_allocations and drop_references_local.
1281 * local.cc (rollback_local): Ignore memory when applicable.
1282 (drop_references_local): New.
1284 2010-06-23 Richard Henderson <rth@redhat.com>
1286 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1287 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1288 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1289 * config/alpha/target.h: Likewise.
1290 * config/generic/tls.cc (gtm_mask_stack): Use it.
1292 2010-06-23 Richard Henderson <rth@redhat.com>
1294 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1295 a mutex instead of trying a lock-free compare-and-swap on the list.
1296 (gtm_cacheline_page::operator delete): Likewise.
1298 2010-06-16 Richard Henderson <rth@redhat.com>
1300 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1301 that overlap the libitm stack.
1302 * barrier.tpl: Mark incoming stack.
1303 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1304 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1305 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1306 * memcpy.cc, memset.cc: Likewise.
1307 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1308 * config/generic/tls.h (gtm_thread): Add stack_top member.
1309 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1310 * libitm_i.h (gtm_mask_stack): Declare.
1311 * config/generic/tls.cc: New file.
1312 * Makefile.am (libitm_la_SOURCES): Add it.
1313 (AM_CXXFLAGS): Turn off exceptions.
1314 * Makefile.in: Rebuild.
1316 2010-06-16 Richard Henderson <rth@redhat.com>
1318 * alloc.cc (struct gtm_alloc_action): Move definition ...
1319 * libitm_i.h: ... here.
1320 (class gtm_transaction): Declare new and delete.
1321 * beginend.cc (alloc_tx): Reformulate as operator new.
1322 (free_tx): Reformulate as operator delete.
1323 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1325 2010-06-11 Richard Henderson <rth@redhat.com>
1327 * clone.cc (clone_entry_compare): Fix typo.
1328 From Patrik Marlier <patrick.marlier@unine.ch>.
1330 2010-05-13 Richard Henderson <rth@redhat.com>
1332 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1335 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1337 * libitm_i.h (struct gtm_transaction): Remove
1338 get_allocation_size.
1339 (record_allocation): Remove size parameter.
1340 * libitm.map (_ITM_realloc): Remove.
1341 * alloc_c.cc (_ITM_realloc): Remove.
1342 (_ITM_malloc): Remove size argument to record_allocation.
1343 (_ITM_calloc): Same.
1344 * alloc_cpp.cc (_ZGTtnwm): Same.
1345 (_ZGTtnwmRKSt9nothrow_t): Same.
1347 (_ZGTtnamRKSt9nothrow_t): Same.
1348 * alloc.cc (struct gtm_alloc_action): Remove size.
1349 (get_allocation_size): Remove.
1350 (commit_allocations): Add comment.
1351 (record_allocation): Remove size parameter.
1352 (forget_allocation): Remove set of size.
1354 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1356 * Makefile.am (abi_version): New.
1357 (AM_CXXFLAGS): Pass abi_version.
1358 * Makefile.in: Regenerate.
1359 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1361 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1363 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1364 _ITM_getTMCloneOrIrrevokable.
1365 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1366 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1368 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1370 * configure.ac: Remove Linux futex support.
1371 * configure.tgt (config_path): Same.
1372 * Makefile.am: Same.
1373 * config/linux: Remove entire directory.
1374 * configure: Rebuild.
1375 * Makefile.in: Rebuild.
1376 * testsuite/Makefile.in: Rebuild.
1378 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1380 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1381 switching to serial mode.
1382 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1384 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1386 * configure.tgt: Add emacs -*- tags.
1387 * barrier.tpl: Same.
1389 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1391 * Makefile.am: Rename serial.cc to method-serial.cc.
1392 * Makefile.in: Regenerate with automake 1.11.1.
1393 * testsuite/Makefile.in: Same.
1394 * aclocal.m4: Regenerate with aclocal 1.11.1.
1395 * method-serial.cc: Rename from serial.cc.
1396 * libitm_i.h (struct gtm_transaction): Update comment on
1399 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1401 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1402 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1404 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1406 * configure: Rebuild.
1408 2009-11-12 Richard Henderson <rth@redhat.com>
1410 * Rewrite everything in C++.
1412 2009-11-03 Richard Henderson <rth@redhat.com>
1414 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1415 * Makefile.am (libitm_la_SOURCES): Add them.
1416 * configure.ac (ARCH_X86): New conditional.
1417 * Makefile.in, configure: Rebuild.
1418 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1419 Move futex setup into "other system configury" case.
1420 * local.c (rollback_local): Merge into ...
1421 (GTM_rollback_local): ... here.
1422 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1423 (_ITM_LB): Define as an alias to GTM_LB.
1425 2009-11-03 Richard Henderson <rth@redhat.com>
1427 * method-readonly.c: New file.
1428 * Makefile.am (libitm_la_SOURCES): Add it.
1429 * Makefile.in: Rebuild.
1430 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1431 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1432 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1433 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1434 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1435 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1436 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1437 gtm_get_clock, gtm_inc_clock): New.
1438 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1439 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1440 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1441 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1442 replace uses with new libitm_i.h symbols.
1443 (dispatch_wbetl): Rename from wbetl_dispatch.
1444 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1445 away from dispatch_readonly; abort if the beginTransaction call
1446 asserted that the transaction was readonly.
1448 2009-11-03 Richard Henderson <rth@redhat.com>
1450 * memset.c: New file.
1451 * Makefile.am (libitm_la_SOURCES): Add it.
1452 * Makefile.in: Rebuild.
1453 * testsuite/libitm.c/memset-1.c: New.
1455 2009-11-03 Richard Henderson <rth@redhat.com>
1457 * dispatch.c: Remove file.
1458 * useraction.c (struct gtm_user_action): Move from libitm.h.
1459 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1460 (serial_memset, serial_memmove, serial_memcpy): Remove.
1461 (serial_W*, serial_R*): Remove.
1462 (serial_dispatch): Update to match.
1463 * configure.ac: Move Werror down below configure checks. Don't
1464 check for sys/loadavg.h, do check for malloc.h. Don't check for
1465 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1466 Use GCC_AC_FUNC_MMAP_BLACKLIST
1467 * libitm.h: Split out all internal items to...
1468 * libitm_i.h: ... here. New file.
1469 * copymask.c: New file.
1470 * local.c (struct gtm_local_undo): Move from libitm.h.
1471 (GTM_alloc_local): Rename from alloc_local; export.
1472 * memcpy.c: New file.
1473 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1474 * config/posix/page.c: New file.
1475 * config/posix/target_tls.h: Remove file.
1476 * barrier.c: New file.
1477 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1479 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1480 * method-wbetl.c: Rewrite for new cacheline methods.
1481 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1483 * config/alpha/sjlj.S: Fix typo.
1484 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1485 * config/alpha/copymask.c: New file.
1486 * config/alpha/target.h (CACHELINE_SIZE): New.
1487 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1489 * config/x86/target_i.h: Copy functions from x86/target.h.
1490 * config/x86/copymask.c: New file.
1491 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1492 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1493 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1494 * config/x86/target_tls.h: Move contents to target_i.h.
1496 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1497 * testsuite/libitm.c/memcpy-1.c: New.
1499 2009-10-22 Richard Henderson <rth@redhat.com>
1501 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1502 (AM_CCASFLAGS): New.
1503 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1504 saving/restoring _AC_ARG_VAR_PRECIOUS.
1505 * Makefile.in, aclocal.m4, config.h.in, configure,
1506 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1508 2009-10-22 Richard Henderson <rth@redhat.com>
1510 * testsuite/*: Update for new compiler syntax.
1512 2009-10-21 Richard Henderson <rth@redhat.com>
1514 * libitm.h (_ITM_abortReason): Add outerAbort.
1516 2009-08-03 Richard Henderson <rth@redhat.com>
1518 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1519 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1520 * method-wbetl.c (struct w_entry): Remove mask.
1521 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1524 2009-07-22 Richard Henderson <rth@redhat.com>
1526 * eh_cpp.c: New file.
1527 * Makefile.am (libitm_la_SOURCES): Add it.
1528 * Makefile.in: Rebuild.
1529 * beginend.c (GTM_rollback_transaction): Undo exception state.
1530 (GTM_trycommit_transaction): Mark inline.
1531 (GTM_trycommit_and_finalize_transaction): Split out from ...
1532 (_ITM_commitTransaction): ... here.
1533 (_ITM_commitTransactionEH): New function.
1534 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1535 cxa_unthrown, eh_in_flight; reorder.
1537 * testsuite/libitm.c++/c++.exp: New.
1538 * testsuite/libitm.c++/eh-1.C: New.
1540 * aatree.c (aa_free): Remove REGPARM.
1541 * aatree.h: Remove all REGPARM.
1543 2009-07-18 Richard Henderson <rth@redhat.com>
1545 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1546 * Makefile.am (libitm_la_SOURCES): Add them.
1547 * Makefile.in: Rebuild.
1548 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1549 (GTM_trycommit_transaction): Likewise.
1550 * libitm.h: Include aatree.h
1551 (struct gtm_alloc_action): New.
1552 (struct gtm_transaction): Add alloc_actions.
1553 (GTM_record_allocation, GTM_forget_allocation): Declare.
1554 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1555 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1556 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1557 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1558 _ZGTtdaPvRKSt9nothrow_t): Export.
1560 2009-07-18 Richard Henderson <rth@redhat.com>
1562 * target_tls.h: Move ...
1563 * config/posix/target_tls.h: ... here.
1565 2009-07-07 Richard Henderson <rth@redhat.com>
1567 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1569 2009-07-07 Richard Henderson <rth@redhat.com>
1573 2009-07-07 Richard Henderson <rth@redhat.com>
1575 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1576 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1578 * configure.tgt: Don't use -ftls-model for x86 linux.
1579 * libitm.h: Include target.h after standard includes.
1580 (_gtm_thr): Rename from gtm_thr.
1581 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1582 (gtm_disp, set_gtm_disp): New.
1583 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1584 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1585 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1587 2009-07-07 Richard Henderson <rth@redhat.com>
1589 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1591 2009-07-06 Richard Henderson <rth@redhat.com>
1593 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1594 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1595 (_ITM_beginTransaction): Take variadic arguments.
1596 (_ITM_registerThrownObject): Declare.
1597 * beginend.c, serial.c: Update.
1598 * libitm.map: Add _ITM_registerThrownObject.
1600 2009-01-28 Richard Henderson <rth@redhat.com>
1602 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1603 * Makefile.in: Rebuild.
1604 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1605 (GTM_restart_transaction): Fix uninstrumented code check.
1606 * retry.c (GTM_decide_retry_strategy): Add serial check.
1607 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1608 automatically go irrevokable when in serial mode.
1609 * clone.c: New file.
1610 * libitm.h, libitm.map: Update.
1612 2009-01-27 Richard Henderson <rth@redhat.com>
1614 * Makefile.am (LTCCASCOMPILE): Define.
1615 (libitm_la_SOURCES): Add methid-wbetl.c.
1616 * testsuite/Makefile.am: New
1617 * configure.ac: Add testsuite/Makefile.
1618 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1619 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1620 (_ITM_abortTransaction): Finalize implementation method; pass
1621 transaction properties to longjmp.
1622 (GTM_restart_transaction): Split out from ...
1623 (_ITM_commitTransaction): ... here.
1624 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1625 Move to config/x86/target.h.
1626 * config/linux/alpha/futex_bits.h: New.
1627 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1628 * config/x86/target.h: Disable target types for 32-bit.
1629 * config/alpha/sjlj.S, config/alpha/target.h: New.
1630 * libitm.h (struct gtm_dispatch): Add init, fini.
1631 (enum restart_reason): New.
1632 (struct gtm_transaction): Add method and restarts.
1633 * retry.c (GTM_decide_retry_strategy): Implement.
1634 * serial.c (serial_init, serial_fini): New.
1635 (GTM_serialmode): Finialize outgoing method.
1636 * method-wbetl.c: New.
1638 2008-12-09 Richard Henderson <rth@redhat.com>
1640 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1641 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1642 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1643 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1644 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1645 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1646 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1647 * serial.c (serial_R##T, serial_W##T): Likewise.
1649 2008-11-21 Richard Henderson <rth@redhat.com>