1 2014-05-19 Richard Henderson <rth@redhat.com>
3 * config/aarch64/sjlj.S: New file.
4 * config/aarch64/target.h: New file.
5 * configure.tgt: Enable aarch64.
7 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9 * config/generic/asmcfi.h: Also check for
10 __GCC_HAVE_DWARF2_CFI_ASM.
12 2013-04-02 Richard Henderson <rth@redhat.com>
14 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
15 * config/arm/target.h, config/sh/target.h: Likewise.
16 * config/sparc/target.h, config/x86/target.h: Likewise.
18 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20 * config/linux/futex_bits.h: Include errno.h.
21 (sys_futex0): If syscall returns -1, return -errno rather than
24 2014-03-26 Joseph Myers <joseph@codesourcery.com>
26 * libitm.texi (Index): Rename to Library Index.
28 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
31 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
32 (x86_avx.lo): Append -mavx to CXXFLAGS.
33 * Makefile.in: Regenerate.
35 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
37 Update copyright years
39 2014-01-02 Tobias Burnus <burnus@net-b.de>
41 * libitm.texi: Bump @copying's copyright year.
43 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
46 (FUNC): Define ELFv2 variant.
53 2013-09-20 Alan Modra <amodra@gmail.com>
55 * configure: Regenerate.
57 2013-08-30 Torvald Riegel <triegel@redhat.com>
59 * config/posix/rwlock.cc: Fix initialization order.
61 2013-08-30 Torvald Riegel <triegel@redhat.com>
63 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
64 (htm_fastpath): Assign an asm name.
65 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
67 (_ITM_actions): Likewise.
68 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
70 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
71 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
72 field to the start of the structure.
73 * config/linux/rwlock.h (gtm_rwlock): Update comments.
74 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
75 handling for custom HTM fast paths.
77 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
79 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
81 * configure.tgt: Add -msoft-float to XCFLAGS.
83 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
85 * configure.tgt: Add -msoft-float to XCFLAGS.
87 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
89 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
90 (htm_transaction_active): Enable zEC12 instructions in the
92 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
94 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
96 * acinclude.m4: Add htm asm check for s390.
97 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
98 * configure: Regenerate.
99 * config/s390/target.h: Remove __HTM__ check.
100 (htm_available): Call getauxval to get hwcaps and check whether
101 HTM is available or not.
103 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
105 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
106 * configure.ac: Use it.
107 (AC_CHECK_HEADERS): Check for sys/auxv.h.
108 (AC_CHECK_FUNCS): Check for getauxval.
109 * config.h.in, configure: Rebuild.
110 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
111 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
112 (USE_HTM_FASTPATH): Define.
113 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
114 _HTM_RETRIES) New macros.
115 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
116 htm_begin_success, htm_commit, htm_transaction_active): New functions.
118 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
120 * config/s390/target.h: Include htmintrin.h.
121 (_HTM_ITM_RETRIES): New macro definition.
122 (htm_available, htm_init, htm_begin, htm_begin_success)
123 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
125 2013-06-20 Iain Sandoe <iain@codesourcery.com>
126 Cesar Philippidis <cesar@codesourcery.com>
128 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
129 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
130 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
131 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
133 2013-06-20 Torvald Riegel <triegel@redhat.com>
135 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
136 (_ITM_getTransactionId): Same.
137 * config/x86/target.h (htm_transaction_active): New.
139 2013-06-20 Torvald Riegel <triegel@redhat.com>
142 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
145 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
148 * local_atomic (__always_inline): Always define our version.
149 (__calculate_memory_order): Mark inline.
150 (atomic_thread_fence): Ditto.
151 (atomic_signal_fence): Ditto.
152 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
153 (atomic_bool::atomic_flag_clear_explicit): Ditto.
154 (atomic_bool::atomic_flag_test_and_set): Ditto.
155 (atomic_bool::atomic_flag_clear): Ditto.
157 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
159 * config/s390/sjlj.S: New file.
160 * config/s390/target.h: New file.
161 * configure.tgt: Set options for S/390.
163 2013-03-23 Andi Kleen <ak@linux.intel.com>
165 * local_atomic (__always_inline): Add.
166 (__calculate_memory_order, atomic_thread_fence,
167 atomic_signal_fence, test_and_set, clear, store, load,
168 exchange, compare_exchange_weak, compare_exchange_strong,
169 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
170 Add __always_inline to force inlining.
172 2013-02-11 Iain Sandoe <iain@codesourcery.com>
173 Jack Howarth <howarth@bromo.med.uc.edu>
174 Patrick Marlier <patrick.marlier@gmail.com>
177 * alloc_cpp.cc: Enable function declarations on darwin.
178 * eh_cpp.cc: Likewise.
180 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
182 Update copyright years.
184 2012-11-09 Torvald Riegel <triegel@redhat.com>
186 * beginend.cc (htm_fastpath): New.
187 (gtm_thread::begin_transaction, _ITM_commitTransaction,
188 _ITM_commitTransactionEH): Add HTM fastpath handling.
189 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
190 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
191 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
192 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
193 * configure.tgt: Add -mrtm to XCFLAGS.
194 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
195 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
196 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
197 * retry.cc (parse_default_method): Add HTM method parsing.
198 (gtm_thread::number_of_threads_changed): Use HTM by default if
201 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
203 * configure: Regenerate.
205 2012-10-31 Richard Henderson <rth@redhat.com>
207 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
208 * configure.ac: Use it.
209 * config.h.in, configure: Rebuild.
210 * testsuite/Makefile.in: Rebuild.
212 2012-10-24 Torvald Riegel <triegel@redhat.com>
214 * libitm.texi: Clarify ABI requirements for data-logging functions.
216 2012-10-24 Torvald Riegel <triegel@redhat.com>
218 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
219 it requires serial mode instead of assuming that for certain
221 * dispatch.h (abi_dispatch::requires_serial): New.
222 (abi_dispatch::abi_dispatch): Adapt.
223 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
224 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
225 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
226 serial_dispatch::serial_dispatch,
227 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
229 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
231 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
232 and ia32 declarations some more.
233 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
235 2012-09-20 Jakub Jelinek <jakub@redhat.com>
238 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
239 * configure: Regenerate.
240 * Makefile.in: Regenerate.
242 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
244 * configure: Regenerated.
246 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
248 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
250 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
252 * eh_cpp.cc: Fix __cxa_end_catch declaration.
254 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
256 * configure: Regenerated.
258 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
261 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
264 2012-04-03 Tristan Gingold <gingold@adacore.com>
266 * configure: Regenerate.
268 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
271 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
273 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
275 * testsuite/lib/libitm.exp: load fortran-modules.exp
277 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279 * configure.tgt (*-*-irix6*): Remove.
281 2012-03-13 Torvald Riegel <triegel@redhat.com>
284 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
287 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
289 * configure.tgt (*-*-osf*): Remove.
290 * configure: Regenerate.
292 2012-03-05 Torvald Riegel <triegel@redhat.com>
294 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
295 memtransfer/memset if size isn't larger than zero.
297 2012-03-02 Torvald Riegel <triegel@redhat.com>
299 * libitm.texi: Link to specification and add a usage example.
301 2012-02-24 Torvald Riegel <triegel@redhat.com>
303 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
304 default dispatch for more than 1 thread to ml_wt.
306 2012-02-20 Torvald Riegel <triegel@redhat.com>
308 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
310 2012-02-20 Torvald Riegel <triegel@redhat.com>
312 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
314 2012-02-20 Torvald Riegel <triegel@redhat.com>
316 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
317 serial mode corner cases made obsolete by prior gtm_rwlock changes.
318 (gl_wt_dispatch.rollback): Same.
320 2012-02-20 Torvald Riegel <triegel@redhat.com>
322 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
324 2012-02-20 Torvald Riegel <triegel@redhat.com>
326 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
327 for RfW src. Optimize number of calls to gtm_thr.
329 2012-02-20 Torvald Riegel <triegel@redhat.com>
331 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
333 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
334 (default_dispatch): Make atomic.
335 (GTM::gtm_thread::set_default_dispatch): Access atomically.
336 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
337 use decide_begin_dispatch() if default_dispatch might have changed.
338 (GTM::gtm_thread::number_of_threads_changed): Initialize
339 default_dispatch here.
341 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
342 Patrick Marlier <patrick.marlier@gmail.com>
345 * alloc_cpp.cc: No dummy definitions for darwin.
346 * eh_cpp.cc: Likewise.
348 2012-02-14 Richard Henderson <rth@redhat.com>
350 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
352 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
354 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
356 2012-02-14 Torvald Riegel <triegel@redhat.com>
358 * libitm_i.h (GTM::gtm_rwlog_entry): New.
359 (GTM::gtm_thread): Add read and write logs.
360 (GTM::dispatch_ml_wt): Declare.
361 * retry.cc (parse_default_method): Support ml_wt.
362 * method-ml.cc: New file.
363 * Makefile.am: Add method-ml.cc.
364 * Makefile.in: Regenerate.
366 2012-02-14 Torvald Riegel <triegel@redhat.com>
368 * dispatch.h (GTM::abi_dispatch::supports): New.
369 (GTM::method_group::reinit): New.
370 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
371 (GTM::gtm_thread::number_of_threads_changed): Check that the method
372 supports the current situation.
374 2012-02-14 Torvald Riegel <triegel@redhat.com>
376 * util.cc (GTM::xcalloc): New.
377 * common.h (GTM::xcalloc): Declare.
379 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
381 * config/sparc/target.h (cpu_relax): Read from CC register.
382 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
384 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
386 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
388 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
390 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
391 * config/sparc/cacheline.h: New file.
392 * config/sparc/target.h: Likewise.
393 * config/sparc/sjlj.S: Likewise.
394 * config/linux/sparc/futex_bits.h: Likewise.
396 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
398 * configure.ac (link_itm): Fix comment.
399 * configure: Regenerate.
400 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
402 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
406 Correct libgomp references.
408 2012-01-24 Torvald Riegel <triegel@redhat.com>
410 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
413 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
415 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
417 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
418 offset values. Do not copy return address. Decrement stack
420 (GTM_longjump) [__x86_64__]: Update offset values.
422 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
425 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
426 the first function argument to %eax.
428 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430 * libitm.h (_ITM_getThreadnum): Remove.
431 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
433 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
435 * clearcap.map: New file.
436 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
437 * configure.ac: Call it.
438 Clear HWCAP_LDFLAGS if defaulting to -mavx.
439 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
440 * configure: Regenerate.
441 * Makefile.in: Regenerate.
442 * testsuite/Makefile.in: Regenerate.
444 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
447 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
448 include, exclude options.
450 2012-01-14 Torvald Riegel <triegel@redhat.com>
452 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
454 * containers.h (GTM::vector::set_size): New.
456 2012-01-14 Torvald Riegel <triegel@redhat.com>
459 * config/generic/tls.h (GTM::mask_stack_top): New.
460 (GTM::mask_stack_bottom): Declare.
461 * config/generic/tls.c (GTM::mask_stack_bottom): New.
462 * local.cc (gtm_undolog::rollback): Filter out any updates that
463 overlap the libitm stack. Add current transaction as parameter.
464 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
465 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
466 * testsuite/libitm.c/stackundo.c: New test.
468 2012-01-10 Richard Henderson <rth@redhat.com>
470 * libitm_i.h (_Unwind_DeleteException): Declare weak.
471 * eh_cpp.cc (_Unwind_DeleteException): Define for
472 !HAVE_ELF_STYLE_WEAKREF.
474 2012-01-08 Torvald Riegel <triegel@redhat.com>
476 * local.cc (GTM_LB): Use GTM::gtm_undolog.
477 (GTM::gtm_thread::drop_references_undolog): Remove.
478 (GTM::gtm_thread::commit_undolog,
479 GTM::gtm_thread::rollback_undolog): Move to ...
480 * libitm_i.h (GTM::gtm_undolog): ...here. New.
481 (GTM::gtm_undolog_entry): Remove.
482 (GTM::gtm_thread): Adapt.
483 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
484 (GTM::gtm_thread::trycommit): Adapt.
485 * method-serial.cc (serial_dispatch::log): Adapt.
486 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
487 (gl_wt_dispatch::store): Fix likely/unlikely.
488 * containers.h (GTM::vector::resize): Add additional_capacity
489 parameter and handle it.
490 (GTM::vector::resize_noinline): New/adapt.
491 (GTM::vector::push): New.
493 2012-01-06 Richard Henderson <rth@redhat.com>
495 * configure.tgt: Support powerpc-linux and powerpc-darwin.
496 * config/linux/powerpc/futex_bits.h: New file.
497 * config/powerpc/cacheline.h: New file.
498 * config/powerpc/sjlj.S: New file.
499 * config/powerpc/target.h: New file.
500 * config/generic/asmcfi.h (cfi_offset): New.
501 (cfi_restore, cfi_undefined): New.
503 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
506 * testsuite/libitm.c/reentrant.c: Remove xfail.
507 (thread): Pass x to pure().
508 From Patrik Marlier <patrick.marlier@gmail.com>.
510 2011-12-24 Torvald Riegel <triegel@redhat.com>
512 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
513 privatization safety if already in serial mode.
515 2011-12-24 Torvald Riegel <triegel@redhat.com>
517 * beginend.cc (GTM::gtm_thread::restart): Add and handle
518 finish_serial_upgrade parameter.
519 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
520 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
521 Don't unset reader flag.
522 (GTM::gtm_rwlock::write_upgrade_finish): New.
523 * config/posix/rwlock.cc: Same.
524 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
526 * config/posix/rwlock.h: Same.
527 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
528 flag after commit or after rollback when restarting.
530 2011-12-24 Torvald Riegel <triegel@redhat.com>
532 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
533 (GTM::gtm_thread::try_commit): Changed memory order.
534 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
536 * config/linux/x86/futex_bits.h (sys_futex0): Same.
537 * config/linux/sh/futex_bits.h (sys_futex0): Same.
538 * config/linux/futex_bits.h (sys_futex0): Same.
539 * config/linux/futex.cc (futex_wait, futex_wake): Same.
540 * config/linux/futex.h (futex_wait, futex_wake): Same.
541 * config/linux/rwlock.h (gtm_rwlock::writers,
542 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
544 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
545 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
546 gtm_rwlock::write_unlock): Fix memory orders and fences.
547 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
548 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
549 gtm_rwlock::write_unlock): Same.
550 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
551 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
552 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
554 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
555 gl_wt_dispatch::load, gl_wt_dispatch::store,
556 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
557 orders and fences. Add comments.
559 2011-12-21 Jakub Jelinek <jakub@redhat.com>
561 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
562 * Makefile.in: Regenerated.
564 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
566 * configure.tgt: Add sh* case.
567 * config/sh/target.h: New file.
568 * config/sh/sjlj.S: New file.
569 * config/linux/sh/futex_bits.h: New file.
571 2011-12-14 Richard Henderson <rth@redhat.com>
573 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
574 * config/arm/sjlj.S, config/arm/target.h: New files.
575 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
576 (cfi_rel_offset): New.
577 * config/linux/futex_bits.h: New file.
578 * config/linux/futex.cc: Include futex_bits.h here...
579 * config/linux/futex.h: ... not here.
580 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
581 * configure.ac (ARCH_AM): New conditional.
582 * Makefile.in, configure: Rebuild.
583 * configure.tgt: Handle ARM.
585 2011-12-13 Richard Henderson <rth@redhat.com>
587 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
588 signed/unsigned comparison werror.
590 * local_atomic: New file.
591 * libitm_i.h: Include it.
592 (gtm_thread::shared_state): Use atomic template.
593 * beginend.cc (GTM::gtm_clock): Use atomic template.
594 (global_tid): Use atomic template if 64-bit atomics available.
595 (gtm_thread::gtm_thread): Update shared_state access.
596 (gtm_thread::trycommit): Likewise.
597 (choose_code_path): Update global_tid access.
598 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
599 * stmlock.h (GTM::gtm_clock): Use atomic template.
600 (gtm_get_clock, gtm_inc_clock): Update accesses.
601 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
602 redundant __sync_synchronize after atomic shared_state access.
603 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
604 (gtm_rwlock::write_lock_generic): Likewise.
605 (gtm_rwlock::read_unlock): Likewise.
606 * config/alpha/target.h (atomic_read_barrier): Remove.
607 (atomic_write_barrier): Remove.
608 * config/x86/target.h (atomic_read_barrier): Remove.
609 (atomic_write_barrier): Remove.
611 2011-11-30 Richard Henderson <rth@redhat.com>
613 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
614 * beginend.c (_ITM_abortTransaction): Update to match.
615 (GTM::gtm_thread::restart): Likewise.
616 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
617 * config/x86/sjlj.S (GTM_longjmp): Likewise.
619 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
621 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
622 * Makefile.in: Regenerate.
624 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
626 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
627 * alloc_cpp.cc: Generate dummy functions if we don't
628 HAVE_ELF_STYLE_WEAKREF.
629 * eh_cpp.cc: Likewise.
630 * configure: Regenerate.
631 * aclocal.m4: Likewise.
632 * config.h.in: Likewise.
633 * Makefile.in: Likewise.
634 * testsuite/Makefile.in: Likewise.
636 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
638 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
639 __USER_LABEL_PREFIX__ for targets that use it.
640 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
641 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
642 in portability to non-elf targets.
643 (GTM_longjmp): Likewise.
644 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
647 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
649 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
650 * testsuite/libitm.c/memset-1.c: Likewise.
652 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
654 * configure: Regenerate.
656 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
659 (LIBITM_ENABLE_SYMVERS): Handle sun style.
660 * Makefile.am: Handle sun style versioning.
661 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
662 * configure: Regenerate.
663 * Makefile.in: Regenerate.
665 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667 * config/generic/asmcfi.h: Fix comment.
668 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
669 sequence without .hidden support, error for non-ELF targets.
670 (GTM_longjmp) [__ELF__]: Only use .hidden if
671 HAVE_ATTRIBUTE_VISIBILITY.
673 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
675 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
676 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
678 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
679 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
681 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
684 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
685 * configure: Regenerate.
687 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
689 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
691 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
695 (.note.GNU-stack): Only use if __linux__.
696 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
697 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
698 * testsuite/libitm.c/reentrant.c: Likewise.
699 * testsuite/libitm.c/simple-2.c: Likewise.
700 * testsuite/libitm.c/txrelease.c: Likewise.
701 * testsuite/libitm.c++/static_ctor.C: Likewise.
703 2011-11-10 Richard Henderson <rth@redhat.com>
705 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
706 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
707 * configure.ac (ARCH_X86_AVX): New conditional.
708 * Makefile.in, configure: Rebuild.
710 2011-11-09 Richard Henderson <rth@redhat.com>
712 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
713 * configure.ac: Use it.
714 * config.h.in, configure: Rebuild.
715 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
717 2011-11-09 Richard Henderson <rth@redhat.com>
719 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
720 * config/alpha/unaligned.h: Remove file.
721 * config/generic/unaligned.h: Remove file.
722 * config/x86/unaligned.h: Remove file.
723 * config/generic/cachepage.h: Remove file.
724 * config/posix/cachepage.cc: Remove file.
725 * config/generic/cacheline.cc: Remove file.
726 * config/x86/cacheline.cc: Remove file.
727 * config/generic/cacheline.h (gtm_cacheline): Remove the
728 store_mask, copy_mask, copy_mask_wb methods.
729 * config/x86/cacheline.h: Likewise.
730 * config/alpha/cacheline.h: Fall back to generic after setting size.
731 * config/generic/tls.cc (gtm_mask_stack): Remove.
732 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
733 (GTM_vpalignr_table): Remove.
734 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
735 (GTM_pshift_table): Remove.
736 * config/libitm_i.h: Don't include cachepage.h.
737 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
738 * Makefile.in, testsuite/Makefile.in: Rebuild.
740 2011-11-09 Richard Henderson <rth@redhat.com>
742 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
743 to emit branch prediction hint.
745 * config/x86/sjlj.S: Protect elf directives with __ELF__.
746 Protect .note.GNU-stack with __linux__.
748 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
749 * configure, aclocal.m4, config.h.in: Rebuild.
750 * config/generic/asmcfi.h: New file.
751 * config/x86/sjlj.S: Use it.
753 2011-11-08 Richard Henderson <rth@redhat.com>
755 * local.cc (_ITM_LB): Use a normal call, not a function alias.
757 2011-11-08 Richard Henderson <rth@redhat.com>
759 * configure.tgt: Test correct directory for supported cpus.
761 * configure.ac: Exit if unsupported.
762 * configure: Rebuild.
763 * configure.tgt: Delete boilerplate from libgomp for unsupported
764 targets. Set UNSUPPORTED for unsupported targets.
766 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
768 * configure.tgt: Handle i386 like i[456]86.
769 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
771 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
772 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
774 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
776 * method-wbetl.cc: Update copyright notice.
783 * useraction.cc: Same.
787 * config/generic/tls.cc: Same.
788 * config/generic/cacheline.h: Same.
789 * config/generic/cachepage.h: Same.
790 * config/generic/cacheline.cc: Same.
791 * config/generic/unaligned.h: Same.
792 * config/x86/cacheline.h: Same.
793 * config/x86/cacheline.cc: Same.
794 * config/x86/unaligned.h: Same.
795 * config/alpha/cacheline.h: Same.
796 * config/alpha/unaligned.h: Same.
797 * config/alpha/sjlj.S: Same.
798 * config/posix/cachepage.cc: Same.
799 * config/linux/futex.h: Same.
800 * config/linux/alpha/futex_bits.h: Same.
802 2011-11-04 Torvald Riegel <triegel@redhat.com>
804 * libitm.texi: No cover text and invariant sections.
806 2011-11-03 Richard Henderson <rth@redhat.com>
808 * local_type_traits: New file.
809 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
811 2011-11-03 Richard Henderson <rth@redhat.com>
813 * configure.ac: Don't test for gfortran.
814 * configure: Rebuild.
816 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
817 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
819 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
821 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
822 * testsuite/libitm.c/memset-1.c: Same.
823 * testsuite/libitm.c/c.exp: Same.
824 * testsuite/lib/libitm-dg.exp: Same.
825 * testsuite/lib/libitm.exp: Same.
826 * testsuite/libitm.c++/c++.exp: Same.
828 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
830 * testsuite/config/default.exp: Update copyright date.
831 * configure.ac: Add copyright info.
832 * configure.tgt: Same.
834 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
836 * testsuite/libitm.c/reentrant.c: XFAIL.
837 * testsuite/libitm.c++/static_ctor.C: XFAIL.
839 2011-10-29 Torvald Riegel <triegel@redhat.com>
841 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
843 (_ITM_abortTransaction): Handle aborts of outer transactions.
845 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
846 * libitm.texi: Document aborts of outer transactions.
847 * testsuite/libitm.c/cancel.c: New file.
849 2011-10-19 Torvald Riegel <triegel@redhat.com>
851 * testsuite/*: Change __transaction to __transaction_atomic or
852 __transaction_relaxed.
854 2011-10-19 Torvald Riegel <triegel@redhat.com>
856 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
859 2011-10-19 Torvald Riegel <triegel@redhat.com>
861 * libitm_i.h: Add gl_wt dispatch.
862 * retry.cc (parse_default_method): Same.
863 * method-gl.cc: New file.
864 * Makefile.am: Use method-gl.cc.
865 * Makefile.in: Rebuild.
867 2011-10-19 Torvald Riegel <triegel@redhat.com>
869 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
870 safety if requested by a TM method.
871 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
872 privatization safety.
873 * method-serial.cc: Same.
875 2011-10-19 Torvald Riegel <triegel@redhat.com>
877 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
878 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
879 undolog-related member functions from *_local to *_undolog.
880 * local.cc (gtm_thread::commit_undolog): Same.
881 * beginend.cc (GTM::gtm_thread::trycommit): Same.
882 (GTM::gtm_thread::rollback): Roll back undolog before
883 dispatch-specific rollback.
885 2011-10-19 Torvald Riegel <triegel@redhat.com>
887 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
888 re-initialization of the current method group.
889 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
891 2011-10-19 Torvald Riegel <triegel@redhat.com>
893 * alloc.cc (commit_allocations_2): Do not free transaction-local
894 memory when committing a nested transaction.
896 2011-10-19 Torvald Riegel <triegel@redhat.com>
898 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
899 serial-irrevocable dispatch, not serial.
901 2011-10-19 Torvald Riegel <triegel@redhat.com>
903 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
905 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
906 * method-serial.cc: Implement begin_or_restart().
907 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
908 dispatch-specific begin_or_restart().
909 (GTM::gtm_thread::restart): Same.
911 2011-08-23 Torvald Riegel <triegel@redhat.com>
913 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
914 restarting without switching to serial mode.
915 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
916 transaction state. Choose closed-nesting alternative if available.
917 (GTM::gtm_thread::set_default_dispatch): New.
918 (parse_default_method): New.
919 (GTM::gtm_thread::number_of_threads_changed): New.
920 * method-serial.cc (GTM::serial_mg): New method group class.
921 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
923 (GTM::serial_dispatch): Same.
924 (GTM::serialirr_onwrite_dispatch): Same.
925 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
926 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
928 (GTM::gtm_thread::gtm_thread): Same.
929 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
930 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
931 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
932 choose dispatch but set state according to dispatch here.
933 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
934 (GTM::method_group): New class.
935 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
936 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
937 * libitm.texi: Document TM methods, method groups, method life cycle.
938 Rename method sets to method groups.
940 2011-08-23 Torvald Riegel <triegel@redhat.com>
942 * config/x86/tls.h: Moved to ...
943 * config/linux/x86/tls.h: ... here.
945 2011-08-23 Torvald Riegel <triegel@redhat.com>
947 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
949 * config/x86/sjlj.S: Same.
951 2011-08-19 Torvald Riegel <triegel@redhat.com>
953 * config/linux/rwlock.h: New file.
954 * config/linux/rwlock.c: New file.
955 * configure.ac: Reenable futex support (undo SVN rev 157758).
957 * configure.tgt: Same.
958 * config/linux/alpha/futex_bits.h: Same.
959 * config/linux/futex.h: Same. Return number of woken processes.
960 * config/linux/futex.cc: Same.
961 (futex_wait): Remove spinning.
962 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
963 Use __x86_64__ instead of __LP64__.
964 * aclocal.m4: Include generic futex checks.
965 * configure: Rebuild.
966 * Makefile.in: Rebuild.
967 * testsuite/Makefile.in: Rebuild.
968 * beginend.cc: Include pthread.h.
969 * config/posix/cachepage.cc: Same.
971 2011-08-12 Torvald Riegel <triegel@redhat.com>
973 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
974 (abi_disp, set_abi_disp): Move to tx's TLS slot.
976 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
978 (GTM::gtm_thread::thread_num): Removed.
979 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
980 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
981 tx-to-thread renaming.
982 * beginend.cc: Adapted to tx-to-thread renaming.
983 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
984 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
985 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
986 gtm_transaction to gtm_thread.
987 (_ITM_getThreadnum): Removed. Not supported anymore.
988 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
989 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
990 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
991 gtm_tx-to-gtm_thr renaming if necessary.
998 * alloc_cpp.cc: Same.
999 * method-serial.cc: Same.
1000 * config/generic/tls.cc: Same.
1001 * config/posix/rwlock.h (gtm_rwlock): Same.
1002 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1004 2011-08-12 Torvald Riegel <triegel@redhat.com>
1006 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1008 (gtm_rwlock::read_unlock): Same.
1009 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1010 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1011 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1012 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1013 w_upgrade. Replaced by per-transaction flags (in shared_state).
1014 Added c_confirmed_writers.
1015 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1016 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1017 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1018 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1019 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1020 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1021 * libitm.texi: Document locking conventions and implementations in
1024 2011-08-12 Torvald Riegel <triegel@redhat.com>
1026 * libitm_i.h (next_tx): Add list of all threads' transaction.
1027 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1028 transaction with list of transactions and ...
1029 (thread_exit_handler): ... deregister here.
1030 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1031 * config/x86/target.h: Same.
1033 2011-08-12 Torvald Riegel <triegel@redhat.com>
1035 * testsuite/libitm.c++/static_ctor.C: New file.
1037 2011-08-12 Torvald Riegel <triegel@redhat.com>
1039 * testsuite/libitm.c/reentrant.c: New file.
1041 2011-08-12 Torvald Riegel <triegel@redhat.com>
1043 * config/generic/tls.h: Remove the free list for transactions and ...
1044 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1045 (GTM::gtm_transaction::operator delete): ... and release here.
1046 (thread_exit_handler): New. Delete tx when thread terminates.
1047 (thread_exit_init): New.
1048 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1049 * testsuite/libitm.c/txrelease.c: New file.
1051 2011-08-12 Torvald Riegel <triegel@redhat.com>
1053 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1054 * testsuite/libitm.c/notx.c: New file.
1056 2011-08-12 Torvald Riegel <triegel@redhat.com>
1058 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1059 * libitm_i.h (local_tid): ... to here.
1060 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1061 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1063 2011-08-12 Torvald Riegel <triegel@redhat.com>
1065 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1066 serialirr_onwrite_dispatch as new default for now.
1067 * method-serial.cc (serialirr_onwrite_dispatch): New.
1068 (GTM::dispatch_serialirr_onwrite): New.
1071 2011-08-12 Torvald Riegel <triegel@redhat.com>
1073 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1074 * query.cc (_ITM_getTransactionId): There is no active transaction if
1075 the current nesting level is zero.
1077 2011-07-28 Torvald Riegel <triegel@redhat.com>
1079 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1082 2011-07-28 Torvald Riegel <triegel@redhat.com>
1084 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1085 transaction properties from the caller instead of from the
1088 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1090 2011-07-28 Torvald Riegel <triegel@redhat.com>
1092 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1093 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1095 * method-serial.cc: Same.
1096 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1097 flat nesting as default, and closed nesting on demand.
1098 (GTM::gtm_transaction::rollback): Same.
1099 (_ITM_abortTransaction): Same.
1100 (GTM::gtm_transaction::restart): Same.
1101 (GTM::gtm_transaction::trycommit): Same.
1102 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1103 (choose_code_path): New.
1104 (GTM::gtm_transaction_cp::save): New.
1105 (GTM::gtm_transaction_cp::commit): New.
1106 * query.cc (_ITM_inTransaction): Support flat nesting.
1107 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1108 (GTM::gtm_transaction): Support flat and closed nesting.
1109 * alloc.cc (commit_allocations_2): New.
1110 (commit_cb_data): New helper struct.
1111 (GTM::gtm_transaction::commit_allocations): Handle nested
1113 * libitm.texi: Update user action section, add description of nesting.
1115 2011-07-28 Torvald Riegel <triegel@redhat.com>
1117 * libitm_i.h: Add closed nesting as restart reason.
1118 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1120 2011-07-28 Torvald Riegel <triegel@redhat.com>
1122 * useraction.cc: Use vector instead of list to store actions.
1123 Also support partial rollbacks for closed nesting.
1124 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1125 * beginend.cc: Same.
1127 2011-07-28 Torvald Riegel <triegel@redhat.com>
1129 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1130 closed_nesting flags, as well as a closed nesting alternative.
1131 * method-serial.cc: Same.
1132 (serial_dispatch): Renamed to serialirr_dispatch.
1133 (GTM::dispatch_serialirr): Same.
1134 (serial_dispatch_ul): Renamed to serial_dispatch.
1135 (GTM::dispatch_serial): Same.
1137 2011-07-28 Torvald Riegel <triegel@redhat.com>
1139 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1141 2011-07-28 Torvald Riegel <triegel@redhat.com>
1143 * aatree.h (aa_tree::remove): New.
1144 (aa_tree::operator new): Add placement new.
1146 2011-07-02 Torvald Riegel <triegel@redhat.com>
1148 * containers.h: New file.
1149 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1150 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1151 * common.h: ... to here.
1152 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1155 2011-06-30 Torvald Riegel <triegel@redhat.com>
1157 * libitm_i.h (STATE_ABORTING): Remove.
1158 * beginend.cc (_ITM_abortTransaction): Same.
1159 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1160 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1161 (_ITM_rollbackTransaction): Remove.
1162 * beginend.cc: Same.
1164 * libitm.texi: Document these ABI changes.
1166 2011-06-30 Torvald Riegel <triegel@redhat.com>
1168 * libitm.texi: New file.
1169 * Makefile.am: Add libitm.texi.
1170 * Makefile.in: Rebuild.
1172 2011-06-30 Torvald Riegel <triegel@redhat.com>
1174 * libitm_i.h: Move parts to common.h and dispatch.h.
1175 * common.h: New file.
1176 * dispatch.h: New file, new dispatch class.
1177 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1178 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1179 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1180 decision to retry.cc.
1181 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1183 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1184 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1186 * barrier.cc: Use new barriers definitions.
1187 (abi_dispatch::memmove_overlap_check): New.
1188 * config/x86/x86_sse.cc: Same.
1189 * config/x86/x86_avx.cc: Same.
1190 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1192 * Makefile.in: Rebuild.
1193 * method-readonly.cc: Remove.
1194 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1195 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1197 2011-06-30 Torvald Riegel <triegel@redhat.com>
1199 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1200 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1201 * testsuite/libitm.c/dropref-2.c: Same.
1202 * testsuite/libitm.c/dropref.c: Same.
1204 2011-06-30 Torvald Riegel <triegel@redhat.com>
1206 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1207 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1208 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1210 * barrier.tpl: Same.
1212 * config/generic/tls.h: Same.
1213 * config/x86/tls.h: Same.
1217 * method-readonly.cc: Same.
1218 * method-serial.cc: Same.
1219 * method-wbetl.cc: Same.
1222 2011-03-03 Richard Henderson <rth@redhat.com>
1224 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1225 From Patrik Marlier <patrick.marlier@unine.ch>.
1227 2011-02-03 Richard Henderson <rth@redhat.com>
1229 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1230 * configure.ac: Use it.
1231 * configure, config.h.in: Rebuild.
1232 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1233 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1234 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1235 * libitm.map: Use wildcards to match size_t mangling.
1237 2010-12-14 Richard Henderson <rth@redhat.com>
1239 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1240 blocks of TIDs per thread.
1241 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1242 (setup_gtm_thr): Return the thread structure.
1243 * config/x86/tls.h (setup_gtm_thr): Likewise.
1245 2010-12-14 Richard Henderson <rth@redhat.com>
1247 * clone.cc (table_lock): Remove.
1248 (find_clone): Don't take it.
1249 (ExcludeTransaction): New helper class.
1250 (_ITM_registerTMCloneTable): Use it.
1251 (_ITM_deregisterTMCloneTable): Likewise.
1253 2010-12-14 Richard Henderson <rth@redhat.com>
1255 * config/x86/tls.h: New file.
1257 2010-07-15 Richard Henderson <rth@redhat.com>
1259 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1260 * Makefile.in: Rebuild.
1262 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1264 * method-wbetl.cc (trydropreference): Fix source line.
1266 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1268 * libitm.h: Add comment.
1269 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1271 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1273 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1274 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1275 available, use pthread mutexes.
1276 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1277 * config.h.in: Regenerate.
1278 * configure: Regenerate.
1280 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1282 * libitm.h (ITM_PURE): Define.
1283 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1285 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1287 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1288 (validate): Add comment.
1289 (trydropreference): New.
1290 * method-readonly.cc (class readonly_dispatch): Add
1292 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1293 Call trydropreference().
1294 * libitm.h (_ITM_dropReferences): Remove const attribute.
1295 * method-serial.cc (class serial_dispatch): Add trydropreference.
1296 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1298 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1300 * memcpy.cc (do_memcpy): Comment.
1302 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1304 * barrier.tpl: Add comments throughout.
1306 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1308 * method-wbetl.cc (struct w_entry): Add comments.
1312 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1314 * alloc_c.cc (_ITM_dropReferences): New.
1315 * libitm.map (_ITM_dropReferences): Add.
1316 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1317 * libitm_i.h (struct gtm_transaction): Declare
1318 drop_references_allocations and drop_references_local.
1319 * local.cc (rollback_local): Ignore memory when applicable.
1320 (drop_references_local): New.
1322 2010-06-23 Richard Henderson <rth@redhat.com>
1324 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1325 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1326 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1327 * config/alpha/target.h: Likewise.
1328 * config/generic/tls.cc (gtm_mask_stack): Use it.
1330 2010-06-23 Richard Henderson <rth@redhat.com>
1332 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1333 a mutex instead of trying a lock-free compare-and-swap on the list.
1334 (gtm_cacheline_page::operator delete): Likewise.
1336 2010-06-16 Richard Henderson <rth@redhat.com>
1338 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1339 that overlap the libitm stack.
1340 * barrier.tpl: Mark incoming stack.
1341 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1342 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1343 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1344 * memcpy.cc, memset.cc: Likewise.
1345 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1346 * config/generic/tls.h (gtm_thread): Add stack_top member.
1347 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1348 * libitm_i.h (gtm_mask_stack): Declare.
1349 * config/generic/tls.cc: New file.
1350 * Makefile.am (libitm_la_SOURCES): Add it.
1351 (AM_CXXFLAGS): Turn off exceptions.
1352 * Makefile.in: Rebuild.
1354 2010-06-16 Richard Henderson <rth@redhat.com>
1356 * alloc.cc (struct gtm_alloc_action): Move definition ...
1357 * libitm_i.h: ... here.
1358 (class gtm_transaction): Declare new and delete.
1359 * beginend.cc (alloc_tx): Reformulate as operator new.
1360 (free_tx): Reformulate as operator delete.
1361 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1363 2010-06-11 Richard Henderson <rth@redhat.com>
1365 * clone.cc (clone_entry_compare): Fix typo.
1366 From Patrik Marlier <patrick.marlier@unine.ch>.
1368 2010-05-13 Richard Henderson <rth@redhat.com>
1370 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1373 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1375 * libitm_i.h (struct gtm_transaction): Remove
1376 get_allocation_size.
1377 (record_allocation): Remove size parameter.
1378 * libitm.map (_ITM_realloc): Remove.
1379 * alloc_c.cc (_ITM_realloc): Remove.
1380 (_ITM_malloc): Remove size argument to record_allocation.
1381 (_ITM_calloc): Same.
1382 * alloc_cpp.cc (_ZGTtnwm): Same.
1383 (_ZGTtnwmRKSt9nothrow_t): Same.
1385 (_ZGTtnamRKSt9nothrow_t): Same.
1386 * alloc.cc (struct gtm_alloc_action): Remove size.
1387 (get_allocation_size): Remove.
1388 (commit_allocations): Add comment.
1389 (record_allocation): Remove size parameter.
1390 (forget_allocation): Remove set of size.
1392 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1394 * Makefile.am (abi_version): New.
1395 (AM_CXXFLAGS): Pass abi_version.
1396 * Makefile.in: Regenerate.
1397 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1399 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1401 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1402 _ITM_getTMCloneOrIrrevokable.
1403 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1404 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1406 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1408 * configure.ac: Remove Linux futex support.
1409 * configure.tgt (config_path): Same.
1410 * Makefile.am: Same.
1411 * config/linux: Remove entire directory.
1412 * configure: Rebuild.
1413 * Makefile.in: Rebuild.
1414 * testsuite/Makefile.in: Rebuild.
1416 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1418 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1419 switching to serial mode.
1420 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1422 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1424 * configure.tgt: Add emacs -*- tags.
1425 * barrier.tpl: Same.
1427 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1429 * Makefile.am: Rename serial.cc to method-serial.cc.
1430 * Makefile.in: Regenerate with automake 1.11.1.
1431 * testsuite/Makefile.in: Same.
1432 * aclocal.m4: Regenerate with aclocal 1.11.1.
1433 * method-serial.cc: Rename from serial.cc.
1434 * libitm_i.h (struct gtm_transaction): Update comment on
1437 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1439 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1440 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1442 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1444 * configure: Rebuild.
1446 2009-11-12 Richard Henderson <rth@redhat.com>
1448 * Rewrite everything in C++.
1450 2009-11-03 Richard Henderson <rth@redhat.com>
1452 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1453 * Makefile.am (libitm_la_SOURCES): Add them.
1454 * configure.ac (ARCH_X86): New conditional.
1455 * Makefile.in, configure: Rebuild.
1456 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1457 Move futex setup into "other system configury" case.
1458 * local.c (rollback_local): Merge into ...
1459 (GTM_rollback_local): ... here.
1460 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1461 (_ITM_LB): Define as an alias to GTM_LB.
1463 2009-11-03 Richard Henderson <rth@redhat.com>
1465 * method-readonly.c: New file.
1466 * Makefile.am (libitm_la_SOURCES): Add it.
1467 * Makefile.in: Rebuild.
1468 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1469 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1470 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1471 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1472 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1473 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1474 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1475 gtm_get_clock, gtm_inc_clock): New.
1476 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1477 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1478 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1479 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1480 replace uses with new libitm_i.h symbols.
1481 (dispatch_wbetl): Rename from wbetl_dispatch.
1482 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1483 away from dispatch_readonly; abort if the beginTransaction call
1484 asserted that the transaction was readonly.
1486 2009-11-03 Richard Henderson <rth@redhat.com>
1488 * memset.c: New file.
1489 * Makefile.am (libitm_la_SOURCES): Add it.
1490 * Makefile.in: Rebuild.
1491 * testsuite/libitm.c/memset-1.c: New.
1493 2009-11-03 Richard Henderson <rth@redhat.com>
1495 * dispatch.c: Remove file.
1496 * useraction.c (struct gtm_user_action): Move from libitm.h.
1497 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1498 (serial_memset, serial_memmove, serial_memcpy): Remove.
1499 (serial_W*, serial_R*): Remove.
1500 (serial_dispatch): Update to match.
1501 * configure.ac: Move Werror down below configure checks. Don't
1502 check for sys/loadavg.h, do check for malloc.h. Don't check for
1503 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1504 Use GCC_AC_FUNC_MMAP_BLACKLIST
1505 * libitm.h: Split out all internal items to...
1506 * libitm_i.h: ... here. New file.
1507 * copymask.c: New file.
1508 * local.c (struct gtm_local_undo): Move from libitm.h.
1509 (GTM_alloc_local): Rename from alloc_local; export.
1510 * memcpy.c: New file.
1511 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1512 * config/posix/page.c: New file.
1513 * config/posix/target_tls.h: Remove file.
1514 * barrier.c: New file.
1515 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1517 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1518 * method-wbetl.c: Rewrite for new cacheline methods.
1519 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1521 * config/alpha/sjlj.S: Fix typo.
1522 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1523 * config/alpha/copymask.c: New file.
1524 * config/alpha/target.h (CACHELINE_SIZE): New.
1525 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1527 * config/x86/target_i.h: Copy functions from x86/target.h.
1528 * config/x86/copymask.c: New file.
1529 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1530 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1531 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1532 * config/x86/target_tls.h: Move contents to target_i.h.
1534 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1535 * testsuite/libitm.c/memcpy-1.c: New.
1537 2009-10-22 Richard Henderson <rth@redhat.com>
1539 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1540 (AM_CCASFLAGS): New.
1541 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1542 saving/restoring _AC_ARG_VAR_PRECIOUS.
1543 * Makefile.in, aclocal.m4, config.h.in, configure,
1544 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1546 2009-10-22 Richard Henderson <rth@redhat.com>
1548 * testsuite/*: Update for new compiler syntax.
1550 2009-10-21 Richard Henderson <rth@redhat.com>
1552 * libitm.h (_ITM_abortReason): Add outerAbort.
1554 2009-08-03 Richard Henderson <rth@redhat.com>
1556 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1557 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1558 * method-wbetl.c (struct w_entry): Remove mask.
1559 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1562 2009-07-22 Richard Henderson <rth@redhat.com>
1564 * eh_cpp.c: New file.
1565 * Makefile.am (libitm_la_SOURCES): Add it.
1566 * Makefile.in: Rebuild.
1567 * beginend.c (GTM_rollback_transaction): Undo exception state.
1568 (GTM_trycommit_transaction): Mark inline.
1569 (GTM_trycommit_and_finalize_transaction): Split out from ...
1570 (_ITM_commitTransaction): ... here.
1571 (_ITM_commitTransactionEH): New function.
1572 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1573 cxa_unthrown, eh_in_flight; reorder.
1575 * testsuite/libitm.c++/c++.exp: New.
1576 * testsuite/libitm.c++/eh-1.C: New.
1578 * aatree.c (aa_free): Remove REGPARM.
1579 * aatree.h: Remove all REGPARM.
1581 2009-07-18 Richard Henderson <rth@redhat.com>
1583 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1584 * Makefile.am (libitm_la_SOURCES): Add them.
1585 * Makefile.in: Rebuild.
1586 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1587 (GTM_trycommit_transaction): Likewise.
1588 * libitm.h: Include aatree.h
1589 (struct gtm_alloc_action): New.
1590 (struct gtm_transaction): Add alloc_actions.
1591 (GTM_record_allocation, GTM_forget_allocation): Declare.
1592 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1593 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1594 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1595 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1596 _ZGTtdaPvRKSt9nothrow_t): Export.
1598 2009-07-18 Richard Henderson <rth@redhat.com>
1600 * target_tls.h: Move ...
1601 * config/posix/target_tls.h: ... here.
1603 2009-07-07 Richard Henderson <rth@redhat.com>
1605 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1607 2009-07-07 Richard Henderson <rth@redhat.com>
1611 2009-07-07 Richard Henderson <rth@redhat.com>
1613 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1614 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1616 * configure.tgt: Don't use -ftls-model for x86 linux.
1617 * libitm.h: Include target.h after standard includes.
1618 (_gtm_thr): Rename from gtm_thr.
1619 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1620 (gtm_disp, set_gtm_disp): New.
1621 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1622 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1623 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1625 2009-07-07 Richard Henderson <rth@redhat.com>
1627 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1629 2009-07-06 Richard Henderson <rth@redhat.com>
1631 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1632 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1633 (_ITM_beginTransaction): Take variadic arguments.
1634 (_ITM_registerThrownObject): Declare.
1635 * beginend.c, serial.c: Update.
1636 * libitm.map: Add _ITM_registerThrownObject.
1638 2009-01-28 Richard Henderson <rth@redhat.com>
1640 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1641 * Makefile.in: Rebuild.
1642 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1643 (GTM_restart_transaction): Fix uninstrumented code check.
1644 * retry.c (GTM_decide_retry_strategy): Add serial check.
1645 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1646 automatically go irrevokable when in serial mode.
1647 * clone.c: New file.
1648 * libitm.h, libitm.map: Update.
1650 2009-01-27 Richard Henderson <rth@redhat.com>
1652 * Makefile.am (LTCCASCOMPILE): Define.
1653 (libitm_la_SOURCES): Add methid-wbetl.c.
1654 * testsuite/Makefile.am: New
1655 * configure.ac: Add testsuite/Makefile.
1656 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1657 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1658 (_ITM_abortTransaction): Finalize implementation method; pass
1659 transaction properties to longjmp.
1660 (GTM_restart_transaction): Split out from ...
1661 (_ITM_commitTransaction): ... here.
1662 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1663 Move to config/x86/target.h.
1664 * config/linux/alpha/futex_bits.h: New.
1665 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1666 * config/x86/target.h: Disable target types for 32-bit.
1667 * config/alpha/sjlj.S, config/alpha/target.h: New.
1668 * libitm.h (struct gtm_dispatch): Add init, fini.
1669 (enum restart_reason): New.
1670 (struct gtm_transaction): Add method and restarts.
1671 * retry.c (GTM_decide_retry_strategy): Implement.
1672 * serial.c (serial_init, serial_fini): New.
1673 (GTM_serialmode): Finialize outgoing method.
1674 * method-wbetl.c: New.
1676 2008-12-09 Richard Henderson <rth@redhat.com>
1678 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1679 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1680 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1681 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1682 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1683 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1684 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1685 * serial.c (serial_R##T, serial_W##T): Likewise.
1687 2008-11-21 Richard Henderson <rth@redhat.com>