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