testsuite: Correct vec-rlmi-rlnm.c testsuite expected result
[official-gcc.git] / libitm / ChangeLog
blob02aadfe3b6139c48e2af621af9b0f61d644ee467
1 2020-10-01  Alan Modra  <amodra@gmail.com>
3         * config/powerpc/sjlj.S: Support __PCREL__ code.
5 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
9 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
12         and add BTI c to function entries.
14 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
18 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
20         PR bootstrap/95413
21         * configure: Regenerated.
23 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
25         PR bootstrap/95147
26         * configure: Regenerated.
28 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
30         * configure: Regenerated.
32 2020-05-12  Nathan Sidwell  <nathan@acm.org>
34         Fix throw specifiers on interface.
35         * libitm/libitm.h (_ITM_NOTHROW): Define.
36         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
37         (_ITM_cxa_begin_catch): Use it.
38         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
39         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
40         __cxa_get_globals.
41         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
42         (_ITM_cxa_begin_catch): Likewise.
44 2020-05-05  Nathan Sidwell  <nathan@acm.org>
46         * testsuite/lib/libitm.exp (libitm_init): Add
47         -fdiagnostics-color=never to options.
49 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
51         PR libstdc++/79193
52         PR libstdc++/88999
54         * configure: Regenerated.
56 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
58         * configure.ac: Handle `--with-toolexeclibdir='.
59         * Makefile.in: Regenerate.
60         * aclocal.m4: Regenerate.
61         * configure: Regenerate.
62         * testsuite/Makefile.in: Regenerate.
64 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
66         Update copyright years.
68         * libitm.texi: Bump @copying's copyright year.
70 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
72         PR libgomp/91938
73         * configure.tgt: Avoid IE tls on *-*-musl*.
75 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
77         * configure: Regenerate.
79 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
81         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
83 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
85         * configure.tgt: Handle *-*-uclinux*.
86         * configure: Regenerate.
88 2019-09-06  Florian Weimer  <fweimer@redhat.com>
90         * configure: Regenerate.
92 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
94         PR other/79543
95         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
96         scanning to conform to the GNU Coding Standards.
97         * configure: Regenerate.
99 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
101         * Makefile.am (finclude): Remove.
102         * Makefile.in: Regenerated.
104 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
106         Update copyright years.
108 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
110         * libitm.texi: Bump @copying's copyright year.
112 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
114         PR c++/88482
115         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
116         void * to void (*) (void *).
117         (_ITM_cxa_throw): Likewise.
118         * libitm.h (_ITM_cxa_throw): Likewise.
119         * libitm.texi (_ITM_cxa_throw): Likewise.
121 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
123         * config/powerpc/target.h (htm_available):  Add support for
124         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
126 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
128         PR bootstrap/82856
129         * Makefile.am: Include multilib.am.
130         (AUTOMAKE_OPTIONS): Add info-in-builddir.
131         (CLEANFILES): Remove libitm.info.
132         * configure.ac: Remove AC_PREREQ.
133         * testsuite/Makefile.am (RUNTEST): Remove quotes.
134         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
135         Regenerate.
137 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
139         PR libitm/86293
140         * method-serial.cc: Mark varible as potentially unused
141         to silence warning.
143 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
145         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
146         absolute relocation in a shared library.
148 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
150         PR libitm/85988
151         * config/linux/x86/tls.h (SEG_READ): Use the offset of
152         __private_tm as base.
153         (SEG_WRITE): Likewise.
154         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
155         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
156         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
157         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
158         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
160 2018-05-17  Jason Merrill  <jason@redhat.com>
162         * beginend.cc (save): Disable -Werror=deprecated-copy.
164 2018-05-02  Tom de Vries  <tom@codesourcery.com>
166         PR testsuite/85106
167         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
169 2018-05-02  Tom de Vries  <tom@codesourcery.com>
171         PR testsuite/85106
172         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
174 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
176         * config/x86/sjlj.S (_ITM_beginTransaction): Add
177         (__CET__ & 2) != 0 check for shadow stack.
178         (GTM_longjmp): Likewise.
180 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
182         * configure: Regenerated.
184 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
186         PR target/85489
187         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
189 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
191         * configure: Regenerated.
193 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
195         PR jit/85384
196         * configure: Regenerate.
198 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
200         PR target/84148
201         * configure: Regenerate.
203 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
205         Update copyright years.
207         * libitm.texi: Bump @copying's copyright year.
209 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
211         * Makefile.in: Regenerate.
212         * acinclude.m4: Add enable.m4 and cet.m4.
213         * config/x86/sjlj.S: Include cet.h.
214         (_ITM_beginTransaction): Add _CET_ENDBR.
215         Save Shadow Stack pointer.
216         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
217         * config/x86/target.h (struct gtm_jmpbuf):
218         Add new field for Shadow Stack pointer.
219         * configure: Regenerate.
220         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
221         * configure.ac: Update libtool_VERSION for x86.
222         * testsuite/Makefile.in: Regenerate.
224 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
226         * libitm/config/x86/target.h: Add new field (ssp).
227         * libitm/config/x86/sjlj.S: Change offsets.
229 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
231         * testsuite/lib/libitm.exp: Load scanlang.exp.
233 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
235         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
237 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
239         PR other/79046
240         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
241         of cat to get version from BASE-VER file.
242         * testsuite/Makefile.in: Regenerated.
244 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
246         * config/x86/target.h (htm_available): Determine vendor from
247         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
249 2017-01-18  Torvald Riegel  <triegel@redhat.com>
251         * config/x86/target.h (htm_available): Add check for some processors
252         on which TSX is broken.
254 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
256         PR other/79046
257         * configure.ac: Add GCC_BASE_VER.
258         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
259         get version from BASE-VER file.
260         * testsuite/Makefile.in: Regenerated.
261         * configure: Regenerated.
262         * Makefile.in: Regenerated.
264 2017-01-04  Alan Modra  <amodra@gmail.com>
266         * Makefile.in: Regenerate.
267         * testsuite/Makefile.in: Regenerate.
269 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
271         Update copyright years.
273         * libitm.texi: Bump @copying's copyright year.
275 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
277         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
278         * aclocal.m4: Regenerate.
279         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
280         LIBITM_CHECK_LINKER_HWCAP.
282 2016-11-15  Matthias Klose  <doko@ubuntu.com>
284         * configure: Regenerate.
286 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
288         PR libitm/70456
289         * util.cc (xmalloc): Use posix_memalign to allocate memory on
290         on cache line if requested.
292 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
294         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
295         function attribute to disable floating point in begin_transaction() on
296         S/390.
297         * beginend.cc (begin_transaction): Use
298         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
300 2016-01-22  Torvald Riegel  <triegel@redhat.com>
302         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
303         boundary.
304         (htm_fastpath): Remove.
305         (gtm_thread::begin_transaction): Fix HTM fastpath.
306         (_ITM_commitTransaction): Adapt.
307         (_ITM_commitTransactionEH): Adapt.
308         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
309         and accessors.
310         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
311         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
312         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
313         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
314         * libitm/method-serial.cc (htm_mg): Adapt.
315         (gtm_thread::serialirr_mode): Adapt.
316         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
318 2016-01-21  Torvald Riegel  <triegel@redhat.com>
320         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
321         or AIX.
323 2016-01-19  Richard Henderson  <rth@redhat.com>
325         PR bootstrap/69343
326         PR bootstrap/69339
327         Revert:
328         2016-01-13  Richard Henderson  <rth@redhat.com>
330         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
331         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
332         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
333         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
334         * configure.ac (ARCH_AARCH64): New conditional.
335         (ARCH_PPC, ARCH_S390): Likewise.
336         * Makefile.in, configure: Rebuild.
338         * libitm.h (_ITM_TYPE_M128): Always define.
339         * vect64.cc: Split ...
340         * vect128.cc: ... out of...
341         * config/x86/x86_sse.cc: ... here.
342         * config/arm/neon.cc: New file.
344 2016-01-19  Torvald Riegel  <triegel@redhat.com>
346         * local_type_traits: Remove file.
347         * libitm_i.h: Don't include it anymore.
348         (sized_integral): Remove.
350 2016-01-16  Torvald Riegel  <triegel@redhat.com>
352         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
353         safety.
354         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
355         * libitm/testsuite/libitm.c/priv-1.c: New.
357 2015-01-15  Torvald Riegel  <triegel@redhat.com>
359         testsuite/libitm.c++/libstdc++-safeexc.C: New.
361 2016-01-13  Torvald Riegel  <triegel@redhat.com>
363         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
364         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
365         (gtm_rwlock::write_unlock): Likewise.
367 2016-01-13  Richard Henderson  <rth@redhat.com>
369         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
370         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
371         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
372         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
373         * configure.ac (ARCH_AARCH64): New conditional.
374         (ARCH_PPC, ARCH_S390): Likewise.
375         * Makefile.in, configure: Rebuild.
377         * libitm.h (_ITM_TYPE_M128): Always define.
378         * vect64.cc: Split ...
379         * vect128.cc: ... out of...
380         * config/x86/x86_sse.cc: ... here.
381         * config/arm/neon.cc: New file.
383 2016-01-13  Torvald Riegel  <triegel@redhat.com>
385         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
386         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
387         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
388         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
389         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
390         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
391         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
392         (serialirr_dispatch::snapshot_most_recent): New.
393         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
395 2016-01-12  Torvald Riegel  <triegel@redhat.com>
397         * libitm_i.h (gtm_mask_stack): Remove.
398         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
399         * stmlock.h: Remove file.
400         * config/alpha/cacheline.h: Likewise.
401         * config/generic/cacheline.h: Likewise.
402         * config/powerpc/cacheline.h: Likewise.
403         * config/sparc/cacheline.h: Likewise.
404         * config/x86/cacheline.h: Likewise.
406 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
408         Update copyright years.
410         * libitm.texi: Bump @copying's copyright year.
412 2015-11-26  Torvald Riegel  <triegel@redhat.com>
414         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
415         (ml_wt_dispatch::pre_write): Adapt.
416         (ml_wt_dispatch::pre_load): Likewise.
418 2015-11-22  Torvald Riegel  <triegel@redhat.com>
420         * libitm_i.h (gtm_alloc_action): Remove union.
421         * testsuite/libitm.c/alloc-1.c: New.
423 2015-11-19  Torvald Riegel  <triegel@redhat.com>
425         * testsuite/libitm.c++/eh-5.C: New.
426         * libitm.h (_ITM_cxa_free_exception): New.
427         * libitm.map (_ITM_cxa_free_exception): Add it.
428         * libitm.texi: Update ABI docs.
429         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
430         (gtm_transaction_cp::cxa_uncaught_count): Add.
431         (gtm_thread::cxa_unthrown): Remove.
432         (gtm_thread::cxa_uncaught_count_ptr): Add.
433         (gtm_thread::cxa_uncaught_count): Add.
434         (gtm_thread::drop_references_allocations): Rename to...
435         (gtm_thread::discard_allocation): ... this and adapt.
436         (gtm_thread::init_cpp_exceptions): New.
437         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
438         (gtm_thread::begin_transaction): Likewise.
439         (gtm_transaction_cp::save): Likewise.
440         (gtm_thread::trycommit): Likewise.
441         * eh_cpp.cc: Add overview comments.
442         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
443         (free_any_exception, _ITM_cxa_free_exception): New.
444         (gtm_thread::init_cpp_exceptions): Define.
445         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
446         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
447         (gtm_thread::revert_cpp_exceptions): Likewise.
449 2015-11-09  Torvald Riegel  <triegel@redhat.com>
451         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
452         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
453         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
454         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
455         (gtm_thread::forget_allocations): New overload with size_t argument.
456         * alloc.c (gtm_thread::forget_allocation): Define new overload and
457         adapt existing one.
458         (gtm_thread::record_allocation): Adapt.
459         (gtm_thread::commit_allocations_1): Adapt.
460         (gtm_thread::commit_allocations_2): Adapt.
461         * testsuite/libitm.c++/newdelete.C: New.
463 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
464             Joseph Myers  <joseph@codesourcery.com>
465             Mark Shinwell  <shinwell@codesourcery.com>
466             Andrew Stubbs  <ams@codesourcery.com>
467             Rich Felker <dalias@libc.org>
469         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
470         GTM_begin_transaction for compatibility with FDPIC.
472 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
474         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
475         using load_gcc_lib.
477 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
479         PR libitm/61164
480         * local_atomic (__always_inline): Rename to...
481         (__libitm_always_inline): ... this.
483 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
485         PR target/52482
486         * config/powerpc/sjlj.S: Port to Xcode 2.5.
488 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
490         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
491         operands "op" and "val" to int.
493 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
495         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
496         "op" and "val" to int.
498 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
500         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
501         "op" and "val" to int.
503 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
505         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
506         Declare as static int.
507         (FUTEX_PRIVATE_FLAG): Remove L suffix.
508         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
510 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
512         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
513         sys_futex0 function.
515 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
517         * Makefile.in: Regenerated with automake-1.11.6.
518         * aclocal.m4: Likewise.
519         * configure: Likewise.
520         * testsuite/Makefile.in: Likewise.
522 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
524         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
525         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
527 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
529         PR libitm/64360
530         * libitm.c/stackundo.c (test2): Make it static.
531         (test1): Likewise.
533 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
535         Update copyright years.
537 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
539         * libitm.texi: Bump @copying's copyright year.
541 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
543         * testsuite/lib/libitm.exp: Load target-utils.exp.
544         Move load of target-supports.exp earlier.
546 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
548         * configure.tgt (x86_64): Tune -m32 multilib to generic.
550 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
552         PR bootstrap/63784
553         * configure: Regenerated.
555 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
557         PR target/63610
558         * configure: Regenerate.
560 2014-10-06  Marek Polacek  <polacek@redhat.com>
562         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
563         * testsuite/libitm.c/memset-1.c: Likewise.
565 2014-07-24  Richard Henderson  <rth@redhat.com>
567         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
568         addressing mode in epilogue.
570 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
572         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
573         -mclear-hwcap instead.
574         * configure: Regenerate.
575         * clearcap.map: Remove.
577 2014-05-21  John Marino  <gnugcc@marino.st>
579         * configure.tgt (*-*-dragonfly*): New target.
581 2014-05-19  Richard Henderson  <rth@redhat.com>
583         * config/aarch64/sjlj.S: New file.
584         * config/aarch64/target.h: New file.
585         * configure.tgt: Enable aarch64.
587 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
589         * config/generic/asmcfi.h: Also check for
590         __GCC_HAVE_DWARF2_CFI_ASM.
592 2013-04-02  Richard Henderson  <rth@redhat.com>
594         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
595         * config/arm/target.h, config/sh/target.h: Likewise.
596         * config/sparc/target.h, config/x86/target.h: Likewise.
598 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
600         * config/linux/futex_bits.h: Include errno.h.
601         (sys_futex0): If syscall returns -1, return -errno rather than
602         -1.
604 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
606         * libitm.texi (Index): Rename to Library Index.
608 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
610         PR libitm/53113
611         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
612         (x86_avx.lo): Append -mavx to CXXFLAGS.
613         * Makefile.in: Regenerate.
615 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
617         Update copyright years
619 2014-01-02  Tobias Burnus  <burnus@net-b.de>
621         * libitm.texi: Bump @copying's copyright year.
623 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
625         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
626         (FUNC): Define ELFv2 variant.
627         (END): Likewise.
628         (HIDDEN): Likewise.
629         (CALL): Likewise.
630         (BASE): Likewise.
631         (LR_SAVE): Likewise.
633 2013-09-20  Alan Modra  <amodra@gmail.com>
635         * configure: Regenerate.
637 2013-08-30  Torvald Riegel  <triegel@redhat.com>
639         * config/posix/rwlock.cc: Fix initialization order.
641 2013-08-30  Torvald Riegel  <triegel@redhat.com>
643         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
644         (htm_fastpath): Assign an asm name.
645         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
646         HTM fast paths.
647         (_ITM_actions): Likewise.
648         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
649         x86_64.
650         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
651         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
652         field to the start of the structure.
653         * config/linux/rwlock.h (gtm_rwlock): Update comments.
654         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
655         handling for custom HTM fast paths.
657 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
658         Revert:
659         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
661         * configure.tgt: Add -msoft-float to XCFLAGS.
663 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
665         * configure.tgt: Add -msoft-float to XCFLAGS.
667 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
669         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
670         (htm_transaction_active): Enable zEC12 instructions in the
671         assembler.
672         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
674 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
676         * acinclude.m4: Add htm asm check for s390.
677         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
678         * configure: Regenerate.
679         * config/s390/target.h: Remove __HTM__ check.
680         (htm_available): Call getauxval to get hwcaps and check whether
681         HTM is available or not.
683 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
685         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
686         * configure.ac: Use it.
687         (AC_CHECK_HEADERS): Check for sys/auxv.h.
688         (AC_CHECK_FUNCS): Check for getauxval.
689         * config.h.in, configure: Rebuild.
690         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
691         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
692         (USE_HTM_FASTPATH): Define.
693         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
694         _HTM_RETRIES) New macros.
695         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
696         htm_begin_success, htm_commit, htm_transaction_active): New functions.
698 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
700         * config/s390/target.h: Include htmintrin.h.
701         (_HTM_ITM_RETRIES): New macro definition.
702         (htm_available, htm_init, htm_begin, htm_begin_success)
703         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
705 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
706             Cesar Philippidis  <cesar@codesourcery.com>
708         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
709         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
710         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
711         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
713 2013-06-20  Torvald Riegel  <triegel@redhat.com>
715         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
716         (_ITM_getTransactionId): Same.
717         * config/x86/target.h (htm_transaction_active): New.
719 2013-06-20  Torvald Riegel  <triegel@redhat.com>
721         PR libitm/57643
722         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
723         the HTM fastpath.
725 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
727         PR bootstrap/56714
728         * local_atomic (__always_inline): Always define our version.
729         (__calculate_memory_order): Mark inline.
730         (atomic_thread_fence): Ditto.
731         (atomic_signal_fence): Ditto.
732         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
733         (atomic_bool::atomic_flag_clear_explicit): Ditto.
734         (atomic_bool::atomic_flag_test_and_set): Ditto.
735         (atomic_bool::atomic_flag_clear): Ditto.
737 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
739         * config/s390/sjlj.S: New file.
740         * config/s390/target.h: New file.
741         * configure.tgt: Set options for S/390.
743 2013-03-23  Andi Kleen  <ak@linux.intel.com>
745         * local_atomic (__always_inline): Add.
746         (__calculate_memory_order, atomic_thread_fence,
747          atomic_signal_fence, test_and_set, clear, store, load,
748          exchange, compare_exchange_weak, compare_exchange_strong,
749          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
750         Add __always_inline to force inlining.
752 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
753             Jack Howarth  <howarth@bromo.med.uc.edu>
754             Patrick Marlier  <patrick.marlier@gmail.com>
756         PR libitm/55693
757         * alloc_cpp.cc: Enable function declarations on darwin.
758         * eh_cpp.cc: Likewise.
760 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
762         Update copyright years.
764 2012-11-09  Torvald Riegel  <triegel@redhat.com>
766         * beginend.cc (htm_fastpath): New.
767         (gtm_thread::begin_transaction, _ITM_commitTransaction,
768         _ITM_commitTransactionEH): Add HTM fastpath handling.
769         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
770         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
771         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
772         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
773         * configure.tgt: Add -mrtm to XCFLAGS.
774         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
775         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
776         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
777         * retry.cc (parse_default_method): Add HTM method parsing.
778         (gtm_thread::number_of_threads_changed): Use HTM by default if
779         available.
781 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
783         * configure: Regenerate.
785 2012-10-31  Richard Henderson  <rth@redhat.com>
787         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
788         * configure.ac: Use it.
789         * config.h.in, configure: Rebuild.
790         * testsuite/Makefile.in: Rebuild.
792 2012-10-24  Torvald Riegel  <triegel@redhat.com>
794         * libitm.texi: Clarify ABI requirements for data-logging functions.
796 2012-10-24  Torvald Riegel  <triegel@redhat.com>
798         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
799         it requires serial mode instead of assuming that for certain
800         dispatchs.
801         * dispatch.h (abi_dispatch::requires_serial): New.
802         (abi_dispatch::abi_dispatch): Adapt.
803         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
804         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
805         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
806         serial_dispatch::serial_dispatch,
807         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
809 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
811         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
812         and ia32 declarations some more.
813         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
815 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
817         PR other/43620
818         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
819         * configure: Regenerate.
820         * Makefile.in: Regenerate.
822 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
824         * configure: Regenerated.
826 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
828         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
830 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
832         * eh_cpp.cc: Fix __cxa_end_catch declaration.
834 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
836         * configure: Regenerated.
838 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
840         PR libitm/52854
841         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
842         for x86-64.
844 2012-04-03  Tristan Gingold  <gingold@adacore.com>
846         * configure: Regenerate.
848 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
850         PR bootstrap/52812
851         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
853 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
855         * testsuite/lib/libitm.exp: load fortran-modules.exp
857 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
859         * configure.tgt (*-*-irix6*): Remove.
861 2012-03-13  Torvald Riegel  <triegel@redhat.com>
863         PR libitm/52526
864         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
865         wake-up.
867 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
869         * configure.tgt (*-*-osf*): Remove.
870         * configure: Regenerate.
872 2012-03-05  Torvald Riegel  <triegel@redhat.com>
874         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
875         memtransfer/memset if size isn't larger than zero.
877 2012-03-02  Torvald Riegel  <triegel@redhat.com>
879         * libitm.texi: Link to specification and add a usage example.
881 2012-02-24  Torvald Riegel  <triegel@redhat.com>
883         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
884         default dispatch for more than 1 thread to ml_wt.
886 2012-02-20  Torvald Riegel  <triegel@redhat.com>
888         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
890 2012-02-20  Torvald Riegel  <triegel@redhat.com>
892         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
894 2012-02-20  Torvald Riegel  <triegel@redhat.com>
896         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
897         serial mode corner cases made obsolete by prior gtm_rwlock changes.
898         (gl_wt_dispatch.rollback): Same.
900 2012-02-20  Torvald Riegel  <triegel@redhat.com>
902         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
904 2012-02-20  Torvald Riegel  <triegel@redhat.com>
906         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
907         for RfW src.  Optimize number of calls to gtm_thr.
909 2012-02-20  Torvald Riegel  <triegel@redhat.com>
911         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
912         acquisition to ...
913         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
914         (default_dispatch): Make atomic.
915         (GTM::gtm_thread::set_default_dispatch): Access atomically.
916         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
917         use decide_begin_dispatch() if default_dispatch might have changed.
918         (GTM::gtm_thread::number_of_threads_changed): Initialize
919         default_dispatch here.
921 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
922             Patrick Marlier  <patrick.marlier@gmail.com>
924         PR libitm/52220
925         * alloc_cpp.cc: No dummy definitions for darwin.
926         * eh_cpp.cc: Likewise.
928 2012-02-14  Richard Henderson  <rth@redhat.com>
930         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
932 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
934         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
936 2012-02-14  Torvald Riegel  <triegel@redhat.com>
938         * libitm_i.h (GTM::gtm_rwlog_entry): New.
939         (GTM::gtm_thread): Add read and write logs.
940         (GTM::dispatch_ml_wt): Declare.
941         * retry.cc (parse_default_method): Support ml_wt.
942         * method-ml.cc: New file.
943         * Makefile.am: Add method-ml.cc.
944         * Makefile.in: Regenerate.
946 2012-02-14  Torvald Riegel  <triegel@redhat.com>
948         * dispatch.h (GTM::abi_dispatch::supports): New.
949         (GTM::method_group::reinit): New.
950         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
951         (GTM::gtm_thread::number_of_threads_changed): Check that the method
952         supports the current situation.
954 2012-02-14  Torvald Riegel  <triegel@redhat.com>
956         * util.cc (GTM::xcalloc): New.
957         * common.h (GTM::xcalloc): Declare.
959 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
961         * config/sparc/target.h (cpu_relax): Read from CC register.
962         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
964 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
966         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
968 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
970         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
971         * config/sparc/cacheline.h: New file.
972         * config/sparc/target.h: Likewise.
973         * config/sparc/sjlj.S: Likewise.
974         * config/linux/sparc/futex_bits.h: Likewise.
976 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
978         * configure.ac (link_itm): Fix comment.
979         * configure: Regenerate.
980         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
982 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
984         PR libitm/51822
985         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
986         Correct libgomp references.
988 2012-01-24  Torvald Riegel  <triegel@redhat.com>
990         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
991         wake-up.
993 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
995         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
996         end of structure.
997         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
998         offset values.  Do not copy return address.  Decrement stack
999         by 56 bytes only.
1000         (GTM_longjump) [__x86_64__]: Update offset values.
1002 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1004         PR libitm/51830
1005         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1006         the first function argument to %eax.
1008 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1010         * libitm.h (_ITM_getThreadnum): Remove.
1011         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1013 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1015         * clearcap.map: New file.
1016         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1017         * configure.ac: Call it.
1018         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1019         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1020         * configure: Regenerate.
1021         * Makefile.in: Regenerate.
1022         * testsuite/Makefile.in: Regenerate.
1024 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1026         PR libitm/51173
1027         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1028         include, exclude options.
1030 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1032         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1033         rolling back.
1034         * containers.h (GTM::vector::set_size): New.
1036 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1038         PR libitm/51855
1039         * config/generic/tls.h (GTM::mask_stack_top): New.
1040         (GTM::mask_stack_bottom): Declare.
1041         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1042         * local.cc (gtm_undolog::rollback): Filter out any updates that
1043         overlap the libitm stack.  Add current transaction as parameter.
1044         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1045         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1046         * testsuite/libitm.c/stackundo.c: New test.
1048 2012-01-10  Richard Henderson  <rth@redhat.com>
1050         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1051         * eh_cpp.cc (_Unwind_DeleteException): Define for
1052         !HAVE_ELF_STYLE_WEAKREF.
1054 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1056         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1057         (GTM::gtm_thread::drop_references_undolog): Remove.
1058         (GTM::gtm_thread::commit_undolog,
1059         GTM::gtm_thread::rollback_undolog): Move to ...
1060         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1061         (GTM::gtm_undolog_entry): Remove.
1062         (GTM::gtm_thread): Adapt.
1063         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1064         (GTM::gtm_thread::trycommit): Adapt.
1065         * method-serial.cc (serial_dispatch::log): Adapt.
1066         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1067         (gl_wt_dispatch::store): Fix likely/unlikely.
1068         * containers.h (GTM::vector::resize): Add additional_capacity
1069         parameter and handle it.
1070         (GTM::vector::resize_noinline): New/adapt.
1071         (GTM::vector::push): New.
1073 2012-01-06  Richard Henderson  <rth@redhat.com>
1075         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1076         * config/linux/powerpc/futex_bits.h: New file.
1077         * config/powerpc/cacheline.h: New file.
1078         * config/powerpc/sjlj.S: New file.
1079         * config/powerpc/target.h: New file.
1080         * config/generic/asmcfi.h (cfi_offset): New.
1081         (cfi_restore, cfi_undefined): New.
1083 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1085         PR other/51171
1086         * testsuite/libitm.c/reentrant.c: Remove xfail.
1087         (thread): Pass x to pure().
1088         From Patrik Marlier <patrick.marlier@gmail.com>.
1090 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1092         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1093         privatization safety if already in serial mode.
1095 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1097         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1098         finish_serial_upgrade parameter.
1099         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1100         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1101         Don't unset reader flag.
1102         (GTM::gtm_rwlock::write_upgrade_finish): New.
1103         * config/posix/rwlock.cc: Same.
1104         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1105         Declare.
1106         * config/posix/rwlock.h: Same.
1107         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1108         flag after commit or after rollback when restarting.
1110 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1112         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1113         (GTM::gtm_thread::try_commit): Changed memory order.
1114         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1115         as parameter.
1116         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1117         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1118         * config/linux/futex_bits.h (sys_futex0): Same.
1119         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1120         * config/linux/futex.h (futex_wait, futex_wake): Same.
1121         * config/linux/rwlock.h (gtm_rwlock::writers,
1122         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1123         ints.
1124         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1125         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1126         gtm_rwlock::write_unlock): Fix memory orders and fences.
1127         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1128         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1129         gtm_rwlock::write_unlock): Same.
1130         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1131         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1132         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1133         Add comments.
1134         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1135         gl_wt_dispatch::load, gl_wt_dispatch::store,
1136         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1137         orders and fences.  Add comments.
1139 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1141         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1142         * Makefile.in: Regenerated.
1144 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1146         * configure.tgt: Add sh* case.
1147         * config/sh/target.h: New file.
1148         * config/sh/sjlj.S: New file.
1149         * config/linux/sh/futex_bits.h: New file.
1151 2011-12-14  Richard Henderson  <rth@redhat.com>
1153         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1154         * config/arm/sjlj.S, config/arm/target.h: New files.
1155         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1156         (cfi_rel_offset): New.
1157         * config/linux/futex_bits.h: New file.
1158         * config/linux/futex.cc: Include futex_bits.h here...
1159         * config/linux/futex.h: ... not here.
1160         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1161         * configure.ac (ARCH_AM): New conditional.
1162         * Makefile.in, configure: Rebuild.
1163         * configure.tgt: Handle ARM.
1165 2011-12-13  Richard Henderson  <rth@redhat.com>
1167         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1168         signed/unsigned comparison werror.
1170         * local_atomic: New file.
1171         * libitm_i.h: Include it.
1172         (gtm_thread::shared_state): Use atomic template.
1173         * beginend.cc (GTM::gtm_clock): Use atomic template.
1174         (global_tid): Use atomic template if 64-bit atomics available.
1175         (gtm_thread::gtm_thread): Update shared_state access.
1176         (gtm_thread::trycommit): Likewise.
1177         (choose_code_path): Update global_tid access.
1178         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1179         * stmlock.h (GTM::gtm_clock): Use atomic template.
1180         (gtm_get_clock, gtm_inc_clock): Update accesses.
1181         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1182         redundant __sync_synchronize after atomic shared_state access.
1183         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1184         (gtm_rwlock::write_lock_generic): Likewise.
1185         (gtm_rwlock::read_unlock): Likewise.
1186         * config/alpha/target.h (atomic_read_barrier): Remove.
1187         (atomic_write_barrier): Remove.
1188         * config/x86/target.h (atomic_read_barrier): Remove.
1189         (atomic_write_barrier): Remove.
1191 2011-11-30  Richard Henderson  <rth@redhat.com>
1193         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1194         * beginend.c (_ITM_abortTransaction): Update to match.
1195         (GTM::gtm_thread::restart): Likewise.
1196         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1197         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1199 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1201         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1202         * Makefile.in: Regenerate.
1204 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1206         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1207         * alloc_cpp.cc: Generate dummy functions if we don't
1208         HAVE_ELF_STYLE_WEAKREF.
1209         * eh_cpp.cc: Likewise.
1210         * configure: Regenerate.
1211         * aclocal.m4:  Likewise.
1212         * config.h.in: Likewise.
1213         * Makefile.in: Likewise.
1214         * testsuite/Makefile.in: Likewise.
1216 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1218         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1219         __USER_LABEL_PREFIX__ for targets that use it.
1220         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1221         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1222         in portability to non-elf targets.
1223         (GTM_longjmp): Likewise.
1224         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1225         where required.
1227 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1229         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1230         * testsuite/libitm.c/memset-1.c: Likewise.
1232 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1234         * configure: Regenerate.
1236 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1238         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1239         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1240         * Makefile.am: Handle sun style versioning.
1241         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1242         * configure: Regenerate.
1243         * Makefile.in: Regenerate.
1245 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1247         * config/generic/asmcfi.h: Fix comment.
1248         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1249         sequence without .hidden support, error for non-ELF targets.
1250         (GTM_longjmp) [__ELF__]: Only use .hidden if
1251         HAVE_ATTRIBUTE_VISIBILITY.
1253 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1255         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1256         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1257         Dummy functions.
1258         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1259         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1261 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1263         PR bootstrap/51098
1264         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1265         * configure: Regenerate.
1267 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1269         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1271 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1273         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1274         .hidden.
1275         (.note.GNU-stack): Only use if __linux__.
1276         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1277         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1278         * testsuite/libitm.c/reentrant.c: Likewise.
1279         * testsuite/libitm.c/simple-2.c: Likewise.
1280         * testsuite/libitm.c/txrelease.c: Likewise.
1281         * testsuite/libitm.c++/static_ctor.C: Likewise.
1283 2011-11-10  Richard Henderson  <rth@redhat.com>
1285         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1286         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1287         * configure.ac (ARCH_X86_AVX): New conditional.
1288         * Makefile.in, configure: Rebuild.
1290 2011-11-09  Richard Henderson  <rth@redhat.com>
1292         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1293         * configure.ac: Use it.
1294         * config.h.in, configure: Rebuild.
1295         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1297 2011-11-09  Richard Henderson  <rth@redhat.com>
1299         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1300         * config/alpha/unaligned.h: Remove file.
1301         * config/generic/unaligned.h: Remove file.
1302         * config/x86/unaligned.h: Remove file.
1303         * config/generic/cachepage.h: Remove file.
1304         * config/posix/cachepage.cc: Remove file.
1305         * config/generic/cacheline.cc: Remove file.
1306         * config/x86/cacheline.cc: Remove file.
1307         * config/generic/cacheline.h (gtm_cacheline): Remove the
1308         store_mask, copy_mask, copy_mask_wb methods.
1309         * config/x86/cacheline.h: Likewise.
1310         * config/alpha/cacheline.h: Fall back to generic after setting size.
1311         * config/generic/tls.cc (gtm_mask_stack): Remove.
1312         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1313         (GTM_vpalignr_table): Remove.
1314         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1315         (GTM_pshift_table): Remove.
1316         * config/libitm_i.h: Don't include cachepage.h.
1317         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1318         * Makefile.in, testsuite/Makefile.in: Rebuild.
1320 2011-11-09  Richard Henderson  <rth@redhat.com>
1322         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1323         to emit branch prediction hint.
1325         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1326         Protect .note.GNU-stack with __linux__.
1328         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1329         * configure, aclocal.m4, config.h.in: Rebuild.
1330         * config/generic/asmcfi.h: New file.
1331         * config/x86/sjlj.S: Use it.
1333 2011-11-08  Richard Henderson  <rth@redhat.com>
1335         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1337 2011-11-08  Richard Henderson  <rth@redhat.com>
1339         * configure.tgt: Test correct directory for supported cpus.
1341         * configure.ac: Exit if unsupported.
1342         * configure: Rebuild.
1343         * configure.tgt: Delete boilerplate from libgomp for unsupported
1344         targets.  Set UNSUPPORTED for unsupported targets.
1346 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1348         * configure.tgt: Handle i386 like i[456]86.
1349         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1350         take address.
1351         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1352         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1354 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1356         * method-wbetl.cc: Update copyright notice.
1357         * aatree.cc: Same.
1358         * util.cc: Same.
1359         * libitm.h: Same.
1360         * memset.cc: Same.
1361         * eh_cpp.cc: Same.
1362         * barrier.tpl: Same.
1363         * useraction.cc: Same.
1364         * stmlock.h: Same.
1365         * memcpy.cc: Same.
1366         * common.h: Same.
1367         * config/generic/tls.cc: Same.
1368         * config/generic/cacheline.h: Same.
1369         * config/generic/cachepage.h: Same.
1370         * config/generic/cacheline.cc: Same.
1371         * config/generic/unaligned.h: Same.
1372         * config/x86/cacheline.h: Same.
1373         * config/x86/cacheline.cc: Same.
1374         * config/x86/unaligned.h: Same.
1375         * config/alpha/cacheline.h: Same.
1376         * config/alpha/unaligned.h: Same.
1377         * config/alpha/sjlj.S: Same.
1378         * config/posix/cachepage.cc: Same.
1379         * config/linux/futex.h: Same.
1380         * config/linux/alpha/futex_bits.h: Same.
1382 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1384         * libitm.texi: No cover text and invariant sections.
1386 2011-11-03  Richard Henderson  <rth@redhat.com>
1388         * local_type_traits: New file.
1389         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1391 2011-11-03  Richard Henderson  <rth@redhat.com>
1393         * configure.ac: Don't test for gfortran.
1394         * configure: Rebuild.
1396         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1397         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1399 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1401         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1402         * testsuite/libitm.c/memset-1.c: Same.
1403         * testsuite/libitm.c/c.exp: Same.
1404         * testsuite/lib/libitm-dg.exp: Same.
1405         * testsuite/lib/libitm.exp: Same.
1406         * testsuite/libitm.c++/c++.exp: Same.
1408 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1410         * testsuite/config/default.exp: Update copyright date.
1411         * configure.ac: Add copyright info.
1412         * configure.tgt: Same.
1414 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1416         * testsuite/libitm.c/reentrant.c: XFAIL.
1417         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1419 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1421         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1422         handle aborts.
1423         (_ITM_abortTransaction): Handle aborts of outer transactions.
1424         * libitm_i.h: Same.
1425         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1426         * libitm.texi: Document aborts of outer transactions.
1427         * testsuite/libitm.c/cancel.c: New file.
1429 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1431         * testsuite/*: Change __transaction to __transaction_atomic or
1432         __transaction_relaxed.
1434 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1436         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1437         (gtm_thr): Same.
1439 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1441         * libitm_i.h: Add gl_wt dispatch.
1442         * retry.cc (parse_default_method): Same.
1443         * method-gl.cc: New file.
1444         * Makefile.am: Use method-gl.cc.
1445         * Makefile.in: Rebuild.
1447 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1449         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1450         safety if requested by a TM method.
1451         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1452         privatization safety.
1453         * method-serial.cc: Same.
1455 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1457         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1458         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1459         undolog-related member functions from *_local to *_undolog.
1460         * local.cc (gtm_thread::commit_undolog): Same.
1461         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1462         (GTM::gtm_thread::rollback): Roll back undolog before
1463         dispatch-specific rollback.
1465 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1467         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1468         re-initialization of the current method group.
1469         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1471 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1473         * alloc.cc (commit_allocations_2): Do not free transaction-local
1474         memory when committing a nested transaction.
1476 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1478         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1479         serial-irrevocable dispatch, not serial.
1481 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1483         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1484         declarations.
1485         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1486         * method-serial.cc: Implement begin_or_restart().
1487         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1488         dispatch-specific begin_or_restart().
1489         (GTM::gtm_thread::restart): Same.
1491 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1493         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1494         restarting without switching to serial mode.
1495         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1496         transaction state. Choose closed-nesting alternative if available.
1497         (GTM::gtm_thread::set_default_dispatch): New.
1498         (parse_default_method): New.
1499         (GTM::gtm_thread::number_of_threads_changed): New.
1500         * method-serial.cc (GTM::serial_mg): New method group class.
1501         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1502         fini.
1503         (GTM::serial_dispatch): Same.
1504         (GTM::serialirr_onwrite_dispatch): Same.
1505         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1506         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1507         registered threads.
1508         (GTM::gtm_thread::gtm_thread): Same.
1509         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1510         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1511         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1512         choose dispatch but set state according to dispatch here.
1513         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1514         (GTM::method_group): New class.
1515         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1516         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1517         * libitm.texi: Document TM methods, method groups, method life cycle.
1518         Rename method sets to method groups.
1520 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1522         * config/x86/tls.h: Moved to ...
1523         * config/linux/x86/tls.h: ... here.
1525 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1527         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1528         Add X32 support.
1529         * config/x86/sjlj.S: Same.
1531 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1533         * config/linux/rwlock.h: New file.
1534         * config/linux/rwlock.c: New file.
1535         * configure.ac: Reenable futex support (undo SVN rev 157758).
1536         * Makefile.am: Same.
1537         * configure.tgt: Same.
1538         * config/linux/alpha/futex_bits.h: Same.
1539         * config/linux/futex.h: Same. Return number of woken processes.
1540         * config/linux/futex.cc: Same.
1541         (futex_wait): Remove spinning.
1542         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1543         Use __x86_64__ instead of __LP64__.
1544         * aclocal.m4: Include generic futex checks.
1545         * configure: Rebuild.
1546         * Makefile.in: Rebuild.
1547         * testsuite/Makefile.in: Rebuild.
1548         * beginend.cc: Include pthread.h.
1549         * config/posix/cachepage.cc: Same.
1551 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1553         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1554         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1555         (set_gtm_thr): New.
1556         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1557         (set_gtm_thr): New.
1558         (GTM::gtm_thread::thread_num): Removed.
1559         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1560         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1561         tx-to-thread renaming.
1562         * beginend.cc: Adapted to tx-to-thread renaming.
1563         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1564         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1565         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1566         gtm_transaction to gtm_thread.
1567         (_ITM_getThreadnum): Removed. Not supported anymore.
1568         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1569         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1570         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1571         gtm_tx-to-gtm_thr renaming if necessary.
1572         * eh_cpp.cc: Same.
1573         * local.cc: Same.
1574         * retry.cc: Same.
1575         * clone.cc: Same.
1576         * alloc.cc: Same.
1577         * alloc_c.cc: Same.
1578         * alloc_cpp.cc: Same.
1579         * method-serial.cc: Same.
1580         * config/generic/tls.cc: Same.
1581         * config/posix/rwlock.h (gtm_rwlock): Same.
1582         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1584 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1586         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1587         implementation.
1588         (gtm_rwlock::read_unlock): Same.
1589         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1590         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1591         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1592         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1593         w_upgrade. Replaced by per-transaction flags (in shared_state).
1594         Added c_confirmed_writers.
1595         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1596         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1597         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1598         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1599         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1600         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1601         * libitm.texi: Document locking conventions and implementations in
1602         libitm.
1604 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1606         * libitm_i.h (next_tx): Add list of all threads' transaction.
1607         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1608         transaction with list of transactions and ...
1609         (thread_exit_handler): ... deregister here.
1610         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1611         * config/x86/target.h: Same.
1613 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1615         * testsuite/libitm.c++/static_ctor.C: New file.
1617 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1619         * testsuite/libitm.c/reentrant.c: New file.
1621 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1623         * config/generic/tls.h: Remove the free list for transactions and ...
1624         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1625         (GTM::gtm_transaction::operator delete): ... and release here.
1626         (thread_exit_handler): New. Delete tx when thread terminates.
1627         (thread_exit_init): New.
1628         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1629         * testsuite/libitm.c/txrelease.c: New file.
1631 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1633         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1634         * testsuite/libitm.c/notx.c: New file.
1636 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1638         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1639         * libitm_i.h (local_tid): ... to here.
1640         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1641         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1643 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1645         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1646         serialirr_onwrite_dispatch as new default for now.
1647         * method-serial.cc (serialirr_onwrite_dispatch): New.
1648         (GTM::dispatch_serialirr_onwrite): New.
1649         * libitm_i.h: Same.
1651 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1653         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1654         * query.cc (_ITM_getTransactionId): There is no active transaction if
1655         the current nesting level is zero.
1657 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1659         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1660         rollback.
1662 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1664         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1665         transaction properties from the caller instead of from the
1666         transaction object.
1667         * libitm_i.h: Same.
1668         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1670 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1672         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1673         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1674         * dispatch.h: Same.
1675         * method-serial.cc: Same.
1676         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1677         flat nesting as default, and closed nesting on demand.
1678         (GTM::gtm_transaction::rollback): Same.
1679         (_ITM_abortTransaction): Same.
1680         (GTM::gtm_transaction::restart): Same.
1681         (GTM::gtm_transaction::trycommit): Same.
1682         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1683         (choose_code_path): New.
1684         (GTM::gtm_transaction_cp::save): New.
1685         (GTM::gtm_transaction_cp::commit): New.
1686         * query.cc (_ITM_inTransaction): Support flat nesting.
1687         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1688         (GTM::gtm_transaction): Support flat and closed nesting.
1689         * alloc.cc (commit_allocations_2): New.
1690         (commit_cb_data): New helper struct.
1691         (GTM::gtm_transaction::commit_allocations): Handle nested
1692         commits/rollbacks.
1693         * libitm.texi: Update user action section, add description of nesting.
1695 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1697         * libitm_i.h: Add closed nesting as restart reason.
1698         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1700 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1702         * useraction.cc: Use vector instead of list to store actions.
1703         Also support partial rollbacks for closed nesting.
1704         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1705         * beginend.cc: Same.
1707 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1709         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1710         closed_nesting flags, as well as a closed nesting alternative.
1711         * method-serial.cc: Same.
1712         (serial_dispatch): Renamed to serialirr_dispatch.
1713         (GTM::dispatch_serialirr): Same.
1714         (serial_dispatch_ul): Renamed to serial_dispatch.
1715         (GTM::dispatch_serial): Same.
1717 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1719         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1721 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1723         * aatree.h (aa_tree::remove): New.
1724         (aa_tree::operator new): Add placement new.
1726 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1728         * containers.h: New file.
1729         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1730         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1731         * common.h: ... to here.
1732         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1733         * local.cc: Same.
1735 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1737         * libitm_i.h (STATE_ABORTING): Remove.
1738         * beginend.cc (_ITM_abortTransaction): Same.
1739         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1740         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1741         (_ITM_rollbackTransaction): Remove.
1742         * beginend.cc: Same.
1743         * libitm.map: Same.
1744         * libitm.texi: Document these ABI changes.
1746 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1748         * libitm.texi: New file.
1749         * Makefile.am: Add libitm.texi.
1750         * Makefile.in: Rebuild.
1752 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1754         * libitm_i.h: Move parts to common.h and dispatch.h.
1755         * common.h: New file.
1756         * dispatch.h: New file, new dispatch class.
1757         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1758         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1759         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1760         decision to retry.cc.
1761         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1762         only.
1763         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1764         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1765         logging.
1766         * barrier.cc: Use new barriers definitions.
1767         (abi_dispatch::memmove_overlap_check): New.
1768         * config/x86/x86_sse.cc: Same.
1769         * config/x86/x86_avx.cc: Same.
1770         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1771         memcpy.cc.
1772         * Makefile.in: Rebuild.
1773         * method-readonly.cc: Remove.
1774         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1775         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1777 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1779         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1780         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1781         * testsuite/libitm.c/dropref-2.c: Same.
1782         * testsuite/libitm.c/dropref.c: Same.
1784 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1786         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1787         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1788         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1789         * alloc_c.cc: Same.
1790         * barrier.tpl: Same.
1791         * beginend.c: Same.
1792         * config/generic/tls.h: Same.
1793         * config/x86/tls.h: Same.
1794         * libitm_i.h: Same.
1795         * memcpy.cc: Same.
1796         * memset.cc: Same.
1797         * method-readonly.cc: Same.
1798         * method-serial.cc: Same.
1799         * method-wbetl.cc: Same.
1800         * retry.cc: Same.
1802 2011-03-03  Richard Henderson  <rth@redhat.com>
1804         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1805         From Patrik Marlier <patrick.marlier@unine.ch>.
1807 2011-02-03  Richard Henderson  <rth@redhat.com>
1809         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1810         * configure.ac: Use it.
1811         * configure, config.h.in: Rebuild.
1812         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1813         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1814         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1815         * libitm.map: Use wildcards to match size_t mangling.
1817 2010-12-14  Richard Henderson  <rth@redhat.com>
1819         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1820         blocks of TIDs per thread.
1821         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1822         (setup_gtm_thr): Return the thread structure.
1823         * config/x86/tls.h (setup_gtm_thr): Likewise.
1825 2010-12-14  Richard Henderson  <rth@redhat.com>
1827         * clone.cc (table_lock): Remove.
1828         (find_clone): Don't take it.
1829         (ExcludeTransaction): New helper class.
1830         (_ITM_registerTMCloneTable): Use it.
1831         (_ITM_deregisterTMCloneTable): Likewise.
1833 2010-12-14  Richard Henderson  <rth@redhat.com>
1835         * config/x86/tls.h: New file.
1837 2010-07-15  Richard Henderson  <rth@redhat.com>
1839         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1840         * Makefile.in: Rebuild.
1842 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1844         * method-wbetl.cc (trydropreference): Fix source line.
1846 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1848         * libitm.h: Add comment.
1849         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1851 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1853         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1854         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1855         available, use pthread mutexes.
1856         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1857         * config.h.in: Regenerate.
1858         * configure: Regenerate.
1860 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1862         * libitm.h (ITM_PURE): Define.
1863         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1865 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1867         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1868         (validate): Add comment.
1869         (trydropreference): New.
1870         * method-readonly.cc (class readonly_dispatch): Add
1871         trydropreference.
1872         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1873         Call trydropreference().
1874         * libitm.h (_ITM_dropReferences): Remove const attribute.
1875         * method-serial.cc (class serial_dispatch): Add trydropreference.
1876         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1878 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1880         * memcpy.cc (do_memcpy): Comment.
1882 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1884         * barrier.tpl: Add comments throughout.
1886 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1888         * method-wbetl.cc (struct w_entry): Add comments.
1889         (trycommit): Same.
1890         (rollback): Same.
1892 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1894         * alloc_c.cc (_ITM_dropReferences): New.
1895         * libitm.map (_ITM_dropReferences): Add.
1896         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1897         * libitm_i.h (struct gtm_transaction): Declare
1898         drop_references_allocations and drop_references_local.
1899         * local.cc (rollback_local): Ignore memory when applicable.
1900         (drop_references_local): New.
1902 2010-06-23  Richard Henderson  <rth@redhat.com>
1904         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1905         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1906         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1907         * config/alpha/target.h: Likewise.
1908         * config/generic/tls.cc (gtm_mask_stack): Use it.
1910 2010-06-23  Richard Henderson  <rth@redhat.com>
1912         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1913         a mutex instead of trying a lock-free compare-and-swap on the list.
1914         (gtm_cacheline_page::operator delete): Likewise.
1916 2010-06-16  Richard Henderson  <rth@redhat.com>
1918         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1919         that overlap the libitm stack.
1920         * barrier.tpl: Mark incoming stack.
1921         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1922         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1923         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1924         * memcpy.cc, memset.cc: Likewise.
1925         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1926         * config/generic/tls.h (gtm_thread): Add stack_top member.
1927         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1928         * libitm_i.h (gtm_mask_stack): Declare.
1929         * config/generic/tls.cc: New file.
1930         * Makefile.am (libitm_la_SOURCES): Add it.
1931         (AM_CXXFLAGS): Turn off exceptions.
1932         * Makefile.in: Rebuild.
1934 2010-06-16  Richard Henderson  <rth@redhat.com>
1936         * alloc.cc (struct gtm_alloc_action): Move definition ...
1937         * libitm_i.h: ... here.
1938         (class gtm_transaction): Declare new and delete.
1939         * beginend.cc (alloc_tx): Reformulate as operator new.
1940         (free_tx): Reformulate as operator delete.
1941         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1943 2010-06-11  Richard Henderson  <rth@redhat.com>
1945         * clone.cc (clone_entry_compare): Fix typo.
1946         From Patrik Marlier <patrick.marlier@unine.ch>.
1948 2010-05-13  Richard Henderson  <rth@redhat.com>
1950         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1951         in extern "C".
1953 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1955         * libitm_i.h (struct gtm_transaction): Remove
1956         get_allocation_size.
1957         (record_allocation): Remove size parameter.
1958         * libitm.map (_ITM_realloc): Remove.
1959         * alloc_c.cc (_ITM_realloc): Remove.
1960         (_ITM_malloc): Remove size argument to record_allocation.
1961         (_ITM_calloc): Same.
1962         * alloc_cpp.cc (_ZGTtnwm): Same.
1963         (_ZGTtnwmRKSt9nothrow_t): Same.
1964         (_ZGTtnam): Same.
1965         (_ZGTtnamRKSt9nothrow_t): Same.
1966         * alloc.cc (struct gtm_alloc_action): Remove size.
1967         (get_allocation_size): Remove.
1968         (commit_allocations): Add comment.
1969         (record_allocation): Remove size parameter.
1970         (forget_allocation): Remove set of size.
1972 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1974         * Makefile.am (abi_version): New.
1975         (AM_CXXFLAGS): Pass abi_version.
1976         * Makefile.in: Regenerate.
1977         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1979 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1981         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1982         _ITM_getTMCloneOrIrrevokable.
1983         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1984         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1986 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1988         * configure.ac: Remove Linux futex support.
1989         * configure.tgt (config_path): Same.
1990         * Makefile.am: Same.
1991         * config/linux: Remove entire directory.
1992         * configure: Rebuild.
1993         * Makefile.in: Rebuild.
1994         * testsuite/Makefile.in: Rebuild.
1996 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1998         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1999         switching to serial mode.
2000         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2002 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2004         * configure.tgt: Add emacs -*- tags.
2005         * barrier.tpl: Same.
2007 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2009         * Makefile.am: Rename serial.cc to method-serial.cc.
2010         * Makefile.in: Regenerate with automake 1.11.1.
2011         * testsuite/Makefile.in: Same.
2012         * aclocal.m4: Regenerate with aclocal 1.11.1.
2013         * method-serial.cc: Rename from serial.cc.
2014         * libitm_i.h (struct gtm_transaction): Update comment on
2015         serialirr_mode.
2017 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2019         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2020         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2022 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2024         * configure: Rebuild.
2026 2009-11-12  Richard Henderson  <rth@redhat.com>
2028         * Rewrite everything in C++.
2030 2009-11-03  Richard Henderson  <rth@redhat.com>
2032         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2033         * Makefile.am (libitm_la_SOURCES): Add them.
2034         * configure.ac (ARCH_X86): New conditional.
2035         * Makefile.in, configure: Rebuild.
2036         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2037         Move futex setup into "other system configury" case.
2038         * local.c (rollback_local): Merge into ...
2039         (GTM_rollback_local): ... here.
2040         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2041         (_ITM_LB): Define as an alias to GTM_LB.
2043 2009-11-03  Richard Henderson  <rth@redhat.com>
2045         * method-readonly.c: New file.
2046         * Makefile.am (libitm_la_SOURCES): Add it.
2047         * Makefile.in: Rebuild.
2048         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2049         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2050         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2051         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2052         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2053         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2054         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2055         gtm_get_clock, gtm_inc_clock): New.
2056         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2057         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2058         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2059         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2060         replace uses with new libitm_i.h symbols.
2061         (dispatch_wbetl): Rename from wbetl_dispatch.
2062         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2063         away from dispatch_readonly; abort if the beginTransaction call
2064         asserted that the transaction was readonly.
2066 2009-11-03  Richard Henderson  <rth@redhat.com>
2068         * memset.c: New file.
2069         * Makefile.am (libitm_la_SOURCES): Add it.
2070         * Makefile.in: Rebuild.
2071         * testsuite/libitm.c/memset-1.c: New.
2073 2009-11-03  Richard Henderson  <rth@redhat.com>
2075         * dispatch.c: Remove file.
2076         * useraction.c (struct gtm_user_action): Move from libitm.h.
2077         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2078         (serial_memset, serial_memmove, serial_memcpy): Remove.
2079         (serial_W*, serial_R*): Remove.
2080         (serial_dispatch): Update to match.
2081         * configure.ac: Move Werror down below configure checks.  Don't
2082         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2083         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2084         Use GCC_AC_FUNC_MMAP_BLACKLIST
2085         * libitm.h: Split out all internal items to...
2086         * libitm_i.h: ... here.  New file.
2087         * copymask.c: New file.
2088         * local.c (struct gtm_local_undo): Move from libitm.h.
2089         (GTM_alloc_local): Rename from alloc_local; export.
2090         * memcpy.c: New file.
2091         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2092         * config/posix/page.c: New file.
2093         * config/posix/target_tls.h: Remove file.
2094         * barrier.c: New file.
2095         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2096         copymask.c, page.c.
2097         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2098         * method-wbetl.c: Rewrite for new cacheline methods.
2099         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2101         * config/alpha/sjlj.S: Fix typo.
2102         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2103         * config/alpha/copymask.c: New file.
2104         * config/alpha/target.h (CACHELINE_SIZE): New.
2105         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2107         * config/x86/target_i.h: Copy functions from x86/target.h.
2108         * config/x86/copymask.c: New file.
2109         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2110         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2111         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2112         * config/x86/target_tls.h: Move contents to target_i.h.
2114         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2115         * testsuite/libitm.c/memcpy-1.c: New.
2117 2009-10-22  Richard Henderson  <rth@redhat.com>
2119         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2120         (AM_CCASFLAGS): New.
2121         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2122         saving/restoring _AC_ARG_VAR_PRECIOUS.
2123         * Makefile.in, aclocal.m4, config.h.in, configure,
2124         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2126 2009-10-22  Richard Henderson  <rth@redhat.com>
2128         * testsuite/*: Update for new compiler syntax.
2130 2009-10-21  Richard Henderson  <rth@redhat.com>
2132         * libitm.h (_ITM_abortReason): Add outerAbort.
2134 2009-08-03  Richard Henderson  <rth@redhat.com>
2136         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2137         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2138         * method-wbetl.c (struct w_entry): Remove mask.
2139         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2140         adjust all callers.
2142 2009-07-22  Richard Henderson  <rth@redhat.com>
2144         * eh_cpp.c: New file.
2145         * Makefile.am (libitm_la_SOURCES): Add it.
2146         * Makefile.in: Rebuild.
2147         * beginend.c (GTM_rollback_transaction): Undo exception state.
2148         (GTM_trycommit_transaction): Mark inline.
2149         (GTM_trycommit_and_finalize_transaction): Split out from ...
2150         (_ITM_commitTransaction): ... here.
2151         (_ITM_commitTransactionEH): New function.
2152         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2153         cxa_unthrown, eh_in_flight; reorder.
2155         * testsuite/libitm.c++/c++.exp: New.
2156         * testsuite/libitm.c++/eh-1.C: New.
2158         * aatree.c (aa_free): Remove REGPARM.
2159         * aatree.h: Remove all REGPARM.
2161 2009-07-18  Richard Henderson  <rth@redhat.com>
2163         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2164         * Makefile.am (libitm_la_SOURCES): Add them.
2165         * Makefile.in: Rebuild.
2166         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2167         (GTM_trycommit_transaction): Likewise.
2168         * libitm.h: Include aatree.h
2169         (struct gtm_alloc_action): New.
2170         (struct gtm_transaction): Add alloc_actions.
2171         (GTM_record_allocation, GTM_forget_allocation): Declare.
2172         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2173         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2174         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2175         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2176         _ZGTtdaPvRKSt9nothrow_t): Export.
2178 2009-07-18  Richard Henderson  <rth@redhat.com>
2180         * target_tls.h: Move ...
2181         * config/posix/target_tls.h: ... here.
2183 2009-07-07  Richard Henderson  <rth@redhat.com>
2185         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2187 2009-07-07  Richard Henderson  <rth@redhat.com>
2189         * Update to GPL3.
2191 2009-07-07  Richard Henderson  <rth@redhat.com>
2193         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2194         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2196         * configure.tgt: Don't use -ftls-model for x86 linux.
2197         * libitm.h: Include target.h after standard includes.
2198         (_gtm_thr): Rename from gtm_thr.
2199         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2200         (gtm_disp, set_gtm_disp): New.
2201         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2202         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2203         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2205 2009-07-07  Richard Henderson  <rth@redhat.com>
2207         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2209 2009-07-06  Richard Henderson  <rth@redhat.com>
2211         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2212         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2213         (_ITM_beginTransaction): Take variadic arguments.
2214         (_ITM_registerThrownObject): Declare.
2215         * beginend.c, serial.c: Update.
2216         * libitm.map: Add _ITM_registerThrownObject.
2218 2009-01-28  Richard Henderson  <rth@redhat.com>
2220         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2221         * Makefile.in: Rebuild.
2222         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2223         (GTM_restart_transaction): Fix uninstrumented code check.
2224         * retry.c (GTM_decide_retry_strategy): Add serial check.
2225         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2226         automatically go irrevokable when in serial mode.
2227         * clone.c: New file.
2228         * libitm.h, libitm.map: Update.
2230 2009-01-27  Richard Henderson  <rth@redhat.com>
2232         * Makefile.am (LTCCASCOMPILE): Define.
2233         (libitm_la_SOURCES): Add methid-wbetl.c.
2234         * testsuite/Makefile.am: New
2235         * configure.ac: Add testsuite/Makefile.
2236         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2237         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2238         (_ITM_abortTransaction): Finalize implementation method; pass
2239         transaction properties to longjmp.
2240         (GTM_restart_transaction): Split out from ...
2241         (_ITM_commitTransaction): ... here.
2242         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2243         Move to config/x86/target.h.
2244         * config/linux/alpha/futex_bits.h: New.
2245         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2246         * config/x86/target.h: Disable target types for 32-bit.
2247         * config/alpha/sjlj.S, config/alpha/target.h: New.
2248         * libitm.h (struct gtm_dispatch): Add init, fini.
2249         (enum restart_reason): New.
2250         (struct gtm_transaction): Add method and restarts.
2251         * retry.c (GTM_decide_retry_strategy): Implement.
2252         * serial.c (serial_init, serial_fini): New.
2253         (GTM_serialmode): Finialize outgoing method.
2254         * method-wbetl.c: New.
2256 2008-12-09  Richard Henderson  <rth@redhat.com>
2258         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2259         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2260         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2261         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2262         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2263         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2264         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2265         * serial.c (serial_R##T, serial_W##T): Likewise.
2267 2008-11-21  Richard Henderson  <rth@redhat.com>
2269         * Initial commit.
2271 Copyright (C) 2008-2020 Free Software Foundation, Inc.
2273 Copying and distribution of this file, with or without modification,
2274 are permitted in any medium without royalty provided the copyright
2275 notice and this notice are preserved.