libstdc++: Simplify C++20 implementation of std::variant
[official-gcc.git] / libitm / ChangeLog
blob394cf231352c57e9457e450efc74307b9585577a
1 2024-05-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         PR testsuite/115294
4         * testsuite/lib/libitm.exp (libitm_target_compile): Pass new
5         dg-additional-files-options args.
7 2024-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9         * Makefile.am [LIBITM_BUILD_VERSIONED_SHLIB_SUN] (libitm.map-sun):
10         Pass $(libitm_la_OBJECTS), $(libitm_la_LIBADD) to make_sunver.pl
11         unmodified.
12         * Makefile.in: Regenerate.
14 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
16         * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
17         words in comment; not not -> not to.
19 2024-02-05  Marek Polacek  <polacek@redhat.com>
21         * containers.h (vector): Remove the template-id in constructors.
23 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
25         * libitm.texi: Bump @copying's copyright year.
27 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
29         * testsuite/lib/libitm.exp: Likewise.
30         * testsuite/libitm.c++/c++.exp: Likewise.
32 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
34         * Makefile.am: Handle Darwin rpaths.
35         * Makefile.in: Regenerate.
36         * configure: Regenerate.
37         * configure.ac: Handle Darwin rpaths.
39 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
41         * configure: Regenerate.
43 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
45         * configure: Regenerate.
47 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
49         * configure: Regenerate.
51 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
53         * configure: Regenerate.
55 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
57         * configure: Regenerate.
59 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
61         * configure: Regenerate.
63 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
65         * configure.ac (PERL): Remove.
66         * configure: Regenerate.
67         * Makefile.in: Likewise.
68         * testsuite/Makefile.in: Likewise.
70 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
72         * libitm.texi: Bump @copying's copyright year.
74 2022-11-14  Martin Liska  <mliska@suse.cz>
76         Revert:
77         2022-11-14  Martin Liska  <mliska@suse.cz>
79         * doc/c-c++-language-constructs-for-tm.rst: New file.
80         * doc/conf.py: New file.
81         * doc/copyright.rst: New file.
82         * doc/enabling-libitm.rst: New file.
83         * doc/gnu-free-documentation-license.rst: New file.
84         * doc/index.rst: New file.
85         * doc/indices-and-tables.rst: New file.
86         * doc/internals.rst: New file.
87         * doc/locking-conventions.rst: New file.
88         * doc/nesting-flat-vs-closed.rst: New file.
89         * doc/the-libitm-abi.rst: New file.
90         * doc/the-libitm-abi/function-list.rst: New file.
91         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
92         * doc/the-libitm-abi/library-design-principles.rst: New file.
93         * doc/the-libitm-abi/memory-model.rst: New file.
94         * doc/the-libitm-abi/non-objectives.rst: New file.
95         * doc/the-libitm-abi/objectives.rst: New file.
96         * doc/the-libitm-abi/sample-code.rst: New file.
97         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
98         * doc/tm-methods-and-method-groups.rst: New file.
100 2022-11-14  Martin Liska  <mliska@suse.cz>
102         Revert:
103         2022-11-14  Martin Liska  <mliska@suse.cz>
105         * Makefile.in: Support Sphinx based documentation.
107 2022-11-14  Martin Liska  <mliska@suse.cz>
109         Revert:
110         2022-11-14  Martin Liska  <mliska@suse.cz>
112         * libitm.texi: Removed.
114 2022-11-14  Martin Liska  <mliska@suse.cz>
116         Revert:
117         2022-11-14  Martin Liska  <mliska@suse.cz>
119         * Makefile.in: Support --with-sphinx-build.
120         * configure.ac: Likewise.
121         * configure: Regenerate.
123 2022-11-14  Martin Liska  <mliska@suse.cz>
125         Revert:
126         2022-11-14  Martin Liska  <mliska@suse.cz>
128         * Makefile.in: Build info pages conditionally.
130 2022-11-14  Martin Liska  <mliska@suse.cz>
132         Revert:
133         2022-11-14  Martin Liska  <mliska@suse.cz>
135         * doc/c-c++-language-constructs-for-tm.rst:
136         Add trailing newline.
137         * doc/copyright.rst:
138         Add trailing newline.
139         * doc/enabling-libitm.rst:
140         Add trailing newline.
141         * doc/gnu-free-documentation-license.rst:
142         Add trailing newline.
143         * doc/index.rst:
144         Add trailing newline.
145         * doc/indices-and-tables.rst:
146         Add trailing newline.
147         * doc/internals.rst:
148         Add trailing newline.
149         * doc/locking-conventions.rst:
150         Add trailing newline.
151         * doc/nesting-flat-vs-closed.rst:
152         Add trailing newline.
153         * doc/the-libitm-abi.rst:
154         Add trailing newline.
155         * doc/the-libitm-abi/function-list.rst:
156         Add trailing newline.
157         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
158         Add trailing newline.
159         * doc/the-libitm-abi/library-design-principles.rst:
160         Add trailing newline.
161         * doc/the-libitm-abi/memory-model.rst:
162         Add trailing newline.
163         * doc/the-libitm-abi/non-objectives.rst:
164         Add trailing newline.
165         * doc/the-libitm-abi/objectives.rst:
166         Add trailing newline.
167         * doc/the-libitm-abi/sample-code.rst:
168         Add trailing newline.
169         * doc/the-libitm-abi/types-and-macros-list.rst:
170         Add trailing newline.
171         * doc/tm-methods-and-method-groups.rst:
172         Add trailing newline.
174 2022-11-14  Martin Liska  <mliska@suse.cz>
176         Revert:
177         2022-11-14  Martin Liska  <mliska@suse.cz>
179         * Makefile.in: Add missing HAS_SPHINX_BUILD.
181 2022-11-14  Martin Liska  <mliska@suse.cz>
183         Revert:
184         2022-11-14  Martin Liska  <mliska@suse.cz>
186         * doc/conf.py: Add newline at last line.
188 2022-11-14  Martin Liska  <mliska@suse.cz>
190         Revert:
191         2022-11-14  Martin Liska  <mliska@suse.cz>
193         PR other/107620
194         * configure: Regenerate.
195         * configure.ac: Always set sphinx-build.
197 2022-11-13  Martin Liska  <mliska@suse.cz>
199         PR other/107620
200         * configure: Regenerate.
201         * configure.ac: Always set sphinx-build.
203 2022-11-10  Martin Liska  <mliska@suse.cz>
205         * doc/conf.py: Add newline at last line.
207 2022-11-09  Martin Liska  <mliska@suse.cz>
209         * Makefile.in: Add missing HAS_SPHINX_BUILD.
211 2022-11-09  Martin Liska  <mliska@suse.cz>
213         * doc/c-c++-language-constructs-for-tm.rst:
214         Add trailing newline.
215         * doc/copyright.rst:
216         Add trailing newline.
217         * doc/enabling-libitm.rst:
218         Add trailing newline.
219         * doc/gnu-free-documentation-license.rst:
220         Add trailing newline.
221         * doc/index.rst:
222         Add trailing newline.
223         * doc/indices-and-tables.rst:
224         Add trailing newline.
225         * doc/internals.rst:
226         Add trailing newline.
227         * doc/locking-conventions.rst:
228         Add trailing newline.
229         * doc/nesting-flat-vs-closed.rst:
230         Add trailing newline.
231         * doc/the-libitm-abi.rst:
232         Add trailing newline.
233         * doc/the-libitm-abi/function-list.rst:
234         Add trailing newline.
235         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
236         Add trailing newline.
237         * doc/the-libitm-abi/library-design-principles.rst:
238         Add trailing newline.
239         * doc/the-libitm-abi/memory-model.rst:
240         Add trailing newline.
241         * doc/the-libitm-abi/non-objectives.rst:
242         Add trailing newline.
243         * doc/the-libitm-abi/objectives.rst:
244         Add trailing newline.
245         * doc/the-libitm-abi/sample-code.rst:
246         Add trailing newline.
247         * doc/the-libitm-abi/types-and-macros-list.rst:
248         Add trailing newline.
249         * doc/tm-methods-and-method-groups.rst:
250         Add trailing newline.
252 2022-11-09  Martin Liska  <mliska@suse.cz>
254         * Makefile.in: Build info pages conditionally.
256 2022-11-09  Martin Liska  <mliska@suse.cz>
258         * Makefile.in: Support --with-sphinx-build.
259         * configure.ac: Likewise.
260         * configure: Regenerate.
262 2022-11-09  Martin Liska  <mliska@suse.cz>
264         * libitm.texi: Removed.
266 2022-11-09  Martin Liska  <mliska@suse.cz>
268         * Makefile.in: Support Sphinx based documentation.
270 2022-11-09  Martin Liska  <mliska@suse.cz>
272         * doc/c-c++-language-constructs-for-tm.rst: New file.
273         * doc/conf.py: New file.
274         * doc/copyright.rst: New file.
275         * doc/enabling-libitm.rst: New file.
276         * doc/gnu-free-documentation-license.rst: New file.
277         * doc/index.rst: New file.
278         * doc/indices-and-tables.rst: New file.
279         * doc/internals.rst: New file.
280         * doc/locking-conventions.rst: New file.
281         * doc/nesting-flat-vs-closed.rst: New file.
282         * doc/the-libitm-abi.rst: New file.
283         * doc/the-libitm-abi/function-list.rst: New file.
284         * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
285         * doc/the-libitm-abi/library-design-principles.rst: New file.
286         * doc/the-libitm-abi/memory-model.rst: New file.
287         * doc/the-libitm-abi/non-objectives.rst: New file.
288         * doc/the-libitm-abi/objectives.rst: New file.
289         * doc/the-libitm-abi/sample-code.rst: New file.
290         * doc/the-libitm-abi/types-and-macros-list.rst: New file.
291         * doc/tm-methods-and-method-groups.rst: New file.
293 2022-10-31  Xiongchuan Tan  <xc-tan@outlook.com>
295         * configure.tgt: Add riscv support.
296         * config/riscv/asm.h: New file.
297         * config/riscv/sjlj.S: New file.
298         * config/riscv/target.h: New file.
300 2022-10-13  Lulu Cheng  <chenglulu@loongson.cn>
302         * config/loongarch/sjlj.S: Add a soft floating point condition to the
303         register recovery part of the code.
305 2022-10-12  Martin Liska  <mliska@suse.cz>
307         * configure: Regenerate.
309 2022-10-11  Olivier Hainque  <hainque@adacore.com>
310             Olivier Hainque  <hainque@adacore.com>
312         * configure: Regenerate.
314 2022-09-28  Lulu Cheng  <chenglulu@loongson.cn>
315             Yang Yujie  <yangyujie@loongson.cn>
317         * configure.tgt: Add loongarch support.
318         * config/loongarch/asm.h: New file.
319         * config/loongarch/sjlj.S: New file.
320         * config/loongarch/target.h: New file.
322 2022-08-31  Martin Liska  <mliska@suse.cz>
324         * configure: Regenerate.
326 2022-08-31  Martin Liska  <mliska@suse.cz>
328         * configure: Regenerate.
330 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
332         * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
334 2022-02-03  David Seifert  <soap@gentoo.org>
335             Jakub Jelinek  <jakub@redhat.com>
337         * configure.ac: Support --disable-werror.
338         * configure: Regenerate.
340 2022-01-31  Martin Liska  <mliska@suse.cz>
342         * acinclude.m4: Detect *_ld_is_mold and use it.
343         * configure: Regenerate.
345 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
347         * libitm.texi: Bump @copying's copyright year.
349 2021-11-26  Iain Sandoe  <iain@sandoe.co.uk>
351         * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
352         target does not support HAVE_ELF_STYLE_WEAKREF then do not
353         try to test the __cxa_get_globals against NULL.
355 2021-06-17  Jonathan Wakely  <jwakely@redhat.com>
357         PR libstdc++/91488
358         * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
360 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
362         PR target/70454
363         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
364         be added through preprocessor check on
365         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
367 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
369         * configure: Re-generate.
371 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
373         * libitm.texi: Bump @copying's copyright year.
375 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
377         PR target/97865
378         * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
379         * configure: Regenerate.
381 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
383         * configure: Regenerate.
385 2020-10-01  Alan Modra  <amodra@gmail.com>
387         * config/powerpc/sjlj.S: Support __PCREL__ code.
389 2020-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
391         * config/aarch64/sjlj.S: Add conditional pac-ret protection.
393 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
395         * config/aarch64/sjlj.S: Add BTI marking and related definitions,
396         and add BTI c to function entries.
398 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
400         * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
402 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
404         PR bootstrap/95413
405         * configure: Regenerated.
407 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
409         PR bootstrap/95147
410         * configure: Regenerated.
412 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
414         * configure: Regenerated.
416 2020-05-12  Nathan Sidwell  <nathan@acm.org>
418         Fix throw specifiers on interface.
419         * libitm/libitm.h (_ITM_NOTHROW): Define.
420         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
421         (_ITM_cxa_begin_catch): Use it.
422         * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
423         __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
424         __cxa_get_globals.
425         (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
426         (_ITM_cxa_begin_catch): Likewise.
428 2020-05-05  Nathan Sidwell  <nathan@acm.org>
430         * testsuite/lib/libitm.exp (libitm_init): Add
431         -fdiagnostics-color=never to options.
433 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
435         PR libstdc++/79193
436         PR libstdc++/88999
438         * configure: Regenerated.
440 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
442         * configure.ac: Handle `--with-toolexeclibdir='.
443         * Makefile.in: Regenerate.
444         * aclocal.m4: Regenerate.
445         * configure: Regenerate.
446         * testsuite/Makefile.in: Regenerate.
448 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
450         Update copyright years.
452         * libitm.texi: Bump @copying's copyright year.
454 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
456         PR libgomp/91938
457         * configure.tgt: Avoid IE tls on *-*-musl*.
459 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
461         * configure: Regenerate.
463 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
465         * config/arm/sjlj.S (ldaddr): Add FDPIC support.
467 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
469         * configure.tgt: Handle *-*-uclinux*.
470         * configure: Regenerate.
472 2019-09-06  Florian Weimer  <fweimer@redhat.com>
474         * configure: Regenerate.
476 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
478         PR other/79543
479         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
480         scanning to conform to the GNU Coding Standards.
481         * configure: Regenerate.
483 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
485         * Makefile.am (finclude): Remove.
486         * Makefile.in: Regenerated.
488 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
490         Update copyright years.
492 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
494         * libitm.texi: Bump @copying's copyright year.
496 2018-12-16  Jakub Jelinek  <jakub@redhat.com>
498         PR c++/88482
499         * eh_cpp.cc (__cxa_throw): Change DEST argument type from
500         void * to void (*) (void *).
501         (_ITM_cxa_throw): Likewise.
502         * libitm.h (_ITM_cxa_throw): Likewise.
503         * libitm.texi (_ITM_cxa_throw): Likewise.
505 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
507         * config/powerpc/target.h (htm_available):  Add support for
508         PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.
510 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
512         PR bootstrap/82856
513         * Makefile.am: Include multilib.am.
514         (AUTOMAKE_OPTIONS): Add info-in-builddir.
515         (CLEANFILES): Remove libitm.info.
516         * configure.ac: Remove AC_PREREQ.
517         * testsuite/Makefile.am (RUNTEST): Remove quotes.
518         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
519         Regenerate.
521 2018-10-30  Nicholas Krause <xerofoify@gmail.com>
523         PR libitm/86293
524         * method-serial.cc: Mark varible as potentially unused
525         to silence warning.
527 2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
529         * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
530         absolute relocation in a shared library.
532 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
534         PR libitm/85988
535         * config/linux/x86/tls.h (SEG_READ): Use the offset of
536         __private_tm as base.
537         (SEG_WRITE): Likewise.
538         (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
539         (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
540         (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
541         (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
542         (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
544 2018-05-17  Jason Merrill  <jason@redhat.com>
546         * beginend.cc (save): Disable -Werror=deprecated-copy.
548 2018-05-02  Tom de Vries  <tom@codesourcery.com>
550         PR testsuite/85106
551         * testsuite/lib/libitm.exp: Include scanltranstree.exp.
553 2018-05-02  Tom de Vries  <tom@codesourcery.com>
555         PR testsuite/85106
556         * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
558 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
560         * config/x86/sjlj.S (_ITM_beginTransaction): Add
561         (__CET__ & 2) != 0 check for shadow stack.
562         (GTM_longjmp): Likewise.
564 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
566         * configure: Regenerated.
568 2018-04-23  H.J. Lu  <hongjiu.lu@intel.com>
570         PR target/85489
571         * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
573 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
575         * configure: Regenerated.
577 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
579         PR jit/85384
580         * configure: Regenerate.
582 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
584         PR target/84148
585         * configure: Regenerate.
587 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
589         Update copyright years.
591         * libitm.texi: Bump @copying's copyright year.
593 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
595         * Makefile.in: Regenerate.
596         * acinclude.m4: Add enable.m4 and cet.m4.
597         * config/x86/sjlj.S: Include cet.h.
598         (_ITM_beginTransaction): Add _CET_ENDBR.
599         Save Shadow Stack pointer.
600         (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
601         * config/x86/target.h (struct gtm_jmpbuf):
602         Add new field for Shadow Stack pointer.
603         * configure: Regenerate.
604         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
605         * configure.ac: Update libtool_VERSION for x86.
606         * testsuite/Makefile.in: Regenerate.
608 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
610         * libitm/config/x86/target.h: Add new field (ssp).
611         * libitm/config/x86/sjlj.S: Change offsets.
613 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
615         * testsuite/lib/libitm.exp: Load scanlang.exp.
617 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
619         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
621 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
623         PR other/79046
624         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
625         of cat to get version from BASE-VER file.
626         * testsuite/Makefile.in: Regenerated.
628 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
630         * config/x86/target.h (htm_available): Determine vendor from
631         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
633 2017-01-18  Torvald Riegel  <triegel@redhat.com>
635         * config/x86/target.h (htm_available): Add check for some processors
636         on which TSX is broken.
638 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
640         PR other/79046
641         * configure.ac: Add GCC_BASE_VER.
642         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
643         get version from BASE-VER file.
644         * testsuite/Makefile.in: Regenerated.
645         * configure: Regenerated.
646         * Makefile.in: Regenerated.
648 2017-01-04  Alan Modra  <amodra@gmail.com>
650         * Makefile.in: Regenerate.
651         * testsuite/Makefile.in: Regenerate.
653 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
655         Update copyright years.
657         * libitm.texi: Bump @copying's copyright year.
659 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
661         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
662         * aclocal.m4: Regenerate.
663         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
664         LIBITM_CHECK_LINKER_HWCAP.
666 2016-11-15  Matthias Klose  <doko@ubuntu.com>
668         * configure: Regenerate.
670 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
672         PR libitm/70456
673         * util.cc (xmalloc): Use posix_memalign to allocate memory on
674         on cache line if requested.
676 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
678         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
679         function attribute to disable floating point in begin_transaction() on
680         S/390.
681         * beginend.cc (begin_transaction): Use
682         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
684 2016-01-22  Torvald Riegel  <triegel@redhat.com>
686         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
687         boundary.
688         (htm_fastpath): Remove.
689         (gtm_thread::begin_transaction): Fix HTM fastpath.
690         (_ITM_commitTransaction): Adapt.
691         (_ITM_commitTransactionEH): Adapt.
692         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
693         and accessors.
694         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
695         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
696         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
697         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
698         * libitm/method-serial.cc (htm_mg): Adapt.
699         (gtm_thread::serialirr_mode): Adapt.
700         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
702 2016-01-21  Torvald Riegel  <triegel@redhat.com>
704         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
705         or AIX.
707 2016-01-19  Richard Henderson  <rth@redhat.com>
709         PR bootstrap/69343
710         PR bootstrap/69339
711         Revert:
712         2016-01-13  Richard Henderson  <rth@redhat.com>
714         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
715         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
716         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
717         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
718         * configure.ac (ARCH_AARCH64): New conditional.
719         (ARCH_PPC, ARCH_S390): Likewise.
720         * Makefile.in, configure: Rebuild.
722         * libitm.h (_ITM_TYPE_M128): Always define.
723         * vect64.cc: Split ...
724         * vect128.cc: ... out of...
725         * config/x86/x86_sse.cc: ... here.
726         * config/arm/neon.cc: New file.
728 2016-01-19  Torvald Riegel  <triegel@redhat.com>
730         * local_type_traits: Remove file.
731         * libitm_i.h: Don't include it anymore.
732         (sized_integral): Remove.
734 2016-01-16  Torvald Riegel  <triegel@redhat.com>
736         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
737         safety.
738         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
739         * libitm/testsuite/libitm.c/priv-1.c: New.
741 2015-01-15  Torvald Riegel  <triegel@redhat.com>
743         testsuite/libitm.c++/libstdc++-safeexc.C: New.
745 2016-01-13  Torvald Riegel  <triegel@redhat.com>
747         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
748         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
749         (gtm_rwlock::write_unlock): Likewise.
751 2016-01-13  Richard Henderson  <rth@redhat.com>
753         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
754         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
755         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
756         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
757         * configure.ac (ARCH_AARCH64): New conditional.
758         (ARCH_PPC, ARCH_S390): Likewise.
759         * Makefile.in, configure: Rebuild.
761         * libitm.h (_ITM_TYPE_M128): Always define.
762         * vect64.cc: Split ...
763         * vect128.cc: ... out of...
764         * config/x86/x86_sse.cc: ... here.
765         * config/arm/neon.cc: New file.
767 2016-01-13  Torvald Riegel  <triegel@redhat.com>
769         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
770         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
771         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
772         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
773         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
774         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
775         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
776         (serialirr_dispatch::snapshot_most_recent): New.
777         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
779 2016-01-12  Torvald Riegel  <triegel@redhat.com>
781         * libitm_i.h (gtm_mask_stack): Remove.
782         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
783         * stmlock.h: Remove file.
784         * config/alpha/cacheline.h: Likewise.
785         * config/generic/cacheline.h: Likewise.
786         * config/powerpc/cacheline.h: Likewise.
787         * config/sparc/cacheline.h: Likewise.
788         * config/x86/cacheline.h: Likewise.
790 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
792         Update copyright years.
794         * libitm.texi: Bump @copying's copyright year.
796 2015-11-26  Torvald Riegel  <triegel@redhat.com>
798         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
799         (ml_wt_dispatch::pre_write): Adapt.
800         (ml_wt_dispatch::pre_load): Likewise.
802 2015-11-22  Torvald Riegel  <triegel@redhat.com>
804         * libitm_i.h (gtm_alloc_action): Remove union.
805         * testsuite/libitm.c/alloc-1.c: New.
807 2015-11-19  Torvald Riegel  <triegel@redhat.com>
809         * testsuite/libitm.c++/eh-5.C: New.
810         * libitm.h (_ITM_cxa_free_exception): New.
811         * libitm.map (_ITM_cxa_free_exception): Add it.
812         * libitm.texi: Update ABI docs.
813         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
814         (gtm_transaction_cp::cxa_uncaught_count): Add.
815         (gtm_thread::cxa_unthrown): Remove.
816         (gtm_thread::cxa_uncaught_count_ptr): Add.
817         (gtm_thread::cxa_uncaught_count): Add.
818         (gtm_thread::drop_references_allocations): Rename to...
819         (gtm_thread::discard_allocation): ... this and adapt.
820         (gtm_thread::init_cpp_exceptions): New.
821         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
822         (gtm_thread::begin_transaction): Likewise.
823         (gtm_transaction_cp::save): Likewise.
824         (gtm_thread::trycommit): Likewise.
825         * eh_cpp.cc: Add overview comments.
826         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
827         (free_any_exception, _ITM_cxa_free_exception): New.
828         (gtm_thread::init_cpp_exceptions): Define.
829         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
830         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
831         (gtm_thread::revert_cpp_exceptions): Likewise.
833 2015-11-09  Torvald Riegel  <triegel@redhat.com>
835         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
836         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
837         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
838         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
839         (gtm_thread::forget_allocations): New overload with size_t argument.
840         * alloc.c (gtm_thread::forget_allocation): Define new overload and
841         adapt existing one.
842         (gtm_thread::record_allocation): Adapt.
843         (gtm_thread::commit_allocations_1): Adapt.
844         (gtm_thread::commit_allocations_2): Adapt.
845         * testsuite/libitm.c++/newdelete.C: New.
847 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
848             Joseph Myers  <joseph@codesourcery.com>
849             Mark Shinwell  <shinwell@codesourcery.com>
850             Andrew Stubbs  <ams@codesourcery.com>
851             Rich Felker <dalias@libc.org>
853         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
854         GTM_begin_transaction for compatibility with FDPIC.
856 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
858         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
859         using load_gcc_lib.
861 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
863         PR libitm/61164
864         * local_atomic (__always_inline): Rename to...
865         (__libitm_always_inline): ... this.
867 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
869         PR target/52482
870         * config/powerpc/sjlj.S: Port to Xcode 2.5.
872 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
874         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
875         operands "op" and "val" to int.
877 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
879         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
880         "op" and "val" to int.
882 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
884         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
885         "op" and "val" to int.
887 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
889         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
890         Declare as static int.
891         (FUTEX_PRIVATE_FLAG): Remove L suffix.
892         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
894 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
896         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
897         sys_futex0 function.
899 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
901         * Makefile.in: Regenerated with automake-1.11.6.
902         * aclocal.m4: Likewise.
903         * configure: Likewise.
904         * testsuite/Makefile.in: Likewise.
906 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
908         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
909         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
911 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
913         PR libitm/64360
914         * libitm.c/stackundo.c (test2): Make it static.
915         (test1): Likewise.
917 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
919         Update copyright years.
921 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
923         * libitm.texi: Bump @copying's copyright year.
925 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
927         * testsuite/lib/libitm.exp: Load target-utils.exp.
928         Move load of target-supports.exp earlier.
930 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
932         * configure.tgt (x86_64): Tune -m32 multilib to generic.
934 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
936         PR bootstrap/63784
937         * configure: Regenerated.
939 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
941         PR target/63610
942         * configure: Regenerate.
944 2014-10-06  Marek Polacek  <polacek@redhat.com>
946         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
947         * testsuite/libitm.c/memset-1.c: Likewise.
949 2014-07-24  Richard Henderson  <rth@redhat.com>
951         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
952         addressing mode in epilogue.
954 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
956         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
957         -mclear-hwcap instead.
958         * configure: Regenerate.
959         * clearcap.map: Remove.
961 2014-05-21  John Marino  <gnugcc@marino.st>
963         * configure.tgt (*-*-dragonfly*): New target.
965 2014-05-19  Richard Henderson  <rth@redhat.com>
967         * config/aarch64/sjlj.S: New file.
968         * config/aarch64/target.h: New file.
969         * configure.tgt: Enable aarch64.
971 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
973         * config/generic/asmcfi.h: Also check for
974         __GCC_HAVE_DWARF2_CFI_ASM.
976 2013-04-02  Richard Henderson  <rth@redhat.com>
978         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
979         * config/arm/target.h, config/sh/target.h: Likewise.
980         * config/sparc/target.h, config/x86/target.h: Likewise.
982 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
984         * config/linux/futex_bits.h: Include errno.h.
985         (sys_futex0): If syscall returns -1, return -errno rather than
986         -1.
988 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
990         * libitm.texi (Index): Rename to Library Index.
992 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
994         PR libitm/53113
995         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
996         (x86_avx.lo): Append -mavx to CXXFLAGS.
997         * Makefile.in: Regenerate.
999 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1001         Update copyright years
1003 2014-01-02  Tobias Burnus  <burnus@net-b.de>
1005         * libitm.texi: Bump @copying's copyright year.
1007 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1009         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
1010         (FUNC): Define ELFv2 variant.
1011         (END): Likewise.
1012         (HIDDEN): Likewise.
1013         (CALL): Likewise.
1014         (BASE): Likewise.
1015         (LR_SAVE): Likewise.
1017 2013-09-20  Alan Modra  <amodra@gmail.com>
1019         * configure: Regenerate.
1021 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1023         * config/posix/rwlock.cc: Fix initialization order.
1025 2013-08-30  Torvald Riegel  <triegel@redhat.com>
1027         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1028         (htm_fastpath): Assign an asm name.
1029         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1030         HTM fast paths.
1031         (_ITM_actions): Likewise.
1032         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1033         x86_64.
1034         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1035         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
1036         field to the start of the structure.
1037         * config/linux/rwlock.h (gtm_rwlock): Update comments.
1038         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1039         handling for custom HTM fast paths.
1041 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1042         Revert:
1043         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1045         * configure.tgt: Add -msoft-float to XCFLAGS.
1047 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1049         * configure.tgt: Add -msoft-float to XCFLAGS.
1051 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1053         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1054         (htm_transaction_active): Enable zEC12 instructions in the
1055         assembler.
1056         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1058 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1060         * acinclude.m4: Add htm asm check for s390.
1061         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1062         * configure: Regenerate.
1063         * config/s390/target.h: Remove __HTM__ check.
1064         (htm_available): Call getauxval to get hwcaps and check whether
1065         HTM is available or not.
1067 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1069         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1070         * configure.ac: Use it.
1071         (AC_CHECK_HEADERS): Check for sys/auxv.h.
1072         (AC_CHECK_FUNCS): Check for getauxval.
1073         * config.h.in, configure: Rebuild.
1074         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1075         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1076         (USE_HTM_FASTPATH): Define.
1077         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1078         _HTM_RETRIES) New macros.
1079         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1080         htm_begin_success, htm_commit, htm_transaction_active): New functions.
1082 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1084         * config/s390/target.h: Include htmintrin.h.
1085         (_HTM_ITM_RETRIES): New macro definition.
1086         (htm_available, htm_init, htm_begin, htm_begin_success)
1087         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1089 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1090             Cesar Philippidis  <cesar@codesourcery.com>
1092         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1093         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1094         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1095         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1097 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1099         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1100         (_ITM_getTransactionId): Same.
1101         * config/x86/target.h (htm_transaction_active): New.
1103 2013-06-20  Torvald Riegel  <triegel@redhat.com>
1105         PR libitm/57643
1106         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1107         the HTM fastpath.
1109 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
1111         PR bootstrap/56714
1112         * local_atomic (__always_inline): Always define our version.
1113         (__calculate_memory_order): Mark inline.
1114         (atomic_thread_fence): Ditto.
1115         (atomic_signal_fence): Ditto.
1116         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1117         (atomic_bool::atomic_flag_clear_explicit): Ditto.
1118         (atomic_bool::atomic_flag_test_and_set): Ditto.
1119         (atomic_bool::atomic_flag_clear): Ditto.
1121 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1123         * config/s390/sjlj.S: New file.
1124         * config/s390/target.h: New file.
1125         * configure.tgt: Set options for S/390.
1127 2013-03-23  Andi Kleen  <ak@linux.intel.com>
1129         * local_atomic (__always_inline): Add.
1130         (__calculate_memory_order, atomic_thread_fence,
1131         atomic_signal_fence, test_and_set, clear, store, load,
1132         exchange, compare_exchange_weak, compare_exchange_strong,
1133         fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1134         Add __always_inline to force inlining.
1136 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1137             Jack Howarth  <howarth@bromo.med.uc.edu>
1138             Patrick Marlier  <patrick.marlier@gmail.com>
1140         PR libitm/55693
1141         * alloc_cpp.cc: Enable function declarations on darwin.
1142         * eh_cpp.cc: Likewise.
1144 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1146         Update copyright years.
1148 2012-11-09  Torvald Riegel  <triegel@redhat.com>
1150         * beginend.cc (htm_fastpath): New.
1151         (gtm_thread::begin_transaction, _ITM_commitTransaction,
1152         _ITM_commitTransactionEH): Add HTM fastpath handling.
1153         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1154         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1155         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1156         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1157         * configure.tgt: Add -mrtm to XCFLAGS.
1158         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1159         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1160         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1161         * retry.cc (parse_default_method): Add HTM method parsing.
1162         (gtm_thread::number_of_threads_changed): Use HTM by default if
1163         available.
1165 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1167         * configure: Regenerate.
1169 2012-10-31  Richard Henderson  <rth@redhat.com>
1171         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1172         * configure.ac: Use it.
1173         * config.h.in, configure: Rebuild.
1174         * testsuite/Makefile.in: Rebuild.
1176 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1178         * libitm.texi: Clarify ABI requirements for data-logging functions.
1180 2012-10-24  Torvald Riegel  <triegel@redhat.com>
1182         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1183         it requires serial mode instead of assuming that for certain
1184         dispatchs.
1185         * dispatch.h (abi_dispatch::requires_serial): New.
1186         (abi_dispatch::abi_dispatch): Adapt.
1187         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1188         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1189         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1190         serial_dispatch::serial_dispatch,
1191         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1193 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1195         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1196         and ia32 declarations some more.
1197         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1199 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
1201         PR other/43620
1202         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1203         * configure: Regenerate.
1204         * Makefile.in: Regenerate.
1206 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1208         * configure: Regenerated.
1210 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
1212         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1214 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
1216         * eh_cpp.cc: Fix __cxa_end_catch declaration.
1218 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1220         * configure: Regenerated.
1222 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1224         PR libitm/52854
1225         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1226         for x86-64.
1228 2012-04-03  Tristan Gingold  <gingold@adacore.com>
1230         * configure: Regenerate.
1232 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1234         PR bootstrap/52812
1235         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1237 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1239         * testsuite/lib/libitm.exp: load fortran-modules.exp
1241 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1243         * configure.tgt (*-*-irix6*): Remove.
1245 2012-03-13  Torvald Riegel  <triegel@redhat.com>
1247         PR libitm/52526
1248         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1249         wake-up.
1251 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1253         * configure.tgt (*-*-osf*): Remove.
1254         * configure: Regenerate.
1256 2012-03-05  Torvald Riegel  <triegel@redhat.com>
1258         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1259         memtransfer/memset if size isn't larger than zero.
1261 2012-03-02  Torvald Riegel  <triegel@redhat.com>
1263         * libitm.texi: Link to specification and add a usage example.
1265 2012-02-24  Torvald Riegel  <triegel@redhat.com>
1267         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1268         default dispatch for more than 1 thread to ml_wt.
1270 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1272         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1274 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1276         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1278 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1280         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1281         serial mode corner cases made obsolete by prior gtm_rwlock changes.
1282         (gl_wt_dispatch.rollback): Same.
1284 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1286         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1288 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1290         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1291         for RfW src.  Optimize number of calls to gtm_thr.
1293 2012-02-20  Torvald Riegel  <triegel@redhat.com>
1295         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1296         acquisition to ...
1297         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1298         (default_dispatch): Make atomic.
1299         (GTM::gtm_thread::set_default_dispatch): Access atomically.
1300         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1301         use decide_begin_dispatch() if default_dispatch might have changed.
1302         (GTM::gtm_thread::number_of_threads_changed): Initialize
1303         default_dispatch here.
1305 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
1306             Patrick Marlier  <patrick.marlier@gmail.com>
1308         PR libitm/52220
1309         * alloc_cpp.cc: No dummy definitions for darwin.
1310         * eh_cpp.cc: Likewise.
1312 2012-02-14  Richard Henderson  <rth@redhat.com>
1314         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1316 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1318         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1320 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1322         * libitm_i.h (GTM::gtm_rwlog_entry): New.
1323         (GTM::gtm_thread): Add read and write logs.
1324         (GTM::dispatch_ml_wt): Declare.
1325         * retry.cc (parse_default_method): Support ml_wt.
1326         * method-ml.cc: New file.
1327         * Makefile.am: Add method-ml.cc.
1328         * Makefile.in: Regenerate.
1330 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1332         * dispatch.h (GTM::abi_dispatch::supports): New.
1333         (GTM::method_group::reinit): New.
1334         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1335         (GTM::gtm_thread::number_of_threads_changed): Check that the method
1336         supports the current situation.
1338 2012-02-14  Torvald Riegel  <triegel@redhat.com>
1340         * util.cc (GTM::xcalloc): New.
1341         * common.h (GTM::xcalloc): Declare.
1343 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1345         * config/sparc/target.h (cpu_relax): Read from CC register.
1346         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1348 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
1350         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1352 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1354         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1355         * config/sparc/cacheline.h: New file.
1356         * config/sparc/target.h: Likewise.
1357         * config/sparc/sjlj.S: Likewise.
1358         * config/linux/sparc/futex_bits.h: Likewise.
1360 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1362         * configure.ac (link_itm): Fix comment.
1363         * configure: Regenerate.
1364         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1366 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1368         PR libitm/51822
1369         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1370         Correct libgomp references.
1372 2012-01-24  Torvald Riegel  <triegel@redhat.com>
1374         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1375         wake-up.
1377 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1379         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1380         end of structure.
1381         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1382         offset values.  Do not copy return address.  Decrement stack
1383         by 56 bytes only.
1384         (GTM_longjump) [__x86_64__]: Update offset values.
1386 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
1388         PR libitm/51830
1389         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1390         the first function argument to %eax.
1392 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1394         * libitm.h (_ITM_getThreadnum): Remove.
1395         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1397 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1399         * clearcap.map: New file.
1400         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1401         * configure.ac: Call it.
1402         Clear HWCAP_LDFLAGS if defaulting to -mavx.
1403         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1404         * configure: Regenerate.
1405         * Makefile.in: Regenerate.
1406         * testsuite/Makefile.in: Regenerate.
1408 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1410         PR libitm/51173
1411         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1412         include, exclude options.
1414 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1416         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1417         rolling back.
1418         * containers.h (GTM::vector::set_size): New.
1420 2012-01-14  Torvald Riegel  <triegel@redhat.com>
1422         PR libitm/51855
1423         * config/generic/tls.h (GTM::mask_stack_top): New.
1424         (GTM::mask_stack_bottom): Declare.
1425         * config/generic/tls.c (GTM::mask_stack_bottom): New.
1426         * local.cc (gtm_undolog::rollback): Filter out any updates that
1427         overlap the libitm stack.  Add current transaction as parameter.
1428         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1429         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1430         * testsuite/libitm.c/stackundo.c: New test.
1432 2012-01-10  Richard Henderson  <rth@redhat.com>
1434         * libitm_i.h (_Unwind_DeleteException): Declare weak.
1435         * eh_cpp.cc (_Unwind_DeleteException): Define for
1436         !HAVE_ELF_STYLE_WEAKREF.
1438 2012-01-08  Torvald Riegel  <triegel@redhat.com>
1440         * local.cc (GTM_LB): Use GTM::gtm_undolog.
1441         (GTM::gtm_thread::drop_references_undolog): Remove.
1442         (GTM::gtm_thread::commit_undolog,
1443         GTM::gtm_thread::rollback_undolog): Move to ...
1444         * libitm_i.h (GTM::gtm_undolog): ...here. New.
1445         (GTM::gtm_undolog_entry): Remove.
1446         (GTM::gtm_thread): Adapt.
1447         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1448         (GTM::gtm_thread::trycommit): Adapt.
1449         * method-serial.cc (serial_dispatch::log): Adapt.
1450         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1451         (gl_wt_dispatch::store): Fix likely/unlikely.
1452         * containers.h (GTM::vector::resize): Add additional_capacity
1453         parameter and handle it.
1454         (GTM::vector::resize_noinline): New/adapt.
1455         (GTM::vector::push): New.
1457 2012-01-06  Richard Henderson  <rth@redhat.com>
1459         * configure.tgt: Support powerpc-linux and powerpc-darwin.
1460         * config/linux/powerpc/futex_bits.h: New file.
1461         * config/powerpc/cacheline.h: New file.
1462         * config/powerpc/sjlj.S: New file.
1463         * config/powerpc/target.h: New file.
1464         * config/generic/asmcfi.h (cfi_offset): New.
1465         (cfi_restore, cfi_undefined): New.
1467 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
1469         PR other/51171
1470         * testsuite/libitm.c/reentrant.c: Remove xfail.
1471         (thread): Pass x to pure().
1472         From Patrik Marlier <patrick.marlier@gmail.com>.
1474 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1476         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1477         privatization safety if already in serial mode.
1479 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1481         * beginend.cc (GTM::gtm_thread::restart): Add and handle
1482         finish_serial_upgrade parameter.
1483         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1484         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1485         Don't unset reader flag.
1486         (GTM::gtm_rwlock::write_upgrade_finish): New.
1487         * config/posix/rwlock.cc: Same.
1488         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1489         Declare.
1490         * config/posix/rwlock.h: Same.
1491         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1492         flag after commit or after rollback when restarting.
1494 2011-12-24  Torvald Riegel  <triegel@redhat.com>
1496         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1497         (GTM::gtm_thread::try_commit): Changed memory order.
1498         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1499         as parameter.
1500         * config/linux/x86/futex_bits.h (sys_futex0): Same.
1501         * config/linux/sh/futex_bits.h (sys_futex0): Same.
1502         * config/linux/futex_bits.h (sys_futex0): Same.
1503         * config/linux/futex.cc (futex_wait, futex_wake): Same.
1504         * config/linux/futex.h (futex_wait, futex_wake): Same.
1505         * config/linux/rwlock.h (gtm_rwlock::writers,
1506         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1507         ints.
1508         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1509         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1510         gtm_rwlock::write_unlock): Fix memory orders and fences.
1511         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1512         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1513         gtm_rwlock::write_unlock): Same.
1514         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1515         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1516         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1517         Add comments.
1518         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1519         gl_wt_dispatch::load, gl_wt_dispatch::store,
1520         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1521         orders and fences.  Add comments.
1523 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
1525         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1526         * Makefile.in: Regenerated.
1528 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1530         * configure.tgt: Add sh* case.
1531         * config/sh/target.h: New file.
1532         * config/sh/sjlj.S: New file.
1533         * config/linux/sh/futex_bits.h: New file.
1535 2011-12-14  Richard Henderson  <rth@redhat.com>
1537         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1538         * config/arm/sjlj.S, config/arm/target.h: New files.
1539         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1540         (cfi_rel_offset): New.
1541         * config/linux/futex_bits.h: New file.
1542         * config/linux/futex.cc: Include futex_bits.h here...
1543         * config/linux/futex.h: ... not here.
1544         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1545         * configure.ac (ARCH_AM): New conditional.
1546         * Makefile.in, configure: Rebuild.
1547         * configure.tgt: Handle ARM.
1549 2011-12-13  Richard Henderson  <rth@redhat.com>
1551         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1552         signed/unsigned comparison werror.
1554         * local_atomic: New file.
1555         * libitm_i.h: Include it.
1556         (gtm_thread::shared_state): Use atomic template.
1557         * beginend.cc (GTM::gtm_clock): Use atomic template.
1558         (global_tid): Use atomic template if 64-bit atomics available.
1559         (gtm_thread::gtm_thread): Update shared_state access.
1560         (gtm_thread::trycommit): Likewise.
1561         (choose_code_path): Update global_tid access.
1562         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
1563         * stmlock.h (GTM::gtm_clock): Use atomic template.
1564         (gtm_get_clock, gtm_inc_clock): Update accesses.
1565         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1566         redundant __sync_synchronize after atomic shared_state access.
1567         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1568         (gtm_rwlock::write_lock_generic): Likewise.
1569         (gtm_rwlock::read_unlock): Likewise.
1570         * config/alpha/target.h (atomic_read_barrier): Remove.
1571         (atomic_write_barrier): Remove.
1572         * config/x86/target.h (atomic_read_barrier): Remove.
1573         (atomic_write_barrier): Remove.
1575 2011-11-30  Richard Henderson  <rth@redhat.com>
1577         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1578         * beginend.c (_ITM_abortTransaction): Update to match.
1579         (GTM::gtm_thread::restart): Likewise.
1580         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1581         * config/x86/sjlj.S (GTM_longjmp): Likewise.
1583 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1585         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1586         * Makefile.in: Regenerate.
1588 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1590         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1591         * alloc_cpp.cc: Generate dummy functions if we don't
1592         HAVE_ELF_STYLE_WEAKREF.
1593         * eh_cpp.cc: Likewise.
1594         * configure: Regenerate.
1595         * aclocal.m4:  Likewise.
1596         * config.h.in: Likewise.
1597         * Makefile.in: Likewise.
1598         * testsuite/Makefile.in: Likewise.
1600 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1602         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1603         __USER_LABEL_PREFIX__ for targets that use it.
1604         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1605         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1606         in portability to non-elf targets.
1607         (GTM_longjmp): Likewise.
1608         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1609         where required.
1611 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1613         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1614         * testsuite/libitm.c/memset-1.c: Likewise.
1616 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1618         * configure: Regenerate.
1620 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1622         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1623         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1624         * Makefile.am: Handle sun style versioning.
1625         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1626         * configure: Regenerate.
1627         * Makefile.in: Regenerate.
1629 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1631         * config/generic/asmcfi.h: Fix comment.
1632         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1633         sequence without .hidden support, error for non-ELF targets.
1634         (GTM_longjmp) [__ELF__]: Only use .hidden if
1635         HAVE_ATTRIBUTE_VISIBILITY.
1637 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1639         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1640         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1641         Dummy functions.
1642         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1643         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1645 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1647         PR bootstrap/51098
1648         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1649         * configure: Regenerate.
1651 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1653         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1655 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1657         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1658         .hidden.
1659         (.note.GNU-stack): Only use if __linux__.
1660         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1661         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1662         * testsuite/libitm.c/reentrant.c: Likewise.
1663         * testsuite/libitm.c/simple-2.c: Likewise.
1664         * testsuite/libitm.c/txrelease.c: Likewise.
1665         * testsuite/libitm.c++/static_ctor.C: Likewise.
1667 2011-11-10  Richard Henderson  <rth@redhat.com>
1669         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1670         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1671         * configure.ac (ARCH_X86_AVX): New conditional.
1672         * Makefile.in, configure: Rebuild.
1674 2011-11-09  Richard Henderson  <rth@redhat.com>
1676         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1677         * configure.ac: Use it.
1678         * config.h.in, configure: Rebuild.
1679         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1681 2011-11-09  Richard Henderson  <rth@redhat.com>
1683         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1684         * config/alpha/unaligned.h: Remove file.
1685         * config/generic/unaligned.h: Remove file.
1686         * config/x86/unaligned.h: Remove file.
1687         * config/generic/cachepage.h: Remove file.
1688         * config/posix/cachepage.cc: Remove file.
1689         * config/generic/cacheline.cc: Remove file.
1690         * config/x86/cacheline.cc: Remove file.
1691         * config/generic/cacheline.h (gtm_cacheline): Remove the
1692         store_mask, copy_mask, copy_mask_wb methods.
1693         * config/x86/cacheline.h: Likewise.
1694         * config/alpha/cacheline.h: Fall back to generic after setting size.
1695         * config/generic/tls.cc (gtm_mask_stack): Remove.
1696         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1697         (GTM_vpalignr_table): Remove.
1698         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1699         (GTM_pshift_table): Remove.
1700         * config/libitm_i.h: Don't include cachepage.h.
1701         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1702         * Makefile.in, testsuite/Makefile.in: Rebuild.
1704 2011-11-09  Richard Henderson  <rth@redhat.com>
1706         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1707         to emit branch prediction hint.
1709         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1710         Protect .note.GNU-stack with __linux__.
1712         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1713         * configure, aclocal.m4, config.h.in: Rebuild.
1714         * config/generic/asmcfi.h: New file.
1715         * config/x86/sjlj.S: Use it.
1717 2011-11-08  Richard Henderson  <rth@redhat.com>
1719         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1721 2011-11-08  Richard Henderson  <rth@redhat.com>
1723         * configure.tgt: Test correct directory for supported cpus.
1725         * configure.ac: Exit if unsupported.
1726         * configure: Rebuild.
1727         * configure.tgt: Delete boilerplate from libgomp for unsupported
1728         targets.  Set UNSUPPORTED for unsupported targets.
1730 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1732         * configure.tgt: Handle i386 like i[456]86.
1733         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1734         take address.
1735         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1736         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1738 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1740         * method-wbetl.cc: Update copyright notice.
1741         * aatree.cc: Same.
1742         * util.cc: Same.
1743         * libitm.h: Same.
1744         * memset.cc: Same.
1745         * eh_cpp.cc: Same.
1746         * barrier.tpl: Same.
1747         * useraction.cc: Same.
1748         * stmlock.h: Same.
1749         * memcpy.cc: Same.
1750         * common.h: Same.
1751         * config/generic/tls.cc: Same.
1752         * config/generic/cacheline.h: Same.
1753         * config/generic/cachepage.h: Same.
1754         * config/generic/cacheline.cc: Same.
1755         * config/generic/unaligned.h: Same.
1756         * config/x86/cacheline.h: Same.
1757         * config/x86/cacheline.cc: Same.
1758         * config/x86/unaligned.h: Same.
1759         * config/alpha/cacheline.h: Same.
1760         * config/alpha/unaligned.h: Same.
1761         * config/alpha/sjlj.S: Same.
1762         * config/posix/cachepage.cc: Same.
1763         * config/linux/futex.h: Same.
1764         * config/linux/alpha/futex_bits.h: Same.
1766 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1768         * libitm.texi: No cover text and invariant sections.
1770 2011-11-03  Richard Henderson  <rth@redhat.com>
1772         * local_type_traits: New file.
1773         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1775 2011-11-03  Richard Henderson  <rth@redhat.com>
1777         * configure.ac: Don't test for gfortran.
1778         * configure: Rebuild.
1780         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1781         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1783 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1785         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1786         * testsuite/libitm.c/memset-1.c: Same.
1787         * testsuite/libitm.c/c.exp: Same.
1788         * testsuite/lib/libitm-dg.exp: Same.
1789         * testsuite/lib/libitm.exp: Same.
1790         * testsuite/libitm.c++/c++.exp: Same.
1792 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1794         * testsuite/config/default.exp: Update copyright date.
1795         * configure.ac: Add copyright info.
1796         * configure.tgt: Same.
1798 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1800         * testsuite/libitm.c/reentrant.c: XFAIL.
1801         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1803 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1805         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1806         handle aborts.
1807         (_ITM_abortTransaction): Handle aborts of outer transactions.
1808         * libitm_i.h: Same.
1809         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1810         * libitm.texi: Document aborts of outer transactions.
1811         * testsuite/libitm.c/cancel.c: New file.
1813 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1815         * testsuite/*: Change __transaction to __transaction_atomic or
1816         __transaction_relaxed.
1818 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1820         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1821         (gtm_thr): Same.
1823 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1825         * libitm_i.h: Add gl_wt dispatch.
1826         * retry.cc (parse_default_method): Same.
1827         * method-gl.cc: New file.
1828         * Makefile.am: Use method-gl.cc.
1829         * Makefile.in: Rebuild.
1831 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1833         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1834         safety if requested by a TM method.
1835         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1836         privatization safety.
1837         * method-serial.cc: Same.
1839 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1841         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1842         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1843         undolog-related member functions from *_local to *_undolog.
1844         * local.cc (gtm_thread::commit_undolog): Same.
1845         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1846         (GTM::gtm_thread::rollback): Roll back undolog before
1847         dispatch-specific rollback.
1849 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1851         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1852         re-initialization of the current method group.
1853         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1855 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1857         * alloc.cc (commit_allocations_2): Do not free transaction-local
1858         memory when committing a nested transaction.
1860 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1862         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1863         serial-irrevocable dispatch, not serial.
1865 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1867         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1868         declarations.
1869         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1870         * method-serial.cc: Implement begin_or_restart().
1871         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1872         dispatch-specific begin_or_restart().
1873         (GTM::gtm_thread::restart): Same.
1875 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1877         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1878         restarting without switching to serial mode.
1879         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1880         transaction state. Choose closed-nesting alternative if available.
1881         (GTM::gtm_thread::set_default_dispatch): New.
1882         (parse_default_method): New.
1883         (GTM::gtm_thread::number_of_threads_changed): New.
1884         * method-serial.cc (GTM::serial_mg): New method group class.
1885         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1886         fini.
1887         (GTM::serial_dispatch): Same.
1888         (GTM::serialirr_onwrite_dispatch): Same.
1889         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1890         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1891         registered threads.
1892         (GTM::gtm_thread::gtm_thread): Same.
1893         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1894         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1895         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1896         choose dispatch but set state according to dispatch here.
1897         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1898         (GTM::method_group): New class.
1899         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1900         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1901         * libitm.texi: Document TM methods, method groups, method life cycle.
1902         Rename method sets to method groups.
1904 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1906         * config/x86/tls.h: Moved to ...
1907         * config/linux/x86/tls.h: ... here.
1909 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1911         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1912         Add X32 support.
1913         * config/x86/sjlj.S: Same.
1915 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1917         * config/linux/rwlock.h: New file.
1918         * config/linux/rwlock.c: New file.
1919         * configure.ac: Reenable futex support (undo SVN rev 157758).
1920         * Makefile.am: Same.
1921         * configure.tgt: Same.
1922         * config/linux/alpha/futex_bits.h: Same.
1923         * config/linux/futex.h: Same. Return number of woken processes.
1924         * config/linux/futex.cc: Same.
1925         (futex_wait): Remove spinning.
1926         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1927         Use __x86_64__ instead of __LP64__.
1928         * aclocal.m4: Include generic futex checks.
1929         * configure: Rebuild.
1930         * Makefile.in: Rebuild.
1931         * testsuite/Makefile.in: Rebuild.
1932         * beginend.cc: Include pthread.h.
1933         * config/posix/cachepage.cc: Same.
1935 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1937         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1938         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1939         (set_gtm_thr): New.
1940         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1941         (set_gtm_thr): New.
1942         (GTM::gtm_thread::thread_num): Removed.
1943         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1944         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1945         tx-to-thread renaming.
1946         * beginend.cc: Adapted to tx-to-thread renaming.
1947         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1948         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1949         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1950         gtm_transaction to gtm_thread.
1951         (_ITM_getThreadnum): Removed. Not supported anymore.
1952         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1953         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1954         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1955         gtm_tx-to-gtm_thr renaming if necessary.
1956         * eh_cpp.cc: Same.
1957         * local.cc: Same.
1958         * retry.cc: Same.
1959         * clone.cc: Same.
1960         * alloc.cc: Same.
1961         * alloc_c.cc: Same.
1962         * alloc_cpp.cc: Same.
1963         * method-serial.cc: Same.
1964         * config/generic/tls.cc: Same.
1965         * config/posix/rwlock.h (gtm_rwlock): Same.
1966         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1968 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1970         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1971         implementation.
1972         (gtm_rwlock::read_unlock): Same.
1973         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1974         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1975         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1976         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1977         w_upgrade. Replaced by per-transaction flags (in shared_state).
1978         Added c_confirmed_writers.
1979         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1980         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1981         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1982         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1983         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1984         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1985         * libitm.texi: Document locking conventions and implementations in
1986         libitm.
1988 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1990         * libitm_i.h (next_tx): Add list of all threads' transaction.
1991         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1992         transaction with list of transactions and ...
1993         (thread_exit_handler): ... deregister here.
1994         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1995         * config/x86/target.h: Same.
1997 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1999         * testsuite/libitm.c++/static_ctor.C: New file.
2001 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2003         * testsuite/libitm.c/reentrant.c: New file.
2005 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2007         * config/generic/tls.h: Remove the free list for transactions and ...
2008         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
2009         (GTM::gtm_transaction::operator delete): ... and release here.
2010         (thread_exit_handler): New. Delete tx when thread terminates.
2011         (thread_exit_init): New.
2012         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
2013         * testsuite/libitm.c/txrelease.c: New file.
2015 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2017         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2018         * testsuite/libitm.c/notx.c: New file.
2020 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2022         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2023         * libitm_i.h (local_tid): ... to here.
2024         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2025         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2027 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2029         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2030         serialirr_onwrite_dispatch as new default for now.
2031         * method-serial.cc (serialirr_onwrite_dispatch): New.
2032         (GTM::dispatch_serialirr_onwrite): New.
2033         * libitm_i.h: Same.
2035 2011-08-12  Torvald Riegel  <triegel@redhat.com>
2037         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2038         * query.cc (_ITM_getTransactionId): There is no active transaction if
2039         the current nesting level is zero.
2041 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2043         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2044         rollback.
2046 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2048         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2049         transaction properties from the caller instead of from the
2050         transaction object.
2051         * libitm_i.h: Same.
2052         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2054 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2056         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2057         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2058         * dispatch.h: Same.
2059         * method-serial.cc: Same.
2060         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2061         flat nesting as default, and closed nesting on demand.
2062         (GTM::gtm_transaction::rollback): Same.
2063         (_ITM_abortTransaction): Same.
2064         (GTM::gtm_transaction::restart): Same.
2065         (GTM::gtm_transaction::trycommit): Same.
2066         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2067         (choose_code_path): New.
2068         (GTM::gtm_transaction_cp::save): New.
2069         (GTM::gtm_transaction_cp::commit): New.
2070         * query.cc (_ITM_inTransaction): Support flat nesting.
2071         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2072         (GTM::gtm_transaction): Support flat and closed nesting.
2073         * alloc.cc (commit_allocations_2): New.
2074         (commit_cb_data): New helper struct.
2075         (GTM::gtm_transaction::commit_allocations): Handle nested
2076         commits/rollbacks.
2077         * libitm.texi: Update user action section, add description of nesting.
2079 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2081         * libitm_i.h: Add closed nesting as restart reason.
2082         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2084 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2086         * useraction.cc: Use vector instead of list to store actions.
2087         Also support partial rollbacks for closed nesting.
2088         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2089         * beginend.cc: Same.
2091 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2093         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2094         closed_nesting flags, as well as a closed nesting alternative.
2095         * method-serial.cc: Same.
2096         (serial_dispatch): Renamed to serialirr_dispatch.
2097         (GTM::dispatch_serialirr): Same.
2098         (serial_dispatch_ul): Renamed to serial_dispatch.
2099         (GTM::dispatch_serial): Same.
2101 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2103         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2105 2011-07-28  Torvald Riegel  <triegel@redhat.com>
2107         * aatree.h (aa_tree::remove): New.
2108         (aa_tree::operator new): Add placement new.
2110 2011-07-02  Torvald Riegel  <triegel@redhat.com>
2112         * containers.h: New file.
2113         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2114         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2115         * common.h: ... to here.
2116         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2117         * local.cc: Same.
2119 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2121         * libitm_i.h (STATE_ABORTING): Remove.
2122         * beginend.cc (_ITM_abortTransaction): Same.
2123         (GTM::gtm_transaction::trycommit_and_finalize): Same.
2124         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2125         (_ITM_rollbackTransaction): Remove.
2126         * beginend.cc: Same.
2127         * libitm.map: Same.
2128         * libitm.texi: Document these ABI changes.
2130 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2132         * libitm.texi: New file.
2133         * Makefile.am: Add libitm.texi.
2134         * Makefile.in: Rebuild.
2136 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2138         * libitm_i.h: Move parts to common.h and dispatch.h.
2139         * common.h: New file.
2140         * dispatch.h: New file, new dispatch class.
2141         Rename GTM::abi_dispatch::lock_type to ls_modifier.
2142         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2143         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2144         decision to retry.cc.
2145         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2146         only.
2147         (GTM::gtm_transaction::decide_begin_dispatch): Same.
2148         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2149         logging.
2150         * barrier.cc: Use new barriers definitions.
2151         (abi_dispatch::memmove_overlap_check): New.
2152         * config/x86/x86_sse.cc: Same.
2153         * config/x86/x86_avx.cc: Same.
2154         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2155         memcpy.cc.
2156         * Makefile.in: Rebuild.
2157         * method-readonly.cc: Remove.
2158         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2159         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2161 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2163         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2164         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2165         * testsuite/libitm.c/dropref-2.c: Same.
2166         * testsuite/libitm.c/dropref.c: Same.
2168 2011-06-30  Torvald Riegel  <triegel@redhat.com>
2170         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2171         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2172         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2173         * alloc_c.cc: Same.
2174         * barrier.tpl: Same.
2175         * beginend.c: Same.
2176         * config/generic/tls.h: Same.
2177         * config/x86/tls.h: Same.
2178         * libitm_i.h: Same.
2179         * memcpy.cc: Same.
2180         * memset.cc: Same.
2181         * method-readonly.cc: Same.
2182         * method-serial.cc: Same.
2183         * method-wbetl.cc: Same.
2184         * retry.cc: Same.
2186 2011-03-03  Richard Henderson  <rth@redhat.com>
2188         * config/posix/rwlock.cc (write_upgrade): Add missing case.
2189         From Patrik Marlier <patrick.marlier@unine.ch>.
2191 2011-02-03  Richard Henderson  <rth@redhat.com>
2193         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2194         * configure.ac: Use it.
2195         * configure, config.h.in: Rebuild.
2196         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2197         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2198         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2199         * libitm.map: Use wildcards to match size_t mangling.
2201 2010-12-14  Richard Henderson  <rth@redhat.com>
2203         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2204         blocks of TIDs per thread.
2205         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2206         (setup_gtm_thr): Return the thread structure.
2207         * config/x86/tls.h (setup_gtm_thr): Likewise.
2209 2010-12-14  Richard Henderson  <rth@redhat.com>
2211         * clone.cc (table_lock): Remove.
2212         (find_clone): Don't take it.
2213         (ExcludeTransaction): New helper class.
2214         (_ITM_registerTMCloneTable): Use it.
2215         (_ITM_deregisterTMCloneTable): Likewise.
2217 2010-12-14  Richard Henderson  <rth@redhat.com>
2219         * config/x86/tls.h: New file.
2221 2010-07-15  Richard Henderson  <rth@redhat.com>
2223         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2224         * Makefile.in: Rebuild.
2226 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2228         * method-wbetl.cc (trydropreference): Fix source line.
2230 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
2232         * libitm.h: Add comment.
2233         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2235 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
2237         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2238         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2239         available, use pthread mutexes.
2240         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2241         * config.h.in: Regenerate.
2242         * configure: Regenerate.
2244 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
2246         * libitm.h (ITM_PURE): Define.
2247         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2249 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2251         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2252         (validate): Add comment.
2253         (trydropreference): New.
2254         * method-readonly.cc (class readonly_dispatch): Add
2255         trydropreference.
2256         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2257         Call trydropreference().
2258         * libitm.h (_ITM_dropReferences): Remove const attribute.
2259         * method-serial.cc (class serial_dispatch): Add trydropreference.
2260         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2262 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
2264         * memcpy.cc (do_memcpy): Comment.
2266 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
2268         * barrier.tpl: Add comments throughout.
2270 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2272         * method-wbetl.cc (struct w_entry): Add comments.
2273         (trycommit): Same.
2274         (rollback): Same.
2276 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
2278         * alloc_c.cc (_ITM_dropReferences): New.
2279         * libitm.map (_ITM_dropReferences): Add.
2280         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2281         * libitm_i.h (struct gtm_transaction): Declare
2282         drop_references_allocations and drop_references_local.
2283         * local.cc (rollback_local): Ignore memory when applicable.
2284         (drop_references_local): New.
2286 2010-06-23  Richard Henderson  <rth@redhat.com>
2288         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2289         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2290         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2291         * config/alpha/target.h: Likewise.
2292         * config/generic/tls.cc (gtm_mask_stack): Use it.
2294 2010-06-23  Richard Henderson  <rth@redhat.com>
2296         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2297         a mutex instead of trying a lock-free compare-and-swap on the list.
2298         (gtm_cacheline_page::operator delete): Likewise.
2300 2010-06-16  Richard Henderson  <rth@redhat.com>
2302         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2303         that overlap the libitm stack.
2304         * barrier.tpl: Mark incoming stack.
2305         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2306         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2307         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2308         * memcpy.cc, memset.cc: Likewise.
2309         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2310         * config/generic/tls.h (gtm_thread): Add stack_top member.
2311         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2312         * libitm_i.h (gtm_mask_stack): Declare.
2313         * config/generic/tls.cc: New file.
2314         * Makefile.am (libitm_la_SOURCES): Add it.
2315         (AM_CXXFLAGS): Turn off exceptions.
2316         * Makefile.in: Rebuild.
2318 2010-06-16  Richard Henderson  <rth@redhat.com>
2320         * alloc.cc (struct gtm_alloc_action): Move definition ...
2321         * libitm_i.h: ... here.
2322         (class gtm_transaction): Declare new and delete.
2323         * beginend.cc (alloc_tx): Reformulate as operator new.
2324         (free_tx): Reformulate as operator delete.
2325         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2327 2010-06-11  Richard Henderson  <rth@redhat.com>
2329         * clone.cc (clone_entry_compare): Fix typo.
2330         From Patrik Marlier <patrick.marlier@unine.ch>.
2332 2010-05-13  Richard Henderson  <rth@redhat.com>
2334         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2335         in extern "C".
2337 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
2339         * libitm_i.h (struct gtm_transaction): Remove
2340         get_allocation_size.
2341         (record_allocation): Remove size parameter.
2342         * libitm.map (_ITM_realloc): Remove.
2343         * alloc_c.cc (_ITM_realloc): Remove.
2344         (_ITM_malloc): Remove size argument to record_allocation.
2345         (_ITM_calloc): Same.
2346         * alloc_cpp.cc (_ZGTtnwm): Same.
2347         (_ZGTtnwmRKSt9nothrow_t): Same.
2348         (_ZGTtnam): Same.
2349         (_ZGTtnamRKSt9nothrow_t): Same.
2350         * alloc.cc (struct gtm_alloc_action): Remove size.
2351         (get_allocation_size): Remove.
2352         (commit_allocations): Add comment.
2353         (record_allocation): Remove size parameter.
2354         (forget_allocation): Remove set of size.
2356 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
2358         * Makefile.am (abi_version): New.
2359         (AM_CXXFLAGS): Pass abi_version.
2360         * Makefile.in: Regenerate.
2361         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2363 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
2365         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2366         _ITM_getTMCloneOrIrrevokable.
2367         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2368         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2370 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
2372         * configure.ac: Remove Linux futex support.
2373         * configure.tgt (config_path): Same.
2374         * Makefile.am: Same.
2375         * config/linux: Remove entire directory.
2376         * configure: Rebuild.
2377         * Makefile.in: Rebuild.
2378         * testsuite/Makefile.in: Rebuild.
2380 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
2382         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2383         switching to serial mode.
2384         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2386 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
2388         * configure.tgt: Add emacs -*- tags.
2389         * barrier.tpl: Same.
2391 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
2393         * Makefile.am: Rename serial.cc to method-serial.cc.
2394         * Makefile.in: Regenerate with automake 1.11.1.
2395         * testsuite/Makefile.in: Same.
2396         * aclocal.m4: Regenerate with aclocal 1.11.1.
2397         * method-serial.cc: Rename from serial.cc.
2398         * libitm_i.h (struct gtm_transaction): Update comment on
2399         serialirr_mode.
2401 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
2403         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2404         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2406 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
2408         * configure: Rebuild.
2410 2009-11-12  Richard Henderson  <rth@redhat.com>
2412         * Rewrite everything in C++.
2414 2009-11-03  Richard Henderson  <rth@redhat.com>
2416         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2417         * Makefile.am (libitm_la_SOURCES): Add them.
2418         * configure.ac (ARCH_X86): New conditional.
2419         * Makefile.in, configure: Rebuild.
2420         * configure.tgt: Set up ARCH; do cflags setup at the same time.
2421         Move futex setup into "other system configury" case.
2422         * local.c (rollback_local): Merge into ...
2423         (GTM_rollback_local): ... here.
2424         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2425         (_ITM_LB): Define as an alias to GTM_LB.
2427 2009-11-03  Richard Henderson  <rth@redhat.com>
2429         * method-readonly.c: New file.
2430         * Makefile.am (libitm_la_SOURCES): Add it.
2431         * Makefile.in: Rebuild.
2432         * beginend.c (gtm_stmlock_array, gtm_clock): New.
2433         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2434         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2435         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2436         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2437         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2438         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2439         gtm_get_clock, gtm_inc_clock): New.
2440         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2441         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2442         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2443         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2444         replace uses with new libitm_i.h symbols.
2445         (dispatch_wbetl): Rename from wbetl_dispatch.
2446         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2447         away from dispatch_readonly; abort if the beginTransaction call
2448         asserted that the transaction was readonly.
2450 2009-11-03  Richard Henderson  <rth@redhat.com>
2452         * memset.c: New file.
2453         * Makefile.am (libitm_la_SOURCES): Add it.
2454         * Makefile.in: Rebuild.
2455         * testsuite/libitm.c/memset-1.c: New.
2457 2009-11-03  Richard Henderson  <rth@redhat.com>
2459         * dispatch.c: Remove file.
2460         * useraction.c (struct gtm_user_action): Move from libitm.h.
2461         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2462         (serial_memset, serial_memmove, serial_memcpy): Remove.
2463         (serial_W*, serial_R*): Remove.
2464         (serial_dispatch): Update to match.
2465         * configure.ac: Move Werror down below configure checks.  Don't
2466         check for sys/loadavg.h, do check for malloc.h.  Don't check for
2467         getloadavg and clock_gettime; do check for memalign, posix_memalign.
2468         Use GCC_AC_FUNC_MMAP_BLACKLIST
2469         * libitm.h: Split out all internal items to...
2470         * libitm_i.h: ... here.  New file.
2471         * copymask.c: New file.
2472         * local.c (struct gtm_local_undo): Move from libitm.h.
2473         (GTM_alloc_local): Rename from alloc_local; export.
2474         * memcpy.c: New file.
2475         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2476         * config/posix/page.c: New file.
2477         * config/posix/target_tls.h: Remove file.
2478         * barrier.c: New file.
2479         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2480         copymask.c, page.c.
2481         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2482         * method-wbetl.c: Rewrite for new cacheline methods.
2483         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2485         * config/alpha/sjlj.S: Fix typo.
2486         * config/alpha/target_i.h: Copy functions from alpha/target.h.
2487         * config/alpha/copymask.c: New file.
2488         * config/alpha/target.h (CACHELINE_SIZE): New.
2489         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2491         * config/x86/target_i.h: Copy functions from x86/target.h.
2492         * config/x86/copymask.c: New file.
2493         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2494         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2495         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2496         * config/x86/target_tls.h: Move contents to target_i.h.
2498         * testsuite/libitm.c/clone-1.c: Include libitm.h.
2499         * testsuite/libitm.c/memcpy-1.c: New.
2501 2009-10-22  Richard Henderson  <rth@redhat.com>
2503         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2504         (AM_CCASFLAGS): New.
2505         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
2506         saving/restoring _AC_ARG_VAR_PRECIOUS.
2507         * Makefile.in, aclocal.m4, config.h.in, configure,
2508         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2510 2009-10-22  Richard Henderson  <rth@redhat.com>
2512         * testsuite/*: Update for new compiler syntax.
2514 2009-10-21  Richard Henderson  <rth@redhat.com>
2516         * libitm.h (_ITM_abortReason): Add outerAbort.
2518 2009-08-03  Richard Henderson  <rth@redhat.com>
2520         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2521         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2522         * method-wbetl.c (struct w_entry): Remove mask.
2523         (wbetl_write, wbetl_load): Return pointer to word containing the data;
2524         adjust all callers.
2526 2009-07-22  Richard Henderson  <rth@redhat.com>
2528         * eh_cpp.c: New file.
2529         * Makefile.am (libitm_la_SOURCES): Add it.
2530         * Makefile.in: Rebuild.
2531         * beginend.c (GTM_rollback_transaction): Undo exception state.
2532         (GTM_trycommit_transaction): Mark inline.
2533         (GTM_trycommit_and_finalize_transaction): Split out from ...
2534         (_ITM_commitTransaction): ... here.
2535         (_ITM_commitTransactionEH): New function.
2536         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2537         cxa_unthrown, eh_in_flight; reorder.
2539         * testsuite/libitm.c++/c++.exp: New.
2540         * testsuite/libitm.c++/eh-1.C: New.
2542         * aatree.c (aa_free): Remove REGPARM.
2543         * aatree.h: Remove all REGPARM.
2545 2009-07-18  Richard Henderson  <rth@redhat.com>
2547         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2548         * Makefile.am (libitm_la_SOURCES): Add them.
2549         * Makefile.in: Rebuild.
2550         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2551         (GTM_trycommit_transaction): Likewise.
2552         * libitm.h: Include aatree.h
2553         (struct gtm_alloc_action): New.
2554         (struct gtm_transaction): Add alloc_actions.
2555         (GTM_record_allocation, GTM_forget_allocation): Declare.
2556         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2557         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2558         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2559         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2560         _ZGTtdaPvRKSt9nothrow_t): Export.
2562 2009-07-18  Richard Henderson  <rth@redhat.com>
2564         * target_tls.h: Move ...
2565         * config/posix/target_tls.h: ... here.
2567 2009-07-07  Richard Henderson  <rth@redhat.com>
2569         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2571 2009-07-07  Richard Henderson  <rth@redhat.com>
2573         * Update to GPL3.
2575 2009-07-07  Richard Henderson  <rth@redhat.com>
2577         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2578         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2580         * configure.tgt: Don't use -ftls-model for x86 linux.
2581         * libitm.h: Include target.h after standard includes.
2582         (_gtm_thr): Rename from gtm_thr.
2583         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2584         (gtm_disp, set_gtm_disp): New.
2585         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2586         retry.c, serial.c, useraction.c: Use accessor functions throughout.
2587         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2589 2009-07-07  Richard Henderson  <rth@redhat.com>
2591         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
2593 2009-07-06  Richard Henderson  <rth@redhat.com>
2595         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2596         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2597         (_ITM_beginTransaction): Take variadic arguments.
2598         (_ITM_registerThrownObject): Declare.
2599         * beginend.c, serial.c: Update.
2600         * libitm.map: Add _ITM_registerThrownObject.
2602 2009-01-28  Richard Henderson  <rth@redhat.com>
2604         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2605         * Makefile.in: Rebuild.
2606         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2607         (GTM_restart_transaction): Fix uninstrumented code check.
2608         * retry.c (GTM_decide_retry_strategy): Add serial check.
2609         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2610         automatically go irrevokable when in serial mode.
2611         * clone.c: New file.
2612         * libitm.h, libitm.map: Update.
2614 2009-01-27  Richard Henderson  <rth@redhat.com>
2616         * Makefile.am (LTCCASCOMPILE): Define.
2617         (libitm_la_SOURCES): Add methid-wbetl.c.
2618         * testsuite/Makefile.am: New
2619         * configure.ac: Add testsuite/Makefile.
2620         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2621         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2622         (_ITM_abortTransaction): Finalize implementation method; pass
2623         transaction properties to longjmp.
2624         (GTM_restart_transaction): Split out from ...
2625         (_ITM_commitTransaction): ... here.
2626         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2627         Move to config/x86/target.h.
2628         * config/linux/alpha/futex_bits.h: New.
2629         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2630         * config/x86/target.h: Disable target types for 32-bit.
2631         * config/alpha/sjlj.S, config/alpha/target.h: New.
2632         * libitm.h (struct gtm_dispatch): Add init, fini.
2633         (enum restart_reason): New.
2634         (struct gtm_transaction): Add method and restarts.
2635         * retry.c (GTM_decide_retry_strategy): Implement.
2636         * serial.c (serial_init, serial_fini): New.
2637         (GTM_serialmode): Finialize outgoing method.
2638         * method-wbetl.c: New.
2640 2008-12-09  Richard Henderson  <rth@redhat.com>
2642         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2643         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2644         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2645         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2646         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2647         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2648         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2649         * serial.c (serial_R##T, serial_W##T): Likewise.
2651 2008-11-21  Richard Henderson  <rth@redhat.com>
2653         * Initial commit.
2655 Copyright (C) 2008-2024 Free Software Foundation, Inc.
2657 Copying and distribution of this file, with or without modification,
2658 are permitted in any medium without royalty provided the copyright
2659 notice and this notice are preserved.