ada: Fix spurious error on nested instantiations with generic renaming
[official-gcc.git] / libitm / ChangeLog
blobb06d2f88a2bab0c1b5cf738cdedd2a21b70f3cc7
1 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
3         * libitm.texi: Bump @copying's copyright year.
5 2022-11-14  Martin Liska  <mliska@suse.cz>
7         Revert:
8         2022-11-14  Martin Liska  <mliska@suse.cz>
10         * doc/c-c++-language-constructs-for-tm.rst: New file.
11         * doc/conf.py: New file.
12         * doc/copyright.rst: New file.
13         * doc/enabling-libitm.rst: New file.
14         * doc/gnu-free-documentation-license.rst: New file.
15         * doc/index.rst: New file.
16         * doc/indices-and-tables.rst: New file.
17         * doc/internals.rst: New file.
18         * doc/locking-conventions.rst: New file.
19         * doc/nesting-flat-vs-closed.rst: New file.
20         * doc/the-libitm-abi.rst: New file.
21         * doc/the-libitm-abi/function-list.rst: New file.
22         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
23         * doc/the-libitm-abi/library-design-principles.rst: New file.
24         * doc/the-libitm-abi/memory-model.rst: New file.
25         * doc/the-libitm-abi/non-objectives.rst: New file.
26         * doc/the-libitm-abi/objectives.rst: New file.
27         * doc/the-libitm-abi/sample-code.rst: New file.
28         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
29         * doc/tm-methods-and-method-groups.rst: New file.
31 2022-11-14  Martin Liska  <mliska@suse.cz>
33         Revert:
34         2022-11-14  Martin Liska  <mliska@suse.cz>
36         * Makefile.in: Support Sphinx based documentation.
38 2022-11-14  Martin Liska  <mliska@suse.cz>
40         Revert:
41         2022-11-14  Martin Liska  <mliska@suse.cz>
43         * libitm.texi: Removed.
45 2022-11-14  Martin Liska  <mliska@suse.cz>
47         Revert:
48         2022-11-14  Martin Liska  <mliska@suse.cz>
50         * Makefile.in: Support --with-sphinx-build.
51         * configure.ac: Likewise.
52         * configure: Regenerate.
54 2022-11-14  Martin Liska  <mliska@suse.cz>
56         Revert:
57         2022-11-14  Martin Liska  <mliska@suse.cz>
59         * Makefile.in: Build info pages conditionally.
61 2022-11-14  Martin Liska  <mliska@suse.cz>
63         Revert:
64         2022-11-14  Martin Liska  <mliska@suse.cz>
66         * doc/c-c++-language-constructs-for-tm.rst:
67         Add trailing newline.
68         * doc/copyright.rst:
69         Add trailing newline.
70         * doc/enabling-libitm.rst:
71         Add trailing newline.
72         * doc/gnu-free-documentation-license.rst:
73         Add trailing newline.
74         * doc/index.rst:
75         Add trailing newline.
76         * doc/indices-and-tables.rst:
77         Add trailing newline.
78         * doc/internals.rst:
79         Add trailing newline.
80         * doc/locking-conventions.rst:
81         Add trailing newline.
82         * doc/nesting-flat-vs-closed.rst:
83         Add trailing newline.
84         * doc/the-libitm-abi.rst:
85         Add trailing newline.
86         * doc/the-libitm-abi/function-list.rst:
87         Add trailing newline.
88         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
89         Add trailing newline.
90         * doc/the-libitm-abi/library-design-principles.rst:
91         Add trailing newline.
92         * doc/the-libitm-abi/memory-model.rst:
93         Add trailing newline.
94         * doc/the-libitm-abi/non-objectives.rst:
95         Add trailing newline.
96         * doc/the-libitm-abi/objectives.rst:
97         Add trailing newline.
98         * doc/the-libitm-abi/sample-code.rst:
99         Add trailing newline.
100         * doc/the-libitm-abi/types-and-macros-list.rst:
101         Add trailing newline.
102         * doc/tm-methods-and-method-groups.rst:
103         Add trailing newline.
105 2022-11-14  Martin Liska  <mliska@suse.cz>
107         Revert:
108         2022-11-14  Martin Liska  <mliska@suse.cz>
110         * Makefile.in: Add missing HAS_SPHINX_BUILD.
112 2022-11-14  Martin Liska  <mliska@suse.cz>
114         Revert:
115         2022-11-14  Martin Liska  <mliska@suse.cz>
117         * doc/conf.py: Add newline at last line.
119 2022-11-14  Martin Liska  <mliska@suse.cz>
121         Revert:
122         2022-11-14  Martin Liska  <mliska@suse.cz>
124         PR other/107620
125         * configure: Regenerate.
126         * configure.ac: Always set sphinx-build.
128 2022-11-13  Martin Liska  <mliska@suse.cz>
130         PR other/107620
131         * configure: Regenerate.
132         * configure.ac: Always set sphinx-build.
134 2022-11-10  Martin Liska  <mliska@suse.cz>
136         * doc/conf.py: Add newline at last line.
138 2022-11-09  Martin Liska  <mliska@suse.cz>
140         * Makefile.in: Add missing HAS_SPHINX_BUILD.
142 2022-11-09  Martin Liska  <mliska@suse.cz>
144         * doc/c-c++-language-constructs-for-tm.rst:
145         Add trailing newline.
146         * doc/copyright.rst:
147         Add trailing newline.
148         * doc/enabling-libitm.rst:
149         Add trailing newline.
150         * doc/gnu-free-documentation-license.rst:
151         Add trailing newline.
152         * doc/index.rst:
153         Add trailing newline.
154         * doc/indices-and-tables.rst:
155         Add trailing newline.
156         * doc/internals.rst:
157         Add trailing newline.
158         * doc/locking-conventions.rst:
159         Add trailing newline.
160         * doc/nesting-flat-vs-closed.rst:
161         Add trailing newline.
162         * doc/the-libitm-abi.rst:
163         Add trailing newline.
164         * doc/the-libitm-abi/function-list.rst:
165         Add trailing newline.
166         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
167         Add trailing newline.
168         * doc/the-libitm-abi/library-design-principles.rst:
169         Add trailing newline.
170         * doc/the-libitm-abi/memory-model.rst:
171         Add trailing newline.
172         * doc/the-libitm-abi/non-objectives.rst:
173         Add trailing newline.
174         * doc/the-libitm-abi/objectives.rst:
175         Add trailing newline.
176         * doc/the-libitm-abi/sample-code.rst:
177         Add trailing newline.
178         * doc/the-libitm-abi/types-and-macros-list.rst:
179         Add trailing newline.
180         * doc/tm-methods-and-method-groups.rst:
181         Add trailing newline.
183 2022-11-09  Martin Liska  <mliska@suse.cz>
185         * Makefile.in: Build info pages conditionally.
187 2022-11-09  Martin Liska  <mliska@suse.cz>
189         * Makefile.in: Support --with-sphinx-build.
190         * configure.ac: Likewise.
191         * configure: Regenerate.
193 2022-11-09  Martin Liska  <mliska@suse.cz>
195         * libitm.texi: Removed.
197 2022-11-09  Martin Liska  <mliska@suse.cz>
199         * Makefile.in: Support Sphinx based documentation.
201 2022-11-09  Martin Liska  <mliska@suse.cz>
203         * doc/c-c++-language-constructs-for-tm.rst: New file.
204         * doc/conf.py: New file.
205         * doc/copyright.rst: New file.
206         * doc/enabling-libitm.rst: New file.
207         * doc/gnu-free-documentation-license.rst: New file.
208         * doc/index.rst: New file.
209         * doc/indices-and-tables.rst: New file.
210         * doc/internals.rst: New file.
211         * doc/locking-conventions.rst: New file.
212         * doc/nesting-flat-vs-closed.rst: New file.
213         * doc/the-libitm-abi.rst: New file.
214         * doc/the-libitm-abi/function-list.rst: New file.
215         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
216         * doc/the-libitm-abi/library-design-principles.rst: New file.
217         * doc/the-libitm-abi/memory-model.rst: New file.
218         * doc/the-libitm-abi/non-objectives.rst: New file.
219         * doc/the-libitm-abi/objectives.rst: New file.
220         * doc/the-libitm-abi/sample-code.rst: New file.
221         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
222         * doc/tm-methods-and-method-groups.rst: New file.
224 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
226         * configure.tgt: Add riscv support.
227         * config/riscv/asm.h: New file.
228         * config/riscv/sjlj.S: New file.
229         * config/riscv/target.h: New file.
231 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
233         * config/loongarch/sjlj.S: Add a soft floating point condition to the
234         register recovery part of the code.
236 2022-10-12  Martin Liska  <mliska@suse.cz>
238         * configure: Regenerate.
240 2022-10-11  Olivier Hainque  <hainque@adacore.com>
241             Olivier Hainque  <hainque@adacore.com>
243         * configure: Regenerate.
245 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
246             Yang Yujie  <yangyujie@loongson.cn>
248         * configure.tgt: Add loongarch support.
249         * config/loongarch/asm.h: New file.
250         * config/loongarch/sjlj.S: New file.
251         * config/loongarch/target.h: New file.
253 2022-08-31  Martin Liska  <mliska@suse.cz>
255         * configure: Regenerate.
257 2022-08-31  Martin Liska  <mliska@suse.cz>
259         * configure: Regenerate.
261 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
263         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
265 2022-02-03  David Seifert  <soap@gentoo.org>
266             Jakub Jelinek  <jakub@redhat.com>
268         * configure.ac: Support --disable-werror.
269         * configure: Regenerate.
271 2022-01-31  Martin Liska  <mliska@suse.cz>
273         * acinclude.m4: Detect *_ld_is_mold and use it.
274         * configure: Regenerate.
276 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
278         * libitm.texi: Bump @copying's copyright year.
280 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
282         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
283         target does not support HAVE_ELF_STYLE_WEAKREF then do not
284         try to test the __cxa_get_globals against NULL.
286 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
288         PR libstdc++/91488
289         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
291 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
293         PR target/70454
294         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
295         be added through preprocessor check on
296         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
298 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
300         * configure: Re-generate.
302 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
304         * libitm.texi: Bump @copying's copyright year.
306 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
308         PR target/97865
309         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
310         * configure: Regenerate.
312 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
314         * configure: Regenerate.
316 2020-10-01  Alan Modra  <amodra@gmail.com>
318         * config/powerpc/sjlj.S: Support __PCREL__ code.
320 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
322         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
324 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
326         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
327         and add BTI c to function entries.
329 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
331         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
333 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
335         PR bootstrap/95413
336         * configure: Regenerated.
338 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
340         PR bootstrap/95147
341         * configure: Regenerated.
343 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
345         * configure: Regenerated.
347 2020-05-12  Nathan Sidwell  <nathan@acm.org>
349         Fix throw specifiers on interface.
350         * libitm/libitm.h (_ITM_NOTHROW): Define.
351         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
352         (_ITM_cxa_begin_catch): Use it.
353         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
354         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
355         __cxa_get_globals.
356         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
357         (_ITM_cxa_begin_catch): Likewise.
359 2020-05-05  Nathan Sidwell  <nathan@acm.org>
361         * testsuite/lib/libitm.exp (libitm_init): Add
362         -fdiagnostics-color=never to options.
364 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
366         PR libstdc++/79193
367         PR libstdc++/88999
369         * configure: Regenerated.
371 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
373         * configure.ac: Handle `--with-toolexeclibdir='.
374         * Makefile.in: Regenerate.
375         * aclocal.m4: Regenerate.
376         * configure: Regenerate.
377         * testsuite/Makefile.in: Regenerate.
379 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
381         Update copyright years.
383         * libitm.texi: Bump @copying's copyright year.
385 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
387         PR libgomp/91938
388         * configure.tgt: Avoid IE tls on *-*-musl*.
390 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
392         * configure: Regenerate.
394 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
396         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
398 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
400         * configure.tgt: Handle *-*-uclinux*.
401         * configure: Regenerate.
403 2019-09-06  Florian Weimer  <fweimer@redhat.com>
405         * configure: Regenerate.
407 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
409         PR other/79543
410         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
411         scanning to conform to the GNU Coding Standards.
412         * configure: Regenerate.
414 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
416         * Makefile.am (finclude): Remove.
417         * Makefile.in: Regenerated.
419 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
421         Update copyright years.
423 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
425         * libitm.texi: Bump @copying's copyright year.
427 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
429         PR c++/88482
430         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
431         void * to void (*) (void *).
432         (_ITM_cxa_throw): Likewise.
433         * libitm.h (_ITM_cxa_throw): Likewise.
434         * libitm.texi (_ITM_cxa_throw): Likewise.
436 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
438         * config/powerpc/target.h (htm_available):  Add support for
439         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
441 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
443         PR bootstrap/82856
444         * Makefile.am: Include multilib.am.
445         (AUTOMAKE_OPTIONS): Add info-in-builddir.
446         (CLEANFILES): Remove libitm.info.
447         * configure.ac: Remove AC_PREREQ.
448         * testsuite/Makefile.am (RUNTEST): Remove quotes.
449         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
450         Regenerate.
452 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
454         PR libitm/86293
455         * method-serial.cc: Mark varible as potentially unused
456         to silence warning.
458 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
460         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
461         absolute relocation in a shared library.
463 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
465         PR libitm/85988
466         * config/linux/x86/tls.h (SEG_READ): Use the offset of
467         __private_tm as base.
468         (SEG_WRITE): Likewise.
469         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
470         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
471         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
472         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
473         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
475 2018-05-17  Jason Merrill  <jason@redhat.com>
477         * beginend.cc (save): Disable -Werror=deprecated-copy.
479 2018-05-02  Tom de Vries  <tom@codesourcery.com>
481         PR testsuite/85106
482         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
484 2018-05-02  Tom de Vries  <tom@codesourcery.com>
486         PR testsuite/85106
487         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
489 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
491         * config/x86/sjlj.S (_ITM_beginTransaction): Add
492         (__CET__ & 2) != 0 check for shadow stack.
493         (GTM_longjmp): Likewise.
495 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
497         * configure: Regenerated.
499 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
501         PR target/85489
502         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
504 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
506         * configure: Regenerated.
508 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
510         PR jit/85384
511         * configure: Regenerate.
513 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
515         PR target/84148
516         * configure: Regenerate.
518 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
520         Update copyright years.
522         * libitm.texi: Bump @copying's copyright year.
524 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
526         * Makefile.in: Regenerate.
527         * acinclude.m4: Add enable.m4 and cet.m4.
528         * config/x86/sjlj.S: Include cet.h.
529         (_ITM_beginTransaction): Add _CET_ENDBR.
530         Save Shadow Stack pointer.
531         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
532         * config/x86/target.h (struct gtm_jmpbuf):
533         Add new field for Shadow Stack pointer.
534         * configure: Regenerate.
535         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
536         * configure.ac: Update libtool_VERSION for x86.
537         * testsuite/Makefile.in: Regenerate.
539 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
541         * libitm/config/x86/target.h: Add new field (ssp).
542         * libitm/config/x86/sjlj.S: Change offsets.
544 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
546         * testsuite/lib/libitm.exp: Load scanlang.exp.
548 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
550         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
552 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
554         PR other/79046
555         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
556         of cat to get version from BASE-VER file.
557         * testsuite/Makefile.in: Regenerated.
559 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
561         * config/x86/target.h (htm_available): Determine vendor from
562         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
564 2017-01-18  Torvald Riegel  <triegel@redhat.com>
566         * config/x86/target.h (htm_available): Add check for some processors
567         on which TSX is broken.
569 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
571         PR other/79046
572         * configure.ac: Add GCC_BASE_VER.
573         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
574         get version from BASE-VER file.
575         * testsuite/Makefile.in: Regenerated.
576         * configure: Regenerated.
577         * Makefile.in: Regenerated.
579 2017-01-04  Alan Modra  <amodra@gmail.com>
581         * Makefile.in: Regenerate.
582         * testsuite/Makefile.in: Regenerate.
584 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
586         Update copyright years.
588         * libitm.texi: Bump @copying's copyright year.
590 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
592         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
593         * aclocal.m4: Regenerate.
594         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
595         LIBITM_CHECK_LINKER_HWCAP.
597 2016-11-15  Matthias Klose  <doko@ubuntu.com>
599         * configure: Regenerate.
601 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
603         PR libitm/70456
604         * util.cc (xmalloc): Use posix_memalign to allocate memory on
605         on cache line if requested.
607 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
609         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
610         function attribute to disable floating point in begin_transaction() on
611         S/390.
612         * beginend.cc (begin_transaction): Use
613         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
615 2016-01-22  Torvald Riegel  <triegel@redhat.com>
617         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
618         boundary.
619         (htm_fastpath): Remove.
620         (gtm_thread::begin_transaction): Fix HTM fastpath.
621         (_ITM_commitTransaction): Adapt.
622         (_ITM_commitTransactionEH): Adapt.
623         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
624         and accessors.
625         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
626         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
627         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
628         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
629         * libitm/method-serial.cc (htm_mg): Adapt.
630         (gtm_thread::serialirr_mode): Adapt.
631         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
633 2016-01-21  Torvald Riegel  <triegel@redhat.com>
635         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
636         or AIX.
638 2016-01-19  Richard Henderson  <rth@redhat.com>
640         PR bootstrap/69343
641         PR bootstrap/69339
642         Revert:
643         2016-01-13  Richard Henderson  <rth@redhat.com>
645         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
646         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
647         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
648         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
649         * configure.ac (ARCH_AARCH64): New conditional.
650         (ARCH_PPC, ARCH_S390): Likewise.
651         * Makefile.in, configure: Rebuild.
653         * libitm.h (_ITM_TYPE_M128): Always define.
654         * vect64.cc: Split ...
655         * vect128.cc: ... out of...
656         * config/x86/x86_sse.cc: ... here.
657         * config/arm/neon.cc: New file.
659 2016-01-19  Torvald Riegel  <triegel@redhat.com>
661         * local_type_traits: Remove file.
662         * libitm_i.h: Don't include it anymore.
663         (sized_integral): Remove.
665 2016-01-16  Torvald Riegel  <triegel@redhat.com>
667         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
668         safety.
669         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
670         * libitm/testsuite/libitm.c/priv-1.c: New.
672 2015-01-15  Torvald Riegel  <triegel@redhat.com>
674         testsuite/libitm.c++/libstdc++-safeexc.C: New.
676 2016-01-13  Torvald Riegel  <triegel@redhat.com>
678         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
679         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
680         (gtm_rwlock::write_unlock): Likewise.
682 2016-01-13  Richard Henderson  <rth@redhat.com>
684         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
685         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
686         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
687         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
688         * configure.ac (ARCH_AARCH64): New conditional.
689         (ARCH_PPC, ARCH_S390): Likewise.
690         * Makefile.in, configure: Rebuild.
692         * libitm.h (_ITM_TYPE_M128): Always define.
693         * vect64.cc: Split ...
694         * vect128.cc: ... out of...
695         * config/x86/x86_sse.cc: ... here.
696         * config/arm/neon.cc: New file.
698 2016-01-13  Torvald Riegel  <triegel@redhat.com>
700         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
701         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
702         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
703         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
704         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
705         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
706         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
707         (serialirr_dispatch::snapshot_most_recent): New.
708         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
710 2016-01-12  Torvald Riegel  <triegel@redhat.com>
712         * libitm_i.h (gtm_mask_stack): Remove.
713         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
714         * stmlock.h: Remove file.
715         * config/alpha/cacheline.h: Likewise.
716         * config/generic/cacheline.h: Likewise.
717         * config/powerpc/cacheline.h: Likewise.
718         * config/sparc/cacheline.h: Likewise.
719         * config/x86/cacheline.h: Likewise.
721 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
723         Update copyright years.
725         * libitm.texi: Bump @copying's copyright year.
727 2015-11-26  Torvald Riegel  <triegel@redhat.com>
729         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
730         (ml_wt_dispatch::pre_write): Adapt.
731         (ml_wt_dispatch::pre_load): Likewise.
733 2015-11-22  Torvald Riegel  <triegel@redhat.com>
735         * libitm_i.h (gtm_alloc_action): Remove union.
736         * testsuite/libitm.c/alloc-1.c: New.
738 2015-11-19  Torvald Riegel  <triegel@redhat.com>
740         * testsuite/libitm.c++/eh-5.C: New.
741         * libitm.h (_ITM_cxa_free_exception): New.
742         * libitm.map (_ITM_cxa_free_exception): Add it.
743         * libitm.texi: Update ABI docs.
744         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
745         (gtm_transaction_cp::cxa_uncaught_count): Add.
746         (gtm_thread::cxa_unthrown): Remove.
747         (gtm_thread::cxa_uncaught_count_ptr): Add.
748         (gtm_thread::cxa_uncaught_count): Add.
749         (gtm_thread::drop_references_allocations): Rename to...
750         (gtm_thread::discard_allocation): ... this and adapt.
751         (gtm_thread::init_cpp_exceptions): New.
752         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
753         (gtm_thread::begin_transaction): Likewise.
754         (gtm_transaction_cp::save): Likewise.
755         (gtm_thread::trycommit): Likewise.
756         * eh_cpp.cc: Add overview comments.
757         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
758         (free_any_exception, _ITM_cxa_free_exception): New.
759         (gtm_thread::init_cpp_exceptions): Define.
760         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
761         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
762         (gtm_thread::revert_cpp_exceptions): Likewise.
764 2015-11-09  Torvald Riegel  <triegel@redhat.com>
766         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
767         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
768         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
769         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
770         (gtm_thread::forget_allocations): New overload with size_t argument.
771         * alloc.c (gtm_thread::forget_allocation): Define new overload and
772         adapt existing one.
773         (gtm_thread::record_allocation): Adapt.
774         (gtm_thread::commit_allocations_1): Adapt.
775         (gtm_thread::commit_allocations_2): Adapt.
776         * testsuite/libitm.c++/newdelete.C: New.
778 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
779             Joseph Myers  <joseph@codesourcery.com>
780             Mark Shinwell  <shinwell@codesourcery.com>
781             Andrew Stubbs  <ams@codesourcery.com>
782             Rich Felker <dalias@libc.org>
784         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
785         GTM_begin_transaction for compatibility with FDPIC.
787 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
789         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
790         using load_gcc_lib.
792 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
794         PR libitm/61164
795         * local_atomic (__always_inline): Rename to...
796         (__libitm_always_inline): ... this.
798 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
800         PR target/52482
801         * config/powerpc/sjlj.S: Port to Xcode 2.5.
803 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
805         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
806         operands "op" and "val" to int.
808 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
810         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
811         "op" and "val" to int.
813 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
815         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
816         "op" and "val" to int.
818 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
820         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
821         Declare as static int.
822         (FUTEX_PRIVATE_FLAG): Remove L suffix.
823         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
825 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
827         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
828         sys_futex0 function.
830 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
832         * Makefile.in: Regenerated with automake-1.11.6.
833         * aclocal.m4: Likewise.
834         * configure: Likewise.
835         * testsuite/Makefile.in: Likewise.
837 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
839         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
840         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
842 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
844         PR libitm/64360
845         * libitm.c/stackundo.c (test2): Make it static.
846         (test1): Likewise.
848 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
850         Update copyright years.
852 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
854         * libitm.texi: Bump @copying's copyright year.
856 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
858         * testsuite/lib/libitm.exp: Load target-utils.exp.
859         Move load of target-supports.exp earlier.
861 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
863         * configure.tgt (x86_64): Tune -m32 multilib to generic.
865 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
867         PR bootstrap/63784
868         * configure: Regenerated.
870 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
872         PR target/63610
873         * configure: Regenerate.
875 2014-10-06  Marek Polacek  <polacek@redhat.com>
877         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
878         * testsuite/libitm.c/memset-1.c: Likewise.
880 2014-07-24  Richard Henderson  <rth@redhat.com>
882         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
883         addressing mode in epilogue.
885 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
887         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
888         -mclear-hwcap instead.
889         * configure: Regenerate.
890         * clearcap.map: Remove.
892 2014-05-21  John Marino  <gnugcc@marino.st>
894         * configure.tgt (*-*-dragonfly*): New target.
896 2014-05-19  Richard Henderson  <rth@redhat.com>
898         * config/aarch64/sjlj.S: New file.
899         * config/aarch64/target.h: New file.
900         * configure.tgt: Enable aarch64.
902 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
904         * config/generic/asmcfi.h: Also check for
905         __GCC_HAVE_DWARF2_CFI_ASM.
907 2013-04-02  Richard Henderson  <rth@redhat.com>
909         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
910         * config/arm/target.h, config/sh/target.h: Likewise.
911         * config/sparc/target.h, config/x86/target.h: Likewise.
913 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
915         * config/linux/futex_bits.h: Include errno.h.
916         (sys_futex0): If syscall returns -1, return -errno rather than
917         -1.
919 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
921         * libitm.texi (Index): Rename to Library Index.
923 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
925         PR libitm/53113
926         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
927         (x86_avx.lo): Append -mavx to CXXFLAGS.
928         * Makefile.in: Regenerate.
930 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
932         Update copyright years
934 2014-01-02  Tobias Burnus  <burnus@net-b.de>
936         * libitm.texi: Bump @copying's copyright year.
938 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
940         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
941         (FUNC): Define ELFv2 variant.
942         (END): Likewise.
943         (HIDDEN): Likewise.
944         (CALL): Likewise.
945         (BASE): Likewise.
946         (LR_SAVE): Likewise.
948 2013-09-20  Alan Modra  <amodra@gmail.com>
950         * configure: Regenerate.
952 2013-08-30  Torvald Riegel  <triegel@redhat.com>
954         * config/posix/rwlock.cc: Fix initialization order.
956 2013-08-30  Torvald Riegel  <triegel@redhat.com>
958         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
959         (htm_fastpath): Assign an asm name.
960         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
961         HTM fast paths.
962         (_ITM_actions): Likewise.
963         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
964         x86_64.
965         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
966         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
967         field to the start of the structure.
968         * config/linux/rwlock.h (gtm_rwlock): Update comments.
969         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
970         handling for custom HTM fast paths.
972 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
973         Revert:
974         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
976         * configure.tgt: Add -msoft-float to XCFLAGS.
978 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
980         * configure.tgt: Add -msoft-float to XCFLAGS.
982 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
984         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
985         (htm_transaction_active): Enable zEC12 instructions in the
986         assembler.
987         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
989 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
991         * acinclude.m4: Add htm asm check for s390.
992         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
993         * configure: Regenerate.
994         * config/s390/target.h: Remove __HTM__ check.
995         (htm_available): Call getauxval to get hwcaps and check whether
996         HTM is available or not.
998 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1000         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1001         * configure.ac: Use it.
1002         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1003         (AC_CHECK_FUNCS): Check for getauxval.
1004         * config.h.in, configure: Rebuild.
1005         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1006         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1007         (USE_HTM_FASTPATH): Define.
1008         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1009         _HTM_RETRIES) New macros.
1010         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1011         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1013 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1015         * config/s390/target.h: Include htmintrin.h.
1016         (_HTM_ITM_RETRIES): New macro definition.
1017         (htm_available, htm_init, htm_begin, htm_begin_success)
1018         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1020 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1021             Cesar Philippidis  <cesar@codesourcery.com>
1023         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1024         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1025         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1026         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1028 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1030         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1031         (_ITM_getTransactionId): Same.
1032         * config/x86/target.h (htm_transaction_active): New.
1034 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1036         PR libitm/57643
1037         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1038         the HTM fastpath.
1040 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1042         PR bootstrap/56714
1043         * local_atomic (__always_inline): Always define our version.
1044         (__calculate_memory_order): Mark inline.
1045         (atomic_thread_fence): Ditto.
1046         (atomic_signal_fence): Ditto.
1047         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1048         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1049         (atomic_bool::atomic_flag_test_and_set): Ditto.
1050         (atomic_bool::atomic_flag_clear): Ditto.
1052 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1054         * config/s390/sjlj.S: New file.
1055         * config/s390/target.h: New file.
1056         * configure.tgt: Set options for S/390.
1058 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1060         * local_atomic (__always_inline): Add.
1061         (__calculate_memory_order, atomic_thread_fence,
1062         atomic_signal_fence, test_and_set, clear, store, load,
1063         exchange, compare_exchange_weak, compare_exchange_strong,
1064         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1065         Add __always_inline to force inlining.
1067 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1068             Jack Howarth  <howarth@bromo.med.uc.edu>
1069             Patrick Marlier  <patrick.marlier@gmail.com>
1071         PR libitm/55693
1072         * alloc_cpp.cc: Enable function declarations on darwin.
1073         * eh_cpp.cc: Likewise.
1075 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1077         Update copyright years.
1079 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1081         * beginend.cc (htm_fastpath): New.
1082         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1083         _ITM_commitTransactionEH): Add HTM fastpath handling.
1084         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1085         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1086         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1087         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1088         * configure.tgt: Add -mrtm to XCFLAGS.
1089         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1090         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1091         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1092         * retry.cc (parse_default_method): Add HTM method parsing.
1093         (gtm_thread::number_of_threads_changed): Use HTM by default if
1094         available.
1096 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1098         * configure: Regenerate.
1100 2012-10-31  Richard Henderson  <rth@redhat.com>
1102         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1103         * configure.ac: Use it.
1104         * config.h.in, configure: Rebuild.
1105         * testsuite/Makefile.in: Rebuild.
1107 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1109         * libitm.texi: Clarify ABI requirements for data-logging functions.
1111 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1113         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1114         it requires serial mode instead of assuming that for certain
1115         dispatchs.
1116         * dispatch.h (abi_dispatch::requires_serial): New.
1117         (abi_dispatch::abi_dispatch): Adapt.
1118         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1119         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1120         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1121         serial_dispatch::serial_dispatch,
1122         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1124 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1126         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1127         and ia32 declarations some more.
1128         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1130 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1132         PR other/43620
1133         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1134         * configure: Regenerate.
1135         * Makefile.in: Regenerate.
1137 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1139         * configure: Regenerated.
1141 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1143         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1145 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1147         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1149 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1151         * configure: Regenerated.
1153 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1155         PR libitm/52854
1156         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1157         for x86-64.
1159 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1161         * configure: Regenerate.
1163 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1165         PR bootstrap/52812
1166         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1168 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1170         * testsuite/lib/libitm.exp: load fortran-modules.exp
1172 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1174         * configure.tgt (*-*-irix6*): Remove.
1176 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1178         PR libitm/52526
1179         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1180         wake-up.
1182 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1184         * configure.tgt (*-*-osf*): Remove.
1185         * configure: Regenerate.
1187 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1189         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1190         memtransfer/memset if size isn't larger than zero.
1192 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1194         * libitm.texi: Link to specification and add a usage example.
1196 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1198         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1199         default dispatch for more than 1 thread to ml_wt.
1201 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1203         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1205 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1207         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1209 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1211         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1212         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1213         (gl_wt_dispatch.rollback): Same.
1215 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1217         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1219 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1221         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1222         for RfW src.  Optimize number of calls to gtm_thr.
1224 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1226         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1227         acquisition to ...
1228         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1229         (default_dispatch): Make atomic.
1230         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1231         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1232         use decide_begin_dispatch() if default_dispatch might have changed.
1233         (GTM::gtm_thread::number_of_threads_changed): Initialize
1234         default_dispatch here.
1236 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1237             Patrick Marlier  <patrick.marlier@gmail.com>
1239         PR libitm/52220
1240         * alloc_cpp.cc: No dummy definitions for darwin.
1241         * eh_cpp.cc: Likewise.
1243 2012-02-14  Richard Henderson  <rth@redhat.com>
1245         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1247 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1249         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1251 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1253         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1254         (GTM::gtm_thread): Add read and write logs.
1255         (GTM::dispatch_ml_wt): Declare.
1256         * retry.cc (parse_default_method): Support ml_wt.
1257         * method-ml.cc: New file.
1258         * Makefile.am: Add method-ml.cc.
1259         * Makefile.in: Regenerate.
1261 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1263         * dispatch.h (GTM::abi_dispatch::supports): New.
1264         (GTM::method_group::reinit): New.
1265         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1266         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1267         supports the current situation.
1269 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1271         * util.cc (GTM::xcalloc): New.
1272         * common.h (GTM::xcalloc): Declare.
1274 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1276         * config/sparc/target.h (cpu_relax): Read from CC register.
1277         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1279 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1281         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1283 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1285         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1286         * config/sparc/cacheline.h: New file.
1287         * config/sparc/target.h: Likewise.
1288         * config/sparc/sjlj.S: Likewise.
1289         * config/linux/sparc/futex_bits.h: Likewise.
1291 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1293         * configure.ac (link_itm): Fix comment.
1294         * configure: Regenerate.
1295         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1297 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1299         PR libitm/51822
1300         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1301         Correct libgomp references.
1303 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1305         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1306         wake-up.
1308 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1310         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1311         end of structure.
1312         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1313         offset values.  Do not copy return address.  Decrement stack
1314         by 56 bytes only.
1315         (GTM_longjump) [__x86_64__]: Update offset values.
1317 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1319         PR libitm/51830
1320         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1321         the first function argument to %eax.
1323 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1325         * libitm.h (_ITM_getThreadnum): Remove.
1326         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1328 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1330         * clearcap.map: New file.
1331         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1332         * configure.ac: Call it.
1333         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1334         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1335         * configure: Regenerate.
1336         * Makefile.in: Regenerate.
1337         * testsuite/Makefile.in: Regenerate.
1339 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1341         PR libitm/51173
1342         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1343         include, exclude options.
1345 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1347         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1348         rolling back.
1349         * containers.h (GTM::vector::set_size): New.
1351 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1353         PR libitm/51855
1354         * config/generic/tls.h (GTM::mask_stack_top): New.
1355         (GTM::mask_stack_bottom): Declare.
1356         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1357         * local.cc (gtm_undolog::rollback): Filter out any updates that
1358         overlap the libitm stack.  Add current transaction as parameter.
1359         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1360         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1361         * testsuite/libitm.c/stackundo.c: New test.
1363 2012-01-10  Richard Henderson  <rth@redhat.com>
1365         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1366         * eh_cpp.cc (_Unwind_DeleteException): Define for
1367         !HAVE_ELF_STYLE_WEAKREF.
1369 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1371         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1372         (GTM::gtm_thread::drop_references_undolog): Remove.
1373         (GTM::gtm_thread::commit_undolog,
1374         GTM::gtm_thread::rollback_undolog): Move to ...
1375         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1376         (GTM::gtm_undolog_entry): Remove.
1377         (GTM::gtm_thread): Adapt.
1378         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1379         (GTM::gtm_thread::trycommit): Adapt.
1380         * method-serial.cc (serial_dispatch::log): Adapt.
1381         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1382         (gl_wt_dispatch::store): Fix likely/unlikely.
1383         * containers.h (GTM::vector::resize): Add additional_capacity
1384         parameter and handle it.
1385         (GTM::vector::resize_noinline): New/adapt.
1386         (GTM::vector::push): New.
1388 2012-01-06  Richard Henderson  <rth@redhat.com>
1390         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1391         * config/linux/powerpc/futex_bits.h: New file.
1392         * config/powerpc/cacheline.h: New file.
1393         * config/powerpc/sjlj.S: New file.
1394         * config/powerpc/target.h: New file.
1395         * config/generic/asmcfi.h (cfi_offset): New.
1396         (cfi_restore, cfi_undefined): New.
1398 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1400         PR other/51171
1401         * testsuite/libitm.c/reentrant.c: Remove xfail.
1402         (thread): Pass x to pure().
1403         From Patrik Marlier <patrick.marlier@gmail.com>.
1405 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1407         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1408         privatization safety if already in serial mode.
1410 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1412         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1413         finish_serial_upgrade parameter.
1414         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1415         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1416         Don't unset reader flag.
1417         (GTM::gtm_rwlock::write_upgrade_finish): New.
1418         * config/posix/rwlock.cc: Same.
1419         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1420         Declare.
1421         * config/posix/rwlock.h: Same.
1422         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1423         flag after commit or after rollback when restarting.
1425 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1427         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1428         (GTM::gtm_thread::try_commit): Changed memory order.
1429         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1430         as parameter.
1431         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1432         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1433         * config/linux/futex_bits.h (sys_futex0): Same.
1434         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1435         * config/linux/futex.h (futex_wait, futex_wake): Same.
1436         * config/linux/rwlock.h (gtm_rwlock::writers,
1437         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1438         ints.
1439         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1440         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1441         gtm_rwlock::write_unlock): Fix memory orders and fences.
1442         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1443         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1444         gtm_rwlock::write_unlock): Same.
1445         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1446         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1447         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1448         Add comments.
1449         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1450         gl_wt_dispatch::load, gl_wt_dispatch::store,
1451         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1452         orders and fences.  Add comments.
1454 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1456         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1457         * Makefile.in: Regenerated.
1459 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1461         * configure.tgt: Add sh* case.
1462         * config/sh/target.h: New file.
1463         * config/sh/sjlj.S: New file.
1464         * config/linux/sh/futex_bits.h: New file.
1466 2011-12-14  Richard Henderson  <rth@redhat.com>
1468         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1469         * config/arm/sjlj.S, config/arm/target.h: New files.
1470         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1471         (cfi_rel_offset): New.
1472         * config/linux/futex_bits.h: New file.
1473         * config/linux/futex.cc: Include futex_bits.h here...
1474         * config/linux/futex.h: ... not here.
1475         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1476         * configure.ac (ARCH_AM): New conditional.
1477         * Makefile.in, configure: Rebuild.
1478         * configure.tgt: Handle ARM.
1480 2011-12-13  Richard Henderson  <rth@redhat.com>
1482         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1483         signed/unsigned comparison werror.
1485         * local_atomic: New file.
1486         * libitm_i.h: Include it.
1487         (gtm_thread::shared_state): Use atomic template.
1488         * beginend.cc (GTM::gtm_clock): Use atomic template.
1489         (global_tid): Use atomic template if 64-bit atomics available.
1490         (gtm_thread::gtm_thread): Update shared_state access.
1491         (gtm_thread::trycommit): Likewise.
1492         (choose_code_path): Update global_tid access.
1493         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1494         * stmlock.h (GTM::gtm_clock): Use atomic template.
1495         (gtm_get_clock, gtm_inc_clock): Update accesses.
1496         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1497         redundant __sync_synchronize after atomic shared_state access.
1498         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1499         (gtm_rwlock::write_lock_generic): Likewise.
1500         (gtm_rwlock::read_unlock): Likewise.
1501         * config/alpha/target.h (atomic_read_barrier): Remove.
1502         (atomic_write_barrier): Remove.
1503         * config/x86/target.h (atomic_read_barrier): Remove.
1504         (atomic_write_barrier): Remove.
1506 2011-11-30  Richard Henderson  <rth@redhat.com>
1508         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1509         * beginend.c (_ITM_abortTransaction): Update to match.
1510         (GTM::gtm_thread::restart): Likewise.
1511         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1512         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1514 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1516         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1517         * Makefile.in: Regenerate.
1519 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1521         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1522         * alloc_cpp.cc: Generate dummy functions if we don't
1523         HAVE_ELF_STYLE_WEAKREF.
1524         * eh_cpp.cc: Likewise.
1525         * configure: Regenerate.
1526         * aclocal.m4:  Likewise.
1527         * config.h.in: Likewise.
1528         * Makefile.in: Likewise.
1529         * testsuite/Makefile.in: Likewise.
1531 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1533         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1534         __USER_LABEL_PREFIX__ for targets that use it.
1535         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1536         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1537         in portability to non-elf targets.
1538         (GTM_longjmp): Likewise.
1539         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1540         where required.
1542 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1544         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1545         * testsuite/libitm.c/memset-1.c: Likewise.
1547 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1549         * configure: Regenerate.
1551 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1553         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1554         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1555         * Makefile.am: Handle sun style versioning.
1556         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1557         * configure: Regenerate.
1558         * Makefile.in: Regenerate.
1560 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1562         * config/generic/asmcfi.h: Fix comment.
1563         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1564         sequence without .hidden support, error for non-ELF targets.
1565         (GTM_longjmp) [__ELF__]: Only use .hidden if
1566         HAVE_ATTRIBUTE_VISIBILITY.
1568 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1570         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1571         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1572         Dummy functions.
1573         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1574         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1576 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1578         PR bootstrap/51098
1579         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1580         * configure: Regenerate.
1582 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1584         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1586 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1588         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1589         .hidden.
1590         (.note.GNU-stack): Only use if __linux__.
1591         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1592         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1593         * testsuite/libitm.c/reentrant.c: Likewise.
1594         * testsuite/libitm.c/simple-2.c: Likewise.
1595         * testsuite/libitm.c/txrelease.c: Likewise.
1596         * testsuite/libitm.c++/static_ctor.C: Likewise.
1598 2011-11-10  Richard Henderson  <rth@redhat.com>
1600         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1601         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1602         * configure.ac (ARCH_X86_AVX): New conditional.
1603         * Makefile.in, configure: Rebuild.
1605 2011-11-09  Richard Henderson  <rth@redhat.com>
1607         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1608         * configure.ac: Use it.
1609         * config.h.in, configure: Rebuild.
1610         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1612 2011-11-09  Richard Henderson  <rth@redhat.com>
1614         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1615         * config/alpha/unaligned.h: Remove file.
1616         * config/generic/unaligned.h: Remove file.
1617         * config/x86/unaligned.h: Remove file.
1618         * config/generic/cachepage.h: Remove file.
1619         * config/posix/cachepage.cc: Remove file.
1620         * config/generic/cacheline.cc: Remove file.
1621         * config/x86/cacheline.cc: Remove file.
1622         * config/generic/cacheline.h (gtm_cacheline): Remove the
1623         store_mask, copy_mask, copy_mask_wb methods.
1624         * config/x86/cacheline.h: Likewise.
1625         * config/alpha/cacheline.h: Fall back to generic after setting size.
1626         * config/generic/tls.cc (gtm_mask_stack): Remove.
1627         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1628         (GTM_vpalignr_table): Remove.
1629         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1630         (GTM_pshift_table): Remove.
1631         * config/libitm_i.h: Don't include cachepage.h.
1632         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1633         * Makefile.in, testsuite/Makefile.in: Rebuild.
1635 2011-11-09  Richard Henderson  <rth@redhat.com>
1637         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1638         to emit branch prediction hint.
1640         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1641         Protect .note.GNU-stack with __linux__.
1643         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1644         * configure, aclocal.m4, config.h.in: Rebuild.
1645         * config/generic/asmcfi.h: New file.
1646         * config/x86/sjlj.S: Use it.
1648 2011-11-08  Richard Henderson  <rth@redhat.com>
1650         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1652 2011-11-08  Richard Henderson  <rth@redhat.com>
1654         * configure.tgt: Test correct directory for supported cpus.
1656         * configure.ac: Exit if unsupported.
1657         * configure: Rebuild.
1658         * configure.tgt: Delete boilerplate from libgomp for unsupported
1659         targets.  Set UNSUPPORTED for unsupported targets.
1661 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1663         * configure.tgt: Handle i386 like i[456]86.
1664         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1665         take address.
1666         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1667         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1669 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1671         * method-wbetl.cc: Update copyright notice.
1672         * aatree.cc: Same.
1673         * util.cc: Same.
1674         * libitm.h: Same.
1675         * memset.cc: Same.
1676         * eh_cpp.cc: Same.
1677         * barrier.tpl: Same.
1678         * useraction.cc: Same.
1679         * stmlock.h: Same.
1680         * memcpy.cc: Same.
1681         * common.h: Same.
1682         * config/generic/tls.cc: Same.
1683         * config/generic/cacheline.h: Same.
1684         * config/generic/cachepage.h: Same.
1685         * config/generic/cacheline.cc: Same.
1686         * config/generic/unaligned.h: Same.
1687         * config/x86/cacheline.h: Same.
1688         * config/x86/cacheline.cc: Same.
1689         * config/x86/unaligned.h: Same.
1690         * config/alpha/cacheline.h: Same.
1691         * config/alpha/unaligned.h: Same.
1692         * config/alpha/sjlj.S: Same.
1693         * config/posix/cachepage.cc: Same.
1694         * config/linux/futex.h: Same.
1695         * config/linux/alpha/futex_bits.h: Same.
1697 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1699         * libitm.texi: No cover text and invariant sections.
1701 2011-11-03  Richard Henderson  <rth@redhat.com>
1703         * local_type_traits: New file.
1704         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1706 2011-11-03  Richard Henderson  <rth@redhat.com>
1708         * configure.ac: Don't test for gfortran.
1709         * configure: Rebuild.
1711         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1712         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1714 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1716         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1717         * testsuite/libitm.c/memset-1.c: Same.
1718         * testsuite/libitm.c/c.exp: Same.
1719         * testsuite/lib/libitm-dg.exp: Same.
1720         * testsuite/lib/libitm.exp: Same.
1721         * testsuite/libitm.c++/c++.exp: Same.
1723 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1725         * testsuite/config/default.exp: Update copyright date.
1726         * configure.ac: Add copyright info.
1727         * configure.tgt: Same.
1729 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1731         * testsuite/libitm.c/reentrant.c: XFAIL.
1732         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1734 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1736         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1737         handle aborts.
1738         (_ITM_abortTransaction): Handle aborts of outer transactions.
1739         * libitm_i.h: Same.
1740         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1741         * libitm.texi: Document aborts of outer transactions.
1742         * testsuite/libitm.c/cancel.c: New file.
1744 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1746         * testsuite/*: Change __transaction to __transaction_atomic or
1747         __transaction_relaxed.
1749 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1751         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1752         (gtm_thr): Same.
1754 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1756         * libitm_i.h: Add gl_wt dispatch.
1757         * retry.cc (parse_default_method): Same.
1758         * method-gl.cc: New file.
1759         * Makefile.am: Use method-gl.cc.
1760         * Makefile.in: Rebuild.
1762 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1764         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1765         safety if requested by a TM method.
1766         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1767         privatization safety.
1768         * method-serial.cc: Same.
1770 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1772         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1773         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1774         undolog-related member functions from *_local to *_undolog.
1775         * local.cc (gtm_thread::commit_undolog): Same.
1776         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1777         (GTM::gtm_thread::rollback): Roll back undolog before
1778         dispatch-specific rollback.
1780 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1782         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1783         re-initialization of the current method group.
1784         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1786 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1788         * alloc.cc (commit_allocations_2): Do not free transaction-local
1789         memory when committing a nested transaction.
1791 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1793         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1794         serial-irrevocable dispatch, not serial.
1796 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1798         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1799         declarations.
1800         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1801         * method-serial.cc: Implement begin_or_restart().
1802         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1803         dispatch-specific begin_or_restart().
1804         (GTM::gtm_thread::restart): Same.
1806 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1808         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1809         restarting without switching to serial mode.
1810         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1811         transaction state. Choose closed-nesting alternative if available.
1812         (GTM::gtm_thread::set_default_dispatch): New.
1813         (parse_default_method): New.
1814         (GTM::gtm_thread::number_of_threads_changed): New.
1815         * method-serial.cc (GTM::serial_mg): New method group class.
1816         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1817         fini.
1818         (GTM::serial_dispatch): Same.
1819         (GTM::serialirr_onwrite_dispatch): Same.
1820         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1821         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1822         registered threads.
1823         (GTM::gtm_thread::gtm_thread): Same.
1824         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1825         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1826         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1827         choose dispatch but set state according to dispatch here.
1828         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1829         (GTM::method_group): New class.
1830         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1831         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1832         * libitm.texi: Document TM methods, method groups, method life cycle.
1833         Rename method sets to method groups.
1835 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1837         * config/x86/tls.h: Moved to ...
1838         * config/linux/x86/tls.h: ... here.
1840 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1842         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1843         Add X32 support.
1844         * config/x86/sjlj.S: Same.
1846 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1848         * config/linux/rwlock.h: New file.
1849         * config/linux/rwlock.c: New file.
1850         * configure.ac: Reenable futex support (undo SVN rev 157758).
1851         * Makefile.am: Same.
1852         * configure.tgt: Same.
1853         * config/linux/alpha/futex_bits.h: Same.
1854         * config/linux/futex.h: Same. Return number of woken processes.
1855         * config/linux/futex.cc: Same.
1856         (futex_wait): Remove spinning.
1857         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1858         Use __x86_64__ instead of __LP64__.
1859         * aclocal.m4: Include generic futex checks.
1860         * configure: Rebuild.
1861         * Makefile.in: Rebuild.
1862         * testsuite/Makefile.in: Rebuild.
1863         * beginend.cc: Include pthread.h.
1864         * config/posix/cachepage.cc: Same.
1866 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1868         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1869         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1870         (set_gtm_thr): New.
1871         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1872         (set_gtm_thr): New.
1873         (GTM::gtm_thread::thread_num): Removed.
1874         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1875         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1876         tx-to-thread renaming.
1877         * beginend.cc: Adapted to tx-to-thread renaming.
1878         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1879         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1880         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1881         gtm_transaction to gtm_thread.
1882         (_ITM_getThreadnum): Removed. Not supported anymore.
1883         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1884         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1885         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1886         gtm_tx-to-gtm_thr renaming if necessary.
1887         * eh_cpp.cc: Same.
1888         * local.cc: Same.
1889         * retry.cc: Same.
1890         * clone.cc: Same.
1891         * alloc.cc: Same.
1892         * alloc_c.cc: Same.
1893         * alloc_cpp.cc: Same.
1894         * method-serial.cc: Same.
1895         * config/generic/tls.cc: Same.
1896         * config/posix/rwlock.h (gtm_rwlock): Same.
1897         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1899 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1901         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1902         implementation.
1903         (gtm_rwlock::read_unlock): Same.
1904         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1905         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1906         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1907         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1908         w_upgrade. Replaced by per-transaction flags (in shared_state).
1909         Added c_confirmed_writers.
1910         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1911         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1912         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1913         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1914         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1915         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1916         * libitm.texi: Document locking conventions and implementations in
1917         libitm.
1919 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1921         * libitm_i.h (next_tx): Add list of all threads' transaction.
1922         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1923         transaction with list of transactions and ...
1924         (thread_exit_handler): ... deregister here.
1925         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1926         * config/x86/target.h: Same.
1928 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1930         * testsuite/libitm.c++/static_ctor.C: New file.
1932 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1934         * testsuite/libitm.c/reentrant.c: New file.
1936 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1938         * config/generic/tls.h: Remove the free list for transactions and ...
1939         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1940         (GTM::gtm_transaction::operator delete): ... and release here.
1941         (thread_exit_handler): New. Delete tx when thread terminates.
1942         (thread_exit_init): New.
1943         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1944         * testsuite/libitm.c/txrelease.c: New file.
1946 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1948         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1949         * testsuite/libitm.c/notx.c: New file.
1951 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1953         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1954         * libitm_i.h (local_tid): ... to here.
1955         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1956         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1958 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1960         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1961         serialirr_onwrite_dispatch as new default for now.
1962         * method-serial.cc (serialirr_onwrite_dispatch): New.
1963         (GTM::dispatch_serialirr_onwrite): New.
1964         * libitm_i.h: Same.
1966 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1968         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1969         * query.cc (_ITM_getTransactionId): There is no active transaction if
1970         the current nesting level is zero.
1972 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1974         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1975         rollback.
1977 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1979         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1980         transaction properties from the caller instead of from the
1981         transaction object.
1982         * libitm_i.h: Same.
1983         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1985 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1987         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1988         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1989         * dispatch.h: Same.
1990         * method-serial.cc: Same.
1991         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1992         flat nesting as default, and closed nesting on demand.
1993         (GTM::gtm_transaction::rollback): Same.
1994         (_ITM_abortTransaction): Same.
1995         (GTM::gtm_transaction::restart): Same.
1996         (GTM::gtm_transaction::trycommit): Same.
1997         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1998         (choose_code_path): New.
1999         (GTM::gtm_transaction_cp::save): New.
2000         (GTM::gtm_transaction_cp::commit): New.
2001         * query.cc (_ITM_inTransaction): Support flat nesting.
2002         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2003         (GTM::gtm_transaction): Support flat and closed nesting.
2004         * alloc.cc (commit_allocations_2): New.
2005         (commit_cb_data): New helper struct.
2006         (GTM::gtm_transaction::commit_allocations): Handle nested
2007         commits/rollbacks.
2008         * libitm.texi: Update user action section, add description of nesting.
2010 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2012         * libitm_i.h: Add closed nesting as restart reason.
2013         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2015 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2017         * useraction.cc: Use vector instead of list to store actions.
2018         Also support partial rollbacks for closed nesting.
2019         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2020         * beginend.cc: Same.
2022 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2024         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2025         closed_nesting flags, as well as a closed nesting alternative.
2026         * method-serial.cc: Same.
2027         (serial_dispatch): Renamed to serialirr_dispatch.
2028         (GTM::dispatch_serialirr): Same.
2029         (serial_dispatch_ul): Renamed to serial_dispatch.
2030         (GTM::dispatch_serial): Same.
2032 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2034         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2036 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2038         * aatree.h (aa_tree::remove): New.
2039         (aa_tree::operator new): Add placement new.
2041 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2043         * containers.h: New file.
2044         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2045         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2046         * common.h: ... to here.
2047         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2048         * local.cc: Same.
2050 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2052         * libitm_i.h (STATE_ABORTING): Remove.
2053         * beginend.cc (_ITM_abortTransaction): Same.
2054         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2055         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2056         (_ITM_rollbackTransaction): Remove.
2057         * beginend.cc: Same.
2058         * libitm.map: Same.
2059         * libitm.texi: Document these ABI changes.
2061 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2063         * libitm.texi: New file.
2064         * Makefile.am: Add libitm.texi.
2065         * Makefile.in: Rebuild.
2067 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2069         * libitm_i.h: Move parts to common.h and dispatch.h.
2070         * common.h: New file.
2071         * dispatch.h: New file, new dispatch class.
2072         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2073         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2074         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2075         decision to retry.cc.
2076         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2077         only.
2078         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2079         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2080         logging.
2081         * barrier.cc: Use new barriers definitions.
2082         (abi_dispatch::memmove_overlap_check): New.
2083         * config/x86/x86_sse.cc: Same.
2084         * config/x86/x86_avx.cc: Same.
2085         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2086         memcpy.cc.
2087         * Makefile.in: Rebuild.
2088         * method-readonly.cc: Remove.
2089         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2090         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2092 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2094         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2095         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2096         * testsuite/libitm.c/dropref-2.c: Same.
2097         * testsuite/libitm.c/dropref.c: Same.
2099 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2101         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2102         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2103         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2104         * alloc_c.cc: Same.
2105         * barrier.tpl: Same.
2106         * beginend.c: Same.
2107         * config/generic/tls.h: Same.
2108         * config/x86/tls.h: Same.
2109         * libitm_i.h: Same.
2110         * memcpy.cc: Same.
2111         * memset.cc: Same.
2112         * method-readonly.cc: Same.
2113         * method-serial.cc: Same.
2114         * method-wbetl.cc: Same.
2115         * retry.cc: Same.
2117 2011-03-03  Richard Henderson  <rth@redhat.com>
2119         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2120         From Patrik Marlier <patrick.marlier@unine.ch>.
2122 2011-02-03  Richard Henderson  <rth@redhat.com>
2124         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2125         * configure.ac: Use it.
2126         * configure, config.h.in: Rebuild.
2127         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2128         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2129         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2130         * libitm.map: Use wildcards to match size_t mangling.
2132 2010-12-14  Richard Henderson  <rth@redhat.com>
2134         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2135         blocks of TIDs per thread.
2136         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2137         (setup_gtm_thr): Return the thread structure.
2138         * config/x86/tls.h (setup_gtm_thr): Likewise.
2140 2010-12-14  Richard Henderson  <rth@redhat.com>
2142         * clone.cc (table_lock): Remove.
2143         (find_clone): Don't take it.
2144         (ExcludeTransaction): New helper class.
2145         (_ITM_registerTMCloneTable): Use it.
2146         (_ITM_deregisterTMCloneTable): Likewise.
2148 2010-12-14  Richard Henderson  <rth@redhat.com>
2150         * config/x86/tls.h: New file.
2152 2010-07-15  Richard Henderson  <rth@redhat.com>
2154         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2155         * Makefile.in: Rebuild.
2157 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2159         * method-wbetl.cc (trydropreference): Fix source line.
2161 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2163         * libitm.h: Add comment.
2164         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2166 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2168         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2169         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2170         available, use pthread mutexes.
2171         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2172         * config.h.in: Regenerate.
2173         * configure: Regenerate.
2175 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2177         * libitm.h (ITM_PURE): Define.
2178         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2180 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2182         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2183         (validate): Add comment.
2184         (trydropreference): New.
2185         * method-readonly.cc (class readonly_dispatch): Add
2186         trydropreference.
2187         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2188         Call trydropreference().
2189         * libitm.h (_ITM_dropReferences): Remove const attribute.
2190         * method-serial.cc (class serial_dispatch): Add trydropreference.
2191         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2193 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2195         * memcpy.cc (do_memcpy): Comment.
2197 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2199         * barrier.tpl: Add comments throughout.
2201 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2203         * method-wbetl.cc (struct w_entry): Add comments.
2204         (trycommit): Same.
2205         (rollback): Same.
2207 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2209         * alloc_c.cc (_ITM_dropReferences): New.
2210         * libitm.map (_ITM_dropReferences): Add.
2211         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2212         * libitm_i.h (struct gtm_transaction): Declare
2213         drop_references_allocations and drop_references_local.
2214         * local.cc (rollback_local): Ignore memory when applicable.
2215         (drop_references_local): New.
2217 2010-06-23  Richard Henderson  <rth@redhat.com>
2219         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2220         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2221         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2222         * config/alpha/target.h: Likewise.
2223         * config/generic/tls.cc (gtm_mask_stack): Use it.
2225 2010-06-23  Richard Henderson  <rth@redhat.com>
2227         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2228         a mutex instead of trying a lock-free compare-and-swap on the list.
2229         (gtm_cacheline_page::operator delete): Likewise.
2231 2010-06-16  Richard Henderson  <rth@redhat.com>
2233         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2234         that overlap the libitm stack.
2235         * barrier.tpl: Mark incoming stack.
2236         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2237         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2238         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2239         * memcpy.cc, memset.cc: Likewise.
2240         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2241         * config/generic/tls.h (gtm_thread): Add stack_top member.
2242         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2243         * libitm_i.h (gtm_mask_stack): Declare.
2244         * config/generic/tls.cc: New file.
2245         * Makefile.am (libitm_la_SOURCES): Add it.
2246         (AM_CXXFLAGS): Turn off exceptions.
2247         * Makefile.in: Rebuild.
2249 2010-06-16  Richard Henderson  <rth@redhat.com>
2251         * alloc.cc (struct gtm_alloc_action): Move definition ...
2252         * libitm_i.h: ... here.
2253         (class gtm_transaction): Declare new and delete.
2254         * beginend.cc (alloc_tx): Reformulate as operator new.
2255         (free_tx): Reformulate as operator delete.
2256         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2258 2010-06-11  Richard Henderson  <rth@redhat.com>
2260         * clone.cc (clone_entry_compare): Fix typo.
2261         From Patrik Marlier <patrick.marlier@unine.ch>.
2263 2010-05-13  Richard Henderson  <rth@redhat.com>
2265         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2266         in extern "C".
2268 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2270         * libitm_i.h (struct gtm_transaction): Remove
2271         get_allocation_size.
2272         (record_allocation): Remove size parameter.
2273         * libitm.map (_ITM_realloc): Remove.
2274         * alloc_c.cc (_ITM_realloc): Remove.
2275         (_ITM_malloc): Remove size argument to record_allocation.
2276         (_ITM_calloc): Same.
2277         * alloc_cpp.cc (_ZGTtnwm): Same.
2278         (_ZGTtnwmRKSt9nothrow_t): Same.
2279         (_ZGTtnam): Same.
2280         (_ZGTtnamRKSt9nothrow_t): Same.
2281         * alloc.cc (struct gtm_alloc_action): Remove size.
2282         (get_allocation_size): Remove.
2283         (commit_allocations): Add comment.
2284         (record_allocation): Remove size parameter.
2285         (forget_allocation): Remove set of size.
2287 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2289         * Makefile.am (abi_version): New.
2290         (AM_CXXFLAGS): Pass abi_version.
2291         * Makefile.in: Regenerate.
2292         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2294 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2296         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2297         _ITM_getTMCloneOrIrrevokable.
2298         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2299         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2301 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2303         * configure.ac: Remove Linux futex support.
2304         * configure.tgt (config_path): Same.
2305         * Makefile.am: Same.
2306         * config/linux: Remove entire directory.
2307         * configure: Rebuild.
2308         * Makefile.in: Rebuild.
2309         * testsuite/Makefile.in: Rebuild.
2311 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2313         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2314         switching to serial mode.
2315         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2317 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2319         * configure.tgt: Add emacs -*- tags.
2320         * barrier.tpl: Same.
2322 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2324         * Makefile.am: Rename serial.cc to method-serial.cc.
2325         * Makefile.in: Regenerate with automake 1.11.1.
2326         * testsuite/Makefile.in: Same.
2327         * aclocal.m4: Regenerate with aclocal 1.11.1.
2328         * method-serial.cc: Rename from serial.cc.
2329         * libitm_i.h (struct gtm_transaction): Update comment on
2330         serialirr_mode.
2332 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2334         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2335         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2337 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2339         * configure: Rebuild.
2341 2009-11-12  Richard Henderson  <rth@redhat.com>
2343         * Rewrite everything in C++.
2345 2009-11-03  Richard Henderson  <rth@redhat.com>
2347         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2348         * Makefile.am (libitm_la_SOURCES): Add them.
2349         * configure.ac (ARCH_X86): New conditional.
2350         * Makefile.in, configure: Rebuild.
2351         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2352         Move futex setup into "other system configury" case.
2353         * local.c (rollback_local): Merge into ...
2354         (GTM_rollback_local): ... here.
2355         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2356         (_ITM_LB): Define as an alias to GTM_LB.
2358 2009-11-03  Richard Henderson  <rth@redhat.com>
2360         * method-readonly.c: New file.
2361         * Makefile.am (libitm_la_SOURCES): Add it.
2362         * Makefile.in: Rebuild.
2363         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2364         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2365         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2366         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2367         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2368         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2369         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2370         gtm_get_clock, gtm_inc_clock): New.
2371         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2372         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2373         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2374         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2375         replace uses with new libitm_i.h symbols.
2376         (dispatch_wbetl): Rename from wbetl_dispatch.
2377         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2378         away from dispatch_readonly; abort if the beginTransaction call
2379         asserted that the transaction was readonly.
2381 2009-11-03  Richard Henderson  <rth@redhat.com>
2383         * memset.c: New file.
2384         * Makefile.am (libitm_la_SOURCES): Add it.
2385         * Makefile.in: Rebuild.
2386         * testsuite/libitm.c/memset-1.c: New.
2388 2009-11-03  Richard Henderson  <rth@redhat.com>
2390         * dispatch.c: Remove file.
2391         * useraction.c (struct gtm_user_action): Move from libitm.h.
2392         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2393         (serial_memset, serial_memmove, serial_memcpy): Remove.
2394         (serial_W*, serial_R*): Remove.
2395         (serial_dispatch): Update to match.
2396         * configure.ac: Move Werror down below configure checks.  Don't
2397         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2398         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2399         Use GCC_AC_FUNC_MMAP_BLACKLIST
2400         * libitm.h: Split out all internal items to...
2401         * libitm_i.h: ... here.  New file.
2402         * copymask.c: New file.
2403         * local.c (struct gtm_local_undo): Move from libitm.h.
2404         (GTM_alloc_local): Rename from alloc_local; export.
2405         * memcpy.c: New file.
2406         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2407         * config/posix/page.c: New file.
2408         * config/posix/target_tls.h: Remove file.
2409         * barrier.c: New file.
2410         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2411         copymask.c, page.c.
2412         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2413         * method-wbetl.c: Rewrite for new cacheline methods.
2414         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2416         * config/alpha/sjlj.S: Fix typo.
2417         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2418         * config/alpha/copymask.c: New file.
2419         * config/alpha/target.h (CACHELINE_SIZE): New.
2420         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2422         * config/x86/target_i.h: Copy functions from x86/target.h.
2423         * config/x86/copymask.c: New file.
2424         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2425         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2426         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2427         * config/x86/target_tls.h: Move contents to target_i.h.
2429         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2430         * testsuite/libitm.c/memcpy-1.c: New.
2432 2009-10-22  Richard Henderson  <rth@redhat.com>
2434         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2435         (AM_CCASFLAGS): New.
2436         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2437         saving/restoring _AC_ARG_VAR_PRECIOUS.
2438         * Makefile.in, aclocal.m4, config.h.in, configure,
2439         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2441 2009-10-22  Richard Henderson  <rth@redhat.com>
2443         * testsuite/*: Update for new compiler syntax.
2445 2009-10-21  Richard Henderson  <rth@redhat.com>
2447         * libitm.h (_ITM_abortReason): Add outerAbort.
2449 2009-08-03  Richard Henderson  <rth@redhat.com>
2451         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2452         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2453         * method-wbetl.c (struct w_entry): Remove mask.
2454         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2455         adjust all callers.
2457 2009-07-22  Richard Henderson  <rth@redhat.com>
2459         * eh_cpp.c: New file.
2460         * Makefile.am (libitm_la_SOURCES): Add it.
2461         * Makefile.in: Rebuild.
2462         * beginend.c (GTM_rollback_transaction): Undo exception state.
2463         (GTM_trycommit_transaction): Mark inline.
2464         (GTM_trycommit_and_finalize_transaction): Split out from ...
2465         (_ITM_commitTransaction): ... here.
2466         (_ITM_commitTransactionEH): New function.
2467         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2468         cxa_unthrown, eh_in_flight; reorder.
2470         * testsuite/libitm.c++/c++.exp: New.
2471         * testsuite/libitm.c++/eh-1.C: New.
2473         * aatree.c (aa_free): Remove REGPARM.
2474         * aatree.h: Remove all REGPARM.
2476 2009-07-18  Richard Henderson  <rth@redhat.com>
2478         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2479         * Makefile.am (libitm_la_SOURCES): Add them.
2480         * Makefile.in: Rebuild.
2481         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2482         (GTM_trycommit_transaction): Likewise.
2483         * libitm.h: Include aatree.h
2484         (struct gtm_alloc_action): New.
2485         (struct gtm_transaction): Add alloc_actions.
2486         (GTM_record_allocation, GTM_forget_allocation): Declare.
2487         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2488         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2489         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2490         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2491         _ZGTtdaPvRKSt9nothrow_t): Export.
2493 2009-07-18  Richard Henderson  <rth@redhat.com>
2495         * target_tls.h: Move ...
2496         * config/posix/target_tls.h: ... here.
2498 2009-07-07  Richard Henderson  <rth@redhat.com>
2500         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2502 2009-07-07  Richard Henderson  <rth@redhat.com>
2504         * Update to GPL3.
2506 2009-07-07  Richard Henderson  <rth@redhat.com>
2508         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2509         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2511         * configure.tgt: Don't use -ftls-model for x86 linux.
2512         * libitm.h: Include target.h after standard includes.
2513         (_gtm_thr): Rename from gtm_thr.
2514         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2515         (gtm_disp, set_gtm_disp): New.
2516         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2517         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2518         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2520 2009-07-07  Richard Henderson  <rth@redhat.com>
2522         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2524 2009-07-06  Richard Henderson  <rth@redhat.com>
2526         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2527         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2528         (_ITM_beginTransaction): Take variadic arguments.
2529         (_ITM_registerThrownObject): Declare.
2530         * beginend.c, serial.c: Update.
2531         * libitm.map: Add _ITM_registerThrownObject.
2533 2009-01-28  Richard Henderson  <rth@redhat.com>
2535         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2536         * Makefile.in: Rebuild.
2537         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2538         (GTM_restart_transaction): Fix uninstrumented code check.
2539         * retry.c (GTM_decide_retry_strategy): Add serial check.
2540         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2541         automatically go irrevokable when in serial mode.
2542         * clone.c: New file.
2543         * libitm.h, libitm.map: Update.
2545 2009-01-27  Richard Henderson  <rth@redhat.com>
2547         * Makefile.am (LTCCASCOMPILE): Define.
2548         (libitm_la_SOURCES): Add methid-wbetl.c.
2549         * testsuite/Makefile.am: New
2550         * configure.ac: Add testsuite/Makefile.
2551         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2552         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2553         (_ITM_abortTransaction): Finalize implementation method; pass
2554         transaction properties to longjmp.
2555         (GTM_restart_transaction): Split out from ...
2556         (_ITM_commitTransaction): ... here.
2557         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2558         Move to config/x86/target.h.
2559         * config/linux/alpha/futex_bits.h: New.
2560         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2561         * config/x86/target.h: Disable target types for 32-bit.
2562         * config/alpha/sjlj.S, config/alpha/target.h: New.
2563         * libitm.h (struct gtm_dispatch): Add init, fini.
2564         (enum restart_reason): New.
2565         (struct gtm_transaction): Add method and restarts.
2566         * retry.c (GTM_decide_retry_strategy): Implement.
2567         * serial.c (serial_init, serial_fini): New.
2568         (GTM_serialmode): Finialize outgoing method.
2569         * method-wbetl.c: New.
2571 2008-12-09  Richard Henderson  <rth@redhat.com>
2573         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2574         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2575         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2576         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2577         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2578         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2579         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2580         * serial.c (serial_R##T, serial_W##T): Likewise.
2582 2008-11-21  Richard Henderson  <rth@redhat.com>
2584         * Initial commit.
2586 Copyright (C) 2008-2023 Free Software Foundation, Inc.
2588 Copying and distribution of this file, with or without modification,
2589 are permitted in any medium without royalty provided the copyright
2590 notice and this notice are preserved.