1 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
3 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
5 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
7 * eh_cpp.cc: Fix __cxa_end_catch declaration.
9 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
11 * configure: Regenerated.
13 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
16 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
19 2012-04-03 Tristan Gingold <gingold@adacore.com>
21 * configure: Regenerate.
23 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
26 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
28 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30 * testsuite/lib/libitm.exp: load fortran-modules.exp
32 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34 * configure.tgt (*-*-irix6*): Remove.
36 2012-03-13 Torvald Riegel <triegel@redhat.com>
39 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
42 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44 * configure.tgt (*-*-osf*): Remove.
45 * configure: Regenerate.
47 2012-03-05 Torvald Riegel <triegel@redhat.com>
49 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
50 memtransfer/memset if size isn't larger than zero.
52 2012-03-02 Torvald Riegel <triegel@redhat.com>
54 * libitm.texi: Link to specification and add a usage example.
56 2012-02-24 Torvald Riegel <triegel@redhat.com>
58 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
59 default dispatch for more than 1 thread to ml_wt.
61 2012-02-20 Torvald Riegel <triegel@redhat.com>
63 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
65 2012-02-20 Torvald Riegel <triegel@redhat.com>
67 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
69 2012-02-20 Torvald Riegel <triegel@redhat.com>
71 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
72 serial mode corner cases made obsolete by prior gtm_rwlock changes.
73 (gl_wt_dispatch.rollback): Same.
75 2012-02-20 Torvald Riegel <triegel@redhat.com>
77 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
79 2012-02-20 Torvald Riegel <triegel@redhat.com>
81 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
82 for RfW src. Optimize number of calls to gtm_thr.
84 2012-02-20 Torvald Riegel <triegel@redhat.com>
86 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
88 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
89 (default_dispatch): Make atomic.
90 (GTM::gtm_thread::set_default_dispatch): Access atomically.
91 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
92 use decide_begin_dispatch() if default_dispatch might have changed.
93 (GTM::gtm_thread::number_of_threads_changed): Initialize
94 default_dispatch here.
96 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
97 Patrick Marlier <patrick.marlier@gmail.com>
100 * alloc_cpp.cc: No dummy definitions for darwin.
101 * eh_cpp.cc: Likewise.
103 2012-02-14 Richard Henderson <rth@redhat.com>
105 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
107 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
109 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
111 2012-02-14 Torvald Riegel <triegel@redhat.com>
113 * libitm_i.h (GTM::gtm_rwlog_entry): New.
114 (GTM::gtm_thread): Add read and write logs.
115 (GTM::dispatch_ml_wt): Declare.
116 * retry.cc (parse_default_method): Support ml_wt.
117 * method-ml.cc: New file.
118 * Makefile.am: Add method-ml.cc.
119 * Makefile.in: Regenerate.
121 2012-02-14 Torvald Riegel <triegel@redhat.com>
123 * dispatch.h (GTM::abi_dispatch::supports): New.
124 (GTM::method_group::reinit): New.
125 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
126 (GTM::gtm_thread::number_of_threads_changed): Check that the method
127 supports the current situation.
129 2012-02-14 Torvald Riegel <triegel@redhat.com>
131 * util.cc (GTM::xcalloc): New.
132 * common.h (GTM::xcalloc): Declare.
134 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
136 * config/sparc/target.h (cpu_relax): Read from CC register.
137 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
139 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
141 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
143 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
145 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
146 * config/sparc/cacheline.h: New file.
147 * config/sparc/target.h: Likewise.
148 * config/sparc/sjlj.S: Likewise.
149 * config/linux/sparc/futex_bits.h: Likewise.
151 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
153 * configure.ac (link_itm): Fix comment.
154 * configure: Regenerate.
155 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
157 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
160 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
161 Correct libgomp references.
163 2012-01-24 Torvald Riegel <triegel@redhat.com>
165 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
168 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
170 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
172 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
173 offset values. Do not copy return address. Decrement stack
175 (GTM_longjump) [__x86_64__]: Update offset values.
177 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
180 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
181 the first function argument to %eax.
183 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185 * libitm.h (_ITM_getThreadnum): Remove.
186 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
188 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190 * clearcap.map: New file.
191 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
192 * configure.ac: Call it.
193 Clear HWCAP_LDFLAGS if defaulting to -mavx.
194 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
195 * configure: Regenerate.
196 * Makefile.in: Regenerate.
197 * testsuite/Makefile.in: Regenerate.
199 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
202 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
203 include, exclude options.
205 2012-01-14 Torvald Riegel <triegel@redhat.com>
207 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
209 * containers.h (GTM::vector::set_size): New.
211 2012-01-14 Torvald Riegel <triegel@redhat.com>
214 * config/generic/tls.h (GTM::mask_stack_top): New.
215 (GTM::mask_stack_bottom): Declare.
216 * config/generic/tls.c (GTM::mask_stack_bottom): New.
217 * local.cc (gtm_undolog::rollback): Filter out any updates that
218 overlap the libitm stack. Add current transaction as parameter.
219 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
220 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
221 * testsuite/libitm.c/stackundo.c: New test.
223 2012-01-10 Richard Henderson <rth@redhat.com>
225 * libitm_i.h (_Unwind_DeleteException): Declare weak.
226 * eh_cpp.cc (_Unwind_DeleteException): Define for
227 !HAVE_ELF_STYLE_WEAKREF.
229 2012-01-08 Torvald Riegel <triegel@redhat.com>
231 * local.cc (GTM_LB): Use GTM::gtm_undolog.
232 (GTM::gtm_thread::drop_references_undolog): Remove.
233 (GTM::gtm_thread::commit_undolog,
234 GTM::gtm_thread::rollback_undolog): Move to ...
235 * libitm_i.h (GTM::gtm_undolog): ...here. New.
236 (GTM::gtm_undolog_entry): Remove.
237 (GTM::gtm_thread): Adapt.
238 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
239 (GTM::gtm_thread::trycommit): Adapt.
240 * method-serial.cc (serial_dispatch::log): Adapt.
241 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
242 (gl_wt_dispatch::store): Fix likely/unlikely.
243 * containers.h (GTM::vector::resize): Add additional_capacity
244 parameter and handle it.
245 (GTM::vector::resize_noinline): New/adapt.
246 (GTM::vector::push): New.
248 2012-01-06 Richard Henderson <rth@redhat.com>
250 * configure.tgt: Support powerpc-linux and powerpc-darwin.
251 * config/linux/powerpc/futex_bits.h: New file.
252 * config/powerpc/cacheline.h: New file.
253 * config/powerpc/sjlj.S: New file.
254 * config/powerpc/target.h: New file.
255 * config/generic/asmcfi.h (cfi_offset): New.
256 (cfi_restore, cfi_undefined): New.
258 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
261 * testsuite/libitm.c/reentrant.c: Remove xfail.
262 (thread): Pass x to pure().
263 From Patrik Marlier <patrick.marlier@gmail.com>.
265 2011-12-24 Torvald Riegel <triegel@redhat.com>
267 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
268 privatization safety if already in serial mode.
270 2011-12-24 Torvald Riegel <triegel@redhat.com>
272 * beginend.cc (GTM::gtm_thread::restart): Add and handle
273 finish_serial_upgrade parameter.
274 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
275 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
276 Don't unset reader flag.
277 (GTM::gtm_rwlock::write_upgrade_finish): New.
278 * config/posix/rwlock.cc: Same.
279 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
281 * config/posix/rwlock.h: Same.
282 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
283 flag after commit or after rollback when restarting.
285 2011-12-24 Torvald Riegel <triegel@redhat.com>
287 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
288 (GTM::gtm_thread::try_commit): Changed memory order.
289 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
291 * config/linux/x86/futex_bits.h (sys_futex0): Same.
292 * config/linux/sh/futex_bits.h (sys_futex0): Same.
293 * config/linux/futex_bits.h (sys_futex0): Same.
294 * config/linux/futex.cc (futex_wait, futex_wake): Same.
295 * config/linux/futex.h (futex_wait, futex_wake): Same.
296 * config/linux/rwlock.h (gtm_rwlock::writers,
297 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
299 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
300 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
301 gtm_rwlock::write_unlock): Fix memory orders and fences.
302 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
303 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
304 gtm_rwlock::write_unlock): Same.
305 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
306 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
307 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
309 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
310 gl_wt_dispatch::load, gl_wt_dispatch::store,
311 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
312 orders and fences. Add comments.
314 2011-12-21 Jakub Jelinek <jakub@redhat.com>
316 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
317 * Makefile.in: Regenerated.
319 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
321 * configure.tgt: Add sh* case.
322 * config/sh/target.h: New file.
323 * config/sh/sjlj.S: New file.
324 * config/linux/sh/futex_bits.h: New file.
326 2011-12-14 Richard Henderson <rth@redhat.com>
328 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
329 * config/arm/sjlj.S, config/arm/target.h: New files.
330 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
331 (cfi_rel_offset): New.
332 * config/linux/futex_bits.h: New file.
333 * config/linux/futex.cc: Include futex_bits.h here...
334 * config/linux/futex.h: ... not here.
335 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
336 * configure.ac (ARCH_AM): New conditional.
337 * Makefile.in, configure: Rebuild.
338 * configure.tgt: Handle ARM.
340 2011-12-13 Richard Henderson <rth@redhat.com>
342 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
343 signed/unsigned comparison werror.
345 * local_atomic: New file.
346 * libitm_i.h: Include it.
347 (gtm_thread::shared_state): Use atomic template.
348 * beginend.cc (GTM::gtm_clock): Use atomic template.
349 (global_tid): Use atomic template if 64-bit atomics available.
350 (gtm_thread::gtm_thread): Update shared_state access.
351 (gtm_thread::trycommit): Likewise.
352 (choose_code_path): Update global_tid access.
353 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
354 * stmlock.h (GTM::gtm_clock): Use atomic template.
355 (gtm_get_clock, gtm_inc_clock): Update accesses.
356 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
357 redundant __sync_synchronize after atomic shared_state access.
358 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
359 (gtm_rwlock::write_lock_generic): Likewise.
360 (gtm_rwlock::read_unlock): Likewise.
361 * config/alpha/target.h (atomic_read_barrier): Remove.
362 (atomic_write_barrier): Remove.
363 * config/x86/target.h (atomic_read_barrier): Remove.
364 (atomic_write_barrier): Remove.
366 2011-11-30 Richard Henderson <rth@redhat.com>
368 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
369 * beginend.c (_ITM_abortTransaction): Update to match.
370 (GTM::gtm_thread::restart): Likewise.
371 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
372 * config/x86/sjlj.S (GTM_longjmp): Likewise.
374 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
376 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
377 * Makefile.in: Regenerate.
379 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
381 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
382 * alloc_cpp.cc: Generate dummy functions if we don't
383 HAVE_ELF_STYLE_WEAKREF.
384 * eh_cpp.cc: Likewise.
385 * configure: Regenerate.
386 * aclocal.m4: Likewise.
387 * config.h.in: Likewise.
388 * Makefile.in: Likewise.
389 * testsuite/Makefile.in: Likewise.
391 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
393 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
394 __USER_LABEL_PREFIX__ for targets that use it.
395 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
396 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
397 in portability to non-elf targets.
398 (GTM_longjmp): Likewise.
399 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
402 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
404 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
405 * testsuite/libitm.c/memset-1.c: Likewise.
407 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
409 * configure: Regenerate.
411 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
413 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
414 (LIBITM_ENABLE_SYMVERS): Handle sun style.
415 * Makefile.am: Handle sun style versioning.
416 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
417 * configure: Regenerate.
418 * Makefile.in: Regenerate.
420 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
422 * config/generic/asmcfi.h: Fix comment.
423 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
424 sequence without .hidden support, error for non-ELF targets.
425 (GTM_longjmp) [__ELF__]: Only use .hidden if
426 HAVE_ATTRIBUTE_VISIBILITY.
428 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
431 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
433 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
434 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
436 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
439 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
440 * configure: Regenerate.
442 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
444 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
446 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
448 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
450 (.note.GNU-stack): Only use if __linux__.
451 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
452 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
453 * testsuite/libitm.c/reentrant.c: Likewise.
454 * testsuite/libitm.c/simple-2.c: Likewise.
455 * testsuite/libitm.c/txrelease.c: Likewise.
456 * testsuite/libitm.c++/static_ctor.C: Likewise.
458 2011-11-10 Richard Henderson <rth@redhat.com>
460 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
461 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
462 * configure.ac (ARCH_X86_AVX): New conditional.
463 * Makefile.in, configure: Rebuild.
465 2011-11-09 Richard Henderson <rth@redhat.com>
467 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
468 * configure.ac: Use it.
469 * config.h.in, configure: Rebuild.
470 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
472 2011-11-09 Richard Henderson <rth@redhat.com>
474 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
475 * config/alpha/unaligned.h: Remove file.
476 * config/generic/unaligned.h: Remove file.
477 * config/x86/unaligned.h: Remove file.
478 * config/generic/cachepage.h: Remove file.
479 * config/posix/cachepage.cc: Remove file.
480 * config/generic/cacheline.cc: Remove file.
481 * config/x86/cacheline.cc: Remove file.
482 * config/generic/cacheline.h (gtm_cacheline): Remove the
483 store_mask, copy_mask, copy_mask_wb methods.
484 * config/x86/cacheline.h: Likewise.
485 * config/alpha/cacheline.h: Fall back to generic after setting size.
486 * config/generic/tls.cc (gtm_mask_stack): Remove.
487 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
488 (GTM_vpalignr_table): Remove.
489 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
490 (GTM_pshift_table): Remove.
491 * config/libitm_i.h: Don't include cachepage.h.
492 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
493 * Makefile.in, testsuite/Makefile.in: Rebuild.
495 2011-11-09 Richard Henderson <rth@redhat.com>
497 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
498 to emit branch prediction hint.
500 * config/x86/sjlj.S: Protect elf directives with __ELF__.
501 Protect .note.GNU-stack with __linux__.
503 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
504 * configure, aclocal.m4, config.h.in: Rebuild.
505 * config/generic/asmcfi.h: New file.
506 * config/x86/sjlj.S: Use it.
508 2011-11-08 Richard Henderson <rth@redhat.com>
510 * local.cc (_ITM_LB): Use a normal call, not a function alias.
512 2011-11-08 Richard Henderson <rth@redhat.com>
514 * configure.tgt: Test correct directory for supported cpus.
516 * configure.ac: Exit if unsupported.
517 * configure: Rebuild.
518 * configure.tgt: Delete boilerplate from libgomp for unsupported
519 targets. Set UNSUPPORTED for unsupported targets.
521 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
523 * configure.tgt: Handle i386 like i[456]86.
524 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
526 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
527 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
529 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
531 * method-wbetl.cc: Update copyright notice.
538 * useraction.cc: Same.
542 * config/generic/tls.cc: Same.
543 * config/generic/cacheline.h: Same.
544 * config/generic/cachepage.h: Same.
545 * config/generic/cacheline.cc: Same.
546 * config/generic/unaligned.h: Same.
547 * config/x86/cacheline.h: Same.
548 * config/x86/cacheline.cc: Same.
549 * config/x86/unaligned.h: Same.
550 * config/alpha/cacheline.h: Same.
551 * config/alpha/unaligned.h: Same.
552 * config/alpha/sjlj.S: Same.
553 * config/posix/cachepage.cc: Same.
554 * config/linux/futex.h: Same.
555 * config/linux/alpha/futex_bits.h: Same.
557 2011-11-04 Torvald Riegel <triegel@redhat.com>
559 * libitm.texi: No cover text and invariant sections.
561 2011-11-03 Richard Henderson <rth@redhat.com>
563 * local_type_traits: New file.
564 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
566 2011-11-03 Richard Henderson <rth@redhat.com>
568 * configure.ac: Don't test for gfortran.
569 * configure: Rebuild.
571 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
572 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
574 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
576 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
577 * testsuite/libitm.c/memset-1.c: Same.
578 * testsuite/libitm.c/c.exp: Same.
579 * testsuite/lib/libitm-dg.exp: Same.
580 * testsuite/lib/libitm.exp: Same.
581 * testsuite/libitm.c++/c++.exp: Same.
583 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
585 * testsuite/config/default.exp: Update copyright date.
586 * configure.ac: Add copyright info.
587 * configure.tgt: Same.
589 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
591 * testsuite/libitm.c/reentrant.c: XFAIL.
592 * testsuite/libitm.c++/static_ctor.C: XFAIL.
594 2011-10-29 Torvald Riegel <triegel@redhat.com>
596 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
598 (_ITM_abortTransaction): Handle aborts of outer transactions.
600 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
601 * libitm.texi: Document aborts of outer transactions.
602 * testsuite/libitm.c/cancel.c: New file.
604 2011-10-19 Torvald Riegel <triegel@redhat.com>
606 * testsuite/*: Change __transaction to __transaction_atomic or
607 __transaction_relaxed.
609 2011-10-19 Torvald Riegel <triegel@redhat.com>
611 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
614 2011-10-19 Torvald Riegel <triegel@redhat.com>
616 * libitm_i.h: Add gl_wt dispatch.
617 * retry.cc (parse_default_method): Same.
618 * method-gl.cc: New file.
619 * Makefile.am: Use method-gl.cc.
620 * Makefile.in: Rebuild.
622 2011-10-19 Torvald Riegel <triegel@redhat.com>
624 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
625 safety if requested by a TM method.
626 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
627 privatization safety.
628 * method-serial.cc: Same.
630 2011-10-19 Torvald Riegel <triegel@redhat.com>
632 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
633 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
634 undolog-related member functions from *_local to *_undolog.
635 * local.cc (gtm_thread::commit_undolog): Same.
636 * beginend.cc (GTM::gtm_thread::trycommit): Same.
637 (GTM::gtm_thread::rollback): Roll back undolog before
638 dispatch-specific rollback.
640 2011-10-19 Torvald Riegel <triegel@redhat.com>
642 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
643 re-initialization of the current method group.
644 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
646 2011-10-19 Torvald Riegel <triegel@redhat.com>
648 * alloc.cc (commit_allocations_2): Do not free transaction-local
649 memory when committing a nested transaction.
651 2011-10-19 Torvald Riegel <triegel@redhat.com>
653 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
654 serial-irrevocable dispatch, not serial.
656 2011-10-19 Torvald Riegel <triegel@redhat.com>
658 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
660 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
661 * method-serial.cc: Implement begin_or_restart().
662 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
663 dispatch-specific begin_or_restart().
664 (GTM::gtm_thread::restart): Same.
666 2011-08-23 Torvald Riegel <triegel@redhat.com>
668 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
669 restarting without switching to serial mode.
670 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
671 transaction state. Choose closed-nesting alternative if available.
672 (GTM::gtm_thread::set_default_dispatch): New.
673 (parse_default_method): New.
674 (GTM::gtm_thread::number_of_threads_changed): New.
675 * method-serial.cc (GTM::serial_mg): New method group class.
676 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
678 (GTM::serial_dispatch): Same.
679 (GTM::serialirr_onwrite_dispatch): Same.
680 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
681 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
683 (GTM::gtm_thread::gtm_thread): Same.
684 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
685 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
686 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
687 choose dispatch but set state according to dispatch here.
688 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
689 (GTM::method_group): New class.
690 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
691 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
692 * libitm.texi: Document TM methods, method groups, method life cycle.
693 Rename method sets to method groups.
695 2011-08-23 Torvald Riegel <triegel@redhat.com>
697 * config/x86/tls.h: Moved to ...
698 * config/linux/x86/tls.h: ... here.
700 2011-08-23 Torvald Riegel <triegel@redhat.com>
702 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
704 * config/x86/sjlj.S: Same.
706 2011-08-19 Torvald Riegel <triegel@redhat.com>
708 * config/linux/rwlock.h: New file.
709 * config/linux/rwlock.c: New file.
710 * configure.ac: Reenable futex support (undo SVN rev 157758).
712 * configure.tgt: Same.
713 * config/linux/alpha/futex_bits.h: Same.
714 * config/linux/futex.h: Same. Return number of woken processes.
715 * config/linux/futex.cc: Same.
716 (futex_wait): Remove spinning.
717 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
718 Use __x86_64__ instead of __LP64__.
719 * aclocal.m4: Include generic futex checks.
720 * configure: Rebuild.
721 * Makefile.in: Rebuild.
722 * testsuite/Makefile.in: Rebuild.
723 * beginend.cc: Include pthread.h.
724 * config/posix/cachepage.cc: Same.
726 2011-08-12 Torvald Riegel <triegel@redhat.com>
728 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
729 (abi_disp, set_abi_disp): Move to tx's TLS slot.
731 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
733 (GTM::gtm_thread::thread_num): Removed.
734 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
735 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
736 tx-to-thread renaming.
737 * beginend.cc: Adapted to tx-to-thread renaming.
738 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
739 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
740 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
741 gtm_transaction to gtm_thread.
742 (_ITM_getThreadnum): Removed. Not supported anymore.
743 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
744 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
745 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
746 gtm_tx-to-gtm_thr renaming if necessary.
753 * alloc_cpp.cc: Same.
754 * method-serial.cc: Same.
755 * config/generic/tls.cc: Same.
756 * config/posix/rwlock.h (gtm_rwlock): Same.
757 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
759 2011-08-12 Torvald Riegel <triegel@redhat.com>
761 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
763 (gtm_rwlock::read_unlock): Same.
764 (gtm_rwlock::write_lock_generic): New. Generalized from ...
765 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
766 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
767 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
768 w_upgrade. Replaced by per-transaction flags (in shared_state).
769 Added c_confirmed_writers.
770 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
771 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
772 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
773 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
774 * beginend.cc (GTM::gtm_transaction::begin_transaction,
775 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
776 * libitm.texi: Document locking conventions and implementations in
779 2011-08-12 Torvald Riegel <triegel@redhat.com>
781 * libitm_i.h (next_tx): Add list of all threads' transaction.
782 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
783 transaction with list of transactions and ...
784 (thread_exit_handler): ... deregister here.
785 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
786 * config/x86/target.h: Same.
788 2011-08-12 Torvald Riegel <triegel@redhat.com>
790 * testsuite/libitm.c++/static_ctor.C: New file.
792 2011-08-12 Torvald Riegel <triegel@redhat.com>
794 * testsuite/libitm.c/reentrant.c: New file.
796 2011-08-12 Torvald Riegel <triegel@redhat.com>
798 * config/generic/tls.h: Remove the free list for transactions and ...
799 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
800 (GTM::gtm_transaction::operator delete): ... and release here.
801 (thread_exit_handler): New. Delete tx when thread terminates.
802 (thread_exit_init): New.
803 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
804 * testsuite/libitm.c/txrelease.c: New file.
806 2011-08-12 Torvald Riegel <triegel@redhat.com>
808 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
809 * testsuite/libitm.c/notx.c: New file.
811 2011-08-12 Torvald Riegel <triegel@redhat.com>
813 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
814 * libitm_i.h (local_tid): ... to here.
815 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
816 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
818 2011-08-12 Torvald Riegel <triegel@redhat.com>
820 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
821 serialirr_onwrite_dispatch as new default for now.
822 * method-serial.cc (serialirr_onwrite_dispatch): New.
823 (GTM::dispatch_serialirr_onwrite): New.
826 2011-08-12 Torvald Riegel <triegel@redhat.com>
828 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
829 * query.cc (_ITM_getTransactionId): There is no active transaction if
830 the current nesting level is zero.
832 2011-07-28 Torvald Riegel <triegel@redhat.com>
834 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
837 2011-07-28 Torvald Riegel <triegel@redhat.com>
839 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
840 transaction properties from the caller instead of from the
843 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
845 2011-07-28 Torvald Riegel <triegel@redhat.com>
847 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
848 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
850 * method-serial.cc: Same.
851 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
852 flat nesting as default, and closed nesting on demand.
853 (GTM::gtm_transaction::rollback): Same.
854 (_ITM_abortTransaction): Same.
855 (GTM::gtm_transaction::restart): Same.
856 (GTM::gtm_transaction::trycommit): Same.
857 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
858 (choose_code_path): New.
859 (GTM::gtm_transaction_cp::save): New.
860 (GTM::gtm_transaction_cp::commit): New.
861 * query.cc (_ITM_inTransaction): Support flat nesting.
862 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
863 (GTM::gtm_transaction): Support flat and closed nesting.
864 * alloc.cc (commit_allocations_2): New.
865 (commit_cb_data): New helper struct.
866 (GTM::gtm_transaction::commit_allocations): Handle nested
868 * libitm.texi: Update user action section, add description of nesting.
870 2011-07-28 Torvald Riegel <triegel@redhat.com>
872 * libitm_i.h: Add closed nesting as restart reason.
873 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
875 2011-07-28 Torvald Riegel <triegel@redhat.com>
877 * useraction.cc: Use vector instead of list to store actions.
878 Also support partial rollbacks for closed nesting.
879 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
882 2011-07-28 Torvald Riegel <triegel@redhat.com>
884 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
885 closed_nesting flags, as well as a closed nesting alternative.
886 * method-serial.cc: Same.
887 (serial_dispatch): Renamed to serialirr_dispatch.
888 (GTM::dispatch_serialirr): Same.
889 (serial_dispatch_ul): Renamed to serial_dispatch.
890 (GTM::dispatch_serial): Same.
892 2011-07-28 Torvald Riegel <triegel@redhat.com>
894 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
896 2011-07-28 Torvald Riegel <triegel@redhat.com>
898 * aatree.h (aa_tree::remove): New.
899 (aa_tree::operator new): Add placement new.
901 2011-07-02 Torvald Riegel <triegel@redhat.com>
903 * containers.h: New file.
904 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
905 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
906 * common.h: ... to here.
907 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
910 2011-06-30 Torvald Riegel <triegel@redhat.com>
912 * libitm_i.h (STATE_ABORTING): Remove.
913 * beginend.cc (_ITM_abortTransaction): Same.
914 (GTM::gtm_transaction::trycommit_and_finalize): Same.
915 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
916 (_ITM_rollbackTransaction): Remove.
919 * libitm.texi: Document these ABI changes.
921 2011-06-30 Torvald Riegel <triegel@redhat.com>
923 * libitm.texi: New file.
924 * Makefile.am: Add libitm.texi.
925 * Makefile.in: Rebuild.
927 2011-06-30 Torvald Riegel <triegel@redhat.com>
929 * libitm_i.h: Move parts to common.h and dispatch.h.
930 * common.h: New file.
931 * dispatch.h: New file, new dispatch class.
932 Rename GTM::abi_dispatch::lock_type to ls_modifier.
933 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
934 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
935 decision to retry.cc.
936 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
938 (GTM::gtm_transaction::decide_begin_dispatch): Same.
939 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
941 * barrier.cc: Use new barriers definitions.
942 (abi_dispatch::memmove_overlap_check): New.
943 * config/x86/x86_sse.cc: Same.
944 * config/x86/x86_avx.cc: Same.
945 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
947 * Makefile.in: Rebuild.
948 * method-readonly.cc: Remove.
949 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
950 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
952 2011-06-30 Torvald Riegel <triegel@redhat.com>
954 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
955 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
956 * testsuite/libitm.c/dropref-2.c: Same.
957 * testsuite/libitm.c/dropref.c: Same.
959 2011-06-30 Torvald Riegel <triegel@redhat.com>
961 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
962 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
963 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
967 * config/generic/tls.h: Same.
968 * config/x86/tls.h: Same.
972 * method-readonly.cc: Same.
973 * method-serial.cc: Same.
974 * method-wbetl.cc: Same.
977 2011-03-03 Richard Henderson <rth@redhat.com>
979 * config/posix/rwlock.cc (write_upgrade): Add missing case.
980 From Patrik Marlier <patrick.marlier@unine.ch>.
982 2011-02-03 Richard Henderson <rth@redhat.com>
984 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
985 * configure.ac: Use it.
986 * configure, config.h.in: Rebuild.
987 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
988 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
989 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
990 * libitm.map: Use wildcards to match size_t mangling.
992 2010-12-14 Richard Henderson <rth@redhat.com>
994 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
995 blocks of TIDs per thread.
996 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
997 (setup_gtm_thr): Return the thread structure.
998 * config/x86/tls.h (setup_gtm_thr): Likewise.
1000 2010-12-14 Richard Henderson <rth@redhat.com>
1002 * clone.cc (table_lock): Remove.
1003 (find_clone): Don't take it.
1004 (ExcludeTransaction): New helper class.
1005 (_ITM_registerTMCloneTable): Use it.
1006 (_ITM_deregisterTMCloneTable): Likewise.
1008 2010-12-14 Richard Henderson <rth@redhat.com>
1010 * config/x86/tls.h: New file.
1012 2010-07-15 Richard Henderson <rth@redhat.com>
1014 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1015 * Makefile.in: Rebuild.
1017 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1019 * method-wbetl.cc (trydropreference): Fix source line.
1021 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1023 * libitm.h: Add comment.
1024 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1026 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1028 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1029 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1030 available, use pthread mutexes.
1031 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1032 * config.h.in: Regenerate.
1033 * configure: Regenerate.
1035 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1037 * libitm.h (ITM_PURE): Define.
1038 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1040 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1042 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1043 (validate): Add comment.
1044 (trydropreference): New.
1045 * method-readonly.cc (class readonly_dispatch): Add
1047 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1048 Call trydropreference().
1049 * libitm.h (_ITM_dropReferences): Remove const attribute.
1050 * method-serial.cc (class serial_dispatch): Add trydropreference.
1051 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1053 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1055 * memcpy.cc (do_memcpy): Comment.
1057 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1059 * barrier.tpl: Add comments throughout.
1061 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1063 * method-wbetl.cc (struct w_entry): Add comments.
1067 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1069 * alloc_c.cc (_ITM_dropReferences): New.
1070 * libitm.map (_ITM_dropReferences): Add.
1071 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1072 * libitm_i.h (struct gtm_transaction): Declare
1073 drop_references_allocations and drop_references_local.
1074 * local.cc (rollback_local): Ignore memory when applicable.
1075 (drop_references_local): New.
1077 2010-06-23 Richard Henderson <rth@redhat.com>
1079 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1080 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1081 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1082 * config/alpha/target.h: Likewise.
1083 * config/generic/tls.cc (gtm_mask_stack): Use it.
1085 2010-06-23 Richard Henderson <rth@redhat.com>
1087 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1088 a mutex instead of trying a lock-free compare-and-swap on the list.
1089 (gtm_cacheline_page::operator delete): Likewise.
1091 2010-06-16 Richard Henderson <rth@redhat.com>
1093 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1094 that overlap the libitm stack.
1095 * barrier.tpl: Mark incoming stack.
1096 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1097 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1098 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1099 * memcpy.cc, memset.cc: Likewise.
1100 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1101 * config/generic/tls.h (gtm_thread): Add stack_top member.
1102 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1103 * libitm_i.h (gtm_mask_stack): Declare.
1104 * config/generic/tls.cc: New file.
1105 * Makefile.am (libitm_la_SOURCES): Add it.
1106 (AM_CXXFLAGS): Turn off exceptions.
1107 * Makefile.in: Rebuild.
1109 2010-06-16 Richard Henderson <rth@redhat.com>
1111 * alloc.cc (struct gtm_alloc_action): Move definition ...
1112 * libitm_i.h: ... here.
1113 (class gtm_transaction): Declare new and delete.
1114 * beginend.cc (alloc_tx): Reformulate as operator new.
1115 (free_tx): Reformulate as operator delete.
1116 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1118 2010-06-11 Richard Henderson <rth@redhat.com>
1120 * clone.cc (clone_entry_compare): Fix typo.
1121 From Patrik Marlier <patrick.marlier@unine.ch>.
1123 2010-05-13 Richard Henderson <rth@redhat.com>
1125 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1128 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1130 * libitm_i.h (struct gtm_transaction): Remove
1131 get_allocation_size.
1132 (record_allocation): Remove size parameter.
1133 * libitm.map (_ITM_realloc): Remove.
1134 * alloc_c.cc (_ITM_realloc): Remove.
1135 (_ITM_malloc): Remove size argument to record_allocation.
1136 (_ITM_calloc): Same.
1137 * alloc_cpp.cc (_ZGTtnwm): Same.
1138 (_ZGTtnwmRKSt9nothrow_t): Same.
1140 (_ZGTtnamRKSt9nothrow_t): Same.
1141 * alloc.cc (struct gtm_alloc_action): Remove size.
1142 (get_allocation_size): Remove.
1143 (commit_allocations): Add comment.
1144 (record_allocation): Remove size parameter.
1145 (forget_allocation): Remove set of size.
1147 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1149 * Makefile.am (abi_version): New.
1150 (AM_CXXFLAGS): Pass abi_version.
1151 * Makefile.in: Regenerate.
1152 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1154 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1156 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1157 _ITM_getTMCloneOrIrrevokable.
1158 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1159 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1161 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1163 * configure.ac: Remove Linux futex support.
1164 * configure.tgt (config_path): Same.
1165 * Makefile.am: Same.
1166 * config/linux: Remove entire directory.
1167 * configure: Rebuild.
1168 * Makefile.in: Rebuild.
1169 * testsuite/Makefile.in: Rebuild.
1171 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1173 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1174 switching to serial mode.
1175 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1177 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1179 * configure.tgt: Add emacs -*- tags.
1180 * barrier.tpl: Same.
1182 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1184 * Makefile.am: Rename serial.cc to method-serial.cc.
1185 * Makefile.in: Regenerate with automake 1.11.1.
1186 * testsuite/Makefile.in: Same.
1187 * aclocal.m4: Regenerate with aclocal 1.11.1.
1188 * method-serial.cc: Rename from serial.cc.
1189 * libitm_i.h (struct gtm_transaction): Update comment on
1192 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1194 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1195 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1197 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1199 * configure: Rebuild.
1201 2009-11-12 Richard Henderson <rth@redhat.com>
1203 * Rewrite everything in C++.
1205 2009-11-03 Richard Henderson <rth@redhat.com>
1207 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1208 * Makefile.am (libitm_la_SOURCES): Add them.
1209 * configure.ac (ARCH_X86): New conditional.
1210 * Makefile.in, configure: Rebuild.
1211 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1212 Move futex setup into "other system configury" case.
1213 * local.c (rollback_local): Merge into ...
1214 (GTM_rollback_local): ... here.
1215 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1216 (_ITM_LB): Define as an alias to GTM_LB.
1218 2009-11-03 Richard Henderson <rth@redhat.com>
1220 * method-readonly.c: New file.
1221 * Makefile.am (libitm_la_SOURCES): Add it.
1222 * Makefile.in: Rebuild.
1223 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1224 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1225 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1226 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1227 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1228 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1229 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1230 gtm_get_clock, gtm_inc_clock): New.
1231 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1232 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1233 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1234 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1235 replace uses with new libitm_i.h symbols.
1236 (dispatch_wbetl): Rename from wbetl_dispatch.
1237 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1238 away from dispatch_readonly; abort if the beginTransaction call
1239 asserted that the transaction was readonly.
1241 2009-11-03 Richard Henderson <rth@redhat.com>
1243 * memset.c: New file.
1244 * Makefile.am (libitm_la_SOURCES): Add it.
1245 * Makefile.in: Rebuild.
1246 * testsuite/libitm.c/memset-1.c: New.
1248 2009-11-03 Richard Henderson <rth@redhat.com>
1250 * dispatch.c: Remove file.
1251 * useraction.c (struct gtm_user_action): Move from libitm.h.
1252 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1253 (serial_memset, serial_memmove, serial_memcpy): Remove.
1254 (serial_W*, serial_R*): Remove.
1255 (serial_dispatch): Update to match.
1256 * configure.ac: Move Werror down below configure checks. Don't
1257 check for sys/loadavg.h, do check for malloc.h. Don't check for
1258 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1259 Use GCC_AC_FUNC_MMAP_BLACKLIST
1260 * libitm.h: Split out all internal items to...
1261 * libitm_i.h: ... here. New file.
1262 * copymask.c: New file.
1263 * local.c (struct gtm_local_undo): Move from libitm.h.
1264 (GTM_alloc_local): Rename from alloc_local; export.
1265 * memcpy.c: New file.
1266 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1267 * config/posix/page.c: New file.
1268 * config/posix/target_tls.h: Remove file.
1269 * barrier.c: New file.
1270 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1272 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1273 * method-wbetl.c: Rewrite for new cacheline methods.
1274 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1276 * config/alpha/sjlj.S: Fix typo.
1277 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1278 * config/alpha/copymask.c: New file.
1279 * config/alpha/target.h (CACHELINE_SIZE): New.
1280 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1282 * config/x86/target_i.h: Copy functions from x86/target.h.
1283 * config/x86/copymask.c: New file.
1284 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1285 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1286 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1287 * config/x86/target_tls.h: Move contents to target_i.h.
1289 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1290 * testsuite/libitm.c/memcpy-1.c: New.
1292 2009-10-22 Richard Henderson <rth@redhat.com>
1294 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1295 (AM_CCASFLAGS): New.
1296 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1297 saving/restoring _AC_ARG_VAR_PRECIOUS.
1298 * Makefile.in, aclocal.m4, config.h.in, configure,
1299 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1301 2009-10-22 Richard Henderson <rth@redhat.com>
1303 * testsuite/*: Update for new compiler syntax.
1305 2009-10-21 Richard Henderson <rth@redhat.com>
1307 * libitm.h (_ITM_abortReason): Add outerAbort.
1309 2009-08-03 Richard Henderson <rth@redhat.com>
1311 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1312 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1313 * method-wbetl.c (struct w_entry): Remove mask.
1314 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1317 2009-07-22 Richard Henderson <rth@redhat.com>
1319 * eh_cpp.c: New file.
1320 * Makefile.am (libitm_la_SOURCES): Add it.
1321 * Makefile.in: Rebuild.
1322 * beginend.c (GTM_rollback_transaction): Undo exception state.
1323 (GTM_trycommit_transaction): Mark inline.
1324 (GTM_trycommit_and_finalize_transaction): Split out from ...
1325 (_ITM_commitTransaction): ... here.
1326 (_ITM_commitTransactionEH): New function.
1327 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1328 cxa_unthrown, eh_in_flight; reorder.
1330 * testsuite/libitm.c++/c++.exp: New.
1331 * testsuite/libitm.c++/eh-1.C: New.
1333 * aatree.c (aa_free): Remove REGPARM.
1334 * aatree.h: Remove all REGPARM.
1336 2009-07-18 Richard Henderson <rth@redhat.com>
1338 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1339 * Makefile.am (libitm_la_SOURCES): Add them.
1340 * Makefile.in: Rebuild.
1341 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1342 (GTM_trycommit_transaction): Likewise.
1343 * libitm.h: Include aatree.h
1344 (struct gtm_alloc_action): New.
1345 (struct gtm_transaction): Add alloc_actions.
1346 (GTM_record_allocation, GTM_forget_allocation): Declare.
1347 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1348 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1349 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1350 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1351 _ZGTtdaPvRKSt9nothrow_t): Export.
1353 2009-07-18 Richard Henderson <rth@redhat.com>
1355 * target_tls.h: Move ...
1356 * config/posix/target_tls.h: ... here.
1358 2009-07-07 Richard Henderson <rth@redhat.com>
1360 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1362 2009-07-07 Richard Henderson <rth@redhat.com>
1366 2009-07-07 Richard Henderson <rth@redhat.com>
1368 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1369 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1371 * configure.tgt: Don't use -ftls-model for x86 linux.
1372 * libitm.h: Include target.h after standard includes.
1373 (_gtm_thr): Rename from gtm_thr.
1374 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1375 (gtm_disp, set_gtm_disp): New.
1376 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1377 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1378 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1380 2009-07-07 Richard Henderson <rth@redhat.com>
1382 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1384 2009-07-06 Richard Henderson <rth@redhat.com>
1386 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1387 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1388 (_ITM_beginTransaction): Take variadic arguments.
1389 (_ITM_registerThrownObject): Declare.
1390 * beginend.c, serial.c: Update.
1391 * libitm.map: Add _ITM_registerThrownObject.
1393 2009-01-28 Richard Henderson <rth@redhat.com>
1395 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1396 * Makefile.in: Rebuild.
1397 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1398 (GTM_restart_transaction): Fix uninstrumented code check.
1399 * retry.c (GTM_decide_retry_strategy): Add serial check.
1400 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1401 automatically go irrevokable when in serial mode.
1402 * clone.c: New file.
1403 * libitm.h, libitm.map: Update.
1405 2009-01-27 Richard Henderson <rth@redhat.com>
1407 * Makefile.am (LTCCASCOMPILE): Define.
1408 (libitm_la_SOURCES): Add methid-wbetl.c.
1409 * testsuite/Makefile.am: New
1410 * configure.ac: Add testsuite/Makefile.
1411 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1412 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1413 (_ITM_abortTransaction): Finalize implementation method; pass
1414 transaction properties to longjmp.
1415 (GTM_restart_transaction): Split out from ...
1416 (_ITM_commitTransaction): ... here.
1417 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1418 Move to config/x86/target.h.
1419 * config/linux/alpha/futex_bits.h: New.
1420 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1421 * config/x86/target.h: Disable target types for 32-bit.
1422 * config/alpha/sjlj.S, config/alpha/target.h: New.
1423 * libitm.h (struct gtm_dispatch): Add init, fini.
1424 (enum restart_reason): New.
1425 (struct gtm_transaction): Add method and restarts.
1426 * retry.c (GTM_decide_retry_strategy): Implement.
1427 * serial.c (serial_init, serial_fini): New.
1428 (GTM_serialmode): Finialize outgoing method.
1429 * method-wbetl.c: New.
1431 2008-12-09 Richard Henderson <rth@redhat.com>
1433 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1434 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1435 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1436 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1437 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1438 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1439 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1440 * serial.c (serial_R##T, serial_W##T): Likewise.
1442 2008-11-21 Richard Henderson <rth@redhat.com>