1 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
5 include, exclude options.
7 2012-01-14 Torvald Riegel <triegel@redhat.com>
9 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
11 * containers.h (GTM::vector::set_size): New.
13 2012-01-14 Torvald Riegel <triegel@redhat.com>
16 * config/generic/tls.h (GTM::mask_stack_top): New.
17 (GTM::mask_stack_bottom): Declare.
18 * config/generic/tls.c (GTM::mask_stack_bottom): New.
19 * local.cc (gtm_undolog::rollback): Filter out any updates that
20 overlap the libitm stack. Add current transaction as parameter.
21 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
22 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
23 * testsuite/libitm.c/stackundo.c: New test.
25 2012-01-10 Richard Henderson <rth@redhat.com>
27 * libitm_i.h (_Unwind_DeleteException): Declare weak.
28 * eh_cpp.cc (_Unwind_DeleteException): Define for
29 !HAVE_ELF_STYLE_WEAKREF.
31 2012-01-08 Torvald Riegel <triegel@redhat.com>
33 * local.cc (GTM_LB): Use GTM::gtm_undolog.
34 (GTM::gtm_thread::drop_references_undolog): Remove.
35 (GTM::gtm_thread::commit_undolog,
36 GTM::gtm_thread::rollback_undolog): Move to ...
37 * libitm_i.h (GTM::gtm_undolog): ...here. New.
38 (GTM::gtm_undolog_entry): Remove.
39 (GTM::gtm_thread): Adapt.
40 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
41 (GTM::gtm_thread::trycommit): Adapt.
42 * method-serial.cc (serial_dispatch::log): Adapt.
43 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
44 (gl_wt_dispatch::store): Fix likely/unlikely.
45 * containers.h (GTM::vector::resize): Add additional_capacity
46 parameter and handle it.
47 (GTM::vector::resize_noinline): New/adapt.
48 (GTM::vector::push): New.
50 2012-01-06 Richard Henderson <rth@redhat.com>
52 * configure.tgt: Support powerpc-linux and powerpc-darwin.
53 * config/linux/powerpc/futex_bits.h: New file.
54 * config/powerpc/cacheline.h: New file.
55 * config/powerpc/sjlj.S: New file.
56 * config/powerpc/target.h: New file.
57 * config/generic/asmcfi.h (cfi_offset): New.
58 (cfi_restore, cfi_undefined): New.
60 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
63 * testsuite/libitm.c/reentrant.c: Remove xfail.
64 (thread): Pass x to pure().
65 From Patrik Marlier <patrick.marlier@gmail.com>.
67 2011-12-24 Torvald Riegel <triegel@redhat.com>
69 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
70 privatization safety if already in serial mode.
72 2011-12-24 Torvald Riegel <triegel@redhat.com>
74 * beginend.cc (GTM::gtm_thread::restart): Add and handle
75 finish_serial_upgrade parameter.
76 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
77 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
78 Don't unset reader flag.
79 (GTM::gtm_rwlock::write_upgrade_finish): New.
80 * config/posix/rwlock.cc: Same.
81 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
83 * config/posix/rwlock.h: Same.
84 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
85 flag after commit or after rollback when restarting.
87 2011-12-24 Torvald Riegel <triegel@redhat.com>
89 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
90 (GTM::gtm_thread::try_commit): Changed memory order.
91 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
93 * config/linux/x86/futex_bits.h (sys_futex0): Same.
94 * config/linux/sh/futex_bits.h (sys_futex0): Same.
95 * config/linux/futex_bits.h (sys_futex0): Same.
96 * config/linux/futex.cc (futex_wait, futex_wake): Same.
97 * config/linux/futex.h (futex_wait, futex_wake): Same.
98 * config/linux/rwlock.h (gtm_rwlock::writers,
99 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
101 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
102 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
103 gtm_rwlock::write_unlock): Fix memory orders and fences.
104 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
105 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
106 gtm_rwlock::write_unlock): Same.
107 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
108 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
109 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
111 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
112 gl_wt_dispatch::load, gl_wt_dispatch::store,
113 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
114 orders and fences. Add comments.
116 2011-12-21 Jakub Jelinek <jakub@redhat.com>
118 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
119 * Makefile.in: Regenerated.
121 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
123 * configure.tgt: Add sh* case.
124 * config/sh/target.h: New file.
125 * config/sh/sjlj.S: New file.
126 * config/linux/sh/futex_bits.h: New file.
128 2011-12-14 Richard Henderson <rth@redhat.com>
130 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
131 * config/arm/sjlj.S, config/arm/target.h: New files.
132 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
133 (cfi_rel_offset): New.
134 * config/linux/futex_bits.h: New file.
135 * config/linux/futex.cc: Include futex_bits.h here...
136 * config/linux/futex.h: ... not here.
137 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
138 * configure.ac (ARCH_AM): New conditional.
139 * Makefile.in, configure: Rebuild.
140 * configure.tgt: Handle ARM.
142 2011-12-13 Richard Henderson <rth@redhat.com>
144 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
145 signed/unsigned comparison werror.
147 * local_atomic: New file.
148 * libitm_i.h: Include it.
149 (gtm_thread::shared_state): Use atomic template.
150 * beginend.cc (GTM::gtm_clock): Use atomic template.
151 (global_tid): Use atomic template if 64-bit atomics available.
152 (gtm_thread::gtm_thread): Update shared_state access.
153 (gtm_thread::trycommit): Likewise.
154 (choose_code_path): Update global_tid access.
155 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
156 * stmlock.h (GTM::gtm_clock): Use atomic template.
157 (gtm_get_clock, gtm_inc_clock): Update accesses.
158 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
159 redundant __sync_synchronize after atomic shared_state access.
160 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
161 (gtm_rwlock::write_lock_generic): Likewise.
162 (gtm_rwlock::read_unlock): Likewise.
163 * config/alpha/target.h (atomic_read_barrier): Remove.
164 (atomic_write_barrier): Remove.
165 * config/x86/target.h (atomic_read_barrier): Remove.
166 (atomic_write_barrier): Remove.
168 2011-11-30 Richard Henderson <rth@redhat.com>
170 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
171 * beginend.c (_ITM_abortTransaction): Update to match.
172 (GTM::gtm_thread::restart): Likewise.
173 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
174 * config/x86/sjlj.S (GTM_longjmp): Likewise.
176 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
178 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
179 * Makefile.in: Regenerate.
181 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
183 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
184 * alloc_cpp.cc: Generate dummy functions if we don't
185 HAVE_ELF_STYLE_WEAKREF.
186 * eh_cpp.cc: Likewise.
187 * configure: Regenerate.
188 * aclocal.m4: Likewise.
189 * config.h.in: Likewise.
190 * Makefile.in: Likewise.
191 * testsuite/Makefile.in: Likewise.
193 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
195 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
196 __USER_LABEL_PREFIX__ for targets that use it.
197 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
198 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
199 in portability to non-elf targets.
200 (GTM_longjmp): Likewise.
201 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
204 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
206 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
207 * testsuite/libitm.c/memset-1.c: Likewise.
209 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
211 * configure: Regenerate.
213 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
216 (LIBITM_ENABLE_SYMVERS): Handle sun style.
217 * Makefile.am: Handle sun style versioning.
218 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
219 * configure: Regenerate.
220 * Makefile.in: Regenerate.
222 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
224 * config/generic/asmcfi.h: Fix comment.
225 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
226 sequence without .hidden support, error for non-ELF targets.
227 (GTM_longjmp) [__ELF__]: Only use .hidden if
228 HAVE_ATTRIBUTE_VISIBILITY.
230 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
233 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
235 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
236 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
238 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
241 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
242 * configure: Regenerate.
244 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
246 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
248 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
250 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
252 (.note.GNU-stack): Only use if __linux__.
253 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
254 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
255 * testsuite/libitm.c/reentrant.c: Likewise.
256 * testsuite/libitm.c/simple-2.c: Likewise.
257 * testsuite/libitm.c/txrelease.c: Likewise.
258 * testsuite/libitm.c++/static_ctor.C: Likewise.
260 2011-11-10 Richard Henderson <rth@redhat.com>
262 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
263 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
264 * configure.ac (ARCH_X86_AVX): New conditional.
265 * Makefile.in, configure: Rebuild.
267 2011-11-09 Richard Henderson <rth@redhat.com>
269 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
270 * configure.ac: Use it.
271 * config.h.in, configure: Rebuild.
272 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
274 2011-11-09 Richard Henderson <rth@redhat.com>
276 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
277 * config/alpha/unaligned.h: Remove file.
278 * config/generic/unaligned.h: Remove file.
279 * config/x86/unaligned.h: Remove file.
280 * config/generic/cachepage.h: Remove file.
281 * config/posix/cachepage.cc: Remove file.
282 * config/generic/cacheline.cc: Remove file.
283 * config/x86/cacheline.cc: Remove file.
284 * config/generic/cacheline.h (gtm_cacheline): Remove the
285 store_mask, copy_mask, copy_mask_wb methods.
286 * config/x86/cacheline.h: Likewise.
287 * config/alpha/cacheline.h: Fall back to generic after setting size.
288 * config/generic/tls.cc (gtm_mask_stack): Remove.
289 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
290 (GTM_vpalignr_table): Remove.
291 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
292 (GTM_pshift_table): Remove.
293 * config/libitm_i.h: Don't include cachepage.h.
294 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
295 * Makefile.in, testsuite/Makefile.in: Rebuild.
297 2011-11-09 Richard Henderson <rth@redhat.com>
299 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
300 to emit branch prediction hint.
302 * config/x86/sjlj.S: Protect elf directives with __ELF__.
303 Protect .note.GNU-stack with __linux__.
305 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
306 * configure, aclocal.m4, config.h.in: Rebuild.
307 * config/generic/asmcfi.h: New file.
308 * config/x86/sjlj.S: Use it.
310 2011-11-08 Richard Henderson <rth@redhat.com>
312 * local.cc (_ITM_LB): Use a normal call, not a function alias.
314 2011-11-08 Richard Henderson <rth@redhat.com>
316 * configure.tgt: Test correct directory for supported cpus.
318 * configure.ac: Exit if unsupported.
319 * configure: Rebuild.
320 * configure.tgt: Delete boilerplate from libgomp for unsupported
321 targets. Set UNSUPPORTED for unsupported targets.
323 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
325 * configure.tgt: Handle i386 like i[456]86.
326 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
328 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
329 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
331 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
333 * method-wbetl.cc: Update copyright notice.
340 * useraction.cc: Same.
344 * config/generic/tls.cc: Same.
345 * config/generic/cacheline.h: Same.
346 * config/generic/cachepage.h: Same.
347 * config/generic/cacheline.cc: Same.
348 * config/generic/unaligned.h: Same.
349 * config/x86/cacheline.h: Same.
350 * config/x86/cacheline.cc: Same.
351 * config/x86/unaligned.h: Same.
352 * config/alpha/cacheline.h: Same.
353 * config/alpha/unaligned.h: Same.
354 * config/alpha/sjlj.S: Same.
355 * config/posix/cachepage.cc: Same.
356 * config/linux/futex.h: Same.
357 * config/linux/alpha/futex_bits.h: Same.
359 2011-11-04 Torvald Riegel <triegel@redhat.com>
361 * libitm.texi: No cover text and invariant sections.
363 2011-11-03 Richard Henderson <rth@redhat.com>
365 * local_type_traits: New file.
366 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
368 2011-11-03 Richard Henderson <rth@redhat.com>
370 * configure.ac: Don't test for gfortran.
371 * configure: Rebuild.
373 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
374 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
376 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
378 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
379 * testsuite/libitm.c/memset-1.c: Same.
380 * testsuite/libitm.c/c.exp: Same.
381 * testsuite/lib/libitm-dg.exp: Same.
382 * testsuite/lib/libitm.exp: Same.
383 * testsuite/libitm.c++/c++.exp: Same.
385 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
387 * testsuite/config/default.exp: Update copyright date.
388 * configure.ac: Add copyright info.
389 * configure.tgt: Same.
391 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
393 * testsuite/libitm.c/reentrant.c: XFAIL.
394 * testsuite/libitm.c++/static_ctor.C: XFAIL.
396 2011-10-29 Torvald Riegel <triegel@redhat.com>
398 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
400 (_ITM_abortTransaction): Handle aborts of outer transactions.
402 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
403 * libitm.texi: Document aborts of outer transactions.
404 * testsuite/libitm.c/cancel.c: New file.
406 2011-10-19 Torvald Riegel <triegel@redhat.com>
408 * testsuite/*: Change __transaction to __transaction_atomic or
409 __transaction_relaxed.
411 2011-10-19 Torvald Riegel <triegel@redhat.com>
413 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
416 2011-10-19 Torvald Riegel <triegel@redhat.com>
418 * libitm_i.h: Add gl_wt dispatch.
419 * retry.cc (parse_default_method): Same.
420 * method-gl.cc: New file.
421 * Makefile.am: Use method-gl.cc.
422 * Makefile.in: Rebuild.
424 2011-10-19 Torvald Riegel <triegel@redhat.com>
426 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
427 safety if requested by a TM method.
428 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
429 privatization safety.
430 * method-serial.cc: Same.
432 2011-10-19 Torvald Riegel <triegel@redhat.com>
434 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
435 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
436 undolog-related member functions from *_local to *_undolog.
437 * local.cc (gtm_thread::commit_undolog): Same.
438 * beginend.cc (GTM::gtm_thread::trycommit): Same.
439 (GTM::gtm_thread::rollback): Roll back undolog before
440 dispatch-specific rollback.
442 2011-10-19 Torvald Riegel <triegel@redhat.com>
444 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
445 re-initialization of the current method group.
446 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
448 2011-10-19 Torvald Riegel <triegel@redhat.com>
450 * alloc.cc (commit_allocations_2): Do not free transaction-local
451 memory when committing a nested transaction.
453 2011-10-19 Torvald Riegel <triegel@redhat.com>
455 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
456 serial-irrevocable dispatch, not serial.
458 2011-10-19 Torvald Riegel <triegel@redhat.com>
460 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
462 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
463 * method-serial.cc: Implement begin_or_restart().
464 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
465 dispatch-specific begin_or_restart().
466 (GTM::gtm_thread::restart): Same.
468 2011-08-23 Torvald Riegel <triegel@redhat.com>
470 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
471 restarting without switching to serial mode.
472 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
473 transaction state. Choose closed-nesting alternative if available.
474 (GTM::gtm_thread::set_default_dispatch): New.
475 (parse_default_method): New.
476 (GTM::gtm_thread::number_of_threads_changed): New.
477 * method-serial.cc (GTM::serial_mg): New method group class.
478 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
480 (GTM::serial_dispatch): Same.
481 (GTM::serialirr_onwrite_dispatch): Same.
482 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
483 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
485 (GTM::gtm_thread::gtm_thread): Same.
486 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
487 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
488 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
489 choose dispatch but set state according to dispatch here.
490 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
491 (GTM::method_group): New class.
492 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
493 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
494 * libitm.texi: Document TM methods, method groups, method life cycle.
495 Rename method sets to method groups.
497 2011-08-23 Torvald Riegel <triegel@redhat.com>
499 * config/x86/tls.h: Moved to ...
500 * config/linux/x86/tls.h: ... here.
502 2011-08-23 Torvald Riegel <triegel@redhat.com>
504 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
506 * config/x86/sjlj.S: Same.
508 2011-08-19 Torvald Riegel <triegel@redhat.com>
510 * config/linux/rwlock.h: New file.
511 * config/linux/rwlock.c: New file.
512 * configure.ac: Reenable futex support (undo SVN rev 157758).
514 * configure.tgt: Same.
515 * config/linux/alpha/futex_bits.h: Same.
516 * config/linux/futex.h: Same. Return number of woken processes.
517 * config/linux/futex.cc: Same.
518 (futex_wait): Remove spinning.
519 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
520 Use __x86_64__ instead of __LP64__.
521 * aclocal.m4: Include generic futex checks.
522 * configure: Rebuild.
523 * Makefile.in: Rebuild.
524 * testsuite/Makefile.in: Rebuild.
525 * beginend.cc: Include pthread.h.
526 * config/posix/cachepage.cc: Same.
528 2011-08-12 Torvald Riegel <triegel@redhat.com>
530 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
531 (abi_disp, set_abi_disp): Move to tx's TLS slot.
533 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
535 (GTM::gtm_thread::thread_num): Removed.
536 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
537 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
538 tx-to-thread renaming.
539 * beginend.cc: Adapted to tx-to-thread renaming.
540 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
541 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
542 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
543 gtm_transaction to gtm_thread.
544 (_ITM_getThreadnum): Removed. Not supported anymore.
545 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
546 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
547 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
548 gtm_tx-to-gtm_thr renaming if necessary.
555 * alloc_cpp.cc: Same.
556 * method-serial.cc: Same.
557 * config/generic/tls.cc: Same.
558 * config/posix/rwlock.h (gtm_rwlock): Same.
559 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
561 2011-08-12 Torvald Riegel <triegel@redhat.com>
563 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
565 (gtm_rwlock::read_unlock): Same.
566 (gtm_rwlock::write_lock_generic): New. Generalized from ...
567 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
568 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
569 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
570 w_upgrade. Replaced by per-transaction flags (in shared_state).
571 Added c_confirmed_writers.
572 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
573 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
574 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
575 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
576 * beginend.cc (GTM::gtm_transaction::begin_transaction,
577 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
578 * libitm.texi: Document locking conventions and implementations in
581 2011-08-12 Torvald Riegel <triegel@redhat.com>
583 * libitm_i.h (next_tx): Add list of all threads' transaction.
584 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
585 transaction with list of transactions and ...
586 (thread_exit_handler): ... deregister here.
587 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
588 * config/x86/target.h: Same.
590 2011-08-12 Torvald Riegel <triegel@redhat.com>
592 * testsuite/libitm.c++/static_ctor.C: New file.
594 2011-08-12 Torvald Riegel <triegel@redhat.com>
596 * testsuite/libitm.c/reentrant.c: New file.
598 2011-08-12 Torvald Riegel <triegel@redhat.com>
600 * config/generic/tls.h: Remove the free list for transactions and ...
601 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
602 (GTM::gtm_transaction::operator delete): ... and release here.
603 (thread_exit_handler): New. Delete tx when thread terminates.
604 (thread_exit_init): New.
605 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
606 * testsuite/libitm.c/txrelease.c: New file.
608 2011-08-12 Torvald Riegel <triegel@redhat.com>
610 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
611 * testsuite/libitm.c/notx.c: New file.
613 2011-08-12 Torvald Riegel <triegel@redhat.com>
615 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
616 * libitm_i.h (local_tid): ... to here.
617 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
618 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
620 2011-08-12 Torvald Riegel <triegel@redhat.com>
622 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
623 serialirr_onwrite_dispatch as new default for now.
624 * method-serial.cc (serialirr_onwrite_dispatch): New.
625 (GTM::dispatch_serialirr_onwrite): New.
628 2011-08-12 Torvald Riegel <triegel@redhat.com>
630 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
631 * query.cc (_ITM_getTransactionId): There is no active transaction if
632 the current nesting level is zero.
634 2011-07-28 Torvald Riegel <triegel@redhat.com>
636 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
639 2011-07-28 Torvald Riegel <triegel@redhat.com>
641 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
642 transaction properties from the caller instead of from the
645 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
647 2011-07-28 Torvald Riegel <triegel@redhat.com>
649 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
650 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
652 * method-serial.cc: Same.
653 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
654 flat nesting as default, and closed nesting on demand.
655 (GTM::gtm_transaction::rollback): Same.
656 (_ITM_abortTransaction): Same.
657 (GTM::gtm_transaction::restart): Same.
658 (GTM::gtm_transaction::trycommit): Same.
659 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
660 (choose_code_path): New.
661 (GTM::gtm_transaction_cp::save): New.
662 (GTM::gtm_transaction_cp::commit): New.
663 * query.cc (_ITM_inTransaction): Support flat nesting.
664 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
665 (GTM::gtm_transaction): Support flat and closed nesting.
666 * alloc.cc (commit_allocations_2): New.
667 (commit_cb_data): New helper struct.
668 (GTM::gtm_transaction::commit_allocations): Handle nested
670 * libitm.texi: Update user action section, add description of nesting.
672 2011-07-28 Torvald Riegel <triegel@redhat.com>
674 * libitm_i.h: Add closed nesting as restart reason.
675 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
677 2011-07-28 Torvald Riegel <triegel@redhat.com>
679 * useraction.cc: Use vector instead of list to store actions.
680 Also support partial rollbacks for closed nesting.
681 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
684 2011-07-28 Torvald Riegel <triegel@redhat.com>
686 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
687 closed_nesting flags, as well as a closed nesting alternative.
688 * method-serial.cc: Same.
689 (serial_dispatch): Renamed to serialirr_dispatch.
690 (GTM::dispatch_serialirr): Same.
691 (serial_dispatch_ul): Renamed to serial_dispatch.
692 (GTM::dispatch_serial): Same.
694 2011-07-28 Torvald Riegel <triegel@redhat.com>
696 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
698 2011-07-28 Torvald Riegel <triegel@redhat.com>
700 * aatree.h (aa_tree::remove): New.
701 (aa_tree::operator new): Add placement new.
703 2011-07-02 Torvald Riegel <triegel@redhat.com>
705 * containers.h: New file.
706 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
707 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
708 * common.h: ... to here.
709 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
712 2011-06-30 Torvald Riegel <triegel@redhat.com>
714 * libitm_i.h (STATE_ABORTING): Remove.
715 * beginend.cc (_ITM_abortTransaction): Same.
716 (GTM::gtm_transaction::trycommit_and_finalize): Same.
717 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
718 (_ITM_rollbackTransaction): Remove.
721 * libitm.texi: Document these ABI changes.
723 2011-06-30 Torvald Riegel <triegel@redhat.com>
725 * libitm.texi: New file.
726 * Makefile.am: Add libitm.texi.
727 * Makefile.in: Rebuild.
729 2011-06-30 Torvald Riegel <triegel@redhat.com>
731 * libitm_i.h: Move parts to common.h and dispatch.h.
732 * common.h: New file.
733 * dispatch.h: New file, new dispatch class.
734 Rename GTM::abi_dispatch::lock_type to ls_modifier.
735 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
736 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
737 decision to retry.cc.
738 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
740 (GTM::gtm_transaction::decide_begin_dispatch): Same.
741 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
743 * barrier.cc: Use new barriers definitions.
744 (abi_dispatch::memmove_overlap_check): New.
745 * config/x86/x86_sse.cc: Same.
746 * config/x86/x86_avx.cc: Same.
747 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
749 * Makefile.in: Rebuild.
750 * method-readonly.cc: Remove.
751 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
752 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
754 2011-06-30 Torvald Riegel <triegel@redhat.com>
756 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
757 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
758 * testsuite/libitm.c/dropref-2.c: Same.
759 * testsuite/libitm.c/dropref.c: Same.
761 2011-06-30 Torvald Riegel <triegel@redhat.com>
763 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
764 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
765 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
769 * config/generic/tls.h: Same.
770 * config/x86/tls.h: Same.
774 * method-readonly.cc: Same.
775 * method-serial.cc: Same.
776 * method-wbetl.cc: Same.
779 2011-03-03 Richard Henderson <rth@redhat.com>
781 * config/posix/rwlock.cc (write_upgrade): Add missing case.
782 From Patrik Marlier <patrick.marlier@unine.ch>.
784 2011-02-03 Richard Henderson <rth@redhat.com>
786 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
787 * configure.ac: Use it.
788 * configure, config.h.in: Rebuild.
789 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
790 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
791 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
792 * libitm.map: Use wildcards to match size_t mangling.
794 2010-12-14 Richard Henderson <rth@redhat.com>
796 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
797 blocks of TIDs per thread.
798 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
799 (setup_gtm_thr): Return the thread structure.
800 * config/x86/tls.h (setup_gtm_thr): Likewise.
802 2010-12-14 Richard Henderson <rth@redhat.com>
804 * clone.cc (table_lock): Remove.
805 (find_clone): Don't take it.
806 (ExcludeTransaction): New helper class.
807 (_ITM_registerTMCloneTable): Use it.
808 (_ITM_deregisterTMCloneTable): Likewise.
810 2010-12-14 Richard Henderson <rth@redhat.com>
812 * config/x86/tls.h: New file.
814 2010-07-15 Richard Henderson <rth@redhat.com>
816 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
817 * Makefile.in: Rebuild.
819 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
821 * method-wbetl.cc (trydropreference): Fix source line.
823 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
825 * libitm.h: Add comment.
826 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
828 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
830 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
831 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
832 available, use pthread mutexes.
833 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
834 * config.h.in: Regenerate.
835 * configure: Regenerate.
837 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
839 * libitm.h (ITM_PURE): Define.
840 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
842 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
844 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
845 (validate): Add comment.
846 (trydropreference): New.
847 * method-readonly.cc (class readonly_dispatch): Add
849 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
850 Call trydropreference().
851 * libitm.h (_ITM_dropReferences): Remove const attribute.
852 * method-serial.cc (class serial_dispatch): Add trydropreference.
853 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
855 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
857 * memcpy.cc (do_memcpy): Comment.
859 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
861 * barrier.tpl: Add comments throughout.
863 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
865 * method-wbetl.cc (struct w_entry): Add comments.
869 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
871 * alloc_c.cc (_ITM_dropReferences): New.
872 * libitm.map (_ITM_dropReferences): Add.
873 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
874 * libitm_i.h (struct gtm_transaction): Declare
875 drop_references_allocations and drop_references_local.
876 * local.cc (rollback_local): Ignore memory when applicable.
877 (drop_references_local): New.
879 2010-06-23 Richard Henderson <rth@redhat.com>
881 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
882 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
883 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
884 * config/alpha/target.h: Likewise.
885 * config/generic/tls.cc (gtm_mask_stack): Use it.
887 2010-06-23 Richard Henderson <rth@redhat.com>
889 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
890 a mutex instead of trying a lock-free compare-and-swap on the list.
891 (gtm_cacheline_page::operator delete): Likewise.
893 2010-06-16 Richard Henderson <rth@redhat.com>
895 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
896 that overlap the libitm stack.
897 * barrier.tpl: Mark incoming stack.
898 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
899 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
900 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
901 * memcpy.cc, memset.cc: Likewise.
902 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
903 * config/generic/tls.h (gtm_thread): Add stack_top member.
904 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
905 * libitm_i.h (gtm_mask_stack): Declare.
906 * config/generic/tls.cc: New file.
907 * Makefile.am (libitm_la_SOURCES): Add it.
908 (AM_CXXFLAGS): Turn off exceptions.
909 * Makefile.in: Rebuild.
911 2010-06-16 Richard Henderson <rth@redhat.com>
913 * alloc.cc (struct gtm_alloc_action): Move definition ...
914 * libitm_i.h: ... here.
915 (class gtm_transaction): Declare new and delete.
916 * beginend.cc (alloc_tx): Reformulate as operator new.
917 (free_tx): Reformulate as operator delete.
918 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
920 2010-06-11 Richard Henderson <rth@redhat.com>
922 * clone.cc (clone_entry_compare): Fix typo.
923 From Patrik Marlier <patrick.marlier@unine.ch>.
925 2010-05-13 Richard Henderson <rth@redhat.com>
927 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
930 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
932 * libitm_i.h (struct gtm_transaction): Remove
934 (record_allocation): Remove size parameter.
935 * libitm.map (_ITM_realloc): Remove.
936 * alloc_c.cc (_ITM_realloc): Remove.
937 (_ITM_malloc): Remove size argument to record_allocation.
939 * alloc_cpp.cc (_ZGTtnwm): Same.
940 (_ZGTtnwmRKSt9nothrow_t): Same.
942 (_ZGTtnamRKSt9nothrow_t): Same.
943 * alloc.cc (struct gtm_alloc_action): Remove size.
944 (get_allocation_size): Remove.
945 (commit_allocations): Add comment.
946 (record_allocation): Remove size parameter.
947 (forget_allocation): Remove set of size.
949 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
951 * Makefile.am (abi_version): New.
952 (AM_CXXFLAGS): Pass abi_version.
953 * Makefile.in: Regenerate.
954 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
956 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
958 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
959 _ITM_getTMCloneOrIrrevokable.
960 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
961 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
963 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
965 * configure.ac: Remove Linux futex support.
966 * configure.tgt (config_path): Same.
968 * config/linux: Remove entire directory.
969 * configure: Rebuild.
970 * Makefile.in: Rebuild.
971 * testsuite/Makefile.in: Rebuild.
973 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
975 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
976 switching to serial mode.
977 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
979 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
981 * configure.tgt: Add emacs -*- tags.
984 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
986 * Makefile.am: Rename serial.cc to method-serial.cc.
987 * Makefile.in: Regenerate with automake 1.11.1.
988 * testsuite/Makefile.in: Same.
989 * aclocal.m4: Regenerate with aclocal 1.11.1.
990 * method-serial.cc: Rename from serial.cc.
991 * libitm_i.h (struct gtm_transaction): Update comment on
994 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
996 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
997 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
999 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1001 * configure: Rebuild.
1003 2009-11-12 Richard Henderson <rth@redhat.com>
1005 * Rewrite everything in C++.
1007 2009-11-03 Richard Henderson <rth@redhat.com>
1009 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1010 * Makefile.am (libitm_la_SOURCES): Add them.
1011 * configure.ac (ARCH_X86): New conditional.
1012 * Makefile.in, configure: Rebuild.
1013 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1014 Move futex setup into "other system configury" case.
1015 * local.c (rollback_local): Merge into ...
1016 (GTM_rollback_local): ... here.
1017 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1018 (_ITM_LB): Define as an alias to GTM_LB.
1020 2009-11-03 Richard Henderson <rth@redhat.com>
1022 * method-readonly.c: New file.
1023 * Makefile.am (libitm_la_SOURCES): Add it.
1024 * Makefile.in: Rebuild.
1025 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1026 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1027 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1028 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1029 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1030 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1031 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1032 gtm_get_clock, gtm_inc_clock): New.
1033 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1034 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1035 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1036 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1037 replace uses with new libitm_i.h symbols.
1038 (dispatch_wbetl): Rename from wbetl_dispatch.
1039 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1040 away from dispatch_readonly; abort if the beginTransaction call
1041 asserted that the transaction was readonly.
1043 2009-11-03 Richard Henderson <rth@redhat.com>
1045 * memset.c: New file.
1046 * Makefile.am (libitm_la_SOURCES): Add it.
1047 * Makefile.in: Rebuild.
1048 * testsuite/libitm.c/memset-1.c: New.
1050 2009-11-03 Richard Henderson <rth@redhat.com>
1052 * dispatch.c: Remove file.
1053 * useraction.c (struct gtm_user_action): Move from libitm.h.
1054 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1055 (serial_memset, serial_memmove, serial_memcpy): Remove.
1056 (serial_W*, serial_R*): Remove.
1057 (serial_dispatch): Update to match.
1058 * configure.ac: Move Werror down below configure checks. Don't
1059 check for sys/loadavg.h, do check for malloc.h. Don't check for
1060 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1061 Use GCC_AC_FUNC_MMAP_BLACKLIST
1062 * libitm.h: Split out all internal items to...
1063 * libitm_i.h: ... here. New file.
1064 * copymask.c: New file.
1065 * local.c (struct gtm_local_undo): Move from libitm.h.
1066 (GTM_alloc_local): Rename from alloc_local; export.
1067 * memcpy.c: New file.
1068 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1069 * config/posix/page.c: New file.
1070 * config/posix/target_tls.h: Remove file.
1071 * barrier.c: New file.
1072 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1074 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1075 * method-wbetl.c: Rewrite for new cacheline methods.
1076 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1078 * config/alpha/sjlj.S: Fix typo.
1079 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1080 * config/alpha/copymask.c: New file.
1081 * config/alpha/target.h (CACHELINE_SIZE): New.
1082 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1084 * config/x86/target_i.h: Copy functions from x86/target.h.
1085 * config/x86/copymask.c: New file.
1086 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1087 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1088 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1089 * config/x86/target_tls.h: Move contents to target_i.h.
1091 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1092 * testsuite/libitm.c/memcpy-1.c: New.
1094 2009-10-22 Richard Henderson <rth@redhat.com>
1096 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1097 (AM_CCASFLAGS): New.
1098 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1099 saving/restoring _AC_ARG_VAR_PRECIOUS.
1100 * Makefile.in, aclocal.m4, config.h.in, configure,
1101 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1103 2009-10-22 Richard Henderson <rth@redhat.com>
1105 * testsuite/*: Update for new compiler syntax.
1107 2009-10-21 Richard Henderson <rth@redhat.com>
1109 * libitm.h (_ITM_abortReason): Add outerAbort.
1111 2009-08-03 Richard Henderson <rth@redhat.com>
1113 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1114 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1115 * method-wbetl.c (struct w_entry): Remove mask.
1116 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1119 2009-07-22 Richard Henderson <rth@redhat.com>
1121 * eh_cpp.c: New file.
1122 * Makefile.am (libitm_la_SOURCES): Add it.
1123 * Makefile.in: Rebuild.
1124 * beginend.c (GTM_rollback_transaction): Undo exception state.
1125 (GTM_trycommit_transaction): Mark inline.
1126 (GTM_trycommit_and_finalize_transaction): Split out from ...
1127 (_ITM_commitTransaction): ... here.
1128 (_ITM_commitTransactionEH): New function.
1129 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1130 cxa_unthrown, eh_in_flight; reorder.
1132 * testsuite/libitm.c++/c++.exp: New.
1133 * testsuite/libitm.c++/eh-1.C: New.
1135 * aatree.c (aa_free): Remove REGPARM.
1136 * aatree.h: Remove all REGPARM.
1138 2009-07-18 Richard Henderson <rth@redhat.com>
1140 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1141 * Makefile.am (libitm_la_SOURCES): Add them.
1142 * Makefile.in: Rebuild.
1143 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1144 (GTM_trycommit_transaction): Likewise.
1145 * libitm.h: Include aatree.h
1146 (struct gtm_alloc_action): New.
1147 (struct gtm_transaction): Add alloc_actions.
1148 (GTM_record_allocation, GTM_forget_allocation): Declare.
1149 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1150 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1151 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1152 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1153 _ZGTtdaPvRKSt9nothrow_t): Export.
1155 2009-07-18 Richard Henderson <rth@redhat.com>
1157 * target_tls.h: Move ...
1158 * config/posix/target_tls.h: ... here.
1160 2009-07-07 Richard Henderson <rth@redhat.com>
1162 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1164 2009-07-07 Richard Henderson <rth@redhat.com>
1168 2009-07-07 Richard Henderson <rth@redhat.com>
1170 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1171 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1173 * configure.tgt: Don't use -ftls-model for x86 linux.
1174 * libitm.h: Include target.h after standard includes.
1175 (_gtm_thr): Rename from gtm_thr.
1176 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1177 (gtm_disp, set_gtm_disp): New.
1178 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1179 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1180 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1182 2009-07-07 Richard Henderson <rth@redhat.com>
1184 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1186 2009-07-06 Richard Henderson <rth@redhat.com>
1188 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1189 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1190 (_ITM_beginTransaction): Take variadic arguments.
1191 (_ITM_registerThrownObject): Declare.
1192 * beginend.c, serial.c: Update.
1193 * libitm.map: Add _ITM_registerThrownObject.
1195 2009-01-28 Richard Henderson <rth@redhat.com>
1197 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1198 * Makefile.in: Rebuild.
1199 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1200 (GTM_restart_transaction): Fix uninstrumented code check.
1201 * retry.c (GTM_decide_retry_strategy): Add serial check.
1202 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1203 automatically go irrevokable when in serial mode.
1204 * clone.c: New file.
1205 * libitm.h, libitm.map: Update.
1207 2009-01-27 Richard Henderson <rth@redhat.com>
1209 * Makefile.am (LTCCASCOMPILE): Define.
1210 (libitm_la_SOURCES): Add methid-wbetl.c.
1211 * testsuite/Makefile.am: New
1212 * configure.ac: Add testsuite/Makefile.
1213 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1214 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1215 (_ITM_abortTransaction): Finalize implementation method; pass
1216 transaction properties to longjmp.
1217 (GTM_restart_transaction): Split out from ...
1218 (_ITM_commitTransaction): ... here.
1219 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1220 Move to config/x86/target.h.
1221 * config/linux/alpha/futex_bits.h: New.
1222 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1223 * config/x86/target.h: Disable target types for 32-bit.
1224 * config/alpha/sjlj.S, config/alpha/target.h: New.
1225 * libitm.h (struct gtm_dispatch): Add init, fini.
1226 (enum restart_reason): New.
1227 (struct gtm_transaction): Add method and restarts.
1228 * retry.c (GTM_decide_retry_strategy): Implement.
1229 * serial.c (serial_init, serial_fini): New.
1230 (GTM_serialmode): Finialize outgoing method.
1231 * method-wbetl.c: New.
1233 2008-12-09 Richard Henderson <rth@redhat.com>
1235 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1236 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1237 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1238 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1239 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1240 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1241 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1242 * serial.c (serial_R##T, serial_W##T): Likewise.
1244 2008-11-21 Richard Henderson <rth@redhat.com>