1 2011-12-14 Richard Henderson <rth@redhat.com>
3 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
4 * config/arm/sjlj.S, config/arm/target.h: New files.
5 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
7 * config/linux/futex_bits.h: New file.
8 * config/linux/futex.cc: Include futex_bits.h here...
9 * config/linux/futex.h: ... not here.
10 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
11 * configure.ac (ARCH_AM): New conditional.
12 * Makefile.in, configure: Rebuild.
13 * configure.tgt: Handle ARM.
15 2011-12-13 Richard Henderson <rth@redhat.com>
17 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
18 signed/unsigned comparison werror.
20 * local_atomic: New file.
21 * libitm_i.h: Include it.
22 (gtm_thread::shared_state): Use atomic template.
23 * beginend.cc (GTM::gtm_clock): Use atomic template.
24 (global_tid): Use atomic template if 64-bit atomics available.
25 (gtm_thread::gtm_thread): Update shared_state access.
26 (gtm_thread::trycommit): Likewise.
27 (choose_code_path): Update global_tid access.
28 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
29 * stmlock.h (GTM::gtm_clock): Use atomic template.
30 (gtm_get_clock, gtm_inc_clock): Update accesses.
31 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
32 redundant __sync_synchronize after atomic shared_state access.
33 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
34 (gtm_rwlock::write_lock_generic): Likewise.
35 (gtm_rwlock::read_unlock): Likewise.
36 * config/alpha/target.h (atomic_read_barrier): Remove.
37 (atomic_write_barrier): Remove.
38 * config/x86/target.h (atomic_read_barrier): Remove.
39 (atomic_write_barrier): Remove.
41 2011-11-30 Richard Henderson <rth@redhat.com>
43 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
44 * beginend.c (_ITM_abortTransaction): Update to match.
45 (GTM::gtm_thread::restart): Likewise.
46 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
47 * config/x86/sjlj.S (GTM_longjmp): Likewise.
49 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
51 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
52 * Makefile.in: Regenerate.
54 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
56 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
57 * alloc_cpp.cc: Generate dummy functions if we don't
58 HAVE_ELF_STYLE_WEAKREF.
59 * eh_cpp.cc: Likewise.
60 * configure: Regenerate.
61 * aclocal.m4: Likewise.
62 * config.h.in: Likewise.
63 * Makefile.in: Likewise.
64 * testsuite/Makefile.in: Likewise.
66 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
68 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
69 __USER_LABEL_PREFIX__ for targets that use it.
70 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
71 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
72 in portability to non-elf targets.
73 (GTM_longjmp): Likewise.
74 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
77 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
79 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
80 * testsuite/libitm.c/memset-1.c: Likewise.
82 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
84 * configure: Regenerate.
86 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
88 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
89 (LIBITM_ENABLE_SYMVERS): Handle sun style.
90 * Makefile.am: Handle sun style versioning.
91 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
92 * configure: Regenerate.
93 * Makefile.in: Regenerate.
95 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97 * config/generic/asmcfi.h: Fix comment.
98 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
99 sequence without .hidden support, error for non-ELF targets.
100 (GTM_longjmp) [__ELF__]: Only use .hidden if
101 HAVE_ATTRIBUTE_VISIBILITY.
103 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
105 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
106 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
108 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
109 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
111 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
114 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
115 * configure: Regenerate.
117 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
119 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
121 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
123 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
125 (.note.GNU-stack): Only use if __linux__.
126 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
127 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
128 * testsuite/libitm.c/reentrant.c: Likewise.
129 * testsuite/libitm.c/simple-2.c: Likewise.
130 * testsuite/libitm.c/txrelease.c: Likewise.
131 * testsuite/libitm.c++/static_ctor.C: Likewise.
133 2011-11-10 Richard Henderson <rth@redhat.com>
135 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
136 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
137 * configure.ac (ARCH_X86_AVX): New conditional.
138 * Makefile.in, configure: Rebuild.
140 2011-11-09 Richard Henderson <rth@redhat.com>
142 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
143 * configure.ac: Use it.
144 * config.h.in, configure: Rebuild.
145 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
147 2011-11-09 Richard Henderson <rth@redhat.com>
149 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
150 * config/alpha/unaligned.h: Remove file.
151 * config/generic/unaligned.h: Remove file.
152 * config/x86/unaligned.h: Remove file.
153 * config/generic/cachepage.h: Remove file.
154 * config/posix/cachepage.cc: Remove file.
155 * config/generic/cacheline.cc: Remove file.
156 * config/x86/cacheline.cc: Remove file.
157 * config/generic/cacheline.h (gtm_cacheline): Remove the
158 store_mask, copy_mask, copy_mask_wb methods.
159 * config/x86/cacheline.h: Likewise.
160 * config/alpha/cacheline.h: Fall back to generic after setting size.
161 * config/generic/tls.cc (gtm_mask_stack): Remove.
162 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
163 (GTM_vpalignr_table): Remove.
164 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
165 (GTM_pshift_table): Remove.
166 * config/libitm_i.h: Don't include cachepage.h.
167 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
168 * Makefile.in, testsuite/Makefile.in: Rebuild.
170 2011-11-09 Richard Henderson <rth@redhat.com>
172 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
173 to emit branch prediction hint.
175 * config/x86/sjlj.S: Protect elf directives with __ELF__.
176 Protect .note.GNU-stack with __linux__.
178 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
179 * configure, aclocal.m4, config.h.in: Rebuild.
180 * config/generic/asmcfi.h: New file.
181 * config/x86/sjlj.S: Use it.
183 2011-11-08 Richard Henderson <rth@redhat.com>
185 * local.cc (_ITM_LB): Use a normal call, not a function alias.
187 2011-11-08 Richard Henderson <rth@redhat.com>
189 * configure.tgt: Test correct directory for supported cpus.
191 * configure.ac: Exit if unsupported.
192 * configure: Rebuild.
193 * configure.tgt: Delete boilerplate from libgomp for unsupported
194 targets. Set UNSUPPORTED for unsupported targets.
196 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
198 * configure.tgt: Handle i386 like i[456]86.
199 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
201 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
202 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
204 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
206 * method-wbetl.cc: Update copyright notice.
213 * useraction.cc: Same.
217 * config/generic/tls.cc: Same.
218 * config/generic/cacheline.h: Same.
219 * config/generic/cachepage.h: Same.
220 * config/generic/cacheline.cc: Same.
221 * config/generic/unaligned.h: Same.
222 * config/x86/cacheline.h: Same.
223 * config/x86/cacheline.cc: Same.
224 * config/x86/unaligned.h: Same.
225 * config/alpha/cacheline.h: Same.
226 * config/alpha/unaligned.h: Same.
227 * config/alpha/sjlj.S: Same.
228 * config/posix/cachepage.cc: Same.
229 * config/linux/futex.h: Same.
230 * config/linux/alpha/futex_bits.h: Same.
232 2011-11-04 Torvald Riegel <triegel@redhat.com>
234 * libitm.texi: No cover text and invariant sections.
236 2011-11-03 Richard Henderson <rth@redhat.com>
238 * local_type_traits: New file.
239 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
241 2011-11-03 Richard Henderson <rth@redhat.com>
243 * configure.ac: Don't test for gfortran.
244 * configure: Rebuild.
246 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
247 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
249 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
251 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
252 * testsuite/libitm.c/memset-1.c: Same.
253 * testsuite/libitm.c/c.exp: Same.
254 * testsuite/lib/libitm-dg.exp: Same.
255 * testsuite/lib/libitm.exp: Same.
256 * testsuite/libitm.c++/c++.exp: Same.
258 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
260 * testsuite/config/default.exp: Update copyright date.
261 * configure.ac: Add copyright info.
262 * configure.tgt: Same.
264 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
266 * testsuite/libitm.c/reentrant.c: XFAIL.
267 * testsuite/libitm.c++/static_ctor.C: XFAIL.
269 2011-10-29 Torvald Riegel <triegel@redhat.com>
271 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
273 (_ITM_abortTransaction): Handle aborts of outer transactions.
275 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
276 * libitm.texi: Document aborts of outer transactions.
277 * testsuite/libitm.c/cancel.c: New file.
279 2011-10-19 Torvald Riegel <triegel@redhat.com>
281 * testsuite/*: Change __transaction to __transaction_atomic or
282 __transaction_relaxed.
284 2011-10-19 Torvald Riegel <triegel@redhat.com>
286 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
289 2011-10-19 Torvald Riegel <triegel@redhat.com>
291 * libitm_i.h: Add gl_wt dispatch.
292 * retry.cc (parse_default_method): Same.
293 * method-gl.cc: New file.
294 * Makefile.am: Use method-gl.cc.
295 * Makefile.in: Rebuild.
297 2011-10-19 Torvald Riegel <triegel@redhat.com>
299 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
300 safety if requested by a TM method.
301 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
302 privatization safety.
303 * method-serial.cc: Same.
305 2011-10-19 Torvald Riegel <triegel@redhat.com>
307 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
308 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
309 undolog-related member functions from *_local to *_undolog.
310 * local.cc (gtm_thread::commit_undolog): Same.
311 * beginend.cc (GTM::gtm_thread::trycommit): Same.
312 (GTM::gtm_thread::rollback): Roll back undolog before
313 dispatch-specific rollback.
315 2011-10-19 Torvald Riegel <triegel@redhat.com>
317 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
318 re-initialization of the current method group.
319 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
321 2011-10-19 Torvald Riegel <triegel@redhat.com>
323 * alloc.cc (commit_allocations_2): Do not free transaction-local
324 memory when committing a nested transaction.
326 2011-10-19 Torvald Riegel <triegel@redhat.com>
328 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
329 serial-irrevocable dispatch, not serial.
331 2011-10-19 Torvald Riegel <triegel@redhat.com>
333 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
335 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
336 * method-serial.cc: Implement begin_or_restart().
337 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
338 dispatch-specific begin_or_restart().
339 (GTM::gtm_thread::restart): Same.
341 2011-08-23 Torvald Riegel <triegel@redhat.com>
343 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
344 restarting without switching to serial mode.
345 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
346 transaction state. Choose closed-nesting alternative if available.
347 (GTM::gtm_thread::set_default_dispatch): New.
348 (parse_default_method): New.
349 (GTM::gtm_thread::number_of_threads_changed): New.
350 * method-serial.cc (GTM::serial_mg): New method group class.
351 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
353 (GTM::serial_dispatch): Same.
354 (GTM::serialirr_onwrite_dispatch): Same.
355 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
356 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
358 (GTM::gtm_thread::gtm_thread): Same.
359 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
360 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
361 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
362 choose dispatch but set state according to dispatch here.
363 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
364 (GTM::method_group): New class.
365 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
366 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
367 * libitm.texi: Document TM methods, method groups, method life cycle.
368 Rename method sets to method groups.
370 2011-08-23 Torvald Riegel <triegel@redhat.com>
372 * config/x86/tls.h: Moved to ...
373 * config/linux/x86/tls.h: ... here.
375 2011-08-23 Torvald Riegel <triegel@redhat.com>
377 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
379 * config/x86/sjlj.S: Same.
381 2011-08-19 Torvald Riegel <triegel@redhat.com>
383 * config/linux/rwlock.h: New file.
384 * config/linux/rwlock.c: New file.
385 * configure.ac: Reenable futex support (undo SVN rev 157758).
387 * configure.tgt: Same.
388 * config/linux/alpha/futex_bits.h: Same.
389 * config/linux/futex.h: Same. Return number of woken processes.
390 * config/linux/futex.cc: Same.
391 (futex_wait): Remove spinning.
392 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
393 Use __x86_64__ instead of __LP64__.
394 * aclocal.m4: Include generic futex checks.
395 * configure: Rebuild.
396 * Makefile.in: Rebuild.
397 * testsuite/Makefile.in: Rebuild.
398 * beginend.cc: Include pthread.h.
399 * config/posix/cachepage.cc: Same.
401 2011-08-12 Torvald Riegel <triegel@redhat.com>
403 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
404 (abi_disp, set_abi_disp): Move to tx's TLS slot.
406 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
408 (GTM::gtm_thread::thread_num): Removed.
409 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
410 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
411 tx-to-thread renaming.
412 * beginend.cc: Adapted to tx-to-thread renaming.
413 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
414 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
415 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
416 gtm_transaction to gtm_thread.
417 (_ITM_getThreadnum): Removed. Not supported anymore.
418 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
419 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
420 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
421 gtm_tx-to-gtm_thr renaming if necessary.
428 * alloc_cpp.cc: Same.
429 * method-serial.cc: Same.
430 * config/generic/tls.cc: Same.
431 * config/posix/rwlock.h (gtm_rwlock): Same.
432 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
434 2011-08-12 Torvald Riegel <triegel@redhat.com>
436 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
438 (gtm_rwlock::read_unlock): Same.
439 (gtm_rwlock::write_lock_generic): New. Generalized from ...
440 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
441 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
442 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
443 w_upgrade. Replaced by per-transaction flags (in shared_state).
444 Added c_confirmed_writers.
445 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
446 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
447 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
448 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
449 * beginend.cc (GTM::gtm_transaction::begin_transaction,
450 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
451 * libitm.texi: Document locking conventions and implementations in
454 2011-08-12 Torvald Riegel <triegel@redhat.com>
456 * libitm_i.h (next_tx): Add list of all threads' transaction.
457 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
458 transaction with list of transactions and ...
459 (thread_exit_handler): ... deregister here.
460 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
461 * config/x86/target.h: Same.
463 2011-08-12 Torvald Riegel <triegel@redhat.com>
465 * testsuite/libitm.c++/static_ctor.C: New file.
467 2011-08-12 Torvald Riegel <triegel@redhat.com>
469 * testsuite/libitm.c/reentrant.c: New file.
471 2011-08-12 Torvald Riegel <triegel@redhat.com>
473 * config/generic/tls.h: Remove the free list for transactions and ...
474 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
475 (GTM::gtm_transaction::operator delete): ... and release here.
476 (thread_exit_handler): New. Delete tx when thread terminates.
477 (thread_exit_init): New.
478 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
479 * testsuite/libitm.c/txrelease.c: New file.
481 2011-08-12 Torvald Riegel <triegel@redhat.com>
483 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
484 * testsuite/libitm.c/notx.c: New file.
486 2011-08-12 Torvald Riegel <triegel@redhat.com>
488 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
489 * libitm_i.h (local_tid): ... to here.
490 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
491 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
493 2011-08-12 Torvald Riegel <triegel@redhat.com>
495 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
496 serialirr_onwrite_dispatch as new default for now.
497 * method-serial.cc (serialirr_onwrite_dispatch): New.
498 (GTM::dispatch_serialirr_onwrite): New.
501 2011-08-12 Torvald Riegel <triegel@redhat.com>
503 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
504 * query.cc (_ITM_getTransactionId): There is no active transaction if
505 the current nesting level is zero.
507 2011-07-28 Torvald Riegel <triegel@redhat.com>
509 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
512 2011-07-28 Torvald Riegel <triegel@redhat.com>
514 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
515 transaction properties from the caller instead of from the
518 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
520 2011-07-28 Torvald Riegel <triegel@redhat.com>
522 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
523 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
525 * method-serial.cc: Same.
526 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
527 flat nesting as default, and closed nesting on demand.
528 (GTM::gtm_transaction::rollback): Same.
529 (_ITM_abortTransaction): Same.
530 (GTM::gtm_transaction::restart): Same.
531 (GTM::gtm_transaction::trycommit): Same.
532 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
533 (choose_code_path): New.
534 (GTM::gtm_transaction_cp::save): New.
535 (GTM::gtm_transaction_cp::commit): New.
536 * query.cc (_ITM_inTransaction): Support flat nesting.
537 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
538 (GTM::gtm_transaction): Support flat and closed nesting.
539 * alloc.cc (commit_allocations_2): New.
540 (commit_cb_data): New helper struct.
541 (GTM::gtm_transaction::commit_allocations): Handle nested
543 * libitm.texi: Update user action section, add description of nesting.
545 2011-07-28 Torvald Riegel <triegel@redhat.com>
547 * libitm_i.h: Add closed nesting as restart reason.
548 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
550 2011-07-28 Torvald Riegel <triegel@redhat.com>
552 * useraction.cc: Use vector instead of list to store actions.
553 Also support partial rollbacks for closed nesting.
554 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
557 2011-07-28 Torvald Riegel <triegel@redhat.com>
559 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
560 closed_nesting flags, as well as a closed nesting alternative.
561 * method-serial.cc: Same.
562 (serial_dispatch): Renamed to serialirr_dispatch.
563 (GTM::dispatch_serialirr): Same.
564 (serial_dispatch_ul): Renamed to serial_dispatch.
565 (GTM::dispatch_serial): Same.
567 2011-07-28 Torvald Riegel <triegel@redhat.com>
569 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
571 2011-07-28 Torvald Riegel <triegel@redhat.com>
573 * aatree.h (aa_tree::remove): New.
574 (aa_tree::operator new): Add placement new.
576 2011-07-02 Torvald Riegel <triegel@redhat.com>
578 * containers.h: New file.
579 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
580 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
581 * common.h: ... to here.
582 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
585 2011-06-30 Torvald Riegel <triegel@redhat.com>
587 * libitm_i.h (STATE_ABORTING): Remove.
588 * beginend.cc (_ITM_abortTransaction): Same.
589 (GTM::gtm_transaction::trycommit_and_finalize): Same.
590 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
591 (_ITM_rollbackTransaction): Remove.
594 * libitm.texi: Document these ABI changes.
596 2011-06-30 Torvald Riegel <triegel@redhat.com>
598 * libitm.texi: New file.
599 * Makefile.am: Add libitm.texi.
600 * Makefile.in: Rebuild.
602 2011-06-30 Torvald Riegel <triegel@redhat.com>
604 * libitm_i.h: Move parts to common.h and dispatch.h.
605 * common.h: New file.
606 * dispatch.h: New file, new dispatch class.
607 Rename GTM::abi_dispatch::lock_type to ls_modifier.
608 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
609 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
610 decision to retry.cc.
611 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
613 (GTM::gtm_transaction::decide_begin_dispatch): Same.
614 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
616 * barrier.cc: Use new barriers definitions.
617 (abi_dispatch::memmove_overlap_check): New.
618 * config/x86/x86_sse.cc: Same.
619 * config/x86/x86_avx.cc: Same.
620 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
622 * Makefile.in: Rebuild.
623 * method-readonly.cc: Remove.
624 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
625 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
627 2011-06-30 Torvald Riegel <triegel@redhat.com>
629 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
630 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
631 * testsuite/libitm.c/dropref-2.c: Same.
632 * testsuite/libitm.c/dropref.c: Same.
634 2011-06-30 Torvald Riegel <triegel@redhat.com>
636 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
637 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
638 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
642 * config/generic/tls.h: Same.
643 * config/x86/tls.h: Same.
647 * method-readonly.cc: Same.
648 * method-serial.cc: Same.
649 * method-wbetl.cc: Same.
652 2011-03-03 Richard Henderson <rth@redhat.com>
654 * config/posix/rwlock.cc (write_upgrade): Add missing case.
655 From Patrik Marlier <patrick.marlier@unine.ch>.
657 2011-02-03 Richard Henderson <rth@redhat.com>
659 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
660 * configure.ac: Use it.
661 * configure, config.h.in: Rebuild.
662 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
663 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
664 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
665 * libitm.map: Use wildcards to match size_t mangling.
667 2010-12-14 Richard Henderson <rth@redhat.com>
669 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
670 blocks of TIDs per thread.
671 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
672 (setup_gtm_thr): Return the thread structure.
673 * config/x86/tls.h (setup_gtm_thr): Likewise.
675 2010-12-14 Richard Henderson <rth@redhat.com>
677 * clone.cc (table_lock): Remove.
678 (find_clone): Don't take it.
679 (ExcludeTransaction): New helper class.
680 (_ITM_registerTMCloneTable): Use it.
681 (_ITM_deregisterTMCloneTable): Likewise.
683 2010-12-14 Richard Henderson <rth@redhat.com>
685 * config/x86/tls.h: New file.
687 2010-07-15 Richard Henderson <rth@redhat.com>
689 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
690 * Makefile.in: Rebuild.
692 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
694 * method-wbetl.cc (trydropreference): Fix source line.
696 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
698 * libitm.h: Add comment.
699 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
701 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
703 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
704 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
705 available, use pthread mutexes.
706 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
707 * config.h.in: Regenerate.
708 * configure: Regenerate.
710 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
712 * libitm.h (ITM_PURE): Define.
713 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
715 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
717 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
718 (validate): Add comment.
719 (trydropreference): New.
720 * method-readonly.cc (class readonly_dispatch): Add
722 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
723 Call trydropreference().
724 * libitm.h (_ITM_dropReferences): Remove const attribute.
725 * method-serial.cc (class serial_dispatch): Add trydropreference.
726 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
728 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
730 * memcpy.cc (do_memcpy): Comment.
732 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
734 * barrier.tpl: Add comments throughout.
736 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
738 * method-wbetl.cc (struct w_entry): Add comments.
742 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
744 * alloc_c.cc (_ITM_dropReferences): New.
745 * libitm.map (_ITM_dropReferences): Add.
746 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
747 * libitm_i.h (struct gtm_transaction): Declare
748 drop_references_allocations and drop_references_local.
749 * local.cc (rollback_local): Ignore memory when applicable.
750 (drop_references_local): New.
752 2010-06-23 Richard Henderson <rth@redhat.com>
754 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
755 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
756 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
757 * config/alpha/target.h: Likewise.
758 * config/generic/tls.cc (gtm_mask_stack): Use it.
760 2010-06-23 Richard Henderson <rth@redhat.com>
762 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
763 a mutex instead of trying a lock-free compare-and-swap on the list.
764 (gtm_cacheline_page::operator delete): Likewise.
766 2010-06-16 Richard Henderson <rth@redhat.com>
768 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
769 that overlap the libitm stack.
770 * barrier.tpl: Mark incoming stack.
771 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
772 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
773 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
774 * memcpy.cc, memset.cc: Likewise.
775 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
776 * config/generic/tls.h (gtm_thread): Add stack_top member.
777 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
778 * libitm_i.h (gtm_mask_stack): Declare.
779 * config/generic/tls.cc: New file.
780 * Makefile.am (libitm_la_SOURCES): Add it.
781 (AM_CXXFLAGS): Turn off exceptions.
782 * Makefile.in: Rebuild.
784 2010-06-16 Richard Henderson <rth@redhat.com>
786 * alloc.cc (struct gtm_alloc_action): Move definition ...
787 * libitm_i.h: ... here.
788 (class gtm_transaction): Declare new and delete.
789 * beginend.cc (alloc_tx): Reformulate as operator new.
790 (free_tx): Reformulate as operator delete.
791 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
793 2010-06-11 Richard Henderson <rth@redhat.com>
795 * clone.cc (clone_entry_compare): Fix typo.
796 From Patrik Marlier <patrick.marlier@unine.ch>.
798 2010-05-13 Richard Henderson <rth@redhat.com>
800 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
803 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
805 * libitm_i.h (struct gtm_transaction): Remove
807 (record_allocation): Remove size parameter.
808 * libitm.map (_ITM_realloc): Remove.
809 * alloc_c.cc (_ITM_realloc): Remove.
810 (_ITM_malloc): Remove size argument to record_allocation.
812 * alloc_cpp.cc (_ZGTtnwm): Same.
813 (_ZGTtnwmRKSt9nothrow_t): Same.
815 (_ZGTtnamRKSt9nothrow_t): Same.
816 * alloc.cc (struct gtm_alloc_action): Remove size.
817 (get_allocation_size): Remove.
818 (commit_allocations): Add comment.
819 (record_allocation): Remove size parameter.
820 (forget_allocation): Remove set of size.
822 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
824 * Makefile.am (abi_version): New.
825 (AM_CXXFLAGS): Pass abi_version.
826 * Makefile.in: Regenerate.
827 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
829 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
831 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
832 _ITM_getTMCloneOrIrrevokable.
833 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
834 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
836 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
838 * configure.ac: Remove Linux futex support.
839 * configure.tgt (config_path): Same.
841 * config/linux: Remove entire directory.
842 * configure: Rebuild.
843 * Makefile.in: Rebuild.
844 * testsuite/Makefile.in: Rebuild.
846 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
848 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
849 switching to serial mode.
850 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
852 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
854 * configure.tgt: Add emacs -*- tags.
857 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
859 * Makefile.am: Rename serial.cc to method-serial.cc.
860 * Makefile.in: Regenerate with automake 1.11.1.
861 * testsuite/Makefile.in: Same.
862 * aclocal.m4: Regenerate with aclocal 1.11.1.
863 * method-serial.cc: Rename from serial.cc.
864 * libitm_i.h (struct gtm_transaction): Update comment on
867 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
869 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
870 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
872 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
874 * configure: Rebuild.
876 2009-11-12 Richard Henderson <rth@redhat.com>
878 * Rewrite everything in C++.
880 2009-11-03 Richard Henderson <rth@redhat.com>
882 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
883 * Makefile.am (libitm_la_SOURCES): Add them.
884 * configure.ac (ARCH_X86): New conditional.
885 * Makefile.in, configure: Rebuild.
886 * configure.tgt: Set up ARCH; do cflags setup at the same time.
887 Move futex setup into "other system configury" case.
888 * local.c (rollback_local): Merge into ...
889 (GTM_rollback_local): ... here.
890 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
891 (_ITM_LB): Define as an alias to GTM_LB.
893 2009-11-03 Richard Henderson <rth@redhat.com>
895 * method-readonly.c: New file.
896 * Makefile.am (libitm_la_SOURCES): Add it.
897 * Makefile.in: Rebuild.
898 * beginend.c (gtm_stmlock_array, gtm_clock): New.
899 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
900 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
901 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
902 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
903 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
904 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
905 gtm_get_clock, gtm_inc_clock): New.
906 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
907 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
908 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
909 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
910 replace uses with new libitm_i.h symbols.
911 (dispatch_wbetl): Rename from wbetl_dispatch.
912 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
913 away from dispatch_readonly; abort if the beginTransaction call
914 asserted that the transaction was readonly.
916 2009-11-03 Richard Henderson <rth@redhat.com>
918 * memset.c: New file.
919 * Makefile.am (libitm_la_SOURCES): Add it.
920 * Makefile.in: Rebuild.
921 * testsuite/libitm.c/memset-1.c: New.
923 2009-11-03 Richard Henderson <rth@redhat.com>
925 * dispatch.c: Remove file.
926 * useraction.c (struct gtm_user_action): Move from libitm.h.
927 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
928 (serial_memset, serial_memmove, serial_memcpy): Remove.
929 (serial_W*, serial_R*): Remove.
930 (serial_dispatch): Update to match.
931 * configure.ac: Move Werror down below configure checks. Don't
932 check for sys/loadavg.h, do check for malloc.h. Don't check for
933 getloadavg and clock_gettime; do check for memalign, posix_memalign.
934 Use GCC_AC_FUNC_MMAP_BLACKLIST
935 * libitm.h: Split out all internal items to...
936 * libitm_i.h: ... here. New file.
937 * copymask.c: New file.
938 * local.c (struct gtm_local_undo): Move from libitm.h.
939 (GTM_alloc_local): Rename from alloc_local; export.
940 * memcpy.c: New file.
941 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
942 * config/posix/page.c: New file.
943 * config/posix/target_tls.h: Remove file.
944 * barrier.c: New file.
945 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
947 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
948 * method-wbetl.c: Rewrite for new cacheline methods.
949 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
951 * config/alpha/sjlj.S: Fix typo.
952 * config/alpha/target_i.h: Copy functions from alpha/target.h.
953 * config/alpha/copymask.c: New file.
954 * config/alpha/target.h (CACHELINE_SIZE): New.
955 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
957 * config/x86/target_i.h: Copy functions from x86/target.h.
958 * config/x86/copymask.c: New file.
959 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
960 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
961 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
962 * config/x86/target_tls.h: Move contents to target_i.h.
964 * testsuite/libitm.c/clone-1.c: Include libitm.h.
965 * testsuite/libitm.c/memcpy-1.c: New.
967 2009-10-22 Richard Henderson <rth@redhat.com>
969 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
971 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
972 saving/restoring _AC_ARG_VAR_PRECIOUS.
973 * Makefile.in, aclocal.m4, config.h.in, configure,
974 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
976 2009-10-22 Richard Henderson <rth@redhat.com>
978 * testsuite/*: Update for new compiler syntax.
980 2009-10-21 Richard Henderson <rth@redhat.com>
982 * libitm.h (_ITM_abortReason): Add outerAbort.
984 2009-08-03 Richard Henderson <rth@redhat.com>
986 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
987 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
988 * method-wbetl.c (struct w_entry): Remove mask.
989 (wbetl_write, wbetl_load): Return pointer to word containing the data;
992 2009-07-22 Richard Henderson <rth@redhat.com>
994 * eh_cpp.c: New file.
995 * Makefile.am (libitm_la_SOURCES): Add it.
996 * Makefile.in: Rebuild.
997 * beginend.c (GTM_rollback_transaction): Undo exception state.
998 (GTM_trycommit_transaction): Mark inline.
999 (GTM_trycommit_and_finalize_transaction): Split out from ...
1000 (_ITM_commitTransaction): ... here.
1001 (_ITM_commitTransactionEH): New function.
1002 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1003 cxa_unthrown, eh_in_flight; reorder.
1005 * testsuite/libitm.c++/c++.exp: New.
1006 * testsuite/libitm.c++/eh-1.C: New.
1008 * aatree.c (aa_free): Remove REGPARM.
1009 * aatree.h: Remove all REGPARM.
1011 2009-07-18 Richard Henderson <rth@redhat.com>
1013 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1014 * Makefile.am (libitm_la_SOURCES): Add them.
1015 * Makefile.in: Rebuild.
1016 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1017 (GTM_trycommit_transaction): Likewise.
1018 * libitm.h: Include aatree.h
1019 (struct gtm_alloc_action): New.
1020 (struct gtm_transaction): Add alloc_actions.
1021 (GTM_record_allocation, GTM_forget_allocation): Declare.
1022 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1023 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1024 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1025 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1026 _ZGTtdaPvRKSt9nothrow_t): Export.
1028 2009-07-18 Richard Henderson <rth@redhat.com>
1030 * target_tls.h: Move ...
1031 * config/posix/target_tls.h: ... here.
1033 2009-07-07 Richard Henderson <rth@redhat.com>
1035 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1037 2009-07-07 Richard Henderson <rth@redhat.com>
1041 2009-07-07 Richard Henderson <rth@redhat.com>
1043 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1044 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1046 * configure.tgt: Don't use -ftls-model for x86 linux.
1047 * libitm.h: Include target.h after standard includes.
1048 (_gtm_thr): Rename from gtm_thr.
1049 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1050 (gtm_disp, set_gtm_disp): New.
1051 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1052 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1053 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1055 2009-07-07 Richard Henderson <rth@redhat.com>
1057 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1059 2009-07-06 Richard Henderson <rth@redhat.com>
1061 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1062 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1063 (_ITM_beginTransaction): Take variadic arguments.
1064 (_ITM_registerThrownObject): Declare.
1065 * beginend.c, serial.c: Update.
1066 * libitm.map: Add _ITM_registerThrownObject.
1068 2009-01-28 Richard Henderson <rth@redhat.com>
1070 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1071 * Makefile.in: Rebuild.
1072 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1073 (GTM_restart_transaction): Fix uninstrumented code check.
1074 * retry.c (GTM_decide_retry_strategy): Add serial check.
1075 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1076 automatically go irrevokable when in serial mode.
1077 * clone.c: New file.
1078 * libitm.h, libitm.map: Update.
1080 2009-01-27 Richard Henderson <rth@redhat.com>
1082 * Makefile.am (LTCCASCOMPILE): Define.
1083 (libitm_la_SOURCES): Add methid-wbetl.c.
1084 * testsuite/Makefile.am: New
1085 * configure.ac: Add testsuite/Makefile.
1086 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1087 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1088 (_ITM_abortTransaction): Finalize implementation method; pass
1089 transaction properties to longjmp.
1090 (GTM_restart_transaction): Split out from ...
1091 (_ITM_commitTransaction): ... here.
1092 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1093 Move to config/x86/target.h.
1094 * config/linux/alpha/futex_bits.h: New.
1095 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1096 * config/x86/target.h: Disable target types for 32-bit.
1097 * config/alpha/sjlj.S, config/alpha/target.h: New.
1098 * libitm.h (struct gtm_dispatch): Add init, fini.
1099 (enum restart_reason): New.
1100 (struct gtm_transaction): Add method and restarts.
1101 * retry.c (GTM_decide_retry_strategy): Implement.
1102 * serial.c (serial_init, serial_fini): New.
1103 (GTM_serialmode): Finialize outgoing method.
1104 * method-wbetl.c: New.
1106 2008-12-09 Richard Henderson <rth@redhat.com>
1108 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1109 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1110 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1111 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1112 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1113 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1114 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1115 * serial.c (serial_R##T, serial_W##T): Likewise.
1117 2008-11-21 Richard Henderson <rth@redhat.com>