1 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
3 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
4 * testsuite/libitm.c/memset-1.c: Likewise.
6 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8 * configure: Regenerate.
10 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
13 (LIBITM_ENABLE_SYMVERS): Handle sun style.
14 * Makefile.am: Handle sun style versioning.
15 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
16 * configure: Regenerate.
17 * Makefile.in: Regenerate.
19 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21 * config/generic/asmcfi.h: Fix comment.
22 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
23 sequence without .hidden support, error for non-ELF targets.
24 (GTM_longjmp) [__ELF__]: Only use .hidden if
25 HAVE_ATTRIBUTE_VISIBILITY.
27 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
30 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
32 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
33 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
35 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
38 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
39 * configure: Regenerate.
41 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
43 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
45 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
47 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
49 (.note.GNU-stack): Only use if __linux__.
50 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
51 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
52 * testsuite/libitm.c/reentrant.c: Likewise.
53 * testsuite/libitm.c/simple-2.c: Likewise.
54 * testsuite/libitm.c/txrelease.c: Likewise.
55 * testsuite/libitm.c++/static_ctor.C: Likewise.
57 2011-11-10 Richard Henderson <rth@redhat.com>
59 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
60 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
61 * configure.ac (ARCH_X86_AVX): New conditional.
62 * Makefile.in, configure: Rebuild.
64 2011-11-09 Richard Henderson <rth@redhat.com>
66 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
67 * configure.ac: Use it.
68 * config.h.in, configure: Rebuild.
69 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
71 2011-11-09 Richard Henderson <rth@redhat.com>
73 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
74 * config/alpha/unaligned.h: Remove file.
75 * config/generic/unaligned.h: Remove file.
76 * config/x86/unaligned.h: Remove file.
77 * config/generic/cachepage.h: Remove file.
78 * config/posix/cachepage.cc: Remove file.
79 * config/generic/cacheline.cc: Remove file.
80 * config/x86/cacheline.cc: Remove file.
81 * config/generic/cacheline.h (gtm_cacheline): Remove the
82 store_mask, copy_mask, copy_mask_wb methods.
83 * config/x86/cacheline.h: Likewise.
84 * config/alpha/cacheline.h: Fall back to generic after setting size.
85 * config/generic/tls.cc (gtm_mask_stack): Remove.
86 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
87 (GTM_vpalignr_table): Remove.
88 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
89 (GTM_pshift_table): Remove.
90 * config/libitm_i.h: Don't include cachepage.h.
91 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
92 * Makefile.in, testsuite/Makefile.in: Rebuild.
94 2011-11-09 Richard Henderson <rth@redhat.com>
96 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
97 to emit branch prediction hint.
99 * config/x86/sjlj.S: Protect elf directives with __ELF__.
100 Protect .note.GNU-stack with __linux__.
102 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
103 * configure, aclocal.m4, config.h.in: Rebuild.
104 * config/generic/asmcfi.h: New file.
105 * config/x86/sjlj.S: Use it.
107 2011-11-08 Richard Henderson <rth@redhat.com>
109 * local.cc (_ITM_LB): Use a normal call, not a function alias.
111 2011-11-08 Richard Henderson <rth@redhat.com>
113 * configure.tgt: Test correct directory for supported cpus.
115 * configure.ac: Exit if unsupported.
116 * configure: Rebuild.
117 * configure.tgt: Delete boilerplate from libgomp for unsupported
118 targets. Set UNSUPPORTED for unsupported targets.
120 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * configure.tgt: Handle i386 like i[456]86.
123 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
125 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
126 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
128 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
130 * method-wbetl.cc: Update copyright notice.
137 * useraction.cc: Same.
141 * config/generic/tls.cc: Same.
142 * config/generic/cacheline.h: Same.
143 * config/generic/cachepage.h: Same.
144 * config/generic/cacheline.cc: Same.
145 * config/generic/unaligned.h: Same.
146 * config/x86/cacheline.h: Same.
147 * config/x86/cacheline.cc: Same.
148 * config/x86/unaligned.h: Same.
149 * config/alpha/cacheline.h: Same.
150 * config/alpha/unaligned.h: Same.
151 * config/alpha/sjlj.S: Same.
152 * config/posix/cachepage.cc: Same.
153 * config/linux/futex.h: Same.
154 * config/linux/alpha/futex_bits.h: Same.
156 2011-11-04 Torvald Riegel <triegel@redhat.com>
158 * libitm.texi: No cover text and invariant sections.
160 2011-11-03 Richard Henderson <rth@redhat.com>
162 * local_type_traits: New file.
163 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
165 2011-11-03 Richard Henderson <rth@redhat.com>
167 * configure.ac: Don't test for gfortran.
168 * configure: Rebuild.
170 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
171 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
173 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
175 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
176 * testsuite/libitm.c/memset-1.c: Same.
177 * testsuite/libitm.c/c.exp: Same.
178 * testsuite/lib/libitm-dg.exp: Same.
179 * testsuite/lib/libitm.exp: Same.
180 * testsuite/libitm.c++/c++.exp: Same.
182 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
184 * testsuite/config/default.exp: Update copyright date.
185 * configure.ac: Add copyright info.
186 * configure.tgt: Same.
188 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
190 * testsuite/libitm.c/reentrant.c: XFAIL.
191 * testsuite/libitm.c++/static_ctor.C: XFAIL.
193 2011-10-29 Torvald Riegel <triegel@redhat.com>
195 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
197 (_ITM_abortTransaction): Handle aborts of outer transactions.
199 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
200 * libitm.texi: Document aborts of outer transactions.
201 * testsuite/libitm.c/cancel.c: New file.
203 2011-10-19 Torvald Riegel <triegel@redhat.com>
205 * testsuite/*: Change __transaction to __transaction_atomic or
206 __transaction_relaxed.
208 2011-10-19 Torvald Riegel <triegel@redhat.com>
210 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
213 2011-10-19 Torvald Riegel <triegel@redhat.com>
215 * libitm_i.h: Add gl_wt dispatch.
216 * retry.cc (parse_default_method): Same.
217 * method-gl.cc: New file.
218 * Makefile.am: Use method-gl.cc.
219 * Makefile.in: Rebuild.
221 2011-10-19 Torvald Riegel <triegel@redhat.com>
223 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
224 safety if requested by a TM method.
225 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
226 privatization safety.
227 * method-serial.cc: Same.
229 2011-10-19 Torvald Riegel <triegel@redhat.com>
231 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
232 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
233 undolog-related member functions from *_local to *_undolog.
234 * local.cc (gtm_thread::commit_undolog): Same.
235 * beginend.cc (GTM::gtm_thread::trycommit): Same.
236 (GTM::gtm_thread::rollback): Roll back undolog before
237 dispatch-specific rollback.
239 2011-10-19 Torvald Riegel <triegel@redhat.com>
241 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
242 re-initialization of the current method group.
243 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
245 2011-10-19 Torvald Riegel <triegel@redhat.com>
247 * alloc.cc (commit_allocations_2): Do not free transaction-local
248 memory when committing a nested transaction.
250 2011-10-19 Torvald Riegel <triegel@redhat.com>
252 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
253 serial-irrevocable dispatch, not serial.
255 2011-10-19 Torvald Riegel <triegel@redhat.com>
257 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
259 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
260 * method-serial.cc: Implement begin_or_restart().
261 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
262 dispatch-specific begin_or_restart().
263 (GTM::gtm_thread::restart): Same.
265 2011-08-23 Torvald Riegel <triegel@redhat.com>
267 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
268 restarting without switching to serial mode.
269 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
270 transaction state. Choose closed-nesting alternative if available.
271 (GTM::gtm_thread::set_default_dispatch): New.
272 (parse_default_method): New.
273 (GTM::gtm_thread::number_of_threads_changed): New.
274 * method-serial.cc (GTM::serial_mg): New method group class.
275 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
277 (GTM::serial_dispatch): Same.
278 (GTM::serialirr_onwrite_dispatch): Same.
279 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
280 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
282 (GTM::gtm_thread::gtm_thread): Same.
283 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
284 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
285 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
286 choose dispatch but set state according to dispatch here.
287 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
288 (GTM::method_group): New class.
289 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
290 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
291 * libitm.texi: Document TM methods, method groups, method life cycle.
292 Rename method sets to method groups.
294 2011-08-23 Torvald Riegel <triegel@redhat.com>
296 * config/x86/tls.h: Moved to ...
297 * config/linux/x86/tls.h: ... here.
299 2011-08-23 Torvald Riegel <triegel@redhat.com>
301 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
303 * config/x86/sjlj.S: Same.
305 2011-08-19 Torvald Riegel <triegel@redhat.com>
307 * config/linux/rwlock.h: New file.
308 * config/linux/rwlock.c: New file.
309 * configure.ac: Reenable futex support (undo SVN rev 157758).
311 * configure.tgt: Same.
312 * config/linux/alpha/futex_bits.h: Same.
313 * config/linux/futex.h: Same. Return number of woken processes.
314 * config/linux/futex.cc: Same.
315 (futex_wait): Remove spinning.
316 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
317 Use __x86_64__ instead of __LP64__.
318 * aclocal.m4: Include generic futex checks.
319 * configure: Rebuild.
320 * Makefile.in: Rebuild.
321 * testsuite/Makefile.in: Rebuild.
322 * beginend.cc: Include pthread.h.
323 * config/posix/cachepage.cc: Same.
325 2011-08-12 Torvald Riegel <triegel@redhat.com>
327 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
328 (abi_disp, set_abi_disp): Move to tx's TLS slot.
330 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
332 (GTM::gtm_thread::thread_num): Removed.
333 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
334 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
335 tx-to-thread renaming.
336 * beginend.cc: Adapted to tx-to-thread renaming.
337 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
338 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
339 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
340 gtm_transaction to gtm_thread.
341 (_ITM_getThreadnum): Removed. Not supported anymore.
342 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
343 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
344 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
345 gtm_tx-to-gtm_thr renaming if necessary.
352 * alloc_cpp.cc: Same.
353 * method-serial.cc: Same.
354 * config/generic/tls.cc: Same.
355 * config/posix/rwlock.h (gtm_rwlock): Same.
356 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
358 2011-08-12 Torvald Riegel <triegel@redhat.com>
360 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
362 (gtm_rwlock::read_unlock): Same.
363 (gtm_rwlock::write_lock_generic): New. Generalized from ...
364 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
365 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
366 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
367 w_upgrade. Replaced by per-transaction flags (in shared_state).
368 Added c_confirmed_writers.
369 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
370 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
371 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
372 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
373 * beginend.cc (GTM::gtm_transaction::begin_transaction,
374 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
375 * libitm.texi: Document locking conventions and implementations in
378 2011-08-12 Torvald Riegel <triegel@redhat.com>
380 * libitm_i.h (next_tx): Add list of all threads' transaction.
381 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
382 transaction with list of transactions and ...
383 (thread_exit_handler): ... deregister here.
384 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
385 * config/x86/target.h: Same.
387 2011-08-12 Torvald Riegel <triegel@redhat.com>
389 * testsuite/libitm.c++/static_ctor.C: New file.
391 2011-08-12 Torvald Riegel <triegel@redhat.com>
393 * testsuite/libitm.c/reentrant.c: New file.
395 2011-08-12 Torvald Riegel <triegel@redhat.com>
397 * config/generic/tls.h: Remove the free list for transactions and ...
398 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
399 (GTM::gtm_transaction::operator delete): ... and release here.
400 (thread_exit_handler): New. Delete tx when thread terminates.
401 (thread_exit_init): New.
402 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
403 * testsuite/libitm.c/txrelease.c: New file.
405 2011-08-12 Torvald Riegel <triegel@redhat.com>
407 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
408 * testsuite/libitm.c/notx.c: New file.
410 2011-08-12 Torvald Riegel <triegel@redhat.com>
412 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
413 * libitm_i.h (local_tid): ... to here.
414 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
415 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
417 2011-08-12 Torvald Riegel <triegel@redhat.com>
419 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
420 serialirr_onwrite_dispatch as new default for now.
421 * method-serial.cc (serialirr_onwrite_dispatch): New.
422 (GTM::dispatch_serialirr_onwrite): New.
425 2011-08-12 Torvald Riegel <triegel@redhat.com>
427 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
428 * query.cc (_ITM_getTransactionId): There is no active transaction if
429 the current nesting level is zero.
431 2011-07-28 Torvald Riegel <triegel@redhat.com>
433 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
436 2011-07-28 Torvald Riegel <triegel@redhat.com>
438 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
439 transaction properties from the caller instead of from the
442 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
444 2011-07-28 Torvald Riegel <triegel@redhat.com>
446 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
447 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
449 * method-serial.cc: Same.
450 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
451 flat nesting as default, and closed nesting on demand.
452 (GTM::gtm_transaction::rollback): Same.
453 (_ITM_abortTransaction): Same.
454 (GTM::gtm_transaction::restart): Same.
455 (GTM::gtm_transaction::trycommit): Same.
456 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
457 (choose_code_path): New.
458 (GTM::gtm_transaction_cp::save): New.
459 (GTM::gtm_transaction_cp::commit): New.
460 * query.cc (_ITM_inTransaction): Support flat nesting.
461 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
462 (GTM::gtm_transaction): Support flat and closed nesting.
463 * alloc.cc (commit_allocations_2): New.
464 (commit_cb_data): New helper struct.
465 (GTM::gtm_transaction::commit_allocations): Handle nested
467 * libitm.texi: Update user action section, add description of nesting.
469 2011-07-28 Torvald Riegel <triegel@redhat.com>
471 * libitm_i.h: Add closed nesting as restart reason.
472 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
474 2011-07-28 Torvald Riegel <triegel@redhat.com>
476 * useraction.cc: Use vector instead of list to store actions.
477 Also support partial rollbacks for closed nesting.
478 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
481 2011-07-28 Torvald Riegel <triegel@redhat.com>
483 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
484 closed_nesting flags, as well as a closed nesting alternative.
485 * method-serial.cc: Same.
486 (serial_dispatch): Renamed to serialirr_dispatch.
487 (GTM::dispatch_serialirr): Same.
488 (serial_dispatch_ul): Renamed to serial_dispatch.
489 (GTM::dispatch_serial): Same.
491 2011-07-28 Torvald Riegel <triegel@redhat.com>
493 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
495 2011-07-28 Torvald Riegel <triegel@redhat.com>
497 * aatree.h (aa_tree::remove): New.
498 (aa_tree::operator new): Add placement new.
500 2011-07-02 Torvald Riegel <triegel@redhat.com>
502 * containers.h: New file.
503 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
504 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
505 * common.h: ... to here.
506 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
509 2011-06-30 Torvald Riegel <triegel@redhat.com>
511 * libitm_i.h (STATE_ABORTING): Remove.
512 * beginend.cc (_ITM_abortTransaction): Same.
513 (GTM::gtm_transaction::trycommit_and_finalize): Same.
514 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
515 (_ITM_rollbackTransaction): Remove.
518 * libitm.texi: Document these ABI changes.
520 2011-06-30 Torvald Riegel <triegel@redhat.com>
522 * libitm.texi: New file.
523 * Makefile.am: Add libitm.texi.
524 * Makefile.in: Rebuild.
526 2011-06-30 Torvald Riegel <triegel@redhat.com>
528 * libitm_i.h: Move parts to common.h and dispatch.h.
529 * common.h: New file.
530 * dispatch.h: New file, new dispatch class.
531 Rename GTM::abi_dispatch::lock_type to ls_modifier.
532 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
533 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
534 decision to retry.cc.
535 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
537 (GTM::gtm_transaction::decide_begin_dispatch): Same.
538 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
540 * barrier.cc: Use new barriers definitions.
541 (abi_dispatch::memmove_overlap_check): New.
542 * config/x86/x86_sse.cc: Same.
543 * config/x86/x86_avx.cc: Same.
544 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
546 * Makefile.in: Rebuild.
547 * method-readonly.cc: Remove.
548 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
549 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
551 2011-06-30 Torvald Riegel <triegel@redhat.com>
553 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
554 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
555 * testsuite/libitm.c/dropref-2.c: Same.
556 * testsuite/libitm.c/dropref.c: Same.
558 2011-06-30 Torvald Riegel <triegel@redhat.com>
560 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
561 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
562 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
566 * config/generic/tls.h: Same.
567 * config/x86/tls.h: Same.
571 * method-readonly.cc: Same.
572 * method-serial.cc: Same.
573 * method-wbetl.cc: Same.
576 2011-03-03 Richard Henderson <rth@redhat.com>
578 * config/posix/rwlock.cc (write_upgrade): Add missing case.
579 From Patrik Marlier <patrick.marlier@unine.ch>.
581 2011-02-03 Richard Henderson <rth@redhat.com>
583 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
584 * configure.ac: Use it.
585 * configure, config.h.in: Rebuild.
586 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
587 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
588 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
589 * libitm.map: Use wildcards to match size_t mangling.
591 2010-12-14 Richard Henderson <rth@redhat.com>
593 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
594 blocks of TIDs per thread.
595 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
596 (setup_gtm_thr): Return the thread structure.
597 * config/x86/tls.h (setup_gtm_thr): Likewise.
599 2010-12-14 Richard Henderson <rth@redhat.com>
601 * clone.cc (table_lock): Remove.
602 (find_clone): Don't take it.
603 (ExcludeTransaction): New helper class.
604 (_ITM_registerTMCloneTable): Use it.
605 (_ITM_deregisterTMCloneTable): Likewise.
607 2010-12-14 Richard Henderson <rth@redhat.com>
609 * config/x86/tls.h: New file.
611 2010-07-15 Richard Henderson <rth@redhat.com>
613 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
614 * Makefile.in: Rebuild.
616 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
618 * method-wbetl.cc (trydropreference): Fix source line.
620 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
622 * libitm.h: Add comment.
623 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
625 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
627 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
628 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
629 available, use pthread mutexes.
630 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
631 * config.h.in: Regenerate.
632 * configure: Regenerate.
634 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
636 * libitm.h (ITM_PURE): Define.
637 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
639 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
641 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
642 (validate): Add comment.
643 (trydropreference): New.
644 * method-readonly.cc (class readonly_dispatch): Add
646 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
647 Call trydropreference().
648 * libitm.h (_ITM_dropReferences): Remove const attribute.
649 * method-serial.cc (class serial_dispatch): Add trydropreference.
650 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
652 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
654 * memcpy.cc (do_memcpy): Comment.
656 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
658 * barrier.tpl: Add comments throughout.
660 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
662 * method-wbetl.cc (struct w_entry): Add comments.
666 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
668 * alloc_c.cc (_ITM_dropReferences): New.
669 * libitm.map (_ITM_dropReferences): Add.
670 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
671 * libitm_i.h (struct gtm_transaction): Declare
672 drop_references_allocations and drop_references_local.
673 * local.cc (rollback_local): Ignore memory when applicable.
674 (drop_references_local): New.
676 2010-06-23 Richard Henderson <rth@redhat.com>
678 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
679 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
680 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
681 * config/alpha/target.h: Likewise.
682 * config/generic/tls.cc (gtm_mask_stack): Use it.
684 2010-06-23 Richard Henderson <rth@redhat.com>
686 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
687 a mutex instead of trying a lock-free compare-and-swap on the list.
688 (gtm_cacheline_page::operator delete): Likewise.
690 2010-06-16 Richard Henderson <rth@redhat.com>
692 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
693 that overlap the libitm stack.
694 * barrier.tpl: Mark incoming stack.
695 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
696 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
697 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
698 * memcpy.cc, memset.cc: Likewise.
699 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
700 * config/generic/tls.h (gtm_thread): Add stack_top member.
701 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
702 * libitm_i.h (gtm_mask_stack): Declare.
703 * config/generic/tls.cc: New file.
704 * Makefile.am (libitm_la_SOURCES): Add it.
705 (AM_CXXFLAGS): Turn off exceptions.
706 * Makefile.in: Rebuild.
708 2010-06-16 Richard Henderson <rth@redhat.com>
710 * alloc.cc (struct gtm_alloc_action): Move definition ...
711 * libitm_i.h: ... here.
712 (class gtm_transaction): Declare new and delete.
713 * beginend.cc (alloc_tx): Reformulate as operator new.
714 (free_tx): Reformulate as operator delete.
715 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
717 2010-06-11 Richard Henderson <rth@redhat.com>
719 * clone.cc (clone_entry_compare): Fix typo.
720 From Patrik Marlier <patrick.marlier@unine.ch>.
722 2010-05-13 Richard Henderson <rth@redhat.com>
724 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
727 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
729 * libitm_i.h (struct gtm_transaction): Remove
731 (record_allocation): Remove size parameter.
732 * libitm.map (_ITM_realloc): Remove.
733 * alloc_c.cc (_ITM_realloc): Remove.
734 (_ITM_malloc): Remove size argument to record_allocation.
736 * alloc_cpp.cc (_ZGTtnwm): Same.
737 (_ZGTtnwmRKSt9nothrow_t): Same.
739 (_ZGTtnamRKSt9nothrow_t): Same.
740 * alloc.cc (struct gtm_alloc_action): Remove size.
741 (get_allocation_size): Remove.
742 (commit_allocations): Add comment.
743 (record_allocation): Remove size parameter.
744 (forget_allocation): Remove set of size.
746 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
748 * Makefile.am (abi_version): New.
749 (AM_CXXFLAGS): Pass abi_version.
750 * Makefile.in: Regenerate.
751 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
753 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
755 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
756 _ITM_getTMCloneOrIrrevokable.
757 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
758 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
760 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
762 * configure.ac: Remove Linux futex support.
763 * configure.tgt (config_path): Same.
765 * config/linux: Remove entire directory.
766 * configure: Rebuild.
767 * Makefile.in: Rebuild.
768 * testsuite/Makefile.in: Rebuild.
770 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
772 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
773 switching to serial mode.
774 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
776 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
778 * configure.tgt: Add emacs -*- tags.
781 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
783 * Makefile.am: Rename serial.cc to method-serial.cc.
784 * Makefile.in: Regenerate with automake 1.11.1.
785 * testsuite/Makefile.in: Same.
786 * aclocal.m4: Regenerate with aclocal 1.11.1.
787 * method-serial.cc: Rename from serial.cc.
788 * libitm_i.h (struct gtm_transaction): Update comment on
791 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
793 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
794 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
796 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
798 * configure: Rebuild.
800 2009-11-12 Richard Henderson <rth@redhat.com>
802 * Rewrite everything in C++.
804 2009-11-03 Richard Henderson <rth@redhat.com>
806 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
807 * Makefile.am (libitm_la_SOURCES): Add them.
808 * configure.ac (ARCH_X86): New conditional.
809 * Makefile.in, configure: Rebuild.
810 * configure.tgt: Set up ARCH; do cflags setup at the same time.
811 Move futex setup into "other system configury" case.
812 * local.c (rollback_local): Merge into ...
813 (GTM_rollback_local): ... here.
814 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
815 (_ITM_LB): Define as an alias to GTM_LB.
817 2009-11-03 Richard Henderson <rth@redhat.com>
819 * method-readonly.c: New file.
820 * Makefile.am (libitm_la_SOURCES): Add it.
821 * Makefile.in: Rebuild.
822 * beginend.c (gtm_stmlock_array, gtm_clock): New.
823 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
824 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
825 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
826 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
827 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
828 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
829 gtm_get_clock, gtm_inc_clock): New.
830 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
831 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
832 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
833 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
834 replace uses with new libitm_i.h symbols.
835 (dispatch_wbetl): Rename from wbetl_dispatch.
836 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
837 away from dispatch_readonly; abort if the beginTransaction call
838 asserted that the transaction was readonly.
840 2009-11-03 Richard Henderson <rth@redhat.com>
842 * memset.c: New file.
843 * Makefile.am (libitm_la_SOURCES): Add it.
844 * Makefile.in: Rebuild.
845 * testsuite/libitm.c/memset-1.c: New.
847 2009-11-03 Richard Henderson <rth@redhat.com>
849 * dispatch.c: Remove file.
850 * useraction.c (struct gtm_user_action): Move from libitm.h.
851 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
852 (serial_memset, serial_memmove, serial_memcpy): Remove.
853 (serial_W*, serial_R*): Remove.
854 (serial_dispatch): Update to match.
855 * configure.ac: Move Werror down below configure checks. Don't
856 check for sys/loadavg.h, do check for malloc.h. Don't check for
857 getloadavg and clock_gettime; do check for memalign, posix_memalign.
858 Use GCC_AC_FUNC_MMAP_BLACKLIST
859 * libitm.h: Split out all internal items to...
860 * libitm_i.h: ... here. New file.
861 * copymask.c: New file.
862 * local.c (struct gtm_local_undo): Move from libitm.h.
863 (GTM_alloc_local): Rename from alloc_local; export.
864 * memcpy.c: New file.
865 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
866 * config/posix/page.c: New file.
867 * config/posix/target_tls.h: Remove file.
868 * barrier.c: New file.
869 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
871 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
872 * method-wbetl.c: Rewrite for new cacheline methods.
873 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
875 * config/alpha/sjlj.S: Fix typo.
876 * config/alpha/target_i.h: Copy functions from alpha/target.h.
877 * config/alpha/copymask.c: New file.
878 * config/alpha/target.h (CACHELINE_SIZE): New.
879 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
881 * config/x86/target_i.h: Copy functions from x86/target.h.
882 * config/x86/copymask.c: New file.
883 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
884 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
885 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
886 * config/x86/target_tls.h: Move contents to target_i.h.
888 * testsuite/libitm.c/clone-1.c: Include libitm.h.
889 * testsuite/libitm.c/memcpy-1.c: New.
891 2009-10-22 Richard Henderson <rth@redhat.com>
893 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
895 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
896 saving/restoring _AC_ARG_VAR_PRECIOUS.
897 * Makefile.in, aclocal.m4, config.h.in, configure,
898 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
900 2009-10-22 Richard Henderson <rth@redhat.com>
902 * testsuite/*: Update for new compiler syntax.
904 2009-10-21 Richard Henderson <rth@redhat.com>
906 * libitm.h (_ITM_abortReason): Add outerAbort.
908 2009-08-03 Richard Henderson <rth@redhat.com>
910 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
911 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
912 * method-wbetl.c (struct w_entry): Remove mask.
913 (wbetl_write, wbetl_load): Return pointer to word containing the data;
916 2009-07-22 Richard Henderson <rth@redhat.com>
918 * eh_cpp.c: New file.
919 * Makefile.am (libitm_la_SOURCES): Add it.
920 * Makefile.in: Rebuild.
921 * beginend.c (GTM_rollback_transaction): Undo exception state.
922 (GTM_trycommit_transaction): Mark inline.
923 (GTM_trycommit_and_finalize_transaction): Split out from ...
924 (_ITM_commitTransaction): ... here.
925 (_ITM_commitTransactionEH): New function.
926 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
927 cxa_unthrown, eh_in_flight; reorder.
929 * testsuite/libitm.c++/c++.exp: New.
930 * testsuite/libitm.c++/eh-1.C: New.
932 * aatree.c (aa_free): Remove REGPARM.
933 * aatree.h: Remove all REGPARM.
935 2009-07-18 Richard Henderson <rth@redhat.com>
937 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
938 * Makefile.am (libitm_la_SOURCES): Add them.
939 * Makefile.in: Rebuild.
940 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
941 (GTM_trycommit_transaction): Likewise.
942 * libitm.h: Include aatree.h
943 (struct gtm_alloc_action): New.
944 (struct gtm_transaction): Add alloc_actions.
945 (GTM_record_allocation, GTM_forget_allocation): Declare.
946 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
947 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
948 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
949 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
950 _ZGTtdaPvRKSt9nothrow_t): Export.
952 2009-07-18 Richard Henderson <rth@redhat.com>
954 * target_tls.h: Move ...
955 * config/posix/target_tls.h: ... here.
957 2009-07-07 Richard Henderson <rth@redhat.com>
959 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
961 2009-07-07 Richard Henderson <rth@redhat.com>
965 2009-07-07 Richard Henderson <rth@redhat.com>
967 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
968 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
970 * configure.tgt: Don't use -ftls-model for x86 linux.
971 * libitm.h: Include target.h after standard includes.
972 (_gtm_thr): Rename from gtm_thr.
973 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
974 (gtm_disp, set_gtm_disp): New.
975 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
976 retry.c, serial.c, useraction.c: Use accessor functions throughout.
977 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
979 2009-07-07 Richard Henderson <rth@redhat.com>
981 * config/linux/rwlock.c (EZ): New define. Use it throughout.
983 2009-07-06 Richard Henderson <rth@redhat.com>
985 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
986 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
987 (_ITM_beginTransaction): Take variadic arguments.
988 (_ITM_registerThrownObject): Declare.
989 * beginend.c, serial.c: Update.
990 * libitm.map: Add _ITM_registerThrownObject.
992 2009-01-28 Richard Henderson <rth@redhat.com>
994 * Makefile.am (libitm_la_SOURCES): Add clone.c.
995 * Makefile.in: Rebuild.
996 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
997 (GTM_restart_transaction): Fix uninstrumented code check.
998 * retry.c (GTM_decide_retry_strategy): Add serial check.
999 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1000 automatically go irrevokable when in serial mode.
1001 * clone.c: New file.
1002 * libitm.h, libitm.map: Update.
1004 2009-01-27 Richard Henderson <rth@redhat.com>
1006 * Makefile.am (LTCCASCOMPILE): Define.
1007 (libitm_la_SOURCES): Add methid-wbetl.c.
1008 * testsuite/Makefile.am: New
1009 * configure.ac: Add testsuite/Makefile.
1010 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1011 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1012 (_ITM_abortTransaction): Finalize implementation method; pass
1013 transaction properties to longjmp.
1014 (GTM_restart_transaction): Split out from ...
1015 (_ITM_commitTransaction): ... here.
1016 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1017 Move to config/x86/target.h.
1018 * config/linux/alpha/futex_bits.h: New.
1019 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1020 * config/x86/target.h: Disable target types for 32-bit.
1021 * config/alpha/sjlj.S, config/alpha/target.h: New.
1022 * libitm.h (struct gtm_dispatch): Add init, fini.
1023 (enum restart_reason): New.
1024 (struct gtm_transaction): Add method and restarts.
1025 * retry.c (GTM_decide_retry_strategy): Implement.
1026 * serial.c (serial_init, serial_fini): New.
1027 (GTM_serialmode): Finialize outgoing method.
1028 * method-wbetl.c: New.
1030 2008-12-09 Richard Henderson <rth@redhat.com>
1032 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1033 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1034 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1035 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1036 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1037 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1038 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1039 * serial.c (serial_R##T, serial_W##T): Likewise.
1041 2008-11-21 Richard Henderson <rth@redhat.com>