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