1 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
3 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
4 * configure.ac: Use it.
5 (AC_CHECK_HEADERS): Check for sys/auxv.h.
6 (AC_CHECK_FUNCS): Check for getauxval.
7 * config.h.in, configure: Rebuild.
8 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
9 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
10 (USE_HTM_FASTPATH): Define.
11 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
12 _HTM_RETRIES) New macros.
13 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
14 htm_begin_success, htm_commit, htm_transaction_active): New functions.
16 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18 * config/s390/target.h: Include htmintrin.h.
19 (_HTM_ITM_RETRIES): New macro definition.
20 (htm_available, htm_init, htm_begin, htm_begin_success)
21 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
23 2013-06-20 Iain Sandoe <iain@codesourcery.com>
24 Cesar Philippidis <cesar@codesourcery.com>
26 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
27 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
28 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
29 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
31 2013-06-20 Torvald Riegel <triegel@redhat.com>
33 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
34 (_ITM_getTransactionId): Same.
35 * config/x86/target.h (htm_transaction_active): New.
37 2013-06-20 Torvald Riegel <triegel@redhat.com>
40 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
43 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
46 * local_atomic (__always_inline): Always define our version.
47 (__calculate_memory_order): Mark inline.
48 (atomic_thread_fence): Ditto.
49 (atomic_signal_fence): Ditto.
50 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
51 (atomic_bool::atomic_flag_clear_explicit): Ditto.
52 (atomic_bool::atomic_flag_test_and_set): Ditto.
53 (atomic_bool::atomic_flag_clear): Ditto.
55 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
57 * config/s390/sjlj.S: New file.
58 * config/s390/target.h: New file.
59 * configure.tgt: Set options for S/390.
61 2013-03-23 Andi Kleen <ak@linux.intel.com>
63 * local_atomic (__always_inline): Add.
64 (__calculate_memory_order, atomic_thread_fence,
65 atomic_signal_fence, test_and_set, clear, store, load,
66 exchange, compare_exchange_weak, compare_exchange_strong,
67 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
68 Add __always_inline to force inlining.
70 2013-02-11 Iain Sandoe <iain@codesourcery.com>
71 Jack Howarth <howarth@bromo.med.uc.edu>
72 Patrick Marlier <patrick.marlier@gmail.com>
75 * alloc_cpp.cc: Enable function declarations on darwin.
76 * eh_cpp.cc: Likewise.
78 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
80 Update copyright years.
82 2012-11-09 Torvald Riegel <triegel@redhat.com>
84 * beginend.cc (htm_fastpath): New.
85 (gtm_thread::begin_transaction, _ITM_commitTransaction,
86 _ITM_commitTransactionEH): Add HTM fastpath handling.
87 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
88 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
89 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
90 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
91 * configure.tgt: Add -mrtm to XCFLAGS.
92 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
93 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
94 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
95 * retry.cc (parse_default_method): Add HTM method parsing.
96 (gtm_thread::number_of_threads_changed): Use HTM by default if
99 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
101 * configure: Regenerate.
103 2012-10-31 Richard Henderson <rth@redhat.com>
105 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
106 * configure.ac: Use it.
107 * config.h.in, configure: Rebuild.
108 * testsuite/Makefile.in: Rebuild.
110 2012-10-24 Torvald Riegel <triegel@redhat.com>
112 * libitm.texi: Clarify ABI requirements for data-logging functions.
114 2012-10-24 Torvald Riegel <triegel@redhat.com>
116 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
117 it requires serial mode instead of assuming that for certain
119 * dispatch.h (abi_dispatch::requires_serial): New.
120 (abi_dispatch::abi_dispatch): Adapt.
121 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
122 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
123 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
124 serial_dispatch::serial_dispatch,
125 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
127 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
129 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
130 and ia32 declarations some more.
131 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
133 2012-09-20 Jakub Jelinek <jakub@redhat.com>
136 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
137 * configure: Regenerate.
138 * Makefile.in: Regenerate.
140 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
142 * configure: Regenerated.
144 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
146 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
148 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
150 * eh_cpp.cc: Fix __cxa_end_catch declaration.
152 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
154 * configure: Regenerated.
156 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
159 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
162 2012-04-03 Tristan Gingold <gingold@adacore.com>
164 * configure: Regenerate.
166 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
169 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
171 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
173 * testsuite/lib/libitm.exp: load fortran-modules.exp
175 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
177 * configure.tgt (*-*-irix6*): Remove.
179 2012-03-13 Torvald Riegel <triegel@redhat.com>
182 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
185 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187 * configure.tgt (*-*-osf*): Remove.
188 * configure: Regenerate.
190 2012-03-05 Torvald Riegel <triegel@redhat.com>
192 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
193 memtransfer/memset if size isn't larger than zero.
195 2012-03-02 Torvald Riegel <triegel@redhat.com>
197 * libitm.texi: Link to specification and add a usage example.
199 2012-02-24 Torvald Riegel <triegel@redhat.com>
201 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
202 default dispatch for more than 1 thread to ml_wt.
204 2012-02-20 Torvald Riegel <triegel@redhat.com>
206 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
208 2012-02-20 Torvald Riegel <triegel@redhat.com>
210 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
212 2012-02-20 Torvald Riegel <triegel@redhat.com>
214 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
215 serial mode corner cases made obsolete by prior gtm_rwlock changes.
216 (gl_wt_dispatch.rollback): Same.
218 2012-02-20 Torvald Riegel <triegel@redhat.com>
220 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
222 2012-02-20 Torvald Riegel <triegel@redhat.com>
224 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
225 for RfW src. Optimize number of calls to gtm_thr.
227 2012-02-20 Torvald Riegel <triegel@redhat.com>
229 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
231 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
232 (default_dispatch): Make atomic.
233 (GTM::gtm_thread::set_default_dispatch): Access atomically.
234 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
235 use decide_begin_dispatch() if default_dispatch might have changed.
236 (GTM::gtm_thread::number_of_threads_changed): Initialize
237 default_dispatch here.
239 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
240 Patrick Marlier <patrick.marlier@gmail.com>
243 * alloc_cpp.cc: No dummy definitions for darwin.
244 * eh_cpp.cc: Likewise.
246 2012-02-14 Richard Henderson <rth@redhat.com>
248 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
250 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
252 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
254 2012-02-14 Torvald Riegel <triegel@redhat.com>
256 * libitm_i.h (GTM::gtm_rwlog_entry): New.
257 (GTM::gtm_thread): Add read and write logs.
258 (GTM::dispatch_ml_wt): Declare.
259 * retry.cc (parse_default_method): Support ml_wt.
260 * method-ml.cc: New file.
261 * Makefile.am: Add method-ml.cc.
262 * Makefile.in: Regenerate.
264 2012-02-14 Torvald Riegel <triegel@redhat.com>
266 * dispatch.h (GTM::abi_dispatch::supports): New.
267 (GTM::method_group::reinit): New.
268 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
269 (GTM::gtm_thread::number_of_threads_changed): Check that the method
270 supports the current situation.
272 2012-02-14 Torvald Riegel <triegel@redhat.com>
274 * util.cc (GTM::xcalloc): New.
275 * common.h (GTM::xcalloc): Declare.
277 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
279 * config/sparc/target.h (cpu_relax): Read from CC register.
280 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
282 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
284 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
286 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
288 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
289 * config/sparc/cacheline.h: New file.
290 * config/sparc/target.h: Likewise.
291 * config/sparc/sjlj.S: Likewise.
292 * config/linux/sparc/futex_bits.h: Likewise.
294 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
296 * configure.ac (link_itm): Fix comment.
297 * configure: Regenerate.
298 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
300 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
303 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
304 Correct libgomp references.
306 2012-01-24 Torvald Riegel <triegel@redhat.com>
308 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
311 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
313 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
315 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
316 offset values. Do not copy return address. Decrement stack
318 (GTM_longjump) [__x86_64__]: Update offset values.
320 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
323 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
324 the first function argument to %eax.
326 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * libitm.h (_ITM_getThreadnum): Remove.
329 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
331 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333 * clearcap.map: New file.
334 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
335 * configure.ac: Call it.
336 Clear HWCAP_LDFLAGS if defaulting to -mavx.
337 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
338 * configure: Regenerate.
339 * Makefile.in: Regenerate.
340 * testsuite/Makefile.in: Regenerate.
342 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
345 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
346 include, exclude options.
348 2012-01-14 Torvald Riegel <triegel@redhat.com>
350 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
352 * containers.h (GTM::vector::set_size): New.
354 2012-01-14 Torvald Riegel <triegel@redhat.com>
357 * config/generic/tls.h (GTM::mask_stack_top): New.
358 (GTM::mask_stack_bottom): Declare.
359 * config/generic/tls.c (GTM::mask_stack_bottom): New.
360 * local.cc (gtm_undolog::rollback): Filter out any updates that
361 overlap the libitm stack. Add current transaction as parameter.
362 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
363 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
364 * testsuite/libitm.c/stackundo.c: New test.
366 2012-01-10 Richard Henderson <rth@redhat.com>
368 * libitm_i.h (_Unwind_DeleteException): Declare weak.
369 * eh_cpp.cc (_Unwind_DeleteException): Define for
370 !HAVE_ELF_STYLE_WEAKREF.
372 2012-01-08 Torvald Riegel <triegel@redhat.com>
374 * local.cc (GTM_LB): Use GTM::gtm_undolog.
375 (GTM::gtm_thread::drop_references_undolog): Remove.
376 (GTM::gtm_thread::commit_undolog,
377 GTM::gtm_thread::rollback_undolog): Move to ...
378 * libitm_i.h (GTM::gtm_undolog): ...here. New.
379 (GTM::gtm_undolog_entry): Remove.
380 (GTM::gtm_thread): Adapt.
381 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
382 (GTM::gtm_thread::trycommit): Adapt.
383 * method-serial.cc (serial_dispatch::log): Adapt.
384 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
385 (gl_wt_dispatch::store): Fix likely/unlikely.
386 * containers.h (GTM::vector::resize): Add additional_capacity
387 parameter and handle it.
388 (GTM::vector::resize_noinline): New/adapt.
389 (GTM::vector::push): New.
391 2012-01-06 Richard Henderson <rth@redhat.com>
393 * configure.tgt: Support powerpc-linux and powerpc-darwin.
394 * config/linux/powerpc/futex_bits.h: New file.
395 * config/powerpc/cacheline.h: New file.
396 * config/powerpc/sjlj.S: New file.
397 * config/powerpc/target.h: New file.
398 * config/generic/asmcfi.h (cfi_offset): New.
399 (cfi_restore, cfi_undefined): New.
401 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
404 * testsuite/libitm.c/reentrant.c: Remove xfail.
405 (thread): Pass x to pure().
406 From Patrik Marlier <patrick.marlier@gmail.com>.
408 2011-12-24 Torvald Riegel <triegel@redhat.com>
410 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
411 privatization safety if already in serial mode.
413 2011-12-24 Torvald Riegel <triegel@redhat.com>
415 * beginend.cc (GTM::gtm_thread::restart): Add and handle
416 finish_serial_upgrade parameter.
417 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
418 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
419 Don't unset reader flag.
420 (GTM::gtm_rwlock::write_upgrade_finish): New.
421 * config/posix/rwlock.cc: Same.
422 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
424 * config/posix/rwlock.h: Same.
425 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
426 flag after commit or after rollback when restarting.
428 2011-12-24 Torvald Riegel <triegel@redhat.com>
430 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
431 (GTM::gtm_thread::try_commit): Changed memory order.
432 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
434 * config/linux/x86/futex_bits.h (sys_futex0): Same.
435 * config/linux/sh/futex_bits.h (sys_futex0): Same.
436 * config/linux/futex_bits.h (sys_futex0): Same.
437 * config/linux/futex.cc (futex_wait, futex_wake): Same.
438 * config/linux/futex.h (futex_wait, futex_wake): Same.
439 * config/linux/rwlock.h (gtm_rwlock::writers,
440 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
442 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
443 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
444 gtm_rwlock::write_unlock): Fix memory orders and fences.
445 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
446 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
447 gtm_rwlock::write_unlock): Same.
448 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
449 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
450 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
452 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
453 gl_wt_dispatch::load, gl_wt_dispatch::store,
454 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
455 orders and fences. Add comments.
457 2011-12-21 Jakub Jelinek <jakub@redhat.com>
459 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
460 * Makefile.in: Regenerated.
462 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
464 * configure.tgt: Add sh* case.
465 * config/sh/target.h: New file.
466 * config/sh/sjlj.S: New file.
467 * config/linux/sh/futex_bits.h: New file.
469 2011-12-14 Richard Henderson <rth@redhat.com>
471 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
472 * config/arm/sjlj.S, config/arm/target.h: New files.
473 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
474 (cfi_rel_offset): New.
475 * config/linux/futex_bits.h: New file.
476 * config/linux/futex.cc: Include futex_bits.h here...
477 * config/linux/futex.h: ... not here.
478 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
479 * configure.ac (ARCH_AM): New conditional.
480 * Makefile.in, configure: Rebuild.
481 * configure.tgt: Handle ARM.
483 2011-12-13 Richard Henderson <rth@redhat.com>
485 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
486 signed/unsigned comparison werror.
488 * local_atomic: New file.
489 * libitm_i.h: Include it.
490 (gtm_thread::shared_state): Use atomic template.
491 * beginend.cc (GTM::gtm_clock): Use atomic template.
492 (global_tid): Use atomic template if 64-bit atomics available.
493 (gtm_thread::gtm_thread): Update shared_state access.
494 (gtm_thread::trycommit): Likewise.
495 (choose_code_path): Update global_tid access.
496 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
497 * stmlock.h (GTM::gtm_clock): Use atomic template.
498 (gtm_get_clock, gtm_inc_clock): Update accesses.
499 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
500 redundant __sync_synchronize after atomic shared_state access.
501 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
502 (gtm_rwlock::write_lock_generic): Likewise.
503 (gtm_rwlock::read_unlock): Likewise.
504 * config/alpha/target.h (atomic_read_barrier): Remove.
505 (atomic_write_barrier): Remove.
506 * config/x86/target.h (atomic_read_barrier): Remove.
507 (atomic_write_barrier): Remove.
509 2011-11-30 Richard Henderson <rth@redhat.com>
511 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
512 * beginend.c (_ITM_abortTransaction): Update to match.
513 (GTM::gtm_thread::restart): Likewise.
514 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
515 * config/x86/sjlj.S (GTM_longjmp): Likewise.
517 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
519 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
520 * Makefile.in: Regenerate.
522 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
524 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
525 * alloc_cpp.cc: Generate dummy functions if we don't
526 HAVE_ELF_STYLE_WEAKREF.
527 * eh_cpp.cc: Likewise.
528 * configure: Regenerate.
529 * aclocal.m4: Likewise.
530 * config.h.in: Likewise.
531 * Makefile.in: Likewise.
532 * testsuite/Makefile.in: Likewise.
534 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
536 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
537 __USER_LABEL_PREFIX__ for targets that use it.
538 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
539 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
540 in portability to non-elf targets.
541 (GTM_longjmp): Likewise.
542 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
545 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
547 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
548 * testsuite/libitm.c/memset-1.c: Likewise.
550 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
552 * configure: Regenerate.
554 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
556 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
557 (LIBITM_ENABLE_SYMVERS): Handle sun style.
558 * Makefile.am: Handle sun style versioning.
559 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
560 * configure: Regenerate.
561 * Makefile.in: Regenerate.
563 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
565 * config/generic/asmcfi.h: Fix comment.
566 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
567 sequence without .hidden support, error for non-ELF targets.
568 (GTM_longjmp) [__ELF__]: Only use .hidden if
569 HAVE_ATTRIBUTE_VISIBILITY.
571 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
573 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
574 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
576 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
577 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
579 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
582 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
583 * configure: Regenerate.
585 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
587 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
589 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
591 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
593 (.note.GNU-stack): Only use if __linux__.
594 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
595 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
596 * testsuite/libitm.c/reentrant.c: Likewise.
597 * testsuite/libitm.c/simple-2.c: Likewise.
598 * testsuite/libitm.c/txrelease.c: Likewise.
599 * testsuite/libitm.c++/static_ctor.C: Likewise.
601 2011-11-10 Richard Henderson <rth@redhat.com>
603 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
604 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
605 * configure.ac (ARCH_X86_AVX): New conditional.
606 * Makefile.in, configure: Rebuild.
608 2011-11-09 Richard Henderson <rth@redhat.com>
610 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
611 * configure.ac: Use it.
612 * config.h.in, configure: Rebuild.
613 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
615 2011-11-09 Richard Henderson <rth@redhat.com>
617 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
618 * config/alpha/unaligned.h: Remove file.
619 * config/generic/unaligned.h: Remove file.
620 * config/x86/unaligned.h: Remove file.
621 * config/generic/cachepage.h: Remove file.
622 * config/posix/cachepage.cc: Remove file.
623 * config/generic/cacheline.cc: Remove file.
624 * config/x86/cacheline.cc: Remove file.
625 * config/generic/cacheline.h (gtm_cacheline): Remove the
626 store_mask, copy_mask, copy_mask_wb methods.
627 * config/x86/cacheline.h: Likewise.
628 * config/alpha/cacheline.h: Fall back to generic after setting size.
629 * config/generic/tls.cc (gtm_mask_stack): Remove.
630 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
631 (GTM_vpalignr_table): Remove.
632 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
633 (GTM_pshift_table): Remove.
634 * config/libitm_i.h: Don't include cachepage.h.
635 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
636 * Makefile.in, testsuite/Makefile.in: Rebuild.
638 2011-11-09 Richard Henderson <rth@redhat.com>
640 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
641 to emit branch prediction hint.
643 * config/x86/sjlj.S: Protect elf directives with __ELF__.
644 Protect .note.GNU-stack with __linux__.
646 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
647 * configure, aclocal.m4, config.h.in: Rebuild.
648 * config/generic/asmcfi.h: New file.
649 * config/x86/sjlj.S: Use it.
651 2011-11-08 Richard Henderson <rth@redhat.com>
653 * local.cc (_ITM_LB): Use a normal call, not a function alias.
655 2011-11-08 Richard Henderson <rth@redhat.com>
657 * configure.tgt: Test correct directory for supported cpus.
659 * configure.ac: Exit if unsupported.
660 * configure: Rebuild.
661 * configure.tgt: Delete boilerplate from libgomp for unsupported
662 targets. Set UNSUPPORTED for unsupported targets.
664 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
666 * configure.tgt: Handle i386 like i[456]86.
667 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
669 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
670 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
672 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
674 * method-wbetl.cc: Update copyright notice.
681 * useraction.cc: Same.
685 * config/generic/tls.cc: Same.
686 * config/generic/cacheline.h: Same.
687 * config/generic/cachepage.h: Same.
688 * config/generic/cacheline.cc: Same.
689 * config/generic/unaligned.h: Same.
690 * config/x86/cacheline.h: Same.
691 * config/x86/cacheline.cc: Same.
692 * config/x86/unaligned.h: Same.
693 * config/alpha/cacheline.h: Same.
694 * config/alpha/unaligned.h: Same.
695 * config/alpha/sjlj.S: Same.
696 * config/posix/cachepage.cc: Same.
697 * config/linux/futex.h: Same.
698 * config/linux/alpha/futex_bits.h: Same.
700 2011-11-04 Torvald Riegel <triegel@redhat.com>
702 * libitm.texi: No cover text and invariant sections.
704 2011-11-03 Richard Henderson <rth@redhat.com>
706 * local_type_traits: New file.
707 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
709 2011-11-03 Richard Henderson <rth@redhat.com>
711 * configure.ac: Don't test for gfortran.
712 * configure: Rebuild.
714 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
715 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
717 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
719 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
720 * testsuite/libitm.c/memset-1.c: Same.
721 * testsuite/libitm.c/c.exp: Same.
722 * testsuite/lib/libitm-dg.exp: Same.
723 * testsuite/lib/libitm.exp: Same.
724 * testsuite/libitm.c++/c++.exp: Same.
726 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
728 * testsuite/config/default.exp: Update copyright date.
729 * configure.ac: Add copyright info.
730 * configure.tgt: Same.
732 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
734 * testsuite/libitm.c/reentrant.c: XFAIL.
735 * testsuite/libitm.c++/static_ctor.C: XFAIL.
737 2011-10-29 Torvald Riegel <triegel@redhat.com>
739 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
741 (_ITM_abortTransaction): Handle aborts of outer transactions.
743 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
744 * libitm.texi: Document aborts of outer transactions.
745 * testsuite/libitm.c/cancel.c: New file.
747 2011-10-19 Torvald Riegel <triegel@redhat.com>
749 * testsuite/*: Change __transaction to __transaction_atomic or
750 __transaction_relaxed.
752 2011-10-19 Torvald Riegel <triegel@redhat.com>
754 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
757 2011-10-19 Torvald Riegel <triegel@redhat.com>
759 * libitm_i.h: Add gl_wt dispatch.
760 * retry.cc (parse_default_method): Same.
761 * method-gl.cc: New file.
762 * Makefile.am: Use method-gl.cc.
763 * Makefile.in: Rebuild.
765 2011-10-19 Torvald Riegel <triegel@redhat.com>
767 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
768 safety if requested by a TM method.
769 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
770 privatization safety.
771 * method-serial.cc: Same.
773 2011-10-19 Torvald Riegel <triegel@redhat.com>
775 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
776 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
777 undolog-related member functions from *_local to *_undolog.
778 * local.cc (gtm_thread::commit_undolog): Same.
779 * beginend.cc (GTM::gtm_thread::trycommit): Same.
780 (GTM::gtm_thread::rollback): Roll back undolog before
781 dispatch-specific rollback.
783 2011-10-19 Torvald Riegel <triegel@redhat.com>
785 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
786 re-initialization of the current method group.
787 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
789 2011-10-19 Torvald Riegel <triegel@redhat.com>
791 * alloc.cc (commit_allocations_2): Do not free transaction-local
792 memory when committing a nested transaction.
794 2011-10-19 Torvald Riegel <triegel@redhat.com>
796 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
797 serial-irrevocable dispatch, not serial.
799 2011-10-19 Torvald Riegel <triegel@redhat.com>
801 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
803 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
804 * method-serial.cc: Implement begin_or_restart().
805 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
806 dispatch-specific begin_or_restart().
807 (GTM::gtm_thread::restart): Same.
809 2011-08-23 Torvald Riegel <triegel@redhat.com>
811 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
812 restarting without switching to serial mode.
813 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
814 transaction state. Choose closed-nesting alternative if available.
815 (GTM::gtm_thread::set_default_dispatch): New.
816 (parse_default_method): New.
817 (GTM::gtm_thread::number_of_threads_changed): New.
818 * method-serial.cc (GTM::serial_mg): New method group class.
819 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
821 (GTM::serial_dispatch): Same.
822 (GTM::serialirr_onwrite_dispatch): Same.
823 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
824 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
826 (GTM::gtm_thread::gtm_thread): Same.
827 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
828 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
829 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
830 choose dispatch but set state according to dispatch here.
831 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
832 (GTM::method_group): New class.
833 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
834 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
835 * libitm.texi: Document TM methods, method groups, method life cycle.
836 Rename method sets to method groups.
838 2011-08-23 Torvald Riegel <triegel@redhat.com>
840 * config/x86/tls.h: Moved to ...
841 * config/linux/x86/tls.h: ... here.
843 2011-08-23 Torvald Riegel <triegel@redhat.com>
845 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
847 * config/x86/sjlj.S: Same.
849 2011-08-19 Torvald Riegel <triegel@redhat.com>
851 * config/linux/rwlock.h: New file.
852 * config/linux/rwlock.c: New file.
853 * configure.ac: Reenable futex support (undo SVN rev 157758).
855 * configure.tgt: Same.
856 * config/linux/alpha/futex_bits.h: Same.
857 * config/linux/futex.h: Same. Return number of woken processes.
858 * config/linux/futex.cc: Same.
859 (futex_wait): Remove spinning.
860 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
861 Use __x86_64__ instead of __LP64__.
862 * aclocal.m4: Include generic futex checks.
863 * configure: Rebuild.
864 * Makefile.in: Rebuild.
865 * testsuite/Makefile.in: Rebuild.
866 * beginend.cc: Include pthread.h.
867 * config/posix/cachepage.cc: Same.
869 2011-08-12 Torvald Riegel <triegel@redhat.com>
871 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
872 (abi_disp, set_abi_disp): Move to tx's TLS slot.
874 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
876 (GTM::gtm_thread::thread_num): Removed.
877 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
878 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
879 tx-to-thread renaming.
880 * beginend.cc: Adapted to tx-to-thread renaming.
881 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
882 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
883 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
884 gtm_transaction to gtm_thread.
885 (_ITM_getThreadnum): Removed. Not supported anymore.
886 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
887 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
888 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
889 gtm_tx-to-gtm_thr renaming if necessary.
896 * alloc_cpp.cc: Same.
897 * method-serial.cc: Same.
898 * config/generic/tls.cc: Same.
899 * config/posix/rwlock.h (gtm_rwlock): Same.
900 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
902 2011-08-12 Torvald Riegel <triegel@redhat.com>
904 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
906 (gtm_rwlock::read_unlock): Same.
907 (gtm_rwlock::write_lock_generic): New. Generalized from ...
908 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
909 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
910 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
911 w_upgrade. Replaced by per-transaction flags (in shared_state).
912 Added c_confirmed_writers.
913 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
914 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
915 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
916 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
917 * beginend.cc (GTM::gtm_transaction::begin_transaction,
918 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
919 * libitm.texi: Document locking conventions and implementations in
922 2011-08-12 Torvald Riegel <triegel@redhat.com>
924 * libitm_i.h (next_tx): Add list of all threads' transaction.
925 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
926 transaction with list of transactions and ...
927 (thread_exit_handler): ... deregister here.
928 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
929 * config/x86/target.h: Same.
931 2011-08-12 Torvald Riegel <triegel@redhat.com>
933 * testsuite/libitm.c++/static_ctor.C: New file.
935 2011-08-12 Torvald Riegel <triegel@redhat.com>
937 * testsuite/libitm.c/reentrant.c: New file.
939 2011-08-12 Torvald Riegel <triegel@redhat.com>
941 * config/generic/tls.h: Remove the free list for transactions and ...
942 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
943 (GTM::gtm_transaction::operator delete): ... and release here.
944 (thread_exit_handler): New. Delete tx when thread terminates.
945 (thread_exit_init): New.
946 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
947 * testsuite/libitm.c/txrelease.c: New file.
949 2011-08-12 Torvald Riegel <triegel@redhat.com>
951 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
952 * testsuite/libitm.c/notx.c: New file.
954 2011-08-12 Torvald Riegel <triegel@redhat.com>
956 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
957 * libitm_i.h (local_tid): ... to here.
958 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
959 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
961 2011-08-12 Torvald Riegel <triegel@redhat.com>
963 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
964 serialirr_onwrite_dispatch as new default for now.
965 * method-serial.cc (serialirr_onwrite_dispatch): New.
966 (GTM::dispatch_serialirr_onwrite): New.
969 2011-08-12 Torvald Riegel <triegel@redhat.com>
971 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
972 * query.cc (_ITM_getTransactionId): There is no active transaction if
973 the current nesting level is zero.
975 2011-07-28 Torvald Riegel <triegel@redhat.com>
977 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
980 2011-07-28 Torvald Riegel <triegel@redhat.com>
982 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
983 transaction properties from the caller instead of from the
986 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
988 2011-07-28 Torvald Riegel <triegel@redhat.com>
990 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
991 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
993 * method-serial.cc: Same.
994 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
995 flat nesting as default, and closed nesting on demand.
996 (GTM::gtm_transaction::rollback): Same.
997 (_ITM_abortTransaction): Same.
998 (GTM::gtm_transaction::restart): Same.
999 (GTM::gtm_transaction::trycommit): Same.
1000 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1001 (choose_code_path): New.
1002 (GTM::gtm_transaction_cp::save): New.
1003 (GTM::gtm_transaction_cp::commit): New.
1004 * query.cc (_ITM_inTransaction): Support flat nesting.
1005 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1006 (GTM::gtm_transaction): Support flat and closed nesting.
1007 * alloc.cc (commit_allocations_2): New.
1008 (commit_cb_data): New helper struct.
1009 (GTM::gtm_transaction::commit_allocations): Handle nested
1011 * libitm.texi: Update user action section, add description of nesting.
1013 2011-07-28 Torvald Riegel <triegel@redhat.com>
1015 * libitm_i.h: Add closed nesting as restart reason.
1016 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1018 2011-07-28 Torvald Riegel <triegel@redhat.com>
1020 * useraction.cc: Use vector instead of list to store actions.
1021 Also support partial rollbacks for closed nesting.
1022 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1023 * beginend.cc: Same.
1025 2011-07-28 Torvald Riegel <triegel@redhat.com>
1027 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1028 closed_nesting flags, as well as a closed nesting alternative.
1029 * method-serial.cc: Same.
1030 (serial_dispatch): Renamed to serialirr_dispatch.
1031 (GTM::dispatch_serialirr): Same.
1032 (serial_dispatch_ul): Renamed to serial_dispatch.
1033 (GTM::dispatch_serial): Same.
1035 2011-07-28 Torvald Riegel <triegel@redhat.com>
1037 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1039 2011-07-28 Torvald Riegel <triegel@redhat.com>
1041 * aatree.h (aa_tree::remove): New.
1042 (aa_tree::operator new): Add placement new.
1044 2011-07-02 Torvald Riegel <triegel@redhat.com>
1046 * containers.h: New file.
1047 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1048 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1049 * common.h: ... to here.
1050 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1053 2011-06-30 Torvald Riegel <triegel@redhat.com>
1055 * libitm_i.h (STATE_ABORTING): Remove.
1056 * beginend.cc (_ITM_abortTransaction): Same.
1057 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1058 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1059 (_ITM_rollbackTransaction): Remove.
1060 * beginend.cc: Same.
1062 * libitm.texi: Document these ABI changes.
1064 2011-06-30 Torvald Riegel <triegel@redhat.com>
1066 * libitm.texi: New file.
1067 * Makefile.am: Add libitm.texi.
1068 * Makefile.in: Rebuild.
1070 2011-06-30 Torvald Riegel <triegel@redhat.com>
1072 * libitm_i.h: Move parts to common.h and dispatch.h.
1073 * common.h: New file.
1074 * dispatch.h: New file, new dispatch class.
1075 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1076 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1077 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1078 decision to retry.cc.
1079 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1081 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1082 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1084 * barrier.cc: Use new barriers definitions.
1085 (abi_dispatch::memmove_overlap_check): New.
1086 * config/x86/x86_sse.cc: Same.
1087 * config/x86/x86_avx.cc: Same.
1088 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1090 * Makefile.in: Rebuild.
1091 * method-readonly.cc: Remove.
1092 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1093 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1095 2011-06-30 Torvald Riegel <triegel@redhat.com>
1097 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1098 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1099 * testsuite/libitm.c/dropref-2.c: Same.
1100 * testsuite/libitm.c/dropref.c: Same.
1102 2011-06-30 Torvald Riegel <triegel@redhat.com>
1104 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1105 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1106 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1108 * barrier.tpl: Same.
1110 * config/generic/tls.h: Same.
1111 * config/x86/tls.h: Same.
1115 * method-readonly.cc: Same.
1116 * method-serial.cc: Same.
1117 * method-wbetl.cc: Same.
1120 2011-03-03 Richard Henderson <rth@redhat.com>
1122 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1123 From Patrik Marlier <patrick.marlier@unine.ch>.
1125 2011-02-03 Richard Henderson <rth@redhat.com>
1127 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1128 * configure.ac: Use it.
1129 * configure, config.h.in: Rebuild.
1130 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1131 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1132 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1133 * libitm.map: Use wildcards to match size_t mangling.
1135 2010-12-14 Richard Henderson <rth@redhat.com>
1137 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1138 blocks of TIDs per thread.
1139 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1140 (setup_gtm_thr): Return the thread structure.
1141 * config/x86/tls.h (setup_gtm_thr): Likewise.
1143 2010-12-14 Richard Henderson <rth@redhat.com>
1145 * clone.cc (table_lock): Remove.
1146 (find_clone): Don't take it.
1147 (ExcludeTransaction): New helper class.
1148 (_ITM_registerTMCloneTable): Use it.
1149 (_ITM_deregisterTMCloneTable): Likewise.
1151 2010-12-14 Richard Henderson <rth@redhat.com>
1153 * config/x86/tls.h: New file.
1155 2010-07-15 Richard Henderson <rth@redhat.com>
1157 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1158 * Makefile.in: Rebuild.
1160 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1162 * method-wbetl.cc (trydropreference): Fix source line.
1164 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1166 * libitm.h: Add comment.
1167 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1169 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1171 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1172 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1173 available, use pthread mutexes.
1174 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1175 * config.h.in: Regenerate.
1176 * configure: Regenerate.
1178 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1180 * libitm.h (ITM_PURE): Define.
1181 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1183 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1185 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1186 (validate): Add comment.
1187 (trydropreference): New.
1188 * method-readonly.cc (class readonly_dispatch): Add
1190 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1191 Call trydropreference().
1192 * libitm.h (_ITM_dropReferences): Remove const attribute.
1193 * method-serial.cc (class serial_dispatch): Add trydropreference.
1194 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1196 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1198 * memcpy.cc (do_memcpy): Comment.
1200 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1202 * barrier.tpl: Add comments throughout.
1204 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1206 * method-wbetl.cc (struct w_entry): Add comments.
1210 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1212 * alloc_c.cc (_ITM_dropReferences): New.
1213 * libitm.map (_ITM_dropReferences): Add.
1214 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1215 * libitm_i.h (struct gtm_transaction): Declare
1216 drop_references_allocations and drop_references_local.
1217 * local.cc (rollback_local): Ignore memory when applicable.
1218 (drop_references_local): New.
1220 2010-06-23 Richard Henderson <rth@redhat.com>
1222 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1223 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1224 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1225 * config/alpha/target.h: Likewise.
1226 * config/generic/tls.cc (gtm_mask_stack): Use it.
1228 2010-06-23 Richard Henderson <rth@redhat.com>
1230 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1231 a mutex instead of trying a lock-free compare-and-swap on the list.
1232 (gtm_cacheline_page::operator delete): Likewise.
1234 2010-06-16 Richard Henderson <rth@redhat.com>
1236 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1237 that overlap the libitm stack.
1238 * barrier.tpl: Mark incoming stack.
1239 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1240 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1241 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1242 * memcpy.cc, memset.cc: Likewise.
1243 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1244 * config/generic/tls.h (gtm_thread): Add stack_top member.
1245 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1246 * libitm_i.h (gtm_mask_stack): Declare.
1247 * config/generic/tls.cc: New file.
1248 * Makefile.am (libitm_la_SOURCES): Add it.
1249 (AM_CXXFLAGS): Turn off exceptions.
1250 * Makefile.in: Rebuild.
1252 2010-06-16 Richard Henderson <rth@redhat.com>
1254 * alloc.cc (struct gtm_alloc_action): Move definition ...
1255 * libitm_i.h: ... here.
1256 (class gtm_transaction): Declare new and delete.
1257 * beginend.cc (alloc_tx): Reformulate as operator new.
1258 (free_tx): Reformulate as operator delete.
1259 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1261 2010-06-11 Richard Henderson <rth@redhat.com>
1263 * clone.cc (clone_entry_compare): Fix typo.
1264 From Patrik Marlier <patrick.marlier@unine.ch>.
1266 2010-05-13 Richard Henderson <rth@redhat.com>
1268 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1271 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1273 * libitm_i.h (struct gtm_transaction): Remove
1274 get_allocation_size.
1275 (record_allocation): Remove size parameter.
1276 * libitm.map (_ITM_realloc): Remove.
1277 * alloc_c.cc (_ITM_realloc): Remove.
1278 (_ITM_malloc): Remove size argument to record_allocation.
1279 (_ITM_calloc): Same.
1280 * alloc_cpp.cc (_ZGTtnwm): Same.
1281 (_ZGTtnwmRKSt9nothrow_t): Same.
1283 (_ZGTtnamRKSt9nothrow_t): Same.
1284 * alloc.cc (struct gtm_alloc_action): Remove size.
1285 (get_allocation_size): Remove.
1286 (commit_allocations): Add comment.
1287 (record_allocation): Remove size parameter.
1288 (forget_allocation): Remove set of size.
1290 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1292 * Makefile.am (abi_version): New.
1293 (AM_CXXFLAGS): Pass abi_version.
1294 * Makefile.in: Regenerate.
1295 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1297 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1299 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1300 _ITM_getTMCloneOrIrrevokable.
1301 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1302 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1304 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1306 * configure.ac: Remove Linux futex support.
1307 * configure.tgt (config_path): Same.
1308 * Makefile.am: Same.
1309 * config/linux: Remove entire directory.
1310 * configure: Rebuild.
1311 * Makefile.in: Rebuild.
1312 * testsuite/Makefile.in: Rebuild.
1314 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1316 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1317 switching to serial mode.
1318 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1320 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1322 * configure.tgt: Add emacs -*- tags.
1323 * barrier.tpl: Same.
1325 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1327 * Makefile.am: Rename serial.cc to method-serial.cc.
1328 * Makefile.in: Regenerate with automake 1.11.1.
1329 * testsuite/Makefile.in: Same.
1330 * aclocal.m4: Regenerate with aclocal 1.11.1.
1331 * method-serial.cc: Rename from serial.cc.
1332 * libitm_i.h (struct gtm_transaction): Update comment on
1335 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1337 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1338 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1340 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1342 * configure: Rebuild.
1344 2009-11-12 Richard Henderson <rth@redhat.com>
1346 * Rewrite everything in C++.
1348 2009-11-03 Richard Henderson <rth@redhat.com>
1350 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1351 * Makefile.am (libitm_la_SOURCES): Add them.
1352 * configure.ac (ARCH_X86): New conditional.
1353 * Makefile.in, configure: Rebuild.
1354 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1355 Move futex setup into "other system configury" case.
1356 * local.c (rollback_local): Merge into ...
1357 (GTM_rollback_local): ... here.
1358 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1359 (_ITM_LB): Define as an alias to GTM_LB.
1361 2009-11-03 Richard Henderson <rth@redhat.com>
1363 * method-readonly.c: New file.
1364 * Makefile.am (libitm_la_SOURCES): Add it.
1365 * Makefile.in: Rebuild.
1366 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1367 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1368 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1369 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1370 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1371 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1372 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1373 gtm_get_clock, gtm_inc_clock): New.
1374 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1375 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1376 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1377 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1378 replace uses with new libitm_i.h symbols.
1379 (dispatch_wbetl): Rename from wbetl_dispatch.
1380 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1381 away from dispatch_readonly; abort if the beginTransaction call
1382 asserted that the transaction was readonly.
1384 2009-11-03 Richard Henderson <rth@redhat.com>
1386 * memset.c: New file.
1387 * Makefile.am (libitm_la_SOURCES): Add it.
1388 * Makefile.in: Rebuild.
1389 * testsuite/libitm.c/memset-1.c: New.
1391 2009-11-03 Richard Henderson <rth@redhat.com>
1393 * dispatch.c: Remove file.
1394 * useraction.c (struct gtm_user_action): Move from libitm.h.
1395 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1396 (serial_memset, serial_memmove, serial_memcpy): Remove.
1397 (serial_W*, serial_R*): Remove.
1398 (serial_dispatch): Update to match.
1399 * configure.ac: Move Werror down below configure checks. Don't
1400 check for sys/loadavg.h, do check for malloc.h. Don't check for
1401 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1402 Use GCC_AC_FUNC_MMAP_BLACKLIST
1403 * libitm.h: Split out all internal items to...
1404 * libitm_i.h: ... here. New file.
1405 * copymask.c: New file.
1406 * local.c (struct gtm_local_undo): Move from libitm.h.
1407 (GTM_alloc_local): Rename from alloc_local; export.
1408 * memcpy.c: New file.
1409 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1410 * config/posix/page.c: New file.
1411 * config/posix/target_tls.h: Remove file.
1412 * barrier.c: New file.
1413 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1415 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1416 * method-wbetl.c: Rewrite for new cacheline methods.
1417 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1419 * config/alpha/sjlj.S: Fix typo.
1420 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1421 * config/alpha/copymask.c: New file.
1422 * config/alpha/target.h (CACHELINE_SIZE): New.
1423 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1425 * config/x86/target_i.h: Copy functions from x86/target.h.
1426 * config/x86/copymask.c: New file.
1427 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1428 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1429 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1430 * config/x86/target_tls.h: Move contents to target_i.h.
1432 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1433 * testsuite/libitm.c/memcpy-1.c: New.
1435 2009-10-22 Richard Henderson <rth@redhat.com>
1437 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1438 (AM_CCASFLAGS): New.
1439 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1440 saving/restoring _AC_ARG_VAR_PRECIOUS.
1441 * Makefile.in, aclocal.m4, config.h.in, configure,
1442 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1444 2009-10-22 Richard Henderson <rth@redhat.com>
1446 * testsuite/*: Update for new compiler syntax.
1448 2009-10-21 Richard Henderson <rth@redhat.com>
1450 * libitm.h (_ITM_abortReason): Add outerAbort.
1452 2009-08-03 Richard Henderson <rth@redhat.com>
1454 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1455 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1456 * method-wbetl.c (struct w_entry): Remove mask.
1457 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1460 2009-07-22 Richard Henderson <rth@redhat.com>
1462 * eh_cpp.c: New file.
1463 * Makefile.am (libitm_la_SOURCES): Add it.
1464 * Makefile.in: Rebuild.
1465 * beginend.c (GTM_rollback_transaction): Undo exception state.
1466 (GTM_trycommit_transaction): Mark inline.
1467 (GTM_trycommit_and_finalize_transaction): Split out from ...
1468 (_ITM_commitTransaction): ... here.
1469 (_ITM_commitTransactionEH): New function.
1470 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1471 cxa_unthrown, eh_in_flight; reorder.
1473 * testsuite/libitm.c++/c++.exp: New.
1474 * testsuite/libitm.c++/eh-1.C: New.
1476 * aatree.c (aa_free): Remove REGPARM.
1477 * aatree.h: Remove all REGPARM.
1479 2009-07-18 Richard Henderson <rth@redhat.com>
1481 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1482 * Makefile.am (libitm_la_SOURCES): Add them.
1483 * Makefile.in: Rebuild.
1484 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1485 (GTM_trycommit_transaction): Likewise.
1486 * libitm.h: Include aatree.h
1487 (struct gtm_alloc_action): New.
1488 (struct gtm_transaction): Add alloc_actions.
1489 (GTM_record_allocation, GTM_forget_allocation): Declare.
1490 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1491 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1492 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1493 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1494 _ZGTtdaPvRKSt9nothrow_t): Export.
1496 2009-07-18 Richard Henderson <rth@redhat.com>
1498 * target_tls.h: Move ...
1499 * config/posix/target_tls.h: ... here.
1501 2009-07-07 Richard Henderson <rth@redhat.com>
1503 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1505 2009-07-07 Richard Henderson <rth@redhat.com>
1509 2009-07-07 Richard Henderson <rth@redhat.com>
1511 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1512 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1514 * configure.tgt: Don't use -ftls-model for x86 linux.
1515 * libitm.h: Include target.h after standard includes.
1516 (_gtm_thr): Rename from gtm_thr.
1517 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1518 (gtm_disp, set_gtm_disp): New.
1519 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1520 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1521 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1523 2009-07-07 Richard Henderson <rth@redhat.com>
1525 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1527 2009-07-06 Richard Henderson <rth@redhat.com>
1529 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1530 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1531 (_ITM_beginTransaction): Take variadic arguments.
1532 (_ITM_registerThrownObject): Declare.
1533 * beginend.c, serial.c: Update.
1534 * libitm.map: Add _ITM_registerThrownObject.
1536 2009-01-28 Richard Henderson <rth@redhat.com>
1538 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1539 * Makefile.in: Rebuild.
1540 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1541 (GTM_restart_transaction): Fix uninstrumented code check.
1542 * retry.c (GTM_decide_retry_strategy): Add serial check.
1543 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1544 automatically go irrevokable when in serial mode.
1545 * clone.c: New file.
1546 * libitm.h, libitm.map: Update.
1548 2009-01-27 Richard Henderson <rth@redhat.com>
1550 * Makefile.am (LTCCASCOMPILE): Define.
1551 (libitm_la_SOURCES): Add methid-wbetl.c.
1552 * testsuite/Makefile.am: New
1553 * configure.ac: Add testsuite/Makefile.
1554 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1555 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1556 (_ITM_abortTransaction): Finalize implementation method; pass
1557 transaction properties to longjmp.
1558 (GTM_restart_transaction): Split out from ...
1559 (_ITM_commitTransaction): ... here.
1560 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1561 Move to config/x86/target.h.
1562 * config/linux/alpha/futex_bits.h: New.
1563 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1564 * config/x86/target.h: Disable target types for 32-bit.
1565 * config/alpha/sjlj.S, config/alpha/target.h: New.
1566 * libitm.h (struct gtm_dispatch): Add init, fini.
1567 (enum restart_reason): New.
1568 (struct gtm_transaction): Add method and restarts.
1569 * retry.c (GTM_decide_retry_strategy): Implement.
1570 * serial.c (serial_init, serial_fini): New.
1571 (GTM_serialmode): Finialize outgoing method.
1572 * method-wbetl.c: New.
1574 2008-12-09 Richard Henderson <rth@redhat.com>
1576 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1577 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1578 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1579 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1580 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1581 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1582 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1583 * serial.c (serial_R##T, serial_W##T): Likewise.
1585 2008-11-21 Richard Henderson <rth@redhat.com>