1 2012-02-20 Torvald Riegel <triegel@redhat.com>
3 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
4 serial mode corner cases made obsolete by prior gtm_rwlock changes.
5 (gl_wt_dispatch.rollback): Same.
7 2012-02-20 Torvald Riegel <triegel@redhat.com>
9 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
11 2012-02-20 Torvald Riegel <triegel@redhat.com>
13 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
14 for RfW src. Optimize number of calls to gtm_thr.
16 2012-02-20 Torvald Riegel <triegel@redhat.com>
18 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
20 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
21 (default_dispatch): Make atomic.
22 (GTM::gtm_thread::set_default_dispatch): Access atomically.
23 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
24 use decide_begin_dispatch() if default_dispatch might have changed.
25 (GTM::gtm_thread::number_of_threads_changed): Initialize
26 default_dispatch here.
28 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
29 Patrick Marlier <patrick.marlier@gmail.com>
32 * alloc_cpp.cc: No dummy definitions for darwin.
33 * eh_cpp.cc: Likewise.
35 2012-02-14 Richard Henderson <rth@redhat.com>
37 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
39 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
41 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
43 2012-02-14 Torvald Riegel <triegel@redhat.com>
45 * libitm_i.h (GTM::gtm_rwlog_entry): New.
46 (GTM::gtm_thread): Add read and write logs.
47 (GTM::dispatch_ml_wt): Declare.
48 * retry.cc (parse_default_method): Support ml_wt.
49 * method-ml.cc: New file.
50 * Makefile.am: Add method-ml.cc.
51 * Makefile.in: Regenerate.
53 2012-02-14 Torvald Riegel <triegel@redhat.com>
55 * dispatch.h (GTM::abi_dispatch::supports): New.
56 (GTM::method_group::reinit): New.
57 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
58 (GTM::gtm_thread::number_of_threads_changed): Check that the method
59 supports the current situation.
61 2012-02-14 Torvald Riegel <triegel@redhat.com>
63 * util.cc (GTM::xcalloc): New.
64 * common.h (GTM::xcalloc): Declare.
66 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
68 * config/sparc/target.h (cpu_relax): Read from CC register.
69 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
71 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
73 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
75 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
77 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
78 * config/sparc/cacheline.h: New file.
79 * config/sparc/target.h: Likewise.
80 * config/sparc/sjlj.S: Likewise.
81 * config/linux/sparc/futex_bits.h: Likewise.
83 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
85 * configure.ac (link_itm): Fix comment.
86 * configure: Regenerate.
87 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
89 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
93 Correct libgomp references.
95 2012-01-24 Torvald Riegel <triegel@redhat.com>
97 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
100 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
102 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
104 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
105 offset values. Do not copy return address. Decrement stack
107 (GTM_longjump) [__x86_64__]: Update offset values.
109 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
112 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
113 the first function argument to %eax.
115 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117 * libitm.h (_ITM_getThreadnum): Remove.
118 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
120 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * clearcap.map: New file.
123 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
124 * configure.ac: Call it.
125 Clear HWCAP_LDFLAGS if defaulting to -mavx.
126 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
127 * configure: Regenerate.
128 * Makefile.in: Regenerate.
129 * testsuite/Makefile.in: Regenerate.
131 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
134 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
135 include, exclude options.
137 2012-01-14 Torvald Riegel <triegel@redhat.com>
139 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
141 * containers.h (GTM::vector::set_size): New.
143 2012-01-14 Torvald Riegel <triegel@redhat.com>
146 * config/generic/tls.h (GTM::mask_stack_top): New.
147 (GTM::mask_stack_bottom): Declare.
148 * config/generic/tls.c (GTM::mask_stack_bottom): New.
149 * local.cc (gtm_undolog::rollback): Filter out any updates that
150 overlap the libitm stack. Add current transaction as parameter.
151 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
152 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
153 * testsuite/libitm.c/stackundo.c: New test.
155 2012-01-10 Richard Henderson <rth@redhat.com>
157 * libitm_i.h (_Unwind_DeleteException): Declare weak.
158 * eh_cpp.cc (_Unwind_DeleteException): Define for
159 !HAVE_ELF_STYLE_WEAKREF.
161 2012-01-08 Torvald Riegel <triegel@redhat.com>
163 * local.cc (GTM_LB): Use GTM::gtm_undolog.
164 (GTM::gtm_thread::drop_references_undolog): Remove.
165 (GTM::gtm_thread::commit_undolog,
166 GTM::gtm_thread::rollback_undolog): Move to ...
167 * libitm_i.h (GTM::gtm_undolog): ...here. New.
168 (GTM::gtm_undolog_entry): Remove.
169 (GTM::gtm_thread): Adapt.
170 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
171 (GTM::gtm_thread::trycommit): Adapt.
172 * method-serial.cc (serial_dispatch::log): Adapt.
173 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
174 (gl_wt_dispatch::store): Fix likely/unlikely.
175 * containers.h (GTM::vector::resize): Add additional_capacity
176 parameter and handle it.
177 (GTM::vector::resize_noinline): New/adapt.
178 (GTM::vector::push): New.
180 2012-01-06 Richard Henderson <rth@redhat.com>
182 * configure.tgt: Support powerpc-linux and powerpc-darwin.
183 * config/linux/powerpc/futex_bits.h: New file.
184 * config/powerpc/cacheline.h: New file.
185 * config/powerpc/sjlj.S: New file.
186 * config/powerpc/target.h: New file.
187 * config/generic/asmcfi.h (cfi_offset): New.
188 (cfi_restore, cfi_undefined): New.
190 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
193 * testsuite/libitm.c/reentrant.c: Remove xfail.
194 (thread): Pass x to pure().
195 From Patrik Marlier <patrick.marlier@gmail.com>.
197 2011-12-24 Torvald Riegel <triegel@redhat.com>
199 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
200 privatization safety if already in serial mode.
202 2011-12-24 Torvald Riegel <triegel@redhat.com>
204 * beginend.cc (GTM::gtm_thread::restart): Add and handle
205 finish_serial_upgrade parameter.
206 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
207 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
208 Don't unset reader flag.
209 (GTM::gtm_rwlock::write_upgrade_finish): New.
210 * config/posix/rwlock.cc: Same.
211 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
213 * config/posix/rwlock.h: Same.
214 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
215 flag after commit or after rollback when restarting.
217 2011-12-24 Torvald Riegel <triegel@redhat.com>
219 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
220 (GTM::gtm_thread::try_commit): Changed memory order.
221 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
223 * config/linux/x86/futex_bits.h (sys_futex0): Same.
224 * config/linux/sh/futex_bits.h (sys_futex0): Same.
225 * config/linux/futex_bits.h (sys_futex0): Same.
226 * config/linux/futex.cc (futex_wait, futex_wake): Same.
227 * config/linux/futex.h (futex_wait, futex_wake): Same.
228 * config/linux/rwlock.h (gtm_rwlock::writers,
229 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
231 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
232 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
233 gtm_rwlock::write_unlock): Fix memory orders and fences.
234 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
235 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
236 gtm_rwlock::write_unlock): Same.
237 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
238 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
239 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
241 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
242 gl_wt_dispatch::load, gl_wt_dispatch::store,
243 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
244 orders and fences. Add comments.
246 2011-12-21 Jakub Jelinek <jakub@redhat.com>
248 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
249 * Makefile.in: Regenerated.
251 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
253 * configure.tgt: Add sh* case.
254 * config/sh/target.h: New file.
255 * config/sh/sjlj.S: New file.
256 * config/linux/sh/futex_bits.h: New file.
258 2011-12-14 Richard Henderson <rth@redhat.com>
260 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
261 * config/arm/sjlj.S, config/arm/target.h: New files.
262 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
263 (cfi_rel_offset): New.
264 * config/linux/futex_bits.h: New file.
265 * config/linux/futex.cc: Include futex_bits.h here...
266 * config/linux/futex.h: ... not here.
267 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
268 * configure.ac (ARCH_AM): New conditional.
269 * Makefile.in, configure: Rebuild.
270 * configure.tgt: Handle ARM.
272 2011-12-13 Richard Henderson <rth@redhat.com>
274 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
275 signed/unsigned comparison werror.
277 * local_atomic: New file.
278 * libitm_i.h: Include it.
279 (gtm_thread::shared_state): Use atomic template.
280 * beginend.cc (GTM::gtm_clock): Use atomic template.
281 (global_tid): Use atomic template if 64-bit atomics available.
282 (gtm_thread::gtm_thread): Update shared_state access.
283 (gtm_thread::trycommit): Likewise.
284 (choose_code_path): Update global_tid access.
285 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
286 * stmlock.h (GTM::gtm_clock): Use atomic template.
287 (gtm_get_clock, gtm_inc_clock): Update accesses.
288 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
289 redundant __sync_synchronize after atomic shared_state access.
290 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
291 (gtm_rwlock::write_lock_generic): Likewise.
292 (gtm_rwlock::read_unlock): Likewise.
293 * config/alpha/target.h (atomic_read_barrier): Remove.
294 (atomic_write_barrier): Remove.
295 * config/x86/target.h (atomic_read_barrier): Remove.
296 (atomic_write_barrier): Remove.
298 2011-11-30 Richard Henderson <rth@redhat.com>
300 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
301 * beginend.c (_ITM_abortTransaction): Update to match.
302 (GTM::gtm_thread::restart): Likewise.
303 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
304 * config/x86/sjlj.S (GTM_longjmp): Likewise.
306 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
308 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
309 * Makefile.in: Regenerate.
311 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
313 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
314 * alloc_cpp.cc: Generate dummy functions if we don't
315 HAVE_ELF_STYLE_WEAKREF.
316 * eh_cpp.cc: Likewise.
317 * configure: Regenerate.
318 * aclocal.m4: Likewise.
319 * config.h.in: Likewise.
320 * Makefile.in: Likewise.
321 * testsuite/Makefile.in: Likewise.
323 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
325 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
326 __USER_LABEL_PREFIX__ for targets that use it.
327 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
328 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
329 in portability to non-elf targets.
330 (GTM_longjmp): Likewise.
331 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
334 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
336 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
337 * testsuite/libitm.c/memset-1.c: Likewise.
339 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
341 * configure: Regenerate.
343 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
345 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
346 (LIBITM_ENABLE_SYMVERS): Handle sun style.
347 * Makefile.am: Handle sun style versioning.
348 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
349 * configure: Regenerate.
350 * Makefile.in: Regenerate.
352 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
354 * config/generic/asmcfi.h: Fix comment.
355 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
356 sequence without .hidden support, error for non-ELF targets.
357 (GTM_longjmp) [__ELF__]: Only use .hidden if
358 HAVE_ATTRIBUTE_VISIBILITY.
360 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
363 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
365 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
366 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
368 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
371 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
372 * configure: Regenerate.
374 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
376 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
378 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
380 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
382 (.note.GNU-stack): Only use if __linux__.
383 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
384 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
385 * testsuite/libitm.c/reentrant.c: Likewise.
386 * testsuite/libitm.c/simple-2.c: Likewise.
387 * testsuite/libitm.c/txrelease.c: Likewise.
388 * testsuite/libitm.c++/static_ctor.C: Likewise.
390 2011-11-10 Richard Henderson <rth@redhat.com>
392 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
393 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
394 * configure.ac (ARCH_X86_AVX): New conditional.
395 * Makefile.in, configure: Rebuild.
397 2011-11-09 Richard Henderson <rth@redhat.com>
399 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
400 * configure.ac: Use it.
401 * config.h.in, configure: Rebuild.
402 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
404 2011-11-09 Richard Henderson <rth@redhat.com>
406 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
407 * config/alpha/unaligned.h: Remove file.
408 * config/generic/unaligned.h: Remove file.
409 * config/x86/unaligned.h: Remove file.
410 * config/generic/cachepage.h: Remove file.
411 * config/posix/cachepage.cc: Remove file.
412 * config/generic/cacheline.cc: Remove file.
413 * config/x86/cacheline.cc: Remove file.
414 * config/generic/cacheline.h (gtm_cacheline): Remove the
415 store_mask, copy_mask, copy_mask_wb methods.
416 * config/x86/cacheline.h: Likewise.
417 * config/alpha/cacheline.h: Fall back to generic after setting size.
418 * config/generic/tls.cc (gtm_mask_stack): Remove.
419 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
420 (GTM_vpalignr_table): Remove.
421 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
422 (GTM_pshift_table): Remove.
423 * config/libitm_i.h: Don't include cachepage.h.
424 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
425 * Makefile.in, testsuite/Makefile.in: Rebuild.
427 2011-11-09 Richard Henderson <rth@redhat.com>
429 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
430 to emit branch prediction hint.
432 * config/x86/sjlj.S: Protect elf directives with __ELF__.
433 Protect .note.GNU-stack with __linux__.
435 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
436 * configure, aclocal.m4, config.h.in: Rebuild.
437 * config/generic/asmcfi.h: New file.
438 * config/x86/sjlj.S: Use it.
440 2011-11-08 Richard Henderson <rth@redhat.com>
442 * local.cc (_ITM_LB): Use a normal call, not a function alias.
444 2011-11-08 Richard Henderson <rth@redhat.com>
446 * configure.tgt: Test correct directory for supported cpus.
448 * configure.ac: Exit if unsupported.
449 * configure: Rebuild.
450 * configure.tgt: Delete boilerplate from libgomp for unsupported
451 targets. Set UNSUPPORTED for unsupported targets.
453 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
455 * configure.tgt: Handle i386 like i[456]86.
456 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
458 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
459 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
461 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
463 * method-wbetl.cc: Update copyright notice.
470 * useraction.cc: Same.
474 * config/generic/tls.cc: Same.
475 * config/generic/cacheline.h: Same.
476 * config/generic/cachepage.h: Same.
477 * config/generic/cacheline.cc: Same.
478 * config/generic/unaligned.h: Same.
479 * config/x86/cacheline.h: Same.
480 * config/x86/cacheline.cc: Same.
481 * config/x86/unaligned.h: Same.
482 * config/alpha/cacheline.h: Same.
483 * config/alpha/unaligned.h: Same.
484 * config/alpha/sjlj.S: Same.
485 * config/posix/cachepage.cc: Same.
486 * config/linux/futex.h: Same.
487 * config/linux/alpha/futex_bits.h: Same.
489 2011-11-04 Torvald Riegel <triegel@redhat.com>
491 * libitm.texi: No cover text and invariant sections.
493 2011-11-03 Richard Henderson <rth@redhat.com>
495 * local_type_traits: New file.
496 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
498 2011-11-03 Richard Henderson <rth@redhat.com>
500 * configure.ac: Don't test for gfortran.
501 * configure: Rebuild.
503 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
504 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
506 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
508 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
509 * testsuite/libitm.c/memset-1.c: Same.
510 * testsuite/libitm.c/c.exp: Same.
511 * testsuite/lib/libitm-dg.exp: Same.
512 * testsuite/lib/libitm.exp: Same.
513 * testsuite/libitm.c++/c++.exp: Same.
515 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
517 * testsuite/config/default.exp: Update copyright date.
518 * configure.ac: Add copyright info.
519 * configure.tgt: Same.
521 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
523 * testsuite/libitm.c/reentrant.c: XFAIL.
524 * testsuite/libitm.c++/static_ctor.C: XFAIL.
526 2011-10-29 Torvald Riegel <triegel@redhat.com>
528 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
530 (_ITM_abortTransaction): Handle aborts of outer transactions.
532 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
533 * libitm.texi: Document aborts of outer transactions.
534 * testsuite/libitm.c/cancel.c: New file.
536 2011-10-19 Torvald Riegel <triegel@redhat.com>
538 * testsuite/*: Change __transaction to __transaction_atomic or
539 __transaction_relaxed.
541 2011-10-19 Torvald Riegel <triegel@redhat.com>
543 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
546 2011-10-19 Torvald Riegel <triegel@redhat.com>
548 * libitm_i.h: Add gl_wt dispatch.
549 * retry.cc (parse_default_method): Same.
550 * method-gl.cc: New file.
551 * Makefile.am: Use method-gl.cc.
552 * Makefile.in: Rebuild.
554 2011-10-19 Torvald Riegel <triegel@redhat.com>
556 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
557 safety if requested by a TM method.
558 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
559 privatization safety.
560 * method-serial.cc: Same.
562 2011-10-19 Torvald Riegel <triegel@redhat.com>
564 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
565 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
566 undolog-related member functions from *_local to *_undolog.
567 * local.cc (gtm_thread::commit_undolog): Same.
568 * beginend.cc (GTM::gtm_thread::trycommit): Same.
569 (GTM::gtm_thread::rollback): Roll back undolog before
570 dispatch-specific rollback.
572 2011-10-19 Torvald Riegel <triegel@redhat.com>
574 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
575 re-initialization of the current method group.
576 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
578 2011-10-19 Torvald Riegel <triegel@redhat.com>
580 * alloc.cc (commit_allocations_2): Do not free transaction-local
581 memory when committing a nested transaction.
583 2011-10-19 Torvald Riegel <triegel@redhat.com>
585 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
586 serial-irrevocable dispatch, not serial.
588 2011-10-19 Torvald Riegel <triegel@redhat.com>
590 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
592 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
593 * method-serial.cc: Implement begin_or_restart().
594 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
595 dispatch-specific begin_or_restart().
596 (GTM::gtm_thread::restart): Same.
598 2011-08-23 Torvald Riegel <triegel@redhat.com>
600 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
601 restarting without switching to serial mode.
602 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
603 transaction state. Choose closed-nesting alternative if available.
604 (GTM::gtm_thread::set_default_dispatch): New.
605 (parse_default_method): New.
606 (GTM::gtm_thread::number_of_threads_changed): New.
607 * method-serial.cc (GTM::serial_mg): New method group class.
608 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
610 (GTM::serial_dispatch): Same.
611 (GTM::serialirr_onwrite_dispatch): Same.
612 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
613 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
615 (GTM::gtm_thread::gtm_thread): Same.
616 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
617 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
618 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
619 choose dispatch but set state according to dispatch here.
620 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
621 (GTM::method_group): New class.
622 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
623 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
624 * libitm.texi: Document TM methods, method groups, method life cycle.
625 Rename method sets to method groups.
627 2011-08-23 Torvald Riegel <triegel@redhat.com>
629 * config/x86/tls.h: Moved to ...
630 * config/linux/x86/tls.h: ... here.
632 2011-08-23 Torvald Riegel <triegel@redhat.com>
634 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
636 * config/x86/sjlj.S: Same.
638 2011-08-19 Torvald Riegel <triegel@redhat.com>
640 * config/linux/rwlock.h: New file.
641 * config/linux/rwlock.c: New file.
642 * configure.ac: Reenable futex support (undo SVN rev 157758).
644 * configure.tgt: Same.
645 * config/linux/alpha/futex_bits.h: Same.
646 * config/linux/futex.h: Same. Return number of woken processes.
647 * config/linux/futex.cc: Same.
648 (futex_wait): Remove spinning.
649 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
650 Use __x86_64__ instead of __LP64__.
651 * aclocal.m4: Include generic futex checks.
652 * configure: Rebuild.
653 * Makefile.in: Rebuild.
654 * testsuite/Makefile.in: Rebuild.
655 * beginend.cc: Include pthread.h.
656 * config/posix/cachepage.cc: Same.
658 2011-08-12 Torvald Riegel <triegel@redhat.com>
660 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
661 (abi_disp, set_abi_disp): Move to tx's TLS slot.
663 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
665 (GTM::gtm_thread::thread_num): Removed.
666 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
667 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
668 tx-to-thread renaming.
669 * beginend.cc: Adapted to tx-to-thread renaming.
670 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
671 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
672 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
673 gtm_transaction to gtm_thread.
674 (_ITM_getThreadnum): Removed. Not supported anymore.
675 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
676 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
677 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
678 gtm_tx-to-gtm_thr renaming if necessary.
685 * alloc_cpp.cc: Same.
686 * method-serial.cc: Same.
687 * config/generic/tls.cc: Same.
688 * config/posix/rwlock.h (gtm_rwlock): Same.
689 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
691 2011-08-12 Torvald Riegel <triegel@redhat.com>
693 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
695 (gtm_rwlock::read_unlock): Same.
696 (gtm_rwlock::write_lock_generic): New. Generalized from ...
697 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
698 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
699 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
700 w_upgrade. Replaced by per-transaction flags (in shared_state).
701 Added c_confirmed_writers.
702 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
703 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
704 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
705 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
706 * beginend.cc (GTM::gtm_transaction::begin_transaction,
707 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
708 * libitm.texi: Document locking conventions and implementations in
711 2011-08-12 Torvald Riegel <triegel@redhat.com>
713 * libitm_i.h (next_tx): Add list of all threads' transaction.
714 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
715 transaction with list of transactions and ...
716 (thread_exit_handler): ... deregister here.
717 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
718 * config/x86/target.h: Same.
720 2011-08-12 Torvald Riegel <triegel@redhat.com>
722 * testsuite/libitm.c++/static_ctor.C: New file.
724 2011-08-12 Torvald Riegel <triegel@redhat.com>
726 * testsuite/libitm.c/reentrant.c: New file.
728 2011-08-12 Torvald Riegel <triegel@redhat.com>
730 * config/generic/tls.h: Remove the free list for transactions and ...
731 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
732 (GTM::gtm_transaction::operator delete): ... and release here.
733 (thread_exit_handler): New. Delete tx when thread terminates.
734 (thread_exit_init): New.
735 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
736 * testsuite/libitm.c/txrelease.c: New file.
738 2011-08-12 Torvald Riegel <triegel@redhat.com>
740 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
741 * testsuite/libitm.c/notx.c: New file.
743 2011-08-12 Torvald Riegel <triegel@redhat.com>
745 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
746 * libitm_i.h (local_tid): ... to here.
747 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
748 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
750 2011-08-12 Torvald Riegel <triegel@redhat.com>
752 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
753 serialirr_onwrite_dispatch as new default for now.
754 * method-serial.cc (serialirr_onwrite_dispatch): New.
755 (GTM::dispatch_serialirr_onwrite): New.
758 2011-08-12 Torvald Riegel <triegel@redhat.com>
760 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
761 * query.cc (_ITM_getTransactionId): There is no active transaction if
762 the current nesting level is zero.
764 2011-07-28 Torvald Riegel <triegel@redhat.com>
766 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
769 2011-07-28 Torvald Riegel <triegel@redhat.com>
771 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
772 transaction properties from the caller instead of from the
775 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
777 2011-07-28 Torvald Riegel <triegel@redhat.com>
779 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
780 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
782 * method-serial.cc: Same.
783 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
784 flat nesting as default, and closed nesting on demand.
785 (GTM::gtm_transaction::rollback): Same.
786 (_ITM_abortTransaction): Same.
787 (GTM::gtm_transaction::restart): Same.
788 (GTM::gtm_transaction::trycommit): Same.
789 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
790 (choose_code_path): New.
791 (GTM::gtm_transaction_cp::save): New.
792 (GTM::gtm_transaction_cp::commit): New.
793 * query.cc (_ITM_inTransaction): Support flat nesting.
794 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
795 (GTM::gtm_transaction): Support flat and closed nesting.
796 * alloc.cc (commit_allocations_2): New.
797 (commit_cb_data): New helper struct.
798 (GTM::gtm_transaction::commit_allocations): Handle nested
800 * libitm.texi: Update user action section, add description of nesting.
802 2011-07-28 Torvald Riegel <triegel@redhat.com>
804 * libitm_i.h: Add closed nesting as restart reason.
805 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
807 2011-07-28 Torvald Riegel <triegel@redhat.com>
809 * useraction.cc: Use vector instead of list to store actions.
810 Also support partial rollbacks for closed nesting.
811 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
814 2011-07-28 Torvald Riegel <triegel@redhat.com>
816 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
817 closed_nesting flags, as well as a closed nesting alternative.
818 * method-serial.cc: Same.
819 (serial_dispatch): Renamed to serialirr_dispatch.
820 (GTM::dispatch_serialirr): Same.
821 (serial_dispatch_ul): Renamed to serial_dispatch.
822 (GTM::dispatch_serial): Same.
824 2011-07-28 Torvald Riegel <triegel@redhat.com>
826 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
828 2011-07-28 Torvald Riegel <triegel@redhat.com>
830 * aatree.h (aa_tree::remove): New.
831 (aa_tree::operator new): Add placement new.
833 2011-07-02 Torvald Riegel <triegel@redhat.com>
835 * containers.h: New file.
836 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
837 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
838 * common.h: ... to here.
839 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
842 2011-06-30 Torvald Riegel <triegel@redhat.com>
844 * libitm_i.h (STATE_ABORTING): Remove.
845 * beginend.cc (_ITM_abortTransaction): Same.
846 (GTM::gtm_transaction::trycommit_and_finalize): Same.
847 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
848 (_ITM_rollbackTransaction): Remove.
851 * libitm.texi: Document these ABI changes.
853 2011-06-30 Torvald Riegel <triegel@redhat.com>
855 * libitm.texi: New file.
856 * Makefile.am: Add libitm.texi.
857 * Makefile.in: Rebuild.
859 2011-06-30 Torvald Riegel <triegel@redhat.com>
861 * libitm_i.h: Move parts to common.h and dispatch.h.
862 * common.h: New file.
863 * dispatch.h: New file, new dispatch class.
864 Rename GTM::abi_dispatch::lock_type to ls_modifier.
865 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
866 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
867 decision to retry.cc.
868 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
870 (GTM::gtm_transaction::decide_begin_dispatch): Same.
871 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
873 * barrier.cc: Use new barriers definitions.
874 (abi_dispatch::memmove_overlap_check): New.
875 * config/x86/x86_sse.cc: Same.
876 * config/x86/x86_avx.cc: Same.
877 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
879 * Makefile.in: Rebuild.
880 * method-readonly.cc: Remove.
881 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
882 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
884 2011-06-30 Torvald Riegel <triegel@redhat.com>
886 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
887 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
888 * testsuite/libitm.c/dropref-2.c: Same.
889 * testsuite/libitm.c/dropref.c: Same.
891 2011-06-30 Torvald Riegel <triegel@redhat.com>
893 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
894 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
895 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
899 * config/generic/tls.h: Same.
900 * config/x86/tls.h: Same.
904 * method-readonly.cc: Same.
905 * method-serial.cc: Same.
906 * method-wbetl.cc: Same.
909 2011-03-03 Richard Henderson <rth@redhat.com>
911 * config/posix/rwlock.cc (write_upgrade): Add missing case.
912 From Patrik Marlier <patrick.marlier@unine.ch>.
914 2011-02-03 Richard Henderson <rth@redhat.com>
916 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
917 * configure.ac: Use it.
918 * configure, config.h.in: Rebuild.
919 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
920 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
921 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
922 * libitm.map: Use wildcards to match size_t mangling.
924 2010-12-14 Richard Henderson <rth@redhat.com>
926 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
927 blocks of TIDs per thread.
928 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
929 (setup_gtm_thr): Return the thread structure.
930 * config/x86/tls.h (setup_gtm_thr): Likewise.
932 2010-12-14 Richard Henderson <rth@redhat.com>
934 * clone.cc (table_lock): Remove.
935 (find_clone): Don't take it.
936 (ExcludeTransaction): New helper class.
937 (_ITM_registerTMCloneTable): Use it.
938 (_ITM_deregisterTMCloneTable): Likewise.
940 2010-12-14 Richard Henderson <rth@redhat.com>
942 * config/x86/tls.h: New file.
944 2010-07-15 Richard Henderson <rth@redhat.com>
946 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
947 * Makefile.in: Rebuild.
949 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
951 * method-wbetl.cc (trydropreference): Fix source line.
953 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
955 * libitm.h: Add comment.
956 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
958 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
960 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
961 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
962 available, use pthread mutexes.
963 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
964 * config.h.in: Regenerate.
965 * configure: Regenerate.
967 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
969 * libitm.h (ITM_PURE): Define.
970 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
972 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
974 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
975 (validate): Add comment.
976 (trydropreference): New.
977 * method-readonly.cc (class readonly_dispatch): Add
979 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
980 Call trydropreference().
981 * libitm.h (_ITM_dropReferences): Remove const attribute.
982 * method-serial.cc (class serial_dispatch): Add trydropreference.
983 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
985 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
987 * memcpy.cc (do_memcpy): Comment.
989 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
991 * barrier.tpl: Add comments throughout.
993 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
995 * method-wbetl.cc (struct w_entry): Add comments.
999 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1001 * alloc_c.cc (_ITM_dropReferences): New.
1002 * libitm.map (_ITM_dropReferences): Add.
1003 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1004 * libitm_i.h (struct gtm_transaction): Declare
1005 drop_references_allocations and drop_references_local.
1006 * local.cc (rollback_local): Ignore memory when applicable.
1007 (drop_references_local): New.
1009 2010-06-23 Richard Henderson <rth@redhat.com>
1011 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1012 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1013 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1014 * config/alpha/target.h: Likewise.
1015 * config/generic/tls.cc (gtm_mask_stack): Use it.
1017 2010-06-23 Richard Henderson <rth@redhat.com>
1019 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1020 a mutex instead of trying a lock-free compare-and-swap on the list.
1021 (gtm_cacheline_page::operator delete): Likewise.
1023 2010-06-16 Richard Henderson <rth@redhat.com>
1025 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1026 that overlap the libitm stack.
1027 * barrier.tpl: Mark incoming stack.
1028 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1029 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1030 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1031 * memcpy.cc, memset.cc: Likewise.
1032 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1033 * config/generic/tls.h (gtm_thread): Add stack_top member.
1034 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1035 * libitm_i.h (gtm_mask_stack): Declare.
1036 * config/generic/tls.cc: New file.
1037 * Makefile.am (libitm_la_SOURCES): Add it.
1038 (AM_CXXFLAGS): Turn off exceptions.
1039 * Makefile.in: Rebuild.
1041 2010-06-16 Richard Henderson <rth@redhat.com>
1043 * alloc.cc (struct gtm_alloc_action): Move definition ...
1044 * libitm_i.h: ... here.
1045 (class gtm_transaction): Declare new and delete.
1046 * beginend.cc (alloc_tx): Reformulate as operator new.
1047 (free_tx): Reformulate as operator delete.
1048 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1050 2010-06-11 Richard Henderson <rth@redhat.com>
1052 * clone.cc (clone_entry_compare): Fix typo.
1053 From Patrik Marlier <patrick.marlier@unine.ch>.
1055 2010-05-13 Richard Henderson <rth@redhat.com>
1057 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1060 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1062 * libitm_i.h (struct gtm_transaction): Remove
1063 get_allocation_size.
1064 (record_allocation): Remove size parameter.
1065 * libitm.map (_ITM_realloc): Remove.
1066 * alloc_c.cc (_ITM_realloc): Remove.
1067 (_ITM_malloc): Remove size argument to record_allocation.
1068 (_ITM_calloc): Same.
1069 * alloc_cpp.cc (_ZGTtnwm): Same.
1070 (_ZGTtnwmRKSt9nothrow_t): Same.
1072 (_ZGTtnamRKSt9nothrow_t): Same.
1073 * alloc.cc (struct gtm_alloc_action): Remove size.
1074 (get_allocation_size): Remove.
1075 (commit_allocations): Add comment.
1076 (record_allocation): Remove size parameter.
1077 (forget_allocation): Remove set of size.
1079 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1081 * Makefile.am (abi_version): New.
1082 (AM_CXXFLAGS): Pass abi_version.
1083 * Makefile.in: Regenerate.
1084 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1086 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1088 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1089 _ITM_getTMCloneOrIrrevokable.
1090 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1091 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1093 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1095 * configure.ac: Remove Linux futex support.
1096 * configure.tgt (config_path): Same.
1097 * Makefile.am: Same.
1098 * config/linux: Remove entire directory.
1099 * configure: Rebuild.
1100 * Makefile.in: Rebuild.
1101 * testsuite/Makefile.in: Rebuild.
1103 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1105 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1106 switching to serial mode.
1107 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1109 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1111 * configure.tgt: Add emacs -*- tags.
1112 * barrier.tpl: Same.
1114 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1116 * Makefile.am: Rename serial.cc to method-serial.cc.
1117 * Makefile.in: Regenerate with automake 1.11.1.
1118 * testsuite/Makefile.in: Same.
1119 * aclocal.m4: Regenerate with aclocal 1.11.1.
1120 * method-serial.cc: Rename from serial.cc.
1121 * libitm_i.h (struct gtm_transaction): Update comment on
1124 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1126 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1127 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1129 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1131 * configure: Rebuild.
1133 2009-11-12 Richard Henderson <rth@redhat.com>
1135 * Rewrite everything in C++.
1137 2009-11-03 Richard Henderson <rth@redhat.com>
1139 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1140 * Makefile.am (libitm_la_SOURCES): Add them.
1141 * configure.ac (ARCH_X86): New conditional.
1142 * Makefile.in, configure: Rebuild.
1143 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1144 Move futex setup into "other system configury" case.
1145 * local.c (rollback_local): Merge into ...
1146 (GTM_rollback_local): ... here.
1147 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1148 (_ITM_LB): Define as an alias to GTM_LB.
1150 2009-11-03 Richard Henderson <rth@redhat.com>
1152 * method-readonly.c: New file.
1153 * Makefile.am (libitm_la_SOURCES): Add it.
1154 * Makefile.in: Rebuild.
1155 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1156 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1157 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1158 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1159 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1160 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1161 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1162 gtm_get_clock, gtm_inc_clock): New.
1163 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1164 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1165 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1166 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1167 replace uses with new libitm_i.h symbols.
1168 (dispatch_wbetl): Rename from wbetl_dispatch.
1169 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1170 away from dispatch_readonly; abort if the beginTransaction call
1171 asserted that the transaction was readonly.
1173 2009-11-03 Richard Henderson <rth@redhat.com>
1175 * memset.c: New file.
1176 * Makefile.am (libitm_la_SOURCES): Add it.
1177 * Makefile.in: Rebuild.
1178 * testsuite/libitm.c/memset-1.c: New.
1180 2009-11-03 Richard Henderson <rth@redhat.com>
1182 * dispatch.c: Remove file.
1183 * useraction.c (struct gtm_user_action): Move from libitm.h.
1184 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1185 (serial_memset, serial_memmove, serial_memcpy): Remove.
1186 (serial_W*, serial_R*): Remove.
1187 (serial_dispatch): Update to match.
1188 * configure.ac: Move Werror down below configure checks. Don't
1189 check for sys/loadavg.h, do check for malloc.h. Don't check for
1190 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1191 Use GCC_AC_FUNC_MMAP_BLACKLIST
1192 * libitm.h: Split out all internal items to...
1193 * libitm_i.h: ... here. New file.
1194 * copymask.c: New file.
1195 * local.c (struct gtm_local_undo): Move from libitm.h.
1196 (GTM_alloc_local): Rename from alloc_local; export.
1197 * memcpy.c: New file.
1198 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1199 * config/posix/page.c: New file.
1200 * config/posix/target_tls.h: Remove file.
1201 * barrier.c: New file.
1202 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1204 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1205 * method-wbetl.c: Rewrite for new cacheline methods.
1206 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1208 * config/alpha/sjlj.S: Fix typo.
1209 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1210 * config/alpha/copymask.c: New file.
1211 * config/alpha/target.h (CACHELINE_SIZE): New.
1212 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1214 * config/x86/target_i.h: Copy functions from x86/target.h.
1215 * config/x86/copymask.c: New file.
1216 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1217 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1218 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1219 * config/x86/target_tls.h: Move contents to target_i.h.
1221 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1222 * testsuite/libitm.c/memcpy-1.c: New.
1224 2009-10-22 Richard Henderson <rth@redhat.com>
1226 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1227 (AM_CCASFLAGS): New.
1228 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1229 saving/restoring _AC_ARG_VAR_PRECIOUS.
1230 * Makefile.in, aclocal.m4, config.h.in, configure,
1231 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1233 2009-10-22 Richard Henderson <rth@redhat.com>
1235 * testsuite/*: Update for new compiler syntax.
1237 2009-10-21 Richard Henderson <rth@redhat.com>
1239 * libitm.h (_ITM_abortReason): Add outerAbort.
1241 2009-08-03 Richard Henderson <rth@redhat.com>
1243 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1244 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1245 * method-wbetl.c (struct w_entry): Remove mask.
1246 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1249 2009-07-22 Richard Henderson <rth@redhat.com>
1251 * eh_cpp.c: New file.
1252 * Makefile.am (libitm_la_SOURCES): Add it.
1253 * Makefile.in: Rebuild.
1254 * beginend.c (GTM_rollback_transaction): Undo exception state.
1255 (GTM_trycommit_transaction): Mark inline.
1256 (GTM_trycommit_and_finalize_transaction): Split out from ...
1257 (_ITM_commitTransaction): ... here.
1258 (_ITM_commitTransactionEH): New function.
1259 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1260 cxa_unthrown, eh_in_flight; reorder.
1262 * testsuite/libitm.c++/c++.exp: New.
1263 * testsuite/libitm.c++/eh-1.C: New.
1265 * aatree.c (aa_free): Remove REGPARM.
1266 * aatree.h: Remove all REGPARM.
1268 2009-07-18 Richard Henderson <rth@redhat.com>
1270 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1271 * Makefile.am (libitm_la_SOURCES): Add them.
1272 * Makefile.in: Rebuild.
1273 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1274 (GTM_trycommit_transaction): Likewise.
1275 * libitm.h: Include aatree.h
1276 (struct gtm_alloc_action): New.
1277 (struct gtm_transaction): Add alloc_actions.
1278 (GTM_record_allocation, GTM_forget_allocation): Declare.
1279 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1280 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1281 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1282 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1283 _ZGTtdaPvRKSt9nothrow_t): Export.
1285 2009-07-18 Richard Henderson <rth@redhat.com>
1287 * target_tls.h: Move ...
1288 * config/posix/target_tls.h: ... here.
1290 2009-07-07 Richard Henderson <rth@redhat.com>
1292 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1294 2009-07-07 Richard Henderson <rth@redhat.com>
1298 2009-07-07 Richard Henderson <rth@redhat.com>
1300 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1301 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1303 * configure.tgt: Don't use -ftls-model for x86 linux.
1304 * libitm.h: Include target.h after standard includes.
1305 (_gtm_thr): Rename from gtm_thr.
1306 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1307 (gtm_disp, set_gtm_disp): New.
1308 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1309 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1310 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1312 2009-07-07 Richard Henderson <rth@redhat.com>
1314 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1316 2009-07-06 Richard Henderson <rth@redhat.com>
1318 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1319 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1320 (_ITM_beginTransaction): Take variadic arguments.
1321 (_ITM_registerThrownObject): Declare.
1322 * beginend.c, serial.c: Update.
1323 * libitm.map: Add _ITM_registerThrownObject.
1325 2009-01-28 Richard Henderson <rth@redhat.com>
1327 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1328 * Makefile.in: Rebuild.
1329 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1330 (GTM_restart_transaction): Fix uninstrumented code check.
1331 * retry.c (GTM_decide_retry_strategy): Add serial check.
1332 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1333 automatically go irrevokable when in serial mode.
1334 * clone.c: New file.
1335 * libitm.h, libitm.map: Update.
1337 2009-01-27 Richard Henderson <rth@redhat.com>
1339 * Makefile.am (LTCCASCOMPILE): Define.
1340 (libitm_la_SOURCES): Add methid-wbetl.c.
1341 * testsuite/Makefile.am: New
1342 * configure.ac: Add testsuite/Makefile.
1343 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1344 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1345 (_ITM_abortTransaction): Finalize implementation method; pass
1346 transaction properties to longjmp.
1347 (GTM_restart_transaction): Split out from ...
1348 (_ITM_commitTransaction): ... here.
1349 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1350 Move to config/x86/target.h.
1351 * config/linux/alpha/futex_bits.h: New.
1352 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1353 * config/x86/target.h: Disable target types for 32-bit.
1354 * config/alpha/sjlj.S, config/alpha/target.h: New.
1355 * libitm.h (struct gtm_dispatch): Add init, fini.
1356 (enum restart_reason): New.
1357 (struct gtm_transaction): Add method and restarts.
1358 * retry.c (GTM_decide_retry_strategy): Implement.
1359 * serial.c (serial_init, serial_fini): New.
1360 (GTM_serialmode): Finialize outgoing method.
1361 * method-wbetl.c: New.
1363 2008-12-09 Richard Henderson <rth@redhat.com>
1365 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1366 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1367 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1368 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1369 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1370 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1371 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1372 * serial.c (serial_R##T, serial_W##T): Likewise.
1374 2008-11-21 Richard Henderson <rth@redhat.com>