Daily bump.
[official-gcc.git] / libitm / ChangeLog
blobde97a7ae38d59db2eb82ee48cf4787c73e37c639
1 2024-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         * Makefile.am [LIBITM_BUILD_VERSIONED_SHLIB_SUN] (libitm.map-sun):
4         Pass $(libitm_la_OBJECTS), $(libitm_la_LIBADD) to make_sunver.pl
5         unmodified.
6         * Makefile.in: Regenerate.
8 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
10         * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
11         words in comment; not not -> not to.
13 2024-02-05  Marek Polacek  <polacek@redhat.com>
15         * containers.h (vector): Remove the template-id in constructors.
17 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
19         * libitm.texi: Bump @copying's copyright year.
21 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
23         * testsuite/lib/libitm.exp: Likewise.
24         * testsuite/libitm.c++/c++.exp: Likewise.
26 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
28         * Makefile.am: Handle Darwin rpaths.
29         * Makefile.in: Regenerate.
30         * configure: Regenerate.
31         * configure.ac: Handle Darwin rpaths.
33 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
35         * configure: Regenerate.
37 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
39         * configure: Regenerate.
41 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
43         * configure: Regenerate.
45 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
47         * configure: Regenerate.
49 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
51         * configure: Regenerate.
53 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
55         * configure: Regenerate.
57 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
59         * configure.ac (PERL): Remove.
60         * configure: Regenerate.
61         * Makefile.in: Likewise.
62         * testsuite/Makefile.in: Likewise.
64 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
66         * libitm.texi: Bump @copying's copyright year.
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: New file.
74         * doc/conf.py: New file.
75         * doc/copyright.rst: New file.
76         * doc/enabling-libitm.rst: New file.
77         * doc/gnu-free-documentation-license.rst: New file.
78         * doc/index.rst: New file.
79         * doc/indices-and-tables.rst: New file.
80         * doc/internals.rst: New file.
81         * doc/locking-conventions.rst: New file.
82         * doc/nesting-flat-vs-closed.rst: New file.
83         * doc/the-libitm-abi.rst: New file.
84         * doc/the-libitm-abi/function-list.rst: New file.
85         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
86         * doc/the-libitm-abi/library-design-principles.rst: New file.
87         * doc/the-libitm-abi/memory-model.rst: New file.
88         * doc/the-libitm-abi/non-objectives.rst: New file.
89         * doc/the-libitm-abi/objectives.rst: New file.
90         * doc/the-libitm-abi/sample-code.rst: New file.
91         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
92         * doc/tm-methods-and-method-groups.rst: New file.
94 2022-11-14  Martin Liska  <mliska@suse.cz>
96         Revert:
97         2022-11-14  Martin Liska  <mliska@suse.cz>
99         * Makefile.in: Support Sphinx based documentation.
101 2022-11-14  Martin Liska  <mliska@suse.cz>
103         Revert:
104         2022-11-14  Martin Liska  <mliska@suse.cz>
106         * libitm.texi: Removed.
108 2022-11-14  Martin Liska  <mliska@suse.cz>
110         Revert:
111         2022-11-14  Martin Liska  <mliska@suse.cz>
113         * Makefile.in: Support --with-sphinx-build.
114         * configure.ac: Likewise.
115         * configure: Regenerate.
117 2022-11-14  Martin Liska  <mliska@suse.cz>
119         Revert:
120         2022-11-14  Martin Liska  <mliska@suse.cz>
122         * Makefile.in: Build info pages conditionally.
124 2022-11-14  Martin Liska  <mliska@suse.cz>
126         Revert:
127         2022-11-14  Martin Liska  <mliska@suse.cz>
129         * doc/c-c++-language-constructs-for-tm.rst:
130         Add trailing newline.
131         * doc/copyright.rst:
132         Add trailing newline.
133         * doc/enabling-libitm.rst:
134         Add trailing newline.
135         * doc/gnu-free-documentation-license.rst:
136         Add trailing newline.
137         * doc/index.rst:
138         Add trailing newline.
139         * doc/indices-and-tables.rst:
140         Add trailing newline.
141         * doc/internals.rst:
142         Add trailing newline.
143         * doc/locking-conventions.rst:
144         Add trailing newline.
145         * doc/nesting-flat-vs-closed.rst:
146         Add trailing newline.
147         * doc/the-libitm-abi.rst:
148         Add trailing newline.
149         * doc/the-libitm-abi/function-list.rst:
150         Add trailing newline.
151         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
152         Add trailing newline.
153         * doc/the-libitm-abi/library-design-principles.rst:
154         Add trailing newline.
155         * doc/the-libitm-abi/memory-model.rst:
156         Add trailing newline.
157         * doc/the-libitm-abi/non-objectives.rst:
158         Add trailing newline.
159         * doc/the-libitm-abi/objectives.rst:
160         Add trailing newline.
161         * doc/the-libitm-abi/sample-code.rst:
162         Add trailing newline.
163         * doc/the-libitm-abi/types-and-macros-list.rst:
164         Add trailing newline.
165         * doc/tm-methods-and-method-groups.rst:
166         Add trailing newline.
168 2022-11-14  Martin Liska  <mliska@suse.cz>
170         Revert:
171         2022-11-14  Martin Liska  <mliska@suse.cz>
173         * Makefile.in: Add missing HAS_SPHINX_BUILD.
175 2022-11-14  Martin Liska  <mliska@suse.cz>
177         Revert:
178         2022-11-14  Martin Liska  <mliska@suse.cz>
180         * doc/conf.py: Add newline at last line.
182 2022-11-14  Martin Liska  <mliska@suse.cz>
184         Revert:
185         2022-11-14  Martin Liska  <mliska@suse.cz>
187         PR other/107620
188         * configure: Regenerate.
189         * configure.ac: Always set sphinx-build.
191 2022-11-13  Martin Liska  <mliska@suse.cz>
193         PR other/107620
194         * configure: Regenerate.
195         * configure.ac: Always set sphinx-build.
197 2022-11-10  Martin Liska  <mliska@suse.cz>
199         * doc/conf.py: Add newline at last line.
201 2022-11-09  Martin Liska  <mliska@suse.cz>
203         * Makefile.in: Add missing HAS_SPHINX_BUILD.
205 2022-11-09  Martin Liska  <mliska@suse.cz>
207         * doc/c-c++-language-constructs-for-tm.rst:
208         Add trailing newline.
209         * doc/copyright.rst:
210         Add trailing newline.
211         * doc/enabling-libitm.rst:
212         Add trailing newline.
213         * doc/gnu-free-documentation-license.rst:
214         Add trailing newline.
215         * doc/index.rst:
216         Add trailing newline.
217         * doc/indices-and-tables.rst:
218         Add trailing newline.
219         * doc/internals.rst:
220         Add trailing newline.
221         * doc/locking-conventions.rst:
222         Add trailing newline.
223         * doc/nesting-flat-vs-closed.rst:
224         Add trailing newline.
225         * doc/the-libitm-abi.rst:
226         Add trailing newline.
227         * doc/the-libitm-abi/function-list.rst:
228         Add trailing newline.
229         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
230         Add trailing newline.
231         * doc/the-libitm-abi/library-design-principles.rst:
232         Add trailing newline.
233         * doc/the-libitm-abi/memory-model.rst:
234         Add trailing newline.
235         * doc/the-libitm-abi/non-objectives.rst:
236         Add trailing newline.
237         * doc/the-libitm-abi/objectives.rst:
238         Add trailing newline.
239         * doc/the-libitm-abi/sample-code.rst:
240         Add trailing newline.
241         * doc/the-libitm-abi/types-and-macros-list.rst:
242         Add trailing newline.
243         * doc/tm-methods-and-method-groups.rst:
244         Add trailing newline.
246 2022-11-09  Martin Liska  <mliska@suse.cz>
248         * Makefile.in: Build info pages conditionally.
250 2022-11-09  Martin Liska  <mliska@suse.cz>
252         * Makefile.in: Support --with-sphinx-build.
253         * configure.ac: Likewise.
254         * configure: Regenerate.
256 2022-11-09  Martin Liska  <mliska@suse.cz>
258         * libitm.texi: Removed.
260 2022-11-09  Martin Liska  <mliska@suse.cz>
262         * Makefile.in: Support Sphinx based documentation.
264 2022-11-09  Martin Liska  <mliska@suse.cz>
266         * doc/c-c++-language-constructs-for-tm.rst: New file.
267         * doc/conf.py: New file.
268         * doc/copyright.rst: New file.
269         * doc/enabling-libitm.rst: New file.
270         * doc/gnu-free-documentation-license.rst: New file.
271         * doc/index.rst: New file.
272         * doc/indices-and-tables.rst: New file.
273         * doc/internals.rst: New file.
274         * doc/locking-conventions.rst: New file.
275         * doc/nesting-flat-vs-closed.rst: New file.
276         * doc/the-libitm-abi.rst: New file.
277         * doc/the-libitm-abi/function-list.rst: New file.
278         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
279         * doc/the-libitm-abi/library-design-principles.rst: New file.
280         * doc/the-libitm-abi/memory-model.rst: New file.
281         * doc/the-libitm-abi/non-objectives.rst: New file.
282         * doc/the-libitm-abi/objectives.rst: New file.
283         * doc/the-libitm-abi/sample-code.rst: New file.
284         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
285         * doc/tm-methods-and-method-groups.rst: New file.
287 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
289         * configure.tgt: Add riscv support.
290         * config/riscv/asm.h: New file.
291         * config/riscv/sjlj.S: New file.
292         * config/riscv/target.h: New file.
294 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
296         * config/loongarch/sjlj.S: Add a soft floating point condition to the
297         register recovery part of the code.
299 2022-10-12  Martin Liska  <mliska@suse.cz>
301         * configure: Regenerate.
303 2022-10-11  Olivier Hainque  <hainque@adacore.com>
304             Olivier Hainque  <hainque@adacore.com>
306         * configure: Regenerate.
308 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
309             Yang Yujie  <yangyujie@loongson.cn>
311         * configure.tgt: Add loongarch support.
312         * config/loongarch/asm.h: New file.
313         * config/loongarch/sjlj.S: New file.
314         * config/loongarch/target.h: New file.
316 2022-08-31  Martin Liska  <mliska@suse.cz>
318         * configure: Regenerate.
320 2022-08-31  Martin Liska  <mliska@suse.cz>
322         * configure: Regenerate.
324 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
326         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
328 2022-02-03  David Seifert  <soap@gentoo.org>
329             Jakub Jelinek  <jakub@redhat.com>
331         * configure.ac: Support --disable-werror.
332         * configure: Regenerate.
334 2022-01-31  Martin Liska  <mliska@suse.cz>
336         * acinclude.m4: Detect *_ld_is_mold and use it.
337         * configure: Regenerate.
339 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
341         * libitm.texi: Bump @copying's copyright year.
343 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
345         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
346         target does not support HAVE_ELF_STYLE_WEAKREF then do not
347         try to test the __cxa_get_globals against NULL.
349 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
351         PR libstdc++/91488
352         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
354 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
356         PR target/70454
357         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
358         be added through preprocessor check on
359         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
361 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
363         * configure: Re-generate.
365 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
367         * libitm.texi: Bump @copying's copyright year.
369 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
371         PR target/97865
372         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
373         * configure: Regenerate.
375 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
377         * configure: Regenerate.
379 2020-10-01  Alan Modra  <amodra@gmail.com>
381         * config/powerpc/sjlj.S: Support __PCREL__ code.
383 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
385         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
387 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
389         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
390         and add BTI c to function entries.
392 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
394         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
396 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
398         PR bootstrap/95413
399         * configure: Regenerated.
401 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
403         PR bootstrap/95147
404         * configure: Regenerated.
406 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
408         * configure: Regenerated.
410 2020-05-12  Nathan Sidwell  <nathan@acm.org>
412         Fix throw specifiers on interface.
413         * libitm/libitm.h (_ITM_NOTHROW): Define.
414         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
415         (_ITM_cxa_begin_catch): Use it.
416         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
417         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
418         __cxa_get_globals.
419         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
420         (_ITM_cxa_begin_catch): Likewise.
422 2020-05-05  Nathan Sidwell  <nathan@acm.org>
424         * testsuite/lib/libitm.exp (libitm_init): Add
425         -fdiagnostics-color=never to options.
427 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
429         PR libstdc++/79193
430         PR libstdc++/88999
432         * configure: Regenerated.
434 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
436         * configure.ac: Handle `--with-toolexeclibdir='.
437         * Makefile.in: Regenerate.
438         * aclocal.m4: Regenerate.
439         * configure: Regenerate.
440         * testsuite/Makefile.in: Regenerate.
442 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
444         Update copyright years.
446         * libitm.texi: Bump @copying's copyright year.
448 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
450         PR libgomp/91938
451         * configure.tgt: Avoid IE tls on *-*-musl*.
453 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
455         * configure: Regenerate.
457 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
459         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
461 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
463         * configure.tgt: Handle *-*-uclinux*.
464         * configure: Regenerate.
466 2019-09-06  Florian Weimer  <fweimer@redhat.com>
468         * configure: Regenerate.
470 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
472         PR other/79543
473         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
474         scanning to conform to the GNU Coding Standards.
475         * configure: Regenerate.
477 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
479         * Makefile.am (finclude): Remove.
480         * Makefile.in: Regenerated.
482 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
484         Update copyright years.
486 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
488         * libitm.texi: Bump @copying's copyright year.
490 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
492         PR c++/88482
493         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
494         void * to void (*) (void *).
495         (_ITM_cxa_throw): Likewise.
496         * libitm.h (_ITM_cxa_throw): Likewise.
497         * libitm.texi (_ITM_cxa_throw): Likewise.
499 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
501         * config/powerpc/target.h (htm_available):  Add support for
502         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
504 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
506         PR bootstrap/82856
507         * Makefile.am: Include multilib.am.
508         (AUTOMAKE_OPTIONS): Add info-in-builddir.
509         (CLEANFILES): Remove libitm.info.
510         * configure.ac: Remove AC_PREREQ.
511         * testsuite/Makefile.am (RUNTEST): Remove quotes.
512         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
513         Regenerate.
515 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
517         PR libitm/86293
518         * method-serial.cc: Mark varible as potentially unused
519         to silence warning.
521 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
523         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
524         absolute relocation in a shared library.
526 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
528         PR libitm/85988
529         * config/linux/x86/tls.h (SEG_READ): Use the offset of
530         __private_tm as base.
531         (SEG_WRITE): Likewise.
532         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
533         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
534         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
535         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
536         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
538 2018-05-17  Jason Merrill  <jason@redhat.com>
540         * beginend.cc (save): Disable -Werror=deprecated-copy.
542 2018-05-02  Tom de Vries  <tom@codesourcery.com>
544         PR testsuite/85106
545         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
547 2018-05-02  Tom de Vries  <tom@codesourcery.com>
549         PR testsuite/85106
550         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
552 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
554         * config/x86/sjlj.S (_ITM_beginTransaction): Add
555         (__CET__ & 2) != 0 check for shadow stack.
556         (GTM_longjmp): Likewise.
558 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
560         * configure: Regenerated.
562 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
564         PR target/85489
565         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
567 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
569         * configure: Regenerated.
571 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
573         PR jit/85384
574         * configure: Regenerate.
576 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
578         PR target/84148
579         * configure: Regenerate.
581 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
583         Update copyright years.
585         * libitm.texi: Bump @copying's copyright year.
587 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
589         * Makefile.in: Regenerate.
590         * acinclude.m4: Add enable.m4 and cet.m4.
591         * config/x86/sjlj.S: Include cet.h.
592         (_ITM_beginTransaction): Add _CET_ENDBR.
593         Save Shadow Stack pointer.
594         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
595         * config/x86/target.h (struct gtm_jmpbuf):
596         Add new field for Shadow Stack pointer.
597         * configure: Regenerate.
598         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
599         * configure.ac: Update libtool_VERSION for x86.
600         * testsuite/Makefile.in: Regenerate.
602 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
604         * libitm/config/x86/target.h: Add new field (ssp).
605         * libitm/config/x86/sjlj.S: Change offsets.
607 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
609         * testsuite/lib/libitm.exp: Load scanlang.exp.
611 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
613         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
615 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
617         PR other/79046
618         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
619         of cat to get version from BASE-VER file.
620         * testsuite/Makefile.in: Regenerated.
622 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
624         * config/x86/target.h (htm_available): Determine vendor from
625         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
627 2017-01-18  Torvald Riegel  <triegel@redhat.com>
629         * config/x86/target.h (htm_available): Add check for some processors
630         on which TSX is broken.
632 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
634         PR other/79046
635         * configure.ac: Add GCC_BASE_VER.
636         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
637         get version from BASE-VER file.
638         * testsuite/Makefile.in: Regenerated.
639         * configure: Regenerated.
640         * Makefile.in: Regenerated.
642 2017-01-04  Alan Modra  <amodra@gmail.com>
644         * Makefile.in: Regenerate.
645         * testsuite/Makefile.in: Regenerate.
647 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
649         Update copyright years.
651         * libitm.texi: Bump @copying's copyright year.
653 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
655         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
656         * aclocal.m4: Regenerate.
657         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
658         LIBITM_CHECK_LINKER_HWCAP.
660 2016-11-15  Matthias Klose  <doko@ubuntu.com>
662         * configure: Regenerate.
664 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
666         PR libitm/70456
667         * util.cc (xmalloc): Use posix_memalign to allocate memory on
668         on cache line if requested.
670 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
672         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
673         function attribute to disable floating point in begin_transaction() on
674         S/390.
675         * beginend.cc (begin_transaction): Use
676         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
678 2016-01-22  Torvald Riegel  <triegel@redhat.com>
680         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
681         boundary.
682         (htm_fastpath): Remove.
683         (gtm_thread::begin_transaction): Fix HTM fastpath.
684         (_ITM_commitTransaction): Adapt.
685         (_ITM_commitTransactionEH): Adapt.
686         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
687         and accessors.
688         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
689         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
690         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
691         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
692         * libitm/method-serial.cc (htm_mg): Adapt.
693         (gtm_thread::serialirr_mode): Adapt.
694         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
696 2016-01-21  Torvald Riegel  <triegel@redhat.com>
698         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
699         or AIX.
701 2016-01-19  Richard Henderson  <rth@redhat.com>
703         PR bootstrap/69343
704         PR bootstrap/69339
705         Revert:
706         2016-01-13  Richard Henderson  <rth@redhat.com>
708         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
709         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
710         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
711         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
712         * configure.ac (ARCH_AARCH64): New conditional.
713         (ARCH_PPC, ARCH_S390): Likewise.
714         * Makefile.in, configure: Rebuild.
716         * libitm.h (_ITM_TYPE_M128): Always define.
717         * vect64.cc: Split ...
718         * vect128.cc: ... out of...
719         * config/x86/x86_sse.cc: ... here.
720         * config/arm/neon.cc: New file.
722 2016-01-19  Torvald Riegel  <triegel@redhat.com>
724         * local_type_traits: Remove file.
725         * libitm_i.h: Don't include it anymore.
726         (sized_integral): Remove.
728 2016-01-16  Torvald Riegel  <triegel@redhat.com>
730         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
731         safety.
732         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
733         * libitm/testsuite/libitm.c/priv-1.c: New.
735 2015-01-15  Torvald Riegel  <triegel@redhat.com>
737         testsuite/libitm.c++/libstdc++-safeexc.C: New.
739 2016-01-13  Torvald Riegel  <triegel@redhat.com>
741         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
742         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
743         (gtm_rwlock::write_unlock): Likewise.
745 2016-01-13  Richard Henderson  <rth@redhat.com>
747         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
748         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
749         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
750         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
751         * configure.ac (ARCH_AARCH64): New conditional.
752         (ARCH_PPC, ARCH_S390): Likewise.
753         * Makefile.in, configure: Rebuild.
755         * libitm.h (_ITM_TYPE_M128): Always define.
756         * vect64.cc: Split ...
757         * vect128.cc: ... out of...
758         * config/x86/x86_sse.cc: ... here.
759         * config/arm/neon.cc: New file.
761 2016-01-13  Torvald Riegel  <triegel@redhat.com>
763         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
764         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
765         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
766         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
767         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
768         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
769         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
770         (serialirr_dispatch::snapshot_most_recent): New.
771         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
773 2016-01-12  Torvald Riegel  <triegel@redhat.com>
775         * libitm_i.h (gtm_mask_stack): Remove.
776         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
777         * stmlock.h: Remove file.
778         * config/alpha/cacheline.h: Likewise.
779         * config/generic/cacheline.h: Likewise.
780         * config/powerpc/cacheline.h: Likewise.
781         * config/sparc/cacheline.h: Likewise.
782         * config/x86/cacheline.h: Likewise.
784 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
786         Update copyright years.
788         * libitm.texi: Bump @copying's copyright year.
790 2015-11-26  Torvald Riegel  <triegel@redhat.com>
792         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
793         (ml_wt_dispatch::pre_write): Adapt.
794         (ml_wt_dispatch::pre_load): Likewise.
796 2015-11-22  Torvald Riegel  <triegel@redhat.com>
798         * libitm_i.h (gtm_alloc_action): Remove union.
799         * testsuite/libitm.c/alloc-1.c: New.
801 2015-11-19  Torvald Riegel  <triegel@redhat.com>
803         * testsuite/libitm.c++/eh-5.C: New.
804         * libitm.h (_ITM_cxa_free_exception): New.
805         * libitm.map (_ITM_cxa_free_exception): Add it.
806         * libitm.texi: Update ABI docs.
807         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
808         (gtm_transaction_cp::cxa_uncaught_count): Add.
809         (gtm_thread::cxa_unthrown): Remove.
810         (gtm_thread::cxa_uncaught_count_ptr): Add.
811         (gtm_thread::cxa_uncaught_count): Add.
812         (gtm_thread::drop_references_allocations): Rename to...
813         (gtm_thread::discard_allocation): ... this and adapt.
814         (gtm_thread::init_cpp_exceptions): New.
815         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
816         (gtm_thread::begin_transaction): Likewise.
817         (gtm_transaction_cp::save): Likewise.
818         (gtm_thread::trycommit): Likewise.
819         * eh_cpp.cc: Add overview comments.
820         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
821         (free_any_exception, _ITM_cxa_free_exception): New.
822         (gtm_thread::init_cpp_exceptions): Define.
823         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
824         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
825         (gtm_thread::revert_cpp_exceptions): Likewise.
827 2015-11-09  Torvald Riegel  <triegel@redhat.com>
829         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
830         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
831         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
832         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
833         (gtm_thread::forget_allocations): New overload with size_t argument.
834         * alloc.c (gtm_thread::forget_allocation): Define new overload and
835         adapt existing one.
836         (gtm_thread::record_allocation): Adapt.
837         (gtm_thread::commit_allocations_1): Adapt.
838         (gtm_thread::commit_allocations_2): Adapt.
839         * testsuite/libitm.c++/newdelete.C: New.
841 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
842             Joseph Myers  <joseph@codesourcery.com>
843             Mark Shinwell  <shinwell@codesourcery.com>
844             Andrew Stubbs  <ams@codesourcery.com>
845             Rich Felker <dalias@libc.org>
847         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
848         GTM_begin_transaction for compatibility with FDPIC.
850 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
852         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
853         using load_gcc_lib.
855 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
857         PR libitm/61164
858         * local_atomic (__always_inline): Rename to...
859         (__libitm_always_inline): ... this.
861 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
863         PR target/52482
864         * config/powerpc/sjlj.S: Port to Xcode 2.5.
866 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
868         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
869         operands "op" and "val" to int.
871 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
873         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
874         "op" and "val" to int.
876 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
878         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
879         "op" and "val" to int.
881 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
883         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
884         Declare as static int.
885         (FUTEX_PRIVATE_FLAG): Remove L suffix.
886         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
888 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
890         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
891         sys_futex0 function.
893 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
895         * Makefile.in: Regenerated with automake-1.11.6.
896         * aclocal.m4: Likewise.
897         * configure: Likewise.
898         * testsuite/Makefile.in: Likewise.
900 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
902         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
903         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
905 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
907         PR libitm/64360
908         * libitm.c/stackundo.c (test2): Make it static.
909         (test1): Likewise.
911 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
913         Update copyright years.
915 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
917         * libitm.texi: Bump @copying's copyright year.
919 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
921         * testsuite/lib/libitm.exp: Load target-utils.exp.
922         Move load of target-supports.exp earlier.
924 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
926         * configure.tgt (x86_64): Tune -m32 multilib to generic.
928 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
930         PR bootstrap/63784
931         * configure: Regenerated.
933 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
935         PR target/63610
936         * configure: Regenerate.
938 2014-10-06  Marek Polacek  <polacek@redhat.com>
940         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
941         * testsuite/libitm.c/memset-1.c: Likewise.
943 2014-07-24  Richard Henderson  <rth@redhat.com>
945         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
946         addressing mode in epilogue.
948 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
950         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
951         -mclear-hwcap instead.
952         * configure: Regenerate.
953         * clearcap.map: Remove.
955 2014-05-21  John Marino  <gnugcc@marino.st>
957         * configure.tgt (*-*-dragonfly*): New target.
959 2014-05-19  Richard Henderson  <rth@redhat.com>
961         * config/aarch64/sjlj.S: New file.
962         * config/aarch64/target.h: New file.
963         * configure.tgt: Enable aarch64.
965 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
967         * config/generic/asmcfi.h: Also check for
968         __GCC_HAVE_DWARF2_CFI_ASM.
970 2013-04-02  Richard Henderson  <rth@redhat.com>
972         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
973         * config/arm/target.h, config/sh/target.h: Likewise.
974         * config/sparc/target.h, config/x86/target.h: Likewise.
976 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
978         * config/linux/futex_bits.h: Include errno.h.
979         (sys_futex0): If syscall returns -1, return -errno rather than
980         -1.
982 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
984         * libitm.texi (Index): Rename to Library Index.
986 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
988         PR libitm/53113
989         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
990         (x86_avx.lo): Append -mavx to CXXFLAGS.
991         * Makefile.in: Regenerate.
993 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
995         Update copyright years
997 2014-01-02  Tobias Burnus  <burnus@net-b.de>
999         * libitm.texi: Bump @copying's copyright year.
1001 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1003         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
1004         (FUNC): Define ELFv2 variant.
1005         (END): Likewise.
1006         (HIDDEN): Likewise.
1007         (CALL): Likewise.
1008         (BASE): Likewise.
1009         (LR_SAVE): Likewise.
1011 2013-09-20  Alan Modra  <amodra@gmail.com>
1013         * configure: Regenerate.
1015 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1017         * config/posix/rwlock.cc: Fix initialization order.
1019 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1021         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1022         (htm_fastpath): Assign an asm name.
1023         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1024         HTM fast paths.
1025         (_ITM_actions): Likewise.
1026         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1027         x86_64.
1028         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1029         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
1030         field to the start of the structure.
1031         * config/linux/rwlock.h (gtm_rwlock): Update comments.
1032         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1033         handling for custom HTM fast paths.
1035 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1036         Revert:
1037         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1039         * configure.tgt: Add -msoft-float to XCFLAGS.
1041 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1043         * configure.tgt: Add -msoft-float to XCFLAGS.
1045 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1047         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1048         (htm_transaction_active): Enable zEC12 instructions in the
1049         assembler.
1050         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1052 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1054         * acinclude.m4: Add htm asm check for s390.
1055         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1056         * configure: Regenerate.
1057         * config/s390/target.h: Remove __HTM__ check.
1058         (htm_available): Call getauxval to get hwcaps and check whether
1059         HTM is available or not.
1061 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1063         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1064         * configure.ac: Use it.
1065         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1066         (AC_CHECK_FUNCS): Check for getauxval.
1067         * config.h.in, configure: Rebuild.
1068         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1069         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1070         (USE_HTM_FASTPATH): Define.
1071         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1072         _HTM_RETRIES) New macros.
1073         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1074         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1076 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1078         * config/s390/target.h: Include htmintrin.h.
1079         (_HTM_ITM_RETRIES): New macro definition.
1080         (htm_available, htm_init, htm_begin, htm_begin_success)
1081         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1083 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1084             Cesar Philippidis  <cesar@codesourcery.com>
1086         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1087         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1088         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1089         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1091 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1093         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1094         (_ITM_getTransactionId): Same.
1095         * config/x86/target.h (htm_transaction_active): New.
1097 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1099         PR libitm/57643
1100         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1101         the HTM fastpath.
1103 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1105         PR bootstrap/56714
1106         * local_atomic (__always_inline): Always define our version.
1107         (__calculate_memory_order): Mark inline.
1108         (atomic_thread_fence): Ditto.
1109         (atomic_signal_fence): Ditto.
1110         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1111         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1112         (atomic_bool::atomic_flag_test_and_set): Ditto.
1113         (atomic_bool::atomic_flag_clear): Ditto.
1115 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1117         * config/s390/sjlj.S: New file.
1118         * config/s390/target.h: New file.
1119         * configure.tgt: Set options for S/390.
1121 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1123         * local_atomic (__always_inline): Add.
1124         (__calculate_memory_order, atomic_thread_fence,
1125         atomic_signal_fence, test_and_set, clear, store, load,
1126         exchange, compare_exchange_weak, compare_exchange_strong,
1127         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1128         Add __always_inline to force inlining.
1130 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1131             Jack Howarth  <howarth@bromo.med.uc.edu>
1132             Patrick Marlier  <patrick.marlier@gmail.com>
1134         PR libitm/55693
1135         * alloc_cpp.cc: Enable function declarations on darwin.
1136         * eh_cpp.cc: Likewise.
1138 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1140         Update copyright years.
1142 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1144         * beginend.cc (htm_fastpath): New.
1145         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1146         _ITM_commitTransactionEH): Add HTM fastpath handling.
1147         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1148         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1149         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1150         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1151         * configure.tgt: Add -mrtm to XCFLAGS.
1152         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1153         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1154         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1155         * retry.cc (parse_default_method): Add HTM method parsing.
1156         (gtm_thread::number_of_threads_changed): Use HTM by default if
1157         available.
1159 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1161         * configure: Regenerate.
1163 2012-10-31  Richard Henderson  <rth@redhat.com>
1165         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1166         * configure.ac: Use it.
1167         * config.h.in, configure: Rebuild.
1168         * testsuite/Makefile.in: Rebuild.
1170 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1172         * libitm.texi: Clarify ABI requirements for data-logging functions.
1174 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1176         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1177         it requires serial mode instead of assuming that for certain
1178         dispatchs.
1179         * dispatch.h (abi_dispatch::requires_serial): New.
1180         (abi_dispatch::abi_dispatch): Adapt.
1181         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1182         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1183         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1184         serial_dispatch::serial_dispatch,
1185         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1187 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1189         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1190         and ia32 declarations some more.
1191         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1193 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1195         PR other/43620
1196         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1197         * configure: Regenerate.
1198         * Makefile.in: Regenerate.
1200 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1202         * configure: Regenerated.
1204 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1206         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1208 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1210         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1212 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1214         * configure: Regenerated.
1216 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1218         PR libitm/52854
1219         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1220         for x86-64.
1222 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1224         * configure: Regenerate.
1226 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1228         PR bootstrap/52812
1229         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1231 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1233         * testsuite/lib/libitm.exp: load fortran-modules.exp
1235 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1237         * configure.tgt (*-*-irix6*): Remove.
1239 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1241         PR libitm/52526
1242         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1243         wake-up.
1245 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1247         * configure.tgt (*-*-osf*): Remove.
1248         * configure: Regenerate.
1250 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1252         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1253         memtransfer/memset if size isn't larger than zero.
1255 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1257         * libitm.texi: Link to specification and add a usage example.
1259 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1261         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1262         default dispatch for more than 1 thread to ml_wt.
1264 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1266         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1268 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1270         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1272 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1274         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1275         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1276         (gl_wt_dispatch.rollback): Same.
1278 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1280         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1282 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1284         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1285         for RfW src.  Optimize number of calls to gtm_thr.
1287 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1289         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1290         acquisition to ...
1291         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1292         (default_dispatch): Make atomic.
1293         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1294         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1295         use decide_begin_dispatch() if default_dispatch might have changed.
1296         (GTM::gtm_thread::number_of_threads_changed): Initialize
1297         default_dispatch here.
1299 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1300             Patrick Marlier  <patrick.marlier@gmail.com>
1302         PR libitm/52220
1303         * alloc_cpp.cc: No dummy definitions for darwin.
1304         * eh_cpp.cc: Likewise.
1306 2012-02-14  Richard Henderson  <rth@redhat.com>
1308         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1310 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1312         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1314 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1316         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1317         (GTM::gtm_thread): Add read and write logs.
1318         (GTM::dispatch_ml_wt): Declare.
1319         * retry.cc (parse_default_method): Support ml_wt.
1320         * method-ml.cc: New file.
1321         * Makefile.am: Add method-ml.cc.
1322         * Makefile.in: Regenerate.
1324 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1326         * dispatch.h (GTM::abi_dispatch::supports): New.
1327         (GTM::method_group::reinit): New.
1328         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1329         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1330         supports the current situation.
1332 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1334         * util.cc (GTM::xcalloc): New.
1335         * common.h (GTM::xcalloc): Declare.
1337 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1339         * config/sparc/target.h (cpu_relax): Read from CC register.
1340         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1342 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1344         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1346 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1348         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1349         * config/sparc/cacheline.h: New file.
1350         * config/sparc/target.h: Likewise.
1351         * config/sparc/sjlj.S: Likewise.
1352         * config/linux/sparc/futex_bits.h: Likewise.
1354 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1356         * configure.ac (link_itm): Fix comment.
1357         * configure: Regenerate.
1358         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1360 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1362         PR libitm/51822
1363         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1364         Correct libgomp references.
1366 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1368         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1369         wake-up.
1371 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1373         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1374         end of structure.
1375         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1376         offset values.  Do not copy return address.  Decrement stack
1377         by 56 bytes only.
1378         (GTM_longjump) [__x86_64__]: Update offset values.
1380 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1382         PR libitm/51830
1383         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1384         the first function argument to %eax.
1386 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1388         * libitm.h (_ITM_getThreadnum): Remove.
1389         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1391 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1393         * clearcap.map: New file.
1394         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1395         * configure.ac: Call it.
1396         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1397         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1398         * configure: Regenerate.
1399         * Makefile.in: Regenerate.
1400         * testsuite/Makefile.in: Regenerate.
1402 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1404         PR libitm/51173
1405         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1406         include, exclude options.
1408 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1410         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1411         rolling back.
1412         * containers.h (GTM::vector::set_size): New.
1414 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1416         PR libitm/51855
1417         * config/generic/tls.h (GTM::mask_stack_top): New.
1418         (GTM::mask_stack_bottom): Declare.
1419         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1420         * local.cc (gtm_undolog::rollback): Filter out any updates that
1421         overlap the libitm stack.  Add current transaction as parameter.
1422         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1423         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1424         * testsuite/libitm.c/stackundo.c: New test.
1426 2012-01-10  Richard Henderson  <rth@redhat.com>
1428         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1429         * eh_cpp.cc (_Unwind_DeleteException): Define for
1430         !HAVE_ELF_STYLE_WEAKREF.
1432 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1434         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1435         (GTM::gtm_thread::drop_references_undolog): Remove.
1436         (GTM::gtm_thread::commit_undolog,
1437         GTM::gtm_thread::rollback_undolog): Move to ...
1438         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1439         (GTM::gtm_undolog_entry): Remove.
1440         (GTM::gtm_thread): Adapt.
1441         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1442         (GTM::gtm_thread::trycommit): Adapt.
1443         * method-serial.cc (serial_dispatch::log): Adapt.
1444         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1445         (gl_wt_dispatch::store): Fix likely/unlikely.
1446         * containers.h (GTM::vector::resize): Add additional_capacity
1447         parameter and handle it.
1448         (GTM::vector::resize_noinline): New/adapt.
1449         (GTM::vector::push): New.
1451 2012-01-06  Richard Henderson  <rth@redhat.com>
1453         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1454         * config/linux/powerpc/futex_bits.h: New file.
1455         * config/powerpc/cacheline.h: New file.
1456         * config/powerpc/sjlj.S: New file.
1457         * config/powerpc/target.h: New file.
1458         * config/generic/asmcfi.h (cfi_offset): New.
1459         (cfi_restore, cfi_undefined): New.
1461 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1463         PR other/51171
1464         * testsuite/libitm.c/reentrant.c: Remove xfail.
1465         (thread): Pass x to pure().
1466         From Patrik Marlier <patrick.marlier@gmail.com>.
1468 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1470         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1471         privatization safety if already in serial mode.
1473 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1475         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1476         finish_serial_upgrade parameter.
1477         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1478         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1479         Don't unset reader flag.
1480         (GTM::gtm_rwlock::write_upgrade_finish): New.
1481         * config/posix/rwlock.cc: Same.
1482         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1483         Declare.
1484         * config/posix/rwlock.h: Same.
1485         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1486         flag after commit or after rollback when restarting.
1488 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1490         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1491         (GTM::gtm_thread::try_commit): Changed memory order.
1492         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1493         as parameter.
1494         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1495         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1496         * config/linux/futex_bits.h (sys_futex0): Same.
1497         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1498         * config/linux/futex.h (futex_wait, futex_wake): Same.
1499         * config/linux/rwlock.h (gtm_rwlock::writers,
1500         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1501         ints.
1502         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1503         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1504         gtm_rwlock::write_unlock): Fix memory orders and fences.
1505         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1506         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1507         gtm_rwlock::write_unlock): Same.
1508         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1509         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1510         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1511         Add comments.
1512         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1513         gl_wt_dispatch::load, gl_wt_dispatch::store,
1514         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1515         orders and fences.  Add comments.
1517 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1519         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1520         * Makefile.in: Regenerated.
1522 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1524         * configure.tgt: Add sh* case.
1525         * config/sh/target.h: New file.
1526         * config/sh/sjlj.S: New file.
1527         * config/linux/sh/futex_bits.h: New file.
1529 2011-12-14  Richard Henderson  <rth@redhat.com>
1531         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1532         * config/arm/sjlj.S, config/arm/target.h: New files.
1533         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1534         (cfi_rel_offset): New.
1535         * config/linux/futex_bits.h: New file.
1536         * config/linux/futex.cc: Include futex_bits.h here...
1537         * config/linux/futex.h: ... not here.
1538         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1539         * configure.ac (ARCH_AM): New conditional.
1540         * Makefile.in, configure: Rebuild.
1541         * configure.tgt: Handle ARM.
1543 2011-12-13  Richard Henderson  <rth@redhat.com>
1545         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1546         signed/unsigned comparison werror.
1548         * local_atomic: New file.
1549         * libitm_i.h: Include it.
1550         (gtm_thread::shared_state): Use atomic template.
1551         * beginend.cc (GTM::gtm_clock): Use atomic template.
1552         (global_tid): Use atomic template if 64-bit atomics available.
1553         (gtm_thread::gtm_thread): Update shared_state access.
1554         (gtm_thread::trycommit): Likewise.
1555         (choose_code_path): Update global_tid access.
1556         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1557         * stmlock.h (GTM::gtm_clock): Use atomic template.
1558         (gtm_get_clock, gtm_inc_clock): Update accesses.
1559         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1560         redundant __sync_synchronize after atomic shared_state access.
1561         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1562         (gtm_rwlock::write_lock_generic): Likewise.
1563         (gtm_rwlock::read_unlock): Likewise.
1564         * config/alpha/target.h (atomic_read_barrier): Remove.
1565         (atomic_write_barrier): Remove.
1566         * config/x86/target.h (atomic_read_barrier): Remove.
1567         (atomic_write_barrier): Remove.
1569 2011-11-30  Richard Henderson  <rth@redhat.com>
1571         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1572         * beginend.c (_ITM_abortTransaction): Update to match.
1573         (GTM::gtm_thread::restart): Likewise.
1574         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1575         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1577 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1579         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1580         * Makefile.in: Regenerate.
1582 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1584         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1585         * alloc_cpp.cc: Generate dummy functions if we don't
1586         HAVE_ELF_STYLE_WEAKREF.
1587         * eh_cpp.cc: Likewise.
1588         * configure: Regenerate.
1589         * aclocal.m4:  Likewise.
1590         * config.h.in: Likewise.
1591         * Makefile.in: Likewise.
1592         * testsuite/Makefile.in: Likewise.
1594 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1596         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1597         __USER_LABEL_PREFIX__ for targets that use it.
1598         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1599         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1600         in portability to non-elf targets.
1601         (GTM_longjmp): Likewise.
1602         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1603         where required.
1605 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1607         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1608         * testsuite/libitm.c/memset-1.c: Likewise.
1610 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1612         * configure: Regenerate.
1614 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1616         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1617         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1618         * Makefile.am: Handle sun style versioning.
1619         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1620         * configure: Regenerate.
1621         * Makefile.in: Regenerate.
1623 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1625         * config/generic/asmcfi.h: Fix comment.
1626         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1627         sequence without .hidden support, error for non-ELF targets.
1628         (GTM_longjmp) [__ELF__]: Only use .hidden if
1629         HAVE_ATTRIBUTE_VISIBILITY.
1631 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1633         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1634         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1635         Dummy functions.
1636         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1637         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1639 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1641         PR bootstrap/51098
1642         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1643         * configure: Regenerate.
1645 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1647         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1649 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1651         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1652         .hidden.
1653         (.note.GNU-stack): Only use if __linux__.
1654         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1655         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1656         * testsuite/libitm.c/reentrant.c: Likewise.
1657         * testsuite/libitm.c/simple-2.c: Likewise.
1658         * testsuite/libitm.c/txrelease.c: Likewise.
1659         * testsuite/libitm.c++/static_ctor.C: Likewise.
1661 2011-11-10  Richard Henderson  <rth@redhat.com>
1663         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1664         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1665         * configure.ac (ARCH_X86_AVX): New conditional.
1666         * Makefile.in, configure: Rebuild.
1668 2011-11-09  Richard Henderson  <rth@redhat.com>
1670         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1671         * configure.ac: Use it.
1672         * config.h.in, configure: Rebuild.
1673         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1675 2011-11-09  Richard Henderson  <rth@redhat.com>
1677         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1678         * config/alpha/unaligned.h: Remove file.
1679         * config/generic/unaligned.h: Remove file.
1680         * config/x86/unaligned.h: Remove file.
1681         * config/generic/cachepage.h: Remove file.
1682         * config/posix/cachepage.cc: Remove file.
1683         * config/generic/cacheline.cc: Remove file.
1684         * config/x86/cacheline.cc: Remove file.
1685         * config/generic/cacheline.h (gtm_cacheline): Remove the
1686         store_mask, copy_mask, copy_mask_wb methods.
1687         * config/x86/cacheline.h: Likewise.
1688         * config/alpha/cacheline.h: Fall back to generic after setting size.
1689         * config/generic/tls.cc (gtm_mask_stack): Remove.
1690         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1691         (GTM_vpalignr_table): Remove.
1692         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1693         (GTM_pshift_table): Remove.
1694         * config/libitm_i.h: Don't include cachepage.h.
1695         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1696         * Makefile.in, testsuite/Makefile.in: Rebuild.
1698 2011-11-09  Richard Henderson  <rth@redhat.com>
1700         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1701         to emit branch prediction hint.
1703         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1704         Protect .note.GNU-stack with __linux__.
1706         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1707         * configure, aclocal.m4, config.h.in: Rebuild.
1708         * config/generic/asmcfi.h: New file.
1709         * config/x86/sjlj.S: Use it.
1711 2011-11-08  Richard Henderson  <rth@redhat.com>
1713         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1715 2011-11-08  Richard Henderson  <rth@redhat.com>
1717         * configure.tgt: Test correct directory for supported cpus.
1719         * configure.ac: Exit if unsupported.
1720         * configure: Rebuild.
1721         * configure.tgt: Delete boilerplate from libgomp for unsupported
1722         targets.  Set UNSUPPORTED for unsupported targets.
1724 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1726         * configure.tgt: Handle i386 like i[456]86.
1727         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1728         take address.
1729         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1730         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1732 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1734         * method-wbetl.cc: Update copyright notice.
1735         * aatree.cc: Same.
1736         * util.cc: Same.
1737         * libitm.h: Same.
1738         * memset.cc: Same.
1739         * eh_cpp.cc: Same.
1740         * barrier.tpl: Same.
1741         * useraction.cc: Same.
1742         * stmlock.h: Same.
1743         * memcpy.cc: Same.
1744         * common.h: Same.
1745         * config/generic/tls.cc: Same.
1746         * config/generic/cacheline.h: Same.
1747         * config/generic/cachepage.h: Same.
1748         * config/generic/cacheline.cc: Same.
1749         * config/generic/unaligned.h: Same.
1750         * config/x86/cacheline.h: Same.
1751         * config/x86/cacheline.cc: Same.
1752         * config/x86/unaligned.h: Same.
1753         * config/alpha/cacheline.h: Same.
1754         * config/alpha/unaligned.h: Same.
1755         * config/alpha/sjlj.S: Same.
1756         * config/posix/cachepage.cc: Same.
1757         * config/linux/futex.h: Same.
1758         * config/linux/alpha/futex_bits.h: Same.
1760 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1762         * libitm.texi: No cover text and invariant sections.
1764 2011-11-03  Richard Henderson  <rth@redhat.com>
1766         * local_type_traits: New file.
1767         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1769 2011-11-03  Richard Henderson  <rth@redhat.com>
1771         * configure.ac: Don't test for gfortran.
1772         * configure: Rebuild.
1774         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1775         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1777 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1779         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1780         * testsuite/libitm.c/memset-1.c: Same.
1781         * testsuite/libitm.c/c.exp: Same.
1782         * testsuite/lib/libitm-dg.exp: Same.
1783         * testsuite/lib/libitm.exp: Same.
1784         * testsuite/libitm.c++/c++.exp: Same.
1786 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1788         * testsuite/config/default.exp: Update copyright date.
1789         * configure.ac: Add copyright info.
1790         * configure.tgt: Same.
1792 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1794         * testsuite/libitm.c/reentrant.c: XFAIL.
1795         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1797 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1799         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1800         handle aborts.
1801         (_ITM_abortTransaction): Handle aborts of outer transactions.
1802         * libitm_i.h: Same.
1803         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1804         * libitm.texi: Document aborts of outer transactions.
1805         * testsuite/libitm.c/cancel.c: New file.
1807 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1809         * testsuite/*: Change __transaction to __transaction_atomic or
1810         __transaction_relaxed.
1812 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1814         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1815         (gtm_thr): Same.
1817 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1819         * libitm_i.h: Add gl_wt dispatch.
1820         * retry.cc (parse_default_method): Same.
1821         * method-gl.cc: New file.
1822         * Makefile.am: Use method-gl.cc.
1823         * Makefile.in: Rebuild.
1825 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1827         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1828         safety if requested by a TM method.
1829         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1830         privatization safety.
1831         * method-serial.cc: Same.
1833 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1835         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1836         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1837         undolog-related member functions from *_local to *_undolog.
1838         * local.cc (gtm_thread::commit_undolog): Same.
1839         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1840         (GTM::gtm_thread::rollback): Roll back undolog before
1841         dispatch-specific rollback.
1843 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1845         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1846         re-initialization of the current method group.
1847         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1849 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1851         * alloc.cc (commit_allocations_2): Do not free transaction-local
1852         memory when committing a nested transaction.
1854 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1856         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1857         serial-irrevocable dispatch, not serial.
1859 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1861         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1862         declarations.
1863         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1864         * method-serial.cc: Implement begin_or_restart().
1865         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1866         dispatch-specific begin_or_restart().
1867         (GTM::gtm_thread::restart): Same.
1869 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1871         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1872         restarting without switching to serial mode.
1873         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1874         transaction state. Choose closed-nesting alternative if available.
1875         (GTM::gtm_thread::set_default_dispatch): New.
1876         (parse_default_method): New.
1877         (GTM::gtm_thread::number_of_threads_changed): New.
1878         * method-serial.cc (GTM::serial_mg): New method group class.
1879         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1880         fini.
1881         (GTM::serial_dispatch): Same.
1882         (GTM::serialirr_onwrite_dispatch): Same.
1883         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1884         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1885         registered threads.
1886         (GTM::gtm_thread::gtm_thread): Same.
1887         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1888         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1889         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1890         choose dispatch but set state according to dispatch here.
1891         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1892         (GTM::method_group): New class.
1893         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1894         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1895         * libitm.texi: Document TM methods, method groups, method life cycle.
1896         Rename method sets to method groups.
1898 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1900         * config/x86/tls.h: Moved to ...
1901         * config/linux/x86/tls.h: ... here.
1903 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1905         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1906         Add X32 support.
1907         * config/x86/sjlj.S: Same.
1909 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1911         * config/linux/rwlock.h: New file.
1912         * config/linux/rwlock.c: New file.
1913         * configure.ac: Reenable futex support (undo SVN rev 157758).
1914         * Makefile.am: Same.
1915         * configure.tgt: Same.
1916         * config/linux/alpha/futex_bits.h: Same.
1917         * config/linux/futex.h: Same. Return number of woken processes.
1918         * config/linux/futex.cc: Same.
1919         (futex_wait): Remove spinning.
1920         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1921         Use __x86_64__ instead of __LP64__.
1922         * aclocal.m4: Include generic futex checks.
1923         * configure: Rebuild.
1924         * Makefile.in: Rebuild.
1925         * testsuite/Makefile.in: Rebuild.
1926         * beginend.cc: Include pthread.h.
1927         * config/posix/cachepage.cc: Same.
1929 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1931         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1932         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1933         (set_gtm_thr): New.
1934         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1935         (set_gtm_thr): New.
1936         (GTM::gtm_thread::thread_num): Removed.
1937         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1938         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1939         tx-to-thread renaming.
1940         * beginend.cc: Adapted to tx-to-thread renaming.
1941         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1942         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1943         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1944         gtm_transaction to gtm_thread.
1945         (_ITM_getThreadnum): Removed. Not supported anymore.
1946         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1947         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1948         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1949         gtm_tx-to-gtm_thr renaming if necessary.
1950         * eh_cpp.cc: Same.
1951         * local.cc: Same.
1952         * retry.cc: Same.
1953         * clone.cc: Same.
1954         * alloc.cc: Same.
1955         * alloc_c.cc: Same.
1956         * alloc_cpp.cc: Same.
1957         * method-serial.cc: Same.
1958         * config/generic/tls.cc: Same.
1959         * config/posix/rwlock.h (gtm_rwlock): Same.
1960         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1962 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1964         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1965         implementation.
1966         (gtm_rwlock::read_unlock): Same.
1967         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1968         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1969         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1970         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1971         w_upgrade. Replaced by per-transaction flags (in shared_state).
1972         Added c_confirmed_writers.
1973         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1974         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1975         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1976         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1977         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1978         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1979         * libitm.texi: Document locking conventions and implementations in
1980         libitm.
1982 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1984         * libitm_i.h (next_tx): Add list of all threads' transaction.
1985         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1986         transaction with list of transactions and ...
1987         (thread_exit_handler): ... deregister here.
1988         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1989         * config/x86/target.h: Same.
1991 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1993         * testsuite/libitm.c++/static_ctor.C: New file.
1995 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1997         * testsuite/libitm.c/reentrant.c: New file.
1999 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2001         * config/generic/tls.h: Remove the free list for transactions and ...
2002         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
2003         (GTM::gtm_transaction::operator delete): ... and release here.
2004         (thread_exit_handler): New. Delete tx when thread terminates.
2005         (thread_exit_init): New.
2006         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
2007         * testsuite/libitm.c/txrelease.c: New file.
2009 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2011         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2012         * testsuite/libitm.c/notx.c: New file.
2014 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2016         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2017         * libitm_i.h (local_tid): ... to here.
2018         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2019         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2021 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2023         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2024         serialirr_onwrite_dispatch as new default for now.
2025         * method-serial.cc (serialirr_onwrite_dispatch): New.
2026         (GTM::dispatch_serialirr_onwrite): New.
2027         * libitm_i.h: Same.
2029 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2031         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2032         * query.cc (_ITM_getTransactionId): There is no active transaction if
2033         the current nesting level is zero.
2035 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2037         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2038         rollback.
2040 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2042         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2043         transaction properties from the caller instead of from the
2044         transaction object.
2045         * libitm_i.h: Same.
2046         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2048 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2050         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2051         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2052         * dispatch.h: Same.
2053         * method-serial.cc: Same.
2054         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2055         flat nesting as default, and closed nesting on demand.
2056         (GTM::gtm_transaction::rollback): Same.
2057         (_ITM_abortTransaction): Same.
2058         (GTM::gtm_transaction::restart): Same.
2059         (GTM::gtm_transaction::trycommit): Same.
2060         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2061         (choose_code_path): New.
2062         (GTM::gtm_transaction_cp::save): New.
2063         (GTM::gtm_transaction_cp::commit): New.
2064         * query.cc (_ITM_inTransaction): Support flat nesting.
2065         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2066         (GTM::gtm_transaction): Support flat and closed nesting.
2067         * alloc.cc (commit_allocations_2): New.
2068         (commit_cb_data): New helper struct.
2069         (GTM::gtm_transaction::commit_allocations): Handle nested
2070         commits/rollbacks.
2071         * libitm.texi: Update user action section, add description of nesting.
2073 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2075         * libitm_i.h: Add closed nesting as restart reason.
2076         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2078 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2080         * useraction.cc: Use vector instead of list to store actions.
2081         Also support partial rollbacks for closed nesting.
2082         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2083         * beginend.cc: Same.
2085 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2087         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2088         closed_nesting flags, as well as a closed nesting alternative.
2089         * method-serial.cc: Same.
2090         (serial_dispatch): Renamed to serialirr_dispatch.
2091         (GTM::dispatch_serialirr): Same.
2092         (serial_dispatch_ul): Renamed to serial_dispatch.
2093         (GTM::dispatch_serial): Same.
2095 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2097         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2099 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2101         * aatree.h (aa_tree::remove): New.
2102         (aa_tree::operator new): Add placement new.
2104 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2106         * containers.h: New file.
2107         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2108         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2109         * common.h: ... to here.
2110         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2111         * local.cc: Same.
2113 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2115         * libitm_i.h (STATE_ABORTING): Remove.
2116         * beginend.cc (_ITM_abortTransaction): Same.
2117         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2118         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2119         (_ITM_rollbackTransaction): Remove.
2120         * beginend.cc: Same.
2121         * libitm.map: Same.
2122         * libitm.texi: Document these ABI changes.
2124 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2126         * libitm.texi: New file.
2127         * Makefile.am: Add libitm.texi.
2128         * Makefile.in: Rebuild.
2130 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2132         * libitm_i.h: Move parts to common.h and dispatch.h.
2133         * common.h: New file.
2134         * dispatch.h: New file, new dispatch class.
2135         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2136         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2137         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2138         decision to retry.cc.
2139         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2140         only.
2141         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2142         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2143         logging.
2144         * barrier.cc: Use new barriers definitions.
2145         (abi_dispatch::memmove_overlap_check): New.
2146         * config/x86/x86_sse.cc: Same.
2147         * config/x86/x86_avx.cc: Same.
2148         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2149         memcpy.cc.
2150         * Makefile.in: Rebuild.
2151         * method-readonly.cc: Remove.
2152         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2153         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2155 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2157         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2158         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2159         * testsuite/libitm.c/dropref-2.c: Same.
2160         * testsuite/libitm.c/dropref.c: Same.
2162 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2164         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2165         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2166         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2167         * alloc_c.cc: Same.
2168         * barrier.tpl: Same.
2169         * beginend.c: Same.
2170         * config/generic/tls.h: Same.
2171         * config/x86/tls.h: Same.
2172         * libitm_i.h: Same.
2173         * memcpy.cc: Same.
2174         * memset.cc: Same.
2175         * method-readonly.cc: Same.
2176         * method-serial.cc: Same.
2177         * method-wbetl.cc: Same.
2178         * retry.cc: Same.
2180 2011-03-03  Richard Henderson  <rth@redhat.com>
2182         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2183         From Patrik Marlier <patrick.marlier@unine.ch>.
2185 2011-02-03  Richard Henderson  <rth@redhat.com>
2187         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2188         * configure.ac: Use it.
2189         * configure, config.h.in: Rebuild.
2190         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2191         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2192         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2193         * libitm.map: Use wildcards to match size_t mangling.
2195 2010-12-14  Richard Henderson  <rth@redhat.com>
2197         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2198         blocks of TIDs per thread.
2199         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2200         (setup_gtm_thr): Return the thread structure.
2201         * config/x86/tls.h (setup_gtm_thr): Likewise.
2203 2010-12-14  Richard Henderson  <rth@redhat.com>
2205         * clone.cc (table_lock): Remove.
2206         (find_clone): Don't take it.
2207         (ExcludeTransaction): New helper class.
2208         (_ITM_registerTMCloneTable): Use it.
2209         (_ITM_deregisterTMCloneTable): Likewise.
2211 2010-12-14  Richard Henderson  <rth@redhat.com>
2213         * config/x86/tls.h: New file.
2215 2010-07-15  Richard Henderson  <rth@redhat.com>
2217         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2218         * Makefile.in: Rebuild.
2220 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2222         * method-wbetl.cc (trydropreference): Fix source line.
2224 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2226         * libitm.h: Add comment.
2227         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2229 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2231         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2232         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2233         available, use pthread mutexes.
2234         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2235         * config.h.in: Regenerate.
2236         * configure: Regenerate.
2238 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2240         * libitm.h (ITM_PURE): Define.
2241         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2243 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2245         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2246         (validate): Add comment.
2247         (trydropreference): New.
2248         * method-readonly.cc (class readonly_dispatch): Add
2249         trydropreference.
2250         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2251         Call trydropreference().
2252         * libitm.h (_ITM_dropReferences): Remove const attribute.
2253         * method-serial.cc (class serial_dispatch): Add trydropreference.
2254         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2256 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2258         * memcpy.cc (do_memcpy): Comment.
2260 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2262         * barrier.tpl: Add comments throughout.
2264 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2266         * method-wbetl.cc (struct w_entry): Add comments.
2267         (trycommit): Same.
2268         (rollback): Same.
2270 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2272         * alloc_c.cc (_ITM_dropReferences): New.
2273         * libitm.map (_ITM_dropReferences): Add.
2274         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2275         * libitm_i.h (struct gtm_transaction): Declare
2276         drop_references_allocations and drop_references_local.
2277         * local.cc (rollback_local): Ignore memory when applicable.
2278         (drop_references_local): New.
2280 2010-06-23  Richard Henderson  <rth@redhat.com>
2282         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2283         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2284         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2285         * config/alpha/target.h: Likewise.
2286         * config/generic/tls.cc (gtm_mask_stack): Use it.
2288 2010-06-23  Richard Henderson  <rth@redhat.com>
2290         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2291         a mutex instead of trying a lock-free compare-and-swap on the list.
2292         (gtm_cacheline_page::operator delete): Likewise.
2294 2010-06-16  Richard Henderson  <rth@redhat.com>
2296         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2297         that overlap the libitm stack.
2298         * barrier.tpl: Mark incoming stack.
2299         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2300         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2301         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2302         * memcpy.cc, memset.cc: Likewise.
2303         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2304         * config/generic/tls.h (gtm_thread): Add stack_top member.
2305         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2306         * libitm_i.h (gtm_mask_stack): Declare.
2307         * config/generic/tls.cc: New file.
2308         * Makefile.am (libitm_la_SOURCES): Add it.
2309         (AM_CXXFLAGS): Turn off exceptions.
2310         * Makefile.in: Rebuild.
2312 2010-06-16  Richard Henderson  <rth@redhat.com>
2314         * alloc.cc (struct gtm_alloc_action): Move definition ...
2315         * libitm_i.h: ... here.
2316         (class gtm_transaction): Declare new and delete.
2317         * beginend.cc (alloc_tx): Reformulate as operator new.
2318         (free_tx): Reformulate as operator delete.
2319         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2321 2010-06-11  Richard Henderson  <rth@redhat.com>
2323         * clone.cc (clone_entry_compare): Fix typo.
2324         From Patrik Marlier <patrick.marlier@unine.ch>.
2326 2010-05-13  Richard Henderson  <rth@redhat.com>
2328         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2329         in extern "C".
2331 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2333         * libitm_i.h (struct gtm_transaction): Remove
2334         get_allocation_size.
2335         (record_allocation): Remove size parameter.
2336         * libitm.map (_ITM_realloc): Remove.
2337         * alloc_c.cc (_ITM_realloc): Remove.
2338         (_ITM_malloc): Remove size argument to record_allocation.
2339         (_ITM_calloc): Same.
2340         * alloc_cpp.cc (_ZGTtnwm): Same.
2341         (_ZGTtnwmRKSt9nothrow_t): Same.
2342         (_ZGTtnam): Same.
2343         (_ZGTtnamRKSt9nothrow_t): Same.
2344         * alloc.cc (struct gtm_alloc_action): Remove size.
2345         (get_allocation_size): Remove.
2346         (commit_allocations): Add comment.
2347         (record_allocation): Remove size parameter.
2348         (forget_allocation): Remove set of size.
2350 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2352         * Makefile.am (abi_version): New.
2353         (AM_CXXFLAGS): Pass abi_version.
2354         * Makefile.in: Regenerate.
2355         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2357 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2359         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2360         _ITM_getTMCloneOrIrrevokable.
2361         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2362         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2364 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2366         * configure.ac: Remove Linux futex support.
2367         * configure.tgt (config_path): Same.
2368         * Makefile.am: Same.
2369         * config/linux: Remove entire directory.
2370         * configure: Rebuild.
2371         * Makefile.in: Rebuild.
2372         * testsuite/Makefile.in: Rebuild.
2374 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2376         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2377         switching to serial mode.
2378         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2380 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2382         * configure.tgt: Add emacs -*- tags.
2383         * barrier.tpl: Same.
2385 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2387         * Makefile.am: Rename serial.cc to method-serial.cc.
2388         * Makefile.in: Regenerate with automake 1.11.1.
2389         * testsuite/Makefile.in: Same.
2390         * aclocal.m4: Regenerate with aclocal 1.11.1.
2391         * method-serial.cc: Rename from serial.cc.
2392         * libitm_i.h (struct gtm_transaction): Update comment on
2393         serialirr_mode.
2395 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2397         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2398         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2400 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2402         * configure: Rebuild.
2404 2009-11-12  Richard Henderson  <rth@redhat.com>
2406         * Rewrite everything in C++.
2408 2009-11-03  Richard Henderson  <rth@redhat.com>
2410         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2411         * Makefile.am (libitm_la_SOURCES): Add them.
2412         * configure.ac (ARCH_X86): New conditional.
2413         * Makefile.in, configure: Rebuild.
2414         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2415         Move futex setup into "other system configury" case.
2416         * local.c (rollback_local): Merge into ...
2417         (GTM_rollback_local): ... here.
2418         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2419         (_ITM_LB): Define as an alias to GTM_LB.
2421 2009-11-03  Richard Henderson  <rth@redhat.com>
2423         * method-readonly.c: New file.
2424         * Makefile.am (libitm_la_SOURCES): Add it.
2425         * Makefile.in: Rebuild.
2426         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2427         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2428         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2429         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2430         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2431         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2432         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2433         gtm_get_clock, gtm_inc_clock): New.
2434         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2435         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2436         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2437         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2438         replace uses with new libitm_i.h symbols.
2439         (dispatch_wbetl): Rename from wbetl_dispatch.
2440         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2441         away from dispatch_readonly; abort if the beginTransaction call
2442         asserted that the transaction was readonly.
2444 2009-11-03  Richard Henderson  <rth@redhat.com>
2446         * memset.c: New file.
2447         * Makefile.am (libitm_la_SOURCES): Add it.
2448         * Makefile.in: Rebuild.
2449         * testsuite/libitm.c/memset-1.c: New.
2451 2009-11-03  Richard Henderson  <rth@redhat.com>
2453         * dispatch.c: Remove file.
2454         * useraction.c (struct gtm_user_action): Move from libitm.h.
2455         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2456         (serial_memset, serial_memmove, serial_memcpy): Remove.
2457         (serial_W*, serial_R*): Remove.
2458         (serial_dispatch): Update to match.
2459         * configure.ac: Move Werror down below configure checks.  Don't
2460         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2461         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2462         Use GCC_AC_FUNC_MMAP_BLACKLIST
2463         * libitm.h: Split out all internal items to...
2464         * libitm_i.h: ... here.  New file.
2465         * copymask.c: New file.
2466         * local.c (struct gtm_local_undo): Move from libitm.h.
2467         (GTM_alloc_local): Rename from alloc_local; export.
2468         * memcpy.c: New file.
2469         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2470         * config/posix/page.c: New file.
2471         * config/posix/target_tls.h: Remove file.
2472         * barrier.c: New file.
2473         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2474         copymask.c, page.c.
2475         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2476         * method-wbetl.c: Rewrite for new cacheline methods.
2477         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2479         * config/alpha/sjlj.S: Fix typo.
2480         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2481         * config/alpha/copymask.c: New file.
2482         * config/alpha/target.h (CACHELINE_SIZE): New.
2483         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2485         * config/x86/target_i.h: Copy functions from x86/target.h.
2486         * config/x86/copymask.c: New file.
2487         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2488         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2489         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2490         * config/x86/target_tls.h: Move contents to target_i.h.
2492         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2493         * testsuite/libitm.c/memcpy-1.c: New.
2495 2009-10-22  Richard Henderson  <rth@redhat.com>
2497         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2498         (AM_CCASFLAGS): New.
2499         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2500         saving/restoring _AC_ARG_VAR_PRECIOUS.
2501         * Makefile.in, aclocal.m4, config.h.in, configure,
2502         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2504 2009-10-22  Richard Henderson  <rth@redhat.com>
2506         * testsuite/*: Update for new compiler syntax.
2508 2009-10-21  Richard Henderson  <rth@redhat.com>
2510         * libitm.h (_ITM_abortReason): Add outerAbort.
2512 2009-08-03  Richard Henderson  <rth@redhat.com>
2514         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2515         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2516         * method-wbetl.c (struct w_entry): Remove mask.
2517         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2518         adjust all callers.
2520 2009-07-22  Richard Henderson  <rth@redhat.com>
2522         * eh_cpp.c: New file.
2523         * Makefile.am (libitm_la_SOURCES): Add it.
2524         * Makefile.in: Rebuild.
2525         * beginend.c (GTM_rollback_transaction): Undo exception state.
2526         (GTM_trycommit_transaction): Mark inline.
2527         (GTM_trycommit_and_finalize_transaction): Split out from ...
2528         (_ITM_commitTransaction): ... here.
2529         (_ITM_commitTransactionEH): New function.
2530         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2531         cxa_unthrown, eh_in_flight; reorder.
2533         * testsuite/libitm.c++/c++.exp: New.
2534         * testsuite/libitm.c++/eh-1.C: New.
2536         * aatree.c (aa_free): Remove REGPARM.
2537         * aatree.h: Remove all REGPARM.
2539 2009-07-18  Richard Henderson  <rth@redhat.com>
2541         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2542         * Makefile.am (libitm_la_SOURCES): Add them.
2543         * Makefile.in: Rebuild.
2544         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2545         (GTM_trycommit_transaction): Likewise.
2546         * libitm.h: Include aatree.h
2547         (struct gtm_alloc_action): New.
2548         (struct gtm_transaction): Add alloc_actions.
2549         (GTM_record_allocation, GTM_forget_allocation): Declare.
2550         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2551         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2552         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2553         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2554         _ZGTtdaPvRKSt9nothrow_t): Export.
2556 2009-07-18  Richard Henderson  <rth@redhat.com>
2558         * target_tls.h: Move ...
2559         * config/posix/target_tls.h: ... here.
2561 2009-07-07  Richard Henderson  <rth@redhat.com>
2563         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2565 2009-07-07  Richard Henderson  <rth@redhat.com>
2567         * Update to GPL3.
2569 2009-07-07  Richard Henderson  <rth@redhat.com>
2571         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2572         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2574         * configure.tgt: Don't use -ftls-model for x86 linux.
2575         * libitm.h: Include target.h after standard includes.
2576         (_gtm_thr): Rename from gtm_thr.
2577         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2578         (gtm_disp, set_gtm_disp): New.
2579         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2580         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2581         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2583 2009-07-07  Richard Henderson  <rth@redhat.com>
2585         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2587 2009-07-06  Richard Henderson  <rth@redhat.com>
2589         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2590         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2591         (_ITM_beginTransaction): Take variadic arguments.
2592         (_ITM_registerThrownObject): Declare.
2593         * beginend.c, serial.c: Update.
2594         * libitm.map: Add _ITM_registerThrownObject.
2596 2009-01-28  Richard Henderson  <rth@redhat.com>
2598         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2599         * Makefile.in: Rebuild.
2600         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2601         (GTM_restart_transaction): Fix uninstrumented code check.
2602         * retry.c (GTM_decide_retry_strategy): Add serial check.
2603         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2604         automatically go irrevokable when in serial mode.
2605         * clone.c: New file.
2606         * libitm.h, libitm.map: Update.
2608 2009-01-27  Richard Henderson  <rth@redhat.com>
2610         * Makefile.am (LTCCASCOMPILE): Define.
2611         (libitm_la_SOURCES): Add methid-wbetl.c.
2612         * testsuite/Makefile.am: New
2613         * configure.ac: Add testsuite/Makefile.
2614         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2615         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2616         (_ITM_abortTransaction): Finalize implementation method; pass
2617         transaction properties to longjmp.
2618         (GTM_restart_transaction): Split out from ...
2619         (_ITM_commitTransaction): ... here.
2620         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2621         Move to config/x86/target.h.
2622         * config/linux/alpha/futex_bits.h: New.
2623         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2624         * config/x86/target.h: Disable target types for 32-bit.
2625         * config/alpha/sjlj.S, config/alpha/target.h: New.
2626         * libitm.h (struct gtm_dispatch): Add init, fini.
2627         (enum restart_reason): New.
2628         (struct gtm_transaction): Add method and restarts.
2629         * retry.c (GTM_decide_retry_strategy): Implement.
2630         * serial.c (serial_init, serial_fini): New.
2631         (GTM_serialmode): Finialize outgoing method.
2632         * method-wbetl.c: New.
2634 2008-12-09  Richard Henderson  <rth@redhat.com>
2636         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2637         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2638         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2639         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2640         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2641         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2642         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2643         * serial.c (serial_R##T, serial_W##T): Likewise.
2645 2008-11-21  Richard Henderson  <rth@redhat.com>
2647         * Initial commit.
2649 Copyright (C) 2008-2024 Free Software Foundation, Inc.
2651 Copying and distribution of this file, with or without modification,
2652 are permitted in any medium without royalty provided the copyright
2653 notice and this notice are preserved.