Mark ChangeLog
[official-gcc.git] / libitm / ChangeLog
blob11e9042fe84379eabe025c10950172e448299c37
1 2014-07-16  Release Manager
3         * GCC 4.9.1 released.
5 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
8         -mclear-hwcap instead.
9         * configure: Regenerate.
10         * clearcap.map: Remove.
12 2014-04-22  Release Manager
14         * GCC 4.9.0 released.
16 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18         * config/generic/asmcfi.h: Also check for
19         __GCC_HAVE_DWARF2_CFI_ASM.
21 2013-04-02  Richard Henderson  <rth@redhat.com>
23         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
24         * config/arm/target.h, config/sh/target.h: Likewise.
25         * config/sparc/target.h, config/x86/target.h: Likewise.
27 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
29         * config/linux/futex_bits.h: Include errno.h.
30         (sys_futex0): If syscall returns -1, return -errno rather than
31         -1.
33 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
35         * libitm.texi (Index): Rename to Library Index.
37 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
39         PR libitm/53113
40         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
41         (x86_avx.lo): Append -mavx to CXXFLAGS.
42         * Makefile.in: Regenerate.
44 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
46         Update copyright years
48 2014-01-02  Tobias Burnus  <burnus@net-b.de>
50         * libitm.texi: Bump @copying's copyright year.
52 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
55         (FUNC): Define ELFv2 variant.
56         (END): Likewise.
57         (HIDDEN): Likewise.
58         (CALL): Likewise.
59         (BASE): Likewise.
60         (LR_SAVE): Likewise.
62 2013-09-20  Alan Modra  <amodra@gmail.com>
64         * configure: Regenerate.
66 2013-08-30  Torvald Riegel  <triegel@redhat.com>
68         * config/posix/rwlock.cc: Fix initialization order.
70 2013-08-30  Torvald Riegel  <triegel@redhat.com>
72         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
73         (htm_fastpath): Assign an asm name.
74         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
75         HTM fast paths.
76         (_ITM_actions): Likewise.
77         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
78         x86_64.
79         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
80         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
81         field to the start of the structure.
82         * config/linux/rwlock.h (gtm_rwlock): Update comments.
83         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
84         handling for custom HTM fast paths.
86 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87         Revert:
88         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
90         * configure.tgt: Add -msoft-float to XCFLAGS.
92 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
94         * configure.tgt: Add -msoft-float to XCFLAGS.
96 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
98         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
99         (htm_transaction_active): Enable zEC12 instructions in the
100         assembler.
101         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
103 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
105         * acinclude.m4: Add htm asm check for s390.
106         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
107         * configure: Regenerate.
108         * config/s390/target.h: Remove __HTM__ check.
109         (htm_available): Call getauxval to get hwcaps and check whether
110         HTM is available or not.
112 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
114         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
115         * configure.ac: Use it.
116         (AC_CHECK_HEADERS): Check for sys/auxv.h.
117         (AC_CHECK_FUNCS): Check for getauxval.
118         * config.h.in, configure: Rebuild.
119         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
120         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
121         (USE_HTM_FASTPATH): Define.
122         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
123         _HTM_RETRIES) New macros.
124         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
125         htm_begin_success, htm_commit, htm_transaction_active): New functions.
127 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
129         * config/s390/target.h: Include htmintrin.h.
130         (_HTM_ITM_RETRIES): New macro definition.
131         (htm_available, htm_init, htm_begin, htm_begin_success)
132         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
134 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
135             Cesar Philippidis  <cesar@codesourcery.com>
137         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
138         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
139         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
140         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
142 2013-06-20  Torvald Riegel  <triegel@redhat.com>
144         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
145         (_ITM_getTransactionId): Same.
146         * config/x86/target.h (htm_transaction_active): New.
148 2013-06-20  Torvald Riegel  <triegel@redhat.com>
150         PR libitm/57643
151         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
152         the HTM fastpath.
154 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
156         PR bootstrap/56714
157         * local_atomic (__always_inline): Always define our version.
158         (__calculate_memory_order): Mark inline.
159         (atomic_thread_fence): Ditto.
160         (atomic_signal_fence): Ditto.
161         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
162         (atomic_bool::atomic_flag_clear_explicit): Ditto.
163         (atomic_bool::atomic_flag_test_and_set): Ditto.
164         (atomic_bool::atomic_flag_clear): Ditto.
166 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
168         * config/s390/sjlj.S: New file.
169         * config/s390/target.h: New file.
170         * configure.tgt: Set options for S/390.
172 2013-03-23  Andi Kleen  <ak@linux.intel.com>
174         * local_atomic (__always_inline): Add.
175         (__calculate_memory_order, atomic_thread_fence,
176          atomic_signal_fence, test_and_set, clear, store, load,
177          exchange, compare_exchange_weak, compare_exchange_strong,
178          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
179         Add __always_inline to force inlining.
181 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
182             Jack Howarth  <howarth@bromo.med.uc.edu>
183             Patrick Marlier  <patrick.marlier@gmail.com>
185         PR libitm/55693
186         * alloc_cpp.cc: Enable function declarations on darwin.
187         * eh_cpp.cc: Likewise.
189 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
191         Update copyright years.
193 2012-11-09  Torvald Riegel  <triegel@redhat.com>
195         * beginend.cc (htm_fastpath): New.
196         (gtm_thread::begin_transaction, _ITM_commitTransaction,
197         _ITM_commitTransactionEH): Add HTM fastpath handling.
198         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
199         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
200         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
201         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
202         * configure.tgt: Add -mrtm to XCFLAGS.
203         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
204         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
205         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
206         * retry.cc (parse_default_method): Add HTM method parsing.
207         (gtm_thread::number_of_threads_changed): Use HTM by default if
208         available.
210 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
212         * configure: Regenerate.
214 2012-10-31  Richard Henderson  <rth@redhat.com>
216         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
217         * configure.ac: Use it.
218         * config.h.in, configure: Rebuild.
219         * testsuite/Makefile.in: Rebuild.
221 2012-10-24  Torvald Riegel  <triegel@redhat.com>
223         * libitm.texi: Clarify ABI requirements for data-logging functions.
225 2012-10-24  Torvald Riegel  <triegel@redhat.com>
227         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
228         it requires serial mode instead of assuming that for certain
229         dispatchs.
230         * dispatch.h (abi_dispatch::requires_serial): New.
231         (abi_dispatch::abi_dispatch): Adapt.
232         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
233         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
234         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
235         serial_dispatch::serial_dispatch,
236         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
238 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
240         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
241         and ia32 declarations some more.
242         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
244 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
246         PR other/43620
247         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
248         * configure: Regenerate.
249         * Makefile.in: Regenerate.
251 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
253         * configure: Regenerated.
255 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
257         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
259 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
261         * eh_cpp.cc: Fix __cxa_end_catch declaration.
263 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
265         * configure: Regenerated.
267 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
269         PR libitm/52854
270         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
271         for x86-64.
273 2012-04-03  Tristan Gingold  <gingold@adacore.com>
275         * configure: Regenerate.
277 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
279         PR bootstrap/52812
280         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
282 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
284         * testsuite/lib/libitm.exp: load fortran-modules.exp
286 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
288         * configure.tgt (*-*-irix6*): Remove.
290 2012-03-13  Torvald Riegel  <triegel@redhat.com>
292         PR libitm/52526
293         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
294         wake-up.
296 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
298         * configure.tgt (*-*-osf*): Remove.
299         * configure: Regenerate.
301 2012-03-05  Torvald Riegel  <triegel@redhat.com>
303         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
304         memtransfer/memset if size isn't larger than zero.
306 2012-03-02  Torvald Riegel  <triegel@redhat.com>
308         * libitm.texi: Link to specification and add a usage example.
310 2012-02-24  Torvald Riegel  <triegel@redhat.com>
312         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
313         default dispatch for more than 1 thread to ml_wt.
315 2012-02-20  Torvald Riegel  <triegel@redhat.com>
317         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
319 2012-02-20  Torvald Riegel  <triegel@redhat.com>
321         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
323 2012-02-20  Torvald Riegel  <triegel@redhat.com>
325         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
326         serial mode corner cases made obsolete by prior gtm_rwlock changes.
327         (gl_wt_dispatch.rollback): Same.
329 2012-02-20  Torvald Riegel  <triegel@redhat.com>
331         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
333 2012-02-20  Torvald Riegel  <triegel@redhat.com>
335         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
336         for RfW src.  Optimize number of calls to gtm_thr.
338 2012-02-20  Torvald Riegel  <triegel@redhat.com>
340         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
341         acquisition to ...
342         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
343         (default_dispatch): Make atomic.
344         (GTM::gtm_thread::set_default_dispatch): Access atomically.
345         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
346         use decide_begin_dispatch() if default_dispatch might have changed.
347         (GTM::gtm_thread::number_of_threads_changed): Initialize
348         default_dispatch here.
350 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
351             Patrick Marlier  <patrick.marlier@gmail.com>
353         PR libitm/52220
354         * alloc_cpp.cc: No dummy definitions for darwin.
355         * eh_cpp.cc: Likewise.
357 2012-02-14  Richard Henderson  <rth@redhat.com>
359         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
361 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
363         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
365 2012-02-14  Torvald Riegel  <triegel@redhat.com>
367         * libitm_i.h (GTM::gtm_rwlog_entry): New.
368         (GTM::gtm_thread): Add read and write logs.
369         (GTM::dispatch_ml_wt): Declare.
370         * retry.cc (parse_default_method): Support ml_wt.
371         * method-ml.cc: New file.
372         * Makefile.am: Add method-ml.cc.
373         * Makefile.in: Regenerate.
375 2012-02-14  Torvald Riegel  <triegel@redhat.com>
377         * dispatch.h (GTM::abi_dispatch::supports): New.
378         (GTM::method_group::reinit): New.
379         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
380         (GTM::gtm_thread::number_of_threads_changed): Check that the method
381         supports the current situation.
383 2012-02-14  Torvald Riegel  <triegel@redhat.com>
385         * util.cc (GTM::xcalloc): New.
386         * common.h (GTM::xcalloc): Declare.
388 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
390         * config/sparc/target.h (cpu_relax): Read from CC register.
391         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
393 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
395         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
397 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
399         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
400         * config/sparc/cacheline.h: New file.
401         * config/sparc/target.h: Likewise.
402         * config/sparc/sjlj.S: Likewise.
403         * config/linux/sparc/futex_bits.h: Likewise.
405 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
407         * configure.ac (link_itm): Fix comment.
408         * configure: Regenerate.
409         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
411 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
413         PR libitm/51822
414         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
415         Correct libgomp references.
417 2012-01-24  Torvald Riegel  <triegel@redhat.com>
419         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
420         wake-up.
422 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
424         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
425         end of structure.
426         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
427         offset values.  Do not copy return address.  Decrement stack
428         by 56 bytes only.
429         (GTM_longjump) [__x86_64__]: Update offset values.
431 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
433         PR libitm/51830
434         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
435         the first function argument to %eax.
437 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
439         * libitm.h (_ITM_getThreadnum): Remove.
440         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
442 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
444         * clearcap.map: New file.
445         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
446         * configure.ac: Call it.
447         Clear HWCAP_LDFLAGS if defaulting to -mavx.
448         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
449         * configure: Regenerate.
450         * Makefile.in: Regenerate.
451         * testsuite/Makefile.in: Regenerate.
453 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
455         PR libitm/51173
456         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
457         include, exclude options.
459 2012-01-14  Torvald Riegel  <triegel@redhat.com>
461         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
462         rolling back.
463         * containers.h (GTM::vector::set_size): New.
465 2012-01-14  Torvald Riegel  <triegel@redhat.com>
467         PR libitm/51855
468         * config/generic/tls.h (GTM::mask_stack_top): New.
469         (GTM::mask_stack_bottom): Declare.
470         * config/generic/tls.c (GTM::mask_stack_bottom): New.
471         * local.cc (gtm_undolog::rollback): Filter out any updates that
472         overlap the libitm stack.  Add current transaction as parameter.
473         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
474         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
475         * testsuite/libitm.c/stackundo.c: New test.
477 2012-01-10  Richard Henderson  <rth@redhat.com>
479         * libitm_i.h (_Unwind_DeleteException): Declare weak.
480         * eh_cpp.cc (_Unwind_DeleteException): Define for
481         !HAVE_ELF_STYLE_WEAKREF.
483 2012-01-08  Torvald Riegel  <triegel@redhat.com>
485         * local.cc (GTM_LB): Use GTM::gtm_undolog.
486         (GTM::gtm_thread::drop_references_undolog): Remove.
487         (GTM::gtm_thread::commit_undolog,
488         GTM::gtm_thread::rollback_undolog): Move to ...
489         * libitm_i.h (GTM::gtm_undolog): ...here. New.
490         (GTM::gtm_undolog_entry): Remove.
491         (GTM::gtm_thread): Adapt.
492         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
493         (GTM::gtm_thread::trycommit): Adapt.
494         * method-serial.cc (serial_dispatch::log): Adapt.
495         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
496         (gl_wt_dispatch::store): Fix likely/unlikely.
497         * containers.h (GTM::vector::resize): Add additional_capacity
498         parameter and handle it.
499         (GTM::vector::resize_noinline): New/adapt.
500         (GTM::vector::push): New.
502 2012-01-06  Richard Henderson  <rth@redhat.com>
504         * configure.tgt: Support powerpc-linux and powerpc-darwin.
505         * config/linux/powerpc/futex_bits.h: New file.
506         * config/powerpc/cacheline.h: New file.
507         * config/powerpc/sjlj.S: New file.
508         * config/powerpc/target.h: New file.
509         * config/generic/asmcfi.h (cfi_offset): New.
510         (cfi_restore, cfi_undefined): New.
512 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
514         PR other/51171
515         * testsuite/libitm.c/reentrant.c: Remove xfail.
516         (thread): Pass x to pure().
517         From Patrik Marlier <patrick.marlier@gmail.com>.
519 2011-12-24  Torvald Riegel  <triegel@redhat.com>
521         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
522         privatization safety if already in serial mode.
524 2011-12-24  Torvald Riegel  <triegel@redhat.com>
526         * beginend.cc (GTM::gtm_thread::restart): Add and handle
527         finish_serial_upgrade parameter.
528         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
529         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
530         Don't unset reader flag.
531         (GTM::gtm_rwlock::write_upgrade_finish): New.
532         * config/posix/rwlock.cc: Same.
533         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
534         Declare.
535         * config/posix/rwlock.h: Same.
536         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
537         flag after commit or after rollback when restarting.
539 2011-12-24  Torvald Riegel  <triegel@redhat.com>
541         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
542         (GTM::gtm_thread::try_commit): Changed memory order.
543         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
544         as parameter.
545         * config/linux/x86/futex_bits.h (sys_futex0): Same.
546         * config/linux/sh/futex_bits.h (sys_futex0): Same.
547         * config/linux/futex_bits.h (sys_futex0): Same.
548         * config/linux/futex.cc (futex_wait, futex_wake): Same.
549         * config/linux/futex.h (futex_wait, futex_wake): Same.
550         * config/linux/rwlock.h (gtm_rwlock::writers,
551         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
552         ints.
553         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
554         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
555         gtm_rwlock::write_unlock): Fix memory orders and fences.
556         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
557         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
558         gtm_rwlock::write_unlock): Same.
559         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
560         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
561         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
562         Add comments.
563         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
564         gl_wt_dispatch::load, gl_wt_dispatch::store,
565         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
566         orders and fences.  Add comments.
568 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
570         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
571         * Makefile.in: Regenerated.
573 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
575         * configure.tgt: Add sh* case.
576         * config/sh/target.h: New file.
577         * config/sh/sjlj.S: New file.
578         * config/linux/sh/futex_bits.h: New file.
580 2011-12-14  Richard Henderson  <rth@redhat.com>
582         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
583         * config/arm/sjlj.S, config/arm/target.h: New files.
584         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
585         (cfi_rel_offset): New.
586         * config/linux/futex_bits.h: New file.
587         * config/linux/futex.cc: Include futex_bits.h here...
588         * config/linux/futex.h: ... not here.
589         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
590         * configure.ac (ARCH_AM): New conditional.
591         * Makefile.in, configure: Rebuild.
592         * configure.tgt: Handle ARM.
594 2011-12-13  Richard Henderson  <rth@redhat.com>
596         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
597         signed/unsigned comparison werror.
599         * local_atomic: New file.
600         * libitm_i.h: Include it.
601         (gtm_thread::shared_state): Use atomic template.
602         * beginend.cc (GTM::gtm_clock): Use atomic template.
603         (global_tid): Use atomic template if 64-bit atomics available.
604         (gtm_thread::gtm_thread): Update shared_state access.
605         (gtm_thread::trycommit): Likewise.
606         (choose_code_path): Update global_tid access.
607         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
608         * stmlock.h (GTM::gtm_clock): Use atomic template.
609         (gtm_get_clock, gtm_inc_clock): Update accesses.
610         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
611         redundant __sync_synchronize after atomic shared_state access.
612         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
613         (gtm_rwlock::write_lock_generic): Likewise.
614         (gtm_rwlock::read_unlock): Likewise.
615         * config/alpha/target.h (atomic_read_barrier): Remove.
616         (atomic_write_barrier): Remove.
617         * config/x86/target.h (atomic_read_barrier): Remove.
618         (atomic_write_barrier): Remove.
620 2011-11-30  Richard Henderson  <rth@redhat.com>
622         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
623         * beginend.c (_ITM_abortTransaction): Update to match.
624         (GTM::gtm_thread::restart): Likewise.
625         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
626         * config/x86/sjlj.S (GTM_longjmp): Likewise.
628 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
630         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
631         * Makefile.in: Regenerate.
633 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
635         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
636         * alloc_cpp.cc: Generate dummy functions if we don't
637         HAVE_ELF_STYLE_WEAKREF.
638         * eh_cpp.cc: Likewise.
639         * configure: Regenerate.
640         * aclocal.m4:  Likewise.
641         * config.h.in: Likewise.
642         * Makefile.in: Likewise.
643         * testsuite/Makefile.in: Likewise.
645 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
647         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
648         __USER_LABEL_PREFIX__ for targets that use it.
649         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
650         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
651         in portability to non-elf targets.
652         (GTM_longjmp): Likewise.
653         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
654         where required.
656 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
658         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
659         * testsuite/libitm.c/memset-1.c: Likewise.
661 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
663         * configure: Regenerate.
665 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
667         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
668         (LIBITM_ENABLE_SYMVERS): Handle sun style.
669         * Makefile.am: Handle sun style versioning.
670         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
671         * configure: Regenerate.
672         * Makefile.in: Regenerate.
674 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
676         * config/generic/asmcfi.h: Fix comment.
677         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
678         sequence without .hidden support, error for non-ELF targets.
679         (GTM_longjmp) [__ELF__]: Only use .hidden if
680         HAVE_ATTRIBUTE_VISIBILITY.
682 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
684         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
685         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
686         Dummy functions.
687         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
688         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
690 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
692         PR bootstrap/51098
693         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
694         * configure: Regenerate.
696 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
698         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
700 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
702         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
703         .hidden.
704         (.note.GNU-stack): Only use if __linux__.
705         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
706         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
707         * testsuite/libitm.c/reentrant.c: Likewise.
708         * testsuite/libitm.c/simple-2.c: Likewise.
709         * testsuite/libitm.c/txrelease.c: Likewise.
710         * testsuite/libitm.c++/static_ctor.C: Likewise.
712 2011-11-10  Richard Henderson  <rth@redhat.com>
714         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
715         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
716         * configure.ac (ARCH_X86_AVX): New conditional.
717         * Makefile.in, configure: Rebuild.
719 2011-11-09  Richard Henderson  <rth@redhat.com>
721         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
722         * configure.ac: Use it.
723         * config.h.in, configure: Rebuild.
724         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
726 2011-11-09  Richard Henderson  <rth@redhat.com>
728         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
729         * config/alpha/unaligned.h: Remove file.
730         * config/generic/unaligned.h: Remove file.
731         * config/x86/unaligned.h: Remove file.
732         * config/generic/cachepage.h: Remove file.
733         * config/posix/cachepage.cc: Remove file.
734         * config/generic/cacheline.cc: Remove file.
735         * config/x86/cacheline.cc: Remove file.
736         * config/generic/cacheline.h (gtm_cacheline): Remove the
737         store_mask, copy_mask, copy_mask_wb methods.
738         * config/x86/cacheline.h: Likewise.
739         * config/alpha/cacheline.h: Fall back to generic after setting size.
740         * config/generic/tls.cc (gtm_mask_stack): Remove.
741         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
742         (GTM_vpalignr_table): Remove.
743         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
744         (GTM_pshift_table): Remove.
745         * config/libitm_i.h: Don't include cachepage.h.
746         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
747         * Makefile.in, testsuite/Makefile.in: Rebuild.
749 2011-11-09  Richard Henderson  <rth@redhat.com>
751         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
752         to emit branch prediction hint.
754         * config/x86/sjlj.S: Protect elf directives with __ELF__.
755         Protect .note.GNU-stack with __linux__.
757         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
758         * configure, aclocal.m4, config.h.in: Rebuild.
759         * config/generic/asmcfi.h: New file.
760         * config/x86/sjlj.S: Use it.
762 2011-11-08  Richard Henderson  <rth@redhat.com>
764         * local.cc (_ITM_LB): Use a normal call, not a function alias.
766 2011-11-08  Richard Henderson  <rth@redhat.com>
768         * configure.tgt: Test correct directory for supported cpus.
770         * configure.ac: Exit if unsupported.
771         * configure: Rebuild.
772         * configure.tgt: Delete boilerplate from libgomp for unsupported
773         targets.  Set UNSUPPORTED for unsupported targets.
775 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
777         * configure.tgt: Handle i386 like i[456]86.
778         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
779         take address.
780         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
781         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
783 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
785         * method-wbetl.cc: Update copyright notice.
786         * aatree.cc: Same.
787         * util.cc: Same.
788         * libitm.h: Same.
789         * memset.cc: Same.
790         * eh_cpp.cc: Same.
791         * barrier.tpl: Same.
792         * useraction.cc: Same.
793         * stmlock.h: Same.
794         * memcpy.cc: Same.
795         * common.h: Same.
796         * config/generic/tls.cc: Same.
797         * config/generic/cacheline.h: Same.
798         * config/generic/cachepage.h: Same.
799         * config/generic/cacheline.cc: Same.
800         * config/generic/unaligned.h: Same.
801         * config/x86/cacheline.h: Same.
802         * config/x86/cacheline.cc: Same.
803         * config/x86/unaligned.h: Same.
804         * config/alpha/cacheline.h: Same.
805         * config/alpha/unaligned.h: Same.
806         * config/alpha/sjlj.S: Same.
807         * config/posix/cachepage.cc: Same.
808         * config/linux/futex.h: Same.
809         * config/linux/alpha/futex_bits.h: Same.
811 2011-11-04  Torvald Riegel  <triegel@redhat.com>
813         * libitm.texi: No cover text and invariant sections.
815 2011-11-03  Richard Henderson  <rth@redhat.com>
817         * local_type_traits: New file.
818         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
820 2011-11-03  Richard Henderson  <rth@redhat.com>
822         * configure.ac: Don't test for gfortran.
823         * configure: Rebuild.
825         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
826         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
828 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
830         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
831         * testsuite/libitm.c/memset-1.c: Same.
832         * testsuite/libitm.c/c.exp: Same.
833         * testsuite/lib/libitm-dg.exp: Same.
834         * testsuite/lib/libitm.exp: Same.
835         * testsuite/libitm.c++/c++.exp: Same.
837 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
839         * testsuite/config/default.exp: Update copyright date.
840         * configure.ac: Add copyright info.
841         * configure.tgt: Same.
843 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
845         * testsuite/libitm.c/reentrant.c: XFAIL.
846         * testsuite/libitm.c++/static_ctor.C: XFAIL.
848 2011-10-29  Torvald Riegel  <triegel@redhat.com>
850         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
851         handle aborts.
852         (_ITM_abortTransaction): Handle aborts of outer transactions.
853         * libitm_i.h: Same.
854         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
855         * libitm.texi: Document aborts of outer transactions.
856         * testsuite/libitm.c/cancel.c: New file.
858 2011-10-19  Torvald Riegel  <triegel@redhat.com>
860         * testsuite/*: Change __transaction to __transaction_atomic or
861         __transaction_relaxed.
863 2011-10-19  Torvald Riegel  <triegel@redhat.com>
865         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
866         (gtm_thr): Same.
868 2011-10-19  Torvald Riegel  <triegel@redhat.com>
870         * libitm_i.h: Add gl_wt dispatch.
871         * retry.cc (parse_default_method): Same.
872         * method-gl.cc: New file.
873         * Makefile.am: Use method-gl.cc.
874         * Makefile.in: Rebuild.
876 2011-10-19  Torvald Riegel  <triegel@redhat.com>
878         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
879         safety if requested by a TM method.
880         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
881         privatization safety.
882         * method-serial.cc: Same.
884 2011-10-19  Torvald Riegel  <triegel@redhat.com>
886         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
887         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
888         undolog-related member functions from *_local to *_undolog.
889         * local.cc (gtm_thread::commit_undolog): Same.
890         * beginend.cc (GTM::gtm_thread::trycommit): Same.
891         (GTM::gtm_thread::rollback): Roll back undolog before
892         dispatch-specific rollback.
894 2011-10-19  Torvald Riegel  <triegel@redhat.com>
896         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
897         re-initialization of the current method group.
898         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
900 2011-10-19  Torvald Riegel  <triegel@redhat.com>
902         * alloc.cc (commit_allocations_2): Do not free transaction-local
903         memory when committing a nested transaction.
905 2011-10-19  Torvald Riegel  <triegel@redhat.com>
907         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
908         serial-irrevocable dispatch, not serial.
910 2011-10-19  Torvald Riegel  <triegel@redhat.com>
912         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
913         declarations.
914         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
915         * method-serial.cc: Implement begin_or_restart().
916         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
917         dispatch-specific begin_or_restart().
918         (GTM::gtm_thread::restart): Same.
920 2011-08-23  Torvald Riegel  <triegel@redhat.com>
922         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
923         restarting without switching to serial mode.
924         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
925         transaction state. Choose closed-nesting alternative if available.
926         (GTM::gtm_thread::set_default_dispatch): New.
927         (parse_default_method): New.
928         (GTM::gtm_thread::number_of_threads_changed): New.
929         * method-serial.cc (GTM::serial_mg): New method group class.
930         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
931         fini.
932         (GTM::serial_dispatch): Same.
933         (GTM::serialirr_onwrite_dispatch): Same.
934         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
935         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
936         registered threads.
937         (GTM::gtm_thread::gtm_thread): Same.
938         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
939         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
940         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
941         choose dispatch but set state according to dispatch here.
942         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
943         (GTM::method_group): New class.
944         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
945         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
946         * libitm.texi: Document TM methods, method groups, method life cycle.
947         Rename method sets to method groups.
949 2011-08-23  Torvald Riegel  <triegel@redhat.com>
951         * config/x86/tls.h: Moved to ...
952         * config/linux/x86/tls.h: ... here.
954 2011-08-23  Torvald Riegel  <triegel@redhat.com>
956         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
957         Add X32 support.
958         * config/x86/sjlj.S: Same.
960 2011-08-19  Torvald Riegel  <triegel@redhat.com>
962         * config/linux/rwlock.h: New file.
963         * config/linux/rwlock.c: New file.
964         * configure.ac: Reenable futex support (undo SVN rev 157758).
965         * Makefile.am: Same.
966         * configure.tgt: Same.
967         * config/linux/alpha/futex_bits.h: Same.
968         * config/linux/futex.h: Same. Return number of woken processes.
969         * config/linux/futex.cc: Same.
970         (futex_wait): Remove spinning.
971         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
972         Use __x86_64__ instead of __LP64__.
973         * aclocal.m4: Include generic futex checks.
974         * configure: Rebuild.
975         * Makefile.in: Rebuild.
976         * testsuite/Makefile.in: Rebuild.
977         * beginend.cc: Include pthread.h.
978         * config/posix/cachepage.cc: Same.
980 2011-08-12  Torvald Riegel  <triegel@redhat.com>
982         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
983         (abi_disp, set_abi_disp): Move to tx's TLS slot.
984         (set_gtm_thr): New.
985         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
986         (set_gtm_thr): New.
987         (GTM::gtm_thread::thread_num): Removed.
988         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
989         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
990         tx-to-thread renaming.
991         * beginend.cc: Adapted to tx-to-thread renaming.
992         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
993         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
994         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
995         gtm_transaction to gtm_thread.
996         (_ITM_getThreadnum): Removed. Not supported anymore.
997         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
998         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
999         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1000         gtm_tx-to-gtm_thr renaming if necessary.
1001         * eh_cpp.cc: Same.
1002         * local.cc: Same.
1003         * retry.cc: Same.
1004         * clone.cc: Same.
1005         * alloc.cc: Same.
1006         * alloc_c.cc: Same.
1007         * alloc_cpp.cc: Same.
1008         * method-serial.cc: Same.
1009         * config/generic/tls.cc: Same.
1010         * config/posix/rwlock.h (gtm_rwlock): Same.
1011         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1013 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1015         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1016         implementation.
1017         (gtm_rwlock::read_unlock): Same.
1018         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1019         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1020         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1021         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1022         w_upgrade. Replaced by per-transaction flags (in shared_state).
1023         Added c_confirmed_writers.
1024         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1025         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1026         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1027         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1028         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1029         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1030         * libitm.texi: Document locking conventions and implementations in
1031         libitm.
1033 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1035         * libitm_i.h (next_tx): Add list of all threads' transaction.
1036         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1037         transaction with list of transactions and ...
1038         (thread_exit_handler): ... deregister here.
1039         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1040         * config/x86/target.h: Same.
1042 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1044         * testsuite/libitm.c++/static_ctor.C: New file.
1046 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1048         * testsuite/libitm.c/reentrant.c: New file.
1050 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1052         * config/generic/tls.h: Remove the free list for transactions and ...
1053         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1054         (GTM::gtm_transaction::operator delete): ... and release here.
1055         (thread_exit_handler): New. Delete tx when thread terminates.
1056         (thread_exit_init): New.
1057         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1058         * testsuite/libitm.c/txrelease.c: New file.
1060 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1062         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1063         * testsuite/libitm.c/notx.c: New file.
1065 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1067         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1068         * libitm_i.h (local_tid): ... to here.
1069         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1070         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1072 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1074         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1075         serialirr_onwrite_dispatch as new default for now.
1076         * method-serial.cc (serialirr_onwrite_dispatch): New.
1077         (GTM::dispatch_serialirr_onwrite): New.
1078         * libitm_i.h: Same.
1080 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1082         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1083         * query.cc (_ITM_getTransactionId): There is no active transaction if
1084         the current nesting level is zero.
1086 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1088         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1089         rollback.
1091 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1093         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1094         transaction properties from the caller instead of from the
1095         transaction object.
1096         * libitm_i.h: Same.
1097         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1099 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1101         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1102         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1103         * dispatch.h: Same.
1104         * method-serial.cc: Same.
1105         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1106         flat nesting as default, and closed nesting on demand.
1107         (GTM::gtm_transaction::rollback): Same.
1108         (_ITM_abortTransaction): Same.
1109         (GTM::gtm_transaction::restart): Same.
1110         (GTM::gtm_transaction::trycommit): Same.
1111         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1112         (choose_code_path): New.
1113         (GTM::gtm_transaction_cp::save): New.
1114         (GTM::gtm_transaction_cp::commit): New.
1115         * query.cc (_ITM_inTransaction): Support flat nesting.
1116         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1117         (GTM::gtm_transaction): Support flat and closed nesting.
1118         * alloc.cc (commit_allocations_2): New.
1119         (commit_cb_data): New helper struct.
1120         (GTM::gtm_transaction::commit_allocations): Handle nested
1121         commits/rollbacks.
1122         * libitm.texi: Update user action section, add description of nesting.
1124 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1126         * libitm_i.h: Add closed nesting as restart reason.
1127         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1129 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1131         * useraction.cc: Use vector instead of list to store actions.
1132         Also support partial rollbacks for closed nesting.
1133         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1134         * beginend.cc: Same.
1136 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1138         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1139         closed_nesting flags, as well as a closed nesting alternative.
1140         * method-serial.cc: Same.
1141         (serial_dispatch): Renamed to serialirr_dispatch.
1142         (GTM::dispatch_serialirr): Same.
1143         (serial_dispatch_ul): Renamed to serial_dispatch.
1144         (GTM::dispatch_serial): Same.
1146 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1148         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1150 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1152         * aatree.h (aa_tree::remove): New.
1153         (aa_tree::operator new): Add placement new.
1155 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1157         * containers.h: New file.
1158         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1159         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1160         * common.h: ... to here.
1161         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1162         * local.cc: Same.
1164 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1166         * libitm_i.h (STATE_ABORTING): Remove.
1167         * beginend.cc (_ITM_abortTransaction): Same.
1168         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1169         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1170         (_ITM_rollbackTransaction): Remove.
1171         * beginend.cc: Same.
1172         * libitm.map: Same.
1173         * libitm.texi: Document these ABI changes.
1175 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1177         * libitm.texi: New file.
1178         * Makefile.am: Add libitm.texi.
1179         * Makefile.in: Rebuild.
1181 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1183         * libitm_i.h: Move parts to common.h and dispatch.h.
1184         * common.h: New file.
1185         * dispatch.h: New file, new dispatch class.
1186         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1187         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1188         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1189         decision to retry.cc.
1190         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1191         only.
1192         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1193         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1194         logging.
1195         * barrier.cc: Use new barriers definitions.
1196         (abi_dispatch::memmove_overlap_check): New.
1197         * config/x86/x86_sse.cc: Same.
1198         * config/x86/x86_avx.cc: Same.
1199         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1200         memcpy.cc.
1201         * Makefile.in: Rebuild.
1202         * method-readonly.cc: Remove.
1203         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1204         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1206 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1208         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1209         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1210         * testsuite/libitm.c/dropref-2.c: Same.
1211         * testsuite/libitm.c/dropref.c: Same.
1213 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1215         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1216         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1217         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1218         * alloc_c.cc: Same.
1219         * barrier.tpl: Same.
1220         * beginend.c: Same.
1221         * config/generic/tls.h: Same.
1222         * config/x86/tls.h: Same.
1223         * libitm_i.h: Same.
1224         * memcpy.cc: Same.
1225         * memset.cc: Same.
1226         * method-readonly.cc: Same.
1227         * method-serial.cc: Same.
1228         * method-wbetl.cc: Same.
1229         * retry.cc: Same.
1231 2011-03-03  Richard Henderson  <rth@redhat.com>
1233         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1234         From Patrik Marlier <patrick.marlier@unine.ch>.
1236 2011-02-03  Richard Henderson  <rth@redhat.com>
1238         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1239         * configure.ac: Use it.
1240         * configure, config.h.in: Rebuild.
1241         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1242         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1243         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1244         * libitm.map: Use wildcards to match size_t mangling.
1246 2010-12-14  Richard Henderson  <rth@redhat.com>
1248         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1249         blocks of TIDs per thread.
1250         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1251         (setup_gtm_thr): Return the thread structure.
1252         * config/x86/tls.h (setup_gtm_thr): Likewise.
1254 2010-12-14  Richard Henderson  <rth@redhat.com>
1256         * clone.cc (table_lock): Remove.
1257         (find_clone): Don't take it.
1258         (ExcludeTransaction): New helper class.
1259         (_ITM_registerTMCloneTable): Use it.
1260         (_ITM_deregisterTMCloneTable): Likewise.
1262 2010-12-14  Richard Henderson  <rth@redhat.com>
1264         * config/x86/tls.h: New file.
1266 2010-07-15  Richard Henderson  <rth@redhat.com>
1268         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1269         * Makefile.in: Rebuild.
1271 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1273         * method-wbetl.cc (trydropreference): Fix source line.
1275 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1277         * libitm.h: Add comment.
1278         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1280 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1282         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1283         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1284         available, use pthread mutexes.
1285         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1286         * config.h.in: Regenerate.
1287         * configure: Regenerate.
1289 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1291         * libitm.h (ITM_PURE): Define.
1292         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1294 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1296         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1297         (validate): Add comment.
1298         (trydropreference): New.
1299         * method-readonly.cc (class readonly_dispatch): Add
1300         trydropreference.
1301         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1302         Call trydropreference().
1303         * libitm.h (_ITM_dropReferences): Remove const attribute.
1304         * method-serial.cc (class serial_dispatch): Add trydropreference.
1305         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1307 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1309         * memcpy.cc (do_memcpy): Comment.
1311 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1313         * barrier.tpl: Add comments throughout.
1315 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1317         * method-wbetl.cc (struct w_entry): Add comments.
1318         (trycommit): Same.
1319         (rollback): Same.
1321 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1323         * alloc_c.cc (_ITM_dropReferences): New.
1324         * libitm.map (_ITM_dropReferences): Add.
1325         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1326         * libitm_i.h (struct gtm_transaction): Declare
1327         drop_references_allocations and drop_references_local.
1328         * local.cc (rollback_local): Ignore memory when applicable.
1329         (drop_references_local): New.
1331 2010-06-23  Richard Henderson  <rth@redhat.com>
1333         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1334         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1335         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1336         * config/alpha/target.h: Likewise.
1337         * config/generic/tls.cc (gtm_mask_stack): Use it.
1339 2010-06-23  Richard Henderson  <rth@redhat.com>
1341         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1342         a mutex instead of trying a lock-free compare-and-swap on the list.
1343         (gtm_cacheline_page::operator delete): Likewise.
1345 2010-06-16  Richard Henderson  <rth@redhat.com>
1347         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1348         that overlap the libitm stack.
1349         * barrier.tpl: Mark incoming stack.
1350         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1351         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1352         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1353         * memcpy.cc, memset.cc: Likewise.
1354         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1355         * config/generic/tls.h (gtm_thread): Add stack_top member.
1356         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1357         * libitm_i.h (gtm_mask_stack): Declare.
1358         * config/generic/tls.cc: New file.
1359         * Makefile.am (libitm_la_SOURCES): Add it.
1360         (AM_CXXFLAGS): Turn off exceptions.
1361         * Makefile.in: Rebuild.
1363 2010-06-16  Richard Henderson  <rth@redhat.com>
1365         * alloc.cc (struct gtm_alloc_action): Move definition ...
1366         * libitm_i.h: ... here.
1367         (class gtm_transaction): Declare new and delete.
1368         * beginend.cc (alloc_tx): Reformulate as operator new.
1369         (free_tx): Reformulate as operator delete.
1370         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1372 2010-06-11  Richard Henderson  <rth@redhat.com>
1374         * clone.cc (clone_entry_compare): Fix typo.
1375         From Patrik Marlier <patrick.marlier@unine.ch>.
1377 2010-05-13  Richard Henderson  <rth@redhat.com>
1379         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1380         in extern "C".
1382 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1384         * libitm_i.h (struct gtm_transaction): Remove
1385         get_allocation_size.
1386         (record_allocation): Remove size parameter.
1387         * libitm.map (_ITM_realloc): Remove.
1388         * alloc_c.cc (_ITM_realloc): Remove.
1389         (_ITM_malloc): Remove size argument to record_allocation.
1390         (_ITM_calloc): Same.
1391         * alloc_cpp.cc (_ZGTtnwm): Same.
1392         (_ZGTtnwmRKSt9nothrow_t): Same.
1393         (_ZGTtnam): Same.
1394         (_ZGTtnamRKSt9nothrow_t): Same.
1395         * alloc.cc (struct gtm_alloc_action): Remove size.
1396         (get_allocation_size): Remove.
1397         (commit_allocations): Add comment.
1398         (record_allocation): Remove size parameter.
1399         (forget_allocation): Remove set of size.
1401 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1403         * Makefile.am (abi_version): New.
1404         (AM_CXXFLAGS): Pass abi_version.
1405         * Makefile.in: Regenerate.
1406         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1408 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1410         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1411         _ITM_getTMCloneOrIrrevokable.
1412         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1413         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1415 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1417         * configure.ac: Remove Linux futex support.
1418         * configure.tgt (config_path): Same.
1419         * Makefile.am: Same.
1420         * config/linux: Remove entire directory.
1421         * configure: Rebuild.
1422         * Makefile.in: Rebuild.
1423         * testsuite/Makefile.in: Rebuild.
1425 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1427         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1428         switching to serial mode.
1429         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1431 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1433         * configure.tgt: Add emacs -*- tags.
1434         * barrier.tpl: Same.
1436 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1438         * Makefile.am: Rename serial.cc to method-serial.cc.
1439         * Makefile.in: Regenerate with automake 1.11.1.
1440         * testsuite/Makefile.in: Same.
1441         * aclocal.m4: Regenerate with aclocal 1.11.1.
1442         * method-serial.cc: Rename from serial.cc.
1443         * libitm_i.h (struct gtm_transaction): Update comment on
1444         serialirr_mode.
1446 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1448         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1449         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1451 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1453         * configure: Rebuild.
1455 2009-11-12  Richard Henderson  <rth@redhat.com>
1457         * Rewrite everything in C++.
1459 2009-11-03  Richard Henderson  <rth@redhat.com>
1461         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1462         * Makefile.am (libitm_la_SOURCES): Add them.
1463         * configure.ac (ARCH_X86): New conditional.
1464         * Makefile.in, configure: Rebuild.
1465         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1466         Move futex setup into "other system configury" case.
1467         * local.c (rollback_local): Merge into ...
1468         (GTM_rollback_local): ... here.
1469         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1470         (_ITM_LB): Define as an alias to GTM_LB.
1472 2009-11-03  Richard Henderson  <rth@redhat.com>
1474         * method-readonly.c: New file.
1475         * Makefile.am (libitm_la_SOURCES): Add it.
1476         * Makefile.in: Rebuild.
1477         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1478         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1479         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1480         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1481         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1482         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1483         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1484         gtm_get_clock, gtm_inc_clock): New.
1485         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1486         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1487         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1488         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1489         replace uses with new libitm_i.h symbols.
1490         (dispatch_wbetl): Rename from wbetl_dispatch.
1491         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1492         away from dispatch_readonly; abort if the beginTransaction call
1493         asserted that the transaction was readonly.
1495 2009-11-03  Richard Henderson  <rth@redhat.com>
1497         * memset.c: New file.
1498         * Makefile.am (libitm_la_SOURCES): Add it.
1499         * Makefile.in: Rebuild.
1500         * testsuite/libitm.c/memset-1.c: New.
1502 2009-11-03  Richard Henderson  <rth@redhat.com>
1504         * dispatch.c: Remove file.
1505         * useraction.c (struct gtm_user_action): Move from libitm.h.
1506         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1507         (serial_memset, serial_memmove, serial_memcpy): Remove.
1508         (serial_W*, serial_R*): Remove.
1509         (serial_dispatch): Update to match.
1510         * configure.ac: Move Werror down below configure checks.  Don't
1511         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1512         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1513         Use GCC_AC_FUNC_MMAP_BLACKLIST
1514         * libitm.h: Split out all internal items to...
1515         * libitm_i.h: ... here.  New file.
1516         * copymask.c: New file.
1517         * local.c (struct gtm_local_undo): Move from libitm.h.
1518         (GTM_alloc_local): Rename from alloc_local; export.
1519         * memcpy.c: New file.
1520         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1521         * config/posix/page.c: New file.
1522         * config/posix/target_tls.h: Remove file.
1523         * barrier.c: New file.
1524         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1525         copymask.c, page.c.
1526         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1527         * method-wbetl.c: Rewrite for new cacheline methods.
1528         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1530         * config/alpha/sjlj.S: Fix typo.
1531         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1532         * config/alpha/copymask.c: New file.
1533         * config/alpha/target.h (CACHELINE_SIZE): New.
1534         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1536         * config/x86/target_i.h: Copy functions from x86/target.h.
1537         * config/x86/copymask.c: New file.
1538         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1539         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1540         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1541         * config/x86/target_tls.h: Move contents to target_i.h.
1543         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1544         * testsuite/libitm.c/memcpy-1.c: New.
1546 2009-10-22  Richard Henderson  <rth@redhat.com>
1548         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1549         (AM_CCASFLAGS): New.
1550         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1551         saving/restoring _AC_ARG_VAR_PRECIOUS.
1552         * Makefile.in, aclocal.m4, config.h.in, configure,
1553         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1555 2009-10-22  Richard Henderson  <rth@redhat.com>
1557         * testsuite/*: Update for new compiler syntax.
1559 2009-10-21  Richard Henderson  <rth@redhat.com>
1561         * libitm.h (_ITM_abortReason): Add outerAbort.
1563 2009-08-03  Richard Henderson  <rth@redhat.com>
1565         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1566         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1567         * method-wbetl.c (struct w_entry): Remove mask.
1568         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1569         adjust all callers.
1571 2009-07-22  Richard Henderson  <rth@redhat.com>
1573         * eh_cpp.c: New file.
1574         * Makefile.am (libitm_la_SOURCES): Add it.
1575         * Makefile.in: Rebuild.
1576         * beginend.c (GTM_rollback_transaction): Undo exception state.
1577         (GTM_trycommit_transaction): Mark inline.
1578         (GTM_trycommit_and_finalize_transaction): Split out from ...
1579         (_ITM_commitTransaction): ... here.
1580         (_ITM_commitTransactionEH): New function.
1581         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1582         cxa_unthrown, eh_in_flight; reorder.
1584         * testsuite/libitm.c++/c++.exp: New.
1585         * testsuite/libitm.c++/eh-1.C: New.
1587         * aatree.c (aa_free): Remove REGPARM.
1588         * aatree.h: Remove all REGPARM.
1590 2009-07-18  Richard Henderson  <rth@redhat.com>
1592         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1593         * Makefile.am (libitm_la_SOURCES): Add them.
1594         * Makefile.in: Rebuild.
1595         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1596         (GTM_trycommit_transaction): Likewise.
1597         * libitm.h: Include aatree.h
1598         (struct gtm_alloc_action): New.
1599         (struct gtm_transaction): Add alloc_actions.
1600         (GTM_record_allocation, GTM_forget_allocation): Declare.
1601         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1602         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1603         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1604         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1605         _ZGTtdaPvRKSt9nothrow_t): Export.
1607 2009-07-18  Richard Henderson  <rth@redhat.com>
1609         * target_tls.h: Move ...
1610         * config/posix/target_tls.h: ... here.
1612 2009-07-07  Richard Henderson  <rth@redhat.com>
1614         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1616 2009-07-07  Richard Henderson  <rth@redhat.com>
1618         * Update to GPL3.
1620 2009-07-07  Richard Henderson  <rth@redhat.com>
1622         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1623         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1625         * configure.tgt: Don't use -ftls-model for x86 linux.
1626         * libitm.h: Include target.h after standard includes.
1627         (_gtm_thr): Rename from gtm_thr.
1628         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1629         (gtm_disp, set_gtm_disp): New.
1630         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1631         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1632         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1634 2009-07-07  Richard Henderson  <rth@redhat.com>
1636         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1638 2009-07-06  Richard Henderson  <rth@redhat.com>
1640         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1641         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1642         (_ITM_beginTransaction): Take variadic arguments.
1643         (_ITM_registerThrownObject): Declare.
1644         * beginend.c, serial.c: Update.
1645         * libitm.map: Add _ITM_registerThrownObject.
1647 2009-01-28  Richard Henderson  <rth@redhat.com>
1649         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1650         * Makefile.in: Rebuild.
1651         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1652         (GTM_restart_transaction): Fix uninstrumented code check.
1653         * retry.c (GTM_decide_retry_strategy): Add serial check.
1654         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1655         automatically go irrevokable when in serial mode.
1656         * clone.c: New file.
1657         * libitm.h, libitm.map: Update.
1659 2009-01-27  Richard Henderson  <rth@redhat.com>
1661         * Makefile.am (LTCCASCOMPILE): Define.
1662         (libitm_la_SOURCES): Add methid-wbetl.c.
1663         * testsuite/Makefile.am: New
1664         * configure.ac: Add testsuite/Makefile.
1665         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1666         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1667         (_ITM_abortTransaction): Finalize implementation method; pass
1668         transaction properties to longjmp.
1669         (GTM_restart_transaction): Split out from ...
1670         (_ITM_commitTransaction): ... here.
1671         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1672         Move to config/x86/target.h.
1673         * config/linux/alpha/futex_bits.h: New.
1674         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1675         * config/x86/target.h: Disable target types for 32-bit.
1676         * config/alpha/sjlj.S, config/alpha/target.h: New.
1677         * libitm.h (struct gtm_dispatch): Add init, fini.
1678         (enum restart_reason): New.
1679         (struct gtm_transaction): Add method and restarts.
1680         * retry.c (GTM_decide_retry_strategy): Implement.
1681         * serial.c (serial_init, serial_fini): New.
1682         (GTM_serialmode): Finialize outgoing method.
1683         * method-wbetl.c: New.
1685 2008-12-09  Richard Henderson  <rth@redhat.com>
1687         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1688         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1689         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1690         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1691         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1692         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1693         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1694         * serial.c (serial_R##T, serial_W##T): Likewise.
1696 2008-11-21  Richard Henderson  <rth@redhat.com>
1698         * Initial commit.