Update ChangeLog and version files for release
[official-gcc.git] / libitm / ChangeLog
blobf9ba399fbb973db37478f060e678e706d1831044
1 2023-05-29  Release Manager
3         * GCC 11.4.0 released.
5 2022-04-21  Release Manager
7         * GCC 11.3.0 released.
9 2021-07-28  Release Manager
11         * GCC 11.2.0 released.
13 2021-06-18  Jonathan Wakely  <jwakely@redhat.com>
15         Backported from master:
16         2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
18         PR libstdc++/91488
19         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
21 2021-04-27  Release Manager
23         * GCC 11.1.0 released.
25 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
27         PR target/70454
28         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
29         be added through preprocessor check on
30         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
32 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34         * configure: Re-generate.
36 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
38         * libitm.texi: Bump @copying's copyright year.
40 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
42         PR target/97865
43         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
44         * configure: Regenerate.
46 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
48         * configure: Regenerate.
50 2020-10-01  Alan Modra  <amodra@gmail.com>
52         * config/powerpc/sjlj.S: Support __PCREL__ code.
54 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
56         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
58 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
60         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
61         and add BTI c to function entries.
63 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
65         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
67 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
69         PR bootstrap/95413
70         * configure: Regenerated.
72 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
74         PR bootstrap/95147
75         * configure: Regenerated.
77 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
79         * configure: Regenerated.
81 2020-05-12  Nathan Sidwell  <nathan@acm.org>
83         Fix throw specifiers on interface.
84         * libitm/libitm.h (_ITM_NOTHROW): Define.
85         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
86         (_ITM_cxa_begin_catch): Use it.
87         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
88         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
89         __cxa_get_globals.
90         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
91         (_ITM_cxa_begin_catch): Likewise.
93 2020-05-05  Nathan Sidwell  <nathan@acm.org>
95         * testsuite/lib/libitm.exp (libitm_init): Add
96         -fdiagnostics-color=never to options.
98 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
100         PR libstdc++/79193
101         PR libstdc++/88999
103         * configure: Regenerated.
105 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
107         * configure.ac: Handle `--with-toolexeclibdir='.
108         * Makefile.in: Regenerate.
109         * aclocal.m4: Regenerate.
110         * configure: Regenerate.
111         * testsuite/Makefile.in: Regenerate.
113 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
115         Update copyright years.
117         * libitm.texi: Bump @copying's copyright year.
119 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
121         PR libgomp/91938
122         * configure.tgt: Avoid IE tls on *-*-musl*.
124 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
126         * configure: Regenerate.
128 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
130         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
132 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
134         * configure.tgt: Handle *-*-uclinux*.
135         * configure: Regenerate.
137 2019-09-06  Florian Weimer  <fweimer@redhat.com>
139         * configure: Regenerate.
141 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
143         PR other/79543
144         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
145         scanning to conform to the GNU Coding Standards.
146         * configure: Regenerate.
148 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
150         * Makefile.am (finclude): Remove.
151         * Makefile.in: Regenerated.
153 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
155         Update copyright years.
157 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
159         * libitm.texi: Bump @copying's copyright year.
161 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
163         PR c++/88482
164         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
165         void * to void (*) (void *).
166         (_ITM_cxa_throw): Likewise.
167         * libitm.h (_ITM_cxa_throw): Likewise.
168         * libitm.texi (_ITM_cxa_throw): Likewise.
170 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
172         * config/powerpc/target.h (htm_available):  Add support for
173         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
175 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
177         PR bootstrap/82856
178         * Makefile.am: Include multilib.am.
179         (AUTOMAKE_OPTIONS): Add info-in-builddir.
180         (CLEANFILES): Remove libitm.info.
181         * configure.ac: Remove AC_PREREQ.
182         * testsuite/Makefile.am (RUNTEST): Remove quotes.
183         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
184         Regenerate.
186 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
188         PR libitm/86293
189         * method-serial.cc: Mark varible as potentially unused
190         to silence warning.
192 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
194         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
195         absolute relocation in a shared library.
197 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
199         PR libitm/85988
200         * config/linux/x86/tls.h (SEG_READ): Use the offset of
201         __private_tm as base.
202         (SEG_WRITE): Likewise.
203         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
204         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
205         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
206         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
207         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
209 2018-05-17  Jason Merrill  <jason@redhat.com>
211         * beginend.cc (save): Disable -Werror=deprecated-copy.
213 2018-05-02  Tom de Vries  <tom@codesourcery.com>
215         PR testsuite/85106
216         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
218 2018-05-02  Tom de Vries  <tom@codesourcery.com>
220         PR testsuite/85106
221         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
223 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
225         * config/x86/sjlj.S (_ITM_beginTransaction): Add
226         (__CET__ & 2) != 0 check for shadow stack.
227         (GTM_longjmp): Likewise.
229 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
231         * configure: Regenerated.
233 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
235         PR target/85489
236         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
238 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
240         * configure: Regenerated.
242 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
244         PR jit/85384
245         * configure: Regenerate.
247 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
249         PR target/84148
250         * configure: Regenerate.
252 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
254         Update copyright years.
256         * libitm.texi: Bump @copying's copyright year.
258 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
260         * Makefile.in: Regenerate.
261         * acinclude.m4: Add enable.m4 and cet.m4.
262         * config/x86/sjlj.S: Include cet.h.
263         (_ITM_beginTransaction): Add _CET_ENDBR.
264         Save Shadow Stack pointer.
265         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
266         * config/x86/target.h (struct gtm_jmpbuf):
267         Add new field for Shadow Stack pointer.
268         * configure: Regenerate.
269         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
270         * configure.ac: Update libtool_VERSION for x86.
271         * testsuite/Makefile.in: Regenerate.
273 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
275         * libitm/config/x86/target.h: Add new field (ssp).
276         * libitm/config/x86/sjlj.S: Change offsets.
278 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
280         * testsuite/lib/libitm.exp: Load scanlang.exp.
282 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
284         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
286 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
288         PR other/79046
289         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
290         of cat to get version from BASE-VER file.
291         * testsuite/Makefile.in: Regenerated.
293 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
295         * config/x86/target.h (htm_available): Determine vendor from
296         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
298 2017-01-18  Torvald Riegel  <triegel@redhat.com>
300         * config/x86/target.h (htm_available): Add check for some processors
301         on which TSX is broken.
303 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
305         PR other/79046
306         * configure.ac: Add GCC_BASE_VER.
307         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
308         get version from BASE-VER file.
309         * testsuite/Makefile.in: Regenerated.
310         * configure: Regenerated.
311         * Makefile.in: Regenerated.
313 2017-01-04  Alan Modra  <amodra@gmail.com>
315         * Makefile.in: Regenerate.
316         * testsuite/Makefile.in: Regenerate.
318 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
320         Update copyright years.
322         * libitm.texi: Bump @copying's copyright year.
324 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
326         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
327         * aclocal.m4: Regenerate.
328         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
329         LIBITM_CHECK_LINKER_HWCAP.
331 2016-11-15  Matthias Klose  <doko@ubuntu.com>
333         * configure: Regenerate.
335 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
337         PR libitm/70456
338         * util.cc (xmalloc): Use posix_memalign to allocate memory on
339         on cache line if requested.
341 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
343         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
344         function attribute to disable floating point in begin_transaction() on
345         S/390.
346         * beginend.cc (begin_transaction): Use
347         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
349 2016-01-22  Torvald Riegel  <triegel@redhat.com>
351         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
352         boundary.
353         (htm_fastpath): Remove.
354         (gtm_thread::begin_transaction): Fix HTM fastpath.
355         (_ITM_commitTransaction): Adapt.
356         (_ITM_commitTransactionEH): Adapt.
357         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
358         and accessors.
359         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
360         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
361         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
362         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
363         * libitm/method-serial.cc (htm_mg): Adapt.
364         (gtm_thread::serialirr_mode): Adapt.
365         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
367 2016-01-21  Torvald Riegel  <triegel@redhat.com>
369         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
370         or AIX.
372 2016-01-19  Richard Henderson  <rth@redhat.com>
374         PR bootstrap/69343
375         PR bootstrap/69339
376         Revert:
377         2016-01-13  Richard Henderson  <rth@redhat.com>
379         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
380         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
381         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
382         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
383         * configure.ac (ARCH_AARCH64): New conditional.
384         (ARCH_PPC, ARCH_S390): Likewise.
385         * Makefile.in, configure: Rebuild.
387         * libitm.h (_ITM_TYPE_M128): Always define.
388         * vect64.cc: Split ...
389         * vect128.cc: ... out of...
390         * config/x86/x86_sse.cc: ... here.
391         * config/arm/neon.cc: New file.
393 2016-01-19  Torvald Riegel  <triegel@redhat.com>
395         * local_type_traits: Remove file.
396         * libitm_i.h: Don't include it anymore.
397         (sized_integral): Remove.
399 2016-01-16  Torvald Riegel  <triegel@redhat.com>
401         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
402         safety.
403         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
404         * libitm/testsuite/libitm.c/priv-1.c: New.
406 2015-01-15  Torvald Riegel  <triegel@redhat.com>
408         testsuite/libitm.c++/libstdc++-safeexc.C: New.
410 2016-01-13  Torvald Riegel  <triegel@redhat.com>
412         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
413         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
414         (gtm_rwlock::write_unlock): Likewise.
416 2016-01-13  Richard Henderson  <rth@redhat.com>
418         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
419         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
420         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
421         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
422         * configure.ac (ARCH_AARCH64): New conditional.
423         (ARCH_PPC, ARCH_S390): Likewise.
424         * Makefile.in, configure: Rebuild.
426         * libitm.h (_ITM_TYPE_M128): Always define.
427         * vect64.cc: Split ...
428         * vect128.cc: ... out of...
429         * config/x86/x86_sse.cc: ... here.
430         * config/arm/neon.cc: New file.
432 2016-01-13  Torvald Riegel  <triegel@redhat.com>
434         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
435         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
436         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
437         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
438         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
439         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
440         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
441         (serialirr_dispatch::snapshot_most_recent): New.
442         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
444 2016-01-12  Torvald Riegel  <triegel@redhat.com>
446         * libitm_i.h (gtm_mask_stack): Remove.
447         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
448         * stmlock.h: Remove file.
449         * config/alpha/cacheline.h: Likewise.
450         * config/generic/cacheline.h: Likewise.
451         * config/powerpc/cacheline.h: Likewise.
452         * config/sparc/cacheline.h: Likewise.
453         * config/x86/cacheline.h: Likewise.
455 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
457         Update copyright years.
459         * libitm.texi: Bump @copying's copyright year.
461 2015-11-26  Torvald Riegel  <triegel@redhat.com>
463         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
464         (ml_wt_dispatch::pre_write): Adapt.
465         (ml_wt_dispatch::pre_load): Likewise.
467 2015-11-22  Torvald Riegel  <triegel@redhat.com>
469         * libitm_i.h (gtm_alloc_action): Remove union.
470         * testsuite/libitm.c/alloc-1.c: New.
472 2015-11-19  Torvald Riegel  <triegel@redhat.com>
474         * testsuite/libitm.c++/eh-5.C: New.
475         * libitm.h (_ITM_cxa_free_exception): New.
476         * libitm.map (_ITM_cxa_free_exception): Add it.
477         * libitm.texi: Update ABI docs.
478         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
479         (gtm_transaction_cp::cxa_uncaught_count): Add.
480         (gtm_thread::cxa_unthrown): Remove.
481         (gtm_thread::cxa_uncaught_count_ptr): Add.
482         (gtm_thread::cxa_uncaught_count): Add.
483         (gtm_thread::drop_references_allocations): Rename to...
484         (gtm_thread::discard_allocation): ... this and adapt.
485         (gtm_thread::init_cpp_exceptions): New.
486         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
487         (gtm_thread::begin_transaction): Likewise.
488         (gtm_transaction_cp::save): Likewise.
489         (gtm_thread::trycommit): Likewise.
490         * eh_cpp.cc: Add overview comments.
491         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
492         (free_any_exception, _ITM_cxa_free_exception): New.
493         (gtm_thread::init_cpp_exceptions): Define.
494         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
495         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
496         (gtm_thread::revert_cpp_exceptions): Likewise.
498 2015-11-09  Torvald Riegel  <triegel@redhat.com>
500         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
501         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
502         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
503         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
504         (gtm_thread::forget_allocations): New overload with size_t argument.
505         * alloc.c (gtm_thread::forget_allocation): Define new overload and
506         adapt existing one.
507         (gtm_thread::record_allocation): Adapt.
508         (gtm_thread::commit_allocations_1): Adapt.
509         (gtm_thread::commit_allocations_2): Adapt.
510         * testsuite/libitm.c++/newdelete.C: New.
512 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
513             Joseph Myers  <joseph@codesourcery.com>
514             Mark Shinwell  <shinwell@codesourcery.com>
515             Andrew Stubbs  <ams@codesourcery.com>
516             Rich Felker <dalias@libc.org>
518         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
519         GTM_begin_transaction for compatibility with FDPIC.
521 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
523         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
524         using load_gcc_lib.
526 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
528         PR libitm/61164
529         * local_atomic (__always_inline): Rename to...
530         (__libitm_always_inline): ... this.
532 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
534         PR target/52482
535         * config/powerpc/sjlj.S: Port to Xcode 2.5.
537 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
539         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
540         operands "op" and "val" to int.
542 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
544         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
545         "op" and "val" to int.
547 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
549         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
550         "op" and "val" to int.
552 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
554         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
555         Declare as static int.
556         (FUTEX_PRIVATE_FLAG): Remove L suffix.
557         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
559 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
561         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
562         sys_futex0 function.
564 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
566         * Makefile.in: Regenerated with automake-1.11.6.
567         * aclocal.m4: Likewise.
568         * configure: Likewise.
569         * testsuite/Makefile.in: Likewise.
571 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
573         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
574         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
576 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
578         PR libitm/64360
579         * libitm.c/stackundo.c (test2): Make it static.
580         (test1): Likewise.
582 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
584         Update copyright years.
586 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
588         * libitm.texi: Bump @copying's copyright year.
590 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
592         * testsuite/lib/libitm.exp: Load target-utils.exp.
593         Move load of target-supports.exp earlier.
595 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
597         * configure.tgt (x86_64): Tune -m32 multilib to generic.
599 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
601         PR bootstrap/63784
602         * configure: Regenerated.
604 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
606         PR target/63610
607         * configure: Regenerate.
609 2014-10-06  Marek Polacek  <polacek@redhat.com>
611         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
612         * testsuite/libitm.c/memset-1.c: Likewise.
614 2014-07-24  Richard Henderson  <rth@redhat.com>
616         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
617         addressing mode in epilogue.
619 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
621         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
622         -mclear-hwcap instead.
623         * configure: Regenerate.
624         * clearcap.map: Remove.
626 2014-05-21  John Marino  <gnugcc@marino.st>
628         * configure.tgt (*-*-dragonfly*): New target.
630 2014-05-19  Richard Henderson  <rth@redhat.com>
632         * config/aarch64/sjlj.S: New file.
633         * config/aarch64/target.h: New file.
634         * configure.tgt: Enable aarch64.
636 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
638         * config/generic/asmcfi.h: Also check for
639         __GCC_HAVE_DWARF2_CFI_ASM.
641 2013-04-02  Richard Henderson  <rth@redhat.com>
643         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
644         * config/arm/target.h, config/sh/target.h: Likewise.
645         * config/sparc/target.h, config/x86/target.h: Likewise.
647 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
649         * config/linux/futex_bits.h: Include errno.h.
650         (sys_futex0): If syscall returns -1, return -errno rather than
651         -1.
653 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
655         * libitm.texi (Index): Rename to Library Index.
657 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
659         PR libitm/53113
660         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
661         (x86_avx.lo): Append -mavx to CXXFLAGS.
662         * Makefile.in: Regenerate.
664 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
666         Update copyright years
668 2014-01-02  Tobias Burnus  <burnus@net-b.de>
670         * libitm.texi: Bump @copying's copyright year.
672 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
674         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
675         (FUNC): Define ELFv2 variant.
676         (END): Likewise.
677         (HIDDEN): Likewise.
678         (CALL): Likewise.
679         (BASE): Likewise.
680         (LR_SAVE): Likewise.
682 2013-09-20  Alan Modra  <amodra@gmail.com>
684         * configure: Regenerate.
686 2013-08-30  Torvald Riegel  <triegel@redhat.com>
688         * config/posix/rwlock.cc: Fix initialization order.
690 2013-08-30  Torvald Riegel  <triegel@redhat.com>
692         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
693         (htm_fastpath): Assign an asm name.
694         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
695         HTM fast paths.
696         (_ITM_actions): Likewise.
697         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
698         x86_64.
699         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
700         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
701         field to the start of the structure.
702         * config/linux/rwlock.h (gtm_rwlock): Update comments.
703         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
704         handling for custom HTM fast paths.
706 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
707         Revert:
708         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
710         * configure.tgt: Add -msoft-float to XCFLAGS.
712 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
714         * configure.tgt: Add -msoft-float to XCFLAGS.
716 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
718         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
719         (htm_transaction_active): Enable zEC12 instructions in the
720         assembler.
721         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
723 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
725         * acinclude.m4: Add htm asm check for s390.
726         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
727         * configure: Regenerate.
728         * config/s390/target.h: Remove __HTM__ check.
729         (htm_available): Call getauxval to get hwcaps and check whether
730         HTM is available or not.
732 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
734         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
735         * configure.ac: Use it.
736         (AC_CHECK_HEADERS): Check for sys/auxv.h.
737         (AC_CHECK_FUNCS): Check for getauxval.
738         * config.h.in, configure: Rebuild.
739         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
740         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
741         (USE_HTM_FASTPATH): Define.
742         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
743         _HTM_RETRIES) New macros.
744         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
745         htm_begin_success, htm_commit, htm_transaction_active): New functions.
747 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
749         * config/s390/target.h: Include htmintrin.h.
750         (_HTM_ITM_RETRIES): New macro definition.
751         (htm_available, htm_init, htm_begin, htm_begin_success)
752         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
754 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
755             Cesar Philippidis  <cesar@codesourcery.com>
757         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
758         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
759         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
760         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
762 2013-06-20  Torvald Riegel  <triegel@redhat.com>
764         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
765         (_ITM_getTransactionId): Same.
766         * config/x86/target.h (htm_transaction_active): New.
768 2013-06-20  Torvald Riegel  <triegel@redhat.com>
770         PR libitm/57643
771         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
772         the HTM fastpath.
774 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
776         PR bootstrap/56714
777         * local_atomic (__always_inline): Always define our version.
778         (__calculate_memory_order): Mark inline.
779         (atomic_thread_fence): Ditto.
780         (atomic_signal_fence): Ditto.
781         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
782         (atomic_bool::atomic_flag_clear_explicit): Ditto.
783         (atomic_bool::atomic_flag_test_and_set): Ditto.
784         (atomic_bool::atomic_flag_clear): Ditto.
786 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
788         * config/s390/sjlj.S: New file.
789         * config/s390/target.h: New file.
790         * configure.tgt: Set options for S/390.
792 2013-03-23  Andi Kleen  <ak@linux.intel.com>
794         * local_atomic (__always_inline): Add.
795         (__calculate_memory_order, atomic_thread_fence,
796          atomic_signal_fence, test_and_set, clear, store, load,
797          exchange, compare_exchange_weak, compare_exchange_strong,
798          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
799         Add __always_inline to force inlining.
801 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
802             Jack Howarth  <howarth@bromo.med.uc.edu>
803             Patrick Marlier  <patrick.marlier@gmail.com>
805         PR libitm/55693
806         * alloc_cpp.cc: Enable function declarations on darwin.
807         * eh_cpp.cc: Likewise.
809 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
811         Update copyright years.
813 2012-11-09  Torvald Riegel  <triegel@redhat.com>
815         * beginend.cc (htm_fastpath): New.
816         (gtm_thread::begin_transaction, _ITM_commitTransaction,
817         _ITM_commitTransactionEH): Add HTM fastpath handling.
818         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
819         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
820         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
821         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
822         * configure.tgt: Add -mrtm to XCFLAGS.
823         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
824         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
825         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
826         * retry.cc (parse_default_method): Add HTM method parsing.
827         (gtm_thread::number_of_threads_changed): Use HTM by default if
828         available.
830 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
832         * configure: Regenerate.
834 2012-10-31  Richard Henderson  <rth@redhat.com>
836         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
837         * configure.ac: Use it.
838         * config.h.in, configure: Rebuild.
839         * testsuite/Makefile.in: Rebuild.
841 2012-10-24  Torvald Riegel  <triegel@redhat.com>
843         * libitm.texi: Clarify ABI requirements for data-logging functions.
845 2012-10-24  Torvald Riegel  <triegel@redhat.com>
847         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
848         it requires serial mode instead of assuming that for certain
849         dispatchs.
850         * dispatch.h (abi_dispatch::requires_serial): New.
851         (abi_dispatch::abi_dispatch): Adapt.
852         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
853         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
854         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
855         serial_dispatch::serial_dispatch,
856         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
858 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
860         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
861         and ia32 declarations some more.
862         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
864 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
866         PR other/43620
867         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
868         * configure: Regenerate.
869         * Makefile.in: Regenerate.
871 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
873         * configure: Regenerated.
875 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
877         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
879 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
881         * eh_cpp.cc: Fix __cxa_end_catch declaration.
883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
885         * configure: Regenerated.
887 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
889         PR libitm/52854
890         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
891         for x86-64.
893 2012-04-03  Tristan Gingold  <gingold@adacore.com>
895         * configure: Regenerate.
897 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
899         PR bootstrap/52812
900         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
902 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
904         * testsuite/lib/libitm.exp: load fortran-modules.exp
906 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
908         * configure.tgt (*-*-irix6*): Remove.
910 2012-03-13  Torvald Riegel  <triegel@redhat.com>
912         PR libitm/52526
913         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
914         wake-up.
916 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
918         * configure.tgt (*-*-osf*): Remove.
919         * configure: Regenerate.
921 2012-03-05  Torvald Riegel  <triegel@redhat.com>
923         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
924         memtransfer/memset if size isn't larger than zero.
926 2012-03-02  Torvald Riegel  <triegel@redhat.com>
928         * libitm.texi: Link to specification and add a usage example.
930 2012-02-24  Torvald Riegel  <triegel@redhat.com>
932         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
933         default dispatch for more than 1 thread to ml_wt.
935 2012-02-20  Torvald Riegel  <triegel@redhat.com>
937         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
939 2012-02-20  Torvald Riegel  <triegel@redhat.com>
941         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
943 2012-02-20  Torvald Riegel  <triegel@redhat.com>
945         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
946         serial mode corner cases made obsolete by prior gtm_rwlock changes.
947         (gl_wt_dispatch.rollback): Same.
949 2012-02-20  Torvald Riegel  <triegel@redhat.com>
951         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
953 2012-02-20  Torvald Riegel  <triegel@redhat.com>
955         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
956         for RfW src.  Optimize number of calls to gtm_thr.
958 2012-02-20  Torvald Riegel  <triegel@redhat.com>
960         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
961         acquisition to ...
962         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
963         (default_dispatch): Make atomic.
964         (GTM::gtm_thread::set_default_dispatch): Access atomically.
965         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
966         use decide_begin_dispatch() if default_dispatch might have changed.
967         (GTM::gtm_thread::number_of_threads_changed): Initialize
968         default_dispatch here.
970 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
971             Patrick Marlier  <patrick.marlier@gmail.com>
973         PR libitm/52220
974         * alloc_cpp.cc: No dummy definitions for darwin.
975         * eh_cpp.cc: Likewise.
977 2012-02-14  Richard Henderson  <rth@redhat.com>
979         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
981 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
983         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
985 2012-02-14  Torvald Riegel  <triegel@redhat.com>
987         * libitm_i.h (GTM::gtm_rwlog_entry): New.
988         (GTM::gtm_thread): Add read and write logs.
989         (GTM::dispatch_ml_wt): Declare.
990         * retry.cc (parse_default_method): Support ml_wt.
991         * method-ml.cc: New file.
992         * Makefile.am: Add method-ml.cc.
993         * Makefile.in: Regenerate.
995 2012-02-14  Torvald Riegel  <triegel@redhat.com>
997         * dispatch.h (GTM::abi_dispatch::supports): New.
998         (GTM::method_group::reinit): New.
999         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1000         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1001         supports the current situation.
1003 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1005         * util.cc (GTM::xcalloc): New.
1006         * common.h (GTM::xcalloc): Declare.
1008 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1010         * config/sparc/target.h (cpu_relax): Read from CC register.
1011         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1013 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1015         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1017 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1019         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1020         * config/sparc/cacheline.h: New file.
1021         * config/sparc/target.h: Likewise.
1022         * config/sparc/sjlj.S: Likewise.
1023         * config/linux/sparc/futex_bits.h: Likewise.
1025 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1027         * configure.ac (link_itm): Fix comment.
1028         * configure: Regenerate.
1029         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1031 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1033         PR libitm/51822
1034         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1035         Correct libgomp references.
1037 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1039         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1040         wake-up.
1042 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1044         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1045         end of structure.
1046         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1047         offset values.  Do not copy return address.  Decrement stack
1048         by 56 bytes only.
1049         (GTM_longjump) [__x86_64__]: Update offset values.
1051 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1053         PR libitm/51830
1054         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1055         the first function argument to %eax.
1057 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1059         * libitm.h (_ITM_getThreadnum): Remove.
1060         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1062 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1064         * clearcap.map: New file.
1065         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1066         * configure.ac: Call it.
1067         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1068         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1069         * configure: Regenerate.
1070         * Makefile.in: Regenerate.
1071         * testsuite/Makefile.in: Regenerate.
1073 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1075         PR libitm/51173
1076         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1077         include, exclude options.
1079 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1081         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1082         rolling back.
1083         * containers.h (GTM::vector::set_size): New.
1085 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1087         PR libitm/51855
1088         * config/generic/tls.h (GTM::mask_stack_top): New.
1089         (GTM::mask_stack_bottom): Declare.
1090         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1091         * local.cc (gtm_undolog::rollback): Filter out any updates that
1092         overlap the libitm stack.  Add current transaction as parameter.
1093         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1094         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1095         * testsuite/libitm.c/stackundo.c: New test.
1097 2012-01-10  Richard Henderson  <rth@redhat.com>
1099         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1100         * eh_cpp.cc (_Unwind_DeleteException): Define for
1101         !HAVE_ELF_STYLE_WEAKREF.
1103 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1105         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1106         (GTM::gtm_thread::drop_references_undolog): Remove.
1107         (GTM::gtm_thread::commit_undolog,
1108         GTM::gtm_thread::rollback_undolog): Move to ...
1109         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1110         (GTM::gtm_undolog_entry): Remove.
1111         (GTM::gtm_thread): Adapt.
1112         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1113         (GTM::gtm_thread::trycommit): Adapt.
1114         * method-serial.cc (serial_dispatch::log): Adapt.
1115         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1116         (gl_wt_dispatch::store): Fix likely/unlikely.
1117         * containers.h (GTM::vector::resize): Add additional_capacity
1118         parameter and handle it.
1119         (GTM::vector::resize_noinline): New/adapt.
1120         (GTM::vector::push): New.
1122 2012-01-06  Richard Henderson  <rth@redhat.com>
1124         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1125         * config/linux/powerpc/futex_bits.h: New file.
1126         * config/powerpc/cacheline.h: New file.
1127         * config/powerpc/sjlj.S: New file.
1128         * config/powerpc/target.h: New file.
1129         * config/generic/asmcfi.h (cfi_offset): New.
1130         (cfi_restore, cfi_undefined): New.
1132 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1134         PR other/51171
1135         * testsuite/libitm.c/reentrant.c: Remove xfail.
1136         (thread): Pass x to pure().
1137         From Patrik Marlier <patrick.marlier@gmail.com>.
1139 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1141         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1142         privatization safety if already in serial mode.
1144 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1146         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1147         finish_serial_upgrade parameter.
1148         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1149         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1150         Don't unset reader flag.
1151         (GTM::gtm_rwlock::write_upgrade_finish): New.
1152         * config/posix/rwlock.cc: Same.
1153         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1154         Declare.
1155         * config/posix/rwlock.h: Same.
1156         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1157         flag after commit or after rollback when restarting.
1159 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1161         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1162         (GTM::gtm_thread::try_commit): Changed memory order.
1163         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1164         as parameter.
1165         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1166         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1167         * config/linux/futex_bits.h (sys_futex0): Same.
1168         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1169         * config/linux/futex.h (futex_wait, futex_wake): Same.
1170         * config/linux/rwlock.h (gtm_rwlock::writers,
1171         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1172         ints.
1173         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1174         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1175         gtm_rwlock::write_unlock): Fix memory orders and fences.
1176         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1177         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1178         gtm_rwlock::write_unlock): Same.
1179         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1180         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1181         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1182         Add comments.
1183         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1184         gl_wt_dispatch::load, gl_wt_dispatch::store,
1185         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1186         orders and fences.  Add comments.
1188 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1190         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1191         * Makefile.in: Regenerated.
1193 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1195         * configure.tgt: Add sh* case.
1196         * config/sh/target.h: New file.
1197         * config/sh/sjlj.S: New file.
1198         * config/linux/sh/futex_bits.h: New file.
1200 2011-12-14  Richard Henderson  <rth@redhat.com>
1202         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1203         * config/arm/sjlj.S, config/arm/target.h: New files.
1204         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1205         (cfi_rel_offset): New.
1206         * config/linux/futex_bits.h: New file.
1207         * config/linux/futex.cc: Include futex_bits.h here...
1208         * config/linux/futex.h: ... not here.
1209         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1210         * configure.ac (ARCH_AM): New conditional.
1211         * Makefile.in, configure: Rebuild.
1212         * configure.tgt: Handle ARM.
1214 2011-12-13  Richard Henderson  <rth@redhat.com>
1216         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1217         signed/unsigned comparison werror.
1219         * local_atomic: New file.
1220         * libitm_i.h: Include it.
1221         (gtm_thread::shared_state): Use atomic template.
1222         * beginend.cc (GTM::gtm_clock): Use atomic template.
1223         (global_tid): Use atomic template if 64-bit atomics available.
1224         (gtm_thread::gtm_thread): Update shared_state access.
1225         (gtm_thread::trycommit): Likewise.
1226         (choose_code_path): Update global_tid access.
1227         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1228         * stmlock.h (GTM::gtm_clock): Use atomic template.
1229         (gtm_get_clock, gtm_inc_clock): Update accesses.
1230         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1231         redundant __sync_synchronize after atomic shared_state access.
1232         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1233         (gtm_rwlock::write_lock_generic): Likewise.
1234         (gtm_rwlock::read_unlock): Likewise.
1235         * config/alpha/target.h (atomic_read_barrier): Remove.
1236         (atomic_write_barrier): Remove.
1237         * config/x86/target.h (atomic_read_barrier): Remove.
1238         (atomic_write_barrier): Remove.
1240 2011-11-30  Richard Henderson  <rth@redhat.com>
1242         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1243         * beginend.c (_ITM_abortTransaction): Update to match.
1244         (GTM::gtm_thread::restart): Likewise.
1245         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1246         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1248 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1250         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1251         * Makefile.in: Regenerate.
1253 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1255         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1256         * alloc_cpp.cc: Generate dummy functions if we don't
1257         HAVE_ELF_STYLE_WEAKREF.
1258         * eh_cpp.cc: Likewise.
1259         * configure: Regenerate.
1260         * aclocal.m4:  Likewise.
1261         * config.h.in: Likewise.
1262         * Makefile.in: Likewise.
1263         * testsuite/Makefile.in: Likewise.
1265 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1267         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1268         __USER_LABEL_PREFIX__ for targets that use it.
1269         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1270         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1271         in portability to non-elf targets.
1272         (GTM_longjmp): Likewise.
1273         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1274         where required.
1276 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1278         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1279         * testsuite/libitm.c/memset-1.c: Likewise.
1281 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1283         * configure: Regenerate.
1285 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1287         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1288         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1289         * Makefile.am: Handle sun style versioning.
1290         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1291         * configure: Regenerate.
1292         * Makefile.in: Regenerate.
1294 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1296         * config/generic/asmcfi.h: Fix comment.
1297         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1298         sequence without .hidden support, error for non-ELF targets.
1299         (GTM_longjmp) [__ELF__]: Only use .hidden if
1300         HAVE_ATTRIBUTE_VISIBILITY.
1302 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1304         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1305         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1306         Dummy functions.
1307         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1308         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1310 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1312         PR bootstrap/51098
1313         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1314         * configure: Regenerate.
1316 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1318         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1320 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1322         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1323         .hidden.
1324         (.note.GNU-stack): Only use if __linux__.
1325         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1326         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1327         * testsuite/libitm.c/reentrant.c: Likewise.
1328         * testsuite/libitm.c/simple-2.c: Likewise.
1329         * testsuite/libitm.c/txrelease.c: Likewise.
1330         * testsuite/libitm.c++/static_ctor.C: Likewise.
1332 2011-11-10  Richard Henderson  <rth@redhat.com>
1334         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1335         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1336         * configure.ac (ARCH_X86_AVX): New conditional.
1337         * Makefile.in, configure: Rebuild.
1339 2011-11-09  Richard Henderson  <rth@redhat.com>
1341         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1342         * configure.ac: Use it.
1343         * config.h.in, configure: Rebuild.
1344         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1346 2011-11-09  Richard Henderson  <rth@redhat.com>
1348         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1349         * config/alpha/unaligned.h: Remove file.
1350         * config/generic/unaligned.h: Remove file.
1351         * config/x86/unaligned.h: Remove file.
1352         * config/generic/cachepage.h: Remove file.
1353         * config/posix/cachepage.cc: Remove file.
1354         * config/generic/cacheline.cc: Remove file.
1355         * config/x86/cacheline.cc: Remove file.
1356         * config/generic/cacheline.h (gtm_cacheline): Remove the
1357         store_mask, copy_mask, copy_mask_wb methods.
1358         * config/x86/cacheline.h: Likewise.
1359         * config/alpha/cacheline.h: Fall back to generic after setting size.
1360         * config/generic/tls.cc (gtm_mask_stack): Remove.
1361         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1362         (GTM_vpalignr_table): Remove.
1363         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1364         (GTM_pshift_table): Remove.
1365         * config/libitm_i.h: Don't include cachepage.h.
1366         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1367         * Makefile.in, testsuite/Makefile.in: Rebuild.
1369 2011-11-09  Richard Henderson  <rth@redhat.com>
1371         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1372         to emit branch prediction hint.
1374         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1375         Protect .note.GNU-stack with __linux__.
1377         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1378         * configure, aclocal.m4, config.h.in: Rebuild.
1379         * config/generic/asmcfi.h: New file.
1380         * config/x86/sjlj.S: Use it.
1382 2011-11-08  Richard Henderson  <rth@redhat.com>
1384         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1386 2011-11-08  Richard Henderson  <rth@redhat.com>
1388         * configure.tgt: Test correct directory for supported cpus.
1390         * configure.ac: Exit if unsupported.
1391         * configure: Rebuild.
1392         * configure.tgt: Delete boilerplate from libgomp for unsupported
1393         targets.  Set UNSUPPORTED for unsupported targets.
1395 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1397         * configure.tgt: Handle i386 like i[456]86.
1398         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1399         take address.
1400         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1401         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1403 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1405         * method-wbetl.cc: Update copyright notice.
1406         * aatree.cc: Same.
1407         * util.cc: Same.
1408         * libitm.h: Same.
1409         * memset.cc: Same.
1410         * eh_cpp.cc: Same.
1411         * barrier.tpl: Same.
1412         * useraction.cc: Same.
1413         * stmlock.h: Same.
1414         * memcpy.cc: Same.
1415         * common.h: Same.
1416         * config/generic/tls.cc: Same.
1417         * config/generic/cacheline.h: Same.
1418         * config/generic/cachepage.h: Same.
1419         * config/generic/cacheline.cc: Same.
1420         * config/generic/unaligned.h: Same.
1421         * config/x86/cacheline.h: Same.
1422         * config/x86/cacheline.cc: Same.
1423         * config/x86/unaligned.h: Same.
1424         * config/alpha/cacheline.h: Same.
1425         * config/alpha/unaligned.h: Same.
1426         * config/alpha/sjlj.S: Same.
1427         * config/posix/cachepage.cc: Same.
1428         * config/linux/futex.h: Same.
1429         * config/linux/alpha/futex_bits.h: Same.
1431 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1433         * libitm.texi: No cover text and invariant sections.
1435 2011-11-03  Richard Henderson  <rth@redhat.com>
1437         * local_type_traits: New file.
1438         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1440 2011-11-03  Richard Henderson  <rth@redhat.com>
1442         * configure.ac: Don't test for gfortran.
1443         * configure: Rebuild.
1445         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1446         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1448 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1450         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1451         * testsuite/libitm.c/memset-1.c: Same.
1452         * testsuite/libitm.c/c.exp: Same.
1453         * testsuite/lib/libitm-dg.exp: Same.
1454         * testsuite/lib/libitm.exp: Same.
1455         * testsuite/libitm.c++/c++.exp: Same.
1457 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1459         * testsuite/config/default.exp: Update copyright date.
1460         * configure.ac: Add copyright info.
1461         * configure.tgt: Same.
1463 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1465         * testsuite/libitm.c/reentrant.c: XFAIL.
1466         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1468 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1470         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1471         handle aborts.
1472         (_ITM_abortTransaction): Handle aborts of outer transactions.
1473         * libitm_i.h: Same.
1474         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1475         * libitm.texi: Document aborts of outer transactions.
1476         * testsuite/libitm.c/cancel.c: New file.
1478 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1480         * testsuite/*: Change __transaction to __transaction_atomic or
1481         __transaction_relaxed.
1483 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1485         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1486         (gtm_thr): Same.
1488 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1490         * libitm_i.h: Add gl_wt dispatch.
1491         * retry.cc (parse_default_method): Same.
1492         * method-gl.cc: New file.
1493         * Makefile.am: Use method-gl.cc.
1494         * Makefile.in: Rebuild.
1496 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1498         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1499         safety if requested by a TM method.
1500         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1501         privatization safety.
1502         * method-serial.cc: Same.
1504 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1506         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1507         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1508         undolog-related member functions from *_local to *_undolog.
1509         * local.cc (gtm_thread::commit_undolog): Same.
1510         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1511         (GTM::gtm_thread::rollback): Roll back undolog before
1512         dispatch-specific rollback.
1514 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1516         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1517         re-initialization of the current method group.
1518         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1520 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1522         * alloc.cc (commit_allocations_2): Do not free transaction-local
1523         memory when committing a nested transaction.
1525 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1527         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1528         serial-irrevocable dispatch, not serial.
1530 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1532         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1533         declarations.
1534         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1535         * method-serial.cc: Implement begin_or_restart().
1536         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1537         dispatch-specific begin_or_restart().
1538         (GTM::gtm_thread::restart): Same.
1540 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1542         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1543         restarting without switching to serial mode.
1544         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1545         transaction state. Choose closed-nesting alternative if available.
1546         (GTM::gtm_thread::set_default_dispatch): New.
1547         (parse_default_method): New.
1548         (GTM::gtm_thread::number_of_threads_changed): New.
1549         * method-serial.cc (GTM::serial_mg): New method group class.
1550         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1551         fini.
1552         (GTM::serial_dispatch): Same.
1553         (GTM::serialirr_onwrite_dispatch): Same.
1554         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1555         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1556         registered threads.
1557         (GTM::gtm_thread::gtm_thread): Same.
1558         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1559         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1560         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1561         choose dispatch but set state according to dispatch here.
1562         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1563         (GTM::method_group): New class.
1564         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1565         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1566         * libitm.texi: Document TM methods, method groups, method life cycle.
1567         Rename method sets to method groups.
1569 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1571         * config/x86/tls.h: Moved to ...
1572         * config/linux/x86/tls.h: ... here.
1574 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1576         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1577         Add X32 support.
1578         * config/x86/sjlj.S: Same.
1580 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1582         * config/linux/rwlock.h: New file.
1583         * config/linux/rwlock.c: New file.
1584         * configure.ac: Reenable futex support (undo SVN rev 157758).
1585         * Makefile.am: Same.
1586         * configure.tgt: Same.
1587         * config/linux/alpha/futex_bits.h: Same.
1588         * config/linux/futex.h: Same. Return number of woken processes.
1589         * config/linux/futex.cc: Same.
1590         (futex_wait): Remove spinning.
1591         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1592         Use __x86_64__ instead of __LP64__.
1593         * aclocal.m4: Include generic futex checks.
1594         * configure: Rebuild.
1595         * Makefile.in: Rebuild.
1596         * testsuite/Makefile.in: Rebuild.
1597         * beginend.cc: Include pthread.h.
1598         * config/posix/cachepage.cc: Same.
1600 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1602         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1603         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1604         (set_gtm_thr): New.
1605         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1606         (set_gtm_thr): New.
1607         (GTM::gtm_thread::thread_num): Removed.
1608         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1609         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1610         tx-to-thread renaming.
1611         * beginend.cc: Adapted to tx-to-thread renaming.
1612         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1613         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1614         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1615         gtm_transaction to gtm_thread.
1616         (_ITM_getThreadnum): Removed. Not supported anymore.
1617         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1618         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1619         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1620         gtm_tx-to-gtm_thr renaming if necessary.
1621         * eh_cpp.cc: Same.
1622         * local.cc: Same.
1623         * retry.cc: Same.
1624         * clone.cc: Same.
1625         * alloc.cc: Same.
1626         * alloc_c.cc: Same.
1627         * alloc_cpp.cc: Same.
1628         * method-serial.cc: Same.
1629         * config/generic/tls.cc: Same.
1630         * config/posix/rwlock.h (gtm_rwlock): Same.
1631         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1633 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1635         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1636         implementation.
1637         (gtm_rwlock::read_unlock): Same.
1638         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1639         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1640         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1641         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1642         w_upgrade. Replaced by per-transaction flags (in shared_state).
1643         Added c_confirmed_writers.
1644         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1645         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1646         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1647         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1648         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1649         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1650         * libitm.texi: Document locking conventions and implementations in
1651         libitm.
1653 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1655         * libitm_i.h (next_tx): Add list of all threads' transaction.
1656         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1657         transaction with list of transactions and ...
1658         (thread_exit_handler): ... deregister here.
1659         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1660         * config/x86/target.h: Same.
1662 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1664         * testsuite/libitm.c++/static_ctor.C: New file.
1666 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1668         * testsuite/libitm.c/reentrant.c: New file.
1670 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1672         * config/generic/tls.h: Remove the free list for transactions and ...
1673         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1674         (GTM::gtm_transaction::operator delete): ... and release here.
1675         (thread_exit_handler): New. Delete tx when thread terminates.
1676         (thread_exit_init): New.
1677         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1678         * testsuite/libitm.c/txrelease.c: New file.
1680 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1682         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1683         * testsuite/libitm.c/notx.c: New file.
1685 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1687         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1688         * libitm_i.h (local_tid): ... to here.
1689         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1690         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1692 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1694         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1695         serialirr_onwrite_dispatch as new default for now.
1696         * method-serial.cc (serialirr_onwrite_dispatch): New.
1697         (GTM::dispatch_serialirr_onwrite): New.
1698         * libitm_i.h: Same.
1700 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1702         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1703         * query.cc (_ITM_getTransactionId): There is no active transaction if
1704         the current nesting level is zero.
1706 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1708         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1709         rollback.
1711 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1713         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1714         transaction properties from the caller instead of from the
1715         transaction object.
1716         * libitm_i.h: Same.
1717         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1719 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1721         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1722         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1723         * dispatch.h: Same.
1724         * method-serial.cc: Same.
1725         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1726         flat nesting as default, and closed nesting on demand.
1727         (GTM::gtm_transaction::rollback): Same.
1728         (_ITM_abortTransaction): Same.
1729         (GTM::gtm_transaction::restart): Same.
1730         (GTM::gtm_transaction::trycommit): Same.
1731         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1732         (choose_code_path): New.
1733         (GTM::gtm_transaction_cp::save): New.
1734         (GTM::gtm_transaction_cp::commit): New.
1735         * query.cc (_ITM_inTransaction): Support flat nesting.
1736         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1737         (GTM::gtm_transaction): Support flat and closed nesting.
1738         * alloc.cc (commit_allocations_2): New.
1739         (commit_cb_data): New helper struct.
1740         (GTM::gtm_transaction::commit_allocations): Handle nested
1741         commits/rollbacks.
1742         * libitm.texi: Update user action section, add description of nesting.
1744 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1746         * libitm_i.h: Add closed nesting as restart reason.
1747         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1749 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1751         * useraction.cc: Use vector instead of list to store actions.
1752         Also support partial rollbacks for closed nesting.
1753         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1754         * beginend.cc: Same.
1756 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1758         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1759         closed_nesting flags, as well as a closed nesting alternative.
1760         * method-serial.cc: Same.
1761         (serial_dispatch): Renamed to serialirr_dispatch.
1762         (GTM::dispatch_serialirr): Same.
1763         (serial_dispatch_ul): Renamed to serial_dispatch.
1764         (GTM::dispatch_serial): Same.
1766 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1768         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1770 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1772         * aatree.h (aa_tree::remove): New.
1773         (aa_tree::operator new): Add placement new.
1775 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1777         * containers.h: New file.
1778         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1779         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1780         * common.h: ... to here.
1781         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1782         * local.cc: Same.
1784 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1786         * libitm_i.h (STATE_ABORTING): Remove.
1787         * beginend.cc (_ITM_abortTransaction): Same.
1788         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1789         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1790         (_ITM_rollbackTransaction): Remove.
1791         * beginend.cc: Same.
1792         * libitm.map: Same.
1793         * libitm.texi: Document these ABI changes.
1795 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1797         * libitm.texi: New file.
1798         * Makefile.am: Add libitm.texi.
1799         * Makefile.in: Rebuild.
1801 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1803         * libitm_i.h: Move parts to common.h and dispatch.h.
1804         * common.h: New file.
1805         * dispatch.h: New file, new dispatch class.
1806         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1807         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1808         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1809         decision to retry.cc.
1810         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1811         only.
1812         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1813         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1814         logging.
1815         * barrier.cc: Use new barriers definitions.
1816         (abi_dispatch::memmove_overlap_check): New.
1817         * config/x86/x86_sse.cc: Same.
1818         * config/x86/x86_avx.cc: Same.
1819         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1820         memcpy.cc.
1821         * Makefile.in: Rebuild.
1822         * method-readonly.cc: Remove.
1823         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1824         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1826 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1828         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1829         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1830         * testsuite/libitm.c/dropref-2.c: Same.
1831         * testsuite/libitm.c/dropref.c: Same.
1833 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1835         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1836         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1837         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1838         * alloc_c.cc: Same.
1839         * barrier.tpl: Same.
1840         * beginend.c: Same.
1841         * config/generic/tls.h: Same.
1842         * config/x86/tls.h: Same.
1843         * libitm_i.h: Same.
1844         * memcpy.cc: Same.
1845         * memset.cc: Same.
1846         * method-readonly.cc: Same.
1847         * method-serial.cc: Same.
1848         * method-wbetl.cc: Same.
1849         * retry.cc: Same.
1851 2011-03-03  Richard Henderson  <rth@redhat.com>
1853         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1854         From Patrik Marlier <patrick.marlier@unine.ch>.
1856 2011-02-03  Richard Henderson  <rth@redhat.com>
1858         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1859         * configure.ac: Use it.
1860         * configure, config.h.in: Rebuild.
1861         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1862         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1863         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1864         * libitm.map: Use wildcards to match size_t mangling.
1866 2010-12-14  Richard Henderson  <rth@redhat.com>
1868         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1869         blocks of TIDs per thread.
1870         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1871         (setup_gtm_thr): Return the thread structure.
1872         * config/x86/tls.h (setup_gtm_thr): Likewise.
1874 2010-12-14  Richard Henderson  <rth@redhat.com>
1876         * clone.cc (table_lock): Remove.
1877         (find_clone): Don't take it.
1878         (ExcludeTransaction): New helper class.
1879         (_ITM_registerTMCloneTable): Use it.
1880         (_ITM_deregisterTMCloneTable): Likewise.
1882 2010-12-14  Richard Henderson  <rth@redhat.com>
1884         * config/x86/tls.h: New file.
1886 2010-07-15  Richard Henderson  <rth@redhat.com>
1888         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1889         * Makefile.in: Rebuild.
1891 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1893         * method-wbetl.cc (trydropreference): Fix source line.
1895 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1897         * libitm.h: Add comment.
1898         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1900 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1902         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1903         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1904         available, use pthread mutexes.
1905         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1906         * config.h.in: Regenerate.
1907         * configure: Regenerate.
1909 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1911         * libitm.h (ITM_PURE): Define.
1912         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1914 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1916         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1917         (validate): Add comment.
1918         (trydropreference): New.
1919         * method-readonly.cc (class readonly_dispatch): Add
1920         trydropreference.
1921         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1922         Call trydropreference().
1923         * libitm.h (_ITM_dropReferences): Remove const attribute.
1924         * method-serial.cc (class serial_dispatch): Add trydropreference.
1925         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1927 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1929         * memcpy.cc (do_memcpy): Comment.
1931 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1933         * barrier.tpl: Add comments throughout.
1935 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1937         * method-wbetl.cc (struct w_entry): Add comments.
1938         (trycommit): Same.
1939         (rollback): Same.
1941 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1943         * alloc_c.cc (_ITM_dropReferences): New.
1944         * libitm.map (_ITM_dropReferences): Add.
1945         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1946         * libitm_i.h (struct gtm_transaction): Declare
1947         drop_references_allocations and drop_references_local.
1948         * local.cc (rollback_local): Ignore memory when applicable.
1949         (drop_references_local): New.
1951 2010-06-23  Richard Henderson  <rth@redhat.com>
1953         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1954         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1955         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1956         * config/alpha/target.h: Likewise.
1957         * config/generic/tls.cc (gtm_mask_stack): Use it.
1959 2010-06-23  Richard Henderson  <rth@redhat.com>
1961         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1962         a mutex instead of trying a lock-free compare-and-swap on the list.
1963         (gtm_cacheline_page::operator delete): Likewise.
1965 2010-06-16  Richard Henderson  <rth@redhat.com>
1967         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1968         that overlap the libitm stack.
1969         * barrier.tpl: Mark incoming stack.
1970         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1971         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1972         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1973         * memcpy.cc, memset.cc: Likewise.
1974         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1975         * config/generic/tls.h (gtm_thread): Add stack_top member.
1976         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1977         * libitm_i.h (gtm_mask_stack): Declare.
1978         * config/generic/tls.cc: New file.
1979         * Makefile.am (libitm_la_SOURCES): Add it.
1980         (AM_CXXFLAGS): Turn off exceptions.
1981         * Makefile.in: Rebuild.
1983 2010-06-16  Richard Henderson  <rth@redhat.com>
1985         * alloc.cc (struct gtm_alloc_action): Move definition ...
1986         * libitm_i.h: ... here.
1987         (class gtm_transaction): Declare new and delete.
1988         * beginend.cc (alloc_tx): Reformulate as operator new.
1989         (free_tx): Reformulate as operator delete.
1990         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1992 2010-06-11  Richard Henderson  <rth@redhat.com>
1994         * clone.cc (clone_entry_compare): Fix typo.
1995         From Patrik Marlier <patrick.marlier@unine.ch>.
1997 2010-05-13  Richard Henderson  <rth@redhat.com>
1999         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2000         in extern "C".
2002 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2004         * libitm_i.h (struct gtm_transaction): Remove
2005         get_allocation_size.
2006         (record_allocation): Remove size parameter.
2007         * libitm.map (_ITM_realloc): Remove.
2008         * alloc_c.cc (_ITM_realloc): Remove.
2009         (_ITM_malloc): Remove size argument to record_allocation.
2010         (_ITM_calloc): Same.
2011         * alloc_cpp.cc (_ZGTtnwm): Same.
2012         (_ZGTtnwmRKSt9nothrow_t): Same.
2013         (_ZGTtnam): Same.
2014         (_ZGTtnamRKSt9nothrow_t): Same.
2015         * alloc.cc (struct gtm_alloc_action): Remove size.
2016         (get_allocation_size): Remove.
2017         (commit_allocations): Add comment.
2018         (record_allocation): Remove size parameter.
2019         (forget_allocation): Remove set of size.
2021 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2023         * Makefile.am (abi_version): New.
2024         (AM_CXXFLAGS): Pass abi_version.
2025         * Makefile.in: Regenerate.
2026         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2028 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2030         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2031         _ITM_getTMCloneOrIrrevokable.
2032         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2033         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2035 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2037         * configure.ac: Remove Linux futex support.
2038         * configure.tgt (config_path): Same.
2039         * Makefile.am: Same.
2040         * config/linux: Remove entire directory.
2041         * configure: Rebuild.
2042         * Makefile.in: Rebuild.
2043         * testsuite/Makefile.in: Rebuild.
2045 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2047         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2048         switching to serial mode.
2049         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2051 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2053         * configure.tgt: Add emacs -*- tags.
2054         * barrier.tpl: Same.
2056 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2058         * Makefile.am: Rename serial.cc to method-serial.cc.
2059         * Makefile.in: Regenerate with automake 1.11.1.
2060         * testsuite/Makefile.in: Same.
2061         * aclocal.m4: Regenerate with aclocal 1.11.1.
2062         * method-serial.cc: Rename from serial.cc.
2063         * libitm_i.h (struct gtm_transaction): Update comment on
2064         serialirr_mode.
2066 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2068         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2069         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2071 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2073         * configure: Rebuild.
2075 2009-11-12  Richard Henderson  <rth@redhat.com>
2077         * Rewrite everything in C++.
2079 2009-11-03  Richard Henderson  <rth@redhat.com>
2081         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2082         * Makefile.am (libitm_la_SOURCES): Add them.
2083         * configure.ac (ARCH_X86): New conditional.
2084         * Makefile.in, configure: Rebuild.
2085         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2086         Move futex setup into "other system configury" case.
2087         * local.c (rollback_local): Merge into ...
2088         (GTM_rollback_local): ... here.
2089         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2090         (_ITM_LB): Define as an alias to GTM_LB.
2092 2009-11-03  Richard Henderson  <rth@redhat.com>
2094         * method-readonly.c: New file.
2095         * Makefile.am (libitm_la_SOURCES): Add it.
2096         * Makefile.in: Rebuild.
2097         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2098         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2099         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2100         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2101         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2102         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2103         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2104         gtm_get_clock, gtm_inc_clock): New.
2105         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2106         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2107         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2108         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2109         replace uses with new libitm_i.h symbols.
2110         (dispatch_wbetl): Rename from wbetl_dispatch.
2111         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2112         away from dispatch_readonly; abort if the beginTransaction call
2113         asserted that the transaction was readonly.
2115 2009-11-03  Richard Henderson  <rth@redhat.com>
2117         * memset.c: New file.
2118         * Makefile.am (libitm_la_SOURCES): Add it.
2119         * Makefile.in: Rebuild.
2120         * testsuite/libitm.c/memset-1.c: New.
2122 2009-11-03  Richard Henderson  <rth@redhat.com>
2124         * dispatch.c: Remove file.
2125         * useraction.c (struct gtm_user_action): Move from libitm.h.
2126         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2127         (serial_memset, serial_memmove, serial_memcpy): Remove.
2128         (serial_W*, serial_R*): Remove.
2129         (serial_dispatch): Update to match.
2130         * configure.ac: Move Werror down below configure checks.  Don't
2131         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2132         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2133         Use GCC_AC_FUNC_MMAP_BLACKLIST
2134         * libitm.h: Split out all internal items to...
2135         * libitm_i.h: ... here.  New file.
2136         * copymask.c: New file.
2137         * local.c (struct gtm_local_undo): Move from libitm.h.
2138         (GTM_alloc_local): Rename from alloc_local; export.
2139         * memcpy.c: New file.
2140         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2141         * config/posix/page.c: New file.
2142         * config/posix/target_tls.h: Remove file.
2143         * barrier.c: New file.
2144         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2145         copymask.c, page.c.
2146         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2147         * method-wbetl.c: Rewrite for new cacheline methods.
2148         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2150         * config/alpha/sjlj.S: Fix typo.
2151         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2152         * config/alpha/copymask.c: New file.
2153         * config/alpha/target.h (CACHELINE_SIZE): New.
2154         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2156         * config/x86/target_i.h: Copy functions from x86/target.h.
2157         * config/x86/copymask.c: New file.
2158         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2159         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2160         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2161         * config/x86/target_tls.h: Move contents to target_i.h.
2163         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2164         * testsuite/libitm.c/memcpy-1.c: New.
2166 2009-10-22  Richard Henderson  <rth@redhat.com>
2168         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2169         (AM_CCASFLAGS): New.
2170         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2171         saving/restoring _AC_ARG_VAR_PRECIOUS.
2172         * Makefile.in, aclocal.m4, config.h.in, configure,
2173         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2175 2009-10-22  Richard Henderson  <rth@redhat.com>
2177         * testsuite/*: Update for new compiler syntax.
2179 2009-10-21  Richard Henderson  <rth@redhat.com>
2181         * libitm.h (_ITM_abortReason): Add outerAbort.
2183 2009-08-03  Richard Henderson  <rth@redhat.com>
2185         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2186         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2187         * method-wbetl.c (struct w_entry): Remove mask.
2188         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2189         adjust all callers.
2191 2009-07-22  Richard Henderson  <rth@redhat.com>
2193         * eh_cpp.c: New file.
2194         * Makefile.am (libitm_la_SOURCES): Add it.
2195         * Makefile.in: Rebuild.
2196         * beginend.c (GTM_rollback_transaction): Undo exception state.
2197         (GTM_trycommit_transaction): Mark inline.
2198         (GTM_trycommit_and_finalize_transaction): Split out from ...
2199         (_ITM_commitTransaction): ... here.
2200         (_ITM_commitTransactionEH): New function.
2201         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2202         cxa_unthrown, eh_in_flight; reorder.
2204         * testsuite/libitm.c++/c++.exp: New.
2205         * testsuite/libitm.c++/eh-1.C: New.
2207         * aatree.c (aa_free): Remove REGPARM.
2208         * aatree.h: Remove all REGPARM.
2210 2009-07-18  Richard Henderson  <rth@redhat.com>
2212         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2213         * Makefile.am (libitm_la_SOURCES): Add them.
2214         * Makefile.in: Rebuild.
2215         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2216         (GTM_trycommit_transaction): Likewise.
2217         * libitm.h: Include aatree.h
2218         (struct gtm_alloc_action): New.
2219         (struct gtm_transaction): Add alloc_actions.
2220         (GTM_record_allocation, GTM_forget_allocation): Declare.
2221         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2222         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2223         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2224         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2225         _ZGTtdaPvRKSt9nothrow_t): Export.
2227 2009-07-18  Richard Henderson  <rth@redhat.com>
2229         * target_tls.h: Move ...
2230         * config/posix/target_tls.h: ... here.
2232 2009-07-07  Richard Henderson  <rth@redhat.com>
2234         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2236 2009-07-07  Richard Henderson  <rth@redhat.com>
2238         * Update to GPL3.
2240 2009-07-07  Richard Henderson  <rth@redhat.com>
2242         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2243         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2245         * configure.tgt: Don't use -ftls-model for x86 linux.
2246         * libitm.h: Include target.h after standard includes.
2247         (_gtm_thr): Rename from gtm_thr.
2248         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2249         (gtm_disp, set_gtm_disp): New.
2250         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2251         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2252         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2254 2009-07-07  Richard Henderson  <rth@redhat.com>
2256         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2258 2009-07-06  Richard Henderson  <rth@redhat.com>
2260         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2261         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2262         (_ITM_beginTransaction): Take variadic arguments.
2263         (_ITM_registerThrownObject): Declare.
2264         * beginend.c, serial.c: Update.
2265         * libitm.map: Add _ITM_registerThrownObject.
2267 2009-01-28  Richard Henderson  <rth@redhat.com>
2269         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2270         * Makefile.in: Rebuild.
2271         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2272         (GTM_restart_transaction): Fix uninstrumented code check.
2273         * retry.c (GTM_decide_retry_strategy): Add serial check.
2274         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2275         automatically go irrevokable when in serial mode.
2276         * clone.c: New file.
2277         * libitm.h, libitm.map: Update.
2279 2009-01-27  Richard Henderson  <rth@redhat.com>
2281         * Makefile.am (LTCCASCOMPILE): Define.
2282         (libitm_la_SOURCES): Add methid-wbetl.c.
2283         * testsuite/Makefile.am: New
2284         * configure.ac: Add testsuite/Makefile.
2285         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2286         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2287         (_ITM_abortTransaction): Finalize implementation method; pass
2288         transaction properties to longjmp.
2289         (GTM_restart_transaction): Split out from ...
2290         (_ITM_commitTransaction): ... here.
2291         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2292         Move to config/x86/target.h.
2293         * config/linux/alpha/futex_bits.h: New.
2294         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2295         * config/x86/target.h: Disable target types for 32-bit.
2296         * config/alpha/sjlj.S, config/alpha/target.h: New.
2297         * libitm.h (struct gtm_dispatch): Add init, fini.
2298         (enum restart_reason): New.
2299         (struct gtm_transaction): Add method and restarts.
2300         * retry.c (GTM_decide_retry_strategy): Implement.
2301         * serial.c (serial_init, serial_fini): New.
2302         (GTM_serialmode): Finialize outgoing method.
2303         * method-wbetl.c: New.
2305 2008-12-09  Richard Henderson  <rth@redhat.com>
2307         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2308         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2309         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2310         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2311         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2312         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2313         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2314         * serial.c (serial_R##T, serial_W##T): Likewise.
2316 2008-11-21  Richard Henderson  <rth@redhat.com>
2318         * Initial commit.
2320 Copyright (C) 2008-2021 Free Software Foundation, Inc.
2322 Copying and distribution of this file, with or without modification,
2323 are permitted in any medium without royalty provided the copyright
2324 notice and this notice are preserved.