1 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
4 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
5 * configure: Regenerate.
7 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
9 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
11 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
15 (.note.GNU-stack): Only use if __linux__.
16 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
17 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
18 * testsuite/libitm.c/reentrant.c: Likewise.
19 * testsuite/libitm.c/simple-2.c: Likewise.
20 * testsuite/libitm.c/txrelease.c: Likewise.
21 * testsuite/libitm.c++/static_ctor.C: Likewise.
23 2011-11-10 Richard Henderson <rth@redhat.com>
25 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
26 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
27 * configure.ac (ARCH_X86_AVX): New conditional.
28 * Makefile.in, configure: Rebuild.
30 2011-11-09 Richard Henderson <rth@redhat.com>
32 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
33 * configure.ac: Use it.
34 * config.h.in, configure: Rebuild.
35 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
37 2011-11-09 Richard Henderson <rth@redhat.com>
39 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
40 * config/alpha/unaligned.h: Remove file.
41 * config/generic/unaligned.h: Remove file.
42 * config/x86/unaligned.h: Remove file.
43 * config/generic/cachepage.h: Remove file.
44 * config/posix/cachepage.cc: Remove file.
45 * config/generic/cacheline.cc: Remove file.
46 * config/x86/cacheline.cc: Remove file.
47 * config/generic/cacheline.h (gtm_cacheline): Remove the
48 store_mask, copy_mask, copy_mask_wb methods.
49 * config/x86/cacheline.h: Likewise.
50 * config/alpha/cacheline.h: Fall back to generic after setting size.
51 * config/generic/tls.cc (gtm_mask_stack): Remove.
52 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
53 (GTM_vpalignr_table): Remove.
54 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
55 (GTM_pshift_table): Remove.
56 * config/libitm_i.h: Don't include cachepage.h.
57 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
58 * Makefile.in, testsuite/Makefile.in: Rebuild.
60 2011-11-09 Richard Henderson <rth@redhat.com>
62 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
63 to emit branch prediction hint.
65 * config/x86/sjlj.S: Protect elf directives with __ELF__.
66 Protect .note.GNU-stack with __linux__.
68 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
69 * configure, aclocal.m4, config.h.in: Rebuild.
70 * config/generic/asmcfi.h: New file.
71 * config/x86/sjlj.S: Use it.
73 2011-11-08 Richard Henderson <rth@redhat.com>
75 * local.cc (_ITM_LB): Use a normal call, not a function alias.
77 2011-11-08 Richard Henderson <rth@redhat.com>
79 * configure.tgt: Test correct directory for supported cpus.
81 * configure.ac: Exit if unsupported.
83 * configure.tgt: Delete boilerplate from libgomp for unsupported
84 targets. Set UNSUPPORTED for unsupported targets.
86 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
88 * configure.tgt: Handle i386 like i[456]86.
89 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
91 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
92 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
94 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
96 * method-wbetl.cc: Update copyright notice.
103 * useraction.cc: Same.
107 * config/generic/tls.cc: Same.
108 * config/generic/cacheline.h: Same.
109 * config/generic/cachepage.h: Same.
110 * config/generic/cacheline.cc: Same.
111 * config/generic/unaligned.h: Same.
112 * config/x86/cacheline.h: Same.
113 * config/x86/cacheline.cc: Same.
114 * config/x86/unaligned.h: Same.
115 * config/alpha/cacheline.h: Same.
116 * config/alpha/unaligned.h: Same.
117 * config/alpha/sjlj.S: Same.
118 * config/posix/cachepage.cc: Same.
119 * config/linux/futex.h: Same.
120 * config/linux/alpha/futex_bits.h: Same.
122 2011-11-04 Torvald Riegel <triegel@redhat.com>
124 * libitm.texi: No cover text and invariant sections.
126 2011-11-03 Richard Henderson <rth@redhat.com>
128 * local_type_traits: New file.
129 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
131 2011-11-03 Richard Henderson <rth@redhat.com>
133 * configure.ac: Don't test for gfortran.
134 * configure: Rebuild.
136 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
137 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
139 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
141 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
142 * testsuite/libitm.c/memset-1.c: Same.
143 * testsuite/libitm.c/c.exp: Same.
144 * testsuite/lib/libitm-dg.exp: Same.
145 * testsuite/lib/libitm.exp: Same.
146 * testsuite/libitm.c++/c++.exp: Same.
148 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
150 * testsuite/config/default.exp: Update copyright date.
151 * configure.ac: Add copyright info.
152 * configure.tgt: Same.
154 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
156 * testsuite/libitm.c/reentrant.c: XFAIL.
157 * testsuite/libitm.c++/static_ctor.C: XFAIL.
159 2011-10-29 Torvald Riegel <triegel@redhat.com>
161 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
163 (_ITM_abortTransaction): Handle aborts of outer transactions.
165 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
166 * libitm.texi: Document aborts of outer transactions.
167 * testsuite/libitm.c/cancel.c: New file.
169 2011-10-19 Torvald Riegel <triegel@redhat.com>
171 * testsuite/*: Change __transaction to __transaction_atomic or
172 __transaction_relaxed.
174 2011-10-19 Torvald Riegel <triegel@redhat.com>
176 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
179 2011-10-19 Torvald Riegel <triegel@redhat.com>
181 * libitm_i.h: Add gl_wt dispatch.
182 * retry.cc (parse_default_method): Same.
183 * method-gl.cc: New file.
184 * Makefile.am: Use method-gl.cc.
185 * Makefile.in: Rebuild.
187 2011-10-19 Torvald Riegel <triegel@redhat.com>
189 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
190 safety if requested by a TM method.
191 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
192 privatization safety.
193 * method-serial.cc: Same.
195 2011-10-19 Torvald Riegel <triegel@redhat.com>
197 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
198 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
199 undolog-related member functions from *_local to *_undolog.
200 * local.cc (gtm_thread::commit_undolog): Same.
201 * beginend.cc (GTM::gtm_thread::trycommit): Same.
202 (GTM::gtm_thread::rollback): Roll back undolog before
203 dispatch-specific rollback.
205 2011-10-19 Torvald Riegel <triegel@redhat.com>
207 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
208 re-initialization of the current method group.
209 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
211 2011-10-19 Torvald Riegel <triegel@redhat.com>
213 * alloc.cc (commit_allocations_2): Do not free transaction-local
214 memory when committing a nested transaction.
216 2011-10-19 Torvald Riegel <triegel@redhat.com>
218 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
219 serial-irrevocable dispatch, not serial.
221 2011-10-19 Torvald Riegel <triegel@redhat.com>
223 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
225 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
226 * method-serial.cc: Implement begin_or_restart().
227 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
228 dispatch-specific begin_or_restart().
229 (GTM::gtm_thread::restart): Same.
231 2011-08-23 Torvald Riegel <triegel@redhat.com>
233 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
234 restarting without switching to serial mode.
235 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
236 transaction state. Choose closed-nesting alternative if available.
237 (GTM::gtm_thread::set_default_dispatch): New.
238 (parse_default_method): New.
239 (GTM::gtm_thread::number_of_threads_changed): New.
240 * method-serial.cc (GTM::serial_mg): New method group class.
241 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
243 (GTM::serial_dispatch): Same.
244 (GTM::serialirr_onwrite_dispatch): Same.
245 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
246 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
248 (GTM::gtm_thread::gtm_thread): Same.
249 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
250 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
251 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
252 choose dispatch but set state according to dispatch here.
253 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
254 (GTM::method_group): New class.
255 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
256 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
257 * libitm.texi: Document TM methods, method groups, method life cycle.
258 Rename method sets to method groups.
260 2011-08-23 Torvald Riegel <triegel@redhat.com>
262 * config/x86/tls.h: Moved to ...
263 * config/linux/x86/tls.h: ... here.
265 2011-08-23 Torvald Riegel <triegel@redhat.com>
267 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
269 * config/x86/sjlj.S: Same.
271 2011-08-19 Torvald Riegel <triegel@redhat.com>
273 * config/linux/rwlock.h: New file.
274 * config/linux/rwlock.c: New file.
275 * configure.ac: Reenable futex support (undo SVN rev 157758).
277 * configure.tgt: Same.
278 * config/linux/alpha/futex_bits.h: Same.
279 * config/linux/futex.h: Same. Return number of woken processes.
280 * config/linux/futex.cc: Same.
281 (futex_wait): Remove spinning.
282 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
283 Use __x86_64__ instead of __LP64__.
284 * aclocal.m4: Include generic futex checks.
285 * configure: Rebuild.
286 * Makefile.in: Rebuild.
287 * testsuite/Makefile.in: Rebuild.
288 * beginend.cc: Include pthread.h.
289 * config/posix/cachepage.cc: Same.
291 2011-08-12 Torvald Riegel <triegel@redhat.com>
293 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
294 (abi_disp, set_abi_disp): Move to tx's TLS slot.
296 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
298 (GTM::gtm_thread::thread_num): Removed.
299 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
300 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
301 tx-to-thread renaming.
302 * beginend.cc: Adapted to tx-to-thread renaming.
303 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
304 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
305 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
306 gtm_transaction to gtm_thread.
307 (_ITM_getThreadnum): Removed. Not supported anymore.
308 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
309 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
310 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
311 gtm_tx-to-gtm_thr renaming if necessary.
318 * alloc_cpp.cc: Same.
319 * method-serial.cc: Same.
320 * config/generic/tls.cc: Same.
321 * config/posix/rwlock.h (gtm_rwlock): Same.
322 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
324 2011-08-12 Torvald Riegel <triegel@redhat.com>
326 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
328 (gtm_rwlock::read_unlock): Same.
329 (gtm_rwlock::write_lock_generic): New. Generalized from ...
330 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
331 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
332 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
333 w_upgrade. Replaced by per-transaction flags (in shared_state).
334 Added c_confirmed_writers.
335 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
336 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
337 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
338 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
339 * beginend.cc (GTM::gtm_transaction::begin_transaction,
340 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
341 * libitm.texi: Document locking conventions and implementations in
344 2011-08-12 Torvald Riegel <triegel@redhat.com>
346 * libitm_i.h (next_tx): Add list of all threads' transaction.
347 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
348 transaction with list of transactions and ...
349 (thread_exit_handler): ... deregister here.
350 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
351 * config/x86/target.h: Same.
353 2011-08-12 Torvald Riegel <triegel@redhat.com>
355 * testsuite/libitm.c++/static_ctor.C: New file.
357 2011-08-12 Torvald Riegel <triegel@redhat.com>
359 * testsuite/libitm.c/reentrant.c: New file.
361 2011-08-12 Torvald Riegel <triegel@redhat.com>
363 * config/generic/tls.h: Remove the free list for transactions and ...
364 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
365 (GTM::gtm_transaction::operator delete): ... and release here.
366 (thread_exit_handler): New. Delete tx when thread terminates.
367 (thread_exit_init): New.
368 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
369 * testsuite/libitm.c/txrelease.c: New file.
371 2011-08-12 Torvald Riegel <triegel@redhat.com>
373 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
374 * testsuite/libitm.c/notx.c: New file.
376 2011-08-12 Torvald Riegel <triegel@redhat.com>
378 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
379 * libitm_i.h (local_tid): ... to here.
380 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
381 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
383 2011-08-12 Torvald Riegel <triegel@redhat.com>
385 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
386 serialirr_onwrite_dispatch as new default for now.
387 * method-serial.cc (serialirr_onwrite_dispatch): New.
388 (GTM::dispatch_serialirr_onwrite): New.
391 2011-08-12 Torvald Riegel <triegel@redhat.com>
393 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
394 * query.cc (_ITM_getTransactionId): There is no active transaction if
395 the current nesting level is zero.
397 2011-07-28 Torvald Riegel <triegel@redhat.com>
399 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
402 2011-07-28 Torvald Riegel <triegel@redhat.com>
404 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
405 transaction properties from the caller instead of from the
408 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
410 2011-07-28 Torvald Riegel <triegel@redhat.com>
412 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
413 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
415 * method-serial.cc: Same.
416 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
417 flat nesting as default, and closed nesting on demand.
418 (GTM::gtm_transaction::rollback): Same.
419 (_ITM_abortTransaction): Same.
420 (GTM::gtm_transaction::restart): Same.
421 (GTM::gtm_transaction::trycommit): Same.
422 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
423 (choose_code_path): New.
424 (GTM::gtm_transaction_cp::save): New.
425 (GTM::gtm_transaction_cp::commit): New.
426 * query.cc (_ITM_inTransaction): Support flat nesting.
427 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
428 (GTM::gtm_transaction): Support flat and closed nesting.
429 * alloc.cc (commit_allocations_2): New.
430 (commit_cb_data): New helper struct.
431 (GTM::gtm_transaction::commit_allocations): Handle nested
433 * libitm.texi: Update user action section, add description of nesting.
435 2011-07-28 Torvald Riegel <triegel@redhat.com>
437 * libitm_i.h: Add closed nesting as restart reason.
438 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
440 2011-07-28 Torvald Riegel <triegel@redhat.com>
442 * useraction.cc: Use vector instead of list to store actions.
443 Also support partial rollbacks for closed nesting.
444 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
447 2011-07-28 Torvald Riegel <triegel@redhat.com>
449 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
450 closed_nesting flags, as well as a closed nesting alternative.
451 * method-serial.cc: Same.
452 (serial_dispatch): Renamed to serialirr_dispatch.
453 (GTM::dispatch_serialirr): Same.
454 (serial_dispatch_ul): Renamed to serial_dispatch.
455 (GTM::dispatch_serial): Same.
457 2011-07-28 Torvald Riegel <triegel@redhat.com>
459 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
461 2011-07-28 Torvald Riegel <triegel@redhat.com>
463 * aatree.h (aa_tree::remove): New.
464 (aa_tree::operator new): Add placement new.
466 2011-07-02 Torvald Riegel <triegel@redhat.com>
468 * containers.h: New file.
469 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
470 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
471 * common.h: ... to here.
472 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
475 2011-06-30 Torvald Riegel <triegel@redhat.com>
477 * libitm_i.h (STATE_ABORTING): Remove.
478 * beginend.cc (_ITM_abortTransaction): Same.
479 (GTM::gtm_transaction::trycommit_and_finalize): Same.
480 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
481 (_ITM_rollbackTransaction): Remove.
484 * libitm.texi: Document these ABI changes.
486 2011-06-30 Torvald Riegel <triegel@redhat.com>
488 * libitm.texi: New file.
489 * Makefile.am: Add libitm.texi.
490 * Makefile.in: Rebuild.
492 2011-06-30 Torvald Riegel <triegel@redhat.com>
494 * libitm_i.h: Move parts to common.h and dispatch.h.
495 * common.h: New file.
496 * dispatch.h: New file, new dispatch class.
497 Rename GTM::abi_dispatch::lock_type to ls_modifier.
498 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
499 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
500 decision to retry.cc.
501 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
503 (GTM::gtm_transaction::decide_begin_dispatch): Same.
504 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
506 * barrier.cc: Use new barriers definitions.
507 (abi_dispatch::memmove_overlap_check): New.
508 * config/x86/x86_sse.cc: Same.
509 * config/x86/x86_avx.cc: Same.
510 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
512 * Makefile.in: Rebuild.
513 * method-readonly.cc: Remove.
514 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
515 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
517 2011-06-30 Torvald Riegel <triegel@redhat.com>
519 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
520 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
521 * testsuite/libitm.c/dropref-2.c: Same.
522 * testsuite/libitm.c/dropref.c: Same.
524 2011-06-30 Torvald Riegel <triegel@redhat.com>
526 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
527 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
528 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
532 * config/generic/tls.h: Same.
533 * config/x86/tls.h: Same.
537 * method-readonly.cc: Same.
538 * method-serial.cc: Same.
539 * method-wbetl.cc: Same.
542 2011-03-03 Richard Henderson <rth@redhat.com>
544 * config/posix/rwlock.cc (write_upgrade): Add missing case.
545 From Patrik Marlier <patrick.marlier@unine.ch>.
547 2011-02-03 Richard Henderson <rth@redhat.com>
549 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
550 * configure.ac: Use it.
551 * configure, config.h.in: Rebuild.
552 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
553 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
554 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
555 * libitm.map: Use wildcards to match size_t mangling.
557 2010-12-14 Richard Henderson <rth@redhat.com>
559 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
560 blocks of TIDs per thread.
561 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
562 (setup_gtm_thr): Return the thread structure.
563 * config/x86/tls.h (setup_gtm_thr): Likewise.
565 2010-12-14 Richard Henderson <rth@redhat.com>
567 * clone.cc (table_lock): Remove.
568 (find_clone): Don't take it.
569 (ExcludeTransaction): New helper class.
570 (_ITM_registerTMCloneTable): Use it.
571 (_ITM_deregisterTMCloneTable): Likewise.
573 2010-12-14 Richard Henderson <rth@redhat.com>
575 * config/x86/tls.h: New file.
577 2010-07-15 Richard Henderson <rth@redhat.com>
579 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
580 * Makefile.in: Rebuild.
582 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
584 * method-wbetl.cc (trydropreference): Fix source line.
586 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
588 * libitm.h: Add comment.
589 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
591 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
593 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
594 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
595 available, use pthread mutexes.
596 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
597 * config.h.in: Regenerate.
598 * configure: Regenerate.
600 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
602 * libitm.h (ITM_PURE): Define.
603 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
605 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
607 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
608 (validate): Add comment.
609 (trydropreference): New.
610 * method-readonly.cc (class readonly_dispatch): Add
612 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
613 Call trydropreference().
614 * libitm.h (_ITM_dropReferences): Remove const attribute.
615 * method-serial.cc (class serial_dispatch): Add trydropreference.
616 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
618 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
620 * memcpy.cc (do_memcpy): Comment.
622 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
624 * barrier.tpl: Add comments throughout.
626 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
628 * method-wbetl.cc (struct w_entry): Add comments.
632 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
634 * alloc_c.cc (_ITM_dropReferences): New.
635 * libitm.map (_ITM_dropReferences): Add.
636 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
637 * libitm_i.h (struct gtm_transaction): Declare
638 drop_references_allocations and drop_references_local.
639 * local.cc (rollback_local): Ignore memory when applicable.
640 (drop_references_local): New.
642 2010-06-23 Richard Henderson <rth@redhat.com>
644 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
645 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
646 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
647 * config/alpha/target.h: Likewise.
648 * config/generic/tls.cc (gtm_mask_stack): Use it.
650 2010-06-23 Richard Henderson <rth@redhat.com>
652 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
653 a mutex instead of trying a lock-free compare-and-swap on the list.
654 (gtm_cacheline_page::operator delete): Likewise.
656 2010-06-16 Richard Henderson <rth@redhat.com>
658 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
659 that overlap the libitm stack.
660 * barrier.tpl: Mark incoming stack.
661 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
662 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
663 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
664 * memcpy.cc, memset.cc: Likewise.
665 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
666 * config/generic/tls.h (gtm_thread): Add stack_top member.
667 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
668 * libitm_i.h (gtm_mask_stack): Declare.
669 * config/generic/tls.cc: New file.
670 * Makefile.am (libitm_la_SOURCES): Add it.
671 (AM_CXXFLAGS): Turn off exceptions.
672 * Makefile.in: Rebuild.
674 2010-06-16 Richard Henderson <rth@redhat.com>
676 * alloc.cc (struct gtm_alloc_action): Move definition ...
677 * libitm_i.h: ... here.
678 (class gtm_transaction): Declare new and delete.
679 * beginend.cc (alloc_tx): Reformulate as operator new.
680 (free_tx): Reformulate as operator delete.
681 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
683 2010-06-11 Richard Henderson <rth@redhat.com>
685 * clone.cc (clone_entry_compare): Fix typo.
686 From Patrik Marlier <patrick.marlier@unine.ch>.
688 2010-05-13 Richard Henderson <rth@redhat.com>
690 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
693 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
695 * libitm_i.h (struct gtm_transaction): Remove
697 (record_allocation): Remove size parameter.
698 * libitm.map (_ITM_realloc): Remove.
699 * alloc_c.cc (_ITM_realloc): Remove.
700 (_ITM_malloc): Remove size argument to record_allocation.
702 * alloc_cpp.cc (_ZGTtnwm): Same.
703 (_ZGTtnwmRKSt9nothrow_t): Same.
705 (_ZGTtnamRKSt9nothrow_t): Same.
706 * alloc.cc (struct gtm_alloc_action): Remove size.
707 (get_allocation_size): Remove.
708 (commit_allocations): Add comment.
709 (record_allocation): Remove size parameter.
710 (forget_allocation): Remove set of size.
712 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
714 * Makefile.am (abi_version): New.
715 (AM_CXXFLAGS): Pass abi_version.
716 * Makefile.in: Regenerate.
717 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
719 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
721 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
722 _ITM_getTMCloneOrIrrevokable.
723 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
724 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
726 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
728 * configure.ac: Remove Linux futex support.
729 * configure.tgt (config_path): Same.
731 * config/linux: Remove entire directory.
732 * configure: Rebuild.
733 * Makefile.in: Rebuild.
734 * testsuite/Makefile.in: Rebuild.
736 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
738 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
739 switching to serial mode.
740 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
742 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
744 * configure.tgt: Add emacs -*- tags.
747 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
749 * Makefile.am: Rename serial.cc to method-serial.cc.
750 * Makefile.in: Regenerate with automake 1.11.1.
751 * testsuite/Makefile.in: Same.
752 * aclocal.m4: Regenerate with aclocal 1.11.1.
753 * method-serial.cc: Rename from serial.cc.
754 * libitm_i.h (struct gtm_transaction): Update comment on
757 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
759 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
760 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
762 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
764 * configure: Rebuild.
766 2009-11-12 Richard Henderson <rth@redhat.com>
768 * Rewrite everything in C++.
770 2009-11-03 Richard Henderson <rth@redhat.com>
772 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
773 * Makefile.am (libitm_la_SOURCES): Add them.
774 * configure.ac (ARCH_X86): New conditional.
775 * Makefile.in, configure: Rebuild.
776 * configure.tgt: Set up ARCH; do cflags setup at the same time.
777 Move futex setup into "other system configury" case.
778 * local.c (rollback_local): Merge into ...
779 (GTM_rollback_local): ... here.
780 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
781 (_ITM_LB): Define as an alias to GTM_LB.
783 2009-11-03 Richard Henderson <rth@redhat.com>
785 * method-readonly.c: New file.
786 * Makefile.am (libitm_la_SOURCES): Add it.
787 * Makefile.in: Rebuild.
788 * beginend.c (gtm_stmlock_array, gtm_clock): New.
789 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
790 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
791 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
792 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
793 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
794 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
795 gtm_get_clock, gtm_inc_clock): New.
796 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
797 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
798 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
799 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
800 replace uses with new libitm_i.h symbols.
801 (dispatch_wbetl): Rename from wbetl_dispatch.
802 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
803 away from dispatch_readonly; abort if the beginTransaction call
804 asserted that the transaction was readonly.
806 2009-11-03 Richard Henderson <rth@redhat.com>
808 * memset.c: New file.
809 * Makefile.am (libitm_la_SOURCES): Add it.
810 * Makefile.in: Rebuild.
811 * testsuite/libitm.c/memset-1.c: New.
813 2009-11-03 Richard Henderson <rth@redhat.com>
815 * dispatch.c: Remove file.
816 * useraction.c (struct gtm_user_action): Move from libitm.h.
817 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
818 (serial_memset, serial_memmove, serial_memcpy): Remove.
819 (serial_W*, serial_R*): Remove.
820 (serial_dispatch): Update to match.
821 * configure.ac: Move Werror down below configure checks. Don't
822 check for sys/loadavg.h, do check for malloc.h. Don't check for
823 getloadavg and clock_gettime; do check for memalign, posix_memalign.
824 Use GCC_AC_FUNC_MMAP_BLACKLIST
825 * libitm.h: Split out all internal items to...
826 * libitm_i.h: ... here. New file.
827 * copymask.c: New file.
828 * local.c (struct gtm_local_undo): Move from libitm.h.
829 (GTM_alloc_local): Rename from alloc_local; export.
830 * memcpy.c: New file.
831 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
832 * config/posix/page.c: New file.
833 * config/posix/target_tls.h: Remove file.
834 * barrier.c: New file.
835 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
837 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
838 * method-wbetl.c: Rewrite for new cacheline methods.
839 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
841 * config/alpha/sjlj.S: Fix typo.
842 * config/alpha/target_i.h: Copy functions from alpha/target.h.
843 * config/alpha/copymask.c: New file.
844 * config/alpha/target.h (CACHELINE_SIZE): New.
845 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
847 * config/x86/target_i.h: Copy functions from x86/target.h.
848 * config/x86/copymask.c: New file.
849 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
850 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
851 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
852 * config/x86/target_tls.h: Move contents to target_i.h.
854 * testsuite/libitm.c/clone-1.c: Include libitm.h.
855 * testsuite/libitm.c/memcpy-1.c: New.
857 2009-10-22 Richard Henderson <rth@redhat.com>
859 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
861 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
862 saving/restoring _AC_ARG_VAR_PRECIOUS.
863 * Makefile.in, aclocal.m4, config.h.in, configure,
864 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
866 2009-10-22 Richard Henderson <rth@redhat.com>
868 * testsuite/*: Update for new compiler syntax.
870 2009-10-21 Richard Henderson <rth@redhat.com>
872 * libitm.h (_ITM_abortReason): Add outerAbort.
874 2009-08-03 Richard Henderson <rth@redhat.com>
876 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
877 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
878 * method-wbetl.c (struct w_entry): Remove mask.
879 (wbetl_write, wbetl_load): Return pointer to word containing the data;
882 2009-07-22 Richard Henderson <rth@redhat.com>
884 * eh_cpp.c: New file.
885 * Makefile.am (libitm_la_SOURCES): Add it.
886 * Makefile.in: Rebuild.
887 * beginend.c (GTM_rollback_transaction): Undo exception state.
888 (GTM_trycommit_transaction): Mark inline.
889 (GTM_trycommit_and_finalize_transaction): Split out from ...
890 (_ITM_commitTransaction): ... here.
891 (_ITM_commitTransactionEH): New function.
892 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
893 cxa_unthrown, eh_in_flight; reorder.
895 * testsuite/libitm.c++/c++.exp: New.
896 * testsuite/libitm.c++/eh-1.C: New.
898 * aatree.c (aa_free): Remove REGPARM.
899 * aatree.h: Remove all REGPARM.
901 2009-07-18 Richard Henderson <rth@redhat.com>
903 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
904 * Makefile.am (libitm_la_SOURCES): Add them.
905 * Makefile.in: Rebuild.
906 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
907 (GTM_trycommit_transaction): Likewise.
908 * libitm.h: Include aatree.h
909 (struct gtm_alloc_action): New.
910 (struct gtm_transaction): Add alloc_actions.
911 (GTM_record_allocation, GTM_forget_allocation): Declare.
912 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
913 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
914 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
915 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
916 _ZGTtdaPvRKSt9nothrow_t): Export.
918 2009-07-18 Richard Henderson <rth@redhat.com>
920 * target_tls.h: Move ...
921 * config/posix/target_tls.h: ... here.
923 2009-07-07 Richard Henderson <rth@redhat.com>
925 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
927 2009-07-07 Richard Henderson <rth@redhat.com>
931 2009-07-07 Richard Henderson <rth@redhat.com>
933 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
934 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
936 * configure.tgt: Don't use -ftls-model for x86 linux.
937 * libitm.h: Include target.h after standard includes.
938 (_gtm_thr): Rename from gtm_thr.
939 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
940 (gtm_disp, set_gtm_disp): New.
941 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
942 retry.c, serial.c, useraction.c: Use accessor functions throughout.
943 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
945 2009-07-07 Richard Henderson <rth@redhat.com>
947 * config/linux/rwlock.c (EZ): New define. Use it throughout.
949 2009-07-06 Richard Henderson <rth@redhat.com>
951 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
952 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
953 (_ITM_beginTransaction): Take variadic arguments.
954 (_ITM_registerThrownObject): Declare.
955 * beginend.c, serial.c: Update.
956 * libitm.map: Add _ITM_registerThrownObject.
958 2009-01-28 Richard Henderson <rth@redhat.com>
960 * Makefile.am (libitm_la_SOURCES): Add clone.c.
961 * Makefile.in: Rebuild.
962 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
963 (GTM_restart_transaction): Fix uninstrumented code check.
964 * retry.c (GTM_decide_retry_strategy): Add serial check.
965 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
966 automatically go irrevokable when in serial mode.
968 * libitm.h, libitm.map: Update.
970 2009-01-27 Richard Henderson <rth@redhat.com>
972 * Makefile.am (LTCCASCOMPILE): Define.
973 (libitm_la_SOURCES): Add methid-wbetl.c.
974 * testsuite/Makefile.am: New
975 * configure.ac: Add testsuite/Makefile.
976 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
977 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
978 (_ITM_abortTransaction): Finalize implementation method; pass
979 transaction properties to longjmp.
980 (GTM_restart_transaction): Split out from ...
981 (_ITM_commitTransaction): ... here.
982 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
983 Move to config/x86/target.h.
984 * config/linux/alpha/futex_bits.h: New.
985 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
986 * config/x86/target.h: Disable target types for 32-bit.
987 * config/alpha/sjlj.S, config/alpha/target.h: New.
988 * libitm.h (struct gtm_dispatch): Add init, fini.
989 (enum restart_reason): New.
990 (struct gtm_transaction): Add method and restarts.
991 * retry.c (GTM_decide_retry_strategy): Implement.
992 * serial.c (serial_init, serial_fini): New.
993 (GTM_serialmode): Finialize outgoing method.
994 * method-wbetl.c: New.
996 2008-12-09 Richard Henderson <rth@redhat.com>
998 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
999 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1000 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1001 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1002 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1003 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1004 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1005 * serial.c (serial_R##T, serial_W##T): Likewise.
1007 2008-11-21 Richard Henderson <rth@redhat.com>