1 2012-01-24 Torvald Riegel <triegel@redhat.com>
3 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
6 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
8 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
10 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
11 offset values. Do not copy return address. Decrement stack
13 (GTM_longjump) [__x86_64__]: Update offset values.
15 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
18 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
19 the first function argument to %eax.
21 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23 * libitm.h (_ITM_getThreadnum): Remove.
24 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
26 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28 * clearcap.map: New file.
29 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
30 * configure.ac: Call it.
31 Clear HWCAP_LDFLAGS if defaulting to -mavx.
32 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
33 * configure: Regenerate.
34 * Makefile.in: Regenerate.
35 * testsuite/Makefile.in: Regenerate.
37 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
41 include, exclude options.
43 2012-01-14 Torvald Riegel <triegel@redhat.com>
45 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
47 * containers.h (GTM::vector::set_size): New.
49 2012-01-14 Torvald Riegel <triegel@redhat.com>
52 * config/generic/tls.h (GTM::mask_stack_top): New.
53 (GTM::mask_stack_bottom): Declare.
54 * config/generic/tls.c (GTM::mask_stack_bottom): New.
55 * local.cc (gtm_undolog::rollback): Filter out any updates that
56 overlap the libitm stack. Add current transaction as parameter.
57 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
58 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
59 * testsuite/libitm.c/stackundo.c: New test.
61 2012-01-10 Richard Henderson <rth@redhat.com>
63 * libitm_i.h (_Unwind_DeleteException): Declare weak.
64 * eh_cpp.cc (_Unwind_DeleteException): Define for
65 !HAVE_ELF_STYLE_WEAKREF.
67 2012-01-08 Torvald Riegel <triegel@redhat.com>
69 * local.cc (GTM_LB): Use GTM::gtm_undolog.
70 (GTM::gtm_thread::drop_references_undolog): Remove.
71 (GTM::gtm_thread::commit_undolog,
72 GTM::gtm_thread::rollback_undolog): Move to ...
73 * libitm_i.h (GTM::gtm_undolog): ...here. New.
74 (GTM::gtm_undolog_entry): Remove.
75 (GTM::gtm_thread): Adapt.
76 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
77 (GTM::gtm_thread::trycommit): Adapt.
78 * method-serial.cc (serial_dispatch::log): Adapt.
79 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
80 (gl_wt_dispatch::store): Fix likely/unlikely.
81 * containers.h (GTM::vector::resize): Add additional_capacity
82 parameter and handle it.
83 (GTM::vector::resize_noinline): New/adapt.
84 (GTM::vector::push): New.
86 2012-01-06 Richard Henderson <rth@redhat.com>
88 * configure.tgt: Support powerpc-linux and powerpc-darwin.
89 * config/linux/powerpc/futex_bits.h: New file.
90 * config/powerpc/cacheline.h: New file.
91 * config/powerpc/sjlj.S: New file.
92 * config/powerpc/target.h: New file.
93 * config/generic/asmcfi.h (cfi_offset): New.
94 (cfi_restore, cfi_undefined): New.
96 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
99 * testsuite/libitm.c/reentrant.c: Remove xfail.
100 (thread): Pass x to pure().
101 From Patrik Marlier <patrick.marlier@gmail.com>.
103 2011-12-24 Torvald Riegel <triegel@redhat.com>
105 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
106 privatization safety if already in serial mode.
108 2011-12-24 Torvald Riegel <triegel@redhat.com>
110 * beginend.cc (GTM::gtm_thread::restart): Add and handle
111 finish_serial_upgrade parameter.
112 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
113 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
114 Don't unset reader flag.
115 (GTM::gtm_rwlock::write_upgrade_finish): New.
116 * config/posix/rwlock.cc: Same.
117 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
119 * config/posix/rwlock.h: Same.
120 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
121 flag after commit or after rollback when restarting.
123 2011-12-24 Torvald Riegel <triegel@redhat.com>
125 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
126 (GTM::gtm_thread::try_commit): Changed memory order.
127 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
129 * config/linux/x86/futex_bits.h (sys_futex0): Same.
130 * config/linux/sh/futex_bits.h (sys_futex0): Same.
131 * config/linux/futex_bits.h (sys_futex0): Same.
132 * config/linux/futex.cc (futex_wait, futex_wake): Same.
133 * config/linux/futex.h (futex_wait, futex_wake): Same.
134 * config/linux/rwlock.h (gtm_rwlock::writers,
135 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
137 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
138 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
139 gtm_rwlock::write_unlock): Fix memory orders and fences.
140 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
141 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
142 gtm_rwlock::write_unlock): Same.
143 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
144 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
145 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
147 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
148 gl_wt_dispatch::load, gl_wt_dispatch::store,
149 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
150 orders and fences. Add comments.
152 2011-12-21 Jakub Jelinek <jakub@redhat.com>
154 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
155 * Makefile.in: Regenerated.
157 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
159 * configure.tgt: Add sh* case.
160 * config/sh/target.h: New file.
161 * config/sh/sjlj.S: New file.
162 * config/linux/sh/futex_bits.h: New file.
164 2011-12-14 Richard Henderson <rth@redhat.com>
166 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
167 * config/arm/sjlj.S, config/arm/target.h: New files.
168 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
169 (cfi_rel_offset): New.
170 * config/linux/futex_bits.h: New file.
171 * config/linux/futex.cc: Include futex_bits.h here...
172 * config/linux/futex.h: ... not here.
173 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
174 * configure.ac (ARCH_AM): New conditional.
175 * Makefile.in, configure: Rebuild.
176 * configure.tgt: Handle ARM.
178 2011-12-13 Richard Henderson <rth@redhat.com>
180 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
181 signed/unsigned comparison werror.
183 * local_atomic: New file.
184 * libitm_i.h: Include it.
185 (gtm_thread::shared_state): Use atomic template.
186 * beginend.cc (GTM::gtm_clock): Use atomic template.
187 (global_tid): Use atomic template if 64-bit atomics available.
188 (gtm_thread::gtm_thread): Update shared_state access.
189 (gtm_thread::trycommit): Likewise.
190 (choose_code_path): Update global_tid access.
191 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
192 * stmlock.h (GTM::gtm_clock): Use atomic template.
193 (gtm_get_clock, gtm_inc_clock): Update accesses.
194 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
195 redundant __sync_synchronize after atomic shared_state access.
196 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
197 (gtm_rwlock::write_lock_generic): Likewise.
198 (gtm_rwlock::read_unlock): Likewise.
199 * config/alpha/target.h (atomic_read_barrier): Remove.
200 (atomic_write_barrier): Remove.
201 * config/x86/target.h (atomic_read_barrier): Remove.
202 (atomic_write_barrier): Remove.
204 2011-11-30 Richard Henderson <rth@redhat.com>
206 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
207 * beginend.c (_ITM_abortTransaction): Update to match.
208 (GTM::gtm_thread::restart): Likewise.
209 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
210 * config/x86/sjlj.S (GTM_longjmp): Likewise.
212 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
214 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
215 * Makefile.in: Regenerate.
217 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
219 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
220 * alloc_cpp.cc: Generate dummy functions if we don't
221 HAVE_ELF_STYLE_WEAKREF.
222 * eh_cpp.cc: Likewise.
223 * configure: Regenerate.
224 * aclocal.m4: Likewise.
225 * config.h.in: Likewise.
226 * Makefile.in: Likewise.
227 * testsuite/Makefile.in: Likewise.
229 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
231 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
232 __USER_LABEL_PREFIX__ for targets that use it.
233 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
234 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
235 in portability to non-elf targets.
236 (GTM_longjmp): Likewise.
237 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
240 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
242 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
243 * testsuite/libitm.c/memset-1.c: Likewise.
245 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
247 * configure: Regenerate.
249 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
252 (LIBITM_ENABLE_SYMVERS): Handle sun style.
253 * Makefile.am: Handle sun style versioning.
254 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
255 * configure: Regenerate.
256 * Makefile.in: Regenerate.
258 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
260 * config/generic/asmcfi.h: Fix comment.
261 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
262 sequence without .hidden support, error for non-ELF targets.
263 (GTM_longjmp) [__ELF__]: Only use .hidden if
264 HAVE_ATTRIBUTE_VISIBILITY.
266 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
269 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
271 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
272 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
274 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
277 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
278 * configure: Regenerate.
280 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
282 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
284 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
288 (.note.GNU-stack): Only use if __linux__.
289 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
290 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
291 * testsuite/libitm.c/reentrant.c: Likewise.
292 * testsuite/libitm.c/simple-2.c: Likewise.
293 * testsuite/libitm.c/txrelease.c: Likewise.
294 * testsuite/libitm.c++/static_ctor.C: Likewise.
296 2011-11-10 Richard Henderson <rth@redhat.com>
298 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
299 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
300 * configure.ac (ARCH_X86_AVX): New conditional.
301 * Makefile.in, configure: Rebuild.
303 2011-11-09 Richard Henderson <rth@redhat.com>
305 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
306 * configure.ac: Use it.
307 * config.h.in, configure: Rebuild.
308 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
310 2011-11-09 Richard Henderson <rth@redhat.com>
312 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
313 * config/alpha/unaligned.h: Remove file.
314 * config/generic/unaligned.h: Remove file.
315 * config/x86/unaligned.h: Remove file.
316 * config/generic/cachepage.h: Remove file.
317 * config/posix/cachepage.cc: Remove file.
318 * config/generic/cacheline.cc: Remove file.
319 * config/x86/cacheline.cc: Remove file.
320 * config/generic/cacheline.h (gtm_cacheline): Remove the
321 store_mask, copy_mask, copy_mask_wb methods.
322 * config/x86/cacheline.h: Likewise.
323 * config/alpha/cacheline.h: Fall back to generic after setting size.
324 * config/generic/tls.cc (gtm_mask_stack): Remove.
325 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
326 (GTM_vpalignr_table): Remove.
327 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
328 (GTM_pshift_table): Remove.
329 * config/libitm_i.h: Don't include cachepage.h.
330 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
331 * Makefile.in, testsuite/Makefile.in: Rebuild.
333 2011-11-09 Richard Henderson <rth@redhat.com>
335 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
336 to emit branch prediction hint.
338 * config/x86/sjlj.S: Protect elf directives with __ELF__.
339 Protect .note.GNU-stack with __linux__.
341 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
342 * configure, aclocal.m4, config.h.in: Rebuild.
343 * config/generic/asmcfi.h: New file.
344 * config/x86/sjlj.S: Use it.
346 2011-11-08 Richard Henderson <rth@redhat.com>
348 * local.cc (_ITM_LB): Use a normal call, not a function alias.
350 2011-11-08 Richard Henderson <rth@redhat.com>
352 * configure.tgt: Test correct directory for supported cpus.
354 * configure.ac: Exit if unsupported.
355 * configure: Rebuild.
356 * configure.tgt: Delete boilerplate from libgomp for unsupported
357 targets. Set UNSUPPORTED for unsupported targets.
359 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361 * configure.tgt: Handle i386 like i[456]86.
362 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
364 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
365 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
367 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
369 * method-wbetl.cc: Update copyright notice.
376 * useraction.cc: Same.
380 * config/generic/tls.cc: Same.
381 * config/generic/cacheline.h: Same.
382 * config/generic/cachepage.h: Same.
383 * config/generic/cacheline.cc: Same.
384 * config/generic/unaligned.h: Same.
385 * config/x86/cacheline.h: Same.
386 * config/x86/cacheline.cc: Same.
387 * config/x86/unaligned.h: Same.
388 * config/alpha/cacheline.h: Same.
389 * config/alpha/unaligned.h: Same.
390 * config/alpha/sjlj.S: Same.
391 * config/posix/cachepage.cc: Same.
392 * config/linux/futex.h: Same.
393 * config/linux/alpha/futex_bits.h: Same.
395 2011-11-04 Torvald Riegel <triegel@redhat.com>
397 * libitm.texi: No cover text and invariant sections.
399 2011-11-03 Richard Henderson <rth@redhat.com>
401 * local_type_traits: New file.
402 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
404 2011-11-03 Richard Henderson <rth@redhat.com>
406 * configure.ac: Don't test for gfortran.
407 * configure: Rebuild.
409 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
410 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
412 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
414 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
415 * testsuite/libitm.c/memset-1.c: Same.
416 * testsuite/libitm.c/c.exp: Same.
417 * testsuite/lib/libitm-dg.exp: Same.
418 * testsuite/lib/libitm.exp: Same.
419 * testsuite/libitm.c++/c++.exp: Same.
421 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
423 * testsuite/config/default.exp: Update copyright date.
424 * configure.ac: Add copyright info.
425 * configure.tgt: Same.
427 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
429 * testsuite/libitm.c/reentrant.c: XFAIL.
430 * testsuite/libitm.c++/static_ctor.C: XFAIL.
432 2011-10-29 Torvald Riegel <triegel@redhat.com>
434 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
436 (_ITM_abortTransaction): Handle aborts of outer transactions.
438 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
439 * libitm.texi: Document aborts of outer transactions.
440 * testsuite/libitm.c/cancel.c: New file.
442 2011-10-19 Torvald Riegel <triegel@redhat.com>
444 * testsuite/*: Change __transaction to __transaction_atomic or
445 __transaction_relaxed.
447 2011-10-19 Torvald Riegel <triegel@redhat.com>
449 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
452 2011-10-19 Torvald Riegel <triegel@redhat.com>
454 * libitm_i.h: Add gl_wt dispatch.
455 * retry.cc (parse_default_method): Same.
456 * method-gl.cc: New file.
457 * Makefile.am: Use method-gl.cc.
458 * Makefile.in: Rebuild.
460 2011-10-19 Torvald Riegel <triegel@redhat.com>
462 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
463 safety if requested by a TM method.
464 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
465 privatization safety.
466 * method-serial.cc: Same.
468 2011-10-19 Torvald Riegel <triegel@redhat.com>
470 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
471 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
472 undolog-related member functions from *_local to *_undolog.
473 * local.cc (gtm_thread::commit_undolog): Same.
474 * beginend.cc (GTM::gtm_thread::trycommit): Same.
475 (GTM::gtm_thread::rollback): Roll back undolog before
476 dispatch-specific rollback.
478 2011-10-19 Torvald Riegel <triegel@redhat.com>
480 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
481 re-initialization of the current method group.
482 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
484 2011-10-19 Torvald Riegel <triegel@redhat.com>
486 * alloc.cc (commit_allocations_2): Do not free transaction-local
487 memory when committing a nested transaction.
489 2011-10-19 Torvald Riegel <triegel@redhat.com>
491 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
492 serial-irrevocable dispatch, not serial.
494 2011-10-19 Torvald Riegel <triegel@redhat.com>
496 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
498 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
499 * method-serial.cc: Implement begin_or_restart().
500 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
501 dispatch-specific begin_or_restart().
502 (GTM::gtm_thread::restart): Same.
504 2011-08-23 Torvald Riegel <triegel@redhat.com>
506 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
507 restarting without switching to serial mode.
508 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
509 transaction state. Choose closed-nesting alternative if available.
510 (GTM::gtm_thread::set_default_dispatch): New.
511 (parse_default_method): New.
512 (GTM::gtm_thread::number_of_threads_changed): New.
513 * method-serial.cc (GTM::serial_mg): New method group class.
514 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
516 (GTM::serial_dispatch): Same.
517 (GTM::serialirr_onwrite_dispatch): Same.
518 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
519 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
521 (GTM::gtm_thread::gtm_thread): Same.
522 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
523 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
524 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
525 choose dispatch but set state according to dispatch here.
526 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
527 (GTM::method_group): New class.
528 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
529 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
530 * libitm.texi: Document TM methods, method groups, method life cycle.
531 Rename method sets to method groups.
533 2011-08-23 Torvald Riegel <triegel@redhat.com>
535 * config/x86/tls.h: Moved to ...
536 * config/linux/x86/tls.h: ... here.
538 2011-08-23 Torvald Riegel <triegel@redhat.com>
540 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
542 * config/x86/sjlj.S: Same.
544 2011-08-19 Torvald Riegel <triegel@redhat.com>
546 * config/linux/rwlock.h: New file.
547 * config/linux/rwlock.c: New file.
548 * configure.ac: Reenable futex support (undo SVN rev 157758).
550 * configure.tgt: Same.
551 * config/linux/alpha/futex_bits.h: Same.
552 * config/linux/futex.h: Same. Return number of woken processes.
553 * config/linux/futex.cc: Same.
554 (futex_wait): Remove spinning.
555 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
556 Use __x86_64__ instead of __LP64__.
557 * aclocal.m4: Include generic futex checks.
558 * configure: Rebuild.
559 * Makefile.in: Rebuild.
560 * testsuite/Makefile.in: Rebuild.
561 * beginend.cc: Include pthread.h.
562 * config/posix/cachepage.cc: Same.
564 2011-08-12 Torvald Riegel <triegel@redhat.com>
566 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
567 (abi_disp, set_abi_disp): Move to tx's TLS slot.
569 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
571 (GTM::gtm_thread::thread_num): Removed.
572 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
573 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
574 tx-to-thread renaming.
575 * beginend.cc: Adapted to tx-to-thread renaming.
576 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
577 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
578 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
579 gtm_transaction to gtm_thread.
580 (_ITM_getThreadnum): Removed. Not supported anymore.
581 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
582 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
583 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
584 gtm_tx-to-gtm_thr renaming if necessary.
591 * alloc_cpp.cc: Same.
592 * method-serial.cc: Same.
593 * config/generic/tls.cc: Same.
594 * config/posix/rwlock.h (gtm_rwlock): Same.
595 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
597 2011-08-12 Torvald Riegel <triegel@redhat.com>
599 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
601 (gtm_rwlock::read_unlock): Same.
602 (gtm_rwlock::write_lock_generic): New. Generalized from ...
603 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
604 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
605 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
606 w_upgrade. Replaced by per-transaction flags (in shared_state).
607 Added c_confirmed_writers.
608 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
609 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
610 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
611 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
612 * beginend.cc (GTM::gtm_transaction::begin_transaction,
613 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
614 * libitm.texi: Document locking conventions and implementations in
617 2011-08-12 Torvald Riegel <triegel@redhat.com>
619 * libitm_i.h (next_tx): Add list of all threads' transaction.
620 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
621 transaction with list of transactions and ...
622 (thread_exit_handler): ... deregister here.
623 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
624 * config/x86/target.h: Same.
626 2011-08-12 Torvald Riegel <triegel@redhat.com>
628 * testsuite/libitm.c++/static_ctor.C: New file.
630 2011-08-12 Torvald Riegel <triegel@redhat.com>
632 * testsuite/libitm.c/reentrant.c: New file.
634 2011-08-12 Torvald Riegel <triegel@redhat.com>
636 * config/generic/tls.h: Remove the free list for transactions and ...
637 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
638 (GTM::gtm_transaction::operator delete): ... and release here.
639 (thread_exit_handler): New. Delete tx when thread terminates.
640 (thread_exit_init): New.
641 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
642 * testsuite/libitm.c/txrelease.c: New file.
644 2011-08-12 Torvald Riegel <triegel@redhat.com>
646 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
647 * testsuite/libitm.c/notx.c: New file.
649 2011-08-12 Torvald Riegel <triegel@redhat.com>
651 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
652 * libitm_i.h (local_tid): ... to here.
653 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
654 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
656 2011-08-12 Torvald Riegel <triegel@redhat.com>
658 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
659 serialirr_onwrite_dispatch as new default for now.
660 * method-serial.cc (serialirr_onwrite_dispatch): New.
661 (GTM::dispatch_serialirr_onwrite): New.
664 2011-08-12 Torvald Riegel <triegel@redhat.com>
666 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
667 * query.cc (_ITM_getTransactionId): There is no active transaction if
668 the current nesting level is zero.
670 2011-07-28 Torvald Riegel <triegel@redhat.com>
672 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
675 2011-07-28 Torvald Riegel <triegel@redhat.com>
677 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
678 transaction properties from the caller instead of from the
681 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
683 2011-07-28 Torvald Riegel <triegel@redhat.com>
685 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
686 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
688 * method-serial.cc: Same.
689 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
690 flat nesting as default, and closed nesting on demand.
691 (GTM::gtm_transaction::rollback): Same.
692 (_ITM_abortTransaction): Same.
693 (GTM::gtm_transaction::restart): Same.
694 (GTM::gtm_transaction::trycommit): Same.
695 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
696 (choose_code_path): New.
697 (GTM::gtm_transaction_cp::save): New.
698 (GTM::gtm_transaction_cp::commit): New.
699 * query.cc (_ITM_inTransaction): Support flat nesting.
700 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
701 (GTM::gtm_transaction): Support flat and closed nesting.
702 * alloc.cc (commit_allocations_2): New.
703 (commit_cb_data): New helper struct.
704 (GTM::gtm_transaction::commit_allocations): Handle nested
706 * libitm.texi: Update user action section, add description of nesting.
708 2011-07-28 Torvald Riegel <triegel@redhat.com>
710 * libitm_i.h: Add closed nesting as restart reason.
711 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
713 2011-07-28 Torvald Riegel <triegel@redhat.com>
715 * useraction.cc: Use vector instead of list to store actions.
716 Also support partial rollbacks for closed nesting.
717 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
720 2011-07-28 Torvald Riegel <triegel@redhat.com>
722 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
723 closed_nesting flags, as well as a closed nesting alternative.
724 * method-serial.cc: Same.
725 (serial_dispatch): Renamed to serialirr_dispatch.
726 (GTM::dispatch_serialirr): Same.
727 (serial_dispatch_ul): Renamed to serial_dispatch.
728 (GTM::dispatch_serial): Same.
730 2011-07-28 Torvald Riegel <triegel@redhat.com>
732 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
734 2011-07-28 Torvald Riegel <triegel@redhat.com>
736 * aatree.h (aa_tree::remove): New.
737 (aa_tree::operator new): Add placement new.
739 2011-07-02 Torvald Riegel <triegel@redhat.com>
741 * containers.h: New file.
742 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
743 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
744 * common.h: ... to here.
745 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
748 2011-06-30 Torvald Riegel <triegel@redhat.com>
750 * libitm_i.h (STATE_ABORTING): Remove.
751 * beginend.cc (_ITM_abortTransaction): Same.
752 (GTM::gtm_transaction::trycommit_and_finalize): Same.
753 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
754 (_ITM_rollbackTransaction): Remove.
757 * libitm.texi: Document these ABI changes.
759 2011-06-30 Torvald Riegel <triegel@redhat.com>
761 * libitm.texi: New file.
762 * Makefile.am: Add libitm.texi.
763 * Makefile.in: Rebuild.
765 2011-06-30 Torvald Riegel <triegel@redhat.com>
767 * libitm_i.h: Move parts to common.h and dispatch.h.
768 * common.h: New file.
769 * dispatch.h: New file, new dispatch class.
770 Rename GTM::abi_dispatch::lock_type to ls_modifier.
771 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
772 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
773 decision to retry.cc.
774 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
776 (GTM::gtm_transaction::decide_begin_dispatch): Same.
777 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
779 * barrier.cc: Use new barriers definitions.
780 (abi_dispatch::memmove_overlap_check): New.
781 * config/x86/x86_sse.cc: Same.
782 * config/x86/x86_avx.cc: Same.
783 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
785 * Makefile.in: Rebuild.
786 * method-readonly.cc: Remove.
787 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
788 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
790 2011-06-30 Torvald Riegel <triegel@redhat.com>
792 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
793 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
794 * testsuite/libitm.c/dropref-2.c: Same.
795 * testsuite/libitm.c/dropref.c: Same.
797 2011-06-30 Torvald Riegel <triegel@redhat.com>
799 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
800 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
801 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
805 * config/generic/tls.h: Same.
806 * config/x86/tls.h: Same.
810 * method-readonly.cc: Same.
811 * method-serial.cc: Same.
812 * method-wbetl.cc: Same.
815 2011-03-03 Richard Henderson <rth@redhat.com>
817 * config/posix/rwlock.cc (write_upgrade): Add missing case.
818 From Patrik Marlier <patrick.marlier@unine.ch>.
820 2011-02-03 Richard Henderson <rth@redhat.com>
822 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
823 * configure.ac: Use it.
824 * configure, config.h.in: Rebuild.
825 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
826 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
827 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
828 * libitm.map: Use wildcards to match size_t mangling.
830 2010-12-14 Richard Henderson <rth@redhat.com>
832 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
833 blocks of TIDs per thread.
834 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
835 (setup_gtm_thr): Return the thread structure.
836 * config/x86/tls.h (setup_gtm_thr): Likewise.
838 2010-12-14 Richard Henderson <rth@redhat.com>
840 * clone.cc (table_lock): Remove.
841 (find_clone): Don't take it.
842 (ExcludeTransaction): New helper class.
843 (_ITM_registerTMCloneTable): Use it.
844 (_ITM_deregisterTMCloneTable): Likewise.
846 2010-12-14 Richard Henderson <rth@redhat.com>
848 * config/x86/tls.h: New file.
850 2010-07-15 Richard Henderson <rth@redhat.com>
852 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
853 * Makefile.in: Rebuild.
855 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
857 * method-wbetl.cc (trydropreference): Fix source line.
859 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
861 * libitm.h: Add comment.
862 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
864 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
866 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
867 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
868 available, use pthread mutexes.
869 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
870 * config.h.in: Regenerate.
871 * configure: Regenerate.
873 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
875 * libitm.h (ITM_PURE): Define.
876 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
878 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
880 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
881 (validate): Add comment.
882 (trydropreference): New.
883 * method-readonly.cc (class readonly_dispatch): Add
885 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
886 Call trydropreference().
887 * libitm.h (_ITM_dropReferences): Remove const attribute.
888 * method-serial.cc (class serial_dispatch): Add trydropreference.
889 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
891 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
893 * memcpy.cc (do_memcpy): Comment.
895 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
897 * barrier.tpl: Add comments throughout.
899 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
901 * method-wbetl.cc (struct w_entry): Add comments.
905 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
907 * alloc_c.cc (_ITM_dropReferences): New.
908 * libitm.map (_ITM_dropReferences): Add.
909 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
910 * libitm_i.h (struct gtm_transaction): Declare
911 drop_references_allocations and drop_references_local.
912 * local.cc (rollback_local): Ignore memory when applicable.
913 (drop_references_local): New.
915 2010-06-23 Richard Henderson <rth@redhat.com>
917 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
918 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
919 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
920 * config/alpha/target.h: Likewise.
921 * config/generic/tls.cc (gtm_mask_stack): Use it.
923 2010-06-23 Richard Henderson <rth@redhat.com>
925 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
926 a mutex instead of trying a lock-free compare-and-swap on the list.
927 (gtm_cacheline_page::operator delete): Likewise.
929 2010-06-16 Richard Henderson <rth@redhat.com>
931 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
932 that overlap the libitm stack.
933 * barrier.tpl: Mark incoming stack.
934 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
935 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
936 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
937 * memcpy.cc, memset.cc: Likewise.
938 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
939 * config/generic/tls.h (gtm_thread): Add stack_top member.
940 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
941 * libitm_i.h (gtm_mask_stack): Declare.
942 * config/generic/tls.cc: New file.
943 * Makefile.am (libitm_la_SOURCES): Add it.
944 (AM_CXXFLAGS): Turn off exceptions.
945 * Makefile.in: Rebuild.
947 2010-06-16 Richard Henderson <rth@redhat.com>
949 * alloc.cc (struct gtm_alloc_action): Move definition ...
950 * libitm_i.h: ... here.
951 (class gtm_transaction): Declare new and delete.
952 * beginend.cc (alloc_tx): Reformulate as operator new.
953 (free_tx): Reformulate as operator delete.
954 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
956 2010-06-11 Richard Henderson <rth@redhat.com>
958 * clone.cc (clone_entry_compare): Fix typo.
959 From Patrik Marlier <patrick.marlier@unine.ch>.
961 2010-05-13 Richard Henderson <rth@redhat.com>
963 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
966 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
968 * libitm_i.h (struct gtm_transaction): Remove
970 (record_allocation): Remove size parameter.
971 * libitm.map (_ITM_realloc): Remove.
972 * alloc_c.cc (_ITM_realloc): Remove.
973 (_ITM_malloc): Remove size argument to record_allocation.
975 * alloc_cpp.cc (_ZGTtnwm): Same.
976 (_ZGTtnwmRKSt9nothrow_t): Same.
978 (_ZGTtnamRKSt9nothrow_t): Same.
979 * alloc.cc (struct gtm_alloc_action): Remove size.
980 (get_allocation_size): Remove.
981 (commit_allocations): Add comment.
982 (record_allocation): Remove size parameter.
983 (forget_allocation): Remove set of size.
985 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
987 * Makefile.am (abi_version): New.
988 (AM_CXXFLAGS): Pass abi_version.
989 * Makefile.in: Regenerate.
990 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
992 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
994 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
995 _ITM_getTMCloneOrIrrevokable.
996 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
997 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
999 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1001 * configure.ac: Remove Linux futex support.
1002 * configure.tgt (config_path): Same.
1003 * Makefile.am: Same.
1004 * config/linux: Remove entire directory.
1005 * configure: Rebuild.
1006 * Makefile.in: Rebuild.
1007 * testsuite/Makefile.in: Rebuild.
1009 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1011 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1012 switching to serial mode.
1013 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1015 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1017 * configure.tgt: Add emacs -*- tags.
1018 * barrier.tpl: Same.
1020 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1022 * Makefile.am: Rename serial.cc to method-serial.cc.
1023 * Makefile.in: Regenerate with automake 1.11.1.
1024 * testsuite/Makefile.in: Same.
1025 * aclocal.m4: Regenerate with aclocal 1.11.1.
1026 * method-serial.cc: Rename from serial.cc.
1027 * libitm_i.h (struct gtm_transaction): Update comment on
1030 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1032 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1033 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1035 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1037 * configure: Rebuild.
1039 2009-11-12 Richard Henderson <rth@redhat.com>
1041 * Rewrite everything in C++.
1043 2009-11-03 Richard Henderson <rth@redhat.com>
1045 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1046 * Makefile.am (libitm_la_SOURCES): Add them.
1047 * configure.ac (ARCH_X86): New conditional.
1048 * Makefile.in, configure: Rebuild.
1049 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1050 Move futex setup into "other system configury" case.
1051 * local.c (rollback_local): Merge into ...
1052 (GTM_rollback_local): ... here.
1053 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1054 (_ITM_LB): Define as an alias to GTM_LB.
1056 2009-11-03 Richard Henderson <rth@redhat.com>
1058 * method-readonly.c: New file.
1059 * Makefile.am (libitm_la_SOURCES): Add it.
1060 * Makefile.in: Rebuild.
1061 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1062 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1063 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1064 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1065 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1066 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1067 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1068 gtm_get_clock, gtm_inc_clock): New.
1069 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1070 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1071 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1072 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1073 replace uses with new libitm_i.h symbols.
1074 (dispatch_wbetl): Rename from wbetl_dispatch.
1075 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1076 away from dispatch_readonly; abort if the beginTransaction call
1077 asserted that the transaction was readonly.
1079 2009-11-03 Richard Henderson <rth@redhat.com>
1081 * memset.c: New file.
1082 * Makefile.am (libitm_la_SOURCES): Add it.
1083 * Makefile.in: Rebuild.
1084 * testsuite/libitm.c/memset-1.c: New.
1086 2009-11-03 Richard Henderson <rth@redhat.com>
1088 * dispatch.c: Remove file.
1089 * useraction.c (struct gtm_user_action): Move from libitm.h.
1090 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1091 (serial_memset, serial_memmove, serial_memcpy): Remove.
1092 (serial_W*, serial_R*): Remove.
1093 (serial_dispatch): Update to match.
1094 * configure.ac: Move Werror down below configure checks. Don't
1095 check for sys/loadavg.h, do check for malloc.h. Don't check for
1096 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1097 Use GCC_AC_FUNC_MMAP_BLACKLIST
1098 * libitm.h: Split out all internal items to...
1099 * libitm_i.h: ... here. New file.
1100 * copymask.c: New file.
1101 * local.c (struct gtm_local_undo): Move from libitm.h.
1102 (GTM_alloc_local): Rename from alloc_local; export.
1103 * memcpy.c: New file.
1104 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1105 * config/posix/page.c: New file.
1106 * config/posix/target_tls.h: Remove file.
1107 * barrier.c: New file.
1108 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1110 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1111 * method-wbetl.c: Rewrite for new cacheline methods.
1112 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1114 * config/alpha/sjlj.S: Fix typo.
1115 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1116 * config/alpha/copymask.c: New file.
1117 * config/alpha/target.h (CACHELINE_SIZE): New.
1118 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1120 * config/x86/target_i.h: Copy functions from x86/target.h.
1121 * config/x86/copymask.c: New file.
1122 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1123 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1124 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1125 * config/x86/target_tls.h: Move contents to target_i.h.
1127 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1128 * testsuite/libitm.c/memcpy-1.c: New.
1130 2009-10-22 Richard Henderson <rth@redhat.com>
1132 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1133 (AM_CCASFLAGS): New.
1134 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1135 saving/restoring _AC_ARG_VAR_PRECIOUS.
1136 * Makefile.in, aclocal.m4, config.h.in, configure,
1137 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1139 2009-10-22 Richard Henderson <rth@redhat.com>
1141 * testsuite/*: Update for new compiler syntax.
1143 2009-10-21 Richard Henderson <rth@redhat.com>
1145 * libitm.h (_ITM_abortReason): Add outerAbort.
1147 2009-08-03 Richard Henderson <rth@redhat.com>
1149 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1150 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1151 * method-wbetl.c (struct w_entry): Remove mask.
1152 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1155 2009-07-22 Richard Henderson <rth@redhat.com>
1157 * eh_cpp.c: New file.
1158 * Makefile.am (libitm_la_SOURCES): Add it.
1159 * Makefile.in: Rebuild.
1160 * beginend.c (GTM_rollback_transaction): Undo exception state.
1161 (GTM_trycommit_transaction): Mark inline.
1162 (GTM_trycommit_and_finalize_transaction): Split out from ...
1163 (_ITM_commitTransaction): ... here.
1164 (_ITM_commitTransactionEH): New function.
1165 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1166 cxa_unthrown, eh_in_flight; reorder.
1168 * testsuite/libitm.c++/c++.exp: New.
1169 * testsuite/libitm.c++/eh-1.C: New.
1171 * aatree.c (aa_free): Remove REGPARM.
1172 * aatree.h: Remove all REGPARM.
1174 2009-07-18 Richard Henderson <rth@redhat.com>
1176 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1177 * Makefile.am (libitm_la_SOURCES): Add them.
1178 * Makefile.in: Rebuild.
1179 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1180 (GTM_trycommit_transaction): Likewise.
1181 * libitm.h: Include aatree.h
1182 (struct gtm_alloc_action): New.
1183 (struct gtm_transaction): Add alloc_actions.
1184 (GTM_record_allocation, GTM_forget_allocation): Declare.
1185 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1186 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1187 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1188 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1189 _ZGTtdaPvRKSt9nothrow_t): Export.
1191 2009-07-18 Richard Henderson <rth@redhat.com>
1193 * target_tls.h: Move ...
1194 * config/posix/target_tls.h: ... here.
1196 2009-07-07 Richard Henderson <rth@redhat.com>
1198 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1200 2009-07-07 Richard Henderson <rth@redhat.com>
1204 2009-07-07 Richard Henderson <rth@redhat.com>
1206 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1207 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1209 * configure.tgt: Don't use -ftls-model for x86 linux.
1210 * libitm.h: Include target.h after standard includes.
1211 (_gtm_thr): Rename from gtm_thr.
1212 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1213 (gtm_disp, set_gtm_disp): New.
1214 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1215 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1216 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1218 2009-07-07 Richard Henderson <rth@redhat.com>
1220 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1222 2009-07-06 Richard Henderson <rth@redhat.com>
1224 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1225 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1226 (_ITM_beginTransaction): Take variadic arguments.
1227 (_ITM_registerThrownObject): Declare.
1228 * beginend.c, serial.c: Update.
1229 * libitm.map: Add _ITM_registerThrownObject.
1231 2009-01-28 Richard Henderson <rth@redhat.com>
1233 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1234 * Makefile.in: Rebuild.
1235 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1236 (GTM_restart_transaction): Fix uninstrumented code check.
1237 * retry.c (GTM_decide_retry_strategy): Add serial check.
1238 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1239 automatically go irrevokable when in serial mode.
1240 * clone.c: New file.
1241 * libitm.h, libitm.map: Update.
1243 2009-01-27 Richard Henderson <rth@redhat.com>
1245 * Makefile.am (LTCCASCOMPILE): Define.
1246 (libitm_la_SOURCES): Add methid-wbetl.c.
1247 * testsuite/Makefile.am: New
1248 * configure.ac: Add testsuite/Makefile.
1249 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1250 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1251 (_ITM_abortTransaction): Finalize implementation method; pass
1252 transaction properties to longjmp.
1253 (GTM_restart_transaction): Split out from ...
1254 (_ITM_commitTransaction): ... here.
1255 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1256 Move to config/x86/target.h.
1257 * config/linux/alpha/futex_bits.h: New.
1258 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1259 * config/x86/target.h: Disable target types for 32-bit.
1260 * config/alpha/sjlj.S, config/alpha/target.h: New.
1261 * libitm.h (struct gtm_dispatch): Add init, fini.
1262 (enum restart_reason): New.
1263 (struct gtm_transaction): Add method and restarts.
1264 * retry.c (GTM_decide_retry_strategy): Implement.
1265 * serial.c (serial_init, serial_fini): New.
1266 (GTM_serialmode): Finialize outgoing method.
1267 * method-wbetl.c: New.
1269 2008-12-09 Richard Henderson <rth@redhat.com>
1271 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1272 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1273 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1274 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1275 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1276 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1277 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1278 * serial.c (serial_R##T, serial_W##T): Likewise.
1280 2008-11-21 Richard Henderson <rth@redhat.com>