1 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3 * configure.tgt: Add -msoft-float to XCFLAGS.
5 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
8 (htm_transaction_active): Enable zEC12 instructions in the
10 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
12 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14 * acinclude.m4: Add htm asm check for s390.
15 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
16 * configure: Regenerate.
17 * config/s390/target.h: Remove __HTM__ check.
18 (htm_available): Call getauxval to get hwcaps and check whether
19 HTM is available or not.
21 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
23 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
24 * configure.ac: Use it.
25 (AC_CHECK_HEADERS): Check for sys/auxv.h.
26 (AC_CHECK_FUNCS): Check for getauxval.
27 * config.h.in, configure: Rebuild.
28 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
29 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
30 (USE_HTM_FASTPATH): Define.
31 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
32 _HTM_RETRIES) New macros.
33 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
34 htm_begin_success, htm_commit, htm_transaction_active): New functions.
36 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38 * config/s390/target.h: Include htmintrin.h.
39 (_HTM_ITM_RETRIES): New macro definition.
40 (htm_available, htm_init, htm_begin, htm_begin_success)
41 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
43 2013-06-20 Iain Sandoe <iain@codesourcery.com>
44 Cesar Philippidis <cesar@codesourcery.com>
46 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
47 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
48 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
49 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
51 2013-06-20 Torvald Riegel <triegel@redhat.com>
53 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
54 (_ITM_getTransactionId): Same.
55 * config/x86/target.h (htm_transaction_active): New.
57 2013-06-20 Torvald Riegel <triegel@redhat.com>
60 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
63 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
66 * local_atomic (__always_inline): Always define our version.
67 (__calculate_memory_order): Mark inline.
68 (atomic_thread_fence): Ditto.
69 (atomic_signal_fence): Ditto.
70 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
71 (atomic_bool::atomic_flag_clear_explicit): Ditto.
72 (atomic_bool::atomic_flag_test_and_set): Ditto.
73 (atomic_bool::atomic_flag_clear): Ditto.
75 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
77 * config/s390/sjlj.S: New file.
78 * config/s390/target.h: New file.
79 * configure.tgt: Set options for S/390.
81 2013-03-23 Andi Kleen <ak@linux.intel.com>
83 * local_atomic (__always_inline): Add.
84 (__calculate_memory_order, atomic_thread_fence,
85 atomic_signal_fence, test_and_set, clear, store, load,
86 exchange, compare_exchange_weak, compare_exchange_strong,
87 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
88 Add __always_inline to force inlining.
90 2013-02-11 Iain Sandoe <iain@codesourcery.com>
91 Jack Howarth <howarth@bromo.med.uc.edu>
92 Patrick Marlier <patrick.marlier@gmail.com>
95 * alloc_cpp.cc: Enable function declarations on darwin.
96 * eh_cpp.cc: Likewise.
98 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
100 Update copyright years.
102 2012-11-09 Torvald Riegel <triegel@redhat.com>
104 * beginend.cc (htm_fastpath): New.
105 (gtm_thread::begin_transaction, _ITM_commitTransaction,
106 _ITM_commitTransactionEH): Add HTM fastpath handling.
107 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
108 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
109 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
110 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
111 * configure.tgt: Add -mrtm to XCFLAGS.
112 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
113 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
114 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
115 * retry.cc (parse_default_method): Add HTM method parsing.
116 (gtm_thread::number_of_threads_changed): Use HTM by default if
119 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
121 * configure: Regenerate.
123 2012-10-31 Richard Henderson <rth@redhat.com>
125 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
126 * configure.ac: Use it.
127 * config.h.in, configure: Rebuild.
128 * testsuite/Makefile.in: Rebuild.
130 2012-10-24 Torvald Riegel <triegel@redhat.com>
132 * libitm.texi: Clarify ABI requirements for data-logging functions.
134 2012-10-24 Torvald Riegel <triegel@redhat.com>
136 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
137 it requires serial mode instead of assuming that for certain
139 * dispatch.h (abi_dispatch::requires_serial): New.
140 (abi_dispatch::abi_dispatch): Adapt.
141 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
142 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
143 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
144 serial_dispatch::serial_dispatch,
145 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
147 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
149 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
150 and ia32 declarations some more.
151 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
153 2012-09-20 Jakub Jelinek <jakub@redhat.com>
156 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
157 * configure: Regenerate.
158 * Makefile.in: Regenerate.
160 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
162 * configure: Regenerated.
164 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
166 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
168 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
170 * eh_cpp.cc: Fix __cxa_end_catch declaration.
172 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
174 * configure: Regenerated.
176 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
179 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
182 2012-04-03 Tristan Gingold <gingold@adacore.com>
184 * configure: Regenerate.
186 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
189 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
191 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
193 * testsuite/lib/libitm.exp: load fortran-modules.exp
195 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
197 * configure.tgt (*-*-irix6*): Remove.
199 2012-03-13 Torvald Riegel <triegel@redhat.com>
202 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
205 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
207 * configure.tgt (*-*-osf*): Remove.
208 * configure: Regenerate.
210 2012-03-05 Torvald Riegel <triegel@redhat.com>
212 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
213 memtransfer/memset if size isn't larger than zero.
215 2012-03-02 Torvald Riegel <triegel@redhat.com>
217 * libitm.texi: Link to specification and add a usage example.
219 2012-02-24 Torvald Riegel <triegel@redhat.com>
221 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
222 default dispatch for more than 1 thread to ml_wt.
224 2012-02-20 Torvald Riegel <triegel@redhat.com>
226 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
228 2012-02-20 Torvald Riegel <triegel@redhat.com>
230 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
232 2012-02-20 Torvald Riegel <triegel@redhat.com>
234 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
235 serial mode corner cases made obsolete by prior gtm_rwlock changes.
236 (gl_wt_dispatch.rollback): Same.
238 2012-02-20 Torvald Riegel <triegel@redhat.com>
240 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
242 2012-02-20 Torvald Riegel <triegel@redhat.com>
244 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
245 for RfW src. Optimize number of calls to gtm_thr.
247 2012-02-20 Torvald Riegel <triegel@redhat.com>
249 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
251 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
252 (default_dispatch): Make atomic.
253 (GTM::gtm_thread::set_default_dispatch): Access atomically.
254 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
255 use decide_begin_dispatch() if default_dispatch might have changed.
256 (GTM::gtm_thread::number_of_threads_changed): Initialize
257 default_dispatch here.
259 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
260 Patrick Marlier <patrick.marlier@gmail.com>
263 * alloc_cpp.cc: No dummy definitions for darwin.
264 * eh_cpp.cc: Likewise.
266 2012-02-14 Richard Henderson <rth@redhat.com>
268 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
270 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
272 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
274 2012-02-14 Torvald Riegel <triegel@redhat.com>
276 * libitm_i.h (GTM::gtm_rwlog_entry): New.
277 (GTM::gtm_thread): Add read and write logs.
278 (GTM::dispatch_ml_wt): Declare.
279 * retry.cc (parse_default_method): Support ml_wt.
280 * method-ml.cc: New file.
281 * Makefile.am: Add method-ml.cc.
282 * Makefile.in: Regenerate.
284 2012-02-14 Torvald Riegel <triegel@redhat.com>
286 * dispatch.h (GTM::abi_dispatch::supports): New.
287 (GTM::method_group::reinit): New.
288 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
289 (GTM::gtm_thread::number_of_threads_changed): Check that the method
290 supports the current situation.
292 2012-02-14 Torvald Riegel <triegel@redhat.com>
294 * util.cc (GTM::xcalloc): New.
295 * common.h (GTM::xcalloc): Declare.
297 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
299 * config/sparc/target.h (cpu_relax): Read from CC register.
300 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
302 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
304 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
306 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
308 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
309 * config/sparc/cacheline.h: New file.
310 * config/sparc/target.h: Likewise.
311 * config/sparc/sjlj.S: Likewise.
312 * config/linux/sparc/futex_bits.h: Likewise.
314 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
316 * configure.ac (link_itm): Fix comment.
317 * configure: Regenerate.
318 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
320 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
324 Correct libgomp references.
326 2012-01-24 Torvald Riegel <triegel@redhat.com>
328 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
331 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
333 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
335 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
336 offset values. Do not copy return address. Decrement stack
338 (GTM_longjump) [__x86_64__]: Update offset values.
340 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
343 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
344 the first function argument to %eax.
346 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
348 * libitm.h (_ITM_getThreadnum): Remove.
349 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
351 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 * clearcap.map: New file.
354 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
355 * configure.ac: Call it.
356 Clear HWCAP_LDFLAGS if defaulting to -mavx.
357 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
358 * configure: Regenerate.
359 * Makefile.in: Regenerate.
360 * testsuite/Makefile.in: Regenerate.
362 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
365 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
366 include, exclude options.
368 2012-01-14 Torvald Riegel <triegel@redhat.com>
370 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
372 * containers.h (GTM::vector::set_size): New.
374 2012-01-14 Torvald Riegel <triegel@redhat.com>
377 * config/generic/tls.h (GTM::mask_stack_top): New.
378 (GTM::mask_stack_bottom): Declare.
379 * config/generic/tls.c (GTM::mask_stack_bottom): New.
380 * local.cc (gtm_undolog::rollback): Filter out any updates that
381 overlap the libitm stack. Add current transaction as parameter.
382 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
383 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
384 * testsuite/libitm.c/stackundo.c: New test.
386 2012-01-10 Richard Henderson <rth@redhat.com>
388 * libitm_i.h (_Unwind_DeleteException): Declare weak.
389 * eh_cpp.cc (_Unwind_DeleteException): Define for
390 !HAVE_ELF_STYLE_WEAKREF.
392 2012-01-08 Torvald Riegel <triegel@redhat.com>
394 * local.cc (GTM_LB): Use GTM::gtm_undolog.
395 (GTM::gtm_thread::drop_references_undolog): Remove.
396 (GTM::gtm_thread::commit_undolog,
397 GTM::gtm_thread::rollback_undolog): Move to ...
398 * libitm_i.h (GTM::gtm_undolog): ...here. New.
399 (GTM::gtm_undolog_entry): Remove.
400 (GTM::gtm_thread): Adapt.
401 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
402 (GTM::gtm_thread::trycommit): Adapt.
403 * method-serial.cc (serial_dispatch::log): Adapt.
404 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
405 (gl_wt_dispatch::store): Fix likely/unlikely.
406 * containers.h (GTM::vector::resize): Add additional_capacity
407 parameter and handle it.
408 (GTM::vector::resize_noinline): New/adapt.
409 (GTM::vector::push): New.
411 2012-01-06 Richard Henderson <rth@redhat.com>
413 * configure.tgt: Support powerpc-linux and powerpc-darwin.
414 * config/linux/powerpc/futex_bits.h: New file.
415 * config/powerpc/cacheline.h: New file.
416 * config/powerpc/sjlj.S: New file.
417 * config/powerpc/target.h: New file.
418 * config/generic/asmcfi.h (cfi_offset): New.
419 (cfi_restore, cfi_undefined): New.
421 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
424 * testsuite/libitm.c/reentrant.c: Remove xfail.
425 (thread): Pass x to pure().
426 From Patrik Marlier <patrick.marlier@gmail.com>.
428 2011-12-24 Torvald Riegel <triegel@redhat.com>
430 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
431 privatization safety if already in serial mode.
433 2011-12-24 Torvald Riegel <triegel@redhat.com>
435 * beginend.cc (GTM::gtm_thread::restart): Add and handle
436 finish_serial_upgrade parameter.
437 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
438 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
439 Don't unset reader flag.
440 (GTM::gtm_rwlock::write_upgrade_finish): New.
441 * config/posix/rwlock.cc: Same.
442 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
444 * config/posix/rwlock.h: Same.
445 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
446 flag after commit or after rollback when restarting.
448 2011-12-24 Torvald Riegel <triegel@redhat.com>
450 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
451 (GTM::gtm_thread::try_commit): Changed memory order.
452 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
454 * config/linux/x86/futex_bits.h (sys_futex0): Same.
455 * config/linux/sh/futex_bits.h (sys_futex0): Same.
456 * config/linux/futex_bits.h (sys_futex0): Same.
457 * config/linux/futex.cc (futex_wait, futex_wake): Same.
458 * config/linux/futex.h (futex_wait, futex_wake): Same.
459 * config/linux/rwlock.h (gtm_rwlock::writers,
460 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
462 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
463 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
464 gtm_rwlock::write_unlock): Fix memory orders and fences.
465 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
466 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
467 gtm_rwlock::write_unlock): Same.
468 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
469 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
470 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
472 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
473 gl_wt_dispatch::load, gl_wt_dispatch::store,
474 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
475 orders and fences. Add comments.
477 2011-12-21 Jakub Jelinek <jakub@redhat.com>
479 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
480 * Makefile.in: Regenerated.
482 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
484 * configure.tgt: Add sh* case.
485 * config/sh/target.h: New file.
486 * config/sh/sjlj.S: New file.
487 * config/linux/sh/futex_bits.h: New file.
489 2011-12-14 Richard Henderson <rth@redhat.com>
491 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
492 * config/arm/sjlj.S, config/arm/target.h: New files.
493 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
494 (cfi_rel_offset): New.
495 * config/linux/futex_bits.h: New file.
496 * config/linux/futex.cc: Include futex_bits.h here...
497 * config/linux/futex.h: ... not here.
498 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
499 * configure.ac (ARCH_AM): New conditional.
500 * Makefile.in, configure: Rebuild.
501 * configure.tgt: Handle ARM.
503 2011-12-13 Richard Henderson <rth@redhat.com>
505 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
506 signed/unsigned comparison werror.
508 * local_atomic: New file.
509 * libitm_i.h: Include it.
510 (gtm_thread::shared_state): Use atomic template.
511 * beginend.cc (GTM::gtm_clock): Use atomic template.
512 (global_tid): Use atomic template if 64-bit atomics available.
513 (gtm_thread::gtm_thread): Update shared_state access.
514 (gtm_thread::trycommit): Likewise.
515 (choose_code_path): Update global_tid access.
516 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
517 * stmlock.h (GTM::gtm_clock): Use atomic template.
518 (gtm_get_clock, gtm_inc_clock): Update accesses.
519 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
520 redundant __sync_synchronize after atomic shared_state access.
521 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
522 (gtm_rwlock::write_lock_generic): Likewise.
523 (gtm_rwlock::read_unlock): Likewise.
524 * config/alpha/target.h (atomic_read_barrier): Remove.
525 (atomic_write_barrier): Remove.
526 * config/x86/target.h (atomic_read_barrier): Remove.
527 (atomic_write_barrier): Remove.
529 2011-11-30 Richard Henderson <rth@redhat.com>
531 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
532 * beginend.c (_ITM_abortTransaction): Update to match.
533 (GTM::gtm_thread::restart): Likewise.
534 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
535 * config/x86/sjlj.S (GTM_longjmp): Likewise.
537 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
539 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
540 * Makefile.in: Regenerate.
542 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
544 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
545 * alloc_cpp.cc: Generate dummy functions if we don't
546 HAVE_ELF_STYLE_WEAKREF.
547 * eh_cpp.cc: Likewise.
548 * configure: Regenerate.
549 * aclocal.m4: Likewise.
550 * config.h.in: Likewise.
551 * Makefile.in: Likewise.
552 * testsuite/Makefile.in: Likewise.
554 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
556 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
557 __USER_LABEL_PREFIX__ for targets that use it.
558 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
559 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
560 in portability to non-elf targets.
561 (GTM_longjmp): Likewise.
562 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
565 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
567 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
568 * testsuite/libitm.c/memset-1.c: Likewise.
570 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
572 * configure: Regenerate.
574 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
576 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
577 (LIBITM_ENABLE_SYMVERS): Handle sun style.
578 * Makefile.am: Handle sun style versioning.
579 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
580 * configure: Regenerate.
581 * Makefile.in: Regenerate.
583 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
585 * config/generic/asmcfi.h: Fix comment.
586 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
587 sequence without .hidden support, error for non-ELF targets.
588 (GTM_longjmp) [__ELF__]: Only use .hidden if
589 HAVE_ATTRIBUTE_VISIBILITY.
591 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
593 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
594 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
596 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
597 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
599 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
602 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
603 * configure: Regenerate.
605 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
607 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
609 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
611 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
613 (.note.GNU-stack): Only use if __linux__.
614 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
615 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
616 * testsuite/libitm.c/reentrant.c: Likewise.
617 * testsuite/libitm.c/simple-2.c: Likewise.
618 * testsuite/libitm.c/txrelease.c: Likewise.
619 * testsuite/libitm.c++/static_ctor.C: Likewise.
621 2011-11-10 Richard Henderson <rth@redhat.com>
623 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
624 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
625 * configure.ac (ARCH_X86_AVX): New conditional.
626 * Makefile.in, configure: Rebuild.
628 2011-11-09 Richard Henderson <rth@redhat.com>
630 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
631 * configure.ac: Use it.
632 * config.h.in, configure: Rebuild.
633 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
635 2011-11-09 Richard Henderson <rth@redhat.com>
637 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
638 * config/alpha/unaligned.h: Remove file.
639 * config/generic/unaligned.h: Remove file.
640 * config/x86/unaligned.h: Remove file.
641 * config/generic/cachepage.h: Remove file.
642 * config/posix/cachepage.cc: Remove file.
643 * config/generic/cacheline.cc: Remove file.
644 * config/x86/cacheline.cc: Remove file.
645 * config/generic/cacheline.h (gtm_cacheline): Remove the
646 store_mask, copy_mask, copy_mask_wb methods.
647 * config/x86/cacheline.h: Likewise.
648 * config/alpha/cacheline.h: Fall back to generic after setting size.
649 * config/generic/tls.cc (gtm_mask_stack): Remove.
650 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
651 (GTM_vpalignr_table): Remove.
652 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
653 (GTM_pshift_table): Remove.
654 * config/libitm_i.h: Don't include cachepage.h.
655 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
656 * Makefile.in, testsuite/Makefile.in: Rebuild.
658 2011-11-09 Richard Henderson <rth@redhat.com>
660 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
661 to emit branch prediction hint.
663 * config/x86/sjlj.S: Protect elf directives with __ELF__.
664 Protect .note.GNU-stack with __linux__.
666 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
667 * configure, aclocal.m4, config.h.in: Rebuild.
668 * config/generic/asmcfi.h: New file.
669 * config/x86/sjlj.S: Use it.
671 2011-11-08 Richard Henderson <rth@redhat.com>
673 * local.cc (_ITM_LB): Use a normal call, not a function alias.
675 2011-11-08 Richard Henderson <rth@redhat.com>
677 * configure.tgt: Test correct directory for supported cpus.
679 * configure.ac: Exit if unsupported.
680 * configure: Rebuild.
681 * configure.tgt: Delete boilerplate from libgomp for unsupported
682 targets. Set UNSUPPORTED for unsupported targets.
684 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686 * configure.tgt: Handle i386 like i[456]86.
687 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
689 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
690 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
692 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
694 * method-wbetl.cc: Update copyright notice.
701 * useraction.cc: Same.
705 * config/generic/tls.cc: Same.
706 * config/generic/cacheline.h: Same.
707 * config/generic/cachepage.h: Same.
708 * config/generic/cacheline.cc: Same.
709 * config/generic/unaligned.h: Same.
710 * config/x86/cacheline.h: Same.
711 * config/x86/cacheline.cc: Same.
712 * config/x86/unaligned.h: Same.
713 * config/alpha/cacheline.h: Same.
714 * config/alpha/unaligned.h: Same.
715 * config/alpha/sjlj.S: Same.
716 * config/posix/cachepage.cc: Same.
717 * config/linux/futex.h: Same.
718 * config/linux/alpha/futex_bits.h: Same.
720 2011-11-04 Torvald Riegel <triegel@redhat.com>
722 * libitm.texi: No cover text and invariant sections.
724 2011-11-03 Richard Henderson <rth@redhat.com>
726 * local_type_traits: New file.
727 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
729 2011-11-03 Richard Henderson <rth@redhat.com>
731 * configure.ac: Don't test for gfortran.
732 * configure: Rebuild.
734 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
735 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
737 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
739 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
740 * testsuite/libitm.c/memset-1.c: Same.
741 * testsuite/libitm.c/c.exp: Same.
742 * testsuite/lib/libitm-dg.exp: Same.
743 * testsuite/lib/libitm.exp: Same.
744 * testsuite/libitm.c++/c++.exp: Same.
746 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
748 * testsuite/config/default.exp: Update copyright date.
749 * configure.ac: Add copyright info.
750 * configure.tgt: Same.
752 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
754 * testsuite/libitm.c/reentrant.c: XFAIL.
755 * testsuite/libitm.c++/static_ctor.C: XFAIL.
757 2011-10-29 Torvald Riegel <triegel@redhat.com>
759 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
761 (_ITM_abortTransaction): Handle aborts of outer transactions.
763 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
764 * libitm.texi: Document aborts of outer transactions.
765 * testsuite/libitm.c/cancel.c: New file.
767 2011-10-19 Torvald Riegel <triegel@redhat.com>
769 * testsuite/*: Change __transaction to __transaction_atomic or
770 __transaction_relaxed.
772 2011-10-19 Torvald Riegel <triegel@redhat.com>
774 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
777 2011-10-19 Torvald Riegel <triegel@redhat.com>
779 * libitm_i.h: Add gl_wt dispatch.
780 * retry.cc (parse_default_method): Same.
781 * method-gl.cc: New file.
782 * Makefile.am: Use method-gl.cc.
783 * Makefile.in: Rebuild.
785 2011-10-19 Torvald Riegel <triegel@redhat.com>
787 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
788 safety if requested by a TM method.
789 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
790 privatization safety.
791 * method-serial.cc: Same.
793 2011-10-19 Torvald Riegel <triegel@redhat.com>
795 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
796 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
797 undolog-related member functions from *_local to *_undolog.
798 * local.cc (gtm_thread::commit_undolog): Same.
799 * beginend.cc (GTM::gtm_thread::trycommit): Same.
800 (GTM::gtm_thread::rollback): Roll back undolog before
801 dispatch-specific rollback.
803 2011-10-19 Torvald Riegel <triegel@redhat.com>
805 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
806 re-initialization of the current method group.
807 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
809 2011-10-19 Torvald Riegel <triegel@redhat.com>
811 * alloc.cc (commit_allocations_2): Do not free transaction-local
812 memory when committing a nested transaction.
814 2011-10-19 Torvald Riegel <triegel@redhat.com>
816 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
817 serial-irrevocable dispatch, not serial.
819 2011-10-19 Torvald Riegel <triegel@redhat.com>
821 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
823 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
824 * method-serial.cc: Implement begin_or_restart().
825 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
826 dispatch-specific begin_or_restart().
827 (GTM::gtm_thread::restart): Same.
829 2011-08-23 Torvald Riegel <triegel@redhat.com>
831 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
832 restarting without switching to serial mode.
833 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
834 transaction state. Choose closed-nesting alternative if available.
835 (GTM::gtm_thread::set_default_dispatch): New.
836 (parse_default_method): New.
837 (GTM::gtm_thread::number_of_threads_changed): New.
838 * method-serial.cc (GTM::serial_mg): New method group class.
839 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
841 (GTM::serial_dispatch): Same.
842 (GTM::serialirr_onwrite_dispatch): Same.
843 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
844 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
846 (GTM::gtm_thread::gtm_thread): Same.
847 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
848 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
849 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
850 choose dispatch but set state according to dispatch here.
851 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
852 (GTM::method_group): New class.
853 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
854 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
855 * libitm.texi: Document TM methods, method groups, method life cycle.
856 Rename method sets to method groups.
858 2011-08-23 Torvald Riegel <triegel@redhat.com>
860 * config/x86/tls.h: Moved to ...
861 * config/linux/x86/tls.h: ... here.
863 2011-08-23 Torvald Riegel <triegel@redhat.com>
865 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
867 * config/x86/sjlj.S: Same.
869 2011-08-19 Torvald Riegel <triegel@redhat.com>
871 * config/linux/rwlock.h: New file.
872 * config/linux/rwlock.c: New file.
873 * configure.ac: Reenable futex support (undo SVN rev 157758).
875 * configure.tgt: Same.
876 * config/linux/alpha/futex_bits.h: Same.
877 * config/linux/futex.h: Same. Return number of woken processes.
878 * config/linux/futex.cc: Same.
879 (futex_wait): Remove spinning.
880 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
881 Use __x86_64__ instead of __LP64__.
882 * aclocal.m4: Include generic futex checks.
883 * configure: Rebuild.
884 * Makefile.in: Rebuild.
885 * testsuite/Makefile.in: Rebuild.
886 * beginend.cc: Include pthread.h.
887 * config/posix/cachepage.cc: Same.
889 2011-08-12 Torvald Riegel <triegel@redhat.com>
891 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
892 (abi_disp, set_abi_disp): Move to tx's TLS slot.
894 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
896 (GTM::gtm_thread::thread_num): Removed.
897 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
898 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
899 tx-to-thread renaming.
900 * beginend.cc: Adapted to tx-to-thread renaming.
901 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
902 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
903 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
904 gtm_transaction to gtm_thread.
905 (_ITM_getThreadnum): Removed. Not supported anymore.
906 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
907 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
908 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
909 gtm_tx-to-gtm_thr renaming if necessary.
916 * alloc_cpp.cc: Same.
917 * method-serial.cc: Same.
918 * config/generic/tls.cc: Same.
919 * config/posix/rwlock.h (gtm_rwlock): Same.
920 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
922 2011-08-12 Torvald Riegel <triegel@redhat.com>
924 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
926 (gtm_rwlock::read_unlock): Same.
927 (gtm_rwlock::write_lock_generic): New. Generalized from ...
928 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
929 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
930 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
931 w_upgrade. Replaced by per-transaction flags (in shared_state).
932 Added c_confirmed_writers.
933 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
934 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
935 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
936 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
937 * beginend.cc (GTM::gtm_transaction::begin_transaction,
938 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
939 * libitm.texi: Document locking conventions and implementations in
942 2011-08-12 Torvald Riegel <triegel@redhat.com>
944 * libitm_i.h (next_tx): Add list of all threads' transaction.
945 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
946 transaction with list of transactions and ...
947 (thread_exit_handler): ... deregister here.
948 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
949 * config/x86/target.h: Same.
951 2011-08-12 Torvald Riegel <triegel@redhat.com>
953 * testsuite/libitm.c++/static_ctor.C: New file.
955 2011-08-12 Torvald Riegel <triegel@redhat.com>
957 * testsuite/libitm.c/reentrant.c: New file.
959 2011-08-12 Torvald Riegel <triegel@redhat.com>
961 * config/generic/tls.h: Remove the free list for transactions and ...
962 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
963 (GTM::gtm_transaction::operator delete): ... and release here.
964 (thread_exit_handler): New. Delete tx when thread terminates.
965 (thread_exit_init): New.
966 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
967 * testsuite/libitm.c/txrelease.c: New file.
969 2011-08-12 Torvald Riegel <triegel@redhat.com>
971 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
972 * testsuite/libitm.c/notx.c: New file.
974 2011-08-12 Torvald Riegel <triegel@redhat.com>
976 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
977 * libitm_i.h (local_tid): ... to here.
978 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
979 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
981 2011-08-12 Torvald Riegel <triegel@redhat.com>
983 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
984 serialirr_onwrite_dispatch as new default for now.
985 * method-serial.cc (serialirr_onwrite_dispatch): New.
986 (GTM::dispatch_serialirr_onwrite): New.
989 2011-08-12 Torvald Riegel <triegel@redhat.com>
991 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
992 * query.cc (_ITM_getTransactionId): There is no active transaction if
993 the current nesting level is zero.
995 2011-07-28 Torvald Riegel <triegel@redhat.com>
997 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1000 2011-07-28 Torvald Riegel <triegel@redhat.com>
1002 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1003 transaction properties from the caller instead of from the
1006 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1008 2011-07-28 Torvald Riegel <triegel@redhat.com>
1010 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1011 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1013 * method-serial.cc: Same.
1014 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1015 flat nesting as default, and closed nesting on demand.
1016 (GTM::gtm_transaction::rollback): Same.
1017 (_ITM_abortTransaction): Same.
1018 (GTM::gtm_transaction::restart): Same.
1019 (GTM::gtm_transaction::trycommit): Same.
1020 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1021 (choose_code_path): New.
1022 (GTM::gtm_transaction_cp::save): New.
1023 (GTM::gtm_transaction_cp::commit): New.
1024 * query.cc (_ITM_inTransaction): Support flat nesting.
1025 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1026 (GTM::gtm_transaction): Support flat and closed nesting.
1027 * alloc.cc (commit_allocations_2): New.
1028 (commit_cb_data): New helper struct.
1029 (GTM::gtm_transaction::commit_allocations): Handle nested
1031 * libitm.texi: Update user action section, add description of nesting.
1033 2011-07-28 Torvald Riegel <triegel@redhat.com>
1035 * libitm_i.h: Add closed nesting as restart reason.
1036 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1038 2011-07-28 Torvald Riegel <triegel@redhat.com>
1040 * useraction.cc: Use vector instead of list to store actions.
1041 Also support partial rollbacks for closed nesting.
1042 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1043 * beginend.cc: Same.
1045 2011-07-28 Torvald Riegel <triegel@redhat.com>
1047 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1048 closed_nesting flags, as well as a closed nesting alternative.
1049 * method-serial.cc: Same.
1050 (serial_dispatch): Renamed to serialirr_dispatch.
1051 (GTM::dispatch_serialirr): Same.
1052 (serial_dispatch_ul): Renamed to serial_dispatch.
1053 (GTM::dispatch_serial): Same.
1055 2011-07-28 Torvald Riegel <triegel@redhat.com>
1057 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1059 2011-07-28 Torvald Riegel <triegel@redhat.com>
1061 * aatree.h (aa_tree::remove): New.
1062 (aa_tree::operator new): Add placement new.
1064 2011-07-02 Torvald Riegel <triegel@redhat.com>
1066 * containers.h: New file.
1067 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1068 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1069 * common.h: ... to here.
1070 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1073 2011-06-30 Torvald Riegel <triegel@redhat.com>
1075 * libitm_i.h (STATE_ABORTING): Remove.
1076 * beginend.cc (_ITM_abortTransaction): Same.
1077 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1078 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1079 (_ITM_rollbackTransaction): Remove.
1080 * beginend.cc: Same.
1082 * libitm.texi: Document these ABI changes.
1084 2011-06-30 Torvald Riegel <triegel@redhat.com>
1086 * libitm.texi: New file.
1087 * Makefile.am: Add libitm.texi.
1088 * Makefile.in: Rebuild.
1090 2011-06-30 Torvald Riegel <triegel@redhat.com>
1092 * libitm_i.h: Move parts to common.h and dispatch.h.
1093 * common.h: New file.
1094 * dispatch.h: New file, new dispatch class.
1095 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1096 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1097 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1098 decision to retry.cc.
1099 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1101 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1102 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1104 * barrier.cc: Use new barriers definitions.
1105 (abi_dispatch::memmove_overlap_check): New.
1106 * config/x86/x86_sse.cc: Same.
1107 * config/x86/x86_avx.cc: Same.
1108 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1110 * Makefile.in: Rebuild.
1111 * method-readonly.cc: Remove.
1112 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1113 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1115 2011-06-30 Torvald Riegel <triegel@redhat.com>
1117 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1118 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1119 * testsuite/libitm.c/dropref-2.c: Same.
1120 * testsuite/libitm.c/dropref.c: Same.
1122 2011-06-30 Torvald Riegel <triegel@redhat.com>
1124 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1125 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1126 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1128 * barrier.tpl: Same.
1130 * config/generic/tls.h: Same.
1131 * config/x86/tls.h: Same.
1135 * method-readonly.cc: Same.
1136 * method-serial.cc: Same.
1137 * method-wbetl.cc: Same.
1140 2011-03-03 Richard Henderson <rth@redhat.com>
1142 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1143 From Patrik Marlier <patrick.marlier@unine.ch>.
1145 2011-02-03 Richard Henderson <rth@redhat.com>
1147 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1148 * configure.ac: Use it.
1149 * configure, config.h.in: Rebuild.
1150 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1151 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1152 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1153 * libitm.map: Use wildcards to match size_t mangling.
1155 2010-12-14 Richard Henderson <rth@redhat.com>
1157 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1158 blocks of TIDs per thread.
1159 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1160 (setup_gtm_thr): Return the thread structure.
1161 * config/x86/tls.h (setup_gtm_thr): Likewise.
1163 2010-12-14 Richard Henderson <rth@redhat.com>
1165 * clone.cc (table_lock): Remove.
1166 (find_clone): Don't take it.
1167 (ExcludeTransaction): New helper class.
1168 (_ITM_registerTMCloneTable): Use it.
1169 (_ITM_deregisterTMCloneTable): Likewise.
1171 2010-12-14 Richard Henderson <rth@redhat.com>
1173 * config/x86/tls.h: New file.
1175 2010-07-15 Richard Henderson <rth@redhat.com>
1177 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1178 * Makefile.in: Rebuild.
1180 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1182 * method-wbetl.cc (trydropreference): Fix source line.
1184 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1186 * libitm.h: Add comment.
1187 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1189 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1191 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1192 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1193 available, use pthread mutexes.
1194 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1195 * config.h.in: Regenerate.
1196 * configure: Regenerate.
1198 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1200 * libitm.h (ITM_PURE): Define.
1201 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1203 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1205 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1206 (validate): Add comment.
1207 (trydropreference): New.
1208 * method-readonly.cc (class readonly_dispatch): Add
1210 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1211 Call trydropreference().
1212 * libitm.h (_ITM_dropReferences): Remove const attribute.
1213 * method-serial.cc (class serial_dispatch): Add trydropreference.
1214 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1216 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1218 * memcpy.cc (do_memcpy): Comment.
1220 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1222 * barrier.tpl: Add comments throughout.
1224 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1226 * method-wbetl.cc (struct w_entry): Add comments.
1230 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1232 * alloc_c.cc (_ITM_dropReferences): New.
1233 * libitm.map (_ITM_dropReferences): Add.
1234 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1235 * libitm_i.h (struct gtm_transaction): Declare
1236 drop_references_allocations and drop_references_local.
1237 * local.cc (rollback_local): Ignore memory when applicable.
1238 (drop_references_local): New.
1240 2010-06-23 Richard Henderson <rth@redhat.com>
1242 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1243 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1244 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1245 * config/alpha/target.h: Likewise.
1246 * config/generic/tls.cc (gtm_mask_stack): Use it.
1248 2010-06-23 Richard Henderson <rth@redhat.com>
1250 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1251 a mutex instead of trying a lock-free compare-and-swap on the list.
1252 (gtm_cacheline_page::operator delete): Likewise.
1254 2010-06-16 Richard Henderson <rth@redhat.com>
1256 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1257 that overlap the libitm stack.
1258 * barrier.tpl: Mark incoming stack.
1259 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1260 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1261 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1262 * memcpy.cc, memset.cc: Likewise.
1263 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1264 * config/generic/tls.h (gtm_thread): Add stack_top member.
1265 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1266 * libitm_i.h (gtm_mask_stack): Declare.
1267 * config/generic/tls.cc: New file.
1268 * Makefile.am (libitm_la_SOURCES): Add it.
1269 (AM_CXXFLAGS): Turn off exceptions.
1270 * Makefile.in: Rebuild.
1272 2010-06-16 Richard Henderson <rth@redhat.com>
1274 * alloc.cc (struct gtm_alloc_action): Move definition ...
1275 * libitm_i.h: ... here.
1276 (class gtm_transaction): Declare new and delete.
1277 * beginend.cc (alloc_tx): Reformulate as operator new.
1278 (free_tx): Reformulate as operator delete.
1279 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1281 2010-06-11 Richard Henderson <rth@redhat.com>
1283 * clone.cc (clone_entry_compare): Fix typo.
1284 From Patrik Marlier <patrick.marlier@unine.ch>.
1286 2010-05-13 Richard Henderson <rth@redhat.com>
1288 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1291 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1293 * libitm_i.h (struct gtm_transaction): Remove
1294 get_allocation_size.
1295 (record_allocation): Remove size parameter.
1296 * libitm.map (_ITM_realloc): Remove.
1297 * alloc_c.cc (_ITM_realloc): Remove.
1298 (_ITM_malloc): Remove size argument to record_allocation.
1299 (_ITM_calloc): Same.
1300 * alloc_cpp.cc (_ZGTtnwm): Same.
1301 (_ZGTtnwmRKSt9nothrow_t): Same.
1303 (_ZGTtnamRKSt9nothrow_t): Same.
1304 * alloc.cc (struct gtm_alloc_action): Remove size.
1305 (get_allocation_size): Remove.
1306 (commit_allocations): Add comment.
1307 (record_allocation): Remove size parameter.
1308 (forget_allocation): Remove set of size.
1310 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1312 * Makefile.am (abi_version): New.
1313 (AM_CXXFLAGS): Pass abi_version.
1314 * Makefile.in: Regenerate.
1315 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1317 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1319 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1320 _ITM_getTMCloneOrIrrevokable.
1321 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1322 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1324 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1326 * configure.ac: Remove Linux futex support.
1327 * configure.tgt (config_path): Same.
1328 * Makefile.am: Same.
1329 * config/linux: Remove entire directory.
1330 * configure: Rebuild.
1331 * Makefile.in: Rebuild.
1332 * testsuite/Makefile.in: Rebuild.
1334 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1336 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1337 switching to serial mode.
1338 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1340 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1342 * configure.tgt: Add emacs -*- tags.
1343 * barrier.tpl: Same.
1345 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1347 * Makefile.am: Rename serial.cc to method-serial.cc.
1348 * Makefile.in: Regenerate with automake 1.11.1.
1349 * testsuite/Makefile.in: Same.
1350 * aclocal.m4: Regenerate with aclocal 1.11.1.
1351 * method-serial.cc: Rename from serial.cc.
1352 * libitm_i.h (struct gtm_transaction): Update comment on
1355 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1357 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1358 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1360 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1362 * configure: Rebuild.
1364 2009-11-12 Richard Henderson <rth@redhat.com>
1366 * Rewrite everything in C++.
1368 2009-11-03 Richard Henderson <rth@redhat.com>
1370 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1371 * Makefile.am (libitm_la_SOURCES): Add them.
1372 * configure.ac (ARCH_X86): New conditional.
1373 * Makefile.in, configure: Rebuild.
1374 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1375 Move futex setup into "other system configury" case.
1376 * local.c (rollback_local): Merge into ...
1377 (GTM_rollback_local): ... here.
1378 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1379 (_ITM_LB): Define as an alias to GTM_LB.
1381 2009-11-03 Richard Henderson <rth@redhat.com>
1383 * method-readonly.c: New file.
1384 * Makefile.am (libitm_la_SOURCES): Add it.
1385 * Makefile.in: Rebuild.
1386 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1387 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1388 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1389 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1390 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1391 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1392 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1393 gtm_get_clock, gtm_inc_clock): New.
1394 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1395 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1396 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1397 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1398 replace uses with new libitm_i.h symbols.
1399 (dispatch_wbetl): Rename from wbetl_dispatch.
1400 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1401 away from dispatch_readonly; abort if the beginTransaction call
1402 asserted that the transaction was readonly.
1404 2009-11-03 Richard Henderson <rth@redhat.com>
1406 * memset.c: New file.
1407 * Makefile.am (libitm_la_SOURCES): Add it.
1408 * Makefile.in: Rebuild.
1409 * testsuite/libitm.c/memset-1.c: New.
1411 2009-11-03 Richard Henderson <rth@redhat.com>
1413 * dispatch.c: Remove file.
1414 * useraction.c (struct gtm_user_action): Move from libitm.h.
1415 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1416 (serial_memset, serial_memmove, serial_memcpy): Remove.
1417 (serial_W*, serial_R*): Remove.
1418 (serial_dispatch): Update to match.
1419 * configure.ac: Move Werror down below configure checks. Don't
1420 check for sys/loadavg.h, do check for malloc.h. Don't check for
1421 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1422 Use GCC_AC_FUNC_MMAP_BLACKLIST
1423 * libitm.h: Split out all internal items to...
1424 * libitm_i.h: ... here. New file.
1425 * copymask.c: New file.
1426 * local.c (struct gtm_local_undo): Move from libitm.h.
1427 (GTM_alloc_local): Rename from alloc_local; export.
1428 * memcpy.c: New file.
1429 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1430 * config/posix/page.c: New file.
1431 * config/posix/target_tls.h: Remove file.
1432 * barrier.c: New file.
1433 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1435 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1436 * method-wbetl.c: Rewrite for new cacheline methods.
1437 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1439 * config/alpha/sjlj.S: Fix typo.
1440 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1441 * config/alpha/copymask.c: New file.
1442 * config/alpha/target.h (CACHELINE_SIZE): New.
1443 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1445 * config/x86/target_i.h: Copy functions from x86/target.h.
1446 * config/x86/copymask.c: New file.
1447 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1448 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1449 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1450 * config/x86/target_tls.h: Move contents to target_i.h.
1452 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1453 * testsuite/libitm.c/memcpy-1.c: New.
1455 2009-10-22 Richard Henderson <rth@redhat.com>
1457 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1458 (AM_CCASFLAGS): New.
1459 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1460 saving/restoring _AC_ARG_VAR_PRECIOUS.
1461 * Makefile.in, aclocal.m4, config.h.in, configure,
1462 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1464 2009-10-22 Richard Henderson <rth@redhat.com>
1466 * testsuite/*: Update for new compiler syntax.
1468 2009-10-21 Richard Henderson <rth@redhat.com>
1470 * libitm.h (_ITM_abortReason): Add outerAbort.
1472 2009-08-03 Richard Henderson <rth@redhat.com>
1474 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1475 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1476 * method-wbetl.c (struct w_entry): Remove mask.
1477 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1480 2009-07-22 Richard Henderson <rth@redhat.com>
1482 * eh_cpp.c: New file.
1483 * Makefile.am (libitm_la_SOURCES): Add it.
1484 * Makefile.in: Rebuild.
1485 * beginend.c (GTM_rollback_transaction): Undo exception state.
1486 (GTM_trycommit_transaction): Mark inline.
1487 (GTM_trycommit_and_finalize_transaction): Split out from ...
1488 (_ITM_commitTransaction): ... here.
1489 (_ITM_commitTransactionEH): New function.
1490 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1491 cxa_unthrown, eh_in_flight; reorder.
1493 * testsuite/libitm.c++/c++.exp: New.
1494 * testsuite/libitm.c++/eh-1.C: New.
1496 * aatree.c (aa_free): Remove REGPARM.
1497 * aatree.h: Remove all REGPARM.
1499 2009-07-18 Richard Henderson <rth@redhat.com>
1501 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1502 * Makefile.am (libitm_la_SOURCES): Add them.
1503 * Makefile.in: Rebuild.
1504 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1505 (GTM_trycommit_transaction): Likewise.
1506 * libitm.h: Include aatree.h
1507 (struct gtm_alloc_action): New.
1508 (struct gtm_transaction): Add alloc_actions.
1509 (GTM_record_allocation, GTM_forget_allocation): Declare.
1510 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1511 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1512 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1513 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1514 _ZGTtdaPvRKSt9nothrow_t): Export.
1516 2009-07-18 Richard Henderson <rth@redhat.com>
1518 * target_tls.h: Move ...
1519 * config/posix/target_tls.h: ... here.
1521 2009-07-07 Richard Henderson <rth@redhat.com>
1523 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1525 2009-07-07 Richard Henderson <rth@redhat.com>
1529 2009-07-07 Richard Henderson <rth@redhat.com>
1531 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1532 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1534 * configure.tgt: Don't use -ftls-model for x86 linux.
1535 * libitm.h: Include target.h after standard includes.
1536 (_gtm_thr): Rename from gtm_thr.
1537 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1538 (gtm_disp, set_gtm_disp): New.
1539 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1540 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1541 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1543 2009-07-07 Richard Henderson <rth@redhat.com>
1545 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1547 2009-07-06 Richard Henderson <rth@redhat.com>
1549 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1550 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1551 (_ITM_beginTransaction): Take variadic arguments.
1552 (_ITM_registerThrownObject): Declare.
1553 * beginend.c, serial.c: Update.
1554 * libitm.map: Add _ITM_registerThrownObject.
1556 2009-01-28 Richard Henderson <rth@redhat.com>
1558 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1559 * Makefile.in: Rebuild.
1560 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1561 (GTM_restart_transaction): Fix uninstrumented code check.
1562 * retry.c (GTM_decide_retry_strategy): Add serial check.
1563 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1564 automatically go irrevokable when in serial mode.
1565 * clone.c: New file.
1566 * libitm.h, libitm.map: Update.
1568 2009-01-27 Richard Henderson <rth@redhat.com>
1570 * Makefile.am (LTCCASCOMPILE): Define.
1571 (libitm_la_SOURCES): Add methid-wbetl.c.
1572 * testsuite/Makefile.am: New
1573 * configure.ac: Add testsuite/Makefile.
1574 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1575 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1576 (_ITM_abortTransaction): Finalize implementation method; pass
1577 transaction properties to longjmp.
1578 (GTM_restart_transaction): Split out from ...
1579 (_ITM_commitTransaction): ... here.
1580 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1581 Move to config/x86/target.h.
1582 * config/linux/alpha/futex_bits.h: New.
1583 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1584 * config/x86/target.h: Disable target types for 32-bit.
1585 * config/alpha/sjlj.S, config/alpha/target.h: New.
1586 * libitm.h (struct gtm_dispatch): Add init, fini.
1587 (enum restart_reason): New.
1588 (struct gtm_transaction): Add method and restarts.
1589 * retry.c (GTM_decide_retry_strategy): Implement.
1590 * serial.c (serial_init, serial_fini): New.
1591 (GTM_serialmode): Finialize outgoing method.
1592 * method-wbetl.c: New.
1594 2008-12-09 Richard Henderson <rth@redhat.com>
1596 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1597 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1598 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1599 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1600 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1601 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1602 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1603 * serial.c (serial_R##T, serial_W##T): Likewise.
1605 2008-11-21 Richard Henderson <rth@redhat.com>