xfail dg-final "Sunk statements: 5" on hppa*64*-*-*
[official-gcc.git] / libitm / ChangeLog
blob83aadd151c75eeab3136c7cbe9c95202dbcda0d6
1 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
3         * libitm.texi: Bump @copying's copyright year.
5 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
7         * testsuite/lib/libitm.exp: Likewise.
8         * testsuite/libitm.c++/c++.exp: Likewise.
10 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
12         * Makefile.am: Handle Darwin rpaths.
13         * Makefile.in: Regenerate.
14         * configure: Regenerate.
15         * configure.ac: Handle Darwin rpaths.
17 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
19         * configure: Regenerate.
21 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
23         * configure: Regenerate.
25 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
27         * configure: Regenerate.
29 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
31         * configure: Regenerate.
33 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
35         * configure: Regenerate.
37 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
39         * configure: Regenerate.
41 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
43         * configure.ac (PERL): Remove.
44         * configure: Regenerate.
45         * Makefile.in: Likewise.
46         * testsuite/Makefile.in: Likewise.
48 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
50         * libitm.texi: Bump @copying's copyright year.
52 2022-11-14  Martin Liska  <mliska@suse.cz>
54         Revert:
55         2022-11-14  Martin Liska  <mliska@suse.cz>
57         * doc/c-c++-language-constructs-for-tm.rst: New file.
58         * doc/conf.py: New file.
59         * doc/copyright.rst: New file.
60         * doc/enabling-libitm.rst: New file.
61         * doc/gnu-free-documentation-license.rst: New file.
62         * doc/index.rst: New file.
63         * doc/indices-and-tables.rst: New file.
64         * doc/internals.rst: New file.
65         * doc/locking-conventions.rst: New file.
66         * doc/nesting-flat-vs-closed.rst: New file.
67         * doc/the-libitm-abi.rst: New file.
68         * doc/the-libitm-abi/function-list.rst: New file.
69         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
70         * doc/the-libitm-abi/library-design-principles.rst: New file.
71         * doc/the-libitm-abi/memory-model.rst: New file.
72         * doc/the-libitm-abi/non-objectives.rst: New file.
73         * doc/the-libitm-abi/objectives.rst: New file.
74         * doc/the-libitm-abi/sample-code.rst: New file.
75         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
76         * doc/tm-methods-and-method-groups.rst: New file.
78 2022-11-14  Martin Liska  <mliska@suse.cz>
80         Revert:
81         2022-11-14  Martin Liska  <mliska@suse.cz>
83         * Makefile.in: Support Sphinx based documentation.
85 2022-11-14  Martin Liska  <mliska@suse.cz>
87         Revert:
88         2022-11-14  Martin Liska  <mliska@suse.cz>
90         * libitm.texi: Removed.
92 2022-11-14  Martin Liska  <mliska@suse.cz>
94         Revert:
95         2022-11-14  Martin Liska  <mliska@suse.cz>
97         * Makefile.in: Support --with-sphinx-build.
98         * configure.ac: Likewise.
99         * configure: Regenerate.
101 2022-11-14  Martin Liska  <mliska@suse.cz>
103         Revert:
104         2022-11-14  Martin Liska  <mliska@suse.cz>
106         * Makefile.in: Build info pages conditionally.
108 2022-11-14  Martin Liska  <mliska@suse.cz>
110         Revert:
111         2022-11-14  Martin Liska  <mliska@suse.cz>
113         * doc/c-c++-language-constructs-for-tm.rst:
114         Add trailing newline.
115         * doc/copyright.rst:
116         Add trailing newline.
117         * doc/enabling-libitm.rst:
118         Add trailing newline.
119         * doc/gnu-free-documentation-license.rst:
120         Add trailing newline.
121         * doc/index.rst:
122         Add trailing newline.
123         * doc/indices-and-tables.rst:
124         Add trailing newline.
125         * doc/internals.rst:
126         Add trailing newline.
127         * doc/locking-conventions.rst:
128         Add trailing newline.
129         * doc/nesting-flat-vs-closed.rst:
130         Add trailing newline.
131         * doc/the-libitm-abi.rst:
132         Add trailing newline.
133         * doc/the-libitm-abi/function-list.rst:
134         Add trailing newline.
135         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
136         Add trailing newline.
137         * doc/the-libitm-abi/library-design-principles.rst:
138         Add trailing newline.
139         * doc/the-libitm-abi/memory-model.rst:
140         Add trailing newline.
141         * doc/the-libitm-abi/non-objectives.rst:
142         Add trailing newline.
143         * doc/the-libitm-abi/objectives.rst:
144         Add trailing newline.
145         * doc/the-libitm-abi/sample-code.rst:
146         Add trailing newline.
147         * doc/the-libitm-abi/types-and-macros-list.rst:
148         Add trailing newline.
149         * doc/tm-methods-and-method-groups.rst:
150         Add trailing newline.
152 2022-11-14  Martin Liska  <mliska@suse.cz>
154         Revert:
155         2022-11-14  Martin Liska  <mliska@suse.cz>
157         * Makefile.in: Add missing HAS_SPHINX_BUILD.
159 2022-11-14  Martin Liska  <mliska@suse.cz>
161         Revert:
162         2022-11-14  Martin Liska  <mliska@suse.cz>
164         * doc/conf.py: Add newline at last line.
166 2022-11-14  Martin Liska  <mliska@suse.cz>
168         Revert:
169         2022-11-14  Martin Liska  <mliska@suse.cz>
171         PR other/107620
172         * configure: Regenerate.
173         * configure.ac: Always set sphinx-build.
175 2022-11-13  Martin Liska  <mliska@suse.cz>
177         PR other/107620
178         * configure: Regenerate.
179         * configure.ac: Always set sphinx-build.
181 2022-11-10  Martin Liska  <mliska@suse.cz>
183         * doc/conf.py: Add newline at last line.
185 2022-11-09  Martin Liska  <mliska@suse.cz>
187         * Makefile.in: Add missing HAS_SPHINX_BUILD.
189 2022-11-09  Martin Liska  <mliska@suse.cz>
191         * doc/c-c++-language-constructs-for-tm.rst:
192         Add trailing newline.
193         * doc/copyright.rst:
194         Add trailing newline.
195         * doc/enabling-libitm.rst:
196         Add trailing newline.
197         * doc/gnu-free-documentation-license.rst:
198         Add trailing newline.
199         * doc/index.rst:
200         Add trailing newline.
201         * doc/indices-and-tables.rst:
202         Add trailing newline.
203         * doc/internals.rst:
204         Add trailing newline.
205         * doc/locking-conventions.rst:
206         Add trailing newline.
207         * doc/nesting-flat-vs-closed.rst:
208         Add trailing newline.
209         * doc/the-libitm-abi.rst:
210         Add trailing newline.
211         * doc/the-libitm-abi/function-list.rst:
212         Add trailing newline.
213         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
214         Add trailing newline.
215         * doc/the-libitm-abi/library-design-principles.rst:
216         Add trailing newline.
217         * doc/the-libitm-abi/memory-model.rst:
218         Add trailing newline.
219         * doc/the-libitm-abi/non-objectives.rst:
220         Add trailing newline.
221         * doc/the-libitm-abi/objectives.rst:
222         Add trailing newline.
223         * doc/the-libitm-abi/sample-code.rst:
224         Add trailing newline.
225         * doc/the-libitm-abi/types-and-macros-list.rst:
226         Add trailing newline.
227         * doc/tm-methods-and-method-groups.rst:
228         Add trailing newline.
230 2022-11-09  Martin Liska  <mliska@suse.cz>
232         * Makefile.in: Build info pages conditionally.
234 2022-11-09  Martin Liska  <mliska@suse.cz>
236         * Makefile.in: Support --with-sphinx-build.
237         * configure.ac: Likewise.
238         * configure: Regenerate.
240 2022-11-09  Martin Liska  <mliska@suse.cz>
242         * libitm.texi: Removed.
244 2022-11-09  Martin Liska  <mliska@suse.cz>
246         * Makefile.in: Support Sphinx based documentation.
248 2022-11-09  Martin Liska  <mliska@suse.cz>
250         * doc/c-c++-language-constructs-for-tm.rst: New file.
251         * doc/conf.py: New file.
252         * doc/copyright.rst: New file.
253         * doc/enabling-libitm.rst: New file.
254         * doc/gnu-free-documentation-license.rst: New file.
255         * doc/index.rst: New file.
256         * doc/indices-and-tables.rst: New file.
257         * doc/internals.rst: New file.
258         * doc/locking-conventions.rst: New file.
259         * doc/nesting-flat-vs-closed.rst: New file.
260         * doc/the-libitm-abi.rst: New file.
261         * doc/the-libitm-abi/function-list.rst: New file.
262         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
263         * doc/the-libitm-abi/library-design-principles.rst: New file.
264         * doc/the-libitm-abi/memory-model.rst: New file.
265         * doc/the-libitm-abi/non-objectives.rst: New file.
266         * doc/the-libitm-abi/objectives.rst: New file.
267         * doc/the-libitm-abi/sample-code.rst: New file.
268         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
269         * doc/tm-methods-and-method-groups.rst: New file.
271 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
273         * configure.tgt: Add riscv support.
274         * config/riscv/asm.h: New file.
275         * config/riscv/sjlj.S: New file.
276         * config/riscv/target.h: New file.
278 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
280         * config/loongarch/sjlj.S: Add a soft floating point condition to the
281         register recovery part of the code.
283 2022-10-12  Martin Liska  <mliska@suse.cz>
285         * configure: Regenerate.
287 2022-10-11  Olivier Hainque  <hainque@adacore.com>
288             Olivier Hainque  <hainque@adacore.com>
290         * configure: Regenerate.
292 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
293             Yang Yujie  <yangyujie@loongson.cn>
295         * configure.tgt: Add loongarch support.
296         * config/loongarch/asm.h: New file.
297         * config/loongarch/sjlj.S: New file.
298         * config/loongarch/target.h: New file.
300 2022-08-31  Martin Liska  <mliska@suse.cz>
302         * configure: Regenerate.
304 2022-08-31  Martin Liska  <mliska@suse.cz>
306         * configure: Regenerate.
308 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
310         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
312 2022-02-03  David Seifert  <soap@gentoo.org>
313             Jakub Jelinek  <jakub@redhat.com>
315         * configure.ac: Support --disable-werror.
316         * configure: Regenerate.
318 2022-01-31  Martin Liska  <mliska@suse.cz>
320         * acinclude.m4: Detect *_ld_is_mold and use it.
321         * configure: Regenerate.
323 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
325         * libitm.texi: Bump @copying's copyright year.
327 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
329         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
330         target does not support HAVE_ELF_STYLE_WEAKREF then do not
331         try to test the __cxa_get_globals against NULL.
333 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
335         PR libstdc++/91488
336         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
338 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
340         PR target/70454
341         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
342         be added through preprocessor check on
343         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
345 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
347         * configure: Re-generate.
349 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
351         * libitm.texi: Bump @copying's copyright year.
353 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
355         PR target/97865
356         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
357         * configure: Regenerate.
359 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
361         * configure: Regenerate.
363 2020-10-01  Alan Modra  <amodra@gmail.com>
365         * config/powerpc/sjlj.S: Support __PCREL__ code.
367 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
369         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
371 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
373         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
374         and add BTI c to function entries.
376 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
378         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
380 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
382         PR bootstrap/95413
383         * configure: Regenerated.
385 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
387         PR bootstrap/95147
388         * configure: Regenerated.
390 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
392         * configure: Regenerated.
394 2020-05-12  Nathan Sidwell  <nathan@acm.org>
396         Fix throw specifiers on interface.
397         * libitm/libitm.h (_ITM_NOTHROW): Define.
398         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
399         (_ITM_cxa_begin_catch): Use it.
400         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
401         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
402         __cxa_get_globals.
403         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
404         (_ITM_cxa_begin_catch): Likewise.
406 2020-05-05  Nathan Sidwell  <nathan@acm.org>
408         * testsuite/lib/libitm.exp (libitm_init): Add
409         -fdiagnostics-color=never to options.
411 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
413         PR libstdc++/79193
414         PR libstdc++/88999
416         * configure: Regenerated.
418 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
420         * configure.ac: Handle `--with-toolexeclibdir='.
421         * Makefile.in: Regenerate.
422         * aclocal.m4: Regenerate.
423         * configure: Regenerate.
424         * testsuite/Makefile.in: Regenerate.
426 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
428         Update copyright years.
430         * libitm.texi: Bump @copying's copyright year.
432 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
434         PR libgomp/91938
435         * configure.tgt: Avoid IE tls on *-*-musl*.
437 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
439         * configure: Regenerate.
441 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
443         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
445 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
447         * configure.tgt: Handle *-*-uclinux*.
448         * configure: Regenerate.
450 2019-09-06  Florian Weimer  <fweimer@redhat.com>
452         * configure: Regenerate.
454 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
456         PR other/79543
457         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
458         scanning to conform to the GNU Coding Standards.
459         * configure: Regenerate.
461 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
463         * Makefile.am (finclude): Remove.
464         * Makefile.in: Regenerated.
466 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
468         Update copyright years.
470 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
472         * libitm.texi: Bump @copying's copyright year.
474 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
476         PR c++/88482
477         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
478         void * to void (*) (void *).
479         (_ITM_cxa_throw): Likewise.
480         * libitm.h (_ITM_cxa_throw): Likewise.
481         * libitm.texi (_ITM_cxa_throw): Likewise.
483 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
485         * config/powerpc/target.h (htm_available):  Add support for
486         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
488 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
490         PR bootstrap/82856
491         * Makefile.am: Include multilib.am.
492         (AUTOMAKE_OPTIONS): Add info-in-builddir.
493         (CLEANFILES): Remove libitm.info.
494         * configure.ac: Remove AC_PREREQ.
495         * testsuite/Makefile.am (RUNTEST): Remove quotes.
496         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
497         Regenerate.
499 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
501         PR libitm/86293
502         * method-serial.cc: Mark varible as potentially unused
503         to silence warning.
505 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
507         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
508         absolute relocation in a shared library.
510 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
512         PR libitm/85988
513         * config/linux/x86/tls.h (SEG_READ): Use the offset of
514         __private_tm as base.
515         (SEG_WRITE): Likewise.
516         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
517         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
518         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
519         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
520         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
522 2018-05-17  Jason Merrill  <jason@redhat.com>
524         * beginend.cc (save): Disable -Werror=deprecated-copy.
526 2018-05-02  Tom de Vries  <tom@codesourcery.com>
528         PR testsuite/85106
529         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
531 2018-05-02  Tom de Vries  <tom@codesourcery.com>
533         PR testsuite/85106
534         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
536 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
538         * config/x86/sjlj.S (_ITM_beginTransaction): Add
539         (__CET__ & 2) != 0 check for shadow stack.
540         (GTM_longjmp): Likewise.
542 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
544         * configure: Regenerated.
546 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
548         PR target/85489
549         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
551 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
553         * configure: Regenerated.
555 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
557         PR jit/85384
558         * configure: Regenerate.
560 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
562         PR target/84148
563         * configure: Regenerate.
565 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
567         Update copyright years.
569         * libitm.texi: Bump @copying's copyright year.
571 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
573         * Makefile.in: Regenerate.
574         * acinclude.m4: Add enable.m4 and cet.m4.
575         * config/x86/sjlj.S: Include cet.h.
576         (_ITM_beginTransaction): Add _CET_ENDBR.
577         Save Shadow Stack pointer.
578         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
579         * config/x86/target.h (struct gtm_jmpbuf):
580         Add new field for Shadow Stack pointer.
581         * configure: Regenerate.
582         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
583         * configure.ac: Update libtool_VERSION for x86.
584         * testsuite/Makefile.in: Regenerate.
586 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
588         * libitm/config/x86/target.h: Add new field (ssp).
589         * libitm/config/x86/sjlj.S: Change offsets.
591 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
593         * testsuite/lib/libitm.exp: Load scanlang.exp.
595 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
597         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
599 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
601         PR other/79046
602         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
603         of cat to get version from BASE-VER file.
604         * testsuite/Makefile.in: Regenerated.
606 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
608         * config/x86/target.h (htm_available): Determine vendor from
609         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
611 2017-01-18  Torvald Riegel  <triegel@redhat.com>
613         * config/x86/target.h (htm_available): Add check for some processors
614         on which TSX is broken.
616 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
618         PR other/79046
619         * configure.ac: Add GCC_BASE_VER.
620         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
621         get version from BASE-VER file.
622         * testsuite/Makefile.in: Regenerated.
623         * configure: Regenerated.
624         * Makefile.in: Regenerated.
626 2017-01-04  Alan Modra  <amodra@gmail.com>
628         * Makefile.in: Regenerate.
629         * testsuite/Makefile.in: Regenerate.
631 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
633         Update copyright years.
635         * libitm.texi: Bump @copying's copyright year.
637 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
639         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
640         * aclocal.m4: Regenerate.
641         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
642         LIBITM_CHECK_LINKER_HWCAP.
644 2016-11-15  Matthias Klose  <doko@ubuntu.com>
646         * configure: Regenerate.
648 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
650         PR libitm/70456
651         * util.cc (xmalloc): Use posix_memalign to allocate memory on
652         on cache line if requested.
654 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
656         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
657         function attribute to disable floating point in begin_transaction() on
658         S/390.
659         * beginend.cc (begin_transaction): Use
660         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
662 2016-01-22  Torvald Riegel  <triegel@redhat.com>
664         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
665         boundary.
666         (htm_fastpath): Remove.
667         (gtm_thread::begin_transaction): Fix HTM fastpath.
668         (_ITM_commitTransaction): Adapt.
669         (_ITM_commitTransactionEH): Adapt.
670         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
671         and accessors.
672         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
673         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
674         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
675         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
676         * libitm/method-serial.cc (htm_mg): Adapt.
677         (gtm_thread::serialirr_mode): Adapt.
678         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
680 2016-01-21  Torvald Riegel  <triegel@redhat.com>
682         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
683         or AIX.
685 2016-01-19  Richard Henderson  <rth@redhat.com>
687         PR bootstrap/69343
688         PR bootstrap/69339
689         Revert:
690         2016-01-13  Richard Henderson  <rth@redhat.com>
692         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
693         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
694         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
695         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
696         * configure.ac (ARCH_AARCH64): New conditional.
697         (ARCH_PPC, ARCH_S390): Likewise.
698         * Makefile.in, configure: Rebuild.
700         * libitm.h (_ITM_TYPE_M128): Always define.
701         * vect64.cc: Split ...
702         * vect128.cc: ... out of...
703         * config/x86/x86_sse.cc: ... here.
704         * config/arm/neon.cc: New file.
706 2016-01-19  Torvald Riegel  <triegel@redhat.com>
708         * local_type_traits: Remove file.
709         * libitm_i.h: Don't include it anymore.
710         (sized_integral): Remove.
712 2016-01-16  Torvald Riegel  <triegel@redhat.com>
714         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
715         safety.
716         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
717         * libitm/testsuite/libitm.c/priv-1.c: New.
719 2015-01-15  Torvald Riegel  <triegel@redhat.com>
721         testsuite/libitm.c++/libstdc++-safeexc.C: New.
723 2016-01-13  Torvald Riegel  <triegel@redhat.com>
725         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
726         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
727         (gtm_rwlock::write_unlock): Likewise.
729 2016-01-13  Richard Henderson  <rth@redhat.com>
731         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
732         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
733         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
734         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
735         * configure.ac (ARCH_AARCH64): New conditional.
736         (ARCH_PPC, ARCH_S390): Likewise.
737         * Makefile.in, configure: Rebuild.
739         * libitm.h (_ITM_TYPE_M128): Always define.
740         * vect64.cc: Split ...
741         * vect128.cc: ... out of...
742         * config/x86/x86_sse.cc: ... here.
743         * config/arm/neon.cc: New file.
745 2016-01-13  Torvald Riegel  <triegel@redhat.com>
747         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
748         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
749         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
750         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
751         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
752         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
753         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
754         (serialirr_dispatch::snapshot_most_recent): New.
755         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
757 2016-01-12  Torvald Riegel  <triegel@redhat.com>
759         * libitm_i.h (gtm_mask_stack): Remove.
760         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
761         * stmlock.h: Remove file.
762         * config/alpha/cacheline.h: Likewise.
763         * config/generic/cacheline.h: Likewise.
764         * config/powerpc/cacheline.h: Likewise.
765         * config/sparc/cacheline.h: Likewise.
766         * config/x86/cacheline.h: Likewise.
768 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
770         Update copyright years.
772         * libitm.texi: Bump @copying's copyright year.
774 2015-11-26  Torvald Riegel  <triegel@redhat.com>
776         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
777         (ml_wt_dispatch::pre_write): Adapt.
778         (ml_wt_dispatch::pre_load): Likewise.
780 2015-11-22  Torvald Riegel  <triegel@redhat.com>
782         * libitm_i.h (gtm_alloc_action): Remove union.
783         * testsuite/libitm.c/alloc-1.c: New.
785 2015-11-19  Torvald Riegel  <triegel@redhat.com>
787         * testsuite/libitm.c++/eh-5.C: New.
788         * libitm.h (_ITM_cxa_free_exception): New.
789         * libitm.map (_ITM_cxa_free_exception): Add it.
790         * libitm.texi: Update ABI docs.
791         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
792         (gtm_transaction_cp::cxa_uncaught_count): Add.
793         (gtm_thread::cxa_unthrown): Remove.
794         (gtm_thread::cxa_uncaught_count_ptr): Add.
795         (gtm_thread::cxa_uncaught_count): Add.
796         (gtm_thread::drop_references_allocations): Rename to...
797         (gtm_thread::discard_allocation): ... this and adapt.
798         (gtm_thread::init_cpp_exceptions): New.
799         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
800         (gtm_thread::begin_transaction): Likewise.
801         (gtm_transaction_cp::save): Likewise.
802         (gtm_thread::trycommit): Likewise.
803         * eh_cpp.cc: Add overview comments.
804         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
805         (free_any_exception, _ITM_cxa_free_exception): New.
806         (gtm_thread::init_cpp_exceptions): Define.
807         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
808         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
809         (gtm_thread::revert_cpp_exceptions): Likewise.
811 2015-11-09  Torvald Riegel  <triegel@redhat.com>
813         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
814         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
815         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
816         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
817         (gtm_thread::forget_allocations): New overload with size_t argument.
818         * alloc.c (gtm_thread::forget_allocation): Define new overload and
819         adapt existing one.
820         (gtm_thread::record_allocation): Adapt.
821         (gtm_thread::commit_allocations_1): Adapt.
822         (gtm_thread::commit_allocations_2): Adapt.
823         * testsuite/libitm.c++/newdelete.C: New.
825 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
826             Joseph Myers  <joseph@codesourcery.com>
827             Mark Shinwell  <shinwell@codesourcery.com>
828             Andrew Stubbs  <ams@codesourcery.com>
829             Rich Felker <dalias@libc.org>
831         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
832         GTM_begin_transaction for compatibility with FDPIC.
834 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
836         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
837         using load_gcc_lib.
839 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
841         PR libitm/61164
842         * local_atomic (__always_inline): Rename to...
843         (__libitm_always_inline): ... this.
845 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
847         PR target/52482
848         * config/powerpc/sjlj.S: Port to Xcode 2.5.
850 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
852         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
853         operands "op" and "val" to int.
855 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
857         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
858         "op" and "val" to int.
860 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
862         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
863         "op" and "val" to int.
865 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
867         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
868         Declare as static int.
869         (FUTEX_PRIVATE_FLAG): Remove L suffix.
870         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
872 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
874         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
875         sys_futex0 function.
877 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
879         * Makefile.in: Regenerated with automake-1.11.6.
880         * aclocal.m4: Likewise.
881         * configure: Likewise.
882         * testsuite/Makefile.in: Likewise.
884 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
886         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
887         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
889 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
891         PR libitm/64360
892         * libitm.c/stackundo.c (test2): Make it static.
893         (test1): Likewise.
895 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
897         Update copyright years.
899 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
901         * libitm.texi: Bump @copying's copyright year.
903 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
905         * testsuite/lib/libitm.exp: Load target-utils.exp.
906         Move load of target-supports.exp earlier.
908 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
910         * configure.tgt (x86_64): Tune -m32 multilib to generic.
912 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
914         PR bootstrap/63784
915         * configure: Regenerated.
917 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
919         PR target/63610
920         * configure: Regenerate.
922 2014-10-06  Marek Polacek  <polacek@redhat.com>
924         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
925         * testsuite/libitm.c/memset-1.c: Likewise.
927 2014-07-24  Richard Henderson  <rth@redhat.com>
929         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
930         addressing mode in epilogue.
932 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
934         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
935         -mclear-hwcap instead.
936         * configure: Regenerate.
937         * clearcap.map: Remove.
939 2014-05-21  John Marino  <gnugcc@marino.st>
941         * configure.tgt (*-*-dragonfly*): New target.
943 2014-05-19  Richard Henderson  <rth@redhat.com>
945         * config/aarch64/sjlj.S: New file.
946         * config/aarch64/target.h: New file.
947         * configure.tgt: Enable aarch64.
949 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
951         * config/generic/asmcfi.h: Also check for
952         __GCC_HAVE_DWARF2_CFI_ASM.
954 2013-04-02  Richard Henderson  <rth@redhat.com>
956         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
957         * config/arm/target.h, config/sh/target.h: Likewise.
958         * config/sparc/target.h, config/x86/target.h: Likewise.
960 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
962         * config/linux/futex_bits.h: Include errno.h.
963         (sys_futex0): If syscall returns -1, return -errno rather than
964         -1.
966 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
968         * libitm.texi (Index): Rename to Library Index.
970 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
972         PR libitm/53113
973         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
974         (x86_avx.lo): Append -mavx to CXXFLAGS.
975         * Makefile.in: Regenerate.
977 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
979         Update copyright years
981 2014-01-02  Tobias Burnus  <burnus@net-b.de>
983         * libitm.texi: Bump @copying's copyright year.
985 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
987         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
988         (FUNC): Define ELFv2 variant.
989         (END): Likewise.
990         (HIDDEN): Likewise.
991         (CALL): Likewise.
992         (BASE): Likewise.
993         (LR_SAVE): Likewise.
995 2013-09-20  Alan Modra  <amodra@gmail.com>
997         * configure: Regenerate.
999 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1001         * config/posix/rwlock.cc: Fix initialization order.
1003 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1005         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1006         (htm_fastpath): Assign an asm name.
1007         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1008         HTM fast paths.
1009         (_ITM_actions): Likewise.
1010         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1011         x86_64.
1012         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1013         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
1014         field to the start of the structure.
1015         * config/linux/rwlock.h (gtm_rwlock): Update comments.
1016         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1017         handling for custom HTM fast paths.
1019 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1020         Revert:
1021         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1023         * configure.tgt: Add -msoft-float to XCFLAGS.
1025 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1027         * configure.tgt: Add -msoft-float to XCFLAGS.
1029 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1031         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1032         (htm_transaction_active): Enable zEC12 instructions in the
1033         assembler.
1034         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1036 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1038         * acinclude.m4: Add htm asm check for s390.
1039         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1040         * configure: Regenerate.
1041         * config/s390/target.h: Remove __HTM__ check.
1042         (htm_available): Call getauxval to get hwcaps and check whether
1043         HTM is available or not.
1045 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1047         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1048         * configure.ac: Use it.
1049         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1050         (AC_CHECK_FUNCS): Check for getauxval.
1051         * config.h.in, configure: Rebuild.
1052         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1053         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1054         (USE_HTM_FASTPATH): Define.
1055         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1056         _HTM_RETRIES) New macros.
1057         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1058         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1060 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1062         * config/s390/target.h: Include htmintrin.h.
1063         (_HTM_ITM_RETRIES): New macro definition.
1064         (htm_available, htm_init, htm_begin, htm_begin_success)
1065         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1067 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1068             Cesar Philippidis  <cesar@codesourcery.com>
1070         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1071         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1072         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1073         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1075 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1077         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1078         (_ITM_getTransactionId): Same.
1079         * config/x86/target.h (htm_transaction_active): New.
1081 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1083         PR libitm/57643
1084         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1085         the HTM fastpath.
1087 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1089         PR bootstrap/56714
1090         * local_atomic (__always_inline): Always define our version.
1091         (__calculate_memory_order): Mark inline.
1092         (atomic_thread_fence): Ditto.
1093         (atomic_signal_fence): Ditto.
1094         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1095         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1096         (atomic_bool::atomic_flag_test_and_set): Ditto.
1097         (atomic_bool::atomic_flag_clear): Ditto.
1099 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1101         * config/s390/sjlj.S: New file.
1102         * config/s390/target.h: New file.
1103         * configure.tgt: Set options for S/390.
1105 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1107         * local_atomic (__always_inline): Add.
1108         (__calculate_memory_order, atomic_thread_fence,
1109         atomic_signal_fence, test_and_set, clear, store, load,
1110         exchange, compare_exchange_weak, compare_exchange_strong,
1111         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1112         Add __always_inline to force inlining.
1114 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1115             Jack Howarth  <howarth@bromo.med.uc.edu>
1116             Patrick Marlier  <patrick.marlier@gmail.com>
1118         PR libitm/55693
1119         * alloc_cpp.cc: Enable function declarations on darwin.
1120         * eh_cpp.cc: Likewise.
1122 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1124         Update copyright years.
1126 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1128         * beginend.cc (htm_fastpath): New.
1129         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1130         _ITM_commitTransactionEH): Add HTM fastpath handling.
1131         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1132         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1133         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1134         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1135         * configure.tgt: Add -mrtm to XCFLAGS.
1136         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1137         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1138         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1139         * retry.cc (parse_default_method): Add HTM method parsing.
1140         (gtm_thread::number_of_threads_changed): Use HTM by default if
1141         available.
1143 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1145         * configure: Regenerate.
1147 2012-10-31  Richard Henderson  <rth@redhat.com>
1149         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1150         * configure.ac: Use it.
1151         * config.h.in, configure: Rebuild.
1152         * testsuite/Makefile.in: Rebuild.
1154 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1156         * libitm.texi: Clarify ABI requirements for data-logging functions.
1158 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1160         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1161         it requires serial mode instead of assuming that for certain
1162         dispatchs.
1163         * dispatch.h (abi_dispatch::requires_serial): New.
1164         (abi_dispatch::abi_dispatch): Adapt.
1165         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1166         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1167         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1168         serial_dispatch::serial_dispatch,
1169         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1171 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1173         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1174         and ia32 declarations some more.
1175         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1177 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1179         PR other/43620
1180         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1181         * configure: Regenerate.
1182         * Makefile.in: Regenerate.
1184 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1186         * configure: Regenerated.
1188 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1190         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1192 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1194         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1196 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1198         * configure: Regenerated.
1200 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1202         PR libitm/52854
1203         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1204         for x86-64.
1206 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1208         * configure: Regenerate.
1210 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1212         PR bootstrap/52812
1213         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1215 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1217         * testsuite/lib/libitm.exp: load fortran-modules.exp
1219 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1221         * configure.tgt (*-*-irix6*): Remove.
1223 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1225         PR libitm/52526
1226         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1227         wake-up.
1229 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1231         * configure.tgt (*-*-osf*): Remove.
1232         * configure: Regenerate.
1234 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1236         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1237         memtransfer/memset if size isn't larger than zero.
1239 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1241         * libitm.texi: Link to specification and add a usage example.
1243 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1245         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1246         default dispatch for more than 1 thread to ml_wt.
1248 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1250         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1252 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1254         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1256 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1258         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1259         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1260         (gl_wt_dispatch.rollback): Same.
1262 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1264         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1266 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1268         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1269         for RfW src.  Optimize number of calls to gtm_thr.
1271 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1273         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1274         acquisition to ...
1275         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1276         (default_dispatch): Make atomic.
1277         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1278         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1279         use decide_begin_dispatch() if default_dispatch might have changed.
1280         (GTM::gtm_thread::number_of_threads_changed): Initialize
1281         default_dispatch here.
1283 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1284             Patrick Marlier  <patrick.marlier@gmail.com>
1286         PR libitm/52220
1287         * alloc_cpp.cc: No dummy definitions for darwin.
1288         * eh_cpp.cc: Likewise.
1290 2012-02-14  Richard Henderson  <rth@redhat.com>
1292         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1294 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1296         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1298 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1300         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1301         (GTM::gtm_thread): Add read and write logs.
1302         (GTM::dispatch_ml_wt): Declare.
1303         * retry.cc (parse_default_method): Support ml_wt.
1304         * method-ml.cc: New file.
1305         * Makefile.am: Add method-ml.cc.
1306         * Makefile.in: Regenerate.
1308 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1310         * dispatch.h (GTM::abi_dispatch::supports): New.
1311         (GTM::method_group::reinit): New.
1312         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1313         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1314         supports the current situation.
1316 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1318         * util.cc (GTM::xcalloc): New.
1319         * common.h (GTM::xcalloc): Declare.
1321 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1323         * config/sparc/target.h (cpu_relax): Read from CC register.
1324         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1326 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1328         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1330 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1332         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1333         * config/sparc/cacheline.h: New file.
1334         * config/sparc/target.h: Likewise.
1335         * config/sparc/sjlj.S: Likewise.
1336         * config/linux/sparc/futex_bits.h: Likewise.
1338 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1340         * configure.ac (link_itm): Fix comment.
1341         * configure: Regenerate.
1342         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1344 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1346         PR libitm/51822
1347         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1348         Correct libgomp references.
1350 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1352         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1353         wake-up.
1355 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1357         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1358         end of structure.
1359         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1360         offset values.  Do not copy return address.  Decrement stack
1361         by 56 bytes only.
1362         (GTM_longjump) [__x86_64__]: Update offset values.
1364 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1366         PR libitm/51830
1367         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1368         the first function argument to %eax.
1370 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1372         * libitm.h (_ITM_getThreadnum): Remove.
1373         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1375 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1377         * clearcap.map: New file.
1378         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1379         * configure.ac: Call it.
1380         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1381         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1382         * configure: Regenerate.
1383         * Makefile.in: Regenerate.
1384         * testsuite/Makefile.in: Regenerate.
1386 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1388         PR libitm/51173
1389         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1390         include, exclude options.
1392 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1394         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1395         rolling back.
1396         * containers.h (GTM::vector::set_size): New.
1398 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1400         PR libitm/51855
1401         * config/generic/tls.h (GTM::mask_stack_top): New.
1402         (GTM::mask_stack_bottom): Declare.
1403         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1404         * local.cc (gtm_undolog::rollback): Filter out any updates that
1405         overlap the libitm stack.  Add current transaction as parameter.
1406         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1407         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1408         * testsuite/libitm.c/stackundo.c: New test.
1410 2012-01-10  Richard Henderson  <rth@redhat.com>
1412         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1413         * eh_cpp.cc (_Unwind_DeleteException): Define for
1414         !HAVE_ELF_STYLE_WEAKREF.
1416 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1418         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1419         (GTM::gtm_thread::drop_references_undolog): Remove.
1420         (GTM::gtm_thread::commit_undolog,
1421         GTM::gtm_thread::rollback_undolog): Move to ...
1422         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1423         (GTM::gtm_undolog_entry): Remove.
1424         (GTM::gtm_thread): Adapt.
1425         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1426         (GTM::gtm_thread::trycommit): Adapt.
1427         * method-serial.cc (serial_dispatch::log): Adapt.
1428         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1429         (gl_wt_dispatch::store): Fix likely/unlikely.
1430         * containers.h (GTM::vector::resize): Add additional_capacity
1431         parameter and handle it.
1432         (GTM::vector::resize_noinline): New/adapt.
1433         (GTM::vector::push): New.
1435 2012-01-06  Richard Henderson  <rth@redhat.com>
1437         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1438         * config/linux/powerpc/futex_bits.h: New file.
1439         * config/powerpc/cacheline.h: New file.
1440         * config/powerpc/sjlj.S: New file.
1441         * config/powerpc/target.h: New file.
1442         * config/generic/asmcfi.h (cfi_offset): New.
1443         (cfi_restore, cfi_undefined): New.
1445 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1447         PR other/51171
1448         * testsuite/libitm.c/reentrant.c: Remove xfail.
1449         (thread): Pass x to pure().
1450         From Patrik Marlier <patrick.marlier@gmail.com>.
1452 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1454         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1455         privatization safety if already in serial mode.
1457 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1459         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1460         finish_serial_upgrade parameter.
1461         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1462         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1463         Don't unset reader flag.
1464         (GTM::gtm_rwlock::write_upgrade_finish): New.
1465         * config/posix/rwlock.cc: Same.
1466         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1467         Declare.
1468         * config/posix/rwlock.h: Same.
1469         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1470         flag after commit or after rollback when restarting.
1472 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1474         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1475         (GTM::gtm_thread::try_commit): Changed memory order.
1476         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1477         as parameter.
1478         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1479         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1480         * config/linux/futex_bits.h (sys_futex0): Same.
1481         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1482         * config/linux/futex.h (futex_wait, futex_wake): Same.
1483         * config/linux/rwlock.h (gtm_rwlock::writers,
1484         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1485         ints.
1486         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1487         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1488         gtm_rwlock::write_unlock): Fix memory orders and fences.
1489         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1490         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1491         gtm_rwlock::write_unlock): Same.
1492         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1493         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1494         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1495         Add comments.
1496         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1497         gl_wt_dispatch::load, gl_wt_dispatch::store,
1498         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1499         orders and fences.  Add comments.
1501 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1503         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1504         * Makefile.in: Regenerated.
1506 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1508         * configure.tgt: Add sh* case.
1509         * config/sh/target.h: New file.
1510         * config/sh/sjlj.S: New file.
1511         * config/linux/sh/futex_bits.h: New file.
1513 2011-12-14  Richard Henderson  <rth@redhat.com>
1515         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1516         * config/arm/sjlj.S, config/arm/target.h: New files.
1517         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1518         (cfi_rel_offset): New.
1519         * config/linux/futex_bits.h: New file.
1520         * config/linux/futex.cc: Include futex_bits.h here...
1521         * config/linux/futex.h: ... not here.
1522         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1523         * configure.ac (ARCH_AM): New conditional.
1524         * Makefile.in, configure: Rebuild.
1525         * configure.tgt: Handle ARM.
1527 2011-12-13  Richard Henderson  <rth@redhat.com>
1529         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1530         signed/unsigned comparison werror.
1532         * local_atomic: New file.
1533         * libitm_i.h: Include it.
1534         (gtm_thread::shared_state): Use atomic template.
1535         * beginend.cc (GTM::gtm_clock): Use atomic template.
1536         (global_tid): Use atomic template if 64-bit atomics available.
1537         (gtm_thread::gtm_thread): Update shared_state access.
1538         (gtm_thread::trycommit): Likewise.
1539         (choose_code_path): Update global_tid access.
1540         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1541         * stmlock.h (GTM::gtm_clock): Use atomic template.
1542         (gtm_get_clock, gtm_inc_clock): Update accesses.
1543         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1544         redundant __sync_synchronize after atomic shared_state access.
1545         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1546         (gtm_rwlock::write_lock_generic): Likewise.
1547         (gtm_rwlock::read_unlock): Likewise.
1548         * config/alpha/target.h (atomic_read_barrier): Remove.
1549         (atomic_write_barrier): Remove.
1550         * config/x86/target.h (atomic_read_barrier): Remove.
1551         (atomic_write_barrier): Remove.
1553 2011-11-30  Richard Henderson  <rth@redhat.com>
1555         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1556         * beginend.c (_ITM_abortTransaction): Update to match.
1557         (GTM::gtm_thread::restart): Likewise.
1558         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1559         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1561 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1563         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1564         * Makefile.in: Regenerate.
1566 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1568         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1569         * alloc_cpp.cc: Generate dummy functions if we don't
1570         HAVE_ELF_STYLE_WEAKREF.
1571         * eh_cpp.cc: Likewise.
1572         * configure: Regenerate.
1573         * aclocal.m4:  Likewise.
1574         * config.h.in: Likewise.
1575         * Makefile.in: Likewise.
1576         * testsuite/Makefile.in: Likewise.
1578 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1580         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1581         __USER_LABEL_PREFIX__ for targets that use it.
1582         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1583         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1584         in portability to non-elf targets.
1585         (GTM_longjmp): Likewise.
1586         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1587         where required.
1589 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1591         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1592         * testsuite/libitm.c/memset-1.c: Likewise.
1594 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1596         * configure: Regenerate.
1598 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1600         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1601         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1602         * Makefile.am: Handle sun style versioning.
1603         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1604         * configure: Regenerate.
1605         * Makefile.in: Regenerate.
1607 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1609         * config/generic/asmcfi.h: Fix comment.
1610         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1611         sequence without .hidden support, error for non-ELF targets.
1612         (GTM_longjmp) [__ELF__]: Only use .hidden if
1613         HAVE_ATTRIBUTE_VISIBILITY.
1615 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1617         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1618         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1619         Dummy functions.
1620         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1621         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1623 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1625         PR bootstrap/51098
1626         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1627         * configure: Regenerate.
1629 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1631         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1633 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1635         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1636         .hidden.
1637         (.note.GNU-stack): Only use if __linux__.
1638         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1639         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1640         * testsuite/libitm.c/reentrant.c: Likewise.
1641         * testsuite/libitm.c/simple-2.c: Likewise.
1642         * testsuite/libitm.c/txrelease.c: Likewise.
1643         * testsuite/libitm.c++/static_ctor.C: Likewise.
1645 2011-11-10  Richard Henderson  <rth@redhat.com>
1647         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1648         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1649         * configure.ac (ARCH_X86_AVX): New conditional.
1650         * Makefile.in, configure: Rebuild.
1652 2011-11-09  Richard Henderson  <rth@redhat.com>
1654         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1655         * configure.ac: Use it.
1656         * config.h.in, configure: Rebuild.
1657         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1659 2011-11-09  Richard Henderson  <rth@redhat.com>
1661         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1662         * config/alpha/unaligned.h: Remove file.
1663         * config/generic/unaligned.h: Remove file.
1664         * config/x86/unaligned.h: Remove file.
1665         * config/generic/cachepage.h: Remove file.
1666         * config/posix/cachepage.cc: Remove file.
1667         * config/generic/cacheline.cc: Remove file.
1668         * config/x86/cacheline.cc: Remove file.
1669         * config/generic/cacheline.h (gtm_cacheline): Remove the
1670         store_mask, copy_mask, copy_mask_wb methods.
1671         * config/x86/cacheline.h: Likewise.
1672         * config/alpha/cacheline.h: Fall back to generic after setting size.
1673         * config/generic/tls.cc (gtm_mask_stack): Remove.
1674         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1675         (GTM_vpalignr_table): Remove.
1676         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1677         (GTM_pshift_table): Remove.
1678         * config/libitm_i.h: Don't include cachepage.h.
1679         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1680         * Makefile.in, testsuite/Makefile.in: Rebuild.
1682 2011-11-09  Richard Henderson  <rth@redhat.com>
1684         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1685         to emit branch prediction hint.
1687         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1688         Protect .note.GNU-stack with __linux__.
1690         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1691         * configure, aclocal.m4, config.h.in: Rebuild.
1692         * config/generic/asmcfi.h: New file.
1693         * config/x86/sjlj.S: Use it.
1695 2011-11-08  Richard Henderson  <rth@redhat.com>
1697         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1699 2011-11-08  Richard Henderson  <rth@redhat.com>
1701         * configure.tgt: Test correct directory for supported cpus.
1703         * configure.ac: Exit if unsupported.
1704         * configure: Rebuild.
1705         * configure.tgt: Delete boilerplate from libgomp for unsupported
1706         targets.  Set UNSUPPORTED for unsupported targets.
1708 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1710         * configure.tgt: Handle i386 like i[456]86.
1711         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1712         take address.
1713         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1714         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1716 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1718         * method-wbetl.cc: Update copyright notice.
1719         * aatree.cc: Same.
1720         * util.cc: Same.
1721         * libitm.h: Same.
1722         * memset.cc: Same.
1723         * eh_cpp.cc: Same.
1724         * barrier.tpl: Same.
1725         * useraction.cc: Same.
1726         * stmlock.h: Same.
1727         * memcpy.cc: Same.
1728         * common.h: Same.
1729         * config/generic/tls.cc: Same.
1730         * config/generic/cacheline.h: Same.
1731         * config/generic/cachepage.h: Same.
1732         * config/generic/cacheline.cc: Same.
1733         * config/generic/unaligned.h: Same.
1734         * config/x86/cacheline.h: Same.
1735         * config/x86/cacheline.cc: Same.
1736         * config/x86/unaligned.h: Same.
1737         * config/alpha/cacheline.h: Same.
1738         * config/alpha/unaligned.h: Same.
1739         * config/alpha/sjlj.S: Same.
1740         * config/posix/cachepage.cc: Same.
1741         * config/linux/futex.h: Same.
1742         * config/linux/alpha/futex_bits.h: Same.
1744 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1746         * libitm.texi: No cover text and invariant sections.
1748 2011-11-03  Richard Henderson  <rth@redhat.com>
1750         * local_type_traits: New file.
1751         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1753 2011-11-03  Richard Henderson  <rth@redhat.com>
1755         * configure.ac: Don't test for gfortran.
1756         * configure: Rebuild.
1758         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1759         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1761 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1763         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1764         * testsuite/libitm.c/memset-1.c: Same.
1765         * testsuite/libitm.c/c.exp: Same.
1766         * testsuite/lib/libitm-dg.exp: Same.
1767         * testsuite/lib/libitm.exp: Same.
1768         * testsuite/libitm.c++/c++.exp: Same.
1770 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1772         * testsuite/config/default.exp: Update copyright date.
1773         * configure.ac: Add copyright info.
1774         * configure.tgt: Same.
1776 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1778         * testsuite/libitm.c/reentrant.c: XFAIL.
1779         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1781 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1783         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1784         handle aborts.
1785         (_ITM_abortTransaction): Handle aborts of outer transactions.
1786         * libitm_i.h: Same.
1787         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1788         * libitm.texi: Document aborts of outer transactions.
1789         * testsuite/libitm.c/cancel.c: New file.
1791 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1793         * testsuite/*: Change __transaction to __transaction_atomic or
1794         __transaction_relaxed.
1796 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1798         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1799         (gtm_thr): Same.
1801 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1803         * libitm_i.h: Add gl_wt dispatch.
1804         * retry.cc (parse_default_method): Same.
1805         * method-gl.cc: New file.
1806         * Makefile.am: Use method-gl.cc.
1807         * Makefile.in: Rebuild.
1809 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1811         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1812         safety if requested by a TM method.
1813         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1814         privatization safety.
1815         * method-serial.cc: Same.
1817 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1819         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1820         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1821         undolog-related member functions from *_local to *_undolog.
1822         * local.cc (gtm_thread::commit_undolog): Same.
1823         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1824         (GTM::gtm_thread::rollback): Roll back undolog before
1825         dispatch-specific rollback.
1827 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1829         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1830         re-initialization of the current method group.
1831         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1833 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1835         * alloc.cc (commit_allocations_2): Do not free transaction-local
1836         memory when committing a nested transaction.
1838 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1840         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1841         serial-irrevocable dispatch, not serial.
1843 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1845         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1846         declarations.
1847         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1848         * method-serial.cc: Implement begin_or_restart().
1849         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1850         dispatch-specific begin_or_restart().
1851         (GTM::gtm_thread::restart): Same.
1853 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1855         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1856         restarting without switching to serial mode.
1857         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1858         transaction state. Choose closed-nesting alternative if available.
1859         (GTM::gtm_thread::set_default_dispatch): New.
1860         (parse_default_method): New.
1861         (GTM::gtm_thread::number_of_threads_changed): New.
1862         * method-serial.cc (GTM::serial_mg): New method group class.
1863         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1864         fini.
1865         (GTM::serial_dispatch): Same.
1866         (GTM::serialirr_onwrite_dispatch): Same.
1867         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1868         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1869         registered threads.
1870         (GTM::gtm_thread::gtm_thread): Same.
1871         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1872         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1873         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1874         choose dispatch but set state according to dispatch here.
1875         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1876         (GTM::method_group): New class.
1877         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1878         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1879         * libitm.texi: Document TM methods, method groups, method life cycle.
1880         Rename method sets to method groups.
1882 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1884         * config/x86/tls.h: Moved to ...
1885         * config/linux/x86/tls.h: ... here.
1887 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1889         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1890         Add X32 support.
1891         * config/x86/sjlj.S: Same.
1893 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1895         * config/linux/rwlock.h: New file.
1896         * config/linux/rwlock.c: New file.
1897         * configure.ac: Reenable futex support (undo SVN rev 157758).
1898         * Makefile.am: Same.
1899         * configure.tgt: Same.
1900         * config/linux/alpha/futex_bits.h: Same.
1901         * config/linux/futex.h: Same. Return number of woken processes.
1902         * config/linux/futex.cc: Same.
1903         (futex_wait): Remove spinning.
1904         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1905         Use __x86_64__ instead of __LP64__.
1906         * aclocal.m4: Include generic futex checks.
1907         * configure: Rebuild.
1908         * Makefile.in: Rebuild.
1909         * testsuite/Makefile.in: Rebuild.
1910         * beginend.cc: Include pthread.h.
1911         * config/posix/cachepage.cc: Same.
1913 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1915         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1916         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1917         (set_gtm_thr): New.
1918         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1919         (set_gtm_thr): New.
1920         (GTM::gtm_thread::thread_num): Removed.
1921         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1922         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1923         tx-to-thread renaming.
1924         * beginend.cc: Adapted to tx-to-thread renaming.
1925         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1926         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1927         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1928         gtm_transaction to gtm_thread.
1929         (_ITM_getThreadnum): Removed. Not supported anymore.
1930         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1931         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1932         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1933         gtm_tx-to-gtm_thr renaming if necessary.
1934         * eh_cpp.cc: Same.
1935         * local.cc: Same.
1936         * retry.cc: Same.
1937         * clone.cc: Same.
1938         * alloc.cc: Same.
1939         * alloc_c.cc: Same.
1940         * alloc_cpp.cc: Same.
1941         * method-serial.cc: Same.
1942         * config/generic/tls.cc: Same.
1943         * config/posix/rwlock.h (gtm_rwlock): Same.
1944         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1946 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1948         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1949         implementation.
1950         (gtm_rwlock::read_unlock): Same.
1951         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1952         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1953         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1954         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1955         w_upgrade. Replaced by per-transaction flags (in shared_state).
1956         Added c_confirmed_writers.
1957         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1958         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1959         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1960         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1961         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1962         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1963         * libitm.texi: Document locking conventions and implementations in
1964         libitm.
1966 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1968         * libitm_i.h (next_tx): Add list of all threads' transaction.
1969         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1970         transaction with list of transactions and ...
1971         (thread_exit_handler): ... deregister here.
1972         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1973         * config/x86/target.h: Same.
1975 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1977         * testsuite/libitm.c++/static_ctor.C: New file.
1979 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1981         * testsuite/libitm.c/reentrant.c: New file.
1983 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1985         * config/generic/tls.h: Remove the free list for transactions and ...
1986         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1987         (GTM::gtm_transaction::operator delete): ... and release here.
1988         (thread_exit_handler): New. Delete tx when thread terminates.
1989         (thread_exit_init): New.
1990         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1991         * testsuite/libitm.c/txrelease.c: New file.
1993 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1995         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1996         * testsuite/libitm.c/notx.c: New file.
1998 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2000         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2001         * libitm_i.h (local_tid): ... to here.
2002         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2003         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2005 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2007         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2008         serialirr_onwrite_dispatch as new default for now.
2009         * method-serial.cc (serialirr_onwrite_dispatch): New.
2010         (GTM::dispatch_serialirr_onwrite): New.
2011         * libitm_i.h: Same.
2013 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2015         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2016         * query.cc (_ITM_getTransactionId): There is no active transaction if
2017         the current nesting level is zero.
2019 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2021         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2022         rollback.
2024 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2026         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2027         transaction properties from the caller instead of from the
2028         transaction object.
2029         * libitm_i.h: Same.
2030         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2032 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2034         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2035         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2036         * dispatch.h: Same.
2037         * method-serial.cc: Same.
2038         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2039         flat nesting as default, and closed nesting on demand.
2040         (GTM::gtm_transaction::rollback): Same.
2041         (_ITM_abortTransaction): Same.
2042         (GTM::gtm_transaction::restart): Same.
2043         (GTM::gtm_transaction::trycommit): Same.
2044         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2045         (choose_code_path): New.
2046         (GTM::gtm_transaction_cp::save): New.
2047         (GTM::gtm_transaction_cp::commit): New.
2048         * query.cc (_ITM_inTransaction): Support flat nesting.
2049         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2050         (GTM::gtm_transaction): Support flat and closed nesting.
2051         * alloc.cc (commit_allocations_2): New.
2052         (commit_cb_data): New helper struct.
2053         (GTM::gtm_transaction::commit_allocations): Handle nested
2054         commits/rollbacks.
2055         * libitm.texi: Update user action section, add description of nesting.
2057 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2059         * libitm_i.h: Add closed nesting as restart reason.
2060         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2062 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2064         * useraction.cc: Use vector instead of list to store actions.
2065         Also support partial rollbacks for closed nesting.
2066         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2067         * beginend.cc: Same.
2069 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2071         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2072         closed_nesting flags, as well as a closed nesting alternative.
2073         * method-serial.cc: Same.
2074         (serial_dispatch): Renamed to serialirr_dispatch.
2075         (GTM::dispatch_serialirr): Same.
2076         (serial_dispatch_ul): Renamed to serial_dispatch.
2077         (GTM::dispatch_serial): Same.
2079 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2081         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2083 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2085         * aatree.h (aa_tree::remove): New.
2086         (aa_tree::operator new): Add placement new.
2088 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2090         * containers.h: New file.
2091         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2092         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2093         * common.h: ... to here.
2094         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2095         * local.cc: Same.
2097 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2099         * libitm_i.h (STATE_ABORTING): Remove.
2100         * beginend.cc (_ITM_abortTransaction): Same.
2101         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2102         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2103         (_ITM_rollbackTransaction): Remove.
2104         * beginend.cc: Same.
2105         * libitm.map: Same.
2106         * libitm.texi: Document these ABI changes.
2108 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2110         * libitm.texi: New file.
2111         * Makefile.am: Add libitm.texi.
2112         * Makefile.in: Rebuild.
2114 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2116         * libitm_i.h: Move parts to common.h and dispatch.h.
2117         * common.h: New file.
2118         * dispatch.h: New file, new dispatch class.
2119         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2120         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2121         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2122         decision to retry.cc.
2123         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2124         only.
2125         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2126         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2127         logging.
2128         * barrier.cc: Use new barriers definitions.
2129         (abi_dispatch::memmove_overlap_check): New.
2130         * config/x86/x86_sse.cc: Same.
2131         * config/x86/x86_avx.cc: Same.
2132         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2133         memcpy.cc.
2134         * Makefile.in: Rebuild.
2135         * method-readonly.cc: Remove.
2136         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2137         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2139 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2141         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2142         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2143         * testsuite/libitm.c/dropref-2.c: Same.
2144         * testsuite/libitm.c/dropref.c: Same.
2146 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2148         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2149         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2150         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2151         * alloc_c.cc: Same.
2152         * barrier.tpl: Same.
2153         * beginend.c: Same.
2154         * config/generic/tls.h: Same.
2155         * config/x86/tls.h: Same.
2156         * libitm_i.h: Same.
2157         * memcpy.cc: Same.
2158         * memset.cc: Same.
2159         * method-readonly.cc: Same.
2160         * method-serial.cc: Same.
2161         * method-wbetl.cc: Same.
2162         * retry.cc: Same.
2164 2011-03-03  Richard Henderson  <rth@redhat.com>
2166         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2167         From Patrik Marlier <patrick.marlier@unine.ch>.
2169 2011-02-03  Richard Henderson  <rth@redhat.com>
2171         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2172         * configure.ac: Use it.
2173         * configure, config.h.in: Rebuild.
2174         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2175         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2176         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2177         * libitm.map: Use wildcards to match size_t mangling.
2179 2010-12-14  Richard Henderson  <rth@redhat.com>
2181         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2182         blocks of TIDs per thread.
2183         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2184         (setup_gtm_thr): Return the thread structure.
2185         * config/x86/tls.h (setup_gtm_thr): Likewise.
2187 2010-12-14  Richard Henderson  <rth@redhat.com>
2189         * clone.cc (table_lock): Remove.
2190         (find_clone): Don't take it.
2191         (ExcludeTransaction): New helper class.
2192         (_ITM_registerTMCloneTable): Use it.
2193         (_ITM_deregisterTMCloneTable): Likewise.
2195 2010-12-14  Richard Henderson  <rth@redhat.com>
2197         * config/x86/tls.h: New file.
2199 2010-07-15  Richard Henderson  <rth@redhat.com>
2201         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2202         * Makefile.in: Rebuild.
2204 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2206         * method-wbetl.cc (trydropreference): Fix source line.
2208 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2210         * libitm.h: Add comment.
2211         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2213 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2215         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2216         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2217         available, use pthread mutexes.
2218         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2219         * config.h.in: Regenerate.
2220         * configure: Regenerate.
2222 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2224         * libitm.h (ITM_PURE): Define.
2225         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2227 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2229         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2230         (validate): Add comment.
2231         (trydropreference): New.
2232         * method-readonly.cc (class readonly_dispatch): Add
2233         trydropreference.
2234         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2235         Call trydropreference().
2236         * libitm.h (_ITM_dropReferences): Remove const attribute.
2237         * method-serial.cc (class serial_dispatch): Add trydropreference.
2238         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2240 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2242         * memcpy.cc (do_memcpy): Comment.
2244 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2246         * barrier.tpl: Add comments throughout.
2248 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2250         * method-wbetl.cc (struct w_entry): Add comments.
2251         (trycommit): Same.
2252         (rollback): Same.
2254 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2256         * alloc_c.cc (_ITM_dropReferences): New.
2257         * libitm.map (_ITM_dropReferences): Add.
2258         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2259         * libitm_i.h (struct gtm_transaction): Declare
2260         drop_references_allocations and drop_references_local.
2261         * local.cc (rollback_local): Ignore memory when applicable.
2262         (drop_references_local): New.
2264 2010-06-23  Richard Henderson  <rth@redhat.com>
2266         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2267         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2268         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2269         * config/alpha/target.h: Likewise.
2270         * config/generic/tls.cc (gtm_mask_stack): Use it.
2272 2010-06-23  Richard Henderson  <rth@redhat.com>
2274         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2275         a mutex instead of trying a lock-free compare-and-swap on the list.
2276         (gtm_cacheline_page::operator delete): Likewise.
2278 2010-06-16  Richard Henderson  <rth@redhat.com>
2280         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2281         that overlap the libitm stack.
2282         * barrier.tpl: Mark incoming stack.
2283         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2284         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2285         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2286         * memcpy.cc, memset.cc: Likewise.
2287         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2288         * config/generic/tls.h (gtm_thread): Add stack_top member.
2289         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2290         * libitm_i.h (gtm_mask_stack): Declare.
2291         * config/generic/tls.cc: New file.
2292         * Makefile.am (libitm_la_SOURCES): Add it.
2293         (AM_CXXFLAGS): Turn off exceptions.
2294         * Makefile.in: Rebuild.
2296 2010-06-16  Richard Henderson  <rth@redhat.com>
2298         * alloc.cc (struct gtm_alloc_action): Move definition ...
2299         * libitm_i.h: ... here.
2300         (class gtm_transaction): Declare new and delete.
2301         * beginend.cc (alloc_tx): Reformulate as operator new.
2302         (free_tx): Reformulate as operator delete.
2303         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2305 2010-06-11  Richard Henderson  <rth@redhat.com>
2307         * clone.cc (clone_entry_compare): Fix typo.
2308         From Patrik Marlier <patrick.marlier@unine.ch>.
2310 2010-05-13  Richard Henderson  <rth@redhat.com>
2312         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2313         in extern "C".
2315 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2317         * libitm_i.h (struct gtm_transaction): Remove
2318         get_allocation_size.
2319         (record_allocation): Remove size parameter.
2320         * libitm.map (_ITM_realloc): Remove.
2321         * alloc_c.cc (_ITM_realloc): Remove.
2322         (_ITM_malloc): Remove size argument to record_allocation.
2323         (_ITM_calloc): Same.
2324         * alloc_cpp.cc (_ZGTtnwm): Same.
2325         (_ZGTtnwmRKSt9nothrow_t): Same.
2326         (_ZGTtnam): Same.
2327         (_ZGTtnamRKSt9nothrow_t): Same.
2328         * alloc.cc (struct gtm_alloc_action): Remove size.
2329         (get_allocation_size): Remove.
2330         (commit_allocations): Add comment.
2331         (record_allocation): Remove size parameter.
2332         (forget_allocation): Remove set of size.
2334 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2336         * Makefile.am (abi_version): New.
2337         (AM_CXXFLAGS): Pass abi_version.
2338         * Makefile.in: Regenerate.
2339         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2341 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2343         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2344         _ITM_getTMCloneOrIrrevokable.
2345         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2346         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2348 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2350         * configure.ac: Remove Linux futex support.
2351         * configure.tgt (config_path): Same.
2352         * Makefile.am: Same.
2353         * config/linux: Remove entire directory.
2354         * configure: Rebuild.
2355         * Makefile.in: Rebuild.
2356         * testsuite/Makefile.in: Rebuild.
2358 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2360         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2361         switching to serial mode.
2362         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2364 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2366         * configure.tgt: Add emacs -*- tags.
2367         * barrier.tpl: Same.
2369 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2371         * Makefile.am: Rename serial.cc to method-serial.cc.
2372         * Makefile.in: Regenerate with automake 1.11.1.
2373         * testsuite/Makefile.in: Same.
2374         * aclocal.m4: Regenerate with aclocal 1.11.1.
2375         * method-serial.cc: Rename from serial.cc.
2376         * libitm_i.h (struct gtm_transaction): Update comment on
2377         serialirr_mode.
2379 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2381         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2382         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2384 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2386         * configure: Rebuild.
2388 2009-11-12  Richard Henderson  <rth@redhat.com>
2390         * Rewrite everything in C++.
2392 2009-11-03  Richard Henderson  <rth@redhat.com>
2394         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2395         * Makefile.am (libitm_la_SOURCES): Add them.
2396         * configure.ac (ARCH_X86): New conditional.
2397         * Makefile.in, configure: Rebuild.
2398         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2399         Move futex setup into "other system configury" case.
2400         * local.c (rollback_local): Merge into ...
2401         (GTM_rollback_local): ... here.
2402         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2403         (_ITM_LB): Define as an alias to GTM_LB.
2405 2009-11-03  Richard Henderson  <rth@redhat.com>
2407         * method-readonly.c: New file.
2408         * Makefile.am (libitm_la_SOURCES): Add it.
2409         * Makefile.in: Rebuild.
2410         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2411         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2412         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2413         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2414         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2415         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2416         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2417         gtm_get_clock, gtm_inc_clock): New.
2418         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2419         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2420         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2421         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2422         replace uses with new libitm_i.h symbols.
2423         (dispatch_wbetl): Rename from wbetl_dispatch.
2424         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2425         away from dispatch_readonly; abort if the beginTransaction call
2426         asserted that the transaction was readonly.
2428 2009-11-03  Richard Henderson  <rth@redhat.com>
2430         * memset.c: New file.
2431         * Makefile.am (libitm_la_SOURCES): Add it.
2432         * Makefile.in: Rebuild.
2433         * testsuite/libitm.c/memset-1.c: New.
2435 2009-11-03  Richard Henderson  <rth@redhat.com>
2437         * dispatch.c: Remove file.
2438         * useraction.c (struct gtm_user_action): Move from libitm.h.
2439         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2440         (serial_memset, serial_memmove, serial_memcpy): Remove.
2441         (serial_W*, serial_R*): Remove.
2442         (serial_dispatch): Update to match.
2443         * configure.ac: Move Werror down below configure checks.  Don't
2444         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2445         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2446         Use GCC_AC_FUNC_MMAP_BLACKLIST
2447         * libitm.h: Split out all internal items to...
2448         * libitm_i.h: ... here.  New file.
2449         * copymask.c: New file.
2450         * local.c (struct gtm_local_undo): Move from libitm.h.
2451         (GTM_alloc_local): Rename from alloc_local; export.
2452         * memcpy.c: New file.
2453         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2454         * config/posix/page.c: New file.
2455         * config/posix/target_tls.h: Remove file.
2456         * barrier.c: New file.
2457         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2458         copymask.c, page.c.
2459         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2460         * method-wbetl.c: Rewrite for new cacheline methods.
2461         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2463         * config/alpha/sjlj.S: Fix typo.
2464         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2465         * config/alpha/copymask.c: New file.
2466         * config/alpha/target.h (CACHELINE_SIZE): New.
2467         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2469         * config/x86/target_i.h: Copy functions from x86/target.h.
2470         * config/x86/copymask.c: New file.
2471         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2472         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2473         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2474         * config/x86/target_tls.h: Move contents to target_i.h.
2476         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2477         * testsuite/libitm.c/memcpy-1.c: New.
2479 2009-10-22  Richard Henderson  <rth@redhat.com>
2481         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2482         (AM_CCASFLAGS): New.
2483         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2484         saving/restoring _AC_ARG_VAR_PRECIOUS.
2485         * Makefile.in, aclocal.m4, config.h.in, configure,
2486         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2488 2009-10-22  Richard Henderson  <rth@redhat.com>
2490         * testsuite/*: Update for new compiler syntax.
2492 2009-10-21  Richard Henderson  <rth@redhat.com>
2494         * libitm.h (_ITM_abortReason): Add outerAbort.
2496 2009-08-03  Richard Henderson  <rth@redhat.com>
2498         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2499         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2500         * method-wbetl.c (struct w_entry): Remove mask.
2501         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2502         adjust all callers.
2504 2009-07-22  Richard Henderson  <rth@redhat.com>
2506         * eh_cpp.c: New file.
2507         * Makefile.am (libitm_la_SOURCES): Add it.
2508         * Makefile.in: Rebuild.
2509         * beginend.c (GTM_rollback_transaction): Undo exception state.
2510         (GTM_trycommit_transaction): Mark inline.
2511         (GTM_trycommit_and_finalize_transaction): Split out from ...
2512         (_ITM_commitTransaction): ... here.
2513         (_ITM_commitTransactionEH): New function.
2514         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2515         cxa_unthrown, eh_in_flight; reorder.
2517         * testsuite/libitm.c++/c++.exp: New.
2518         * testsuite/libitm.c++/eh-1.C: New.
2520         * aatree.c (aa_free): Remove REGPARM.
2521         * aatree.h: Remove all REGPARM.
2523 2009-07-18  Richard Henderson  <rth@redhat.com>
2525         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2526         * Makefile.am (libitm_la_SOURCES): Add them.
2527         * Makefile.in: Rebuild.
2528         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2529         (GTM_trycommit_transaction): Likewise.
2530         * libitm.h: Include aatree.h
2531         (struct gtm_alloc_action): New.
2532         (struct gtm_transaction): Add alloc_actions.
2533         (GTM_record_allocation, GTM_forget_allocation): Declare.
2534         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2535         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2536         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2537         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2538         _ZGTtdaPvRKSt9nothrow_t): Export.
2540 2009-07-18  Richard Henderson  <rth@redhat.com>
2542         * target_tls.h: Move ...
2543         * config/posix/target_tls.h: ... here.
2545 2009-07-07  Richard Henderson  <rth@redhat.com>
2547         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2549 2009-07-07  Richard Henderson  <rth@redhat.com>
2551         * Update to GPL3.
2553 2009-07-07  Richard Henderson  <rth@redhat.com>
2555         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2556         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2558         * configure.tgt: Don't use -ftls-model for x86 linux.
2559         * libitm.h: Include target.h after standard includes.
2560         (_gtm_thr): Rename from gtm_thr.
2561         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2562         (gtm_disp, set_gtm_disp): New.
2563         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2564         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2565         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2567 2009-07-07  Richard Henderson  <rth@redhat.com>
2569         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2571 2009-07-06  Richard Henderson  <rth@redhat.com>
2573         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2574         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2575         (_ITM_beginTransaction): Take variadic arguments.
2576         (_ITM_registerThrownObject): Declare.
2577         * beginend.c, serial.c: Update.
2578         * libitm.map: Add _ITM_registerThrownObject.
2580 2009-01-28  Richard Henderson  <rth@redhat.com>
2582         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2583         * Makefile.in: Rebuild.
2584         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2585         (GTM_restart_transaction): Fix uninstrumented code check.
2586         * retry.c (GTM_decide_retry_strategy): Add serial check.
2587         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2588         automatically go irrevokable when in serial mode.
2589         * clone.c: New file.
2590         * libitm.h, libitm.map: Update.
2592 2009-01-27  Richard Henderson  <rth@redhat.com>
2594         * Makefile.am (LTCCASCOMPILE): Define.
2595         (libitm_la_SOURCES): Add methid-wbetl.c.
2596         * testsuite/Makefile.am: New
2597         * configure.ac: Add testsuite/Makefile.
2598         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2599         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2600         (_ITM_abortTransaction): Finalize implementation method; pass
2601         transaction properties to longjmp.
2602         (GTM_restart_transaction): Split out from ...
2603         (_ITM_commitTransaction): ... here.
2604         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2605         Move to config/x86/target.h.
2606         * config/linux/alpha/futex_bits.h: New.
2607         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2608         * config/x86/target.h: Disable target types for 32-bit.
2609         * config/alpha/sjlj.S, config/alpha/target.h: New.
2610         * libitm.h (struct gtm_dispatch): Add init, fini.
2611         (enum restart_reason): New.
2612         (struct gtm_transaction): Add method and restarts.
2613         * retry.c (GTM_decide_retry_strategy): Implement.
2614         * serial.c (serial_init, serial_fini): New.
2615         (GTM_serialmode): Finialize outgoing method.
2616         * method-wbetl.c: New.
2618 2008-12-09  Richard Henderson  <rth@redhat.com>
2620         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2621         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2622         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2623         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2624         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2625         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2626         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2627         * serial.c (serial_R##T, serial_W##T): Likewise.
2629 2008-11-21  Richard Henderson  <rth@redhat.com>
2631         * Initial commit.
2633 Copyright (C) 2008-2024 Free Software Foundation, Inc.
2635 Copying and distribution of this file, with or without modification,
2636 are permitted in any medium without royalty provided the copyright
2637 notice and this notice are preserved.