c++: undiagnosed error_mark_node from cp_build_c_cast [PR112658]
[official-gcc.git] / libitm / ChangeLog
blobe80a0455354fe2c894c0f973d20104a5af6eb0c8
1 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
3         * testsuite/lib/libitm.exp: Likewise.
4         * testsuite/libitm.c++/c++.exp: Likewise.
6 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
8         * Makefile.am: Handle Darwin rpaths.
9         * Makefile.in: Regenerate.
10         * configure: Regenerate.
11         * configure.ac: Handle Darwin rpaths.
13 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
15         * configure: Regenerate.
17 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
19         * configure: Regenerate.
21 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
23         * configure: Regenerate.
25 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
27         * configure: Regenerate.
29 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
31         * configure: Regenerate.
33 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
35         * configure: Regenerate.
37 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
39         * configure.ac (PERL): Remove.
40         * configure: Regenerate.
41         * Makefile.in: Likewise.
42         * testsuite/Makefile.in: Likewise.
44 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
46         * libitm.texi: Bump @copying's copyright year.
48 2022-11-14  Martin Liska  <mliska@suse.cz>
50         Revert:
51         2022-11-14  Martin Liska  <mliska@suse.cz>
53         * doc/c-c++-language-constructs-for-tm.rst: New file.
54         * doc/conf.py: New file.
55         * doc/copyright.rst: New file.
56         * doc/enabling-libitm.rst: New file.
57         * doc/gnu-free-documentation-license.rst: New file.
58         * doc/index.rst: New file.
59         * doc/indices-and-tables.rst: New file.
60         * doc/internals.rst: New file.
61         * doc/locking-conventions.rst: New file.
62         * doc/nesting-flat-vs-closed.rst: New file.
63         * doc/the-libitm-abi.rst: New file.
64         * doc/the-libitm-abi/function-list.rst: New file.
65         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
66         * doc/the-libitm-abi/library-design-principles.rst: New file.
67         * doc/the-libitm-abi/memory-model.rst: New file.
68         * doc/the-libitm-abi/non-objectives.rst: New file.
69         * doc/the-libitm-abi/objectives.rst: New file.
70         * doc/the-libitm-abi/sample-code.rst: New file.
71         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
72         * doc/tm-methods-and-method-groups.rst: New file.
74 2022-11-14  Martin Liska  <mliska@suse.cz>
76         Revert:
77         2022-11-14  Martin Liska  <mliska@suse.cz>
79         * Makefile.in: Support Sphinx based documentation.
81 2022-11-14  Martin Liska  <mliska@suse.cz>
83         Revert:
84         2022-11-14  Martin Liska  <mliska@suse.cz>
86         * libitm.texi: Removed.
88 2022-11-14  Martin Liska  <mliska@suse.cz>
90         Revert:
91         2022-11-14  Martin Liska  <mliska@suse.cz>
93         * Makefile.in: Support --with-sphinx-build.
94         * configure.ac: Likewise.
95         * configure: Regenerate.
97 2022-11-14  Martin Liska  <mliska@suse.cz>
99         Revert:
100         2022-11-14  Martin Liska  <mliska@suse.cz>
102         * Makefile.in: Build info pages conditionally.
104 2022-11-14  Martin Liska  <mliska@suse.cz>
106         Revert:
107         2022-11-14  Martin Liska  <mliska@suse.cz>
109         * doc/c-c++-language-constructs-for-tm.rst:
110         Add trailing newline.
111         * doc/copyright.rst:
112         Add trailing newline.
113         * doc/enabling-libitm.rst:
114         Add trailing newline.
115         * doc/gnu-free-documentation-license.rst:
116         Add trailing newline.
117         * doc/index.rst:
118         Add trailing newline.
119         * doc/indices-and-tables.rst:
120         Add trailing newline.
121         * doc/internals.rst:
122         Add trailing newline.
123         * doc/locking-conventions.rst:
124         Add trailing newline.
125         * doc/nesting-flat-vs-closed.rst:
126         Add trailing newline.
127         * doc/the-libitm-abi.rst:
128         Add trailing newline.
129         * doc/the-libitm-abi/function-list.rst:
130         Add trailing newline.
131         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
132         Add trailing newline.
133         * doc/the-libitm-abi/library-design-principles.rst:
134         Add trailing newline.
135         * doc/the-libitm-abi/memory-model.rst:
136         Add trailing newline.
137         * doc/the-libitm-abi/non-objectives.rst:
138         Add trailing newline.
139         * doc/the-libitm-abi/objectives.rst:
140         Add trailing newline.
141         * doc/the-libitm-abi/sample-code.rst:
142         Add trailing newline.
143         * doc/the-libitm-abi/types-and-macros-list.rst:
144         Add trailing newline.
145         * doc/tm-methods-and-method-groups.rst:
146         Add trailing newline.
148 2022-11-14  Martin Liska  <mliska@suse.cz>
150         Revert:
151         2022-11-14  Martin Liska  <mliska@suse.cz>
153         * Makefile.in: Add missing HAS_SPHINX_BUILD.
155 2022-11-14  Martin Liska  <mliska@suse.cz>
157         Revert:
158         2022-11-14  Martin Liska  <mliska@suse.cz>
160         * doc/conf.py: Add newline at last line.
162 2022-11-14  Martin Liska  <mliska@suse.cz>
164         Revert:
165         2022-11-14  Martin Liska  <mliska@suse.cz>
167         PR other/107620
168         * configure: Regenerate.
169         * configure.ac: Always set sphinx-build.
171 2022-11-13  Martin Liska  <mliska@suse.cz>
173         PR other/107620
174         * configure: Regenerate.
175         * configure.ac: Always set sphinx-build.
177 2022-11-10  Martin Liska  <mliska@suse.cz>
179         * doc/conf.py: Add newline at last line.
181 2022-11-09  Martin Liska  <mliska@suse.cz>
183         * Makefile.in: Add missing HAS_SPHINX_BUILD.
185 2022-11-09  Martin Liska  <mliska@suse.cz>
187         * doc/c-c++-language-constructs-for-tm.rst:
188         Add trailing newline.
189         * doc/copyright.rst:
190         Add trailing newline.
191         * doc/enabling-libitm.rst:
192         Add trailing newline.
193         * doc/gnu-free-documentation-license.rst:
194         Add trailing newline.
195         * doc/index.rst:
196         Add trailing newline.
197         * doc/indices-and-tables.rst:
198         Add trailing newline.
199         * doc/internals.rst:
200         Add trailing newline.
201         * doc/locking-conventions.rst:
202         Add trailing newline.
203         * doc/nesting-flat-vs-closed.rst:
204         Add trailing newline.
205         * doc/the-libitm-abi.rst:
206         Add trailing newline.
207         * doc/the-libitm-abi/function-list.rst:
208         Add trailing newline.
209         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
210         Add trailing newline.
211         * doc/the-libitm-abi/library-design-principles.rst:
212         Add trailing newline.
213         * doc/the-libitm-abi/memory-model.rst:
214         Add trailing newline.
215         * doc/the-libitm-abi/non-objectives.rst:
216         Add trailing newline.
217         * doc/the-libitm-abi/objectives.rst:
218         Add trailing newline.
219         * doc/the-libitm-abi/sample-code.rst:
220         Add trailing newline.
221         * doc/the-libitm-abi/types-and-macros-list.rst:
222         Add trailing newline.
223         * doc/tm-methods-and-method-groups.rst:
224         Add trailing newline.
226 2022-11-09  Martin Liska  <mliska@suse.cz>
228         * Makefile.in: Build info pages conditionally.
230 2022-11-09  Martin Liska  <mliska@suse.cz>
232         * Makefile.in: Support --with-sphinx-build.
233         * configure.ac: Likewise.
234         * configure: Regenerate.
236 2022-11-09  Martin Liska  <mliska@suse.cz>
238         * libitm.texi: Removed.
240 2022-11-09  Martin Liska  <mliska@suse.cz>
242         * Makefile.in: Support Sphinx based documentation.
244 2022-11-09  Martin Liska  <mliska@suse.cz>
246         * doc/c-c++-language-constructs-for-tm.rst: New file.
247         * doc/conf.py: New file.
248         * doc/copyright.rst: New file.
249         * doc/enabling-libitm.rst: New file.
250         * doc/gnu-free-documentation-license.rst: New file.
251         * doc/index.rst: New file.
252         * doc/indices-and-tables.rst: New file.
253         * doc/internals.rst: New file.
254         * doc/locking-conventions.rst: New file.
255         * doc/nesting-flat-vs-closed.rst: New file.
256         * doc/the-libitm-abi.rst: New file.
257         * doc/the-libitm-abi/function-list.rst: New file.
258         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
259         * doc/the-libitm-abi/library-design-principles.rst: New file.
260         * doc/the-libitm-abi/memory-model.rst: New file.
261         * doc/the-libitm-abi/non-objectives.rst: New file.
262         * doc/the-libitm-abi/objectives.rst: New file.
263         * doc/the-libitm-abi/sample-code.rst: New file.
264         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
265         * doc/tm-methods-and-method-groups.rst: New file.
267 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
269         * configure.tgt: Add riscv support.
270         * config/riscv/asm.h: New file.
271         * config/riscv/sjlj.S: New file.
272         * config/riscv/target.h: New file.
274 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
276         * config/loongarch/sjlj.S: Add a soft floating point condition to the
277         register recovery part of the code.
279 2022-10-12  Martin Liska  <mliska@suse.cz>
281         * configure: Regenerate.
283 2022-10-11  Olivier Hainque  <hainque@adacore.com>
284             Olivier Hainque  <hainque@adacore.com>
286         * configure: Regenerate.
288 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
289             Yang Yujie  <yangyujie@loongson.cn>
291         * configure.tgt: Add loongarch support.
292         * config/loongarch/asm.h: New file.
293         * config/loongarch/sjlj.S: New file.
294         * config/loongarch/target.h: New file.
296 2022-08-31  Martin Liska  <mliska@suse.cz>
298         * configure: Regenerate.
300 2022-08-31  Martin Liska  <mliska@suse.cz>
302         * configure: Regenerate.
304 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
306         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
308 2022-02-03  David Seifert  <soap@gentoo.org>
309             Jakub Jelinek  <jakub@redhat.com>
311         * configure.ac: Support --disable-werror.
312         * configure: Regenerate.
314 2022-01-31  Martin Liska  <mliska@suse.cz>
316         * acinclude.m4: Detect *_ld_is_mold and use it.
317         * configure: Regenerate.
319 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
321         * libitm.texi: Bump @copying's copyright year.
323 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
325         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
326         target does not support HAVE_ELF_STYLE_WEAKREF then do not
327         try to test the __cxa_get_globals against NULL.
329 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
331         PR libstdc++/91488
332         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
334 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
336         PR target/70454
337         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
338         be added through preprocessor check on
339         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
341 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
343         * configure: Re-generate.
345 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
347         * libitm.texi: Bump @copying's copyright year.
349 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
351         PR target/97865
352         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
353         * configure: Regenerate.
355 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
357         * configure: Regenerate.
359 2020-10-01  Alan Modra  <amodra@gmail.com>
361         * config/powerpc/sjlj.S: Support __PCREL__ code.
363 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
365         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
367 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
369         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
370         and add BTI c to function entries.
372 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
374         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
376 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
378         PR bootstrap/95413
379         * configure: Regenerated.
381 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
383         PR bootstrap/95147
384         * configure: Regenerated.
386 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
388         * configure: Regenerated.
390 2020-05-12  Nathan Sidwell  <nathan@acm.org>
392         Fix throw specifiers on interface.
393         * libitm/libitm.h (_ITM_NOTHROW): Define.
394         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
395         (_ITM_cxa_begin_catch): Use it.
396         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
397         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
398         __cxa_get_globals.
399         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
400         (_ITM_cxa_begin_catch): Likewise.
402 2020-05-05  Nathan Sidwell  <nathan@acm.org>
404         * testsuite/lib/libitm.exp (libitm_init): Add
405         -fdiagnostics-color=never to options.
407 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
409         PR libstdc++/79193
410         PR libstdc++/88999
412         * configure: Regenerated.
414 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
416         * configure.ac: Handle `--with-toolexeclibdir='.
417         * Makefile.in: Regenerate.
418         * aclocal.m4: Regenerate.
419         * configure: Regenerate.
420         * testsuite/Makefile.in: Regenerate.
422 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
424         Update copyright years.
426         * libitm.texi: Bump @copying's copyright year.
428 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
430         PR libgomp/91938
431         * configure.tgt: Avoid IE tls on *-*-musl*.
433 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
435         * configure: Regenerate.
437 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
439         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
441 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
443         * configure.tgt: Handle *-*-uclinux*.
444         * configure: Regenerate.
446 2019-09-06  Florian Weimer  <fweimer@redhat.com>
448         * configure: Regenerate.
450 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
452         PR other/79543
453         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
454         scanning to conform to the GNU Coding Standards.
455         * configure: Regenerate.
457 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
459         * Makefile.am (finclude): Remove.
460         * Makefile.in: Regenerated.
462 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
464         Update copyright years.
466 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
468         * libitm.texi: Bump @copying's copyright year.
470 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
472         PR c++/88482
473         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
474         void * to void (*) (void *).
475         (_ITM_cxa_throw): Likewise.
476         * libitm.h (_ITM_cxa_throw): Likewise.
477         * libitm.texi (_ITM_cxa_throw): Likewise.
479 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
481         * config/powerpc/target.h (htm_available):  Add support for
482         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
484 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
486         PR bootstrap/82856
487         * Makefile.am: Include multilib.am.
488         (AUTOMAKE_OPTIONS): Add info-in-builddir.
489         (CLEANFILES): Remove libitm.info.
490         * configure.ac: Remove AC_PREREQ.
491         * testsuite/Makefile.am (RUNTEST): Remove quotes.
492         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
493         Regenerate.
495 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
497         PR libitm/86293
498         * method-serial.cc: Mark varible as potentially unused
499         to silence warning.
501 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
503         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
504         absolute relocation in a shared library.
506 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
508         PR libitm/85988
509         * config/linux/x86/tls.h (SEG_READ): Use the offset of
510         __private_tm as base.
511         (SEG_WRITE): Likewise.
512         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
513         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
514         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
515         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
516         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
518 2018-05-17  Jason Merrill  <jason@redhat.com>
520         * beginend.cc (save): Disable -Werror=deprecated-copy.
522 2018-05-02  Tom de Vries  <tom@codesourcery.com>
524         PR testsuite/85106
525         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
527 2018-05-02  Tom de Vries  <tom@codesourcery.com>
529         PR testsuite/85106
530         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
532 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
534         * config/x86/sjlj.S (_ITM_beginTransaction): Add
535         (__CET__ & 2) != 0 check for shadow stack.
536         (GTM_longjmp): Likewise.
538 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
540         * configure: Regenerated.
542 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
544         PR target/85489
545         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
547 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
549         * configure: Regenerated.
551 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
553         PR jit/85384
554         * configure: Regenerate.
556 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
558         PR target/84148
559         * configure: Regenerate.
561 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
563         Update copyright years.
565         * libitm.texi: Bump @copying's copyright year.
567 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
569         * Makefile.in: Regenerate.
570         * acinclude.m4: Add enable.m4 and cet.m4.
571         * config/x86/sjlj.S: Include cet.h.
572         (_ITM_beginTransaction): Add _CET_ENDBR.
573         Save Shadow Stack pointer.
574         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
575         * config/x86/target.h (struct gtm_jmpbuf):
576         Add new field for Shadow Stack pointer.
577         * configure: Regenerate.
578         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
579         * configure.ac: Update libtool_VERSION for x86.
580         * testsuite/Makefile.in: Regenerate.
582 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
584         * libitm/config/x86/target.h: Add new field (ssp).
585         * libitm/config/x86/sjlj.S: Change offsets.
587 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
589         * testsuite/lib/libitm.exp: Load scanlang.exp.
591 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
593         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
595 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
597         PR other/79046
598         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
599         of cat to get version from BASE-VER file.
600         * testsuite/Makefile.in: Regenerated.
602 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
604         * config/x86/target.h (htm_available): Determine vendor from
605         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
607 2017-01-18  Torvald Riegel  <triegel@redhat.com>
609         * config/x86/target.h (htm_available): Add check for some processors
610         on which TSX is broken.
612 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
614         PR other/79046
615         * configure.ac: Add GCC_BASE_VER.
616         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
617         get version from BASE-VER file.
618         * testsuite/Makefile.in: Regenerated.
619         * configure: Regenerated.
620         * Makefile.in: Regenerated.
622 2017-01-04  Alan Modra  <amodra@gmail.com>
624         * Makefile.in: Regenerate.
625         * testsuite/Makefile.in: Regenerate.
627 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
629         Update copyright years.
631         * libitm.texi: Bump @copying's copyright year.
633 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
635         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
636         * aclocal.m4: Regenerate.
637         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
638         LIBITM_CHECK_LINKER_HWCAP.
640 2016-11-15  Matthias Klose  <doko@ubuntu.com>
642         * configure: Regenerate.
644 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
646         PR libitm/70456
647         * util.cc (xmalloc): Use posix_memalign to allocate memory on
648         on cache line if requested.
650 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
652         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
653         function attribute to disable floating point in begin_transaction() on
654         S/390.
655         * beginend.cc (begin_transaction): Use
656         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
658 2016-01-22  Torvald Riegel  <triegel@redhat.com>
660         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
661         boundary.
662         (htm_fastpath): Remove.
663         (gtm_thread::begin_transaction): Fix HTM fastpath.
664         (_ITM_commitTransaction): Adapt.
665         (_ITM_commitTransactionEH): Adapt.
666         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
667         and accessors.
668         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
669         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
670         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
671         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
672         * libitm/method-serial.cc (htm_mg): Adapt.
673         (gtm_thread::serialirr_mode): Adapt.
674         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
676 2016-01-21  Torvald Riegel  <triegel@redhat.com>
678         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
679         or AIX.
681 2016-01-19  Richard Henderson  <rth@redhat.com>
683         PR bootstrap/69343
684         PR bootstrap/69339
685         Revert:
686         2016-01-13  Richard Henderson  <rth@redhat.com>
688         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
689         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
690         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
691         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
692         * configure.ac (ARCH_AARCH64): New conditional.
693         (ARCH_PPC, ARCH_S390): Likewise.
694         * Makefile.in, configure: Rebuild.
696         * libitm.h (_ITM_TYPE_M128): Always define.
697         * vect64.cc: Split ...
698         * vect128.cc: ... out of...
699         * config/x86/x86_sse.cc: ... here.
700         * config/arm/neon.cc: New file.
702 2016-01-19  Torvald Riegel  <triegel@redhat.com>
704         * local_type_traits: Remove file.
705         * libitm_i.h: Don't include it anymore.
706         (sized_integral): Remove.
708 2016-01-16  Torvald Riegel  <triegel@redhat.com>
710         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
711         safety.
712         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
713         * libitm/testsuite/libitm.c/priv-1.c: New.
715 2015-01-15  Torvald Riegel  <triegel@redhat.com>
717         testsuite/libitm.c++/libstdc++-safeexc.C: New.
719 2016-01-13  Torvald Riegel  <triegel@redhat.com>
721         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
722         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
723         (gtm_rwlock::write_unlock): Likewise.
725 2016-01-13  Richard Henderson  <rth@redhat.com>
727         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
728         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
729         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
730         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
731         * configure.ac (ARCH_AARCH64): New conditional.
732         (ARCH_PPC, ARCH_S390): Likewise.
733         * Makefile.in, configure: Rebuild.
735         * libitm.h (_ITM_TYPE_M128): Always define.
736         * vect64.cc: Split ...
737         * vect128.cc: ... out of...
738         * config/x86/x86_sse.cc: ... here.
739         * config/arm/neon.cc: New file.
741 2016-01-13  Torvald Riegel  <triegel@redhat.com>
743         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
744         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
745         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
746         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
747         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
748         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
749         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
750         (serialirr_dispatch::snapshot_most_recent): New.
751         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
753 2016-01-12  Torvald Riegel  <triegel@redhat.com>
755         * libitm_i.h (gtm_mask_stack): Remove.
756         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
757         * stmlock.h: Remove file.
758         * config/alpha/cacheline.h: Likewise.
759         * config/generic/cacheline.h: Likewise.
760         * config/powerpc/cacheline.h: Likewise.
761         * config/sparc/cacheline.h: Likewise.
762         * config/x86/cacheline.h: Likewise.
764 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
766         Update copyright years.
768         * libitm.texi: Bump @copying's copyright year.
770 2015-11-26  Torvald Riegel  <triegel@redhat.com>
772         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
773         (ml_wt_dispatch::pre_write): Adapt.
774         (ml_wt_dispatch::pre_load): Likewise.
776 2015-11-22  Torvald Riegel  <triegel@redhat.com>
778         * libitm_i.h (gtm_alloc_action): Remove union.
779         * testsuite/libitm.c/alloc-1.c: New.
781 2015-11-19  Torvald Riegel  <triegel@redhat.com>
783         * testsuite/libitm.c++/eh-5.C: New.
784         * libitm.h (_ITM_cxa_free_exception): New.
785         * libitm.map (_ITM_cxa_free_exception): Add it.
786         * libitm.texi: Update ABI docs.
787         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
788         (gtm_transaction_cp::cxa_uncaught_count): Add.
789         (gtm_thread::cxa_unthrown): Remove.
790         (gtm_thread::cxa_uncaught_count_ptr): Add.
791         (gtm_thread::cxa_uncaught_count): Add.
792         (gtm_thread::drop_references_allocations): Rename to...
793         (gtm_thread::discard_allocation): ... this and adapt.
794         (gtm_thread::init_cpp_exceptions): New.
795         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
796         (gtm_thread::begin_transaction): Likewise.
797         (gtm_transaction_cp::save): Likewise.
798         (gtm_thread::trycommit): Likewise.
799         * eh_cpp.cc: Add overview comments.
800         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
801         (free_any_exception, _ITM_cxa_free_exception): New.
802         (gtm_thread::init_cpp_exceptions): Define.
803         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
804         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
805         (gtm_thread::revert_cpp_exceptions): Likewise.
807 2015-11-09  Torvald Riegel  <triegel@redhat.com>
809         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
810         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
811         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
812         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
813         (gtm_thread::forget_allocations): New overload with size_t argument.
814         * alloc.c (gtm_thread::forget_allocation): Define new overload and
815         adapt existing one.
816         (gtm_thread::record_allocation): Adapt.
817         (gtm_thread::commit_allocations_1): Adapt.
818         (gtm_thread::commit_allocations_2): Adapt.
819         * testsuite/libitm.c++/newdelete.C: New.
821 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
822             Joseph Myers  <joseph@codesourcery.com>
823             Mark Shinwell  <shinwell@codesourcery.com>
824             Andrew Stubbs  <ams@codesourcery.com>
825             Rich Felker <dalias@libc.org>
827         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
828         GTM_begin_transaction for compatibility with FDPIC.
830 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
832         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
833         using load_gcc_lib.
835 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
837         PR libitm/61164
838         * local_atomic (__always_inline): Rename to...
839         (__libitm_always_inline): ... this.
841 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
843         PR target/52482
844         * config/powerpc/sjlj.S: Port to Xcode 2.5.
846 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
848         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
849         operands "op" and "val" to int.
851 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
853         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
854         "op" and "val" to int.
856 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
858         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
859         "op" and "val" to int.
861 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
863         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
864         Declare as static int.
865         (FUTEX_PRIVATE_FLAG): Remove L suffix.
866         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
868 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
870         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
871         sys_futex0 function.
873 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
875         * Makefile.in: Regenerated with automake-1.11.6.
876         * aclocal.m4: Likewise.
877         * configure: Likewise.
878         * testsuite/Makefile.in: Likewise.
880 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
882         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
883         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
885 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
887         PR libitm/64360
888         * libitm.c/stackundo.c (test2): Make it static.
889         (test1): Likewise.
891 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
893         Update copyright years.
895 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
897         * libitm.texi: Bump @copying's copyright year.
899 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
901         * testsuite/lib/libitm.exp: Load target-utils.exp.
902         Move load of target-supports.exp earlier.
904 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
906         * configure.tgt (x86_64): Tune -m32 multilib to generic.
908 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
910         PR bootstrap/63784
911         * configure: Regenerated.
913 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
915         PR target/63610
916         * configure: Regenerate.
918 2014-10-06  Marek Polacek  <polacek@redhat.com>
920         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
921         * testsuite/libitm.c/memset-1.c: Likewise.
923 2014-07-24  Richard Henderson  <rth@redhat.com>
925         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
926         addressing mode in epilogue.
928 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
930         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
931         -mclear-hwcap instead.
932         * configure: Regenerate.
933         * clearcap.map: Remove.
935 2014-05-21  John Marino  <gnugcc@marino.st>
937         * configure.tgt (*-*-dragonfly*): New target.
939 2014-05-19  Richard Henderson  <rth@redhat.com>
941         * config/aarch64/sjlj.S: New file.
942         * config/aarch64/target.h: New file.
943         * configure.tgt: Enable aarch64.
945 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
947         * config/generic/asmcfi.h: Also check for
948         __GCC_HAVE_DWARF2_CFI_ASM.
950 2013-04-02  Richard Henderson  <rth@redhat.com>
952         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
953         * config/arm/target.h, config/sh/target.h: Likewise.
954         * config/sparc/target.h, config/x86/target.h: Likewise.
956 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
958         * config/linux/futex_bits.h: Include errno.h.
959         (sys_futex0): If syscall returns -1, return -errno rather than
960         -1.
962 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
964         * libitm.texi (Index): Rename to Library Index.
966 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
968         PR libitm/53113
969         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
970         (x86_avx.lo): Append -mavx to CXXFLAGS.
971         * Makefile.in: Regenerate.
973 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
975         Update copyright years
977 2014-01-02  Tobias Burnus  <burnus@net-b.de>
979         * libitm.texi: Bump @copying's copyright year.
981 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
983         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
984         (FUNC): Define ELFv2 variant.
985         (END): Likewise.
986         (HIDDEN): Likewise.
987         (CALL): Likewise.
988         (BASE): Likewise.
989         (LR_SAVE): Likewise.
991 2013-09-20  Alan Modra  <amodra@gmail.com>
993         * configure: Regenerate.
995 2013-08-30  Torvald Riegel  <triegel@redhat.com>
997         * config/posix/rwlock.cc: Fix initialization order.
999 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1001         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1002         (htm_fastpath): Assign an asm name.
1003         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1004         HTM fast paths.
1005         (_ITM_actions): Likewise.
1006         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1007         x86_64.
1008         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1009         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
1010         field to the start of the structure.
1011         * config/linux/rwlock.h (gtm_rwlock): Update comments.
1012         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1013         handling for custom HTM fast paths.
1015 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1016         Revert:
1017         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1019         * configure.tgt: Add -msoft-float to XCFLAGS.
1021 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1023         * configure.tgt: Add -msoft-float to XCFLAGS.
1025 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1027         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1028         (htm_transaction_active): Enable zEC12 instructions in the
1029         assembler.
1030         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1032 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1034         * acinclude.m4: Add htm asm check for s390.
1035         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1036         * configure: Regenerate.
1037         * config/s390/target.h: Remove __HTM__ check.
1038         (htm_available): Call getauxval to get hwcaps and check whether
1039         HTM is available or not.
1041 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1043         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1044         * configure.ac: Use it.
1045         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1046         (AC_CHECK_FUNCS): Check for getauxval.
1047         * config.h.in, configure: Rebuild.
1048         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1049         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1050         (USE_HTM_FASTPATH): Define.
1051         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1052         _HTM_RETRIES) New macros.
1053         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1054         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1056 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1058         * config/s390/target.h: Include htmintrin.h.
1059         (_HTM_ITM_RETRIES): New macro definition.
1060         (htm_available, htm_init, htm_begin, htm_begin_success)
1061         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1063 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1064             Cesar Philippidis  <cesar@codesourcery.com>
1066         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1067         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1068         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1069         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1071 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1073         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1074         (_ITM_getTransactionId): Same.
1075         * config/x86/target.h (htm_transaction_active): New.
1077 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1079         PR libitm/57643
1080         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1081         the HTM fastpath.
1083 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1085         PR bootstrap/56714
1086         * local_atomic (__always_inline): Always define our version.
1087         (__calculate_memory_order): Mark inline.
1088         (atomic_thread_fence): Ditto.
1089         (atomic_signal_fence): Ditto.
1090         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1091         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1092         (atomic_bool::atomic_flag_test_and_set): Ditto.
1093         (atomic_bool::atomic_flag_clear): Ditto.
1095 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1097         * config/s390/sjlj.S: New file.
1098         * config/s390/target.h: New file.
1099         * configure.tgt: Set options for S/390.
1101 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1103         * local_atomic (__always_inline): Add.
1104         (__calculate_memory_order, atomic_thread_fence,
1105         atomic_signal_fence, test_and_set, clear, store, load,
1106         exchange, compare_exchange_weak, compare_exchange_strong,
1107         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1108         Add __always_inline to force inlining.
1110 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1111             Jack Howarth  <howarth@bromo.med.uc.edu>
1112             Patrick Marlier  <patrick.marlier@gmail.com>
1114         PR libitm/55693
1115         * alloc_cpp.cc: Enable function declarations on darwin.
1116         * eh_cpp.cc: Likewise.
1118 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1120         Update copyright years.
1122 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1124         * beginend.cc (htm_fastpath): New.
1125         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1126         _ITM_commitTransactionEH): Add HTM fastpath handling.
1127         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1128         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1129         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1130         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1131         * configure.tgt: Add -mrtm to XCFLAGS.
1132         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1133         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1134         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1135         * retry.cc (parse_default_method): Add HTM method parsing.
1136         (gtm_thread::number_of_threads_changed): Use HTM by default if
1137         available.
1139 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1141         * configure: Regenerate.
1143 2012-10-31  Richard Henderson  <rth@redhat.com>
1145         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1146         * configure.ac: Use it.
1147         * config.h.in, configure: Rebuild.
1148         * testsuite/Makefile.in: Rebuild.
1150 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1152         * libitm.texi: Clarify ABI requirements for data-logging functions.
1154 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1156         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1157         it requires serial mode instead of assuming that for certain
1158         dispatchs.
1159         * dispatch.h (abi_dispatch::requires_serial): New.
1160         (abi_dispatch::abi_dispatch): Adapt.
1161         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1162         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1163         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1164         serial_dispatch::serial_dispatch,
1165         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1167 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1169         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1170         and ia32 declarations some more.
1171         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1173 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1175         PR other/43620
1176         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1177         * configure: Regenerate.
1178         * Makefile.in: Regenerate.
1180 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1182         * configure: Regenerated.
1184 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1186         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1188 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1190         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1192 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1194         * configure: Regenerated.
1196 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1198         PR libitm/52854
1199         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1200         for x86-64.
1202 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1204         * configure: Regenerate.
1206 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1208         PR bootstrap/52812
1209         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1211 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1213         * testsuite/lib/libitm.exp: load fortran-modules.exp
1215 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1217         * configure.tgt (*-*-irix6*): Remove.
1219 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1221         PR libitm/52526
1222         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1223         wake-up.
1225 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1227         * configure.tgt (*-*-osf*): Remove.
1228         * configure: Regenerate.
1230 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1232         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1233         memtransfer/memset if size isn't larger than zero.
1235 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1237         * libitm.texi: Link to specification and add a usage example.
1239 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1241         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1242         default dispatch for more than 1 thread to ml_wt.
1244 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1246         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1248 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1250         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1252 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1254         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1255         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1256         (gl_wt_dispatch.rollback): Same.
1258 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1260         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1262 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1264         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1265         for RfW src.  Optimize number of calls to gtm_thr.
1267 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1269         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1270         acquisition to ...
1271         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1272         (default_dispatch): Make atomic.
1273         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1274         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1275         use decide_begin_dispatch() if default_dispatch might have changed.
1276         (GTM::gtm_thread::number_of_threads_changed): Initialize
1277         default_dispatch here.
1279 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1280             Patrick Marlier  <patrick.marlier@gmail.com>
1282         PR libitm/52220
1283         * alloc_cpp.cc: No dummy definitions for darwin.
1284         * eh_cpp.cc: Likewise.
1286 2012-02-14  Richard Henderson  <rth@redhat.com>
1288         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1290 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1292         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1294 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1296         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1297         (GTM::gtm_thread): Add read and write logs.
1298         (GTM::dispatch_ml_wt): Declare.
1299         * retry.cc (parse_default_method): Support ml_wt.
1300         * method-ml.cc: New file.
1301         * Makefile.am: Add method-ml.cc.
1302         * Makefile.in: Regenerate.
1304 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1306         * dispatch.h (GTM::abi_dispatch::supports): New.
1307         (GTM::method_group::reinit): New.
1308         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1309         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1310         supports the current situation.
1312 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1314         * util.cc (GTM::xcalloc): New.
1315         * common.h (GTM::xcalloc): Declare.
1317 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1319         * config/sparc/target.h (cpu_relax): Read from CC register.
1320         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1322 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1324         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1326 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1328         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1329         * config/sparc/cacheline.h: New file.
1330         * config/sparc/target.h: Likewise.
1331         * config/sparc/sjlj.S: Likewise.
1332         * config/linux/sparc/futex_bits.h: Likewise.
1334 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1336         * configure.ac (link_itm): Fix comment.
1337         * configure: Regenerate.
1338         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1340 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1342         PR libitm/51822
1343         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1344         Correct libgomp references.
1346 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1348         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1349         wake-up.
1351 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1353         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1354         end of structure.
1355         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1356         offset values.  Do not copy return address.  Decrement stack
1357         by 56 bytes only.
1358         (GTM_longjump) [__x86_64__]: Update offset values.
1360 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1362         PR libitm/51830
1363         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1364         the first function argument to %eax.
1366 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1368         * libitm.h (_ITM_getThreadnum): Remove.
1369         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1371 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1373         * clearcap.map: New file.
1374         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1375         * configure.ac: Call it.
1376         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1377         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1378         * configure: Regenerate.
1379         * Makefile.in: Regenerate.
1380         * testsuite/Makefile.in: Regenerate.
1382 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1384         PR libitm/51173
1385         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1386         include, exclude options.
1388 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1390         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1391         rolling back.
1392         * containers.h (GTM::vector::set_size): New.
1394 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1396         PR libitm/51855
1397         * config/generic/tls.h (GTM::mask_stack_top): New.
1398         (GTM::mask_stack_bottom): Declare.
1399         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1400         * local.cc (gtm_undolog::rollback): Filter out any updates that
1401         overlap the libitm stack.  Add current transaction as parameter.
1402         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1403         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1404         * testsuite/libitm.c/stackundo.c: New test.
1406 2012-01-10  Richard Henderson  <rth@redhat.com>
1408         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1409         * eh_cpp.cc (_Unwind_DeleteException): Define for
1410         !HAVE_ELF_STYLE_WEAKREF.
1412 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1414         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1415         (GTM::gtm_thread::drop_references_undolog): Remove.
1416         (GTM::gtm_thread::commit_undolog,
1417         GTM::gtm_thread::rollback_undolog): Move to ...
1418         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1419         (GTM::gtm_undolog_entry): Remove.
1420         (GTM::gtm_thread): Adapt.
1421         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1422         (GTM::gtm_thread::trycommit): Adapt.
1423         * method-serial.cc (serial_dispatch::log): Adapt.
1424         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1425         (gl_wt_dispatch::store): Fix likely/unlikely.
1426         * containers.h (GTM::vector::resize): Add additional_capacity
1427         parameter and handle it.
1428         (GTM::vector::resize_noinline): New/adapt.
1429         (GTM::vector::push): New.
1431 2012-01-06  Richard Henderson  <rth@redhat.com>
1433         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1434         * config/linux/powerpc/futex_bits.h: New file.
1435         * config/powerpc/cacheline.h: New file.
1436         * config/powerpc/sjlj.S: New file.
1437         * config/powerpc/target.h: New file.
1438         * config/generic/asmcfi.h (cfi_offset): New.
1439         (cfi_restore, cfi_undefined): New.
1441 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1443         PR other/51171
1444         * testsuite/libitm.c/reentrant.c: Remove xfail.
1445         (thread): Pass x to pure().
1446         From Patrik Marlier <patrick.marlier@gmail.com>.
1448 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1450         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1451         privatization safety if already in serial mode.
1453 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1455         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1456         finish_serial_upgrade parameter.
1457         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1458         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1459         Don't unset reader flag.
1460         (GTM::gtm_rwlock::write_upgrade_finish): New.
1461         * config/posix/rwlock.cc: Same.
1462         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1463         Declare.
1464         * config/posix/rwlock.h: Same.
1465         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1466         flag after commit or after rollback when restarting.
1468 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1470         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1471         (GTM::gtm_thread::try_commit): Changed memory order.
1472         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1473         as parameter.
1474         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1475         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1476         * config/linux/futex_bits.h (sys_futex0): Same.
1477         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1478         * config/linux/futex.h (futex_wait, futex_wake): Same.
1479         * config/linux/rwlock.h (gtm_rwlock::writers,
1480         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1481         ints.
1482         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1483         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1484         gtm_rwlock::write_unlock): Fix memory orders and fences.
1485         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1486         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1487         gtm_rwlock::write_unlock): Same.
1488         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1489         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1490         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1491         Add comments.
1492         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1493         gl_wt_dispatch::load, gl_wt_dispatch::store,
1494         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1495         orders and fences.  Add comments.
1497 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1499         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1500         * Makefile.in: Regenerated.
1502 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1504         * configure.tgt: Add sh* case.
1505         * config/sh/target.h: New file.
1506         * config/sh/sjlj.S: New file.
1507         * config/linux/sh/futex_bits.h: New file.
1509 2011-12-14  Richard Henderson  <rth@redhat.com>
1511         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1512         * config/arm/sjlj.S, config/arm/target.h: New files.
1513         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1514         (cfi_rel_offset): New.
1515         * config/linux/futex_bits.h: New file.
1516         * config/linux/futex.cc: Include futex_bits.h here...
1517         * config/linux/futex.h: ... not here.
1518         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1519         * configure.ac (ARCH_AM): New conditional.
1520         * Makefile.in, configure: Rebuild.
1521         * configure.tgt: Handle ARM.
1523 2011-12-13  Richard Henderson  <rth@redhat.com>
1525         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1526         signed/unsigned comparison werror.
1528         * local_atomic: New file.
1529         * libitm_i.h: Include it.
1530         (gtm_thread::shared_state): Use atomic template.
1531         * beginend.cc (GTM::gtm_clock): Use atomic template.
1532         (global_tid): Use atomic template if 64-bit atomics available.
1533         (gtm_thread::gtm_thread): Update shared_state access.
1534         (gtm_thread::trycommit): Likewise.
1535         (choose_code_path): Update global_tid access.
1536         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1537         * stmlock.h (GTM::gtm_clock): Use atomic template.
1538         (gtm_get_clock, gtm_inc_clock): Update accesses.
1539         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1540         redundant __sync_synchronize after atomic shared_state access.
1541         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1542         (gtm_rwlock::write_lock_generic): Likewise.
1543         (gtm_rwlock::read_unlock): Likewise.
1544         * config/alpha/target.h (atomic_read_barrier): Remove.
1545         (atomic_write_barrier): Remove.
1546         * config/x86/target.h (atomic_read_barrier): Remove.
1547         (atomic_write_barrier): Remove.
1549 2011-11-30  Richard Henderson  <rth@redhat.com>
1551         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1552         * beginend.c (_ITM_abortTransaction): Update to match.
1553         (GTM::gtm_thread::restart): Likewise.
1554         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1555         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1557 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1559         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1560         * Makefile.in: Regenerate.
1562 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1564         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1565         * alloc_cpp.cc: Generate dummy functions if we don't
1566         HAVE_ELF_STYLE_WEAKREF.
1567         * eh_cpp.cc: Likewise.
1568         * configure: Regenerate.
1569         * aclocal.m4:  Likewise.
1570         * config.h.in: Likewise.
1571         * Makefile.in: Likewise.
1572         * testsuite/Makefile.in: Likewise.
1574 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1576         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1577         __USER_LABEL_PREFIX__ for targets that use it.
1578         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1579         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1580         in portability to non-elf targets.
1581         (GTM_longjmp): Likewise.
1582         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1583         where required.
1585 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1587         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1588         * testsuite/libitm.c/memset-1.c: Likewise.
1590 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1592         * configure: Regenerate.
1594 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1596         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1597         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1598         * Makefile.am: Handle sun style versioning.
1599         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1600         * configure: Regenerate.
1601         * Makefile.in: Regenerate.
1603 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1605         * config/generic/asmcfi.h: Fix comment.
1606         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1607         sequence without .hidden support, error for non-ELF targets.
1608         (GTM_longjmp) [__ELF__]: Only use .hidden if
1609         HAVE_ATTRIBUTE_VISIBILITY.
1611 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1613         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1614         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1615         Dummy functions.
1616         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1617         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1619 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1621         PR bootstrap/51098
1622         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1623         * configure: Regenerate.
1625 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1627         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1629 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1631         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1632         .hidden.
1633         (.note.GNU-stack): Only use if __linux__.
1634         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1635         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1636         * testsuite/libitm.c/reentrant.c: Likewise.
1637         * testsuite/libitm.c/simple-2.c: Likewise.
1638         * testsuite/libitm.c/txrelease.c: Likewise.
1639         * testsuite/libitm.c++/static_ctor.C: Likewise.
1641 2011-11-10  Richard Henderson  <rth@redhat.com>
1643         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1644         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1645         * configure.ac (ARCH_X86_AVX): New conditional.
1646         * Makefile.in, configure: Rebuild.
1648 2011-11-09  Richard Henderson  <rth@redhat.com>
1650         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1651         * configure.ac: Use it.
1652         * config.h.in, configure: Rebuild.
1653         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1655 2011-11-09  Richard Henderson  <rth@redhat.com>
1657         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1658         * config/alpha/unaligned.h: Remove file.
1659         * config/generic/unaligned.h: Remove file.
1660         * config/x86/unaligned.h: Remove file.
1661         * config/generic/cachepage.h: Remove file.
1662         * config/posix/cachepage.cc: Remove file.
1663         * config/generic/cacheline.cc: Remove file.
1664         * config/x86/cacheline.cc: Remove file.
1665         * config/generic/cacheline.h (gtm_cacheline): Remove the
1666         store_mask, copy_mask, copy_mask_wb methods.
1667         * config/x86/cacheline.h: Likewise.
1668         * config/alpha/cacheline.h: Fall back to generic after setting size.
1669         * config/generic/tls.cc (gtm_mask_stack): Remove.
1670         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1671         (GTM_vpalignr_table): Remove.
1672         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1673         (GTM_pshift_table): Remove.
1674         * config/libitm_i.h: Don't include cachepage.h.
1675         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1676         * Makefile.in, testsuite/Makefile.in: Rebuild.
1678 2011-11-09  Richard Henderson  <rth@redhat.com>
1680         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1681         to emit branch prediction hint.
1683         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1684         Protect .note.GNU-stack with __linux__.
1686         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1687         * configure, aclocal.m4, config.h.in: Rebuild.
1688         * config/generic/asmcfi.h: New file.
1689         * config/x86/sjlj.S: Use it.
1691 2011-11-08  Richard Henderson  <rth@redhat.com>
1693         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1695 2011-11-08  Richard Henderson  <rth@redhat.com>
1697         * configure.tgt: Test correct directory for supported cpus.
1699         * configure.ac: Exit if unsupported.
1700         * configure: Rebuild.
1701         * configure.tgt: Delete boilerplate from libgomp for unsupported
1702         targets.  Set UNSUPPORTED for unsupported targets.
1704 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1706         * configure.tgt: Handle i386 like i[456]86.
1707         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1708         take address.
1709         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1710         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1712 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1714         * method-wbetl.cc: Update copyright notice.
1715         * aatree.cc: Same.
1716         * util.cc: Same.
1717         * libitm.h: Same.
1718         * memset.cc: Same.
1719         * eh_cpp.cc: Same.
1720         * barrier.tpl: Same.
1721         * useraction.cc: Same.
1722         * stmlock.h: Same.
1723         * memcpy.cc: Same.
1724         * common.h: Same.
1725         * config/generic/tls.cc: Same.
1726         * config/generic/cacheline.h: Same.
1727         * config/generic/cachepage.h: Same.
1728         * config/generic/cacheline.cc: Same.
1729         * config/generic/unaligned.h: Same.
1730         * config/x86/cacheline.h: Same.
1731         * config/x86/cacheline.cc: Same.
1732         * config/x86/unaligned.h: Same.
1733         * config/alpha/cacheline.h: Same.
1734         * config/alpha/unaligned.h: Same.
1735         * config/alpha/sjlj.S: Same.
1736         * config/posix/cachepage.cc: Same.
1737         * config/linux/futex.h: Same.
1738         * config/linux/alpha/futex_bits.h: Same.
1740 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1742         * libitm.texi: No cover text and invariant sections.
1744 2011-11-03  Richard Henderson  <rth@redhat.com>
1746         * local_type_traits: New file.
1747         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1749 2011-11-03  Richard Henderson  <rth@redhat.com>
1751         * configure.ac: Don't test for gfortran.
1752         * configure: Rebuild.
1754         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1755         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1757 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1759         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1760         * testsuite/libitm.c/memset-1.c: Same.
1761         * testsuite/libitm.c/c.exp: Same.
1762         * testsuite/lib/libitm-dg.exp: Same.
1763         * testsuite/lib/libitm.exp: Same.
1764         * testsuite/libitm.c++/c++.exp: Same.
1766 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1768         * testsuite/config/default.exp: Update copyright date.
1769         * configure.ac: Add copyright info.
1770         * configure.tgt: Same.
1772 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1774         * testsuite/libitm.c/reentrant.c: XFAIL.
1775         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1777 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1779         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1780         handle aborts.
1781         (_ITM_abortTransaction): Handle aborts of outer transactions.
1782         * libitm_i.h: Same.
1783         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1784         * libitm.texi: Document aborts of outer transactions.
1785         * testsuite/libitm.c/cancel.c: New file.
1787 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1789         * testsuite/*: Change __transaction to __transaction_atomic or
1790         __transaction_relaxed.
1792 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1794         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1795         (gtm_thr): Same.
1797 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1799         * libitm_i.h: Add gl_wt dispatch.
1800         * retry.cc (parse_default_method): Same.
1801         * method-gl.cc: New file.
1802         * Makefile.am: Use method-gl.cc.
1803         * Makefile.in: Rebuild.
1805 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1807         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1808         safety if requested by a TM method.
1809         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1810         privatization safety.
1811         * method-serial.cc: Same.
1813 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1815         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1816         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1817         undolog-related member functions from *_local to *_undolog.
1818         * local.cc (gtm_thread::commit_undolog): Same.
1819         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1820         (GTM::gtm_thread::rollback): Roll back undolog before
1821         dispatch-specific rollback.
1823 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1825         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1826         re-initialization of the current method group.
1827         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1829 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1831         * alloc.cc (commit_allocations_2): Do not free transaction-local
1832         memory when committing a nested transaction.
1834 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1836         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1837         serial-irrevocable dispatch, not serial.
1839 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1841         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1842         declarations.
1843         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1844         * method-serial.cc: Implement begin_or_restart().
1845         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1846         dispatch-specific begin_or_restart().
1847         (GTM::gtm_thread::restart): Same.
1849 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1851         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1852         restarting without switching to serial mode.
1853         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1854         transaction state. Choose closed-nesting alternative if available.
1855         (GTM::gtm_thread::set_default_dispatch): New.
1856         (parse_default_method): New.
1857         (GTM::gtm_thread::number_of_threads_changed): New.
1858         * method-serial.cc (GTM::serial_mg): New method group class.
1859         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1860         fini.
1861         (GTM::serial_dispatch): Same.
1862         (GTM::serialirr_onwrite_dispatch): Same.
1863         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1864         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1865         registered threads.
1866         (GTM::gtm_thread::gtm_thread): Same.
1867         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1868         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1869         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1870         choose dispatch but set state according to dispatch here.
1871         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1872         (GTM::method_group): New class.
1873         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1874         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1875         * libitm.texi: Document TM methods, method groups, method life cycle.
1876         Rename method sets to method groups.
1878 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1880         * config/x86/tls.h: Moved to ...
1881         * config/linux/x86/tls.h: ... here.
1883 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1885         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1886         Add X32 support.
1887         * config/x86/sjlj.S: Same.
1889 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1891         * config/linux/rwlock.h: New file.
1892         * config/linux/rwlock.c: New file.
1893         * configure.ac: Reenable futex support (undo SVN rev 157758).
1894         * Makefile.am: Same.
1895         * configure.tgt: Same.
1896         * config/linux/alpha/futex_bits.h: Same.
1897         * config/linux/futex.h: Same. Return number of woken processes.
1898         * config/linux/futex.cc: Same.
1899         (futex_wait): Remove spinning.
1900         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1901         Use __x86_64__ instead of __LP64__.
1902         * aclocal.m4: Include generic futex checks.
1903         * configure: Rebuild.
1904         * Makefile.in: Rebuild.
1905         * testsuite/Makefile.in: Rebuild.
1906         * beginend.cc: Include pthread.h.
1907         * config/posix/cachepage.cc: Same.
1909 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1911         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1912         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1913         (set_gtm_thr): New.
1914         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1915         (set_gtm_thr): New.
1916         (GTM::gtm_thread::thread_num): Removed.
1917         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1918         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1919         tx-to-thread renaming.
1920         * beginend.cc: Adapted to tx-to-thread renaming.
1921         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1922         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1923         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1924         gtm_transaction to gtm_thread.
1925         (_ITM_getThreadnum): Removed. Not supported anymore.
1926         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1927         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1928         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1929         gtm_tx-to-gtm_thr renaming if necessary.
1930         * eh_cpp.cc: Same.
1931         * local.cc: Same.
1932         * retry.cc: Same.
1933         * clone.cc: Same.
1934         * alloc.cc: Same.
1935         * alloc_c.cc: Same.
1936         * alloc_cpp.cc: Same.
1937         * method-serial.cc: Same.
1938         * config/generic/tls.cc: Same.
1939         * config/posix/rwlock.h (gtm_rwlock): Same.
1940         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1942 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1944         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1945         implementation.
1946         (gtm_rwlock::read_unlock): Same.
1947         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1948         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1949         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1950         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1951         w_upgrade. Replaced by per-transaction flags (in shared_state).
1952         Added c_confirmed_writers.
1953         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1954         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1955         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1956         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1957         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1958         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1959         * libitm.texi: Document locking conventions and implementations in
1960         libitm.
1962 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1964         * libitm_i.h (next_tx): Add list of all threads' transaction.
1965         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1966         transaction with list of transactions and ...
1967         (thread_exit_handler): ... deregister here.
1968         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1969         * config/x86/target.h: Same.
1971 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1973         * testsuite/libitm.c++/static_ctor.C: New file.
1975 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1977         * testsuite/libitm.c/reentrant.c: New file.
1979 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1981         * config/generic/tls.h: Remove the free list for transactions and ...
1982         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1983         (GTM::gtm_transaction::operator delete): ... and release here.
1984         (thread_exit_handler): New. Delete tx when thread terminates.
1985         (thread_exit_init): New.
1986         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1987         * testsuite/libitm.c/txrelease.c: New file.
1989 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1991         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1992         * testsuite/libitm.c/notx.c: New file.
1994 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1996         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1997         * libitm_i.h (local_tid): ... to here.
1998         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1999         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2001 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2003         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2004         serialirr_onwrite_dispatch as new default for now.
2005         * method-serial.cc (serialirr_onwrite_dispatch): New.
2006         (GTM::dispatch_serialirr_onwrite): New.
2007         * libitm_i.h: Same.
2009 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2011         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2012         * query.cc (_ITM_getTransactionId): There is no active transaction if
2013         the current nesting level is zero.
2015 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2017         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2018         rollback.
2020 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2022         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2023         transaction properties from the caller instead of from the
2024         transaction object.
2025         * libitm_i.h: Same.
2026         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2028 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2030         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2031         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2032         * dispatch.h: Same.
2033         * method-serial.cc: Same.
2034         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2035         flat nesting as default, and closed nesting on demand.
2036         (GTM::gtm_transaction::rollback): Same.
2037         (_ITM_abortTransaction): Same.
2038         (GTM::gtm_transaction::restart): Same.
2039         (GTM::gtm_transaction::trycommit): Same.
2040         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2041         (choose_code_path): New.
2042         (GTM::gtm_transaction_cp::save): New.
2043         (GTM::gtm_transaction_cp::commit): New.
2044         * query.cc (_ITM_inTransaction): Support flat nesting.
2045         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2046         (GTM::gtm_transaction): Support flat and closed nesting.
2047         * alloc.cc (commit_allocations_2): New.
2048         (commit_cb_data): New helper struct.
2049         (GTM::gtm_transaction::commit_allocations): Handle nested
2050         commits/rollbacks.
2051         * libitm.texi: Update user action section, add description of nesting.
2053 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2055         * libitm_i.h: Add closed nesting as restart reason.
2056         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2058 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2060         * useraction.cc: Use vector instead of list to store actions.
2061         Also support partial rollbacks for closed nesting.
2062         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2063         * beginend.cc: Same.
2065 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2067         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2068         closed_nesting flags, as well as a closed nesting alternative.
2069         * method-serial.cc: Same.
2070         (serial_dispatch): Renamed to serialirr_dispatch.
2071         (GTM::dispatch_serialirr): Same.
2072         (serial_dispatch_ul): Renamed to serial_dispatch.
2073         (GTM::dispatch_serial): Same.
2075 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2077         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2079 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2081         * aatree.h (aa_tree::remove): New.
2082         (aa_tree::operator new): Add placement new.
2084 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2086         * containers.h: New file.
2087         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2088         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2089         * common.h: ... to here.
2090         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2091         * local.cc: Same.
2093 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2095         * libitm_i.h (STATE_ABORTING): Remove.
2096         * beginend.cc (_ITM_abortTransaction): Same.
2097         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2098         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2099         (_ITM_rollbackTransaction): Remove.
2100         * beginend.cc: Same.
2101         * libitm.map: Same.
2102         * libitm.texi: Document these ABI changes.
2104 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2106         * libitm.texi: New file.
2107         * Makefile.am: Add libitm.texi.
2108         * Makefile.in: Rebuild.
2110 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2112         * libitm_i.h: Move parts to common.h and dispatch.h.
2113         * common.h: New file.
2114         * dispatch.h: New file, new dispatch class.
2115         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2116         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2117         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2118         decision to retry.cc.
2119         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2120         only.
2121         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2122         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2123         logging.
2124         * barrier.cc: Use new barriers definitions.
2125         (abi_dispatch::memmove_overlap_check): New.
2126         * config/x86/x86_sse.cc: Same.
2127         * config/x86/x86_avx.cc: Same.
2128         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2129         memcpy.cc.
2130         * Makefile.in: Rebuild.
2131         * method-readonly.cc: Remove.
2132         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2133         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2135 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2137         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2138         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2139         * testsuite/libitm.c/dropref-2.c: Same.
2140         * testsuite/libitm.c/dropref.c: Same.
2142 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2144         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2145         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2146         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2147         * alloc_c.cc: Same.
2148         * barrier.tpl: Same.
2149         * beginend.c: Same.
2150         * config/generic/tls.h: Same.
2151         * config/x86/tls.h: Same.
2152         * libitm_i.h: Same.
2153         * memcpy.cc: Same.
2154         * memset.cc: Same.
2155         * method-readonly.cc: Same.
2156         * method-serial.cc: Same.
2157         * method-wbetl.cc: Same.
2158         * retry.cc: Same.
2160 2011-03-03  Richard Henderson  <rth@redhat.com>
2162         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2163         From Patrik Marlier <patrick.marlier@unine.ch>.
2165 2011-02-03  Richard Henderson  <rth@redhat.com>
2167         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2168         * configure.ac: Use it.
2169         * configure, config.h.in: Rebuild.
2170         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2171         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2172         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2173         * libitm.map: Use wildcards to match size_t mangling.
2175 2010-12-14  Richard Henderson  <rth@redhat.com>
2177         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2178         blocks of TIDs per thread.
2179         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2180         (setup_gtm_thr): Return the thread structure.
2181         * config/x86/tls.h (setup_gtm_thr): Likewise.
2183 2010-12-14  Richard Henderson  <rth@redhat.com>
2185         * clone.cc (table_lock): Remove.
2186         (find_clone): Don't take it.
2187         (ExcludeTransaction): New helper class.
2188         (_ITM_registerTMCloneTable): Use it.
2189         (_ITM_deregisterTMCloneTable): Likewise.
2191 2010-12-14  Richard Henderson  <rth@redhat.com>
2193         * config/x86/tls.h: New file.
2195 2010-07-15  Richard Henderson  <rth@redhat.com>
2197         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2198         * Makefile.in: Rebuild.
2200 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2202         * method-wbetl.cc (trydropreference): Fix source line.
2204 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2206         * libitm.h: Add comment.
2207         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2209 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2211         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2212         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2213         available, use pthread mutexes.
2214         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2215         * config.h.in: Regenerate.
2216         * configure: Regenerate.
2218 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2220         * libitm.h (ITM_PURE): Define.
2221         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2223 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2225         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2226         (validate): Add comment.
2227         (trydropreference): New.
2228         * method-readonly.cc (class readonly_dispatch): Add
2229         trydropreference.
2230         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2231         Call trydropreference().
2232         * libitm.h (_ITM_dropReferences): Remove const attribute.
2233         * method-serial.cc (class serial_dispatch): Add trydropreference.
2234         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2236 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2238         * memcpy.cc (do_memcpy): Comment.
2240 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2242         * barrier.tpl: Add comments throughout.
2244 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2246         * method-wbetl.cc (struct w_entry): Add comments.
2247         (trycommit): Same.
2248         (rollback): Same.
2250 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2252         * alloc_c.cc (_ITM_dropReferences): New.
2253         * libitm.map (_ITM_dropReferences): Add.
2254         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2255         * libitm_i.h (struct gtm_transaction): Declare
2256         drop_references_allocations and drop_references_local.
2257         * local.cc (rollback_local): Ignore memory when applicable.
2258         (drop_references_local): New.
2260 2010-06-23  Richard Henderson  <rth@redhat.com>
2262         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2263         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2264         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2265         * config/alpha/target.h: Likewise.
2266         * config/generic/tls.cc (gtm_mask_stack): Use it.
2268 2010-06-23  Richard Henderson  <rth@redhat.com>
2270         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2271         a mutex instead of trying a lock-free compare-and-swap on the list.
2272         (gtm_cacheline_page::operator delete): Likewise.
2274 2010-06-16  Richard Henderson  <rth@redhat.com>
2276         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2277         that overlap the libitm stack.
2278         * barrier.tpl: Mark incoming stack.
2279         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2280         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2281         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2282         * memcpy.cc, memset.cc: Likewise.
2283         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2284         * config/generic/tls.h (gtm_thread): Add stack_top member.
2285         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2286         * libitm_i.h (gtm_mask_stack): Declare.
2287         * config/generic/tls.cc: New file.
2288         * Makefile.am (libitm_la_SOURCES): Add it.
2289         (AM_CXXFLAGS): Turn off exceptions.
2290         * Makefile.in: Rebuild.
2292 2010-06-16  Richard Henderson  <rth@redhat.com>
2294         * alloc.cc (struct gtm_alloc_action): Move definition ...
2295         * libitm_i.h: ... here.
2296         (class gtm_transaction): Declare new and delete.
2297         * beginend.cc (alloc_tx): Reformulate as operator new.
2298         (free_tx): Reformulate as operator delete.
2299         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2301 2010-06-11  Richard Henderson  <rth@redhat.com>
2303         * clone.cc (clone_entry_compare): Fix typo.
2304         From Patrik Marlier <patrick.marlier@unine.ch>.
2306 2010-05-13  Richard Henderson  <rth@redhat.com>
2308         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2309         in extern "C".
2311 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2313         * libitm_i.h (struct gtm_transaction): Remove
2314         get_allocation_size.
2315         (record_allocation): Remove size parameter.
2316         * libitm.map (_ITM_realloc): Remove.
2317         * alloc_c.cc (_ITM_realloc): Remove.
2318         (_ITM_malloc): Remove size argument to record_allocation.
2319         (_ITM_calloc): Same.
2320         * alloc_cpp.cc (_ZGTtnwm): Same.
2321         (_ZGTtnwmRKSt9nothrow_t): Same.
2322         (_ZGTtnam): Same.
2323         (_ZGTtnamRKSt9nothrow_t): Same.
2324         * alloc.cc (struct gtm_alloc_action): Remove size.
2325         (get_allocation_size): Remove.
2326         (commit_allocations): Add comment.
2327         (record_allocation): Remove size parameter.
2328         (forget_allocation): Remove set of size.
2330 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2332         * Makefile.am (abi_version): New.
2333         (AM_CXXFLAGS): Pass abi_version.
2334         * Makefile.in: Regenerate.
2335         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2337 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2339         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2340         _ITM_getTMCloneOrIrrevokable.
2341         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2342         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2344 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2346         * configure.ac: Remove Linux futex support.
2347         * configure.tgt (config_path): Same.
2348         * Makefile.am: Same.
2349         * config/linux: Remove entire directory.
2350         * configure: Rebuild.
2351         * Makefile.in: Rebuild.
2352         * testsuite/Makefile.in: Rebuild.
2354 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2356         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2357         switching to serial mode.
2358         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2360 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2362         * configure.tgt: Add emacs -*- tags.
2363         * barrier.tpl: Same.
2365 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2367         * Makefile.am: Rename serial.cc to method-serial.cc.
2368         * Makefile.in: Regenerate with automake 1.11.1.
2369         * testsuite/Makefile.in: Same.
2370         * aclocal.m4: Regenerate with aclocal 1.11.1.
2371         * method-serial.cc: Rename from serial.cc.
2372         * libitm_i.h (struct gtm_transaction): Update comment on
2373         serialirr_mode.
2375 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2377         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2378         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2380 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2382         * configure: Rebuild.
2384 2009-11-12  Richard Henderson  <rth@redhat.com>
2386         * Rewrite everything in C++.
2388 2009-11-03  Richard Henderson  <rth@redhat.com>
2390         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2391         * Makefile.am (libitm_la_SOURCES): Add them.
2392         * configure.ac (ARCH_X86): New conditional.
2393         * Makefile.in, configure: Rebuild.
2394         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2395         Move futex setup into "other system configury" case.
2396         * local.c (rollback_local): Merge into ...
2397         (GTM_rollback_local): ... here.
2398         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2399         (_ITM_LB): Define as an alias to GTM_LB.
2401 2009-11-03  Richard Henderson  <rth@redhat.com>
2403         * method-readonly.c: New file.
2404         * Makefile.am (libitm_la_SOURCES): Add it.
2405         * Makefile.in: Rebuild.
2406         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2407         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2408         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2409         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2410         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2411         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2412         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2413         gtm_get_clock, gtm_inc_clock): New.
2414         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2415         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2416         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2417         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2418         replace uses with new libitm_i.h symbols.
2419         (dispatch_wbetl): Rename from wbetl_dispatch.
2420         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2421         away from dispatch_readonly; abort if the beginTransaction call
2422         asserted that the transaction was readonly.
2424 2009-11-03  Richard Henderson  <rth@redhat.com>
2426         * memset.c: New file.
2427         * Makefile.am (libitm_la_SOURCES): Add it.
2428         * Makefile.in: Rebuild.
2429         * testsuite/libitm.c/memset-1.c: New.
2431 2009-11-03  Richard Henderson  <rth@redhat.com>
2433         * dispatch.c: Remove file.
2434         * useraction.c (struct gtm_user_action): Move from libitm.h.
2435         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2436         (serial_memset, serial_memmove, serial_memcpy): Remove.
2437         (serial_W*, serial_R*): Remove.
2438         (serial_dispatch): Update to match.
2439         * configure.ac: Move Werror down below configure checks.  Don't
2440         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2441         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2442         Use GCC_AC_FUNC_MMAP_BLACKLIST
2443         * libitm.h: Split out all internal items to...
2444         * libitm_i.h: ... here.  New file.
2445         * copymask.c: New file.
2446         * local.c (struct gtm_local_undo): Move from libitm.h.
2447         (GTM_alloc_local): Rename from alloc_local; export.
2448         * memcpy.c: New file.
2449         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2450         * config/posix/page.c: New file.
2451         * config/posix/target_tls.h: Remove file.
2452         * barrier.c: New file.
2453         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2454         copymask.c, page.c.
2455         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2456         * method-wbetl.c: Rewrite for new cacheline methods.
2457         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2459         * config/alpha/sjlj.S: Fix typo.
2460         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2461         * config/alpha/copymask.c: New file.
2462         * config/alpha/target.h (CACHELINE_SIZE): New.
2463         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2465         * config/x86/target_i.h: Copy functions from x86/target.h.
2466         * config/x86/copymask.c: New file.
2467         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2468         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2469         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2470         * config/x86/target_tls.h: Move contents to target_i.h.
2472         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2473         * testsuite/libitm.c/memcpy-1.c: New.
2475 2009-10-22  Richard Henderson  <rth@redhat.com>
2477         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2478         (AM_CCASFLAGS): New.
2479         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2480         saving/restoring _AC_ARG_VAR_PRECIOUS.
2481         * Makefile.in, aclocal.m4, config.h.in, configure,
2482         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2484 2009-10-22  Richard Henderson  <rth@redhat.com>
2486         * testsuite/*: Update for new compiler syntax.
2488 2009-10-21  Richard Henderson  <rth@redhat.com>
2490         * libitm.h (_ITM_abortReason): Add outerAbort.
2492 2009-08-03  Richard Henderson  <rth@redhat.com>
2494         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2495         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2496         * method-wbetl.c (struct w_entry): Remove mask.
2497         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2498         adjust all callers.
2500 2009-07-22  Richard Henderson  <rth@redhat.com>
2502         * eh_cpp.c: New file.
2503         * Makefile.am (libitm_la_SOURCES): Add it.
2504         * Makefile.in: Rebuild.
2505         * beginend.c (GTM_rollback_transaction): Undo exception state.
2506         (GTM_trycommit_transaction): Mark inline.
2507         (GTM_trycommit_and_finalize_transaction): Split out from ...
2508         (_ITM_commitTransaction): ... here.
2509         (_ITM_commitTransactionEH): New function.
2510         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2511         cxa_unthrown, eh_in_flight; reorder.
2513         * testsuite/libitm.c++/c++.exp: New.
2514         * testsuite/libitm.c++/eh-1.C: New.
2516         * aatree.c (aa_free): Remove REGPARM.
2517         * aatree.h: Remove all REGPARM.
2519 2009-07-18  Richard Henderson  <rth@redhat.com>
2521         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2522         * Makefile.am (libitm_la_SOURCES): Add them.
2523         * Makefile.in: Rebuild.
2524         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2525         (GTM_trycommit_transaction): Likewise.
2526         * libitm.h: Include aatree.h
2527         (struct gtm_alloc_action): New.
2528         (struct gtm_transaction): Add alloc_actions.
2529         (GTM_record_allocation, GTM_forget_allocation): Declare.
2530         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2531         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2532         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2533         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2534         _ZGTtdaPvRKSt9nothrow_t): Export.
2536 2009-07-18  Richard Henderson  <rth@redhat.com>
2538         * target_tls.h: Move ...
2539         * config/posix/target_tls.h: ... here.
2541 2009-07-07  Richard Henderson  <rth@redhat.com>
2543         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2545 2009-07-07  Richard Henderson  <rth@redhat.com>
2547         * Update to GPL3.
2549 2009-07-07  Richard Henderson  <rth@redhat.com>
2551         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2552         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2554         * configure.tgt: Don't use -ftls-model for x86 linux.
2555         * libitm.h: Include target.h after standard includes.
2556         (_gtm_thr): Rename from gtm_thr.
2557         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2558         (gtm_disp, set_gtm_disp): New.
2559         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2560         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2561         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2563 2009-07-07  Richard Henderson  <rth@redhat.com>
2565         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2567 2009-07-06  Richard Henderson  <rth@redhat.com>
2569         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2570         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2571         (_ITM_beginTransaction): Take variadic arguments.
2572         (_ITM_registerThrownObject): Declare.
2573         * beginend.c, serial.c: Update.
2574         * libitm.map: Add _ITM_registerThrownObject.
2576 2009-01-28  Richard Henderson  <rth@redhat.com>
2578         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2579         * Makefile.in: Rebuild.
2580         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2581         (GTM_restart_transaction): Fix uninstrumented code check.
2582         * retry.c (GTM_decide_retry_strategy): Add serial check.
2583         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2584         automatically go irrevokable when in serial mode.
2585         * clone.c: New file.
2586         * libitm.h, libitm.map: Update.
2588 2009-01-27  Richard Henderson  <rth@redhat.com>
2590         * Makefile.am (LTCCASCOMPILE): Define.
2591         (libitm_la_SOURCES): Add methid-wbetl.c.
2592         * testsuite/Makefile.am: New
2593         * configure.ac: Add testsuite/Makefile.
2594         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2595         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2596         (_ITM_abortTransaction): Finalize implementation method; pass
2597         transaction properties to longjmp.
2598         (GTM_restart_transaction): Split out from ...
2599         (_ITM_commitTransaction): ... here.
2600         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2601         Move to config/x86/target.h.
2602         * config/linux/alpha/futex_bits.h: New.
2603         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2604         * config/x86/target.h: Disable target types for 32-bit.
2605         * config/alpha/sjlj.S, config/alpha/target.h: New.
2606         * libitm.h (struct gtm_dispatch): Add init, fini.
2607         (enum restart_reason): New.
2608         (struct gtm_transaction): Add method and restarts.
2609         * retry.c (GTM_decide_retry_strategy): Implement.
2610         * serial.c (serial_init, serial_fini): New.
2611         (GTM_serialmode): Finialize outgoing method.
2612         * method-wbetl.c: New.
2614 2008-12-09  Richard Henderson  <rth@redhat.com>
2616         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2617         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2618         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2619         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2620         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2621         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2622         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2623         * serial.c (serial_R##T, serial_W##T): Likewise.
2625 2008-11-21  Richard Henderson  <rth@redhat.com>
2627         * Initial commit.
2629 Copyright (C) 2008-2023 Free Software Foundation, Inc.
2631 Copying and distribution of this file, with or without modification,
2632 are permitted in any medium without royalty provided the copyright
2633 notice and this notice are preserved.