Update ChangeLog and version files for release
[official-gcc.git] / libitm / ChangeLog
blobe40869141a8a62788a362e19017e61123bc61253
1 2016-08-22  Release Manager
3         * GCC 6.2.0 released.
5 2016-04-27  Release Manager
7         * GCC 6.1.0 released.
9 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
12         function attribute to disable floating point in begin_transaction() on
13         S/390.
14         * beginend.cc (begin_transaction): Use
15         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
17 2016-01-22  Torvald Riegel  <triegel@redhat.com>
19         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
20         boundary.
21         (htm_fastpath): Remove.
22         (gtm_thread::begin_transaction): Fix HTM fastpath.
23         (_ITM_commitTransaction): Adapt.
24         (_ITM_commitTransactionEH): Adapt.
25         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
26         and accessors.
27         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
28         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
29         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
30         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
31         * libitm/method-serial.cc (htm_mg): Adapt.
32         (gtm_thread::serialirr_mode): Adapt.
33         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
35 2016-01-21  Torvald Riegel  <triegel@redhat.com>
37         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
38         or AIX.
40 2016-01-19  Richard Henderson  <rth@redhat.com>
42         PR bootstrap/69343
43         PR bootstrap/69339
44         Revert:
45         2016-01-13  Richard Henderson  <rth@redhat.com>
47         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
48         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
49         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
50         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
51         * configure.ac (ARCH_AARCH64): New conditional.
52         (ARCH_PPC, ARCH_S390): Likewise.
53         * Makefile.in, configure: Rebuild.
55         * libitm.h (_ITM_TYPE_M128): Always define.
56         * vect64.cc: Split ...
57         * vect128.cc: ... out of...
58         * config/x86/x86_sse.cc: ... here.
59         * config/arm/neon.cc: New file.
61 2016-01-19  Torvald Riegel  <triegel@redhat.com>
63         * local_type_traits: Remove file.
64         * libitm_i.h: Don't include it anymore.
65         (sized_integral): Remove.
67 2016-01-16  Torvald Riegel  <triegel@redhat.com>
69         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
70         safety.
71         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
72         * libitm/testsuite/libitm.c/priv-1.c: New.
74 2015-01-15  Torvald Riegel  <triegel@redhat.com>
76         testsuite/libitm.c++/libstdc++-safeexc.C: New.
78 2016-01-13  Torvald Riegel  <triegel@redhat.com>
80         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
81         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
82         (gtm_rwlock::write_unlock): Likewise.
84 2016-01-13  Richard Henderson  <rth@redhat.com>
86         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
87         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
88         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
89         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
90         * configure.ac (ARCH_AARCH64): New conditional.
91         (ARCH_PPC, ARCH_S390): Likewise.
92         * Makefile.in, configure: Rebuild.
94         * libitm.h (_ITM_TYPE_M128): Always define.
95         * vect64.cc: Split ...
96         * vect128.cc: ... out of...
97         * config/x86/x86_sse.cc: ... here.
98         * config/arm/neon.cc: New file.
100 2016-01-13  Torvald Riegel  <triegel@redhat.com>
102         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
103         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
104         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
105         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
106         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
107         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
108         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
109         (serialirr_dispatch::snapshot_most_recent): New.
110         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
112 2016-01-12  Torvald Riegel  <triegel@redhat.com>
114         * libitm_i.h (gtm_mask_stack): Remove.
115         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
116         * stmlock.h: Remove file.
117         * config/alpha/cacheline.h: Likewise.
118         * config/generic/cacheline.h: Likewise.
119         * config/powerpc/cacheline.h: Likewise.
120         * config/sparc/cacheline.h: Likewise.
121         * config/x86/cacheline.h: Likewise.
123 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
125         Update copyright years.
127         * libitm.texi: Bump @copying's copyright year.
129 2015-11-26  Torvald Riegel  <triegel@redhat.com>
131         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
132         (ml_wt_dispatch::pre_write): Adapt.
133         (ml_wt_dispatch::pre_load): Likewise.
135 2015-11-22  Torvald Riegel  <triegel@redhat.com>
137         * libitm_i.h (gtm_alloc_action): Remove union.
138         * testsuite/libitm.c/alloc-1.c: New.
140 2015-11-19  Torvald Riegel  <triegel@redhat.com>
142         * testsuite/libitm.c++/eh-5.C: New.
143         * libitm.h (_ITM_cxa_free_exception): New.
144         * libitm.map (_ITM_cxa_free_exception): Add it.
145         * libitm.texi: Update ABI docs.
146         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
147         (gtm_transaction_cp::cxa_uncaught_count): Add.
148         (gtm_thread::cxa_unthrown): Remove.
149         (gtm_thread::cxa_uncaught_count_ptr): Add.
150         (gtm_thread::cxa_uncaught_count): Add.
151         (gtm_thread::drop_references_allocations): Rename to...
152         (gtm_thread::discard_allocation): ... this and adapt.
153         (gtm_thread::init_cpp_exceptions): New.
154         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
155         (gtm_thread::begin_transaction): Likewise.
156         (gtm_transaction_cp::save): Likewise.
157         (gtm_thread::trycommit): Likewise.
158         * eh_cpp.cc: Add overview comments.
159         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
160         (free_any_exception, _ITM_cxa_free_exception): New.
161         (gtm_thread::init_cpp_exceptions): Define.
162         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
163         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
164         (gtm_thread::revert_cpp_exceptions): Likewise.
166 2015-11-09  Torvald Riegel  <triegel@redhat.com>
168         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
169         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
170         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
171         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
172         (gtm_thread::forget_allocations): New overload with size_t argument.
173         * alloc.c (gtm_thread::forget_allocation): Define new overload and
174         adapt existing one.
175         (gtm_thread::record_allocation): Adapt.
176         (gtm_thread::commit_allocations_1): Adapt.
177         (gtm_thread::commit_allocations_2): Adapt.
178         * testsuite/libitm.c++/newdelete.C: New.
180 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
181             Joseph Myers  <joseph@codesourcery.com>
182             Mark Shinwell  <shinwell@codesourcery.com>
183             Andrew Stubbs  <ams@codesourcery.com>
184             Rich Felker <dalias@libc.org>
186         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
187         GTM_begin_transaction for compatibility with FDPIC.
189 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
191         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
192         using load_gcc_lib.
194 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
196         PR libitm/61164
197         * local_atomic (__always_inline): Rename to...
198         (__libitm_always_inline): ... this.
200 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
202         PR target/52482
203         * config/powerpc/sjlj.S: Port to Xcode 2.5.
205 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
207         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
208         operands "op" and "val" to int.
210 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
212         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
213         "op" and "val" to int.
215 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
217         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
218         "op" and "val" to int.
220 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
222         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
223         Declare as static int.
224         (FUTEX_PRIVATE_FLAG): Remove L suffix.
225         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
227 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
229         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
230         sys_futex0 function.
232 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
234         * Makefile.in: Regenerated with automake-1.11.6.
235         * aclocal.m4: Likewise.
236         * configure: Likewise.
237         * testsuite/Makefile.in: Likewise.
239 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
241         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
242         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
244 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
246         PR libitm/64360
247         * libitm.c/stackundo.c (test2): Make it static.
248         (test1): Likewise.
250 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
252         Update copyright years.
254 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
256         * libitm.texi: Bump @copying's copyright year.
258 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
260         * testsuite/lib/libitm.exp: Load target-utils.exp.
261         Move load of target-supports.exp earlier.
263 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
265         * configure.tgt (x86_64): Tune -m32 multilib to generic.
267 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
269         PR bootstrap/63784
270         * configure: Regenerated.
272 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
274         PR target/63610
275         * configure: Regenerate.
277 2014-10-06  Marek Polacek  <polacek@redhat.com>
279         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
280         * testsuite/libitm.c/memset-1.c: Likewise.
282 2014-07-24  Richard Henderson  <rth@redhat.com>
284         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
285         addressing mode in epilogue.
287 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
289         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
290         -mclear-hwcap instead.
291         * configure: Regenerate.
292         * clearcap.map: Remove.
294 2014-05-21  John Marino  <gnugcc@marino.st>
296         * configure.tgt (*-*-dragonfly*): New target.
298 2014-05-19  Richard Henderson  <rth@redhat.com>
300         * config/aarch64/sjlj.S: New file.
301         * config/aarch64/target.h: New file.
302         * configure.tgt: Enable aarch64.
304 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
306         * config/generic/asmcfi.h: Also check for
307         __GCC_HAVE_DWARF2_CFI_ASM.
309 2013-04-02  Richard Henderson  <rth@redhat.com>
311         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
312         * config/arm/target.h, config/sh/target.h: Likewise.
313         * config/sparc/target.h, config/x86/target.h: Likewise.
315 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
317         * config/linux/futex_bits.h: Include errno.h.
318         (sys_futex0): If syscall returns -1, return -errno rather than
319         -1.
321 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
323         * libitm.texi (Index): Rename to Library Index.
325 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
327         PR libitm/53113
328         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
329         (x86_avx.lo): Append -mavx to CXXFLAGS.
330         * Makefile.in: Regenerate.
332 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
334         Update copyright years
336 2014-01-02  Tobias Burnus  <burnus@net-b.de>
338         * libitm.texi: Bump @copying's copyright year.
340 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
342         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
343         (FUNC): Define ELFv2 variant.
344         (END): Likewise.
345         (HIDDEN): Likewise.
346         (CALL): Likewise.
347         (BASE): Likewise.
348         (LR_SAVE): Likewise.
350 2013-09-20  Alan Modra  <amodra@gmail.com>
352         * configure: Regenerate.
354 2013-08-30  Torvald Riegel  <triegel@redhat.com>
356         * config/posix/rwlock.cc: Fix initialization order.
358 2013-08-30  Torvald Riegel  <triegel@redhat.com>
360         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
361         (htm_fastpath): Assign an asm name.
362         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
363         HTM fast paths.
364         (_ITM_actions): Likewise.
365         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
366         x86_64.
367         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
368         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
369         field to the start of the structure.
370         * config/linux/rwlock.h (gtm_rwlock): Update comments.
371         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
372         handling for custom HTM fast paths.
374 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
375         Revert:
376         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
378         * configure.tgt: Add -msoft-float to XCFLAGS.
380 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
382         * configure.tgt: Add -msoft-float to XCFLAGS.
384 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
386         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
387         (htm_transaction_active): Enable zEC12 instructions in the
388         assembler.
389         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
391 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
393         * acinclude.m4: Add htm asm check for s390.
394         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
395         * configure: Regenerate.
396         * config/s390/target.h: Remove __HTM__ check.
397         (htm_available): Call getauxval to get hwcaps and check whether
398         HTM is available or not.
400 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
402         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
403         * configure.ac: Use it.
404         (AC_CHECK_HEADERS): Check for sys/auxv.h.
405         (AC_CHECK_FUNCS): Check for getauxval.
406         * config.h.in, configure: Rebuild.
407         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
408         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
409         (USE_HTM_FASTPATH): Define.
410         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
411         _HTM_RETRIES) New macros.
412         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
413         htm_begin_success, htm_commit, htm_transaction_active): New functions.
415 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
417         * config/s390/target.h: Include htmintrin.h.
418         (_HTM_ITM_RETRIES): New macro definition.
419         (htm_available, htm_init, htm_begin, htm_begin_success)
420         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
422 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
423             Cesar Philippidis  <cesar@codesourcery.com>
425         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
426         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
427         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
428         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
430 2013-06-20  Torvald Riegel  <triegel@redhat.com>
432         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
433         (_ITM_getTransactionId): Same.
434         * config/x86/target.h (htm_transaction_active): New.
436 2013-06-20  Torvald Riegel  <triegel@redhat.com>
438         PR libitm/57643
439         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
440         the HTM fastpath.
442 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
444         PR bootstrap/56714
445         * local_atomic (__always_inline): Always define our version.
446         (__calculate_memory_order): Mark inline.
447         (atomic_thread_fence): Ditto.
448         (atomic_signal_fence): Ditto.
449         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
450         (atomic_bool::atomic_flag_clear_explicit): Ditto.
451         (atomic_bool::atomic_flag_test_and_set): Ditto.
452         (atomic_bool::atomic_flag_clear): Ditto.
454 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
456         * config/s390/sjlj.S: New file.
457         * config/s390/target.h: New file.
458         * configure.tgt: Set options for S/390.
460 2013-03-23  Andi Kleen  <ak@linux.intel.com>
462         * local_atomic (__always_inline): Add.
463         (__calculate_memory_order, atomic_thread_fence,
464          atomic_signal_fence, test_and_set, clear, store, load,
465          exchange, compare_exchange_weak, compare_exchange_strong,
466          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
467         Add __always_inline to force inlining.
469 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
470             Jack Howarth  <howarth@bromo.med.uc.edu>
471             Patrick Marlier  <patrick.marlier@gmail.com>
473         PR libitm/55693
474         * alloc_cpp.cc: Enable function declarations on darwin.
475         * eh_cpp.cc: Likewise.
477 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
479         Update copyright years.
481 2012-11-09  Torvald Riegel  <triegel@redhat.com>
483         * beginend.cc (htm_fastpath): New.
484         (gtm_thread::begin_transaction, _ITM_commitTransaction,
485         _ITM_commitTransactionEH): Add HTM fastpath handling.
486         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
487         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
488         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
489         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
490         * configure.tgt: Add -mrtm to XCFLAGS.
491         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
492         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
493         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
494         * retry.cc (parse_default_method): Add HTM method parsing.
495         (gtm_thread::number_of_threads_changed): Use HTM by default if
496         available.
498 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
500         * configure: Regenerate.
502 2012-10-31  Richard Henderson  <rth@redhat.com>
504         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
505         * configure.ac: Use it.
506         * config.h.in, configure: Rebuild.
507         * testsuite/Makefile.in: Rebuild.
509 2012-10-24  Torvald Riegel  <triegel@redhat.com>
511         * libitm.texi: Clarify ABI requirements for data-logging functions.
513 2012-10-24  Torvald Riegel  <triegel@redhat.com>
515         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
516         it requires serial mode instead of assuming that for certain
517         dispatchs.
518         * dispatch.h (abi_dispatch::requires_serial): New.
519         (abi_dispatch::abi_dispatch): Adapt.
520         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
521         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
522         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
523         serial_dispatch::serial_dispatch,
524         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
526 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
528         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
529         and ia32 declarations some more.
530         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
532 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
534         PR other/43620
535         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
536         * configure: Regenerate.
537         * Makefile.in: Regenerate.
539 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
541         * configure: Regenerated.
543 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
545         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
547 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
549         * eh_cpp.cc: Fix __cxa_end_catch declaration.
551 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
553         * configure: Regenerated.
555 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
557         PR libitm/52854
558         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
559         for x86-64.
561 2012-04-03  Tristan Gingold  <gingold@adacore.com>
563         * configure: Regenerate.
565 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
567         PR bootstrap/52812
568         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
570 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
572         * testsuite/lib/libitm.exp: load fortran-modules.exp
574 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
576         * configure.tgt (*-*-irix6*): Remove.
578 2012-03-13  Torvald Riegel  <triegel@redhat.com>
580         PR libitm/52526
581         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
582         wake-up.
584 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
586         * configure.tgt (*-*-osf*): Remove.
587         * configure: Regenerate.
589 2012-03-05  Torvald Riegel  <triegel@redhat.com>
591         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
592         memtransfer/memset if size isn't larger than zero.
594 2012-03-02  Torvald Riegel  <triegel@redhat.com>
596         * libitm.texi: Link to specification and add a usage example.
598 2012-02-24  Torvald Riegel  <triegel@redhat.com>
600         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
601         default dispatch for more than 1 thread to ml_wt.
603 2012-02-20  Torvald Riegel  <triegel@redhat.com>
605         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
607 2012-02-20  Torvald Riegel  <triegel@redhat.com>
609         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
611 2012-02-20  Torvald Riegel  <triegel@redhat.com>
613         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
614         serial mode corner cases made obsolete by prior gtm_rwlock changes.
615         (gl_wt_dispatch.rollback): Same.
617 2012-02-20  Torvald Riegel  <triegel@redhat.com>
619         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
621 2012-02-20  Torvald Riegel  <triegel@redhat.com>
623         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
624         for RfW src.  Optimize number of calls to gtm_thr.
626 2012-02-20  Torvald Riegel  <triegel@redhat.com>
628         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
629         acquisition to ...
630         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
631         (default_dispatch): Make atomic.
632         (GTM::gtm_thread::set_default_dispatch): Access atomically.
633         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
634         use decide_begin_dispatch() if default_dispatch might have changed.
635         (GTM::gtm_thread::number_of_threads_changed): Initialize
636         default_dispatch here.
638 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
639             Patrick Marlier  <patrick.marlier@gmail.com>
641         PR libitm/52220
642         * alloc_cpp.cc: No dummy definitions for darwin.
643         * eh_cpp.cc: Likewise.
645 2012-02-14  Richard Henderson  <rth@redhat.com>
647         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
649 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
651         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
653 2012-02-14  Torvald Riegel  <triegel@redhat.com>
655         * libitm_i.h (GTM::gtm_rwlog_entry): New.
656         (GTM::gtm_thread): Add read and write logs.
657         (GTM::dispatch_ml_wt): Declare.
658         * retry.cc (parse_default_method): Support ml_wt.
659         * method-ml.cc: New file.
660         * Makefile.am: Add method-ml.cc.
661         * Makefile.in: Regenerate.
663 2012-02-14  Torvald Riegel  <triegel@redhat.com>
665         * dispatch.h (GTM::abi_dispatch::supports): New.
666         (GTM::method_group::reinit): New.
667         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
668         (GTM::gtm_thread::number_of_threads_changed): Check that the method
669         supports the current situation.
671 2012-02-14  Torvald Riegel  <triegel@redhat.com>
673         * util.cc (GTM::xcalloc): New.
674         * common.h (GTM::xcalloc): Declare.
676 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
678         * config/sparc/target.h (cpu_relax): Read from CC register.
679         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
681 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
683         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
685 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
687         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
688         * config/sparc/cacheline.h: New file.
689         * config/sparc/target.h: Likewise.
690         * config/sparc/sjlj.S: Likewise.
691         * config/linux/sparc/futex_bits.h: Likewise.
693 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
695         * configure.ac (link_itm): Fix comment.
696         * configure: Regenerate.
697         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
699 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
701         PR libitm/51822
702         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
703         Correct libgomp references.
705 2012-01-24  Torvald Riegel  <triegel@redhat.com>
707         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
708         wake-up.
710 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
712         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
713         end of structure.
714         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
715         offset values.  Do not copy return address.  Decrement stack
716         by 56 bytes only.
717         (GTM_longjump) [__x86_64__]: Update offset values.
719 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
721         PR libitm/51830
722         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
723         the first function argument to %eax.
725 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
727         * libitm.h (_ITM_getThreadnum): Remove.
728         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
730 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
732         * clearcap.map: New file.
733         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
734         * configure.ac: Call it.
735         Clear HWCAP_LDFLAGS if defaulting to -mavx.
736         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
737         * configure: Regenerate.
738         * Makefile.in: Regenerate.
739         * testsuite/Makefile.in: Regenerate.
741 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
743         PR libitm/51173
744         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
745         include, exclude options.
747 2012-01-14  Torvald Riegel  <triegel@redhat.com>
749         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
750         rolling back.
751         * containers.h (GTM::vector::set_size): New.
753 2012-01-14  Torvald Riegel  <triegel@redhat.com>
755         PR libitm/51855
756         * config/generic/tls.h (GTM::mask_stack_top): New.
757         (GTM::mask_stack_bottom): Declare.
758         * config/generic/tls.c (GTM::mask_stack_bottom): New.
759         * local.cc (gtm_undolog::rollback): Filter out any updates that
760         overlap the libitm stack.  Add current transaction as parameter.
761         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
762         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
763         * testsuite/libitm.c/stackundo.c: New test.
765 2012-01-10  Richard Henderson  <rth@redhat.com>
767         * libitm_i.h (_Unwind_DeleteException): Declare weak.
768         * eh_cpp.cc (_Unwind_DeleteException): Define for
769         !HAVE_ELF_STYLE_WEAKREF.
771 2012-01-08  Torvald Riegel  <triegel@redhat.com>
773         * local.cc (GTM_LB): Use GTM::gtm_undolog.
774         (GTM::gtm_thread::drop_references_undolog): Remove.
775         (GTM::gtm_thread::commit_undolog,
776         GTM::gtm_thread::rollback_undolog): Move to ...
777         * libitm_i.h (GTM::gtm_undolog): ...here. New.
778         (GTM::gtm_undolog_entry): Remove.
779         (GTM::gtm_thread): Adapt.
780         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
781         (GTM::gtm_thread::trycommit): Adapt.
782         * method-serial.cc (serial_dispatch::log): Adapt.
783         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
784         (gl_wt_dispatch::store): Fix likely/unlikely.
785         * containers.h (GTM::vector::resize): Add additional_capacity
786         parameter and handle it.
787         (GTM::vector::resize_noinline): New/adapt.
788         (GTM::vector::push): New.
790 2012-01-06  Richard Henderson  <rth@redhat.com>
792         * configure.tgt: Support powerpc-linux and powerpc-darwin.
793         * config/linux/powerpc/futex_bits.h: New file.
794         * config/powerpc/cacheline.h: New file.
795         * config/powerpc/sjlj.S: New file.
796         * config/powerpc/target.h: New file.
797         * config/generic/asmcfi.h (cfi_offset): New.
798         (cfi_restore, cfi_undefined): New.
800 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
802         PR other/51171
803         * testsuite/libitm.c/reentrant.c: Remove xfail.
804         (thread): Pass x to pure().
805         From Patrik Marlier <patrick.marlier@gmail.com>.
807 2011-12-24  Torvald Riegel  <triegel@redhat.com>
809         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
810         privatization safety if already in serial mode.
812 2011-12-24  Torvald Riegel  <triegel@redhat.com>
814         * beginend.cc (GTM::gtm_thread::restart): Add and handle
815         finish_serial_upgrade parameter.
816         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
817         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
818         Don't unset reader flag.
819         (GTM::gtm_rwlock::write_upgrade_finish): New.
820         * config/posix/rwlock.cc: Same.
821         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
822         Declare.
823         * config/posix/rwlock.h: Same.
824         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
825         flag after commit or after rollback when restarting.
827 2011-12-24  Torvald Riegel  <triegel@redhat.com>
829         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
830         (GTM::gtm_thread::try_commit): Changed memory order.
831         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
832         as parameter.
833         * config/linux/x86/futex_bits.h (sys_futex0): Same.
834         * config/linux/sh/futex_bits.h (sys_futex0): Same.
835         * config/linux/futex_bits.h (sys_futex0): Same.
836         * config/linux/futex.cc (futex_wait, futex_wake): Same.
837         * config/linux/futex.h (futex_wait, futex_wake): Same.
838         * config/linux/rwlock.h (gtm_rwlock::writers,
839         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
840         ints.
841         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
842         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
843         gtm_rwlock::write_unlock): Fix memory orders and fences.
844         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
845         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
846         gtm_rwlock::write_unlock): Same.
847         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
848         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
849         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
850         Add comments.
851         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
852         gl_wt_dispatch::load, gl_wt_dispatch::store,
853         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
854         orders and fences.  Add comments.
856 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
858         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
859         * Makefile.in: Regenerated.
861 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
863         * configure.tgt: Add sh* case.
864         * config/sh/target.h: New file.
865         * config/sh/sjlj.S: New file.
866         * config/linux/sh/futex_bits.h: New file.
868 2011-12-14  Richard Henderson  <rth@redhat.com>
870         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
871         * config/arm/sjlj.S, config/arm/target.h: New files.
872         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
873         (cfi_rel_offset): New.
874         * config/linux/futex_bits.h: New file.
875         * config/linux/futex.cc: Include futex_bits.h here...
876         * config/linux/futex.h: ... not here.
877         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
878         * configure.ac (ARCH_AM): New conditional.
879         * Makefile.in, configure: Rebuild.
880         * configure.tgt: Handle ARM.
882 2011-12-13  Richard Henderson  <rth@redhat.com>
884         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
885         signed/unsigned comparison werror.
887         * local_atomic: New file.
888         * libitm_i.h: Include it.
889         (gtm_thread::shared_state): Use atomic template.
890         * beginend.cc (GTM::gtm_clock): Use atomic template.
891         (global_tid): Use atomic template if 64-bit atomics available.
892         (gtm_thread::gtm_thread): Update shared_state access.
893         (gtm_thread::trycommit): Likewise.
894         (choose_code_path): Update global_tid access.
895         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
896         * stmlock.h (GTM::gtm_clock): Use atomic template.
897         (gtm_get_clock, gtm_inc_clock): Update accesses.
898         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
899         redundant __sync_synchronize after atomic shared_state access.
900         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
901         (gtm_rwlock::write_lock_generic): Likewise.
902         (gtm_rwlock::read_unlock): Likewise.
903         * config/alpha/target.h (atomic_read_barrier): Remove.
904         (atomic_write_barrier): Remove.
905         * config/x86/target.h (atomic_read_barrier): Remove.
906         (atomic_write_barrier): Remove.
908 2011-11-30  Richard Henderson  <rth@redhat.com>
910         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
911         * beginend.c (_ITM_abortTransaction): Update to match.
912         (GTM::gtm_thread::restart): Likewise.
913         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
914         * config/x86/sjlj.S (GTM_longjmp): Likewise.
916 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
918         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
919         * Makefile.in: Regenerate.
921 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
923         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
924         * alloc_cpp.cc: Generate dummy functions if we don't
925         HAVE_ELF_STYLE_WEAKREF.
926         * eh_cpp.cc: Likewise.
927         * configure: Regenerate.
928         * aclocal.m4:  Likewise.
929         * config.h.in: Likewise.
930         * Makefile.in: Likewise.
931         * testsuite/Makefile.in: Likewise.
933 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
935         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
936         __USER_LABEL_PREFIX__ for targets that use it.
937         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
938         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
939         in portability to non-elf targets.
940         (GTM_longjmp): Likewise.
941         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
942         where required.
944 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
946         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
947         * testsuite/libitm.c/memset-1.c: Likewise.
949 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
951         * configure: Regenerate.
953 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
955         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
956         (LIBITM_ENABLE_SYMVERS): Handle sun style.
957         * Makefile.am: Handle sun style versioning.
958         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
959         * configure: Regenerate.
960         * Makefile.in: Regenerate.
962 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
964         * config/generic/asmcfi.h: Fix comment.
965         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
966         sequence without .hidden support, error for non-ELF targets.
967         (GTM_longjmp) [__ELF__]: Only use .hidden if
968         HAVE_ATTRIBUTE_VISIBILITY.
970 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
972         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
973         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
974         Dummy functions.
975         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
976         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
978 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
980         PR bootstrap/51098
981         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
982         * configure: Regenerate.
984 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
986         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
988 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
990         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
991         .hidden.
992         (.note.GNU-stack): Only use if __linux__.
993         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
994         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
995         * testsuite/libitm.c/reentrant.c: Likewise.
996         * testsuite/libitm.c/simple-2.c: Likewise.
997         * testsuite/libitm.c/txrelease.c: Likewise.
998         * testsuite/libitm.c++/static_ctor.C: Likewise.
1000 2011-11-10  Richard Henderson  <rth@redhat.com>
1002         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1003         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1004         * configure.ac (ARCH_X86_AVX): New conditional.
1005         * Makefile.in, configure: Rebuild.
1007 2011-11-09  Richard Henderson  <rth@redhat.com>
1009         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1010         * configure.ac: Use it.
1011         * config.h.in, configure: Rebuild.
1012         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1014 2011-11-09  Richard Henderson  <rth@redhat.com>
1016         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1017         * config/alpha/unaligned.h: Remove file.
1018         * config/generic/unaligned.h: Remove file.
1019         * config/x86/unaligned.h: Remove file.
1020         * config/generic/cachepage.h: Remove file.
1021         * config/posix/cachepage.cc: Remove file.
1022         * config/generic/cacheline.cc: Remove file.
1023         * config/x86/cacheline.cc: Remove file.
1024         * config/generic/cacheline.h (gtm_cacheline): Remove the
1025         store_mask, copy_mask, copy_mask_wb methods.
1026         * config/x86/cacheline.h: Likewise.
1027         * config/alpha/cacheline.h: Fall back to generic after setting size.
1028         * config/generic/tls.cc (gtm_mask_stack): Remove.
1029         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1030         (GTM_vpalignr_table): Remove.
1031         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1032         (GTM_pshift_table): Remove.
1033         * config/libitm_i.h: Don't include cachepage.h.
1034         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1035         * Makefile.in, testsuite/Makefile.in: Rebuild.
1037 2011-11-09  Richard Henderson  <rth@redhat.com>
1039         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1040         to emit branch prediction hint.
1042         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1043         Protect .note.GNU-stack with __linux__.
1045         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1046         * configure, aclocal.m4, config.h.in: Rebuild.
1047         * config/generic/asmcfi.h: New file.
1048         * config/x86/sjlj.S: Use it.
1050 2011-11-08  Richard Henderson  <rth@redhat.com>
1052         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1054 2011-11-08  Richard Henderson  <rth@redhat.com>
1056         * configure.tgt: Test correct directory for supported cpus.
1058         * configure.ac: Exit if unsupported.
1059         * configure: Rebuild.
1060         * configure.tgt: Delete boilerplate from libgomp for unsupported
1061         targets.  Set UNSUPPORTED for unsupported targets.
1063 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1065         * configure.tgt: Handle i386 like i[456]86.
1066         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1067         take address.
1068         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1069         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1071 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1073         * method-wbetl.cc: Update copyright notice.
1074         * aatree.cc: Same.
1075         * util.cc: Same.
1076         * libitm.h: Same.
1077         * memset.cc: Same.
1078         * eh_cpp.cc: Same.
1079         * barrier.tpl: Same.
1080         * useraction.cc: Same.
1081         * stmlock.h: Same.
1082         * memcpy.cc: Same.
1083         * common.h: Same.
1084         * config/generic/tls.cc: Same.
1085         * config/generic/cacheline.h: Same.
1086         * config/generic/cachepage.h: Same.
1087         * config/generic/cacheline.cc: Same.
1088         * config/generic/unaligned.h: Same.
1089         * config/x86/cacheline.h: Same.
1090         * config/x86/cacheline.cc: Same.
1091         * config/x86/unaligned.h: Same.
1092         * config/alpha/cacheline.h: Same.
1093         * config/alpha/unaligned.h: Same.
1094         * config/alpha/sjlj.S: Same.
1095         * config/posix/cachepage.cc: Same.
1096         * config/linux/futex.h: Same.
1097         * config/linux/alpha/futex_bits.h: Same.
1099 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1101         * libitm.texi: No cover text and invariant sections.
1103 2011-11-03  Richard Henderson  <rth@redhat.com>
1105         * local_type_traits: New file.
1106         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1108 2011-11-03  Richard Henderson  <rth@redhat.com>
1110         * configure.ac: Don't test for gfortran.
1111         * configure: Rebuild.
1113         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1114         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1116 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1118         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1119         * testsuite/libitm.c/memset-1.c: Same.
1120         * testsuite/libitm.c/c.exp: Same.
1121         * testsuite/lib/libitm-dg.exp: Same.
1122         * testsuite/lib/libitm.exp: Same.
1123         * testsuite/libitm.c++/c++.exp: Same.
1125 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1127         * testsuite/config/default.exp: Update copyright date.
1128         * configure.ac: Add copyright info.
1129         * configure.tgt: Same.
1131 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1133         * testsuite/libitm.c/reentrant.c: XFAIL.
1134         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1136 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1138         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1139         handle aborts.
1140         (_ITM_abortTransaction): Handle aborts of outer transactions.
1141         * libitm_i.h: Same.
1142         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1143         * libitm.texi: Document aborts of outer transactions.
1144         * testsuite/libitm.c/cancel.c: New file.
1146 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1148         * testsuite/*: Change __transaction to __transaction_atomic or
1149         __transaction_relaxed.
1151 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1153         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1154         (gtm_thr): Same.
1156 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1158         * libitm_i.h: Add gl_wt dispatch.
1159         * retry.cc (parse_default_method): Same.
1160         * method-gl.cc: New file.
1161         * Makefile.am: Use method-gl.cc.
1162         * Makefile.in: Rebuild.
1164 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1166         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1167         safety if requested by a TM method.
1168         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1169         privatization safety.
1170         * method-serial.cc: Same.
1172 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1174         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1175         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1176         undolog-related member functions from *_local to *_undolog.
1177         * local.cc (gtm_thread::commit_undolog): Same.
1178         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1179         (GTM::gtm_thread::rollback): Roll back undolog before
1180         dispatch-specific rollback.
1182 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1184         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1185         re-initialization of the current method group.
1186         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1188 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1190         * alloc.cc (commit_allocations_2): Do not free transaction-local
1191         memory when committing a nested transaction.
1193 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1195         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1196         serial-irrevocable dispatch, not serial.
1198 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1200         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1201         declarations.
1202         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1203         * method-serial.cc: Implement begin_or_restart().
1204         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1205         dispatch-specific begin_or_restart().
1206         (GTM::gtm_thread::restart): Same.
1208 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1210         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1211         restarting without switching to serial mode.
1212         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1213         transaction state. Choose closed-nesting alternative if available.
1214         (GTM::gtm_thread::set_default_dispatch): New.
1215         (parse_default_method): New.
1216         (GTM::gtm_thread::number_of_threads_changed): New.
1217         * method-serial.cc (GTM::serial_mg): New method group class.
1218         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1219         fini.
1220         (GTM::serial_dispatch): Same.
1221         (GTM::serialirr_onwrite_dispatch): Same.
1222         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1223         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1224         registered threads.
1225         (GTM::gtm_thread::gtm_thread): Same.
1226         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1227         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1228         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1229         choose dispatch but set state according to dispatch here.
1230         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1231         (GTM::method_group): New class.
1232         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1233         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1234         * libitm.texi: Document TM methods, method groups, method life cycle.
1235         Rename method sets to method groups.
1237 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1239         * config/x86/tls.h: Moved to ...
1240         * config/linux/x86/tls.h: ... here.
1242 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1244         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1245         Add X32 support.
1246         * config/x86/sjlj.S: Same.
1248 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1250         * config/linux/rwlock.h: New file.
1251         * config/linux/rwlock.c: New file.
1252         * configure.ac: Reenable futex support (undo SVN rev 157758).
1253         * Makefile.am: Same.
1254         * configure.tgt: Same.
1255         * config/linux/alpha/futex_bits.h: Same.
1256         * config/linux/futex.h: Same. Return number of woken processes.
1257         * config/linux/futex.cc: Same.
1258         (futex_wait): Remove spinning.
1259         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1260         Use __x86_64__ instead of __LP64__.
1261         * aclocal.m4: Include generic futex checks.
1262         * configure: Rebuild.
1263         * Makefile.in: Rebuild.
1264         * testsuite/Makefile.in: Rebuild.
1265         * beginend.cc: Include pthread.h.
1266         * config/posix/cachepage.cc: Same.
1268 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1270         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1271         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1272         (set_gtm_thr): New.
1273         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1274         (set_gtm_thr): New.
1275         (GTM::gtm_thread::thread_num): Removed.
1276         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1277         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1278         tx-to-thread renaming.
1279         * beginend.cc: Adapted to tx-to-thread renaming.
1280         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1281         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1282         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1283         gtm_transaction to gtm_thread.
1284         (_ITM_getThreadnum): Removed. Not supported anymore.
1285         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1286         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1287         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1288         gtm_tx-to-gtm_thr renaming if necessary.
1289         * eh_cpp.cc: Same.
1290         * local.cc: Same.
1291         * retry.cc: Same.
1292         * clone.cc: Same.
1293         * alloc.cc: Same.
1294         * alloc_c.cc: Same.
1295         * alloc_cpp.cc: Same.
1296         * method-serial.cc: Same.
1297         * config/generic/tls.cc: Same.
1298         * config/posix/rwlock.h (gtm_rwlock): Same.
1299         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1301 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1303         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1304         implementation.
1305         (gtm_rwlock::read_unlock): Same.
1306         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1307         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1308         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1309         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1310         w_upgrade. Replaced by per-transaction flags (in shared_state).
1311         Added c_confirmed_writers.
1312         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1313         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1314         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1315         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1316         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1317         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1318         * libitm.texi: Document locking conventions and implementations in
1319         libitm.
1321 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1323         * libitm_i.h (next_tx): Add list of all threads' transaction.
1324         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1325         transaction with list of transactions and ...
1326         (thread_exit_handler): ... deregister here.
1327         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1328         * config/x86/target.h: Same.
1330 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1332         * testsuite/libitm.c++/static_ctor.C: New file.
1334 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1336         * testsuite/libitm.c/reentrant.c: New file.
1338 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1340         * config/generic/tls.h: Remove the free list for transactions and ...
1341         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1342         (GTM::gtm_transaction::operator delete): ... and release here.
1343         (thread_exit_handler): New. Delete tx when thread terminates.
1344         (thread_exit_init): New.
1345         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1346         * testsuite/libitm.c/txrelease.c: New file.
1348 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1350         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1351         * testsuite/libitm.c/notx.c: New file.
1353 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1355         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1356         * libitm_i.h (local_tid): ... to here.
1357         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1358         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1360 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1362         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1363         serialirr_onwrite_dispatch as new default for now.
1364         * method-serial.cc (serialirr_onwrite_dispatch): New.
1365         (GTM::dispatch_serialirr_onwrite): New.
1366         * libitm_i.h: Same.
1368 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1370         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1371         * query.cc (_ITM_getTransactionId): There is no active transaction if
1372         the current nesting level is zero.
1374 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1376         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1377         rollback.
1379 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1381         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1382         transaction properties from the caller instead of from the
1383         transaction object.
1384         * libitm_i.h: Same.
1385         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1387 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1389         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1390         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1391         * dispatch.h: Same.
1392         * method-serial.cc: Same.
1393         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1394         flat nesting as default, and closed nesting on demand.
1395         (GTM::gtm_transaction::rollback): Same.
1396         (_ITM_abortTransaction): Same.
1397         (GTM::gtm_transaction::restart): Same.
1398         (GTM::gtm_transaction::trycommit): Same.
1399         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1400         (choose_code_path): New.
1401         (GTM::gtm_transaction_cp::save): New.
1402         (GTM::gtm_transaction_cp::commit): New.
1403         * query.cc (_ITM_inTransaction): Support flat nesting.
1404         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1405         (GTM::gtm_transaction): Support flat and closed nesting.
1406         * alloc.cc (commit_allocations_2): New.
1407         (commit_cb_data): New helper struct.
1408         (GTM::gtm_transaction::commit_allocations): Handle nested
1409         commits/rollbacks.
1410         * libitm.texi: Update user action section, add description of nesting.
1412 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1414         * libitm_i.h: Add closed nesting as restart reason.
1415         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1417 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1419         * useraction.cc: Use vector instead of list to store actions.
1420         Also support partial rollbacks for closed nesting.
1421         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1422         * beginend.cc: Same.
1424 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1426         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1427         closed_nesting flags, as well as a closed nesting alternative.
1428         * method-serial.cc: Same.
1429         (serial_dispatch): Renamed to serialirr_dispatch.
1430         (GTM::dispatch_serialirr): Same.
1431         (serial_dispatch_ul): Renamed to serial_dispatch.
1432         (GTM::dispatch_serial): Same.
1434 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1436         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1438 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1440         * aatree.h (aa_tree::remove): New.
1441         (aa_tree::operator new): Add placement new.
1443 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1445         * containers.h: New file.
1446         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1447         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1448         * common.h: ... to here.
1449         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1450         * local.cc: Same.
1452 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1454         * libitm_i.h (STATE_ABORTING): Remove.
1455         * beginend.cc (_ITM_abortTransaction): Same.
1456         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1457         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1458         (_ITM_rollbackTransaction): Remove.
1459         * beginend.cc: Same.
1460         * libitm.map: Same.
1461         * libitm.texi: Document these ABI changes.
1463 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1465         * libitm.texi: New file.
1466         * Makefile.am: Add libitm.texi.
1467         * Makefile.in: Rebuild.
1469 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1471         * libitm_i.h: Move parts to common.h and dispatch.h.
1472         * common.h: New file.
1473         * dispatch.h: New file, new dispatch class.
1474         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1475         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1476         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1477         decision to retry.cc.
1478         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1479         only.
1480         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1481         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1482         logging.
1483         * barrier.cc: Use new barriers definitions.
1484         (abi_dispatch::memmove_overlap_check): New.
1485         * config/x86/x86_sse.cc: Same.
1486         * config/x86/x86_avx.cc: Same.
1487         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1488         memcpy.cc.
1489         * Makefile.in: Rebuild.
1490         * method-readonly.cc: Remove.
1491         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1492         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1494 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1496         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1497         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1498         * testsuite/libitm.c/dropref-2.c: Same.
1499         * testsuite/libitm.c/dropref.c: Same.
1501 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1503         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1504         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1505         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1506         * alloc_c.cc: Same.
1507         * barrier.tpl: Same.
1508         * beginend.c: Same.
1509         * config/generic/tls.h: Same.
1510         * config/x86/tls.h: Same.
1511         * libitm_i.h: Same.
1512         * memcpy.cc: Same.
1513         * memset.cc: Same.
1514         * method-readonly.cc: Same.
1515         * method-serial.cc: Same.
1516         * method-wbetl.cc: Same.
1517         * retry.cc: Same.
1519 2011-03-03  Richard Henderson  <rth@redhat.com>
1521         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1522         From Patrik Marlier <patrick.marlier@unine.ch>.
1524 2011-02-03  Richard Henderson  <rth@redhat.com>
1526         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1527         * configure.ac: Use it.
1528         * configure, config.h.in: Rebuild.
1529         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1530         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1531         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1532         * libitm.map: Use wildcards to match size_t mangling.
1534 2010-12-14  Richard Henderson  <rth@redhat.com>
1536         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1537         blocks of TIDs per thread.
1538         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1539         (setup_gtm_thr): Return the thread structure.
1540         * config/x86/tls.h (setup_gtm_thr): Likewise.
1542 2010-12-14  Richard Henderson  <rth@redhat.com>
1544         * clone.cc (table_lock): Remove.
1545         (find_clone): Don't take it.
1546         (ExcludeTransaction): New helper class.
1547         (_ITM_registerTMCloneTable): Use it.
1548         (_ITM_deregisterTMCloneTable): Likewise.
1550 2010-12-14  Richard Henderson  <rth@redhat.com>
1552         * config/x86/tls.h: New file.
1554 2010-07-15  Richard Henderson  <rth@redhat.com>
1556         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1557         * Makefile.in: Rebuild.
1559 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1561         * method-wbetl.cc (trydropreference): Fix source line.
1563 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1565         * libitm.h: Add comment.
1566         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1568 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1570         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1571         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1572         available, use pthread mutexes.
1573         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1574         * config.h.in: Regenerate.
1575         * configure: Regenerate.
1577 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1579         * libitm.h (ITM_PURE): Define.
1580         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1582 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1584         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1585         (validate): Add comment.
1586         (trydropreference): New.
1587         * method-readonly.cc (class readonly_dispatch): Add
1588         trydropreference.
1589         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1590         Call trydropreference().
1591         * libitm.h (_ITM_dropReferences): Remove const attribute.
1592         * method-serial.cc (class serial_dispatch): Add trydropreference.
1593         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1595 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1597         * memcpy.cc (do_memcpy): Comment.
1599 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1601         * barrier.tpl: Add comments throughout.
1603 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1605         * method-wbetl.cc (struct w_entry): Add comments.
1606         (trycommit): Same.
1607         (rollback): Same.
1609 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1611         * alloc_c.cc (_ITM_dropReferences): New.
1612         * libitm.map (_ITM_dropReferences): Add.
1613         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1614         * libitm_i.h (struct gtm_transaction): Declare
1615         drop_references_allocations and drop_references_local.
1616         * local.cc (rollback_local): Ignore memory when applicable.
1617         (drop_references_local): New.
1619 2010-06-23  Richard Henderson  <rth@redhat.com>
1621         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1622         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1623         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1624         * config/alpha/target.h: Likewise.
1625         * config/generic/tls.cc (gtm_mask_stack): Use it.
1627 2010-06-23  Richard Henderson  <rth@redhat.com>
1629         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1630         a mutex instead of trying a lock-free compare-and-swap on the list.
1631         (gtm_cacheline_page::operator delete): Likewise.
1633 2010-06-16  Richard Henderson  <rth@redhat.com>
1635         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1636         that overlap the libitm stack.
1637         * barrier.tpl: Mark incoming stack.
1638         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1639         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1640         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1641         * memcpy.cc, memset.cc: Likewise.
1642         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1643         * config/generic/tls.h (gtm_thread): Add stack_top member.
1644         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1645         * libitm_i.h (gtm_mask_stack): Declare.
1646         * config/generic/tls.cc: New file.
1647         * Makefile.am (libitm_la_SOURCES): Add it.
1648         (AM_CXXFLAGS): Turn off exceptions.
1649         * Makefile.in: Rebuild.
1651 2010-06-16  Richard Henderson  <rth@redhat.com>
1653         * alloc.cc (struct gtm_alloc_action): Move definition ...
1654         * libitm_i.h: ... here.
1655         (class gtm_transaction): Declare new and delete.
1656         * beginend.cc (alloc_tx): Reformulate as operator new.
1657         (free_tx): Reformulate as operator delete.
1658         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1660 2010-06-11  Richard Henderson  <rth@redhat.com>
1662         * clone.cc (clone_entry_compare): Fix typo.
1663         From Patrik Marlier <patrick.marlier@unine.ch>.
1665 2010-05-13  Richard Henderson  <rth@redhat.com>
1667         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1668         in extern "C".
1670 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1672         * libitm_i.h (struct gtm_transaction): Remove
1673         get_allocation_size.
1674         (record_allocation): Remove size parameter.
1675         * libitm.map (_ITM_realloc): Remove.
1676         * alloc_c.cc (_ITM_realloc): Remove.
1677         (_ITM_malloc): Remove size argument to record_allocation.
1678         (_ITM_calloc): Same.
1679         * alloc_cpp.cc (_ZGTtnwm): Same.
1680         (_ZGTtnwmRKSt9nothrow_t): Same.
1681         (_ZGTtnam): Same.
1682         (_ZGTtnamRKSt9nothrow_t): Same.
1683         * alloc.cc (struct gtm_alloc_action): Remove size.
1684         (get_allocation_size): Remove.
1685         (commit_allocations): Add comment.
1686         (record_allocation): Remove size parameter.
1687         (forget_allocation): Remove set of size.
1689 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1691         * Makefile.am (abi_version): New.
1692         (AM_CXXFLAGS): Pass abi_version.
1693         * Makefile.in: Regenerate.
1694         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1696 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1698         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1699         _ITM_getTMCloneOrIrrevokable.
1700         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1701         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1703 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1705         * configure.ac: Remove Linux futex support.
1706         * configure.tgt (config_path): Same.
1707         * Makefile.am: Same.
1708         * config/linux: Remove entire directory.
1709         * configure: Rebuild.
1710         * Makefile.in: Rebuild.
1711         * testsuite/Makefile.in: Rebuild.
1713 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1715         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1716         switching to serial mode.
1717         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1719 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1721         * configure.tgt: Add emacs -*- tags.
1722         * barrier.tpl: Same.
1724 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1726         * Makefile.am: Rename serial.cc to method-serial.cc.
1727         * Makefile.in: Regenerate with automake 1.11.1.
1728         * testsuite/Makefile.in: Same.
1729         * aclocal.m4: Regenerate with aclocal 1.11.1.
1730         * method-serial.cc: Rename from serial.cc.
1731         * libitm_i.h (struct gtm_transaction): Update comment on
1732         serialirr_mode.
1734 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1736         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1737         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1739 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1741         * configure: Rebuild.
1743 2009-11-12  Richard Henderson  <rth@redhat.com>
1745         * Rewrite everything in C++.
1747 2009-11-03  Richard Henderson  <rth@redhat.com>
1749         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1750         * Makefile.am (libitm_la_SOURCES): Add them.
1751         * configure.ac (ARCH_X86): New conditional.
1752         * Makefile.in, configure: Rebuild.
1753         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1754         Move futex setup into "other system configury" case.
1755         * local.c (rollback_local): Merge into ...
1756         (GTM_rollback_local): ... here.
1757         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1758         (_ITM_LB): Define as an alias to GTM_LB.
1760 2009-11-03  Richard Henderson  <rth@redhat.com>
1762         * method-readonly.c: New file.
1763         * Makefile.am (libitm_la_SOURCES): Add it.
1764         * Makefile.in: Rebuild.
1765         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1766         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1767         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1768         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1769         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1770         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1771         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1772         gtm_get_clock, gtm_inc_clock): New.
1773         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1774         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1775         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1776         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1777         replace uses with new libitm_i.h symbols.
1778         (dispatch_wbetl): Rename from wbetl_dispatch.
1779         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1780         away from dispatch_readonly; abort if the beginTransaction call
1781         asserted that the transaction was readonly.
1783 2009-11-03  Richard Henderson  <rth@redhat.com>
1785         * memset.c: New file.
1786         * Makefile.am (libitm_la_SOURCES): Add it.
1787         * Makefile.in: Rebuild.
1788         * testsuite/libitm.c/memset-1.c: New.
1790 2009-11-03  Richard Henderson  <rth@redhat.com>
1792         * dispatch.c: Remove file.
1793         * useraction.c (struct gtm_user_action): Move from libitm.h.
1794         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1795         (serial_memset, serial_memmove, serial_memcpy): Remove.
1796         (serial_W*, serial_R*): Remove.
1797         (serial_dispatch): Update to match.
1798         * configure.ac: Move Werror down below configure checks.  Don't
1799         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1800         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1801         Use GCC_AC_FUNC_MMAP_BLACKLIST
1802         * libitm.h: Split out all internal items to...
1803         * libitm_i.h: ... here.  New file.
1804         * copymask.c: New file.
1805         * local.c (struct gtm_local_undo): Move from libitm.h.
1806         (GTM_alloc_local): Rename from alloc_local; export.
1807         * memcpy.c: New file.
1808         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1809         * config/posix/page.c: New file.
1810         * config/posix/target_tls.h: Remove file.
1811         * barrier.c: New file.
1812         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1813         copymask.c, page.c.
1814         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1815         * method-wbetl.c: Rewrite for new cacheline methods.
1816         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1818         * config/alpha/sjlj.S: Fix typo.
1819         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1820         * config/alpha/copymask.c: New file.
1821         * config/alpha/target.h (CACHELINE_SIZE): New.
1822         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1824         * config/x86/target_i.h: Copy functions from x86/target.h.
1825         * config/x86/copymask.c: New file.
1826         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1827         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1828         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1829         * config/x86/target_tls.h: Move contents to target_i.h.
1831         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1832         * testsuite/libitm.c/memcpy-1.c: New.
1834 2009-10-22  Richard Henderson  <rth@redhat.com>
1836         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1837         (AM_CCASFLAGS): New.
1838         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1839         saving/restoring _AC_ARG_VAR_PRECIOUS.
1840         * Makefile.in, aclocal.m4, config.h.in, configure,
1841         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1843 2009-10-22  Richard Henderson  <rth@redhat.com>
1845         * testsuite/*: Update for new compiler syntax.
1847 2009-10-21  Richard Henderson  <rth@redhat.com>
1849         * libitm.h (_ITM_abortReason): Add outerAbort.
1851 2009-08-03  Richard Henderson  <rth@redhat.com>
1853         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1854         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1855         * method-wbetl.c (struct w_entry): Remove mask.
1856         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1857         adjust all callers.
1859 2009-07-22  Richard Henderson  <rth@redhat.com>
1861         * eh_cpp.c: New file.
1862         * Makefile.am (libitm_la_SOURCES): Add it.
1863         * Makefile.in: Rebuild.
1864         * beginend.c (GTM_rollback_transaction): Undo exception state.
1865         (GTM_trycommit_transaction): Mark inline.
1866         (GTM_trycommit_and_finalize_transaction): Split out from ...
1867         (_ITM_commitTransaction): ... here.
1868         (_ITM_commitTransactionEH): New function.
1869         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1870         cxa_unthrown, eh_in_flight; reorder.
1872         * testsuite/libitm.c++/c++.exp: New.
1873         * testsuite/libitm.c++/eh-1.C: New.
1875         * aatree.c (aa_free): Remove REGPARM.
1876         * aatree.h: Remove all REGPARM.
1878 2009-07-18  Richard Henderson  <rth@redhat.com>
1880         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1881         * Makefile.am (libitm_la_SOURCES): Add them.
1882         * Makefile.in: Rebuild.
1883         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1884         (GTM_trycommit_transaction): Likewise.
1885         * libitm.h: Include aatree.h
1886         (struct gtm_alloc_action): New.
1887         (struct gtm_transaction): Add alloc_actions.
1888         (GTM_record_allocation, GTM_forget_allocation): Declare.
1889         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1890         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1891         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1892         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1893         _ZGTtdaPvRKSt9nothrow_t): Export.
1895 2009-07-18  Richard Henderson  <rth@redhat.com>
1897         * target_tls.h: Move ...
1898         * config/posix/target_tls.h: ... here.
1900 2009-07-07  Richard Henderson  <rth@redhat.com>
1902         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1904 2009-07-07  Richard Henderson  <rth@redhat.com>
1906         * Update to GPL3.
1908 2009-07-07  Richard Henderson  <rth@redhat.com>
1910         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1911         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1913         * configure.tgt: Don't use -ftls-model for x86 linux.
1914         * libitm.h: Include target.h after standard includes.
1915         (_gtm_thr): Rename from gtm_thr.
1916         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1917         (gtm_disp, set_gtm_disp): New.
1918         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1919         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1920         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1922 2009-07-07  Richard Henderson  <rth@redhat.com>
1924         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1926 2009-07-06  Richard Henderson  <rth@redhat.com>
1928         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1929         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1930         (_ITM_beginTransaction): Take variadic arguments.
1931         (_ITM_registerThrownObject): Declare.
1932         * beginend.c, serial.c: Update.
1933         * libitm.map: Add _ITM_registerThrownObject.
1935 2009-01-28  Richard Henderson  <rth@redhat.com>
1937         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1938         * Makefile.in: Rebuild.
1939         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1940         (GTM_restart_transaction): Fix uninstrumented code check.
1941         * retry.c (GTM_decide_retry_strategy): Add serial check.
1942         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1943         automatically go irrevokable when in serial mode.
1944         * clone.c: New file.
1945         * libitm.h, libitm.map: Update.
1947 2009-01-27  Richard Henderson  <rth@redhat.com>
1949         * Makefile.am (LTCCASCOMPILE): Define.
1950         (libitm_la_SOURCES): Add methid-wbetl.c.
1951         * testsuite/Makefile.am: New
1952         * configure.ac: Add testsuite/Makefile.
1953         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1954         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1955         (_ITM_abortTransaction): Finalize implementation method; pass
1956         transaction properties to longjmp.
1957         (GTM_restart_transaction): Split out from ...
1958         (_ITM_commitTransaction): ... here.
1959         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1960         Move to config/x86/target.h.
1961         * config/linux/alpha/futex_bits.h: New.
1962         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1963         * config/x86/target.h: Disable target types for 32-bit.
1964         * config/alpha/sjlj.S, config/alpha/target.h: New.
1965         * libitm.h (struct gtm_dispatch): Add init, fini.
1966         (enum restart_reason): New.
1967         (struct gtm_transaction): Add method and restarts.
1968         * retry.c (GTM_decide_retry_strategy): Implement.
1969         * serial.c (serial_init, serial_fini): New.
1970         (GTM_serialmode): Finialize outgoing method.
1971         * method-wbetl.c: New.
1973 2008-12-09  Richard Henderson  <rth@redhat.com>
1975         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1976         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1977         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1978         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1979         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1980         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1981         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1982         * serial.c (serial_R##T, serial_W##T): Likewise.
1984 2008-11-21  Richard Henderson  <rth@redhat.com>
1986         * Initial commit.
1988 Copyright (C) 2008-2016 Free Software Foundation, Inc.
1990 Copying and distribution of this file, with or without modification,
1991 are permitted in any medium without royalty provided the copyright
1992 notice and this notice are preserved.