gcc/testsuite/:
[official-gcc.git] / libitm / ChangeLog
blobfc2db9c9c75c609617be5b7af9c999a6488d810c
1 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
3         * configure.tgt (x86_64): Tune -m32 multilib to generic.
5 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7         PR bootstrap/63784
8         * configure: Regenerated.
10 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12         PR target/63610
13         * configure: Regenerate.
15 2014-10-06  Marek Polacek  <polacek@redhat.com>
17         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
18         * testsuite/libitm.c/memset-1.c: Likewise.
20 2014-07-24  Richard Henderson  <rth@redhat.com>
22         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
23         addressing mode in epilogue.
25 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
28         -mclear-hwcap instead.
29         * configure: Regenerate.
30         * clearcap.map: Remove.
32 2014-05-21  John Marino  <gnugcc@marino.st>
34         * configure.tgt (*-*-dragonfly*): New target.
36 2014-05-19  Richard Henderson  <rth@redhat.com>
38         * config/aarch64/sjlj.S: New file.
39         * config/aarch64/target.h: New file.
40         * configure.tgt: Enable aarch64.
42 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44         * config/generic/asmcfi.h: Also check for
45         __GCC_HAVE_DWARF2_CFI_ASM.
47 2013-04-02  Richard Henderson  <rth@redhat.com>
49         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
50         * config/arm/target.h, config/sh/target.h: Likewise.
51         * config/sparc/target.h, config/x86/target.h: Likewise.
53 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
55         * config/linux/futex_bits.h: Include errno.h.
56         (sys_futex0): If syscall returns -1, return -errno rather than
57         -1.
59 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
61         * libitm.texi (Index): Rename to Library Index.
63 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
65         PR libitm/53113
66         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
67         (x86_avx.lo): Append -mavx to CXXFLAGS.
68         * Makefile.in: Regenerate.
70 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
72         Update copyright years
74 2014-01-02  Tobias Burnus  <burnus@net-b.de>
76         * libitm.texi: Bump @copying's copyright year.
78 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
80         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
81         (FUNC): Define ELFv2 variant.
82         (END): Likewise.
83         (HIDDEN): Likewise.
84         (CALL): Likewise.
85         (BASE): Likewise.
86         (LR_SAVE): Likewise.
88 2013-09-20  Alan Modra  <amodra@gmail.com>
90         * configure: Regenerate.
92 2013-08-30  Torvald Riegel  <triegel@redhat.com>
94         * config/posix/rwlock.cc: Fix initialization order.
96 2013-08-30  Torvald Riegel  <triegel@redhat.com>
98         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
99         (htm_fastpath): Assign an asm name.
100         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
101         HTM fast paths.
102         (_ITM_actions): Likewise.
103         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
104         x86_64.
105         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
106         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
107         field to the start of the structure.
108         * config/linux/rwlock.h (gtm_rwlock): Update comments.
109         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
110         handling for custom HTM fast paths.
112 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
113         Revert:
114         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
116         * configure.tgt: Add -msoft-float to XCFLAGS.
118 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
120         * configure.tgt: Add -msoft-float to XCFLAGS.
122 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
124         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
125         (htm_transaction_active): Enable zEC12 instructions in the
126         assembler.
127         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
129 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
131         * acinclude.m4: Add htm asm check for s390.
132         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
133         * configure: Regenerate.
134         * config/s390/target.h: Remove __HTM__ check.
135         (htm_available): Call getauxval to get hwcaps and check whether
136         HTM is available or not.
138 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
140         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
141         * configure.ac: Use it.
142         (AC_CHECK_HEADERS): Check for sys/auxv.h.
143         (AC_CHECK_FUNCS): Check for getauxval.
144         * config.h.in, configure: Rebuild.
145         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
146         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
147         (USE_HTM_FASTPATH): Define.
148         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
149         _HTM_RETRIES) New macros.
150         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
151         htm_begin_success, htm_commit, htm_transaction_active): New functions.
153 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
155         * config/s390/target.h: Include htmintrin.h.
156         (_HTM_ITM_RETRIES): New macro definition.
157         (htm_available, htm_init, htm_begin, htm_begin_success)
158         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
160 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
161             Cesar Philippidis  <cesar@codesourcery.com>
163         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
164         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
165         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
166         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
168 2013-06-20  Torvald Riegel  <triegel@redhat.com>
170         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
171         (_ITM_getTransactionId): Same.
172         * config/x86/target.h (htm_transaction_active): New.
174 2013-06-20  Torvald Riegel  <triegel@redhat.com>
176         PR libitm/57643
177         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
178         the HTM fastpath.
180 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
182         PR bootstrap/56714
183         * local_atomic (__always_inline): Always define our version.
184         (__calculate_memory_order): Mark inline.
185         (atomic_thread_fence): Ditto.
186         (atomic_signal_fence): Ditto.
187         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
188         (atomic_bool::atomic_flag_clear_explicit): Ditto.
189         (atomic_bool::atomic_flag_test_and_set): Ditto.
190         (atomic_bool::atomic_flag_clear): Ditto.
192 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
194         * config/s390/sjlj.S: New file.
195         * config/s390/target.h: New file.
196         * configure.tgt: Set options for S/390.
198 2013-03-23  Andi Kleen  <ak@linux.intel.com>
200         * local_atomic (__always_inline): Add.
201         (__calculate_memory_order, atomic_thread_fence,
202          atomic_signal_fence, test_and_set, clear, store, load,
203          exchange, compare_exchange_weak, compare_exchange_strong,
204          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
205         Add __always_inline to force inlining.
207 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
208             Jack Howarth  <howarth@bromo.med.uc.edu>
209             Patrick Marlier  <patrick.marlier@gmail.com>
211         PR libitm/55693
212         * alloc_cpp.cc: Enable function declarations on darwin.
213         * eh_cpp.cc: Likewise.
215 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
217         Update copyright years.
219 2012-11-09  Torvald Riegel  <triegel@redhat.com>
221         * beginend.cc (htm_fastpath): New.
222         (gtm_thread::begin_transaction, _ITM_commitTransaction,
223         _ITM_commitTransactionEH): Add HTM fastpath handling.
224         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
225         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
226         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
227         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
228         * configure.tgt: Add -mrtm to XCFLAGS.
229         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
230         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
231         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
232         * retry.cc (parse_default_method): Add HTM method parsing.
233         (gtm_thread::number_of_threads_changed): Use HTM by default if
234         available.
236 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
238         * configure: Regenerate.
240 2012-10-31  Richard Henderson  <rth@redhat.com>
242         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
243         * configure.ac: Use it.
244         * config.h.in, configure: Rebuild.
245         * testsuite/Makefile.in: Rebuild.
247 2012-10-24  Torvald Riegel  <triegel@redhat.com>
249         * libitm.texi: Clarify ABI requirements for data-logging functions.
251 2012-10-24  Torvald Riegel  <triegel@redhat.com>
253         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
254         it requires serial mode instead of assuming that for certain
255         dispatchs.
256         * dispatch.h (abi_dispatch::requires_serial): New.
257         (abi_dispatch::abi_dispatch): Adapt.
258         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
259         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
260         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
261         serial_dispatch::serial_dispatch,
262         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
264 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
266         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
267         and ia32 declarations some more.
268         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
270 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
272         PR other/43620
273         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
274         * configure: Regenerate.
275         * Makefile.in: Regenerate.
277 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
279         * configure: Regenerated.
281 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
283         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
285 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
287         * eh_cpp.cc: Fix __cxa_end_catch declaration.
289 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
291         * configure: Regenerated.
293 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
295         PR libitm/52854
296         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
297         for x86-64.
299 2012-04-03  Tristan Gingold  <gingold@adacore.com>
301         * configure: Regenerate.
303 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
305         PR bootstrap/52812
306         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
308 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
310         * testsuite/lib/libitm.exp: load fortran-modules.exp
312 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
314         * configure.tgt (*-*-irix6*): Remove.
316 2012-03-13  Torvald Riegel  <triegel@redhat.com>
318         PR libitm/52526
319         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
320         wake-up.
322 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
324         * configure.tgt (*-*-osf*): Remove.
325         * configure: Regenerate.
327 2012-03-05  Torvald Riegel  <triegel@redhat.com>
329         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
330         memtransfer/memset if size isn't larger than zero.
332 2012-03-02  Torvald Riegel  <triegel@redhat.com>
334         * libitm.texi: Link to specification and add a usage example.
336 2012-02-24  Torvald Riegel  <triegel@redhat.com>
338         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
339         default dispatch for more than 1 thread to ml_wt.
341 2012-02-20  Torvald Riegel  <triegel@redhat.com>
343         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
345 2012-02-20  Torvald Riegel  <triegel@redhat.com>
347         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
349 2012-02-20  Torvald Riegel  <triegel@redhat.com>
351         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
352         serial mode corner cases made obsolete by prior gtm_rwlock changes.
353         (gl_wt_dispatch.rollback): Same.
355 2012-02-20  Torvald Riegel  <triegel@redhat.com>
357         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
359 2012-02-20  Torvald Riegel  <triegel@redhat.com>
361         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
362         for RfW src.  Optimize number of calls to gtm_thr.
364 2012-02-20  Torvald Riegel  <triegel@redhat.com>
366         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
367         acquisition to ...
368         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
369         (default_dispatch): Make atomic.
370         (GTM::gtm_thread::set_default_dispatch): Access atomically.
371         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
372         use decide_begin_dispatch() if default_dispatch might have changed.
373         (GTM::gtm_thread::number_of_threads_changed): Initialize
374         default_dispatch here.
376 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
377             Patrick Marlier  <patrick.marlier@gmail.com>
379         PR libitm/52220
380         * alloc_cpp.cc: No dummy definitions for darwin.
381         * eh_cpp.cc: Likewise.
383 2012-02-14  Richard Henderson  <rth@redhat.com>
385         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
387 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
389         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
391 2012-02-14  Torvald Riegel  <triegel@redhat.com>
393         * libitm_i.h (GTM::gtm_rwlog_entry): New.
394         (GTM::gtm_thread): Add read and write logs.
395         (GTM::dispatch_ml_wt): Declare.
396         * retry.cc (parse_default_method): Support ml_wt.
397         * method-ml.cc: New file.
398         * Makefile.am: Add method-ml.cc.
399         * Makefile.in: Regenerate.
401 2012-02-14  Torvald Riegel  <triegel@redhat.com>
403         * dispatch.h (GTM::abi_dispatch::supports): New.
404         (GTM::method_group::reinit): New.
405         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
406         (GTM::gtm_thread::number_of_threads_changed): Check that the method
407         supports the current situation.
409 2012-02-14  Torvald Riegel  <triegel@redhat.com>
411         * util.cc (GTM::xcalloc): New.
412         * common.h (GTM::xcalloc): Declare.
414 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
416         * config/sparc/target.h (cpu_relax): Read from CC register.
417         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
419 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
421         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
423 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
425         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
426         * config/sparc/cacheline.h: New file.
427         * config/sparc/target.h: Likewise.
428         * config/sparc/sjlj.S: Likewise.
429         * config/linux/sparc/futex_bits.h: Likewise.
431 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
433         * configure.ac (link_itm): Fix comment.
434         * configure: Regenerate.
435         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
437 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
439         PR libitm/51822
440         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
441         Correct libgomp references.
443 2012-01-24  Torvald Riegel  <triegel@redhat.com>
445         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
446         wake-up.
448 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
450         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
451         end of structure.
452         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
453         offset values.  Do not copy return address.  Decrement stack
454         by 56 bytes only.
455         (GTM_longjump) [__x86_64__]: Update offset values.
457 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
459         PR libitm/51830
460         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
461         the first function argument to %eax.
463 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
465         * libitm.h (_ITM_getThreadnum): Remove.
466         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
468 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
470         * clearcap.map: New file.
471         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
472         * configure.ac: Call it.
473         Clear HWCAP_LDFLAGS if defaulting to -mavx.
474         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
475         * configure: Regenerate.
476         * Makefile.in: Regenerate.
477         * testsuite/Makefile.in: Regenerate.
479 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
481         PR libitm/51173
482         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
483         include, exclude options.
485 2012-01-14  Torvald Riegel  <triegel@redhat.com>
487         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
488         rolling back.
489         * containers.h (GTM::vector::set_size): New.
491 2012-01-14  Torvald Riegel  <triegel@redhat.com>
493         PR libitm/51855
494         * config/generic/tls.h (GTM::mask_stack_top): New.
495         (GTM::mask_stack_bottom): Declare.
496         * config/generic/tls.c (GTM::mask_stack_bottom): New.
497         * local.cc (gtm_undolog::rollback): Filter out any updates that
498         overlap the libitm stack.  Add current transaction as parameter.
499         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
500         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
501         * testsuite/libitm.c/stackundo.c: New test.
503 2012-01-10  Richard Henderson  <rth@redhat.com>
505         * libitm_i.h (_Unwind_DeleteException): Declare weak.
506         * eh_cpp.cc (_Unwind_DeleteException): Define for
507         !HAVE_ELF_STYLE_WEAKREF.
509 2012-01-08  Torvald Riegel  <triegel@redhat.com>
511         * local.cc (GTM_LB): Use GTM::gtm_undolog.
512         (GTM::gtm_thread::drop_references_undolog): Remove.
513         (GTM::gtm_thread::commit_undolog,
514         GTM::gtm_thread::rollback_undolog): Move to ...
515         * libitm_i.h (GTM::gtm_undolog): ...here. New.
516         (GTM::gtm_undolog_entry): Remove.
517         (GTM::gtm_thread): Adapt.
518         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
519         (GTM::gtm_thread::trycommit): Adapt.
520         * method-serial.cc (serial_dispatch::log): Adapt.
521         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
522         (gl_wt_dispatch::store): Fix likely/unlikely.
523         * containers.h (GTM::vector::resize): Add additional_capacity
524         parameter and handle it.
525         (GTM::vector::resize_noinline): New/adapt.
526         (GTM::vector::push): New.
528 2012-01-06  Richard Henderson  <rth@redhat.com>
530         * configure.tgt: Support powerpc-linux and powerpc-darwin.
531         * config/linux/powerpc/futex_bits.h: New file.
532         * config/powerpc/cacheline.h: New file.
533         * config/powerpc/sjlj.S: New file.
534         * config/powerpc/target.h: New file.
535         * config/generic/asmcfi.h (cfi_offset): New.
536         (cfi_restore, cfi_undefined): New.
538 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
540         PR other/51171
541         * testsuite/libitm.c/reentrant.c: Remove xfail.
542         (thread): Pass x to pure().
543         From Patrik Marlier <patrick.marlier@gmail.com>.
545 2011-12-24  Torvald Riegel  <triegel@redhat.com>
547         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
548         privatization safety if already in serial mode.
550 2011-12-24  Torvald Riegel  <triegel@redhat.com>
552         * beginend.cc (GTM::gtm_thread::restart): Add and handle
553         finish_serial_upgrade parameter.
554         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
555         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
556         Don't unset reader flag.
557         (GTM::gtm_rwlock::write_upgrade_finish): New.
558         * config/posix/rwlock.cc: Same.
559         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
560         Declare.
561         * config/posix/rwlock.h: Same.
562         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
563         flag after commit or after rollback when restarting.
565 2011-12-24  Torvald Riegel  <triegel@redhat.com>
567         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
568         (GTM::gtm_thread::try_commit): Changed memory order.
569         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
570         as parameter.
571         * config/linux/x86/futex_bits.h (sys_futex0): Same.
572         * config/linux/sh/futex_bits.h (sys_futex0): Same.
573         * config/linux/futex_bits.h (sys_futex0): Same.
574         * config/linux/futex.cc (futex_wait, futex_wake): Same.
575         * config/linux/futex.h (futex_wait, futex_wake): Same.
576         * config/linux/rwlock.h (gtm_rwlock::writers,
577         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
578         ints.
579         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
580         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
581         gtm_rwlock::write_unlock): Fix memory orders and fences.
582         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
583         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
584         gtm_rwlock::write_unlock): Same.
585         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
586         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
587         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
588         Add comments.
589         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
590         gl_wt_dispatch::load, gl_wt_dispatch::store,
591         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
592         orders and fences.  Add comments.
594 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
596         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
597         * Makefile.in: Regenerated.
599 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
601         * configure.tgt: Add sh* case.
602         * config/sh/target.h: New file.
603         * config/sh/sjlj.S: New file.
604         * config/linux/sh/futex_bits.h: New file.
606 2011-12-14  Richard Henderson  <rth@redhat.com>
608         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
609         * config/arm/sjlj.S, config/arm/target.h: New files.
610         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
611         (cfi_rel_offset): New.
612         * config/linux/futex_bits.h: New file.
613         * config/linux/futex.cc: Include futex_bits.h here...
614         * config/linux/futex.h: ... not here.
615         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
616         * configure.ac (ARCH_AM): New conditional.
617         * Makefile.in, configure: Rebuild.
618         * configure.tgt: Handle ARM.
620 2011-12-13  Richard Henderson  <rth@redhat.com>
622         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
623         signed/unsigned comparison werror.
625         * local_atomic: New file.
626         * libitm_i.h: Include it.
627         (gtm_thread::shared_state): Use atomic template.
628         * beginend.cc (GTM::gtm_clock): Use atomic template.
629         (global_tid): Use atomic template if 64-bit atomics available.
630         (gtm_thread::gtm_thread): Update shared_state access.
631         (gtm_thread::trycommit): Likewise.
632         (choose_code_path): Update global_tid access.
633         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
634         * stmlock.h (GTM::gtm_clock): Use atomic template.
635         (gtm_get_clock, gtm_inc_clock): Update accesses.
636         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
637         redundant __sync_synchronize after atomic shared_state access.
638         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
639         (gtm_rwlock::write_lock_generic): Likewise.
640         (gtm_rwlock::read_unlock): Likewise.
641         * config/alpha/target.h (atomic_read_barrier): Remove.
642         (atomic_write_barrier): Remove.
643         * config/x86/target.h (atomic_read_barrier): Remove.
644         (atomic_write_barrier): Remove.
646 2011-11-30  Richard Henderson  <rth@redhat.com>
648         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
649         * beginend.c (_ITM_abortTransaction): Update to match.
650         (GTM::gtm_thread::restart): Likewise.
651         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
652         * config/x86/sjlj.S (GTM_longjmp): Likewise.
654 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
656         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
657         * Makefile.in: Regenerate.
659 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
661         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
662         * alloc_cpp.cc: Generate dummy functions if we don't
663         HAVE_ELF_STYLE_WEAKREF.
664         * eh_cpp.cc: Likewise.
665         * configure: Regenerate.
666         * aclocal.m4:  Likewise.
667         * config.h.in: Likewise.
668         * Makefile.in: Likewise.
669         * testsuite/Makefile.in: Likewise.
671 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
673         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
674         __USER_LABEL_PREFIX__ for targets that use it.
675         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
676         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
677         in portability to non-elf targets.
678         (GTM_longjmp): Likewise.
679         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
680         where required.
682 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
684         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
685         * testsuite/libitm.c/memset-1.c: Likewise.
687 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
689         * configure: Regenerate.
691 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
693         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
694         (LIBITM_ENABLE_SYMVERS): Handle sun style.
695         * Makefile.am: Handle sun style versioning.
696         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
697         * configure: Regenerate.
698         * Makefile.in: Regenerate.
700 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
702         * config/generic/asmcfi.h: Fix comment.
703         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
704         sequence without .hidden support, error for non-ELF targets.
705         (GTM_longjmp) [__ELF__]: Only use .hidden if
706         HAVE_ATTRIBUTE_VISIBILITY.
708 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
710         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
711         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
712         Dummy functions.
713         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
714         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
716 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
718         PR bootstrap/51098
719         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
720         * configure: Regenerate.
722 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
724         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
726 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
728         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
729         .hidden.
730         (.note.GNU-stack): Only use if __linux__.
731         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
732         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
733         * testsuite/libitm.c/reentrant.c: Likewise.
734         * testsuite/libitm.c/simple-2.c: Likewise.
735         * testsuite/libitm.c/txrelease.c: Likewise.
736         * testsuite/libitm.c++/static_ctor.C: Likewise.
738 2011-11-10  Richard Henderson  <rth@redhat.com>
740         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
741         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
742         * configure.ac (ARCH_X86_AVX): New conditional.
743         * Makefile.in, configure: Rebuild.
745 2011-11-09  Richard Henderson  <rth@redhat.com>
747         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
748         * configure.ac: Use it.
749         * config.h.in, configure: Rebuild.
750         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
752 2011-11-09  Richard Henderson  <rth@redhat.com>
754         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
755         * config/alpha/unaligned.h: Remove file.
756         * config/generic/unaligned.h: Remove file.
757         * config/x86/unaligned.h: Remove file.
758         * config/generic/cachepage.h: Remove file.
759         * config/posix/cachepage.cc: Remove file.
760         * config/generic/cacheline.cc: Remove file.
761         * config/x86/cacheline.cc: Remove file.
762         * config/generic/cacheline.h (gtm_cacheline): Remove the
763         store_mask, copy_mask, copy_mask_wb methods.
764         * config/x86/cacheline.h: Likewise.
765         * config/alpha/cacheline.h: Fall back to generic after setting size.
766         * config/generic/tls.cc (gtm_mask_stack): Remove.
767         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
768         (GTM_vpalignr_table): Remove.
769         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
770         (GTM_pshift_table): Remove.
771         * config/libitm_i.h: Don't include cachepage.h.
772         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
773         * Makefile.in, testsuite/Makefile.in: Rebuild.
775 2011-11-09  Richard Henderson  <rth@redhat.com>
777         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
778         to emit branch prediction hint.
780         * config/x86/sjlj.S: Protect elf directives with __ELF__.
781         Protect .note.GNU-stack with __linux__.
783         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
784         * configure, aclocal.m4, config.h.in: Rebuild.
785         * config/generic/asmcfi.h: New file.
786         * config/x86/sjlj.S: Use it.
788 2011-11-08  Richard Henderson  <rth@redhat.com>
790         * local.cc (_ITM_LB): Use a normal call, not a function alias.
792 2011-11-08  Richard Henderson  <rth@redhat.com>
794         * configure.tgt: Test correct directory for supported cpus.
796         * configure.ac: Exit if unsupported.
797         * configure: Rebuild.
798         * configure.tgt: Delete boilerplate from libgomp for unsupported
799         targets.  Set UNSUPPORTED for unsupported targets.
801 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
803         * configure.tgt: Handle i386 like i[456]86.
804         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
805         take address.
806         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
807         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
809 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
811         * method-wbetl.cc: Update copyright notice.
812         * aatree.cc: Same.
813         * util.cc: Same.
814         * libitm.h: Same.
815         * memset.cc: Same.
816         * eh_cpp.cc: Same.
817         * barrier.tpl: Same.
818         * useraction.cc: Same.
819         * stmlock.h: Same.
820         * memcpy.cc: Same.
821         * common.h: Same.
822         * config/generic/tls.cc: Same.
823         * config/generic/cacheline.h: Same.
824         * config/generic/cachepage.h: Same.
825         * config/generic/cacheline.cc: Same.
826         * config/generic/unaligned.h: Same.
827         * config/x86/cacheline.h: Same.
828         * config/x86/cacheline.cc: Same.
829         * config/x86/unaligned.h: Same.
830         * config/alpha/cacheline.h: Same.
831         * config/alpha/unaligned.h: Same.
832         * config/alpha/sjlj.S: Same.
833         * config/posix/cachepage.cc: Same.
834         * config/linux/futex.h: Same.
835         * config/linux/alpha/futex_bits.h: Same.
837 2011-11-04  Torvald Riegel  <triegel@redhat.com>
839         * libitm.texi: No cover text and invariant sections.
841 2011-11-03  Richard Henderson  <rth@redhat.com>
843         * local_type_traits: New file.
844         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
846 2011-11-03  Richard Henderson  <rth@redhat.com>
848         * configure.ac: Don't test for gfortran.
849         * configure: Rebuild.
851         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
852         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
854 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
856         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
857         * testsuite/libitm.c/memset-1.c: Same.
858         * testsuite/libitm.c/c.exp: Same.
859         * testsuite/lib/libitm-dg.exp: Same.
860         * testsuite/lib/libitm.exp: Same.
861         * testsuite/libitm.c++/c++.exp: Same.
863 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
865         * testsuite/config/default.exp: Update copyright date.
866         * configure.ac: Add copyright info.
867         * configure.tgt: Same.
869 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
871         * testsuite/libitm.c/reentrant.c: XFAIL.
872         * testsuite/libitm.c++/static_ctor.C: XFAIL.
874 2011-10-29  Torvald Riegel  <triegel@redhat.com>
876         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
877         handle aborts.
878         (_ITM_abortTransaction): Handle aborts of outer transactions.
879         * libitm_i.h: Same.
880         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
881         * libitm.texi: Document aborts of outer transactions.
882         * testsuite/libitm.c/cancel.c: New file.
884 2011-10-19  Torvald Riegel  <triegel@redhat.com>
886         * testsuite/*: Change __transaction to __transaction_atomic or
887         __transaction_relaxed.
889 2011-10-19  Torvald Riegel  <triegel@redhat.com>
891         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
892         (gtm_thr): Same.
894 2011-10-19  Torvald Riegel  <triegel@redhat.com>
896         * libitm_i.h: Add gl_wt dispatch.
897         * retry.cc (parse_default_method): Same.
898         * method-gl.cc: New file.
899         * Makefile.am: Use method-gl.cc.
900         * Makefile.in: Rebuild.
902 2011-10-19  Torvald Riegel  <triegel@redhat.com>
904         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
905         safety if requested by a TM method.
906         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
907         privatization safety.
908         * method-serial.cc: Same.
910 2011-10-19  Torvald Riegel  <triegel@redhat.com>
912         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
913         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
914         undolog-related member functions from *_local to *_undolog.
915         * local.cc (gtm_thread::commit_undolog): Same.
916         * beginend.cc (GTM::gtm_thread::trycommit): Same.
917         (GTM::gtm_thread::rollback): Roll back undolog before
918         dispatch-specific rollback.
920 2011-10-19  Torvald Riegel  <triegel@redhat.com>
922         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
923         re-initialization of the current method group.
924         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
926 2011-10-19  Torvald Riegel  <triegel@redhat.com>
928         * alloc.cc (commit_allocations_2): Do not free transaction-local
929         memory when committing a nested transaction.
931 2011-10-19  Torvald Riegel  <triegel@redhat.com>
933         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
934         serial-irrevocable dispatch, not serial.
936 2011-10-19  Torvald Riegel  <triegel@redhat.com>
938         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
939         declarations.
940         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
941         * method-serial.cc: Implement begin_or_restart().
942         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
943         dispatch-specific begin_or_restart().
944         (GTM::gtm_thread::restart): Same.
946 2011-08-23  Torvald Riegel  <triegel@redhat.com>
948         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
949         restarting without switching to serial mode.
950         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
951         transaction state. Choose closed-nesting alternative if available.
952         (GTM::gtm_thread::set_default_dispatch): New.
953         (parse_default_method): New.
954         (GTM::gtm_thread::number_of_threads_changed): New.
955         * method-serial.cc (GTM::serial_mg): New method group class.
956         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
957         fini.
958         (GTM::serial_dispatch): Same.
959         (GTM::serialirr_onwrite_dispatch): Same.
960         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
961         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
962         registered threads.
963         (GTM::gtm_thread::gtm_thread): Same.
964         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
965         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
966         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
967         choose dispatch but set state according to dispatch here.
968         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
969         (GTM::method_group): New class.
970         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
971         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
972         * libitm.texi: Document TM methods, method groups, method life cycle.
973         Rename method sets to method groups.
975 2011-08-23  Torvald Riegel  <triegel@redhat.com>
977         * config/x86/tls.h: Moved to ...
978         * config/linux/x86/tls.h: ... here.
980 2011-08-23  Torvald Riegel  <triegel@redhat.com>
982         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
983         Add X32 support.
984         * config/x86/sjlj.S: Same.
986 2011-08-19  Torvald Riegel  <triegel@redhat.com>
988         * config/linux/rwlock.h: New file.
989         * config/linux/rwlock.c: New file.
990         * configure.ac: Reenable futex support (undo SVN rev 157758).
991         * Makefile.am: Same.
992         * configure.tgt: Same.
993         * config/linux/alpha/futex_bits.h: Same.
994         * config/linux/futex.h: Same. Return number of woken processes.
995         * config/linux/futex.cc: Same.
996         (futex_wait): Remove spinning.
997         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
998         Use __x86_64__ instead of __LP64__.
999         * aclocal.m4: Include generic futex checks.
1000         * configure: Rebuild.
1001         * Makefile.in: Rebuild.
1002         * testsuite/Makefile.in: Rebuild.
1003         * beginend.cc: Include pthread.h.
1004         * config/posix/cachepage.cc: Same.
1006 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1008         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1009         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1010         (set_gtm_thr): New.
1011         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1012         (set_gtm_thr): New.
1013         (GTM::gtm_thread::thread_num): Removed.
1014         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1015         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1016         tx-to-thread renaming.
1017         * beginend.cc: Adapted to tx-to-thread renaming.
1018         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1019         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1020         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1021         gtm_transaction to gtm_thread.
1022         (_ITM_getThreadnum): Removed. Not supported anymore.
1023         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1024         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1025         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1026         gtm_tx-to-gtm_thr renaming if necessary.
1027         * eh_cpp.cc: Same.
1028         * local.cc: Same.
1029         * retry.cc: Same.
1030         * clone.cc: Same.
1031         * alloc.cc: Same.
1032         * alloc_c.cc: Same.
1033         * alloc_cpp.cc: Same.
1034         * method-serial.cc: Same.
1035         * config/generic/tls.cc: Same.
1036         * config/posix/rwlock.h (gtm_rwlock): Same.
1037         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1039 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1041         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1042         implementation.
1043         (gtm_rwlock::read_unlock): Same.
1044         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1045         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1046         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1047         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1048         w_upgrade. Replaced by per-transaction flags (in shared_state).
1049         Added c_confirmed_writers.
1050         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1051         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1052         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1053         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1054         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1055         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1056         * libitm.texi: Document locking conventions and implementations in
1057         libitm.
1059 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1061         * libitm_i.h (next_tx): Add list of all threads' transaction.
1062         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1063         transaction with list of transactions and ...
1064         (thread_exit_handler): ... deregister here.
1065         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1066         * config/x86/target.h: Same.
1068 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1070         * testsuite/libitm.c++/static_ctor.C: New file.
1072 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1074         * testsuite/libitm.c/reentrant.c: New file.
1076 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1078         * config/generic/tls.h: Remove the free list for transactions and ...
1079         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1080         (GTM::gtm_transaction::operator delete): ... and release here.
1081         (thread_exit_handler): New. Delete tx when thread terminates.
1082         (thread_exit_init): New.
1083         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1084         * testsuite/libitm.c/txrelease.c: New file.
1086 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1088         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1089         * testsuite/libitm.c/notx.c: New file.
1091 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1093         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1094         * libitm_i.h (local_tid): ... to here.
1095         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1096         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1098 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1100         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1101         serialirr_onwrite_dispatch as new default for now.
1102         * method-serial.cc (serialirr_onwrite_dispatch): New.
1103         (GTM::dispatch_serialirr_onwrite): New.
1104         * libitm_i.h: Same.
1106 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1108         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1109         * query.cc (_ITM_getTransactionId): There is no active transaction if
1110         the current nesting level is zero.
1112 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1114         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1115         rollback.
1117 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1119         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1120         transaction properties from the caller instead of from the
1121         transaction object.
1122         * libitm_i.h: Same.
1123         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1125 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1127         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1128         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1129         * dispatch.h: Same.
1130         * method-serial.cc: Same.
1131         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1132         flat nesting as default, and closed nesting on demand.
1133         (GTM::gtm_transaction::rollback): Same.
1134         (_ITM_abortTransaction): Same.
1135         (GTM::gtm_transaction::restart): Same.
1136         (GTM::gtm_transaction::trycommit): Same.
1137         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1138         (choose_code_path): New.
1139         (GTM::gtm_transaction_cp::save): New.
1140         (GTM::gtm_transaction_cp::commit): New.
1141         * query.cc (_ITM_inTransaction): Support flat nesting.
1142         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1143         (GTM::gtm_transaction): Support flat and closed nesting.
1144         * alloc.cc (commit_allocations_2): New.
1145         (commit_cb_data): New helper struct.
1146         (GTM::gtm_transaction::commit_allocations): Handle nested
1147         commits/rollbacks.
1148         * libitm.texi: Update user action section, add description of nesting.
1150 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1152         * libitm_i.h: Add closed nesting as restart reason.
1153         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1155 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1157         * useraction.cc: Use vector instead of list to store actions.
1158         Also support partial rollbacks for closed nesting.
1159         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1160         * beginend.cc: Same.
1162 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1164         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1165         closed_nesting flags, as well as a closed nesting alternative.
1166         * method-serial.cc: Same.
1167         (serial_dispatch): Renamed to serialirr_dispatch.
1168         (GTM::dispatch_serialirr): Same.
1169         (serial_dispatch_ul): Renamed to serial_dispatch.
1170         (GTM::dispatch_serial): Same.
1172 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1174         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1176 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1178         * aatree.h (aa_tree::remove): New.
1179         (aa_tree::operator new): Add placement new.
1181 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1183         * containers.h: New file.
1184         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1185         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1186         * common.h: ... to here.
1187         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1188         * local.cc: Same.
1190 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1192         * libitm_i.h (STATE_ABORTING): Remove.
1193         * beginend.cc (_ITM_abortTransaction): Same.
1194         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1195         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1196         (_ITM_rollbackTransaction): Remove.
1197         * beginend.cc: Same.
1198         * libitm.map: Same.
1199         * libitm.texi: Document these ABI changes.
1201 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1203         * libitm.texi: New file.
1204         * Makefile.am: Add libitm.texi.
1205         * Makefile.in: Rebuild.
1207 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1209         * libitm_i.h: Move parts to common.h and dispatch.h.
1210         * common.h: New file.
1211         * dispatch.h: New file, new dispatch class.
1212         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1213         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1214         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1215         decision to retry.cc.
1216         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1217         only.
1218         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1219         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1220         logging.
1221         * barrier.cc: Use new barriers definitions.
1222         (abi_dispatch::memmove_overlap_check): New.
1223         * config/x86/x86_sse.cc: Same.
1224         * config/x86/x86_avx.cc: Same.
1225         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1226         memcpy.cc.
1227         * Makefile.in: Rebuild.
1228         * method-readonly.cc: Remove.
1229         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1230         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1232 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1234         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1235         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1236         * testsuite/libitm.c/dropref-2.c: Same.
1237         * testsuite/libitm.c/dropref.c: Same.
1239 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1241         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1242         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1243         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1244         * alloc_c.cc: Same.
1245         * barrier.tpl: Same.
1246         * beginend.c: Same.
1247         * config/generic/tls.h: Same.
1248         * config/x86/tls.h: Same.
1249         * libitm_i.h: Same.
1250         * memcpy.cc: Same.
1251         * memset.cc: Same.
1252         * method-readonly.cc: Same.
1253         * method-serial.cc: Same.
1254         * method-wbetl.cc: Same.
1255         * retry.cc: Same.
1257 2011-03-03  Richard Henderson  <rth@redhat.com>
1259         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1260         From Patrik Marlier <patrick.marlier@unine.ch>.
1262 2011-02-03  Richard Henderson  <rth@redhat.com>
1264         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1265         * configure.ac: Use it.
1266         * configure, config.h.in: Rebuild.
1267         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1268         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1269         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1270         * libitm.map: Use wildcards to match size_t mangling.
1272 2010-12-14  Richard Henderson  <rth@redhat.com>
1274         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1275         blocks of TIDs per thread.
1276         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1277         (setup_gtm_thr): Return the thread structure.
1278         * config/x86/tls.h (setup_gtm_thr): Likewise.
1280 2010-12-14  Richard Henderson  <rth@redhat.com>
1282         * clone.cc (table_lock): Remove.
1283         (find_clone): Don't take it.
1284         (ExcludeTransaction): New helper class.
1285         (_ITM_registerTMCloneTable): Use it.
1286         (_ITM_deregisterTMCloneTable): Likewise.
1288 2010-12-14  Richard Henderson  <rth@redhat.com>
1290         * config/x86/tls.h: New file.
1292 2010-07-15  Richard Henderson  <rth@redhat.com>
1294         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1295         * Makefile.in: Rebuild.
1297 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1299         * method-wbetl.cc (trydropreference): Fix source line.
1301 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1303         * libitm.h: Add comment.
1304         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1306 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1308         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1309         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1310         available, use pthread mutexes.
1311         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1312         * config.h.in: Regenerate.
1313         * configure: Regenerate.
1315 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1317         * libitm.h (ITM_PURE): Define.
1318         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1320 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1322         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1323         (validate): Add comment.
1324         (trydropreference): New.
1325         * method-readonly.cc (class readonly_dispatch): Add
1326         trydropreference.
1327         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1328         Call trydropreference().
1329         * libitm.h (_ITM_dropReferences): Remove const attribute.
1330         * method-serial.cc (class serial_dispatch): Add trydropreference.
1331         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1333 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1335         * memcpy.cc (do_memcpy): Comment.
1337 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1339         * barrier.tpl: Add comments throughout.
1341 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1343         * method-wbetl.cc (struct w_entry): Add comments.
1344         (trycommit): Same.
1345         (rollback): Same.
1347 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1349         * alloc_c.cc (_ITM_dropReferences): New.
1350         * libitm.map (_ITM_dropReferences): Add.
1351         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1352         * libitm_i.h (struct gtm_transaction): Declare
1353         drop_references_allocations and drop_references_local.
1354         * local.cc (rollback_local): Ignore memory when applicable.
1355         (drop_references_local): New.
1357 2010-06-23  Richard Henderson  <rth@redhat.com>
1359         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1360         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1361         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1362         * config/alpha/target.h: Likewise.
1363         * config/generic/tls.cc (gtm_mask_stack): Use it.
1365 2010-06-23  Richard Henderson  <rth@redhat.com>
1367         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1368         a mutex instead of trying a lock-free compare-and-swap on the list.
1369         (gtm_cacheline_page::operator delete): Likewise.
1371 2010-06-16  Richard Henderson  <rth@redhat.com>
1373         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1374         that overlap the libitm stack.
1375         * barrier.tpl: Mark incoming stack.
1376         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1377         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1378         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1379         * memcpy.cc, memset.cc: Likewise.
1380         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1381         * config/generic/tls.h (gtm_thread): Add stack_top member.
1382         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1383         * libitm_i.h (gtm_mask_stack): Declare.
1384         * config/generic/tls.cc: New file.
1385         * Makefile.am (libitm_la_SOURCES): Add it.
1386         (AM_CXXFLAGS): Turn off exceptions.
1387         * Makefile.in: Rebuild.
1389 2010-06-16  Richard Henderson  <rth@redhat.com>
1391         * alloc.cc (struct gtm_alloc_action): Move definition ...
1392         * libitm_i.h: ... here.
1393         (class gtm_transaction): Declare new and delete.
1394         * beginend.cc (alloc_tx): Reformulate as operator new.
1395         (free_tx): Reformulate as operator delete.
1396         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1398 2010-06-11  Richard Henderson  <rth@redhat.com>
1400         * clone.cc (clone_entry_compare): Fix typo.
1401         From Patrik Marlier <patrick.marlier@unine.ch>.
1403 2010-05-13  Richard Henderson  <rth@redhat.com>
1405         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1406         in extern "C".
1408 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1410         * libitm_i.h (struct gtm_transaction): Remove
1411         get_allocation_size.
1412         (record_allocation): Remove size parameter.
1413         * libitm.map (_ITM_realloc): Remove.
1414         * alloc_c.cc (_ITM_realloc): Remove.
1415         (_ITM_malloc): Remove size argument to record_allocation.
1416         (_ITM_calloc): Same.
1417         * alloc_cpp.cc (_ZGTtnwm): Same.
1418         (_ZGTtnwmRKSt9nothrow_t): Same.
1419         (_ZGTtnam): Same.
1420         (_ZGTtnamRKSt9nothrow_t): Same.
1421         * alloc.cc (struct gtm_alloc_action): Remove size.
1422         (get_allocation_size): Remove.
1423         (commit_allocations): Add comment.
1424         (record_allocation): Remove size parameter.
1425         (forget_allocation): Remove set of size.
1427 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1429         * Makefile.am (abi_version): New.
1430         (AM_CXXFLAGS): Pass abi_version.
1431         * Makefile.in: Regenerate.
1432         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1434 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1436         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1437         _ITM_getTMCloneOrIrrevokable.
1438         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1439         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1441 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1443         * configure.ac: Remove Linux futex support.
1444         * configure.tgt (config_path): Same.
1445         * Makefile.am: Same.
1446         * config/linux: Remove entire directory.
1447         * configure: Rebuild.
1448         * Makefile.in: Rebuild.
1449         * testsuite/Makefile.in: Rebuild.
1451 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1453         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1454         switching to serial mode.
1455         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1457 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1459         * configure.tgt: Add emacs -*- tags.
1460         * barrier.tpl: Same.
1462 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1464         * Makefile.am: Rename serial.cc to method-serial.cc.
1465         * Makefile.in: Regenerate with automake 1.11.1.
1466         * testsuite/Makefile.in: Same.
1467         * aclocal.m4: Regenerate with aclocal 1.11.1.
1468         * method-serial.cc: Rename from serial.cc.
1469         * libitm_i.h (struct gtm_transaction): Update comment on
1470         serialirr_mode.
1472 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1474         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1475         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1477 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1479         * configure: Rebuild.
1481 2009-11-12  Richard Henderson  <rth@redhat.com>
1483         * Rewrite everything in C++.
1485 2009-11-03  Richard Henderson  <rth@redhat.com>
1487         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1488         * Makefile.am (libitm_la_SOURCES): Add them.
1489         * configure.ac (ARCH_X86): New conditional.
1490         * Makefile.in, configure: Rebuild.
1491         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1492         Move futex setup into "other system configury" case.
1493         * local.c (rollback_local): Merge into ...
1494         (GTM_rollback_local): ... here.
1495         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1496         (_ITM_LB): Define as an alias to GTM_LB.
1498 2009-11-03  Richard Henderson  <rth@redhat.com>
1500         * method-readonly.c: New file.
1501         * Makefile.am (libitm_la_SOURCES): Add it.
1502         * Makefile.in: Rebuild.
1503         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1504         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1505         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1506         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1507         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1508         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1509         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1510         gtm_get_clock, gtm_inc_clock): New.
1511         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1512         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1513         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1514         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1515         replace uses with new libitm_i.h symbols.
1516         (dispatch_wbetl): Rename from wbetl_dispatch.
1517         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1518         away from dispatch_readonly; abort if the beginTransaction call
1519         asserted that the transaction was readonly.
1521 2009-11-03  Richard Henderson  <rth@redhat.com>
1523         * memset.c: New file.
1524         * Makefile.am (libitm_la_SOURCES): Add it.
1525         * Makefile.in: Rebuild.
1526         * testsuite/libitm.c/memset-1.c: New.
1528 2009-11-03  Richard Henderson  <rth@redhat.com>
1530         * dispatch.c: Remove file.
1531         * useraction.c (struct gtm_user_action): Move from libitm.h.
1532         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1533         (serial_memset, serial_memmove, serial_memcpy): Remove.
1534         (serial_W*, serial_R*): Remove.
1535         (serial_dispatch): Update to match.
1536         * configure.ac: Move Werror down below configure checks.  Don't
1537         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1538         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1539         Use GCC_AC_FUNC_MMAP_BLACKLIST
1540         * libitm.h: Split out all internal items to...
1541         * libitm_i.h: ... here.  New file.
1542         * copymask.c: New file.
1543         * local.c (struct gtm_local_undo): Move from libitm.h.
1544         (GTM_alloc_local): Rename from alloc_local; export.
1545         * memcpy.c: New file.
1546         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1547         * config/posix/page.c: New file.
1548         * config/posix/target_tls.h: Remove file.
1549         * barrier.c: New file.
1550         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1551         copymask.c, page.c.
1552         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1553         * method-wbetl.c: Rewrite for new cacheline methods.
1554         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1556         * config/alpha/sjlj.S: Fix typo.
1557         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1558         * config/alpha/copymask.c: New file.
1559         * config/alpha/target.h (CACHELINE_SIZE): New.
1560         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1562         * config/x86/target_i.h: Copy functions from x86/target.h.
1563         * config/x86/copymask.c: New file.
1564         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1565         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1566         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1567         * config/x86/target_tls.h: Move contents to target_i.h.
1569         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1570         * testsuite/libitm.c/memcpy-1.c: New.
1572 2009-10-22  Richard Henderson  <rth@redhat.com>
1574         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1575         (AM_CCASFLAGS): New.
1576         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1577         saving/restoring _AC_ARG_VAR_PRECIOUS.
1578         * Makefile.in, aclocal.m4, config.h.in, configure,
1579         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1581 2009-10-22  Richard Henderson  <rth@redhat.com>
1583         * testsuite/*: Update for new compiler syntax.
1585 2009-10-21  Richard Henderson  <rth@redhat.com>
1587         * libitm.h (_ITM_abortReason): Add outerAbort.
1589 2009-08-03  Richard Henderson  <rth@redhat.com>
1591         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1592         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1593         * method-wbetl.c (struct w_entry): Remove mask.
1594         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1595         adjust all callers.
1597 2009-07-22  Richard Henderson  <rth@redhat.com>
1599         * eh_cpp.c: New file.
1600         * Makefile.am (libitm_la_SOURCES): Add it.
1601         * Makefile.in: Rebuild.
1602         * beginend.c (GTM_rollback_transaction): Undo exception state.
1603         (GTM_trycommit_transaction): Mark inline.
1604         (GTM_trycommit_and_finalize_transaction): Split out from ...
1605         (_ITM_commitTransaction): ... here.
1606         (_ITM_commitTransactionEH): New function.
1607         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1608         cxa_unthrown, eh_in_flight; reorder.
1610         * testsuite/libitm.c++/c++.exp: New.
1611         * testsuite/libitm.c++/eh-1.C: New.
1613         * aatree.c (aa_free): Remove REGPARM.
1614         * aatree.h: Remove all REGPARM.
1616 2009-07-18  Richard Henderson  <rth@redhat.com>
1618         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1619         * Makefile.am (libitm_la_SOURCES): Add them.
1620         * Makefile.in: Rebuild.
1621         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1622         (GTM_trycommit_transaction): Likewise.
1623         * libitm.h: Include aatree.h
1624         (struct gtm_alloc_action): New.
1625         (struct gtm_transaction): Add alloc_actions.
1626         (GTM_record_allocation, GTM_forget_allocation): Declare.
1627         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1628         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1629         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1630         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1631         _ZGTtdaPvRKSt9nothrow_t): Export.
1633 2009-07-18  Richard Henderson  <rth@redhat.com>
1635         * target_tls.h: Move ...
1636         * config/posix/target_tls.h: ... here.
1638 2009-07-07  Richard Henderson  <rth@redhat.com>
1640         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1642 2009-07-07  Richard Henderson  <rth@redhat.com>
1644         * Update to GPL3.
1646 2009-07-07  Richard Henderson  <rth@redhat.com>
1648         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1649         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1651         * configure.tgt: Don't use -ftls-model for x86 linux.
1652         * libitm.h: Include target.h after standard includes.
1653         (_gtm_thr): Rename from gtm_thr.
1654         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1655         (gtm_disp, set_gtm_disp): New.
1656         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1657         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1658         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1660 2009-07-07  Richard Henderson  <rth@redhat.com>
1662         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1664 2009-07-06  Richard Henderson  <rth@redhat.com>
1666         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1667         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1668         (_ITM_beginTransaction): Take variadic arguments.
1669         (_ITM_registerThrownObject): Declare.
1670         * beginend.c, serial.c: Update.
1671         * libitm.map: Add _ITM_registerThrownObject.
1673 2009-01-28  Richard Henderson  <rth@redhat.com>
1675         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1676         * Makefile.in: Rebuild.
1677         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1678         (GTM_restart_transaction): Fix uninstrumented code check.
1679         * retry.c (GTM_decide_retry_strategy): Add serial check.
1680         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1681         automatically go irrevokable when in serial mode.
1682         * clone.c: New file.
1683         * libitm.h, libitm.map: Update.
1685 2009-01-27  Richard Henderson  <rth@redhat.com>
1687         * Makefile.am (LTCCASCOMPILE): Define.
1688         (libitm_la_SOURCES): Add methid-wbetl.c.
1689         * testsuite/Makefile.am: New
1690         * configure.ac: Add testsuite/Makefile.
1691         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1692         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1693         (_ITM_abortTransaction): Finalize implementation method; pass
1694         transaction properties to longjmp.
1695         (GTM_restart_transaction): Split out from ...
1696         (_ITM_commitTransaction): ... here.
1697         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1698         Move to config/x86/target.h.
1699         * config/linux/alpha/futex_bits.h: New.
1700         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1701         * config/x86/target.h: Disable target types for 32-bit.
1702         * config/alpha/sjlj.S, config/alpha/target.h: New.
1703         * libitm.h (struct gtm_dispatch): Add init, fini.
1704         (enum restart_reason): New.
1705         (struct gtm_transaction): Add method and restarts.
1706         * retry.c (GTM_decide_retry_strategy): Implement.
1707         * serial.c (serial_init, serial_fini): New.
1708         (GTM_serialmode): Finialize outgoing method.
1709         * method-wbetl.c: New.
1711 2008-12-09  Richard Henderson  <rth@redhat.com>
1713         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1714         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1715         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1716         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1717         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1718         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1719         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1720         * serial.c (serial_R##T, serial_W##T): Likewise.
1722 2008-11-21  Richard Henderson  <rth@redhat.com>
1724         * Initial commit.