Daily bump.
[official-gcc.git] / libitm / ChangeLog
blob31f63f2616a06c9283cb1993b8f3276fe040a7e0
1 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
3         * configure.tgt (x86_64): Tune -m32 multilib to generic.
5 2014-10-30  Release Manager
7         * GCC 4.9.2 released.
9 2014-07-24  Richard Henderson  <rth@redhat.com>
11         * config/aarch64/sjlj.S: New file.
12         * config/aarch64/target.h: New file.
13         * configure.tgt: Enable aarch64.
15 2014-07-16  Release Manager
17         * GCC 4.9.1 released.
19 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
22         -mclear-hwcap instead.
23         * configure: Regenerate.
24         * clearcap.map: Remove.
26 2014-04-22  Release Manager
28         * GCC 4.9.0 released.
30 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32         * config/generic/asmcfi.h: Also check for
33         __GCC_HAVE_DWARF2_CFI_ASM.
35 2013-04-02  Richard Henderson  <rth@redhat.com>
37         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
38         * config/arm/target.h, config/sh/target.h: Likewise.
39         * config/sparc/target.h, config/x86/target.h: Likewise.
41 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
43         * config/linux/futex_bits.h: Include errno.h.
44         (sys_futex0): If syscall returns -1, return -errno rather than
45         -1.
47 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
49         * libitm.texi (Index): Rename to Library Index.
51 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
53         PR libitm/53113
54         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
55         (x86_avx.lo): Append -mavx to CXXFLAGS.
56         * Makefile.in: Regenerate.
58 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
60         Update copyright years
62 2014-01-02  Tobias Burnus  <burnus@net-b.de>
64         * libitm.texi: Bump @copying's copyright year.
66 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
68         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
69         (FUNC): Define ELFv2 variant.
70         (END): Likewise.
71         (HIDDEN): Likewise.
72         (CALL): Likewise.
73         (BASE): Likewise.
74         (LR_SAVE): Likewise.
76 2013-09-20  Alan Modra  <amodra@gmail.com>
78         * configure: Regenerate.
80 2013-08-30  Torvald Riegel  <triegel@redhat.com>
82         * config/posix/rwlock.cc: Fix initialization order.
84 2013-08-30  Torvald Riegel  <triegel@redhat.com>
86         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
87         (htm_fastpath): Assign an asm name.
88         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
89         HTM fast paths.
90         (_ITM_actions): Likewise.
91         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
92         x86_64.
93         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
94         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
95         field to the start of the structure.
96         * config/linux/rwlock.h (gtm_rwlock): Update comments.
97         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
98         handling for custom HTM fast paths.
100 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
101         Revert:
102         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
104         * configure.tgt: Add -msoft-float to XCFLAGS.
106 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
108         * configure.tgt: Add -msoft-float to XCFLAGS.
110 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
112         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
113         (htm_transaction_active): Enable zEC12 instructions in the
114         assembler.
115         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
117 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
119         * acinclude.m4: Add htm asm check for s390.
120         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
121         * configure: Regenerate.
122         * config/s390/target.h: Remove __HTM__ check.
123         (htm_available): Call getauxval to get hwcaps and check whether
124         HTM is available or not.
126 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
128         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
129         * configure.ac: Use it.
130         (AC_CHECK_HEADERS): Check for sys/auxv.h.
131         (AC_CHECK_FUNCS): Check for getauxval.
132         * config.h.in, configure: Rebuild.
133         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
134         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
135         (USE_HTM_FASTPATH): Define.
136         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
137         _HTM_RETRIES) New macros.
138         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
139         htm_begin_success, htm_commit, htm_transaction_active): New functions.
141 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
143         * config/s390/target.h: Include htmintrin.h.
144         (_HTM_ITM_RETRIES): New macro definition.
145         (htm_available, htm_init, htm_begin, htm_begin_success)
146         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
148 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
149             Cesar Philippidis  <cesar@codesourcery.com>
151         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
152         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
153         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
154         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
156 2013-06-20  Torvald Riegel  <triegel@redhat.com>
158         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
159         (_ITM_getTransactionId): Same.
160         * config/x86/target.h (htm_transaction_active): New.
162 2013-06-20  Torvald Riegel  <triegel@redhat.com>
164         PR libitm/57643
165         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
166         the HTM fastpath.
168 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
170         PR bootstrap/56714
171         * local_atomic (__always_inline): Always define our version.
172         (__calculate_memory_order): Mark inline.
173         (atomic_thread_fence): Ditto.
174         (atomic_signal_fence): Ditto.
175         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
176         (atomic_bool::atomic_flag_clear_explicit): Ditto.
177         (atomic_bool::atomic_flag_test_and_set): Ditto.
178         (atomic_bool::atomic_flag_clear): Ditto.
180 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
182         * config/s390/sjlj.S: New file.
183         * config/s390/target.h: New file.
184         * configure.tgt: Set options for S/390.
186 2013-03-23  Andi Kleen  <ak@linux.intel.com>
188         * local_atomic (__always_inline): Add.
189         (__calculate_memory_order, atomic_thread_fence,
190          atomic_signal_fence, test_and_set, clear, store, load,
191          exchange, compare_exchange_weak, compare_exchange_strong,
192          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
193         Add __always_inline to force inlining.
195 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
196             Jack Howarth  <howarth@bromo.med.uc.edu>
197             Patrick Marlier  <patrick.marlier@gmail.com>
199         PR libitm/55693
200         * alloc_cpp.cc: Enable function declarations on darwin.
201         * eh_cpp.cc: Likewise.
203 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
205         Update copyright years.
207 2012-11-09  Torvald Riegel  <triegel@redhat.com>
209         * beginend.cc (htm_fastpath): New.
210         (gtm_thread::begin_transaction, _ITM_commitTransaction,
211         _ITM_commitTransactionEH): Add HTM fastpath handling.
212         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
213         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
214         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
215         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
216         * configure.tgt: Add -mrtm to XCFLAGS.
217         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
218         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
219         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
220         * retry.cc (parse_default_method): Add HTM method parsing.
221         (gtm_thread::number_of_threads_changed): Use HTM by default if
222         available.
224 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
226         * configure: Regenerate.
228 2012-10-31  Richard Henderson  <rth@redhat.com>
230         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
231         * configure.ac: Use it.
232         * config.h.in, configure: Rebuild.
233         * testsuite/Makefile.in: Rebuild.
235 2012-10-24  Torvald Riegel  <triegel@redhat.com>
237         * libitm.texi: Clarify ABI requirements for data-logging functions.
239 2012-10-24  Torvald Riegel  <triegel@redhat.com>
241         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
242         it requires serial mode instead of assuming that for certain
243         dispatchs.
244         * dispatch.h (abi_dispatch::requires_serial): New.
245         (abi_dispatch::abi_dispatch): Adapt.
246         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
247         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
248         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
249         serial_dispatch::serial_dispatch,
250         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
252 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
254         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
255         and ia32 declarations some more.
256         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
258 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
260         PR other/43620
261         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
262         * configure: Regenerate.
263         * Makefile.in: Regenerate.
265 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
267         * configure: Regenerated.
269 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
271         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
273 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
275         * eh_cpp.cc: Fix __cxa_end_catch declaration.
277 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
279         * configure: Regenerated.
281 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
283         PR libitm/52854
284         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
285         for x86-64.
287 2012-04-03  Tristan Gingold  <gingold@adacore.com>
289         * configure: Regenerate.
291 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
293         PR bootstrap/52812
294         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
296 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
298         * testsuite/lib/libitm.exp: load fortran-modules.exp
300 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
302         * configure.tgt (*-*-irix6*): Remove.
304 2012-03-13  Torvald Riegel  <triegel@redhat.com>
306         PR libitm/52526
307         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
308         wake-up.
310 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
312         * configure.tgt (*-*-osf*): Remove.
313         * configure: Regenerate.
315 2012-03-05  Torvald Riegel  <triegel@redhat.com>
317         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
318         memtransfer/memset if size isn't larger than zero.
320 2012-03-02  Torvald Riegel  <triegel@redhat.com>
322         * libitm.texi: Link to specification and add a usage example.
324 2012-02-24  Torvald Riegel  <triegel@redhat.com>
326         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
327         default dispatch for more than 1 thread to ml_wt.
329 2012-02-20  Torvald Riegel  <triegel@redhat.com>
331         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
333 2012-02-20  Torvald Riegel  <triegel@redhat.com>
335         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
337 2012-02-20  Torvald Riegel  <triegel@redhat.com>
339         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
340         serial mode corner cases made obsolete by prior gtm_rwlock changes.
341         (gl_wt_dispatch.rollback): Same.
343 2012-02-20  Torvald Riegel  <triegel@redhat.com>
345         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
347 2012-02-20  Torvald Riegel  <triegel@redhat.com>
349         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
350         for RfW src.  Optimize number of calls to gtm_thr.
352 2012-02-20  Torvald Riegel  <triegel@redhat.com>
354         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
355         acquisition to ...
356         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
357         (default_dispatch): Make atomic.
358         (GTM::gtm_thread::set_default_dispatch): Access atomically.
359         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
360         use decide_begin_dispatch() if default_dispatch might have changed.
361         (GTM::gtm_thread::number_of_threads_changed): Initialize
362         default_dispatch here.
364 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
365             Patrick Marlier  <patrick.marlier@gmail.com>
367         PR libitm/52220
368         * alloc_cpp.cc: No dummy definitions for darwin.
369         * eh_cpp.cc: Likewise.
371 2012-02-14  Richard Henderson  <rth@redhat.com>
373         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
375 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
377         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
379 2012-02-14  Torvald Riegel  <triegel@redhat.com>
381         * libitm_i.h (GTM::gtm_rwlog_entry): New.
382         (GTM::gtm_thread): Add read and write logs.
383         (GTM::dispatch_ml_wt): Declare.
384         * retry.cc (parse_default_method): Support ml_wt.
385         * method-ml.cc: New file.
386         * Makefile.am: Add method-ml.cc.
387         * Makefile.in: Regenerate.
389 2012-02-14  Torvald Riegel  <triegel@redhat.com>
391         * dispatch.h (GTM::abi_dispatch::supports): New.
392         (GTM::method_group::reinit): New.
393         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
394         (GTM::gtm_thread::number_of_threads_changed): Check that the method
395         supports the current situation.
397 2012-02-14  Torvald Riegel  <triegel@redhat.com>
399         * util.cc (GTM::xcalloc): New.
400         * common.h (GTM::xcalloc): Declare.
402 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
404         * config/sparc/target.h (cpu_relax): Read from CC register.
405         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
407 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
409         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
411 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
413         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
414         * config/sparc/cacheline.h: New file.
415         * config/sparc/target.h: Likewise.
416         * config/sparc/sjlj.S: Likewise.
417         * config/linux/sparc/futex_bits.h: Likewise.
419 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
421         * configure.ac (link_itm): Fix comment.
422         * configure: Regenerate.
423         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
425 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
427         PR libitm/51822
428         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
429         Correct libgomp references.
431 2012-01-24  Torvald Riegel  <triegel@redhat.com>
433         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
434         wake-up.
436 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
438         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
439         end of structure.
440         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
441         offset values.  Do not copy return address.  Decrement stack
442         by 56 bytes only.
443         (GTM_longjump) [__x86_64__]: Update offset values.
445 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
447         PR libitm/51830
448         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
449         the first function argument to %eax.
451 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
453         * libitm.h (_ITM_getThreadnum): Remove.
454         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
456 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
458         * clearcap.map: New file.
459         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
460         * configure.ac: Call it.
461         Clear HWCAP_LDFLAGS if defaulting to -mavx.
462         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
463         * configure: Regenerate.
464         * Makefile.in: Regenerate.
465         * testsuite/Makefile.in: Regenerate.
467 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
469         PR libitm/51173
470         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
471         include, exclude options.
473 2012-01-14  Torvald Riegel  <triegel@redhat.com>
475         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
476         rolling back.
477         * containers.h (GTM::vector::set_size): New.
479 2012-01-14  Torvald Riegel  <triegel@redhat.com>
481         PR libitm/51855
482         * config/generic/tls.h (GTM::mask_stack_top): New.
483         (GTM::mask_stack_bottom): Declare.
484         * config/generic/tls.c (GTM::mask_stack_bottom): New.
485         * local.cc (gtm_undolog::rollback): Filter out any updates that
486         overlap the libitm stack.  Add current transaction as parameter.
487         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
488         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
489         * testsuite/libitm.c/stackundo.c: New test.
491 2012-01-10  Richard Henderson  <rth@redhat.com>
493         * libitm_i.h (_Unwind_DeleteException): Declare weak.
494         * eh_cpp.cc (_Unwind_DeleteException): Define for
495         !HAVE_ELF_STYLE_WEAKREF.
497 2012-01-08  Torvald Riegel  <triegel@redhat.com>
499         * local.cc (GTM_LB): Use GTM::gtm_undolog.
500         (GTM::gtm_thread::drop_references_undolog): Remove.
501         (GTM::gtm_thread::commit_undolog,
502         GTM::gtm_thread::rollback_undolog): Move to ...
503         * libitm_i.h (GTM::gtm_undolog): ...here. New.
504         (GTM::gtm_undolog_entry): Remove.
505         (GTM::gtm_thread): Adapt.
506         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
507         (GTM::gtm_thread::trycommit): Adapt.
508         * method-serial.cc (serial_dispatch::log): Adapt.
509         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
510         (gl_wt_dispatch::store): Fix likely/unlikely.
511         * containers.h (GTM::vector::resize): Add additional_capacity
512         parameter and handle it.
513         (GTM::vector::resize_noinline): New/adapt.
514         (GTM::vector::push): New.
516 2012-01-06  Richard Henderson  <rth@redhat.com>
518         * configure.tgt: Support powerpc-linux and powerpc-darwin.
519         * config/linux/powerpc/futex_bits.h: New file.
520         * config/powerpc/cacheline.h: New file.
521         * config/powerpc/sjlj.S: New file.
522         * config/powerpc/target.h: New file.
523         * config/generic/asmcfi.h (cfi_offset): New.
524         (cfi_restore, cfi_undefined): New.
526 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
528         PR other/51171
529         * testsuite/libitm.c/reentrant.c: Remove xfail.
530         (thread): Pass x to pure().
531         From Patrik Marlier <patrick.marlier@gmail.com>.
533 2011-12-24  Torvald Riegel  <triegel@redhat.com>
535         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
536         privatization safety if already in serial mode.
538 2011-12-24  Torvald Riegel  <triegel@redhat.com>
540         * beginend.cc (GTM::gtm_thread::restart): Add and handle
541         finish_serial_upgrade parameter.
542         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
543         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
544         Don't unset reader flag.
545         (GTM::gtm_rwlock::write_upgrade_finish): New.
546         * config/posix/rwlock.cc: Same.
547         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
548         Declare.
549         * config/posix/rwlock.h: Same.
550         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
551         flag after commit or after rollback when restarting.
553 2011-12-24  Torvald Riegel  <triegel@redhat.com>
555         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
556         (GTM::gtm_thread::try_commit): Changed memory order.
557         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
558         as parameter.
559         * config/linux/x86/futex_bits.h (sys_futex0): Same.
560         * config/linux/sh/futex_bits.h (sys_futex0): Same.
561         * config/linux/futex_bits.h (sys_futex0): Same.
562         * config/linux/futex.cc (futex_wait, futex_wake): Same.
563         * config/linux/futex.h (futex_wait, futex_wake): Same.
564         * config/linux/rwlock.h (gtm_rwlock::writers,
565         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
566         ints.
567         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
568         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
569         gtm_rwlock::write_unlock): Fix memory orders and fences.
570         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
571         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
572         gtm_rwlock::write_unlock): Same.
573         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
574         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
575         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
576         Add comments.
577         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
578         gl_wt_dispatch::load, gl_wt_dispatch::store,
579         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
580         orders and fences.  Add comments.
582 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
584         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
585         * Makefile.in: Regenerated.
587 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
589         * configure.tgt: Add sh* case.
590         * config/sh/target.h: New file.
591         * config/sh/sjlj.S: New file.
592         * config/linux/sh/futex_bits.h: New file.
594 2011-12-14  Richard Henderson  <rth@redhat.com>
596         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
597         * config/arm/sjlj.S, config/arm/target.h: New files.
598         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
599         (cfi_rel_offset): New.
600         * config/linux/futex_bits.h: New file.
601         * config/linux/futex.cc: Include futex_bits.h here...
602         * config/linux/futex.h: ... not here.
603         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
604         * configure.ac (ARCH_AM): New conditional.
605         * Makefile.in, configure: Rebuild.
606         * configure.tgt: Handle ARM.
608 2011-12-13  Richard Henderson  <rth@redhat.com>
610         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
611         signed/unsigned comparison werror.
613         * local_atomic: New file.
614         * libitm_i.h: Include it.
615         (gtm_thread::shared_state): Use atomic template.
616         * beginend.cc (GTM::gtm_clock): Use atomic template.
617         (global_tid): Use atomic template if 64-bit atomics available.
618         (gtm_thread::gtm_thread): Update shared_state access.
619         (gtm_thread::trycommit): Likewise.
620         (choose_code_path): Update global_tid access.
621         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
622         * stmlock.h (GTM::gtm_clock): Use atomic template.
623         (gtm_get_clock, gtm_inc_clock): Update accesses.
624         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
625         redundant __sync_synchronize after atomic shared_state access.
626         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
627         (gtm_rwlock::write_lock_generic): Likewise.
628         (gtm_rwlock::read_unlock): Likewise.
629         * config/alpha/target.h (atomic_read_barrier): Remove.
630         (atomic_write_barrier): Remove.
631         * config/x86/target.h (atomic_read_barrier): Remove.
632         (atomic_write_barrier): Remove.
634 2011-11-30  Richard Henderson  <rth@redhat.com>
636         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
637         * beginend.c (_ITM_abortTransaction): Update to match.
638         (GTM::gtm_thread::restart): Likewise.
639         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
640         * config/x86/sjlj.S (GTM_longjmp): Likewise.
642 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
644         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
645         * Makefile.in: Regenerate.
647 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
649         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
650         * alloc_cpp.cc: Generate dummy functions if we don't
651         HAVE_ELF_STYLE_WEAKREF.
652         * eh_cpp.cc: Likewise.
653         * configure: Regenerate.
654         * aclocal.m4:  Likewise.
655         * config.h.in: Likewise.
656         * Makefile.in: Likewise.
657         * testsuite/Makefile.in: Likewise.
659 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
661         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
662         __USER_LABEL_PREFIX__ for targets that use it.
663         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
664         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
665         in portability to non-elf targets.
666         (GTM_longjmp): Likewise.
667         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
668         where required.
670 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
672         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
673         * testsuite/libitm.c/memset-1.c: Likewise.
675 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
677         * configure: Regenerate.
679 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
681         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
682         (LIBITM_ENABLE_SYMVERS): Handle sun style.
683         * Makefile.am: Handle sun style versioning.
684         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
685         * configure: Regenerate.
686         * Makefile.in: Regenerate.
688 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
690         * config/generic/asmcfi.h: Fix comment.
691         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
692         sequence without .hidden support, error for non-ELF targets.
693         (GTM_longjmp) [__ELF__]: Only use .hidden if
694         HAVE_ATTRIBUTE_VISIBILITY.
696 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
698         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
699         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
700         Dummy functions.
701         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
702         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
704 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
706         PR bootstrap/51098
707         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
708         * configure: Regenerate.
710 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
712         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
714 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
716         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
717         .hidden.
718         (.note.GNU-stack): Only use if __linux__.
719         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
720         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
721         * testsuite/libitm.c/reentrant.c: Likewise.
722         * testsuite/libitm.c/simple-2.c: Likewise.
723         * testsuite/libitm.c/txrelease.c: Likewise.
724         * testsuite/libitm.c++/static_ctor.C: Likewise.
726 2011-11-10  Richard Henderson  <rth@redhat.com>
728         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
729         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
730         * configure.ac (ARCH_X86_AVX): New conditional.
731         * Makefile.in, configure: Rebuild.
733 2011-11-09  Richard Henderson  <rth@redhat.com>
735         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
736         * configure.ac: Use it.
737         * config.h.in, configure: Rebuild.
738         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
740 2011-11-09  Richard Henderson  <rth@redhat.com>
742         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
743         * config/alpha/unaligned.h: Remove file.
744         * config/generic/unaligned.h: Remove file.
745         * config/x86/unaligned.h: Remove file.
746         * config/generic/cachepage.h: Remove file.
747         * config/posix/cachepage.cc: Remove file.
748         * config/generic/cacheline.cc: Remove file.
749         * config/x86/cacheline.cc: Remove file.
750         * config/generic/cacheline.h (gtm_cacheline): Remove the
751         store_mask, copy_mask, copy_mask_wb methods.
752         * config/x86/cacheline.h: Likewise.
753         * config/alpha/cacheline.h: Fall back to generic after setting size.
754         * config/generic/tls.cc (gtm_mask_stack): Remove.
755         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
756         (GTM_vpalignr_table): Remove.
757         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
758         (GTM_pshift_table): Remove.
759         * config/libitm_i.h: Don't include cachepage.h.
760         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
761         * Makefile.in, testsuite/Makefile.in: Rebuild.
763 2011-11-09  Richard Henderson  <rth@redhat.com>
765         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
766         to emit branch prediction hint.
768         * config/x86/sjlj.S: Protect elf directives with __ELF__.
769         Protect .note.GNU-stack with __linux__.
771         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
772         * configure, aclocal.m4, config.h.in: Rebuild.
773         * config/generic/asmcfi.h: New file.
774         * config/x86/sjlj.S: Use it.
776 2011-11-08  Richard Henderson  <rth@redhat.com>
778         * local.cc (_ITM_LB): Use a normal call, not a function alias.
780 2011-11-08  Richard Henderson  <rth@redhat.com>
782         * configure.tgt: Test correct directory for supported cpus.
784         * configure.ac: Exit if unsupported.
785         * configure: Rebuild.
786         * configure.tgt: Delete boilerplate from libgomp for unsupported
787         targets.  Set UNSUPPORTED for unsupported targets.
789 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
791         * configure.tgt: Handle i386 like i[456]86.
792         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
793         take address.
794         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
795         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
797 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
799         * method-wbetl.cc: Update copyright notice.
800         * aatree.cc: Same.
801         * util.cc: Same.
802         * libitm.h: Same.
803         * memset.cc: Same.
804         * eh_cpp.cc: Same.
805         * barrier.tpl: Same.
806         * useraction.cc: Same.
807         * stmlock.h: Same.
808         * memcpy.cc: Same.
809         * common.h: Same.
810         * config/generic/tls.cc: Same.
811         * config/generic/cacheline.h: Same.
812         * config/generic/cachepage.h: Same.
813         * config/generic/cacheline.cc: Same.
814         * config/generic/unaligned.h: Same.
815         * config/x86/cacheline.h: Same.
816         * config/x86/cacheline.cc: Same.
817         * config/x86/unaligned.h: Same.
818         * config/alpha/cacheline.h: Same.
819         * config/alpha/unaligned.h: Same.
820         * config/alpha/sjlj.S: Same.
821         * config/posix/cachepage.cc: Same.
822         * config/linux/futex.h: Same.
823         * config/linux/alpha/futex_bits.h: Same.
825 2011-11-04  Torvald Riegel  <triegel@redhat.com>
827         * libitm.texi: No cover text and invariant sections.
829 2011-11-03  Richard Henderson  <rth@redhat.com>
831         * local_type_traits: New file.
832         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
834 2011-11-03  Richard Henderson  <rth@redhat.com>
836         * configure.ac: Don't test for gfortran.
837         * configure: Rebuild.
839         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
840         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
842 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
844         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
845         * testsuite/libitm.c/memset-1.c: Same.
846         * testsuite/libitm.c/c.exp: Same.
847         * testsuite/lib/libitm-dg.exp: Same.
848         * testsuite/lib/libitm.exp: Same.
849         * testsuite/libitm.c++/c++.exp: Same.
851 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
853         * testsuite/config/default.exp: Update copyright date.
854         * configure.ac: Add copyright info.
855         * configure.tgt: Same.
857 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
859         * testsuite/libitm.c/reentrant.c: XFAIL.
860         * testsuite/libitm.c++/static_ctor.C: XFAIL.
862 2011-10-29  Torvald Riegel  <triegel@redhat.com>
864         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
865         handle aborts.
866         (_ITM_abortTransaction): Handle aborts of outer transactions.
867         * libitm_i.h: Same.
868         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
869         * libitm.texi: Document aborts of outer transactions.
870         * testsuite/libitm.c/cancel.c: New file.
872 2011-10-19  Torvald Riegel  <triegel@redhat.com>
874         * testsuite/*: Change __transaction to __transaction_atomic or
875         __transaction_relaxed.
877 2011-10-19  Torvald Riegel  <triegel@redhat.com>
879         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
880         (gtm_thr): Same.
882 2011-10-19  Torvald Riegel  <triegel@redhat.com>
884         * libitm_i.h: Add gl_wt dispatch.
885         * retry.cc (parse_default_method): Same.
886         * method-gl.cc: New file.
887         * Makefile.am: Use method-gl.cc.
888         * Makefile.in: Rebuild.
890 2011-10-19  Torvald Riegel  <triegel@redhat.com>
892         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
893         safety if requested by a TM method.
894         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
895         privatization safety.
896         * method-serial.cc: Same.
898 2011-10-19  Torvald Riegel  <triegel@redhat.com>
900         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
901         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
902         undolog-related member functions from *_local to *_undolog.
903         * local.cc (gtm_thread::commit_undolog): Same.
904         * beginend.cc (GTM::gtm_thread::trycommit): Same.
905         (GTM::gtm_thread::rollback): Roll back undolog before
906         dispatch-specific rollback.
908 2011-10-19  Torvald Riegel  <triegel@redhat.com>
910         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
911         re-initialization of the current method group.
912         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
914 2011-10-19  Torvald Riegel  <triegel@redhat.com>
916         * alloc.cc (commit_allocations_2): Do not free transaction-local
917         memory when committing a nested transaction.
919 2011-10-19  Torvald Riegel  <triegel@redhat.com>
921         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
922         serial-irrevocable dispatch, not serial.
924 2011-10-19  Torvald Riegel  <triegel@redhat.com>
926         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
927         declarations.
928         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
929         * method-serial.cc: Implement begin_or_restart().
930         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
931         dispatch-specific begin_or_restart().
932         (GTM::gtm_thread::restart): Same.
934 2011-08-23  Torvald Riegel  <triegel@redhat.com>
936         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
937         restarting without switching to serial mode.
938         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
939         transaction state. Choose closed-nesting alternative if available.
940         (GTM::gtm_thread::set_default_dispatch): New.
941         (parse_default_method): New.
942         (GTM::gtm_thread::number_of_threads_changed): New.
943         * method-serial.cc (GTM::serial_mg): New method group class.
944         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
945         fini.
946         (GTM::serial_dispatch): Same.
947         (GTM::serialirr_onwrite_dispatch): Same.
948         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
949         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
950         registered threads.
951         (GTM::gtm_thread::gtm_thread): Same.
952         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
953         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
954         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
955         choose dispatch but set state according to dispatch here.
956         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
957         (GTM::method_group): New class.
958         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
959         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
960         * libitm.texi: Document TM methods, method groups, method life cycle.
961         Rename method sets to method groups.
963 2011-08-23  Torvald Riegel  <triegel@redhat.com>
965         * config/x86/tls.h: Moved to ...
966         * config/linux/x86/tls.h: ... here.
968 2011-08-23  Torvald Riegel  <triegel@redhat.com>
970         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
971         Add X32 support.
972         * config/x86/sjlj.S: Same.
974 2011-08-19  Torvald Riegel  <triegel@redhat.com>
976         * config/linux/rwlock.h: New file.
977         * config/linux/rwlock.c: New file.
978         * configure.ac: Reenable futex support (undo SVN rev 157758).
979         * Makefile.am: Same.
980         * configure.tgt: Same.
981         * config/linux/alpha/futex_bits.h: Same.
982         * config/linux/futex.h: Same. Return number of woken processes.
983         * config/linux/futex.cc: Same.
984         (futex_wait): Remove spinning.
985         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
986         Use __x86_64__ instead of __LP64__.
987         * aclocal.m4: Include generic futex checks.
988         * configure: Rebuild.
989         * Makefile.in: Rebuild.
990         * testsuite/Makefile.in: Rebuild.
991         * beginend.cc: Include pthread.h.
992         * config/posix/cachepage.cc: Same.
994 2011-08-12  Torvald Riegel  <triegel@redhat.com>
996         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
997         (abi_disp, set_abi_disp): Move to tx's TLS slot.
998         (set_gtm_thr): New.
999         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1000         (set_gtm_thr): New.
1001         (GTM::gtm_thread::thread_num): Removed.
1002         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1003         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1004         tx-to-thread renaming.
1005         * beginend.cc: Adapted to tx-to-thread renaming.
1006         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1007         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1008         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1009         gtm_transaction to gtm_thread.
1010         (_ITM_getThreadnum): Removed. Not supported anymore.
1011         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1012         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1013         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1014         gtm_tx-to-gtm_thr renaming if necessary.
1015         * eh_cpp.cc: Same.
1016         * local.cc: Same.
1017         * retry.cc: Same.
1018         * clone.cc: Same.
1019         * alloc.cc: Same.
1020         * alloc_c.cc: Same.
1021         * alloc_cpp.cc: Same.
1022         * method-serial.cc: Same.
1023         * config/generic/tls.cc: Same.
1024         * config/posix/rwlock.h (gtm_rwlock): Same.
1025         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1027 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1029         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1030         implementation.
1031         (gtm_rwlock::read_unlock): Same.
1032         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1033         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1034         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1035         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1036         w_upgrade. Replaced by per-transaction flags (in shared_state).
1037         Added c_confirmed_writers.
1038         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1039         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1040         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1041         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1042         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1043         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1044         * libitm.texi: Document locking conventions and implementations in
1045         libitm.
1047 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1049         * libitm_i.h (next_tx): Add list of all threads' transaction.
1050         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1051         transaction with list of transactions and ...
1052         (thread_exit_handler): ... deregister here.
1053         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1054         * config/x86/target.h: Same.
1056 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1058         * testsuite/libitm.c++/static_ctor.C: New file.
1060 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1062         * testsuite/libitm.c/reentrant.c: New file.
1064 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1066         * config/generic/tls.h: Remove the free list for transactions and ...
1067         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1068         (GTM::gtm_transaction::operator delete): ... and release here.
1069         (thread_exit_handler): New. Delete tx when thread terminates.
1070         (thread_exit_init): New.
1071         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1072         * testsuite/libitm.c/txrelease.c: New file.
1074 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1076         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1077         * testsuite/libitm.c/notx.c: New file.
1079 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1081         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1082         * libitm_i.h (local_tid): ... to here.
1083         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1084         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1086 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1088         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1089         serialirr_onwrite_dispatch as new default for now.
1090         * method-serial.cc (serialirr_onwrite_dispatch): New.
1091         (GTM::dispatch_serialirr_onwrite): New.
1092         * libitm_i.h: Same.
1094 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1096         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1097         * query.cc (_ITM_getTransactionId): There is no active transaction if
1098         the current nesting level is zero.
1100 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1102         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1103         rollback.
1105 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1107         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1108         transaction properties from the caller instead of from the
1109         transaction object.
1110         * libitm_i.h: Same.
1111         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1113 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1115         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1116         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1117         * dispatch.h: Same.
1118         * method-serial.cc: Same.
1119         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1120         flat nesting as default, and closed nesting on demand.
1121         (GTM::gtm_transaction::rollback): Same.
1122         (_ITM_abortTransaction): Same.
1123         (GTM::gtm_transaction::restart): Same.
1124         (GTM::gtm_transaction::trycommit): Same.
1125         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1126         (choose_code_path): New.
1127         (GTM::gtm_transaction_cp::save): New.
1128         (GTM::gtm_transaction_cp::commit): New.
1129         * query.cc (_ITM_inTransaction): Support flat nesting.
1130         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1131         (GTM::gtm_transaction): Support flat and closed nesting.
1132         * alloc.cc (commit_allocations_2): New.
1133         (commit_cb_data): New helper struct.
1134         (GTM::gtm_transaction::commit_allocations): Handle nested
1135         commits/rollbacks.
1136         * libitm.texi: Update user action section, add description of nesting.
1138 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1140         * libitm_i.h: Add closed nesting as restart reason.
1141         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1143 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1145         * useraction.cc: Use vector instead of list to store actions.
1146         Also support partial rollbacks for closed nesting.
1147         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1148         * beginend.cc: Same.
1150 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1152         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1153         closed_nesting flags, as well as a closed nesting alternative.
1154         * method-serial.cc: Same.
1155         (serial_dispatch): Renamed to serialirr_dispatch.
1156         (GTM::dispatch_serialirr): Same.
1157         (serial_dispatch_ul): Renamed to serial_dispatch.
1158         (GTM::dispatch_serial): Same.
1160 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1162         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1164 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1166         * aatree.h (aa_tree::remove): New.
1167         (aa_tree::operator new): Add placement new.
1169 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1171         * containers.h: New file.
1172         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1173         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1174         * common.h: ... to here.
1175         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1176         * local.cc: Same.
1178 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1180         * libitm_i.h (STATE_ABORTING): Remove.
1181         * beginend.cc (_ITM_abortTransaction): Same.
1182         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1183         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1184         (_ITM_rollbackTransaction): Remove.
1185         * beginend.cc: Same.
1186         * libitm.map: Same.
1187         * libitm.texi: Document these ABI changes.
1189 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1191         * libitm.texi: New file.
1192         * Makefile.am: Add libitm.texi.
1193         * Makefile.in: Rebuild.
1195 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1197         * libitm_i.h: Move parts to common.h and dispatch.h.
1198         * common.h: New file.
1199         * dispatch.h: New file, new dispatch class.
1200         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1201         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1202         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1203         decision to retry.cc.
1204         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1205         only.
1206         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1207         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1208         logging.
1209         * barrier.cc: Use new barriers definitions.
1210         (abi_dispatch::memmove_overlap_check): New.
1211         * config/x86/x86_sse.cc: Same.
1212         * config/x86/x86_avx.cc: Same.
1213         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1214         memcpy.cc.
1215         * Makefile.in: Rebuild.
1216         * method-readonly.cc: Remove.
1217         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1218         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1220 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1222         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1223         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1224         * testsuite/libitm.c/dropref-2.c: Same.
1225         * testsuite/libitm.c/dropref.c: Same.
1227 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1229         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1230         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1231         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1232         * alloc_c.cc: Same.
1233         * barrier.tpl: Same.
1234         * beginend.c: Same.
1235         * config/generic/tls.h: Same.
1236         * config/x86/tls.h: Same.
1237         * libitm_i.h: Same.
1238         * memcpy.cc: Same.
1239         * memset.cc: Same.
1240         * method-readonly.cc: Same.
1241         * method-serial.cc: Same.
1242         * method-wbetl.cc: Same.
1243         * retry.cc: Same.
1245 2011-03-03  Richard Henderson  <rth@redhat.com>
1247         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1248         From Patrik Marlier <patrick.marlier@unine.ch>.
1250 2011-02-03  Richard Henderson  <rth@redhat.com>
1252         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1253         * configure.ac: Use it.
1254         * configure, config.h.in: Rebuild.
1255         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1256         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1257         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1258         * libitm.map: Use wildcards to match size_t mangling.
1260 2010-12-14  Richard Henderson  <rth@redhat.com>
1262         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1263         blocks of TIDs per thread.
1264         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1265         (setup_gtm_thr): Return the thread structure.
1266         * config/x86/tls.h (setup_gtm_thr): Likewise.
1268 2010-12-14  Richard Henderson  <rth@redhat.com>
1270         * clone.cc (table_lock): Remove.
1271         (find_clone): Don't take it.
1272         (ExcludeTransaction): New helper class.
1273         (_ITM_registerTMCloneTable): Use it.
1274         (_ITM_deregisterTMCloneTable): Likewise.
1276 2010-12-14  Richard Henderson  <rth@redhat.com>
1278         * config/x86/tls.h: New file.
1280 2010-07-15  Richard Henderson  <rth@redhat.com>
1282         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1283         * Makefile.in: Rebuild.
1285 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1287         * method-wbetl.cc (trydropreference): Fix source line.
1289 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1291         * libitm.h: Add comment.
1292         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1294 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1296         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1297         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1298         available, use pthread mutexes.
1299         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1300         * config.h.in: Regenerate.
1301         * configure: Regenerate.
1303 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1305         * libitm.h (ITM_PURE): Define.
1306         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1308 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1310         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1311         (validate): Add comment.
1312         (trydropreference): New.
1313         * method-readonly.cc (class readonly_dispatch): Add
1314         trydropreference.
1315         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1316         Call trydropreference().
1317         * libitm.h (_ITM_dropReferences): Remove const attribute.
1318         * method-serial.cc (class serial_dispatch): Add trydropreference.
1319         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1321 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1323         * memcpy.cc (do_memcpy): Comment.
1325 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1327         * barrier.tpl: Add comments throughout.
1329 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1331         * method-wbetl.cc (struct w_entry): Add comments.
1332         (trycommit): Same.
1333         (rollback): Same.
1335 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1337         * alloc_c.cc (_ITM_dropReferences): New.
1338         * libitm.map (_ITM_dropReferences): Add.
1339         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1340         * libitm_i.h (struct gtm_transaction): Declare
1341         drop_references_allocations and drop_references_local.
1342         * local.cc (rollback_local): Ignore memory when applicable.
1343         (drop_references_local): New.
1345 2010-06-23  Richard Henderson  <rth@redhat.com>
1347         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1348         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1349         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1350         * config/alpha/target.h: Likewise.
1351         * config/generic/tls.cc (gtm_mask_stack): Use it.
1353 2010-06-23  Richard Henderson  <rth@redhat.com>
1355         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1356         a mutex instead of trying a lock-free compare-and-swap on the list.
1357         (gtm_cacheline_page::operator delete): Likewise.
1359 2010-06-16  Richard Henderson  <rth@redhat.com>
1361         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1362         that overlap the libitm stack.
1363         * barrier.tpl: Mark incoming stack.
1364         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1365         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1366         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1367         * memcpy.cc, memset.cc: Likewise.
1368         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1369         * config/generic/tls.h (gtm_thread): Add stack_top member.
1370         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1371         * libitm_i.h (gtm_mask_stack): Declare.
1372         * config/generic/tls.cc: New file.
1373         * Makefile.am (libitm_la_SOURCES): Add it.
1374         (AM_CXXFLAGS): Turn off exceptions.
1375         * Makefile.in: Rebuild.
1377 2010-06-16  Richard Henderson  <rth@redhat.com>
1379         * alloc.cc (struct gtm_alloc_action): Move definition ...
1380         * libitm_i.h: ... here.
1381         (class gtm_transaction): Declare new and delete.
1382         * beginend.cc (alloc_tx): Reformulate as operator new.
1383         (free_tx): Reformulate as operator delete.
1384         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1386 2010-06-11  Richard Henderson  <rth@redhat.com>
1388         * clone.cc (clone_entry_compare): Fix typo.
1389         From Patrik Marlier <patrick.marlier@unine.ch>.
1391 2010-05-13  Richard Henderson  <rth@redhat.com>
1393         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1394         in extern "C".
1396 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1398         * libitm_i.h (struct gtm_transaction): Remove
1399         get_allocation_size.
1400         (record_allocation): Remove size parameter.
1401         * libitm.map (_ITM_realloc): Remove.
1402         * alloc_c.cc (_ITM_realloc): Remove.
1403         (_ITM_malloc): Remove size argument to record_allocation.
1404         (_ITM_calloc): Same.
1405         * alloc_cpp.cc (_ZGTtnwm): Same.
1406         (_ZGTtnwmRKSt9nothrow_t): Same.
1407         (_ZGTtnam): Same.
1408         (_ZGTtnamRKSt9nothrow_t): Same.
1409         * alloc.cc (struct gtm_alloc_action): Remove size.
1410         (get_allocation_size): Remove.
1411         (commit_allocations): Add comment.
1412         (record_allocation): Remove size parameter.
1413         (forget_allocation): Remove set of size.
1415 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1417         * Makefile.am (abi_version): New.
1418         (AM_CXXFLAGS): Pass abi_version.
1419         * Makefile.in: Regenerate.
1420         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1422 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1424         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1425         _ITM_getTMCloneOrIrrevokable.
1426         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1427         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1429 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1431         * configure.ac: Remove Linux futex support.
1432         * configure.tgt (config_path): Same.
1433         * Makefile.am: Same.
1434         * config/linux: Remove entire directory.
1435         * configure: Rebuild.
1436         * Makefile.in: Rebuild.
1437         * testsuite/Makefile.in: Rebuild.
1439 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1441         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1442         switching to serial mode.
1443         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1445 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1447         * configure.tgt: Add emacs -*- tags.
1448         * barrier.tpl: Same.
1450 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1452         * Makefile.am: Rename serial.cc to method-serial.cc.
1453         * Makefile.in: Regenerate with automake 1.11.1.
1454         * testsuite/Makefile.in: Same.
1455         * aclocal.m4: Regenerate with aclocal 1.11.1.
1456         * method-serial.cc: Rename from serial.cc.
1457         * libitm_i.h (struct gtm_transaction): Update comment on
1458         serialirr_mode.
1460 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1462         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1463         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1465 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1467         * configure: Rebuild.
1469 2009-11-12  Richard Henderson  <rth@redhat.com>
1471         * Rewrite everything in C++.
1473 2009-11-03  Richard Henderson  <rth@redhat.com>
1475         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1476         * Makefile.am (libitm_la_SOURCES): Add them.
1477         * configure.ac (ARCH_X86): New conditional.
1478         * Makefile.in, configure: Rebuild.
1479         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1480         Move futex setup into "other system configury" case.
1481         * local.c (rollback_local): Merge into ...
1482         (GTM_rollback_local): ... here.
1483         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1484         (_ITM_LB): Define as an alias to GTM_LB.
1486 2009-11-03  Richard Henderson  <rth@redhat.com>
1488         * method-readonly.c: New file.
1489         * Makefile.am (libitm_la_SOURCES): Add it.
1490         * Makefile.in: Rebuild.
1491         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1492         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1493         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1494         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1495         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1496         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1497         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1498         gtm_get_clock, gtm_inc_clock): New.
1499         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1500         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1501         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1502         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1503         replace uses with new libitm_i.h symbols.
1504         (dispatch_wbetl): Rename from wbetl_dispatch.
1505         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1506         away from dispatch_readonly; abort if the beginTransaction call
1507         asserted that the transaction was readonly.
1509 2009-11-03  Richard Henderson  <rth@redhat.com>
1511         * memset.c: New file.
1512         * Makefile.am (libitm_la_SOURCES): Add it.
1513         * Makefile.in: Rebuild.
1514         * testsuite/libitm.c/memset-1.c: New.
1516 2009-11-03  Richard Henderson  <rth@redhat.com>
1518         * dispatch.c: Remove file.
1519         * useraction.c (struct gtm_user_action): Move from libitm.h.
1520         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1521         (serial_memset, serial_memmove, serial_memcpy): Remove.
1522         (serial_W*, serial_R*): Remove.
1523         (serial_dispatch): Update to match.
1524         * configure.ac: Move Werror down below configure checks.  Don't
1525         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1526         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1527         Use GCC_AC_FUNC_MMAP_BLACKLIST
1528         * libitm.h: Split out all internal items to...
1529         * libitm_i.h: ... here.  New file.
1530         * copymask.c: New file.
1531         * local.c (struct gtm_local_undo): Move from libitm.h.
1532         (GTM_alloc_local): Rename from alloc_local; export.
1533         * memcpy.c: New file.
1534         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1535         * config/posix/page.c: New file.
1536         * config/posix/target_tls.h: Remove file.
1537         * barrier.c: New file.
1538         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1539         copymask.c, page.c.
1540         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1541         * method-wbetl.c: Rewrite for new cacheline methods.
1542         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1544         * config/alpha/sjlj.S: Fix typo.
1545         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1546         * config/alpha/copymask.c: New file.
1547         * config/alpha/target.h (CACHELINE_SIZE): New.
1548         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1550         * config/x86/target_i.h: Copy functions from x86/target.h.
1551         * config/x86/copymask.c: New file.
1552         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1553         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1554         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1555         * config/x86/target_tls.h: Move contents to target_i.h.
1557         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1558         * testsuite/libitm.c/memcpy-1.c: New.
1560 2009-10-22  Richard Henderson  <rth@redhat.com>
1562         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1563         (AM_CCASFLAGS): New.
1564         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1565         saving/restoring _AC_ARG_VAR_PRECIOUS.
1566         * Makefile.in, aclocal.m4, config.h.in, configure,
1567         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1569 2009-10-22  Richard Henderson  <rth@redhat.com>
1571         * testsuite/*: Update for new compiler syntax.
1573 2009-10-21  Richard Henderson  <rth@redhat.com>
1575         * libitm.h (_ITM_abortReason): Add outerAbort.
1577 2009-08-03  Richard Henderson  <rth@redhat.com>
1579         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1580         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1581         * method-wbetl.c (struct w_entry): Remove mask.
1582         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1583         adjust all callers.
1585 2009-07-22  Richard Henderson  <rth@redhat.com>
1587         * eh_cpp.c: New file.
1588         * Makefile.am (libitm_la_SOURCES): Add it.
1589         * Makefile.in: Rebuild.
1590         * beginend.c (GTM_rollback_transaction): Undo exception state.
1591         (GTM_trycommit_transaction): Mark inline.
1592         (GTM_trycommit_and_finalize_transaction): Split out from ...
1593         (_ITM_commitTransaction): ... here.
1594         (_ITM_commitTransactionEH): New function.
1595         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1596         cxa_unthrown, eh_in_flight; reorder.
1598         * testsuite/libitm.c++/c++.exp: New.
1599         * testsuite/libitm.c++/eh-1.C: New.
1601         * aatree.c (aa_free): Remove REGPARM.
1602         * aatree.h: Remove all REGPARM.
1604 2009-07-18  Richard Henderson  <rth@redhat.com>
1606         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1607         * Makefile.am (libitm_la_SOURCES): Add them.
1608         * Makefile.in: Rebuild.
1609         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1610         (GTM_trycommit_transaction): Likewise.
1611         * libitm.h: Include aatree.h
1612         (struct gtm_alloc_action): New.
1613         (struct gtm_transaction): Add alloc_actions.
1614         (GTM_record_allocation, GTM_forget_allocation): Declare.
1615         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1616         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1617         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1618         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1619         _ZGTtdaPvRKSt9nothrow_t): Export.
1621 2009-07-18  Richard Henderson  <rth@redhat.com>
1623         * target_tls.h: Move ...
1624         * config/posix/target_tls.h: ... here.
1626 2009-07-07  Richard Henderson  <rth@redhat.com>
1628         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1630 2009-07-07  Richard Henderson  <rth@redhat.com>
1632         * Update to GPL3.
1634 2009-07-07  Richard Henderson  <rth@redhat.com>
1636         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1637         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1639         * configure.tgt: Don't use -ftls-model for x86 linux.
1640         * libitm.h: Include target.h after standard includes.
1641         (_gtm_thr): Rename from gtm_thr.
1642         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1643         (gtm_disp, set_gtm_disp): New.
1644         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1645         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1646         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1648 2009-07-07  Richard Henderson  <rth@redhat.com>
1650         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1652 2009-07-06  Richard Henderson  <rth@redhat.com>
1654         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1655         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1656         (_ITM_beginTransaction): Take variadic arguments.
1657         (_ITM_registerThrownObject): Declare.
1658         * beginend.c, serial.c: Update.
1659         * libitm.map: Add _ITM_registerThrownObject.
1661 2009-01-28  Richard Henderson  <rth@redhat.com>
1663         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1664         * Makefile.in: Rebuild.
1665         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1666         (GTM_restart_transaction): Fix uninstrumented code check.
1667         * retry.c (GTM_decide_retry_strategy): Add serial check.
1668         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1669         automatically go irrevokable when in serial mode.
1670         * clone.c: New file.
1671         * libitm.h, libitm.map: Update.
1673 2009-01-27  Richard Henderson  <rth@redhat.com>
1675         * Makefile.am (LTCCASCOMPILE): Define.
1676         (libitm_la_SOURCES): Add methid-wbetl.c.
1677         * testsuite/Makefile.am: New
1678         * configure.ac: Add testsuite/Makefile.
1679         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1680         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1681         (_ITM_abortTransaction): Finalize implementation method; pass
1682         transaction properties to longjmp.
1683         (GTM_restart_transaction): Split out from ...
1684         (_ITM_commitTransaction): ... here.
1685         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1686         Move to config/x86/target.h.
1687         * config/linux/alpha/futex_bits.h: New.
1688         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1689         * config/x86/target.h: Disable target types for 32-bit.
1690         * config/alpha/sjlj.S, config/alpha/target.h: New.
1691         * libitm.h (struct gtm_dispatch): Add init, fini.
1692         (enum restart_reason): New.
1693         (struct gtm_transaction): Add method and restarts.
1694         * retry.c (GTM_decide_retry_strategy): Implement.
1695         * serial.c (serial_init, serial_fini): New.
1696         (GTM_serialmode): Finialize outgoing method.
1697         * method-wbetl.c: New.
1699 2008-12-09  Richard Henderson  <rth@redhat.com>
1701         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1702         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1703         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1704         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1705         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1706         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1707         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1708         * serial.c (serial_R##T, serial_W##T): Likewise.
1710 2008-11-21  Richard Henderson  <rth@redhat.com>
1712         * Initial commit.