configure.host (abi_baseline_pair): Match powerpc64*.
[official-gcc.git] / libitm / ChangeLog
blobed9114b91474a45fa4174ba700dff561e67788bb
1 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
3         PR bootstrap/56714
4         * local_atomic (__always_inline): Always define our version.
5         (__calculate_memory_order): Mark inline.
6         (atomic_thread_fence): Ditto.
7         (atomic_signal_fence): Ditto.
8         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
9         (atomic_bool::atomic_flag_clear_explicit): Ditto.
10         (atomic_bool::atomic_flag_test_and_set): Ditto.
11         (atomic_bool::atomic_flag_clear): Ditto.
13 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15         * config/s390/sjlj.S: New file.
16         * config/s390/target.h: New file.
17         * configure.tgt: Set options for S/390.
19 2013-03-23  Andi Kleen  <ak@linux.intel.com>
21         * local_atomic (__always_inline): Add.
22         (__calculate_memory_order, atomic_thread_fence,
23          atomic_signal_fence, test_and_set, clear, store, load,
24          exchange, compare_exchange_weak, compare_exchange_strong,
25          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
26         Add __always_inline to force inlining.
28 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
29             Jack Howarth  <howarth@bromo.med.uc.edu>
30             Patrick Marlier  <patrick.marlier@gmail.com>
32         PR libitm/55693
33         * alloc_cpp.cc: Enable function declarations on darwin.
34         * eh_cpp.cc: Likewise.
36 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
38         Update copyright years.
40 2012-11-09  Torvald Riegel  <triegel@redhat.com>
42         * beginend.cc (htm_fastpath): New.
43         (gtm_thread::begin_transaction, _ITM_commitTransaction,
44         _ITM_commitTransactionEH): Add HTM fastpath handling.
45         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
46         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
47         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
48         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
49         * configure.tgt: Add -mrtm to XCFLAGS.
50         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
51         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
52         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
53         * retry.cc (parse_default_method): Add HTM method parsing.
54         (gtm_thread::number_of_threads_changed): Use HTM by default if
55         available.
57 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
59         * configure: Regenerate.
61 2012-10-31  Richard Henderson  <rth@redhat.com>
63         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
64         * configure.ac: Use it.
65         * config.h.in, configure: Rebuild.
66         * testsuite/Makefile.in: Rebuild.
68 2012-10-24  Torvald Riegel  <triegel@redhat.com>
70         * libitm.texi: Clarify ABI requirements for data-logging functions.
72 2012-10-24  Torvald Riegel  <triegel@redhat.com>
74         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
75         it requires serial mode instead of assuming that for certain
76         dispatchs.
77         * dispatch.h (abi_dispatch::requires_serial): New.
78         (abi_dispatch::abi_dispatch): Adapt.
79         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
80         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
81         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
82         serial_dispatch::serial_dispatch,
83         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
85 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
87         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
88         and ia32 declarations some more.
89         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
91 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
93         PR other/43620
94         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
95         * configure: Regenerate.
96         * Makefile.in: Regenerate.
98 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
100         * configure: Regenerated.
102 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
104         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
106 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
108         * eh_cpp.cc: Fix __cxa_end_catch declaration.
110 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
112         * configure: Regenerated.
114 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
116         PR libitm/52854
117         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
118         for x86-64.
120 2012-04-03  Tristan Gingold  <gingold@adacore.com>
122         * configure: Regenerate.
124 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
126         PR bootstrap/52812
127         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
129 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
131         * testsuite/lib/libitm.exp: load fortran-modules.exp
133 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135         * configure.tgt (*-*-irix6*): Remove.
137 2012-03-13  Torvald Riegel  <triegel@redhat.com>
139         PR libitm/52526
140         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
141         wake-up.
143 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
145         * configure.tgt (*-*-osf*): Remove.
146         * configure: Regenerate.
148 2012-03-05  Torvald Riegel  <triegel@redhat.com>
150         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
151         memtransfer/memset if size isn't larger than zero.
153 2012-03-02  Torvald Riegel  <triegel@redhat.com>
155         * libitm.texi: Link to specification and add a usage example.
157 2012-02-24  Torvald Riegel  <triegel@redhat.com>
159         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
160         default dispatch for more than 1 thread to ml_wt.
162 2012-02-20  Torvald Riegel  <triegel@redhat.com>
164         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
166 2012-02-20  Torvald Riegel  <triegel@redhat.com>
168         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
170 2012-02-20  Torvald Riegel  <triegel@redhat.com>
172         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
173         serial mode corner cases made obsolete by prior gtm_rwlock changes.
174         (gl_wt_dispatch.rollback): Same.
176 2012-02-20  Torvald Riegel  <triegel@redhat.com>
178         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
180 2012-02-20  Torvald Riegel  <triegel@redhat.com>
182         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
183         for RfW src.  Optimize number of calls to gtm_thr.
185 2012-02-20  Torvald Riegel  <triegel@redhat.com>
187         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
188         acquisition to ...
189         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
190         (default_dispatch): Make atomic.
191         (GTM::gtm_thread::set_default_dispatch): Access atomically.
192         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
193         use decide_begin_dispatch() if default_dispatch might have changed.
194         (GTM::gtm_thread::number_of_threads_changed): Initialize
195         default_dispatch here.
197 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
198             Patrick Marlier  <patrick.marlier@gmail.com>
200         PR libitm/52220
201         * alloc_cpp.cc: No dummy definitions for darwin.
202         * eh_cpp.cc: Likewise.
204 2012-02-14  Richard Henderson  <rth@redhat.com>
206         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
208 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
210         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
212 2012-02-14  Torvald Riegel  <triegel@redhat.com>
214         * libitm_i.h (GTM::gtm_rwlog_entry): New.
215         (GTM::gtm_thread): Add read and write logs.
216         (GTM::dispatch_ml_wt): Declare.
217         * retry.cc (parse_default_method): Support ml_wt.
218         * method-ml.cc: New file.
219         * Makefile.am: Add method-ml.cc.
220         * Makefile.in: Regenerate.
222 2012-02-14  Torvald Riegel  <triegel@redhat.com>
224         * dispatch.h (GTM::abi_dispatch::supports): New.
225         (GTM::method_group::reinit): New.
226         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
227         (GTM::gtm_thread::number_of_threads_changed): Check that the method
228         supports the current situation.
230 2012-02-14  Torvald Riegel  <triegel@redhat.com>
232         * util.cc (GTM::xcalloc): New.
233         * common.h (GTM::xcalloc): Declare.
235 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
237         * config/sparc/target.h (cpu_relax): Read from CC register.
238         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
240 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
242         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
244 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
246         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
247         * config/sparc/cacheline.h: New file.
248         * config/sparc/target.h: Likewise.
249         * config/sparc/sjlj.S: Likewise.
250         * config/linux/sparc/futex_bits.h: Likewise.
252 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
254         * configure.ac (link_itm): Fix comment.
255         * configure: Regenerate.
256         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
258 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
260         PR libitm/51822
261         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
262         Correct libgomp references.
264 2012-01-24  Torvald Riegel  <triegel@redhat.com>
266         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
267         wake-up.
269 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
271         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
272         end of structure.
273         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
274         offset values.  Do not copy return address.  Decrement stack
275         by 56 bytes only.
276         (GTM_longjump) [__x86_64__]: Update offset values.
278 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
280         PR libitm/51830
281         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
282         the first function argument to %eax.
284 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
286         * libitm.h (_ITM_getThreadnum): Remove.
287         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
289 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
291         * clearcap.map: New file.
292         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
293         * configure.ac: Call it.
294         Clear HWCAP_LDFLAGS if defaulting to -mavx.
295         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
296         * configure: Regenerate.
297         * Makefile.in: Regenerate.
298         * testsuite/Makefile.in: Regenerate.
300 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
302         PR libitm/51173
303         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
304         include, exclude options.
306 2012-01-14  Torvald Riegel  <triegel@redhat.com>
308         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
309         rolling back.
310         * containers.h (GTM::vector::set_size): New.
312 2012-01-14  Torvald Riegel  <triegel@redhat.com>
314         PR libitm/51855
315         * config/generic/tls.h (GTM::mask_stack_top): New.
316         (GTM::mask_stack_bottom): Declare.
317         * config/generic/tls.c (GTM::mask_stack_bottom): New.
318         * local.cc (gtm_undolog::rollback): Filter out any updates that
319         overlap the libitm stack.  Add current transaction as parameter.
320         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
321         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
322         * testsuite/libitm.c/stackundo.c: New test.
324 2012-01-10  Richard Henderson  <rth@redhat.com>
326         * libitm_i.h (_Unwind_DeleteException): Declare weak.
327         * eh_cpp.cc (_Unwind_DeleteException): Define for
328         !HAVE_ELF_STYLE_WEAKREF.
330 2012-01-08  Torvald Riegel  <triegel@redhat.com>
332         * local.cc (GTM_LB): Use GTM::gtm_undolog.
333         (GTM::gtm_thread::drop_references_undolog): Remove.
334         (GTM::gtm_thread::commit_undolog,
335         GTM::gtm_thread::rollback_undolog): Move to ...
336         * libitm_i.h (GTM::gtm_undolog): ...here. New.
337         (GTM::gtm_undolog_entry): Remove.
338         (GTM::gtm_thread): Adapt.
339         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
340         (GTM::gtm_thread::trycommit): Adapt.
341         * method-serial.cc (serial_dispatch::log): Adapt.
342         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
343         (gl_wt_dispatch::store): Fix likely/unlikely.
344         * containers.h (GTM::vector::resize): Add additional_capacity
345         parameter and handle it.
346         (GTM::vector::resize_noinline): New/adapt.
347         (GTM::vector::push): New.
349 2012-01-06  Richard Henderson  <rth@redhat.com>
351         * configure.tgt: Support powerpc-linux and powerpc-darwin.
352         * config/linux/powerpc/futex_bits.h: New file.
353         * config/powerpc/cacheline.h: New file.
354         * config/powerpc/sjlj.S: New file.
355         * config/powerpc/target.h: New file.
356         * config/generic/asmcfi.h (cfi_offset): New.
357         (cfi_restore, cfi_undefined): New.
359 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
361         PR other/51171
362         * testsuite/libitm.c/reentrant.c: Remove xfail.
363         (thread): Pass x to pure().
364         From Patrik Marlier <patrick.marlier@gmail.com>.
366 2011-12-24  Torvald Riegel  <triegel@redhat.com>
368         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
369         privatization safety if already in serial mode.
371 2011-12-24  Torvald Riegel  <triegel@redhat.com>
373         * beginend.cc (GTM::gtm_thread::restart): Add and handle
374         finish_serial_upgrade parameter.
375         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
376         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
377         Don't unset reader flag.
378         (GTM::gtm_rwlock::write_upgrade_finish): New.
379         * config/posix/rwlock.cc: Same.
380         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
381         Declare.
382         * config/posix/rwlock.h: Same.
383         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
384         flag after commit or after rollback when restarting.
386 2011-12-24  Torvald Riegel  <triegel@redhat.com>
388         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
389         (GTM::gtm_thread::try_commit): Changed memory order.
390         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
391         as parameter.
392         * config/linux/x86/futex_bits.h (sys_futex0): Same.
393         * config/linux/sh/futex_bits.h (sys_futex0): Same.
394         * config/linux/futex_bits.h (sys_futex0): Same.
395         * config/linux/futex.cc (futex_wait, futex_wake): Same.
396         * config/linux/futex.h (futex_wait, futex_wake): Same.
397         * config/linux/rwlock.h (gtm_rwlock::writers,
398         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
399         ints.
400         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
401         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
402         gtm_rwlock::write_unlock): Fix memory orders and fences.
403         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
404         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
405         gtm_rwlock::write_unlock): Same.
406         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
407         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
408         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
409         Add comments.
410         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
411         gl_wt_dispatch::load, gl_wt_dispatch::store,
412         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
413         orders and fences.  Add comments.
415 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
417         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
418         * Makefile.in: Regenerated.
420 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
422         * configure.tgt: Add sh* case.
423         * config/sh/target.h: New file.
424         * config/sh/sjlj.S: New file.
425         * config/linux/sh/futex_bits.h: New file.
427 2011-12-14  Richard Henderson  <rth@redhat.com>
429         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
430         * config/arm/sjlj.S, config/arm/target.h: New files.
431         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
432         (cfi_rel_offset): New.
433         * config/linux/futex_bits.h: New file.
434         * config/linux/futex.cc: Include futex_bits.h here...
435         * config/linux/futex.h: ... not here.
436         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
437         * configure.ac (ARCH_AM): New conditional.
438         * Makefile.in, configure: Rebuild.
439         * configure.tgt: Handle ARM.
441 2011-12-13  Richard Henderson  <rth@redhat.com>
443         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
444         signed/unsigned comparison werror.
446         * local_atomic: New file.
447         * libitm_i.h: Include it.
448         (gtm_thread::shared_state): Use atomic template.
449         * beginend.cc (GTM::gtm_clock): Use atomic template.
450         (global_tid): Use atomic template if 64-bit atomics available.
451         (gtm_thread::gtm_thread): Update shared_state access.
452         (gtm_thread::trycommit): Likewise.
453         (choose_code_path): Update global_tid access.
454         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
455         * stmlock.h (GTM::gtm_clock): Use atomic template.
456         (gtm_get_clock, gtm_inc_clock): Update accesses.
457         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
458         redundant __sync_synchronize after atomic shared_state access.
459         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
460         (gtm_rwlock::write_lock_generic): Likewise.
461         (gtm_rwlock::read_unlock): Likewise.
462         * config/alpha/target.h (atomic_read_barrier): Remove.
463         (atomic_write_barrier): Remove.
464         * config/x86/target.h (atomic_read_barrier): Remove.
465         (atomic_write_barrier): Remove.
467 2011-11-30  Richard Henderson  <rth@redhat.com>
469         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
470         * beginend.c (_ITM_abortTransaction): Update to match.
471         (GTM::gtm_thread::restart): Likewise.
472         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
473         * config/x86/sjlj.S (GTM_longjmp): Likewise.
475 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
477         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
478         * Makefile.in: Regenerate.
480 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
482         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
483         * alloc_cpp.cc: Generate dummy functions if we don't
484         HAVE_ELF_STYLE_WEAKREF.
485         * eh_cpp.cc: Likewise.
486         * configure: Regenerate.
487         * aclocal.m4:  Likewise.
488         * config.h.in: Likewise.
489         * Makefile.in: Likewise.
490         * testsuite/Makefile.in: Likewise.
492 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
494         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
495         __USER_LABEL_PREFIX__ for targets that use it.
496         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
497         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
498         in portability to non-elf targets.
499         (GTM_longjmp): Likewise.
500         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
501         where required.
503 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
505         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
506         * testsuite/libitm.c/memset-1.c: Likewise.
508 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
510         * configure: Regenerate.
512 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
514         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
515         (LIBITM_ENABLE_SYMVERS): Handle sun style.
516         * Makefile.am: Handle sun style versioning.
517         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
518         * configure: Regenerate.
519         * Makefile.in: Regenerate.
521 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
523         * config/generic/asmcfi.h: Fix comment.
524         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
525         sequence without .hidden support, error for non-ELF targets.
526         (GTM_longjmp) [__ELF__]: Only use .hidden if
527         HAVE_ATTRIBUTE_VISIBILITY.
529 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
531         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
532         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
533         Dummy functions.
534         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
535         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
537 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
539         PR bootstrap/51098
540         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
541         * configure: Regenerate.
543 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
545         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
547 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
549         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
550         .hidden.
551         (.note.GNU-stack): Only use if __linux__.
552         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
553         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
554         * testsuite/libitm.c/reentrant.c: Likewise.
555         * testsuite/libitm.c/simple-2.c: Likewise.
556         * testsuite/libitm.c/txrelease.c: Likewise.
557         * testsuite/libitm.c++/static_ctor.C: Likewise.
559 2011-11-10  Richard Henderson  <rth@redhat.com>
561         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
562         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
563         * configure.ac (ARCH_X86_AVX): New conditional.
564         * Makefile.in, configure: Rebuild.
566 2011-11-09  Richard Henderson  <rth@redhat.com>
568         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
569         * configure.ac: Use it.
570         * config.h.in, configure: Rebuild.
571         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
573 2011-11-09  Richard Henderson  <rth@redhat.com>
575         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
576         * config/alpha/unaligned.h: Remove file.
577         * config/generic/unaligned.h: Remove file.
578         * config/x86/unaligned.h: Remove file.
579         * config/generic/cachepage.h: Remove file.
580         * config/posix/cachepage.cc: Remove file.
581         * config/generic/cacheline.cc: Remove file.
582         * config/x86/cacheline.cc: Remove file.
583         * config/generic/cacheline.h (gtm_cacheline): Remove the
584         store_mask, copy_mask, copy_mask_wb methods.
585         * config/x86/cacheline.h: Likewise.
586         * config/alpha/cacheline.h: Fall back to generic after setting size.
587         * config/generic/tls.cc (gtm_mask_stack): Remove.
588         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
589         (GTM_vpalignr_table): Remove.
590         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
591         (GTM_pshift_table): Remove.
592         * config/libitm_i.h: Don't include cachepage.h.
593         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
594         * Makefile.in, testsuite/Makefile.in: Rebuild.
596 2011-11-09  Richard Henderson  <rth@redhat.com>
598         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
599         to emit branch prediction hint.
601         * config/x86/sjlj.S: Protect elf directives with __ELF__.
602         Protect .note.GNU-stack with __linux__.
604         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
605         * configure, aclocal.m4, config.h.in: Rebuild.
606         * config/generic/asmcfi.h: New file.
607         * config/x86/sjlj.S: Use it.
609 2011-11-08  Richard Henderson  <rth@redhat.com>
611         * local.cc (_ITM_LB): Use a normal call, not a function alias.
613 2011-11-08  Richard Henderson  <rth@redhat.com>
615         * configure.tgt: Test correct directory for supported cpus.
617         * configure.ac: Exit if unsupported.
618         * configure: Rebuild.
619         * configure.tgt: Delete boilerplate from libgomp for unsupported
620         targets.  Set UNSUPPORTED for unsupported targets.
622 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
624         * configure.tgt: Handle i386 like i[456]86.
625         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
626         take address.
627         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
628         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
630 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
632         * method-wbetl.cc: Update copyright notice.
633         * aatree.cc: Same.
634         * util.cc: Same.
635         * libitm.h: Same.
636         * memset.cc: Same.
637         * eh_cpp.cc: Same.
638         * barrier.tpl: Same.
639         * useraction.cc: Same.
640         * stmlock.h: Same.
641         * memcpy.cc: Same.
642         * common.h: Same.
643         * config/generic/tls.cc: Same.
644         * config/generic/cacheline.h: Same.
645         * config/generic/cachepage.h: Same.
646         * config/generic/cacheline.cc: Same.
647         * config/generic/unaligned.h: Same.
648         * config/x86/cacheline.h: Same.
649         * config/x86/cacheline.cc: Same.
650         * config/x86/unaligned.h: Same.
651         * config/alpha/cacheline.h: Same.
652         * config/alpha/unaligned.h: Same.
653         * config/alpha/sjlj.S: Same.
654         * config/posix/cachepage.cc: Same.
655         * config/linux/futex.h: Same.
656         * config/linux/alpha/futex_bits.h: Same.
658 2011-11-04  Torvald Riegel  <triegel@redhat.com>
660         * libitm.texi: No cover text and invariant sections.
662 2011-11-03  Richard Henderson  <rth@redhat.com>
664         * local_type_traits: New file.
665         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
667 2011-11-03  Richard Henderson  <rth@redhat.com>
669         * configure.ac: Don't test for gfortran.
670         * configure: Rebuild.
672         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
673         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
675 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
677         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
678         * testsuite/libitm.c/memset-1.c: Same.
679         * testsuite/libitm.c/c.exp: Same.
680         * testsuite/lib/libitm-dg.exp: Same.
681         * testsuite/lib/libitm.exp: Same.
682         * testsuite/libitm.c++/c++.exp: Same.
684 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
686         * testsuite/config/default.exp: Update copyright date.
687         * configure.ac: Add copyright info.
688         * configure.tgt: Same.
690 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
692         * testsuite/libitm.c/reentrant.c: XFAIL.
693         * testsuite/libitm.c++/static_ctor.C: XFAIL.
695 2011-10-29  Torvald Riegel  <triegel@redhat.com>
697         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
698         handle aborts.
699         (_ITM_abortTransaction): Handle aborts of outer transactions.
700         * libitm_i.h: Same.
701         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
702         * libitm.texi: Document aborts of outer transactions.
703         * testsuite/libitm.c/cancel.c: New file.
705 2011-10-19  Torvald Riegel  <triegel@redhat.com>
707         * testsuite/*: Change __transaction to __transaction_atomic or
708         __transaction_relaxed.
710 2011-10-19  Torvald Riegel  <triegel@redhat.com>
712         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
713         (gtm_thr): Same.
715 2011-10-19  Torvald Riegel  <triegel@redhat.com>
717         * libitm_i.h: Add gl_wt dispatch.
718         * retry.cc (parse_default_method): Same.
719         * method-gl.cc: New file.
720         * Makefile.am: Use method-gl.cc.
721         * Makefile.in: Rebuild.
723 2011-10-19  Torvald Riegel  <triegel@redhat.com>
725         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
726         safety if requested by a TM method.
727         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
728         privatization safety.
729         * method-serial.cc: Same.
731 2011-10-19  Torvald Riegel  <triegel@redhat.com>
733         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
734         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
735         undolog-related member functions from *_local to *_undolog.
736         * local.cc (gtm_thread::commit_undolog): Same.
737         * beginend.cc (GTM::gtm_thread::trycommit): Same.
738         (GTM::gtm_thread::rollback): Roll back undolog before
739         dispatch-specific rollback.
741 2011-10-19  Torvald Riegel  <triegel@redhat.com>
743         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
744         re-initialization of the current method group.
745         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
747 2011-10-19  Torvald Riegel  <triegel@redhat.com>
749         * alloc.cc (commit_allocations_2): Do not free transaction-local
750         memory when committing a nested transaction.
752 2011-10-19  Torvald Riegel  <triegel@redhat.com>
754         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
755         serial-irrevocable dispatch, not serial.
757 2011-10-19  Torvald Riegel  <triegel@redhat.com>
759         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
760         declarations.
761         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
762         * method-serial.cc: Implement begin_or_restart().
763         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
764         dispatch-specific begin_or_restart().
765         (GTM::gtm_thread::restart): Same.
767 2011-08-23  Torvald Riegel  <triegel@redhat.com>
769         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
770         restarting without switching to serial mode.
771         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
772         transaction state. Choose closed-nesting alternative if available.
773         (GTM::gtm_thread::set_default_dispatch): New.
774         (parse_default_method): New.
775         (GTM::gtm_thread::number_of_threads_changed): New.
776         * method-serial.cc (GTM::serial_mg): New method group class.
777         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
778         fini.
779         (GTM::serial_dispatch): Same.
780         (GTM::serialirr_onwrite_dispatch): Same.
781         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
782         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
783         registered threads.
784         (GTM::gtm_thread::gtm_thread): Same.
785         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
786         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
787         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
788         choose dispatch but set state according to dispatch here.
789         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
790         (GTM::method_group): New class.
791         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
792         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
793         * libitm.texi: Document TM methods, method groups, method life cycle.
794         Rename method sets to method groups.
796 2011-08-23  Torvald Riegel  <triegel@redhat.com>
798         * config/x86/tls.h: Moved to ...
799         * config/linux/x86/tls.h: ... here.
801 2011-08-23  Torvald Riegel  <triegel@redhat.com>
803         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
804         Add X32 support.
805         * config/x86/sjlj.S: Same.
807 2011-08-19  Torvald Riegel  <triegel@redhat.com>
809         * config/linux/rwlock.h: New file.
810         * config/linux/rwlock.c: New file.
811         * configure.ac: Reenable futex support (undo SVN rev 157758).
812         * Makefile.am: Same.
813         * configure.tgt: Same.
814         * config/linux/alpha/futex_bits.h: Same.
815         * config/linux/futex.h: Same. Return number of woken processes.
816         * config/linux/futex.cc: Same.
817         (futex_wait): Remove spinning.
818         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
819         Use __x86_64__ instead of __LP64__.
820         * aclocal.m4: Include generic futex checks.
821         * configure: Rebuild.
822         * Makefile.in: Rebuild.
823         * testsuite/Makefile.in: Rebuild.
824         * beginend.cc: Include pthread.h.
825         * config/posix/cachepage.cc: Same.
827 2011-08-12  Torvald Riegel  <triegel@redhat.com>
829         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
830         (abi_disp, set_abi_disp): Move to tx's TLS slot.
831         (set_gtm_thr): New.
832         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
833         (set_gtm_thr): New.
834         (GTM::gtm_thread::thread_num): Removed.
835         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
836         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
837         tx-to-thread renaming.
838         * beginend.cc: Adapted to tx-to-thread renaming.
839         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
840         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
841         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
842         gtm_transaction to gtm_thread.
843         (_ITM_getThreadnum): Removed. Not supported anymore.
844         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
845         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
846         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
847         gtm_tx-to-gtm_thr renaming if necessary.
848         * eh_cpp.cc: Same.
849         * local.cc: Same.
850         * retry.cc: Same.
851         * clone.cc: Same.
852         * alloc.cc: Same.
853         * alloc_c.cc: Same.
854         * alloc_cpp.cc: Same.
855         * method-serial.cc: Same.
856         * config/generic/tls.cc: Same.
857         * config/posix/rwlock.h (gtm_rwlock): Same.
858         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
860 2011-08-12  Torvald Riegel  <triegel@redhat.com>
862         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
863         implementation.
864         (gtm_rwlock::read_unlock): Same.
865         (gtm_rwlock::write_lock_generic): New. Generalized from ...
866         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
867         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
868         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
869         w_upgrade. Replaced by per-transaction flags (in shared_state).
870         Added c_confirmed_writers.
871         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
872         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
873         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
874         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
875         * beginend.cc (GTM::gtm_transaction::begin_transaction,
876         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
877         * libitm.texi: Document locking conventions and implementations in
878         libitm.
880 2011-08-12  Torvald Riegel  <triegel@redhat.com>
882         * libitm_i.h (next_tx): Add list of all threads' transaction.
883         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
884         transaction with list of transactions and ...
885         (thread_exit_handler): ... deregister here.
886         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
887         * config/x86/target.h: Same.
889 2011-08-12  Torvald Riegel  <triegel@redhat.com>
891         * testsuite/libitm.c++/static_ctor.C: New file.
893 2011-08-12  Torvald Riegel  <triegel@redhat.com>
895         * testsuite/libitm.c/reentrant.c: New file.
897 2011-08-12  Torvald Riegel  <triegel@redhat.com>
899         * config/generic/tls.h: Remove the free list for transactions and ...
900         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
901         (GTM::gtm_transaction::operator delete): ... and release here.
902         (thread_exit_handler): New. Delete tx when thread terminates.
903         (thread_exit_init): New.
904         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
905         * testsuite/libitm.c/txrelease.c: New file.
907 2011-08-12  Torvald Riegel  <triegel@redhat.com>
909         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
910         * testsuite/libitm.c/notx.c: New file.
912 2011-08-12  Torvald Riegel  <triegel@redhat.com>
914         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
915         * libitm_i.h (local_tid): ... to here.
916         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
917         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
919 2011-08-12  Torvald Riegel  <triegel@redhat.com>
921         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
922         serialirr_onwrite_dispatch as new default for now.
923         * method-serial.cc (serialirr_onwrite_dispatch): New.
924         (GTM::dispatch_serialirr_onwrite): New.
925         * libitm_i.h: Same.
927 2011-08-12  Torvald Riegel  <triegel@redhat.com>
929         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
930         * query.cc (_ITM_getTransactionId): There is no active transaction if
931         the current nesting level is zero.
933 2011-07-28  Torvald Riegel  <triegel@redhat.com>
935         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
936         rollback.
938 2011-07-28  Torvald Riegel  <triegel@redhat.com>
940         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
941         transaction properties from the caller instead of from the
942         transaction object.
943         * libitm_i.h: Same.
944         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
946 2011-07-28  Torvald Riegel  <triegel@redhat.com>
948         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
949         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
950         * dispatch.h: Same.
951         * method-serial.cc: Same.
952         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
953         flat nesting as default, and closed nesting on demand.
954         (GTM::gtm_transaction::rollback): Same.
955         (_ITM_abortTransaction): Same.
956         (GTM::gtm_transaction::restart): Same.
957         (GTM::gtm_transaction::trycommit): Same.
958         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
959         (choose_code_path): New.
960         (GTM::gtm_transaction_cp::save): New.
961         (GTM::gtm_transaction_cp::commit): New.
962         * query.cc (_ITM_inTransaction): Support flat nesting.
963         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
964         (GTM::gtm_transaction): Support flat and closed nesting.
965         * alloc.cc (commit_allocations_2): New.
966         (commit_cb_data): New helper struct.
967         (GTM::gtm_transaction::commit_allocations): Handle nested
968         commits/rollbacks.
969         * libitm.texi: Update user action section, add description of nesting.
971 2011-07-28  Torvald Riegel  <triegel@redhat.com>
973         * libitm_i.h: Add closed nesting as restart reason.
974         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
976 2011-07-28  Torvald Riegel  <triegel@redhat.com>
978         * useraction.cc: Use vector instead of list to store actions.
979         Also support partial rollbacks for closed nesting.
980         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
981         * beginend.cc: Same.
983 2011-07-28  Torvald Riegel  <triegel@redhat.com>
985         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
986         closed_nesting flags, as well as a closed nesting alternative.
987         * method-serial.cc: Same.
988         (serial_dispatch): Renamed to serialirr_dispatch.
989         (GTM::dispatch_serialirr): Same.
990         (serial_dispatch_ul): Renamed to serial_dispatch.
991         (GTM::dispatch_serial): Same.
993 2011-07-28  Torvald Riegel  <triegel@redhat.com>
995         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
997 2011-07-28  Torvald Riegel  <triegel@redhat.com>
999         * aatree.h (aa_tree::remove): New.
1000         (aa_tree::operator new): Add placement new.
1002 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1004         * containers.h: New file.
1005         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1006         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1007         * common.h: ... to here.
1008         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1009         * local.cc: Same.
1011 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1013         * libitm_i.h (STATE_ABORTING): Remove.
1014         * beginend.cc (_ITM_abortTransaction): Same.
1015         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1016         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1017         (_ITM_rollbackTransaction): Remove.
1018         * beginend.cc: Same.
1019         * libitm.map: Same.
1020         * libitm.texi: Document these ABI changes.
1022 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1024         * libitm.texi: New file.
1025         * Makefile.am: Add libitm.texi.
1026         * Makefile.in: Rebuild.
1028 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1030         * libitm_i.h: Move parts to common.h and dispatch.h.
1031         * common.h: New file.
1032         * dispatch.h: New file, new dispatch class.
1033         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1034         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1035         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1036         decision to retry.cc.
1037         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1038         only.
1039         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1040         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1041         logging.
1042         * barrier.cc: Use new barriers definitions.
1043         (abi_dispatch::memmove_overlap_check): New.
1044         * config/x86/x86_sse.cc: Same.
1045         * config/x86/x86_avx.cc: Same.
1046         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1047         memcpy.cc.
1048         * Makefile.in: Rebuild.
1049         * method-readonly.cc: Remove.
1050         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1051         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1053 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1055         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1056         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1057         * testsuite/libitm.c/dropref-2.c: Same.
1058         * testsuite/libitm.c/dropref.c: Same.
1060 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1062         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1063         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1064         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1065         * alloc_c.cc: Same.
1066         * barrier.tpl: Same.
1067         * beginend.c: Same.
1068         * config/generic/tls.h: Same.
1069         * config/x86/tls.h: Same.
1070         * libitm_i.h: Same.
1071         * memcpy.cc: Same.
1072         * memset.cc: Same.
1073         * method-readonly.cc: Same.
1074         * method-serial.cc: Same.
1075         * method-wbetl.cc: Same.
1076         * retry.cc: Same.
1078 2011-03-03  Richard Henderson  <rth@redhat.com>
1080         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1081         From Patrik Marlier <patrick.marlier@unine.ch>.
1083 2011-02-03  Richard Henderson  <rth@redhat.com>
1085         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1086         * configure.ac: Use it.
1087         * configure, config.h.in: Rebuild.
1088         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1089         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1090         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1091         * libitm.map: Use wildcards to match size_t mangling.
1093 2010-12-14  Richard Henderson  <rth@redhat.com>
1095         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1096         blocks of TIDs per thread.
1097         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1098         (setup_gtm_thr): Return the thread structure.
1099         * config/x86/tls.h (setup_gtm_thr): Likewise.
1101 2010-12-14  Richard Henderson  <rth@redhat.com>
1103         * clone.cc (table_lock): Remove.
1104         (find_clone): Don't take it.
1105         (ExcludeTransaction): New helper class.
1106         (_ITM_registerTMCloneTable): Use it.
1107         (_ITM_deregisterTMCloneTable): Likewise.
1109 2010-12-14  Richard Henderson  <rth@redhat.com>
1111         * config/x86/tls.h: New file.
1113 2010-07-15  Richard Henderson  <rth@redhat.com>
1115         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1116         * Makefile.in: Rebuild.
1118 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1120         * method-wbetl.cc (trydropreference): Fix source line.
1122 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1124         * libitm.h: Add comment.
1125         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1127 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1129         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1130         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1131         available, use pthread mutexes.
1132         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1133         * config.h.in: Regenerate.
1134         * configure: Regenerate.
1136 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1138         * libitm.h (ITM_PURE): Define.
1139         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1141 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1143         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1144         (validate): Add comment.
1145         (trydropreference): New.
1146         * method-readonly.cc (class readonly_dispatch): Add
1147         trydropreference.
1148         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1149         Call trydropreference().
1150         * libitm.h (_ITM_dropReferences): Remove const attribute.
1151         * method-serial.cc (class serial_dispatch): Add trydropreference.
1152         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1154 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1156         * memcpy.cc (do_memcpy): Comment.
1158 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1160         * barrier.tpl: Add comments throughout.
1162 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1164         * method-wbetl.cc (struct w_entry): Add comments.
1165         (trycommit): Same.
1166         (rollback): Same.
1168 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1170         * alloc_c.cc (_ITM_dropReferences): New.
1171         * libitm.map (_ITM_dropReferences): Add.
1172         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1173         * libitm_i.h (struct gtm_transaction): Declare
1174         drop_references_allocations and drop_references_local.
1175         * local.cc (rollback_local): Ignore memory when applicable.
1176         (drop_references_local): New.
1178 2010-06-23  Richard Henderson  <rth@redhat.com>
1180         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1181         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1182         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1183         * config/alpha/target.h: Likewise.
1184         * config/generic/tls.cc (gtm_mask_stack): Use it.
1186 2010-06-23  Richard Henderson  <rth@redhat.com>
1188         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1189         a mutex instead of trying a lock-free compare-and-swap on the list.
1190         (gtm_cacheline_page::operator delete): Likewise.
1192 2010-06-16  Richard Henderson  <rth@redhat.com>
1194         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1195         that overlap the libitm stack.
1196         * barrier.tpl: Mark incoming stack.
1197         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1198         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1199         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1200         * memcpy.cc, memset.cc: Likewise.
1201         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1202         * config/generic/tls.h (gtm_thread): Add stack_top member.
1203         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1204         * libitm_i.h (gtm_mask_stack): Declare.
1205         * config/generic/tls.cc: New file.
1206         * Makefile.am (libitm_la_SOURCES): Add it.
1207         (AM_CXXFLAGS): Turn off exceptions.
1208         * Makefile.in: Rebuild.
1210 2010-06-16  Richard Henderson  <rth@redhat.com>
1212         * alloc.cc (struct gtm_alloc_action): Move definition ...
1213         * libitm_i.h: ... here.
1214         (class gtm_transaction): Declare new and delete.
1215         * beginend.cc (alloc_tx): Reformulate as operator new.
1216         (free_tx): Reformulate as operator delete.
1217         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1219 2010-06-11  Richard Henderson  <rth@redhat.com>
1221         * clone.cc (clone_entry_compare): Fix typo.
1222         From Patrik Marlier <patrick.marlier@unine.ch>.
1224 2010-05-13  Richard Henderson  <rth@redhat.com>
1226         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1227         in extern "C".
1229 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1231         * libitm_i.h (struct gtm_transaction): Remove
1232         get_allocation_size.
1233         (record_allocation): Remove size parameter.
1234         * libitm.map (_ITM_realloc): Remove.
1235         * alloc_c.cc (_ITM_realloc): Remove.
1236         (_ITM_malloc): Remove size argument to record_allocation.
1237         (_ITM_calloc): Same.
1238         * alloc_cpp.cc (_ZGTtnwm): Same.
1239         (_ZGTtnwmRKSt9nothrow_t): Same.
1240         (_ZGTtnam): Same.
1241         (_ZGTtnamRKSt9nothrow_t): Same.
1242         * alloc.cc (struct gtm_alloc_action): Remove size.
1243         (get_allocation_size): Remove.
1244         (commit_allocations): Add comment.
1245         (record_allocation): Remove size parameter.
1246         (forget_allocation): Remove set of size.
1248 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1250         * Makefile.am (abi_version): New.
1251         (AM_CXXFLAGS): Pass abi_version.
1252         * Makefile.in: Regenerate.
1253         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1255 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1257         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1258         _ITM_getTMCloneOrIrrevokable.
1259         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1260         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1262 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1264         * configure.ac: Remove Linux futex support.
1265         * configure.tgt (config_path): Same.
1266         * Makefile.am: Same.
1267         * config/linux: Remove entire directory.
1268         * configure: Rebuild.
1269         * Makefile.in: Rebuild.
1270         * testsuite/Makefile.in: Rebuild.
1272 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1274         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1275         switching to serial mode.
1276         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1278 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1280         * configure.tgt: Add emacs -*- tags.
1281         * barrier.tpl: Same.
1283 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1285         * Makefile.am: Rename serial.cc to method-serial.cc.
1286         * Makefile.in: Regenerate with automake 1.11.1.
1287         * testsuite/Makefile.in: Same.
1288         * aclocal.m4: Regenerate with aclocal 1.11.1.
1289         * method-serial.cc: Rename from serial.cc.
1290         * libitm_i.h (struct gtm_transaction): Update comment on
1291         serialirr_mode.
1293 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1295         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1296         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1298 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1300         * configure: Rebuild.
1302 2009-11-12  Richard Henderson  <rth@redhat.com>
1304         * Rewrite everything in C++.
1306 2009-11-03  Richard Henderson  <rth@redhat.com>
1308         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1309         * Makefile.am (libitm_la_SOURCES): Add them.
1310         * configure.ac (ARCH_X86): New conditional.
1311         * Makefile.in, configure: Rebuild.
1312         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1313         Move futex setup into "other system configury" case.
1314         * local.c (rollback_local): Merge into ...
1315         (GTM_rollback_local): ... here.
1316         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1317         (_ITM_LB): Define as an alias to GTM_LB.
1319 2009-11-03  Richard Henderson  <rth@redhat.com>
1321         * method-readonly.c: New file.
1322         * Makefile.am (libitm_la_SOURCES): Add it.
1323         * Makefile.in: Rebuild.
1324         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1325         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1326         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1327         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1328         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1329         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1330         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1331         gtm_get_clock, gtm_inc_clock): New.
1332         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1333         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1334         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1335         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1336         replace uses with new libitm_i.h symbols.
1337         (dispatch_wbetl): Rename from wbetl_dispatch.
1338         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1339         away from dispatch_readonly; abort if the beginTransaction call
1340         asserted that the transaction was readonly.
1342 2009-11-03  Richard Henderson  <rth@redhat.com>
1344         * memset.c: New file.
1345         * Makefile.am (libitm_la_SOURCES): Add it.
1346         * Makefile.in: Rebuild.
1347         * testsuite/libitm.c/memset-1.c: New.
1349 2009-11-03  Richard Henderson  <rth@redhat.com>
1351         * dispatch.c: Remove file.
1352         * useraction.c (struct gtm_user_action): Move from libitm.h.
1353         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1354         (serial_memset, serial_memmove, serial_memcpy): Remove.
1355         (serial_W*, serial_R*): Remove.
1356         (serial_dispatch): Update to match.
1357         * configure.ac: Move Werror down below configure checks.  Don't
1358         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1359         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1360         Use GCC_AC_FUNC_MMAP_BLACKLIST
1361         * libitm.h: Split out all internal items to...
1362         * libitm_i.h: ... here.  New file.
1363         * copymask.c: New file.
1364         * local.c (struct gtm_local_undo): Move from libitm.h.
1365         (GTM_alloc_local): Rename from alloc_local; export.
1366         * memcpy.c: New file.
1367         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1368         * config/posix/page.c: New file.
1369         * config/posix/target_tls.h: Remove file.
1370         * barrier.c: New file.
1371         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1372         copymask.c, page.c.
1373         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1374         * method-wbetl.c: Rewrite for new cacheline methods.
1375         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1377         * config/alpha/sjlj.S: Fix typo.
1378         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1379         * config/alpha/copymask.c: New file.
1380         * config/alpha/target.h (CACHELINE_SIZE): New.
1381         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1383         * config/x86/target_i.h: Copy functions from x86/target.h.
1384         * config/x86/copymask.c: New file.
1385         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1386         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1387         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1388         * config/x86/target_tls.h: Move contents to target_i.h.
1390         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1391         * testsuite/libitm.c/memcpy-1.c: New.
1393 2009-10-22  Richard Henderson  <rth@redhat.com>
1395         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1396         (AM_CCASFLAGS): New.
1397         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1398         saving/restoring _AC_ARG_VAR_PRECIOUS.
1399         * Makefile.in, aclocal.m4, config.h.in, configure,
1400         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1402 2009-10-22  Richard Henderson  <rth@redhat.com>
1404         * testsuite/*: Update for new compiler syntax.
1406 2009-10-21  Richard Henderson  <rth@redhat.com>
1408         * libitm.h (_ITM_abortReason): Add outerAbort.
1410 2009-08-03  Richard Henderson  <rth@redhat.com>
1412         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1413         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1414         * method-wbetl.c (struct w_entry): Remove mask.
1415         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1416         adjust all callers.
1418 2009-07-22  Richard Henderson  <rth@redhat.com>
1420         * eh_cpp.c: New file.
1421         * Makefile.am (libitm_la_SOURCES): Add it.
1422         * Makefile.in: Rebuild.
1423         * beginend.c (GTM_rollback_transaction): Undo exception state.
1424         (GTM_trycommit_transaction): Mark inline.
1425         (GTM_trycommit_and_finalize_transaction): Split out from ...
1426         (_ITM_commitTransaction): ... here.
1427         (_ITM_commitTransactionEH): New function.
1428         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1429         cxa_unthrown, eh_in_flight; reorder.
1431         * testsuite/libitm.c++/c++.exp: New.
1432         * testsuite/libitm.c++/eh-1.C: New.
1434         * aatree.c (aa_free): Remove REGPARM.
1435         * aatree.h: Remove all REGPARM.
1437 2009-07-18  Richard Henderson  <rth@redhat.com>
1439         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1440         * Makefile.am (libitm_la_SOURCES): Add them.
1441         * Makefile.in: Rebuild.
1442         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1443         (GTM_trycommit_transaction): Likewise.
1444         * libitm.h: Include aatree.h
1445         (struct gtm_alloc_action): New.
1446         (struct gtm_transaction): Add alloc_actions.
1447         (GTM_record_allocation, GTM_forget_allocation): Declare.
1448         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1449         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1450         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1451         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1452         _ZGTtdaPvRKSt9nothrow_t): Export.
1454 2009-07-18  Richard Henderson  <rth@redhat.com>
1456         * target_tls.h: Move ...
1457         * config/posix/target_tls.h: ... here.
1459 2009-07-07  Richard Henderson  <rth@redhat.com>
1461         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1463 2009-07-07  Richard Henderson  <rth@redhat.com>
1465         * Update to GPL3.
1467 2009-07-07  Richard Henderson  <rth@redhat.com>
1469         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1470         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1472         * configure.tgt: Don't use -ftls-model for x86 linux.
1473         * libitm.h: Include target.h after standard includes.
1474         (_gtm_thr): Rename from gtm_thr.
1475         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1476         (gtm_disp, set_gtm_disp): New.
1477         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1478         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1479         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1481 2009-07-07  Richard Henderson  <rth@redhat.com>
1483         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1485 2009-07-06  Richard Henderson  <rth@redhat.com>
1487         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1488         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1489         (_ITM_beginTransaction): Take variadic arguments.
1490         (_ITM_registerThrownObject): Declare.
1491         * beginend.c, serial.c: Update.
1492         * libitm.map: Add _ITM_registerThrownObject.
1494 2009-01-28  Richard Henderson  <rth@redhat.com>
1496         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1497         * Makefile.in: Rebuild.
1498         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1499         (GTM_restart_transaction): Fix uninstrumented code check.
1500         * retry.c (GTM_decide_retry_strategy): Add serial check.
1501         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1502         automatically go irrevokable when in serial mode.
1503         * clone.c: New file.
1504         * libitm.h, libitm.map: Update.
1506 2009-01-27  Richard Henderson  <rth@redhat.com>
1508         * Makefile.am (LTCCASCOMPILE): Define.
1509         (libitm_la_SOURCES): Add methid-wbetl.c.
1510         * testsuite/Makefile.am: New
1511         * configure.ac: Add testsuite/Makefile.
1512         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1513         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1514         (_ITM_abortTransaction): Finalize implementation method; pass
1515         transaction properties to longjmp.
1516         (GTM_restart_transaction): Split out from ...
1517         (_ITM_commitTransaction): ... here.
1518         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1519         Move to config/x86/target.h.
1520         * config/linux/alpha/futex_bits.h: New.
1521         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1522         * config/x86/target.h: Disable target types for 32-bit.
1523         * config/alpha/sjlj.S, config/alpha/target.h: New.
1524         * libitm.h (struct gtm_dispatch): Add init, fini.
1525         (enum restart_reason): New.
1526         (struct gtm_transaction): Add method and restarts.
1527         * retry.c (GTM_decide_retry_strategy): Implement.
1528         * serial.c (serial_init, serial_fini): New.
1529         (GTM_serialmode): Finialize outgoing method.
1530         * method-wbetl.c: New.
1532 2008-12-09  Richard Henderson  <rth@redhat.com>
1534         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1535         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1536         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1537         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1538         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1539         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1540         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1541         * serial.c (serial_R##T, serial_W##T): Likewise.
1543 2008-11-21  Richard Henderson  <rth@redhat.com>
1545         * Initial commit.