d: Add testcase from PR108962
[official-gcc.git] / libitm / ChangeLog
blob20fce42c1ab806aaada4e7b663bf999350905a7d
1 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
3         * configure.ac (PERL): Remove.
4         * configure: Regenerate.
5         * Makefile.in: Likewise.
6         * testsuite/Makefile.in: Likewise.
8 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
10         * libitm.texi: Bump @copying's copyright year.
12 2022-11-14  Martin Liska  <mliska@suse.cz>
14         Revert:
15         2022-11-14  Martin Liska  <mliska@suse.cz>
17         * doc/c-c++-language-constructs-for-tm.rst: New file.
18         * doc/conf.py: New file.
19         * doc/copyright.rst: New file.
20         * doc/enabling-libitm.rst: New file.
21         * doc/gnu-free-documentation-license.rst: New file.
22         * doc/index.rst: New file.
23         * doc/indices-and-tables.rst: New file.
24         * doc/internals.rst: New file.
25         * doc/locking-conventions.rst: New file.
26         * doc/nesting-flat-vs-closed.rst: New file.
27         * doc/the-libitm-abi.rst: New file.
28         * doc/the-libitm-abi/function-list.rst: New file.
29         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
30         * doc/the-libitm-abi/library-design-principles.rst: New file.
31         * doc/the-libitm-abi/memory-model.rst: New file.
32         * doc/the-libitm-abi/non-objectives.rst: New file.
33         * doc/the-libitm-abi/objectives.rst: New file.
34         * doc/the-libitm-abi/sample-code.rst: New file.
35         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
36         * doc/tm-methods-and-method-groups.rst: New file.
38 2022-11-14  Martin Liska  <mliska@suse.cz>
40         Revert:
41         2022-11-14  Martin Liska  <mliska@suse.cz>
43         * Makefile.in: Support Sphinx based documentation.
45 2022-11-14  Martin Liska  <mliska@suse.cz>
47         Revert:
48         2022-11-14  Martin Liska  <mliska@suse.cz>
50         * libitm.texi: Removed.
52 2022-11-14  Martin Liska  <mliska@suse.cz>
54         Revert:
55         2022-11-14  Martin Liska  <mliska@suse.cz>
57         * Makefile.in: Support --with-sphinx-build.
58         * configure.ac: Likewise.
59         * configure: Regenerate.
61 2022-11-14  Martin Liska  <mliska@suse.cz>
63         Revert:
64         2022-11-14  Martin Liska  <mliska@suse.cz>
66         * Makefile.in: Build info pages conditionally.
68 2022-11-14  Martin Liska  <mliska@suse.cz>
70         Revert:
71         2022-11-14  Martin Liska  <mliska@suse.cz>
73         * doc/c-c++-language-constructs-for-tm.rst:
74         Add trailing newline.
75         * doc/copyright.rst:
76         Add trailing newline.
77         * doc/enabling-libitm.rst:
78         Add trailing newline.
79         * doc/gnu-free-documentation-license.rst:
80         Add trailing newline.
81         * doc/index.rst:
82         Add trailing newline.
83         * doc/indices-and-tables.rst:
84         Add trailing newline.
85         * doc/internals.rst:
86         Add trailing newline.
87         * doc/locking-conventions.rst:
88         Add trailing newline.
89         * doc/nesting-flat-vs-closed.rst:
90         Add trailing newline.
91         * doc/the-libitm-abi.rst:
92         Add trailing newline.
93         * doc/the-libitm-abi/function-list.rst:
94         Add trailing newline.
95         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
96         Add trailing newline.
97         * doc/the-libitm-abi/library-design-principles.rst:
98         Add trailing newline.
99         * doc/the-libitm-abi/memory-model.rst:
100         Add trailing newline.
101         * doc/the-libitm-abi/non-objectives.rst:
102         Add trailing newline.
103         * doc/the-libitm-abi/objectives.rst:
104         Add trailing newline.
105         * doc/the-libitm-abi/sample-code.rst:
106         Add trailing newline.
107         * doc/the-libitm-abi/types-and-macros-list.rst:
108         Add trailing newline.
109         * doc/tm-methods-and-method-groups.rst:
110         Add trailing newline.
112 2022-11-14  Martin Liska  <mliska@suse.cz>
114         Revert:
115         2022-11-14  Martin Liska  <mliska@suse.cz>
117         * Makefile.in: Add missing HAS_SPHINX_BUILD.
119 2022-11-14  Martin Liska  <mliska@suse.cz>
121         Revert:
122         2022-11-14  Martin Liska  <mliska@suse.cz>
124         * doc/conf.py: Add newline at last line.
126 2022-11-14  Martin Liska  <mliska@suse.cz>
128         Revert:
129         2022-11-14  Martin Liska  <mliska@suse.cz>
131         PR other/107620
132         * configure: Regenerate.
133         * configure.ac: Always set sphinx-build.
135 2022-11-13  Martin Liska  <mliska@suse.cz>
137         PR other/107620
138         * configure: Regenerate.
139         * configure.ac: Always set sphinx-build.
141 2022-11-10  Martin Liska  <mliska@suse.cz>
143         * doc/conf.py: Add newline at last line.
145 2022-11-09  Martin Liska  <mliska@suse.cz>
147         * Makefile.in: Add missing HAS_SPHINX_BUILD.
149 2022-11-09  Martin Liska  <mliska@suse.cz>
151         * doc/c-c++-language-constructs-for-tm.rst:
152         Add trailing newline.
153         * doc/copyright.rst:
154         Add trailing newline.
155         * doc/enabling-libitm.rst:
156         Add trailing newline.
157         * doc/gnu-free-documentation-license.rst:
158         Add trailing newline.
159         * doc/index.rst:
160         Add trailing newline.
161         * doc/indices-and-tables.rst:
162         Add trailing newline.
163         * doc/internals.rst:
164         Add trailing newline.
165         * doc/locking-conventions.rst:
166         Add trailing newline.
167         * doc/nesting-flat-vs-closed.rst:
168         Add trailing newline.
169         * doc/the-libitm-abi.rst:
170         Add trailing newline.
171         * doc/the-libitm-abi/function-list.rst:
172         Add trailing newline.
173         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
174         Add trailing newline.
175         * doc/the-libitm-abi/library-design-principles.rst:
176         Add trailing newline.
177         * doc/the-libitm-abi/memory-model.rst:
178         Add trailing newline.
179         * doc/the-libitm-abi/non-objectives.rst:
180         Add trailing newline.
181         * doc/the-libitm-abi/objectives.rst:
182         Add trailing newline.
183         * doc/the-libitm-abi/sample-code.rst:
184         Add trailing newline.
185         * doc/the-libitm-abi/types-and-macros-list.rst:
186         Add trailing newline.
187         * doc/tm-methods-and-method-groups.rst:
188         Add trailing newline.
190 2022-11-09  Martin Liska  <mliska@suse.cz>
192         * Makefile.in: Build info pages conditionally.
194 2022-11-09  Martin Liska  <mliska@suse.cz>
196         * Makefile.in: Support --with-sphinx-build.
197         * configure.ac: Likewise.
198         * configure: Regenerate.
200 2022-11-09  Martin Liska  <mliska@suse.cz>
202         * libitm.texi: Removed.
204 2022-11-09  Martin Liska  <mliska@suse.cz>
206         * Makefile.in: Support Sphinx based documentation.
208 2022-11-09  Martin Liska  <mliska@suse.cz>
210         * doc/c-c++-language-constructs-for-tm.rst: New file.
211         * doc/conf.py: New file.
212         * doc/copyright.rst: New file.
213         * doc/enabling-libitm.rst: New file.
214         * doc/gnu-free-documentation-license.rst: New file.
215         * doc/index.rst: New file.
216         * doc/indices-and-tables.rst: New file.
217         * doc/internals.rst: New file.
218         * doc/locking-conventions.rst: New file.
219         * doc/nesting-flat-vs-closed.rst: New file.
220         * doc/the-libitm-abi.rst: New file.
221         * doc/the-libitm-abi/function-list.rst: New file.
222         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
223         * doc/the-libitm-abi/library-design-principles.rst: New file.
224         * doc/the-libitm-abi/memory-model.rst: New file.
225         * doc/the-libitm-abi/non-objectives.rst: New file.
226         * doc/the-libitm-abi/objectives.rst: New file.
227         * doc/the-libitm-abi/sample-code.rst: New file.
228         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
229         * doc/tm-methods-and-method-groups.rst: New file.
231 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
233         * configure.tgt: Add riscv support.
234         * config/riscv/asm.h: New file.
235         * config/riscv/sjlj.S: New file.
236         * config/riscv/target.h: New file.
238 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
240         * config/loongarch/sjlj.S: Add a soft floating point condition to the
241         register recovery part of the code.
243 2022-10-12  Martin Liska  <mliska@suse.cz>
245         * configure: Regenerate.
247 2022-10-11  Olivier Hainque  <hainque@adacore.com>
248             Olivier Hainque  <hainque@adacore.com>
250         * configure: Regenerate.
252 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
253             Yang Yujie  <yangyujie@loongson.cn>
255         * configure.tgt: Add loongarch support.
256         * config/loongarch/asm.h: New file.
257         * config/loongarch/sjlj.S: New file.
258         * config/loongarch/target.h: New file.
260 2022-08-31  Martin Liska  <mliska@suse.cz>
262         * configure: Regenerate.
264 2022-08-31  Martin Liska  <mliska@suse.cz>
266         * configure: Regenerate.
268 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
270         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
272 2022-02-03  David Seifert  <soap@gentoo.org>
273             Jakub Jelinek  <jakub@redhat.com>
275         * configure.ac: Support --disable-werror.
276         * configure: Regenerate.
278 2022-01-31  Martin Liska  <mliska@suse.cz>
280         * acinclude.m4: Detect *_ld_is_mold and use it.
281         * configure: Regenerate.
283 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
285         * libitm.texi: Bump @copying's copyright year.
287 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
289         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
290         target does not support HAVE_ELF_STYLE_WEAKREF then do not
291         try to test the __cxa_get_globals against NULL.
293 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
295         PR libstdc++/91488
296         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
298 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
300         PR target/70454
301         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
302         be added through preprocessor check on
303         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
305 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
307         * configure: Re-generate.
309 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
311         * libitm.texi: Bump @copying's copyright year.
313 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
315         PR target/97865
316         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
317         * configure: Regenerate.
319 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
321         * configure: Regenerate.
323 2020-10-01  Alan Modra  <amodra@gmail.com>
325         * config/powerpc/sjlj.S: Support __PCREL__ code.
327 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
329         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
331 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
333         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
334         and add BTI c to function entries.
336 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
338         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
340 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
342         PR bootstrap/95413
343         * configure: Regenerated.
345 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
347         PR bootstrap/95147
348         * configure: Regenerated.
350 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
352         * configure: Regenerated.
354 2020-05-12  Nathan Sidwell  <nathan@acm.org>
356         Fix throw specifiers on interface.
357         * libitm/libitm.h (_ITM_NOTHROW): Define.
358         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
359         (_ITM_cxa_begin_catch): Use it.
360         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
361         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
362         __cxa_get_globals.
363         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
364         (_ITM_cxa_begin_catch): Likewise.
366 2020-05-05  Nathan Sidwell  <nathan@acm.org>
368         * testsuite/lib/libitm.exp (libitm_init): Add
369         -fdiagnostics-color=never to options.
371 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
373         PR libstdc++/79193
374         PR libstdc++/88999
376         * configure: Regenerated.
378 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
380         * configure.ac: Handle `--with-toolexeclibdir='.
381         * Makefile.in: Regenerate.
382         * aclocal.m4: Regenerate.
383         * configure: Regenerate.
384         * testsuite/Makefile.in: Regenerate.
386 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
388         Update copyright years.
390         * libitm.texi: Bump @copying's copyright year.
392 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
394         PR libgomp/91938
395         * configure.tgt: Avoid IE tls on *-*-musl*.
397 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
399         * configure: Regenerate.
401 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
403         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
405 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
407         * configure.tgt: Handle *-*-uclinux*.
408         * configure: Regenerate.
410 2019-09-06  Florian Weimer  <fweimer@redhat.com>
412         * configure: Regenerate.
414 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
416         PR other/79543
417         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
418         scanning to conform to the GNU Coding Standards.
419         * configure: Regenerate.
421 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
423         * Makefile.am (finclude): Remove.
424         * Makefile.in: Regenerated.
426 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
428         Update copyright years.
430 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
432         * libitm.texi: Bump @copying's copyright year.
434 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
436         PR c++/88482
437         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
438         void * to void (*) (void *).
439         (_ITM_cxa_throw): Likewise.
440         * libitm.h (_ITM_cxa_throw): Likewise.
441         * libitm.texi (_ITM_cxa_throw): Likewise.
443 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
445         * config/powerpc/target.h (htm_available):  Add support for
446         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
448 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
450         PR bootstrap/82856
451         * Makefile.am: Include multilib.am.
452         (AUTOMAKE_OPTIONS): Add info-in-builddir.
453         (CLEANFILES): Remove libitm.info.
454         * configure.ac: Remove AC_PREREQ.
455         * testsuite/Makefile.am (RUNTEST): Remove quotes.
456         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
457         Regenerate.
459 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
461         PR libitm/86293
462         * method-serial.cc: Mark varible as potentially unused
463         to silence warning.
465 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
467         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
468         absolute relocation in a shared library.
470 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
472         PR libitm/85988
473         * config/linux/x86/tls.h (SEG_READ): Use the offset of
474         __private_tm as base.
475         (SEG_WRITE): Likewise.
476         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
477         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
478         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
479         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
480         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
482 2018-05-17  Jason Merrill  <jason@redhat.com>
484         * beginend.cc (save): Disable -Werror=deprecated-copy.
486 2018-05-02  Tom de Vries  <tom@codesourcery.com>
488         PR testsuite/85106
489         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
491 2018-05-02  Tom de Vries  <tom@codesourcery.com>
493         PR testsuite/85106
494         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
496 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
498         * config/x86/sjlj.S (_ITM_beginTransaction): Add
499         (__CET__ & 2) != 0 check for shadow stack.
500         (GTM_longjmp): Likewise.
502 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
504         * configure: Regenerated.
506 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
508         PR target/85489
509         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
511 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
513         * configure: Regenerated.
515 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
517         PR jit/85384
518         * configure: Regenerate.
520 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
522         PR target/84148
523         * configure: Regenerate.
525 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
527         Update copyright years.
529         * libitm.texi: Bump @copying's copyright year.
531 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
533         * Makefile.in: Regenerate.
534         * acinclude.m4: Add enable.m4 and cet.m4.
535         * config/x86/sjlj.S: Include cet.h.
536         (_ITM_beginTransaction): Add _CET_ENDBR.
537         Save Shadow Stack pointer.
538         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
539         * config/x86/target.h (struct gtm_jmpbuf):
540         Add new field for Shadow Stack pointer.
541         * configure: Regenerate.
542         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
543         * configure.ac: Update libtool_VERSION for x86.
544         * testsuite/Makefile.in: Regenerate.
546 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
548         * libitm/config/x86/target.h: Add new field (ssp).
549         * libitm/config/x86/sjlj.S: Change offsets.
551 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
553         * testsuite/lib/libitm.exp: Load scanlang.exp.
555 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
557         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
559 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
561         PR other/79046
562         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
563         of cat to get version from BASE-VER file.
564         * testsuite/Makefile.in: Regenerated.
566 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
568         * config/x86/target.h (htm_available): Determine vendor from
569         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
571 2017-01-18  Torvald Riegel  <triegel@redhat.com>
573         * config/x86/target.h (htm_available): Add check for some processors
574         on which TSX is broken.
576 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
578         PR other/79046
579         * configure.ac: Add GCC_BASE_VER.
580         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
581         get version from BASE-VER file.
582         * testsuite/Makefile.in: Regenerated.
583         * configure: Regenerated.
584         * Makefile.in: Regenerated.
586 2017-01-04  Alan Modra  <amodra@gmail.com>
588         * Makefile.in: Regenerate.
589         * testsuite/Makefile.in: Regenerate.
591 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
593         Update copyright years.
595         * libitm.texi: Bump @copying's copyright year.
597 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
599         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
600         * aclocal.m4: Regenerate.
601         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
602         LIBITM_CHECK_LINKER_HWCAP.
604 2016-11-15  Matthias Klose  <doko@ubuntu.com>
606         * configure: Regenerate.
608 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
610         PR libitm/70456
611         * util.cc (xmalloc): Use posix_memalign to allocate memory on
612         on cache line if requested.
614 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
616         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
617         function attribute to disable floating point in begin_transaction() on
618         S/390.
619         * beginend.cc (begin_transaction): Use
620         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
622 2016-01-22  Torvald Riegel  <triegel@redhat.com>
624         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
625         boundary.
626         (htm_fastpath): Remove.
627         (gtm_thread::begin_transaction): Fix HTM fastpath.
628         (_ITM_commitTransaction): Adapt.
629         (_ITM_commitTransactionEH): Adapt.
630         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
631         and accessors.
632         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
633         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
634         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
635         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
636         * libitm/method-serial.cc (htm_mg): Adapt.
637         (gtm_thread::serialirr_mode): Adapt.
638         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
640 2016-01-21  Torvald Riegel  <triegel@redhat.com>
642         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
643         or AIX.
645 2016-01-19  Richard Henderson  <rth@redhat.com>
647         PR bootstrap/69343
648         PR bootstrap/69339
649         Revert:
650         2016-01-13  Richard Henderson  <rth@redhat.com>
652         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
653         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
654         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
655         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
656         * configure.ac (ARCH_AARCH64): New conditional.
657         (ARCH_PPC, ARCH_S390): Likewise.
658         * Makefile.in, configure: Rebuild.
660         * libitm.h (_ITM_TYPE_M128): Always define.
661         * vect64.cc: Split ...
662         * vect128.cc: ... out of...
663         * config/x86/x86_sse.cc: ... here.
664         * config/arm/neon.cc: New file.
666 2016-01-19  Torvald Riegel  <triegel@redhat.com>
668         * local_type_traits: Remove file.
669         * libitm_i.h: Don't include it anymore.
670         (sized_integral): Remove.
672 2016-01-16  Torvald Riegel  <triegel@redhat.com>
674         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
675         safety.
676         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
677         * libitm/testsuite/libitm.c/priv-1.c: New.
679 2015-01-15  Torvald Riegel  <triegel@redhat.com>
681         testsuite/libitm.c++/libstdc++-safeexc.C: New.
683 2016-01-13  Torvald Riegel  <triegel@redhat.com>
685         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
686         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
687         (gtm_rwlock::write_unlock): Likewise.
689 2016-01-13  Richard Henderson  <rth@redhat.com>
691         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
692         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
693         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
694         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
695         * configure.ac (ARCH_AARCH64): New conditional.
696         (ARCH_PPC, ARCH_S390): Likewise.
697         * Makefile.in, configure: Rebuild.
699         * libitm.h (_ITM_TYPE_M128): Always define.
700         * vect64.cc: Split ...
701         * vect128.cc: ... out of...
702         * config/x86/x86_sse.cc: ... here.
703         * config/arm/neon.cc: New file.
705 2016-01-13  Torvald Riegel  <triegel@redhat.com>
707         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
708         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
709         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
710         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
711         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
712         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
713         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
714         (serialirr_dispatch::snapshot_most_recent): New.
715         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
717 2016-01-12  Torvald Riegel  <triegel@redhat.com>
719         * libitm_i.h (gtm_mask_stack): Remove.
720         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
721         * stmlock.h: Remove file.
722         * config/alpha/cacheline.h: Likewise.
723         * config/generic/cacheline.h: Likewise.
724         * config/powerpc/cacheline.h: Likewise.
725         * config/sparc/cacheline.h: Likewise.
726         * config/x86/cacheline.h: Likewise.
728 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
730         Update copyright years.
732         * libitm.texi: Bump @copying's copyright year.
734 2015-11-26  Torvald Riegel  <triegel@redhat.com>
736         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
737         (ml_wt_dispatch::pre_write): Adapt.
738         (ml_wt_dispatch::pre_load): Likewise.
740 2015-11-22  Torvald Riegel  <triegel@redhat.com>
742         * libitm_i.h (gtm_alloc_action): Remove union.
743         * testsuite/libitm.c/alloc-1.c: New.
745 2015-11-19  Torvald Riegel  <triegel@redhat.com>
747         * testsuite/libitm.c++/eh-5.C: New.
748         * libitm.h (_ITM_cxa_free_exception): New.
749         * libitm.map (_ITM_cxa_free_exception): Add it.
750         * libitm.texi: Update ABI docs.
751         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
752         (gtm_transaction_cp::cxa_uncaught_count): Add.
753         (gtm_thread::cxa_unthrown): Remove.
754         (gtm_thread::cxa_uncaught_count_ptr): Add.
755         (gtm_thread::cxa_uncaught_count): Add.
756         (gtm_thread::drop_references_allocations): Rename to...
757         (gtm_thread::discard_allocation): ... this and adapt.
758         (gtm_thread::init_cpp_exceptions): New.
759         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
760         (gtm_thread::begin_transaction): Likewise.
761         (gtm_transaction_cp::save): Likewise.
762         (gtm_thread::trycommit): Likewise.
763         * eh_cpp.cc: Add overview comments.
764         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
765         (free_any_exception, _ITM_cxa_free_exception): New.
766         (gtm_thread::init_cpp_exceptions): Define.
767         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
768         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
769         (gtm_thread::revert_cpp_exceptions): Likewise.
771 2015-11-09  Torvald Riegel  <triegel@redhat.com>
773         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
774         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
775         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
776         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
777         (gtm_thread::forget_allocations): New overload with size_t argument.
778         * alloc.c (gtm_thread::forget_allocation): Define new overload and
779         adapt existing one.
780         (gtm_thread::record_allocation): Adapt.
781         (gtm_thread::commit_allocations_1): Adapt.
782         (gtm_thread::commit_allocations_2): Adapt.
783         * testsuite/libitm.c++/newdelete.C: New.
785 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
786             Joseph Myers  <joseph@codesourcery.com>
787             Mark Shinwell  <shinwell@codesourcery.com>
788             Andrew Stubbs  <ams@codesourcery.com>
789             Rich Felker <dalias@libc.org>
791         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
792         GTM_begin_transaction for compatibility with FDPIC.
794 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
796         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
797         using load_gcc_lib.
799 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
801         PR libitm/61164
802         * local_atomic (__always_inline): Rename to...
803         (__libitm_always_inline): ... this.
805 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
807         PR target/52482
808         * config/powerpc/sjlj.S: Port to Xcode 2.5.
810 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
812         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
813         operands "op" and "val" to int.
815 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
817         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
818         "op" and "val" to int.
820 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
822         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
823         "op" and "val" to int.
825 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
827         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
828         Declare as static int.
829         (FUTEX_PRIVATE_FLAG): Remove L suffix.
830         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
832 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
834         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
835         sys_futex0 function.
837 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
839         * Makefile.in: Regenerated with automake-1.11.6.
840         * aclocal.m4: Likewise.
841         * configure: Likewise.
842         * testsuite/Makefile.in: Likewise.
844 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
846         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
847         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
849 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
851         PR libitm/64360
852         * libitm.c/stackundo.c (test2): Make it static.
853         (test1): Likewise.
855 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
857         Update copyright years.
859 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
861         * libitm.texi: Bump @copying's copyright year.
863 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
865         * testsuite/lib/libitm.exp: Load target-utils.exp.
866         Move load of target-supports.exp earlier.
868 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
870         * configure.tgt (x86_64): Tune -m32 multilib to generic.
872 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
874         PR bootstrap/63784
875         * configure: Regenerated.
877 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
879         PR target/63610
880         * configure: Regenerate.
882 2014-10-06  Marek Polacek  <polacek@redhat.com>
884         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
885         * testsuite/libitm.c/memset-1.c: Likewise.
887 2014-07-24  Richard Henderson  <rth@redhat.com>
889         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
890         addressing mode in epilogue.
892 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
894         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
895         -mclear-hwcap instead.
896         * configure: Regenerate.
897         * clearcap.map: Remove.
899 2014-05-21  John Marino  <gnugcc@marino.st>
901         * configure.tgt (*-*-dragonfly*): New target.
903 2014-05-19  Richard Henderson  <rth@redhat.com>
905         * config/aarch64/sjlj.S: New file.
906         * config/aarch64/target.h: New file.
907         * configure.tgt: Enable aarch64.
909 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
911         * config/generic/asmcfi.h: Also check for
912         __GCC_HAVE_DWARF2_CFI_ASM.
914 2013-04-02  Richard Henderson  <rth@redhat.com>
916         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
917         * config/arm/target.h, config/sh/target.h: Likewise.
918         * config/sparc/target.h, config/x86/target.h: Likewise.
920 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
922         * config/linux/futex_bits.h: Include errno.h.
923         (sys_futex0): If syscall returns -1, return -errno rather than
924         -1.
926 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
928         * libitm.texi (Index): Rename to Library Index.
930 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
932         PR libitm/53113
933         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
934         (x86_avx.lo): Append -mavx to CXXFLAGS.
935         * Makefile.in: Regenerate.
937 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
939         Update copyright years
941 2014-01-02  Tobias Burnus  <burnus@net-b.de>
943         * libitm.texi: Bump @copying's copyright year.
945 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
947         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
948         (FUNC): Define ELFv2 variant.
949         (END): Likewise.
950         (HIDDEN): Likewise.
951         (CALL): Likewise.
952         (BASE): Likewise.
953         (LR_SAVE): Likewise.
955 2013-09-20  Alan Modra  <amodra@gmail.com>
957         * configure: Regenerate.
959 2013-08-30  Torvald Riegel  <triegel@redhat.com>
961         * config/posix/rwlock.cc: Fix initialization order.
963 2013-08-30  Torvald Riegel  <triegel@redhat.com>
965         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
966         (htm_fastpath): Assign an asm name.
967         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
968         HTM fast paths.
969         (_ITM_actions): Likewise.
970         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
971         x86_64.
972         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
973         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
974         field to the start of the structure.
975         * config/linux/rwlock.h (gtm_rwlock): Update comments.
976         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
977         handling for custom HTM fast paths.
979 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
980         Revert:
981         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
983         * configure.tgt: Add -msoft-float to XCFLAGS.
985 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
987         * configure.tgt: Add -msoft-float to XCFLAGS.
989 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
991         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
992         (htm_transaction_active): Enable zEC12 instructions in the
993         assembler.
994         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
996 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
998         * acinclude.m4: Add htm asm check for s390.
999         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1000         * configure: Regenerate.
1001         * config/s390/target.h: Remove __HTM__ check.
1002         (htm_available): Call getauxval to get hwcaps and check whether
1003         HTM is available or not.
1005 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1007         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1008         * configure.ac: Use it.
1009         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1010         (AC_CHECK_FUNCS): Check for getauxval.
1011         * config.h.in, configure: Rebuild.
1012         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1013         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1014         (USE_HTM_FASTPATH): Define.
1015         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1016         _HTM_RETRIES) New macros.
1017         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1018         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1020 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1022         * config/s390/target.h: Include htmintrin.h.
1023         (_HTM_ITM_RETRIES): New macro definition.
1024         (htm_available, htm_init, htm_begin, htm_begin_success)
1025         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1027 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1028             Cesar Philippidis  <cesar@codesourcery.com>
1030         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1031         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1032         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1033         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1035 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1037         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1038         (_ITM_getTransactionId): Same.
1039         * config/x86/target.h (htm_transaction_active): New.
1041 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1043         PR libitm/57643
1044         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1045         the HTM fastpath.
1047 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1049         PR bootstrap/56714
1050         * local_atomic (__always_inline): Always define our version.
1051         (__calculate_memory_order): Mark inline.
1052         (atomic_thread_fence): Ditto.
1053         (atomic_signal_fence): Ditto.
1054         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1055         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1056         (atomic_bool::atomic_flag_test_and_set): Ditto.
1057         (atomic_bool::atomic_flag_clear): Ditto.
1059 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1061         * config/s390/sjlj.S: New file.
1062         * config/s390/target.h: New file.
1063         * configure.tgt: Set options for S/390.
1065 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1067         * local_atomic (__always_inline): Add.
1068         (__calculate_memory_order, atomic_thread_fence,
1069         atomic_signal_fence, test_and_set, clear, store, load,
1070         exchange, compare_exchange_weak, compare_exchange_strong,
1071         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1072         Add __always_inline to force inlining.
1074 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1075             Jack Howarth  <howarth@bromo.med.uc.edu>
1076             Patrick Marlier  <patrick.marlier@gmail.com>
1078         PR libitm/55693
1079         * alloc_cpp.cc: Enable function declarations on darwin.
1080         * eh_cpp.cc: Likewise.
1082 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1084         Update copyright years.
1086 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1088         * beginend.cc (htm_fastpath): New.
1089         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1090         _ITM_commitTransactionEH): Add HTM fastpath handling.
1091         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1092         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1093         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1094         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1095         * configure.tgt: Add -mrtm to XCFLAGS.
1096         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1097         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1098         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1099         * retry.cc (parse_default_method): Add HTM method parsing.
1100         (gtm_thread::number_of_threads_changed): Use HTM by default if
1101         available.
1103 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1105         * configure: Regenerate.
1107 2012-10-31  Richard Henderson  <rth@redhat.com>
1109         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1110         * configure.ac: Use it.
1111         * config.h.in, configure: Rebuild.
1112         * testsuite/Makefile.in: Rebuild.
1114 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1116         * libitm.texi: Clarify ABI requirements for data-logging functions.
1118 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1120         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1121         it requires serial mode instead of assuming that for certain
1122         dispatchs.
1123         * dispatch.h (abi_dispatch::requires_serial): New.
1124         (abi_dispatch::abi_dispatch): Adapt.
1125         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1126         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1127         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1128         serial_dispatch::serial_dispatch,
1129         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1131 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1133         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1134         and ia32 declarations some more.
1135         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1137 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1139         PR other/43620
1140         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1141         * configure: Regenerate.
1142         * Makefile.in: Regenerate.
1144 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1146         * configure: Regenerated.
1148 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1150         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1152 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1154         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1156 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1158         * configure: Regenerated.
1160 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1162         PR libitm/52854
1163         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1164         for x86-64.
1166 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1168         * configure: Regenerate.
1170 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1172         PR bootstrap/52812
1173         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1175 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1177         * testsuite/lib/libitm.exp: load fortran-modules.exp
1179 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1181         * configure.tgt (*-*-irix6*): Remove.
1183 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1185         PR libitm/52526
1186         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1187         wake-up.
1189 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1191         * configure.tgt (*-*-osf*): Remove.
1192         * configure: Regenerate.
1194 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1196         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1197         memtransfer/memset if size isn't larger than zero.
1199 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1201         * libitm.texi: Link to specification and add a usage example.
1203 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1205         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1206         default dispatch for more than 1 thread to ml_wt.
1208 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1210         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1212 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1214         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1216 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1218         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1219         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1220         (gl_wt_dispatch.rollback): Same.
1222 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1224         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1226 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1228         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1229         for RfW src.  Optimize number of calls to gtm_thr.
1231 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1233         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1234         acquisition to ...
1235         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1236         (default_dispatch): Make atomic.
1237         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1238         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1239         use decide_begin_dispatch() if default_dispatch might have changed.
1240         (GTM::gtm_thread::number_of_threads_changed): Initialize
1241         default_dispatch here.
1243 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1244             Patrick Marlier  <patrick.marlier@gmail.com>
1246         PR libitm/52220
1247         * alloc_cpp.cc: No dummy definitions for darwin.
1248         * eh_cpp.cc: Likewise.
1250 2012-02-14  Richard Henderson  <rth@redhat.com>
1252         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1254 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1256         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1258 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1260         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1261         (GTM::gtm_thread): Add read and write logs.
1262         (GTM::dispatch_ml_wt): Declare.
1263         * retry.cc (parse_default_method): Support ml_wt.
1264         * method-ml.cc: New file.
1265         * Makefile.am: Add method-ml.cc.
1266         * Makefile.in: Regenerate.
1268 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1270         * dispatch.h (GTM::abi_dispatch::supports): New.
1271         (GTM::method_group::reinit): New.
1272         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1273         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1274         supports the current situation.
1276 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1278         * util.cc (GTM::xcalloc): New.
1279         * common.h (GTM::xcalloc): Declare.
1281 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1283         * config/sparc/target.h (cpu_relax): Read from CC register.
1284         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1286 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1288         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1290 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1292         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1293         * config/sparc/cacheline.h: New file.
1294         * config/sparc/target.h: Likewise.
1295         * config/sparc/sjlj.S: Likewise.
1296         * config/linux/sparc/futex_bits.h: Likewise.
1298 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1300         * configure.ac (link_itm): Fix comment.
1301         * configure: Regenerate.
1302         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1304 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1306         PR libitm/51822
1307         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1308         Correct libgomp references.
1310 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1312         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1313         wake-up.
1315 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1317         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1318         end of structure.
1319         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1320         offset values.  Do not copy return address.  Decrement stack
1321         by 56 bytes only.
1322         (GTM_longjump) [__x86_64__]: Update offset values.
1324 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1326         PR libitm/51830
1327         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1328         the first function argument to %eax.
1330 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1332         * libitm.h (_ITM_getThreadnum): Remove.
1333         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1335 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1337         * clearcap.map: New file.
1338         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1339         * configure.ac: Call it.
1340         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1341         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1342         * configure: Regenerate.
1343         * Makefile.in: Regenerate.
1344         * testsuite/Makefile.in: Regenerate.
1346 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1348         PR libitm/51173
1349         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1350         include, exclude options.
1352 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1354         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1355         rolling back.
1356         * containers.h (GTM::vector::set_size): New.
1358 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1360         PR libitm/51855
1361         * config/generic/tls.h (GTM::mask_stack_top): New.
1362         (GTM::mask_stack_bottom): Declare.
1363         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1364         * local.cc (gtm_undolog::rollback): Filter out any updates that
1365         overlap the libitm stack.  Add current transaction as parameter.
1366         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1367         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1368         * testsuite/libitm.c/stackundo.c: New test.
1370 2012-01-10  Richard Henderson  <rth@redhat.com>
1372         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1373         * eh_cpp.cc (_Unwind_DeleteException): Define for
1374         !HAVE_ELF_STYLE_WEAKREF.
1376 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1378         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1379         (GTM::gtm_thread::drop_references_undolog): Remove.
1380         (GTM::gtm_thread::commit_undolog,
1381         GTM::gtm_thread::rollback_undolog): Move to ...
1382         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1383         (GTM::gtm_undolog_entry): Remove.
1384         (GTM::gtm_thread): Adapt.
1385         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1386         (GTM::gtm_thread::trycommit): Adapt.
1387         * method-serial.cc (serial_dispatch::log): Adapt.
1388         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1389         (gl_wt_dispatch::store): Fix likely/unlikely.
1390         * containers.h (GTM::vector::resize): Add additional_capacity
1391         parameter and handle it.
1392         (GTM::vector::resize_noinline): New/adapt.
1393         (GTM::vector::push): New.
1395 2012-01-06  Richard Henderson  <rth@redhat.com>
1397         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1398         * config/linux/powerpc/futex_bits.h: New file.
1399         * config/powerpc/cacheline.h: New file.
1400         * config/powerpc/sjlj.S: New file.
1401         * config/powerpc/target.h: New file.
1402         * config/generic/asmcfi.h (cfi_offset): New.
1403         (cfi_restore, cfi_undefined): New.
1405 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1407         PR other/51171
1408         * testsuite/libitm.c/reentrant.c: Remove xfail.
1409         (thread): Pass x to pure().
1410         From Patrik Marlier <patrick.marlier@gmail.com>.
1412 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1414         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1415         privatization safety if already in serial mode.
1417 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1419         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1420         finish_serial_upgrade parameter.
1421         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1422         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1423         Don't unset reader flag.
1424         (GTM::gtm_rwlock::write_upgrade_finish): New.
1425         * config/posix/rwlock.cc: Same.
1426         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1427         Declare.
1428         * config/posix/rwlock.h: Same.
1429         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1430         flag after commit or after rollback when restarting.
1432 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1434         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1435         (GTM::gtm_thread::try_commit): Changed memory order.
1436         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1437         as parameter.
1438         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1439         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1440         * config/linux/futex_bits.h (sys_futex0): Same.
1441         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1442         * config/linux/futex.h (futex_wait, futex_wake): Same.
1443         * config/linux/rwlock.h (gtm_rwlock::writers,
1444         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1445         ints.
1446         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1447         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1448         gtm_rwlock::write_unlock): Fix memory orders and fences.
1449         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1450         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1451         gtm_rwlock::write_unlock): Same.
1452         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1453         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1454         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1455         Add comments.
1456         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1457         gl_wt_dispatch::load, gl_wt_dispatch::store,
1458         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1459         orders and fences.  Add comments.
1461 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1463         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1464         * Makefile.in: Regenerated.
1466 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1468         * configure.tgt: Add sh* case.
1469         * config/sh/target.h: New file.
1470         * config/sh/sjlj.S: New file.
1471         * config/linux/sh/futex_bits.h: New file.
1473 2011-12-14  Richard Henderson  <rth@redhat.com>
1475         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1476         * config/arm/sjlj.S, config/arm/target.h: New files.
1477         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1478         (cfi_rel_offset): New.
1479         * config/linux/futex_bits.h: New file.
1480         * config/linux/futex.cc: Include futex_bits.h here...
1481         * config/linux/futex.h: ... not here.
1482         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1483         * configure.ac (ARCH_AM): New conditional.
1484         * Makefile.in, configure: Rebuild.
1485         * configure.tgt: Handle ARM.
1487 2011-12-13  Richard Henderson  <rth@redhat.com>
1489         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1490         signed/unsigned comparison werror.
1492         * local_atomic: New file.
1493         * libitm_i.h: Include it.
1494         (gtm_thread::shared_state): Use atomic template.
1495         * beginend.cc (GTM::gtm_clock): Use atomic template.
1496         (global_tid): Use atomic template if 64-bit atomics available.
1497         (gtm_thread::gtm_thread): Update shared_state access.
1498         (gtm_thread::trycommit): Likewise.
1499         (choose_code_path): Update global_tid access.
1500         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1501         * stmlock.h (GTM::gtm_clock): Use atomic template.
1502         (gtm_get_clock, gtm_inc_clock): Update accesses.
1503         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1504         redundant __sync_synchronize after atomic shared_state access.
1505         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1506         (gtm_rwlock::write_lock_generic): Likewise.
1507         (gtm_rwlock::read_unlock): Likewise.
1508         * config/alpha/target.h (atomic_read_barrier): Remove.
1509         (atomic_write_barrier): Remove.
1510         * config/x86/target.h (atomic_read_barrier): Remove.
1511         (atomic_write_barrier): Remove.
1513 2011-11-30  Richard Henderson  <rth@redhat.com>
1515         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1516         * beginend.c (_ITM_abortTransaction): Update to match.
1517         (GTM::gtm_thread::restart): Likewise.
1518         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1519         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1521 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1523         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1524         * Makefile.in: Regenerate.
1526 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1528         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1529         * alloc_cpp.cc: Generate dummy functions if we don't
1530         HAVE_ELF_STYLE_WEAKREF.
1531         * eh_cpp.cc: Likewise.
1532         * configure: Regenerate.
1533         * aclocal.m4:  Likewise.
1534         * config.h.in: Likewise.
1535         * Makefile.in: Likewise.
1536         * testsuite/Makefile.in: Likewise.
1538 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1540         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1541         __USER_LABEL_PREFIX__ for targets that use it.
1542         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1543         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1544         in portability to non-elf targets.
1545         (GTM_longjmp): Likewise.
1546         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1547         where required.
1549 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1551         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1552         * testsuite/libitm.c/memset-1.c: Likewise.
1554 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1556         * configure: Regenerate.
1558 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1560         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1561         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1562         * Makefile.am: Handle sun style versioning.
1563         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1564         * configure: Regenerate.
1565         * Makefile.in: Regenerate.
1567 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1569         * config/generic/asmcfi.h: Fix comment.
1570         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1571         sequence without .hidden support, error for non-ELF targets.
1572         (GTM_longjmp) [__ELF__]: Only use .hidden if
1573         HAVE_ATTRIBUTE_VISIBILITY.
1575 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1577         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1578         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1579         Dummy functions.
1580         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1581         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1583 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1585         PR bootstrap/51098
1586         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1587         * configure: Regenerate.
1589 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1591         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1593 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1595         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1596         .hidden.
1597         (.note.GNU-stack): Only use if __linux__.
1598         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1599         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1600         * testsuite/libitm.c/reentrant.c: Likewise.
1601         * testsuite/libitm.c/simple-2.c: Likewise.
1602         * testsuite/libitm.c/txrelease.c: Likewise.
1603         * testsuite/libitm.c++/static_ctor.C: Likewise.
1605 2011-11-10  Richard Henderson  <rth@redhat.com>
1607         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1608         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1609         * configure.ac (ARCH_X86_AVX): New conditional.
1610         * Makefile.in, configure: Rebuild.
1612 2011-11-09  Richard Henderson  <rth@redhat.com>
1614         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1615         * configure.ac: Use it.
1616         * config.h.in, configure: Rebuild.
1617         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1619 2011-11-09  Richard Henderson  <rth@redhat.com>
1621         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1622         * config/alpha/unaligned.h: Remove file.
1623         * config/generic/unaligned.h: Remove file.
1624         * config/x86/unaligned.h: Remove file.
1625         * config/generic/cachepage.h: Remove file.
1626         * config/posix/cachepage.cc: Remove file.
1627         * config/generic/cacheline.cc: Remove file.
1628         * config/x86/cacheline.cc: Remove file.
1629         * config/generic/cacheline.h (gtm_cacheline): Remove the
1630         store_mask, copy_mask, copy_mask_wb methods.
1631         * config/x86/cacheline.h: Likewise.
1632         * config/alpha/cacheline.h: Fall back to generic after setting size.
1633         * config/generic/tls.cc (gtm_mask_stack): Remove.
1634         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1635         (GTM_vpalignr_table): Remove.
1636         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1637         (GTM_pshift_table): Remove.
1638         * config/libitm_i.h: Don't include cachepage.h.
1639         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1640         * Makefile.in, testsuite/Makefile.in: Rebuild.
1642 2011-11-09  Richard Henderson  <rth@redhat.com>
1644         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1645         to emit branch prediction hint.
1647         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1648         Protect .note.GNU-stack with __linux__.
1650         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1651         * configure, aclocal.m4, config.h.in: Rebuild.
1652         * config/generic/asmcfi.h: New file.
1653         * config/x86/sjlj.S: Use it.
1655 2011-11-08  Richard Henderson  <rth@redhat.com>
1657         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1659 2011-11-08  Richard Henderson  <rth@redhat.com>
1661         * configure.tgt: Test correct directory for supported cpus.
1663         * configure.ac: Exit if unsupported.
1664         * configure: Rebuild.
1665         * configure.tgt: Delete boilerplate from libgomp for unsupported
1666         targets.  Set UNSUPPORTED for unsupported targets.
1668 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1670         * configure.tgt: Handle i386 like i[456]86.
1671         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1672         take address.
1673         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1674         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1676 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1678         * method-wbetl.cc: Update copyright notice.
1679         * aatree.cc: Same.
1680         * util.cc: Same.
1681         * libitm.h: Same.
1682         * memset.cc: Same.
1683         * eh_cpp.cc: Same.
1684         * barrier.tpl: Same.
1685         * useraction.cc: Same.
1686         * stmlock.h: Same.
1687         * memcpy.cc: Same.
1688         * common.h: Same.
1689         * config/generic/tls.cc: Same.
1690         * config/generic/cacheline.h: Same.
1691         * config/generic/cachepage.h: Same.
1692         * config/generic/cacheline.cc: Same.
1693         * config/generic/unaligned.h: Same.
1694         * config/x86/cacheline.h: Same.
1695         * config/x86/cacheline.cc: Same.
1696         * config/x86/unaligned.h: Same.
1697         * config/alpha/cacheline.h: Same.
1698         * config/alpha/unaligned.h: Same.
1699         * config/alpha/sjlj.S: Same.
1700         * config/posix/cachepage.cc: Same.
1701         * config/linux/futex.h: Same.
1702         * config/linux/alpha/futex_bits.h: Same.
1704 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1706         * libitm.texi: No cover text and invariant sections.
1708 2011-11-03  Richard Henderson  <rth@redhat.com>
1710         * local_type_traits: New file.
1711         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1713 2011-11-03  Richard Henderson  <rth@redhat.com>
1715         * configure.ac: Don't test for gfortran.
1716         * configure: Rebuild.
1718         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1719         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1721 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1723         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1724         * testsuite/libitm.c/memset-1.c: Same.
1725         * testsuite/libitm.c/c.exp: Same.
1726         * testsuite/lib/libitm-dg.exp: Same.
1727         * testsuite/lib/libitm.exp: Same.
1728         * testsuite/libitm.c++/c++.exp: Same.
1730 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1732         * testsuite/config/default.exp: Update copyright date.
1733         * configure.ac: Add copyright info.
1734         * configure.tgt: Same.
1736 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1738         * testsuite/libitm.c/reentrant.c: XFAIL.
1739         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1741 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1743         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1744         handle aborts.
1745         (_ITM_abortTransaction): Handle aborts of outer transactions.
1746         * libitm_i.h: Same.
1747         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1748         * libitm.texi: Document aborts of outer transactions.
1749         * testsuite/libitm.c/cancel.c: New file.
1751 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1753         * testsuite/*: Change __transaction to __transaction_atomic or
1754         __transaction_relaxed.
1756 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1758         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1759         (gtm_thr): Same.
1761 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1763         * libitm_i.h: Add gl_wt dispatch.
1764         * retry.cc (parse_default_method): Same.
1765         * method-gl.cc: New file.
1766         * Makefile.am: Use method-gl.cc.
1767         * Makefile.in: Rebuild.
1769 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1771         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1772         safety if requested by a TM method.
1773         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1774         privatization safety.
1775         * method-serial.cc: Same.
1777 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1779         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1780         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1781         undolog-related member functions from *_local to *_undolog.
1782         * local.cc (gtm_thread::commit_undolog): Same.
1783         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1784         (GTM::gtm_thread::rollback): Roll back undolog before
1785         dispatch-specific rollback.
1787 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1789         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1790         re-initialization of the current method group.
1791         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1793 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1795         * alloc.cc (commit_allocations_2): Do not free transaction-local
1796         memory when committing a nested transaction.
1798 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1800         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1801         serial-irrevocable dispatch, not serial.
1803 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1805         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1806         declarations.
1807         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1808         * method-serial.cc: Implement begin_or_restart().
1809         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1810         dispatch-specific begin_or_restart().
1811         (GTM::gtm_thread::restart): Same.
1813 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1815         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1816         restarting without switching to serial mode.
1817         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1818         transaction state. Choose closed-nesting alternative if available.
1819         (GTM::gtm_thread::set_default_dispatch): New.
1820         (parse_default_method): New.
1821         (GTM::gtm_thread::number_of_threads_changed): New.
1822         * method-serial.cc (GTM::serial_mg): New method group class.
1823         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1824         fini.
1825         (GTM::serial_dispatch): Same.
1826         (GTM::serialirr_onwrite_dispatch): Same.
1827         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1828         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1829         registered threads.
1830         (GTM::gtm_thread::gtm_thread): Same.
1831         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1832         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1833         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1834         choose dispatch but set state according to dispatch here.
1835         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1836         (GTM::method_group): New class.
1837         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1838         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1839         * libitm.texi: Document TM methods, method groups, method life cycle.
1840         Rename method sets to method groups.
1842 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1844         * config/x86/tls.h: Moved to ...
1845         * config/linux/x86/tls.h: ... here.
1847 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1849         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1850         Add X32 support.
1851         * config/x86/sjlj.S: Same.
1853 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1855         * config/linux/rwlock.h: New file.
1856         * config/linux/rwlock.c: New file.
1857         * configure.ac: Reenable futex support (undo SVN rev 157758).
1858         * Makefile.am: Same.
1859         * configure.tgt: Same.
1860         * config/linux/alpha/futex_bits.h: Same.
1861         * config/linux/futex.h: Same. Return number of woken processes.
1862         * config/linux/futex.cc: Same.
1863         (futex_wait): Remove spinning.
1864         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1865         Use __x86_64__ instead of __LP64__.
1866         * aclocal.m4: Include generic futex checks.
1867         * configure: Rebuild.
1868         * Makefile.in: Rebuild.
1869         * testsuite/Makefile.in: Rebuild.
1870         * beginend.cc: Include pthread.h.
1871         * config/posix/cachepage.cc: Same.
1873 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1875         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1876         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1877         (set_gtm_thr): New.
1878         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1879         (set_gtm_thr): New.
1880         (GTM::gtm_thread::thread_num): Removed.
1881         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1882         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1883         tx-to-thread renaming.
1884         * beginend.cc: Adapted to tx-to-thread renaming.
1885         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1886         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1887         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1888         gtm_transaction to gtm_thread.
1889         (_ITM_getThreadnum): Removed. Not supported anymore.
1890         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1891         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1892         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1893         gtm_tx-to-gtm_thr renaming if necessary.
1894         * eh_cpp.cc: Same.
1895         * local.cc: Same.
1896         * retry.cc: Same.
1897         * clone.cc: Same.
1898         * alloc.cc: Same.
1899         * alloc_c.cc: Same.
1900         * alloc_cpp.cc: Same.
1901         * method-serial.cc: Same.
1902         * config/generic/tls.cc: Same.
1903         * config/posix/rwlock.h (gtm_rwlock): Same.
1904         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1906 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1908         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1909         implementation.
1910         (gtm_rwlock::read_unlock): Same.
1911         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1912         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1913         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1914         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1915         w_upgrade. Replaced by per-transaction flags (in shared_state).
1916         Added c_confirmed_writers.
1917         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1918         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1919         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1920         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1921         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1922         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1923         * libitm.texi: Document locking conventions and implementations in
1924         libitm.
1926 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1928         * libitm_i.h (next_tx): Add list of all threads' transaction.
1929         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1930         transaction with list of transactions and ...
1931         (thread_exit_handler): ... deregister here.
1932         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1933         * config/x86/target.h: Same.
1935 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1937         * testsuite/libitm.c++/static_ctor.C: New file.
1939 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1941         * testsuite/libitm.c/reentrant.c: New file.
1943 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1945         * config/generic/tls.h: Remove the free list for transactions and ...
1946         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1947         (GTM::gtm_transaction::operator delete): ... and release here.
1948         (thread_exit_handler): New. Delete tx when thread terminates.
1949         (thread_exit_init): New.
1950         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1951         * testsuite/libitm.c/txrelease.c: New file.
1953 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1955         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1956         * testsuite/libitm.c/notx.c: New file.
1958 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1960         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1961         * libitm_i.h (local_tid): ... to here.
1962         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1963         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1965 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1967         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1968         serialirr_onwrite_dispatch as new default for now.
1969         * method-serial.cc (serialirr_onwrite_dispatch): New.
1970         (GTM::dispatch_serialirr_onwrite): New.
1971         * libitm_i.h: Same.
1973 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1975         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1976         * query.cc (_ITM_getTransactionId): There is no active transaction if
1977         the current nesting level is zero.
1979 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1981         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1982         rollback.
1984 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1986         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1987         transaction properties from the caller instead of from the
1988         transaction object.
1989         * libitm_i.h: Same.
1990         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1992 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1994         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1995         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1996         * dispatch.h: Same.
1997         * method-serial.cc: Same.
1998         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1999         flat nesting as default, and closed nesting on demand.
2000         (GTM::gtm_transaction::rollback): Same.
2001         (_ITM_abortTransaction): Same.
2002         (GTM::gtm_transaction::restart): Same.
2003         (GTM::gtm_transaction::trycommit): Same.
2004         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2005         (choose_code_path): New.
2006         (GTM::gtm_transaction_cp::save): New.
2007         (GTM::gtm_transaction_cp::commit): New.
2008         * query.cc (_ITM_inTransaction): Support flat nesting.
2009         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2010         (GTM::gtm_transaction): Support flat and closed nesting.
2011         * alloc.cc (commit_allocations_2): New.
2012         (commit_cb_data): New helper struct.
2013         (GTM::gtm_transaction::commit_allocations): Handle nested
2014         commits/rollbacks.
2015         * libitm.texi: Update user action section, add description of nesting.
2017 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2019         * libitm_i.h: Add closed nesting as restart reason.
2020         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2022 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2024         * useraction.cc: Use vector instead of list to store actions.
2025         Also support partial rollbacks for closed nesting.
2026         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2027         * beginend.cc: Same.
2029 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2031         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2032         closed_nesting flags, as well as a closed nesting alternative.
2033         * method-serial.cc: Same.
2034         (serial_dispatch): Renamed to serialirr_dispatch.
2035         (GTM::dispatch_serialirr): Same.
2036         (serial_dispatch_ul): Renamed to serial_dispatch.
2037         (GTM::dispatch_serial): Same.
2039 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2041         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2043 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2045         * aatree.h (aa_tree::remove): New.
2046         (aa_tree::operator new): Add placement new.
2048 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2050         * containers.h: New file.
2051         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2052         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2053         * common.h: ... to here.
2054         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2055         * local.cc: Same.
2057 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2059         * libitm_i.h (STATE_ABORTING): Remove.
2060         * beginend.cc (_ITM_abortTransaction): Same.
2061         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2062         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2063         (_ITM_rollbackTransaction): Remove.
2064         * beginend.cc: Same.
2065         * libitm.map: Same.
2066         * libitm.texi: Document these ABI changes.
2068 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2070         * libitm.texi: New file.
2071         * Makefile.am: Add libitm.texi.
2072         * Makefile.in: Rebuild.
2074 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2076         * libitm_i.h: Move parts to common.h and dispatch.h.
2077         * common.h: New file.
2078         * dispatch.h: New file, new dispatch class.
2079         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2080         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2081         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2082         decision to retry.cc.
2083         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2084         only.
2085         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2086         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2087         logging.
2088         * barrier.cc: Use new barriers definitions.
2089         (abi_dispatch::memmove_overlap_check): New.
2090         * config/x86/x86_sse.cc: Same.
2091         * config/x86/x86_avx.cc: Same.
2092         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2093         memcpy.cc.
2094         * Makefile.in: Rebuild.
2095         * method-readonly.cc: Remove.
2096         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2097         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2099 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2101         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2102         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2103         * testsuite/libitm.c/dropref-2.c: Same.
2104         * testsuite/libitm.c/dropref.c: Same.
2106 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2108         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2109         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2110         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2111         * alloc_c.cc: Same.
2112         * barrier.tpl: Same.
2113         * beginend.c: Same.
2114         * config/generic/tls.h: Same.
2115         * config/x86/tls.h: Same.
2116         * libitm_i.h: Same.
2117         * memcpy.cc: Same.
2118         * memset.cc: Same.
2119         * method-readonly.cc: Same.
2120         * method-serial.cc: Same.
2121         * method-wbetl.cc: Same.
2122         * retry.cc: Same.
2124 2011-03-03  Richard Henderson  <rth@redhat.com>
2126         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2127         From Patrik Marlier <patrick.marlier@unine.ch>.
2129 2011-02-03  Richard Henderson  <rth@redhat.com>
2131         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2132         * configure.ac: Use it.
2133         * configure, config.h.in: Rebuild.
2134         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2135         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2136         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2137         * libitm.map: Use wildcards to match size_t mangling.
2139 2010-12-14  Richard Henderson  <rth@redhat.com>
2141         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2142         blocks of TIDs per thread.
2143         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2144         (setup_gtm_thr): Return the thread structure.
2145         * config/x86/tls.h (setup_gtm_thr): Likewise.
2147 2010-12-14  Richard Henderson  <rth@redhat.com>
2149         * clone.cc (table_lock): Remove.
2150         (find_clone): Don't take it.
2151         (ExcludeTransaction): New helper class.
2152         (_ITM_registerTMCloneTable): Use it.
2153         (_ITM_deregisterTMCloneTable): Likewise.
2155 2010-12-14  Richard Henderson  <rth@redhat.com>
2157         * config/x86/tls.h: New file.
2159 2010-07-15  Richard Henderson  <rth@redhat.com>
2161         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2162         * Makefile.in: Rebuild.
2164 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2166         * method-wbetl.cc (trydropreference): Fix source line.
2168 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2170         * libitm.h: Add comment.
2171         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2173 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2175         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2176         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2177         available, use pthread mutexes.
2178         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2179         * config.h.in: Regenerate.
2180         * configure: Regenerate.
2182 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2184         * libitm.h (ITM_PURE): Define.
2185         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2187 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2189         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2190         (validate): Add comment.
2191         (trydropreference): New.
2192         * method-readonly.cc (class readonly_dispatch): Add
2193         trydropreference.
2194         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2195         Call trydropreference().
2196         * libitm.h (_ITM_dropReferences): Remove const attribute.
2197         * method-serial.cc (class serial_dispatch): Add trydropreference.
2198         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2200 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2202         * memcpy.cc (do_memcpy): Comment.
2204 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2206         * barrier.tpl: Add comments throughout.
2208 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2210         * method-wbetl.cc (struct w_entry): Add comments.
2211         (trycommit): Same.
2212         (rollback): Same.
2214 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2216         * alloc_c.cc (_ITM_dropReferences): New.
2217         * libitm.map (_ITM_dropReferences): Add.
2218         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2219         * libitm_i.h (struct gtm_transaction): Declare
2220         drop_references_allocations and drop_references_local.
2221         * local.cc (rollback_local): Ignore memory when applicable.
2222         (drop_references_local): New.
2224 2010-06-23  Richard Henderson  <rth@redhat.com>
2226         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2227         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2228         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2229         * config/alpha/target.h: Likewise.
2230         * config/generic/tls.cc (gtm_mask_stack): Use it.
2232 2010-06-23  Richard Henderson  <rth@redhat.com>
2234         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2235         a mutex instead of trying a lock-free compare-and-swap on the list.
2236         (gtm_cacheline_page::operator delete): Likewise.
2238 2010-06-16  Richard Henderson  <rth@redhat.com>
2240         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2241         that overlap the libitm stack.
2242         * barrier.tpl: Mark incoming stack.
2243         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2244         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2245         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2246         * memcpy.cc, memset.cc: Likewise.
2247         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2248         * config/generic/tls.h (gtm_thread): Add stack_top member.
2249         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2250         * libitm_i.h (gtm_mask_stack): Declare.
2251         * config/generic/tls.cc: New file.
2252         * Makefile.am (libitm_la_SOURCES): Add it.
2253         (AM_CXXFLAGS): Turn off exceptions.
2254         * Makefile.in: Rebuild.
2256 2010-06-16  Richard Henderson  <rth@redhat.com>
2258         * alloc.cc (struct gtm_alloc_action): Move definition ...
2259         * libitm_i.h: ... here.
2260         (class gtm_transaction): Declare new and delete.
2261         * beginend.cc (alloc_tx): Reformulate as operator new.
2262         (free_tx): Reformulate as operator delete.
2263         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2265 2010-06-11  Richard Henderson  <rth@redhat.com>
2267         * clone.cc (clone_entry_compare): Fix typo.
2268         From Patrik Marlier <patrick.marlier@unine.ch>.
2270 2010-05-13  Richard Henderson  <rth@redhat.com>
2272         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2273         in extern "C".
2275 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2277         * libitm_i.h (struct gtm_transaction): Remove
2278         get_allocation_size.
2279         (record_allocation): Remove size parameter.
2280         * libitm.map (_ITM_realloc): Remove.
2281         * alloc_c.cc (_ITM_realloc): Remove.
2282         (_ITM_malloc): Remove size argument to record_allocation.
2283         (_ITM_calloc): Same.
2284         * alloc_cpp.cc (_ZGTtnwm): Same.
2285         (_ZGTtnwmRKSt9nothrow_t): Same.
2286         (_ZGTtnam): Same.
2287         (_ZGTtnamRKSt9nothrow_t): Same.
2288         * alloc.cc (struct gtm_alloc_action): Remove size.
2289         (get_allocation_size): Remove.
2290         (commit_allocations): Add comment.
2291         (record_allocation): Remove size parameter.
2292         (forget_allocation): Remove set of size.
2294 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2296         * Makefile.am (abi_version): New.
2297         (AM_CXXFLAGS): Pass abi_version.
2298         * Makefile.in: Regenerate.
2299         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2301 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2303         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2304         _ITM_getTMCloneOrIrrevokable.
2305         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2306         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2308 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2310         * configure.ac: Remove Linux futex support.
2311         * configure.tgt (config_path): Same.
2312         * Makefile.am: Same.
2313         * config/linux: Remove entire directory.
2314         * configure: Rebuild.
2315         * Makefile.in: Rebuild.
2316         * testsuite/Makefile.in: Rebuild.
2318 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2320         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2321         switching to serial mode.
2322         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2324 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2326         * configure.tgt: Add emacs -*- tags.
2327         * barrier.tpl: Same.
2329 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2331         * Makefile.am: Rename serial.cc to method-serial.cc.
2332         * Makefile.in: Regenerate with automake 1.11.1.
2333         * testsuite/Makefile.in: Same.
2334         * aclocal.m4: Regenerate with aclocal 1.11.1.
2335         * method-serial.cc: Rename from serial.cc.
2336         * libitm_i.h (struct gtm_transaction): Update comment on
2337         serialirr_mode.
2339 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2341         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2342         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2344 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2346         * configure: Rebuild.
2348 2009-11-12  Richard Henderson  <rth@redhat.com>
2350         * Rewrite everything in C++.
2352 2009-11-03  Richard Henderson  <rth@redhat.com>
2354         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2355         * Makefile.am (libitm_la_SOURCES): Add them.
2356         * configure.ac (ARCH_X86): New conditional.
2357         * Makefile.in, configure: Rebuild.
2358         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2359         Move futex setup into "other system configury" case.
2360         * local.c (rollback_local): Merge into ...
2361         (GTM_rollback_local): ... here.
2362         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2363         (_ITM_LB): Define as an alias to GTM_LB.
2365 2009-11-03  Richard Henderson  <rth@redhat.com>
2367         * method-readonly.c: New file.
2368         * Makefile.am (libitm_la_SOURCES): Add it.
2369         * Makefile.in: Rebuild.
2370         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2371         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2372         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2373         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2374         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2375         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2376         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2377         gtm_get_clock, gtm_inc_clock): New.
2378         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2379         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2380         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2381         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2382         replace uses with new libitm_i.h symbols.
2383         (dispatch_wbetl): Rename from wbetl_dispatch.
2384         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2385         away from dispatch_readonly; abort if the beginTransaction call
2386         asserted that the transaction was readonly.
2388 2009-11-03  Richard Henderson  <rth@redhat.com>
2390         * memset.c: New file.
2391         * Makefile.am (libitm_la_SOURCES): Add it.
2392         * Makefile.in: Rebuild.
2393         * testsuite/libitm.c/memset-1.c: New.
2395 2009-11-03  Richard Henderson  <rth@redhat.com>
2397         * dispatch.c: Remove file.
2398         * useraction.c (struct gtm_user_action): Move from libitm.h.
2399         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2400         (serial_memset, serial_memmove, serial_memcpy): Remove.
2401         (serial_W*, serial_R*): Remove.
2402         (serial_dispatch): Update to match.
2403         * configure.ac: Move Werror down below configure checks.  Don't
2404         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2405         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2406         Use GCC_AC_FUNC_MMAP_BLACKLIST
2407         * libitm.h: Split out all internal items to...
2408         * libitm_i.h: ... here.  New file.
2409         * copymask.c: New file.
2410         * local.c (struct gtm_local_undo): Move from libitm.h.
2411         (GTM_alloc_local): Rename from alloc_local; export.
2412         * memcpy.c: New file.
2413         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2414         * config/posix/page.c: New file.
2415         * config/posix/target_tls.h: Remove file.
2416         * barrier.c: New file.
2417         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2418         copymask.c, page.c.
2419         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2420         * method-wbetl.c: Rewrite for new cacheline methods.
2421         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2423         * config/alpha/sjlj.S: Fix typo.
2424         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2425         * config/alpha/copymask.c: New file.
2426         * config/alpha/target.h (CACHELINE_SIZE): New.
2427         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2429         * config/x86/target_i.h: Copy functions from x86/target.h.
2430         * config/x86/copymask.c: New file.
2431         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2432         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2433         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2434         * config/x86/target_tls.h: Move contents to target_i.h.
2436         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2437         * testsuite/libitm.c/memcpy-1.c: New.
2439 2009-10-22  Richard Henderson  <rth@redhat.com>
2441         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2442         (AM_CCASFLAGS): New.
2443         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2444         saving/restoring _AC_ARG_VAR_PRECIOUS.
2445         * Makefile.in, aclocal.m4, config.h.in, configure,
2446         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2448 2009-10-22  Richard Henderson  <rth@redhat.com>
2450         * testsuite/*: Update for new compiler syntax.
2452 2009-10-21  Richard Henderson  <rth@redhat.com>
2454         * libitm.h (_ITM_abortReason): Add outerAbort.
2456 2009-08-03  Richard Henderson  <rth@redhat.com>
2458         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2459         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2460         * method-wbetl.c (struct w_entry): Remove mask.
2461         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2462         adjust all callers.
2464 2009-07-22  Richard Henderson  <rth@redhat.com>
2466         * eh_cpp.c: New file.
2467         * Makefile.am (libitm_la_SOURCES): Add it.
2468         * Makefile.in: Rebuild.
2469         * beginend.c (GTM_rollback_transaction): Undo exception state.
2470         (GTM_trycommit_transaction): Mark inline.
2471         (GTM_trycommit_and_finalize_transaction): Split out from ...
2472         (_ITM_commitTransaction): ... here.
2473         (_ITM_commitTransactionEH): New function.
2474         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2475         cxa_unthrown, eh_in_flight; reorder.
2477         * testsuite/libitm.c++/c++.exp: New.
2478         * testsuite/libitm.c++/eh-1.C: New.
2480         * aatree.c (aa_free): Remove REGPARM.
2481         * aatree.h: Remove all REGPARM.
2483 2009-07-18  Richard Henderson  <rth@redhat.com>
2485         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2486         * Makefile.am (libitm_la_SOURCES): Add them.
2487         * Makefile.in: Rebuild.
2488         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2489         (GTM_trycommit_transaction): Likewise.
2490         * libitm.h: Include aatree.h
2491         (struct gtm_alloc_action): New.
2492         (struct gtm_transaction): Add alloc_actions.
2493         (GTM_record_allocation, GTM_forget_allocation): Declare.
2494         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2495         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2496         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2497         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2498         _ZGTtdaPvRKSt9nothrow_t): Export.
2500 2009-07-18  Richard Henderson  <rth@redhat.com>
2502         * target_tls.h: Move ...
2503         * config/posix/target_tls.h: ... here.
2505 2009-07-07  Richard Henderson  <rth@redhat.com>
2507         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2509 2009-07-07  Richard Henderson  <rth@redhat.com>
2511         * Update to GPL3.
2513 2009-07-07  Richard Henderson  <rth@redhat.com>
2515         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2516         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2518         * configure.tgt: Don't use -ftls-model for x86 linux.
2519         * libitm.h: Include target.h after standard includes.
2520         (_gtm_thr): Rename from gtm_thr.
2521         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2522         (gtm_disp, set_gtm_disp): New.
2523         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2524         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2525         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2527 2009-07-07  Richard Henderson  <rth@redhat.com>
2529         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2531 2009-07-06  Richard Henderson  <rth@redhat.com>
2533         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2534         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2535         (_ITM_beginTransaction): Take variadic arguments.
2536         (_ITM_registerThrownObject): Declare.
2537         * beginend.c, serial.c: Update.
2538         * libitm.map: Add _ITM_registerThrownObject.
2540 2009-01-28  Richard Henderson  <rth@redhat.com>
2542         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2543         * Makefile.in: Rebuild.
2544         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2545         (GTM_restart_transaction): Fix uninstrumented code check.
2546         * retry.c (GTM_decide_retry_strategy): Add serial check.
2547         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2548         automatically go irrevokable when in serial mode.
2549         * clone.c: New file.
2550         * libitm.h, libitm.map: Update.
2552 2009-01-27  Richard Henderson  <rth@redhat.com>
2554         * Makefile.am (LTCCASCOMPILE): Define.
2555         (libitm_la_SOURCES): Add methid-wbetl.c.
2556         * testsuite/Makefile.am: New
2557         * configure.ac: Add testsuite/Makefile.
2558         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2559         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2560         (_ITM_abortTransaction): Finalize implementation method; pass
2561         transaction properties to longjmp.
2562         (GTM_restart_transaction): Split out from ...
2563         (_ITM_commitTransaction): ... here.
2564         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2565         Move to config/x86/target.h.
2566         * config/linux/alpha/futex_bits.h: New.
2567         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2568         * config/x86/target.h: Disable target types for 32-bit.
2569         * config/alpha/sjlj.S, config/alpha/target.h: New.
2570         * libitm.h (struct gtm_dispatch): Add init, fini.
2571         (enum restart_reason): New.
2572         (struct gtm_transaction): Add method and restarts.
2573         * retry.c (GTM_decide_retry_strategy): Implement.
2574         * serial.c (serial_init, serial_fini): New.
2575         (GTM_serialmode): Finialize outgoing method.
2576         * method-wbetl.c: New.
2578 2008-12-09  Richard Henderson  <rth@redhat.com>
2580         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2581         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2582         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2583         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2584         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2585         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2586         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2587         * serial.c (serial_R##T, serial_W##T): Likewise.
2589 2008-11-21  Richard Henderson  <rth@redhat.com>
2591         * Initial commit.
2593 Copyright (C) 2008-2023 Free Software Foundation, Inc.
2595 Copying and distribution of this file, with or without modification,
2596 are permitted in any medium without royalty provided the copyright
2597 notice and this notice are preserved.