1 2025-01-02 Jakub Jelinek <jakub@redhat.com>
3 * libitm.texi: Bump @copying's copyright year.
5 2024-11-18 David Malcolm <dmalcolm@redhat.com>
7 * testsuite/lib/libitm.exp: Add
8 "load_gcc_lib dg-test-cleanup.exp".
10 2024-09-23 Matthieu Longo <matthieu.longo@arm.com>
12 * config/aarch64/sjlj.S: Replace SPARC CFI directive by
15 2024-09-02 Alex Coplan <alex.coplan@arm.com>
17 * testsuite/lib/libitm.exp: Load scanltrans.exp instead of
20 2024-05-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23 * testsuite/lib/libitm.exp (libitm_target_compile): Pass new
24 dg-additional-files-options args.
26 2024-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28 * Makefile.am [LIBITM_BUILD_VERSIONED_SHLIB_SUN] (libitm.map-sun):
29 Pass $(libitm_la_OBJECTS), $(libitm_la_LIBADD) to make_sunver.pl
31 * Makefile.in: Regenerate.
33 2024-04-02 Jakub Jelinek <jakub@redhat.com>
35 * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
36 words in comment; not not -> not to.
38 2024-02-05 Marek Polacek <polacek@redhat.com>
40 * containers.h (vector): Remove the template-id in constructors.
42 2024-01-03 Jakub Jelinek <jakub@redhat.com>
44 * libitm.texi: Bump @copying's copyright year.
46 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
48 * testsuite/lib/libitm.exp: Likewise.
49 * testsuite/libitm.c++/c++.exp: Likewise.
51 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
53 * Makefile.am: Handle Darwin rpaths.
54 * Makefile.in: Regenerate.
55 * configure: Regenerate.
56 * configure.ac: Handle Darwin rpaths.
58 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
60 * configure: Regenerate.
62 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
64 * configure: Regenerate.
66 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
68 * configure: Regenerate.
70 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
72 * configure: Regenerate.
74 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
76 * configure: Regenerate.
78 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
80 * configure: Regenerate.
82 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
84 * configure.ac (PERL): Remove.
85 * configure: Regenerate.
86 * Makefile.in: Likewise.
87 * testsuite/Makefile.in: Likewise.
89 2023-01-02 Jakub Jelinek <jakub@redhat.com>
91 * libitm.texi: Bump @copying's copyright year.
93 2022-11-14 Martin Liska <mliska@suse.cz>
96 2022-11-14 Martin Liska <mliska@suse.cz>
98 * doc/c-c++-language-constructs-for-tm.rst: New file.
99 * doc/conf.py: New file.
100 * doc/copyright.rst: New file.
101 * doc/enabling-libitm.rst: New file.
102 * doc/gnu-free-documentation-license.rst: New file.
103 * doc/index.rst: New file.
104 * doc/indices-and-tables.rst: New file.
105 * doc/internals.rst: New file.
106 * doc/locking-conventions.rst: New file.
107 * doc/nesting-flat-vs-closed.rst: New file.
108 * doc/the-libitm-abi.rst: New file.
109 * doc/the-libitm-abi/function-list.rst: New file.
110 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
111 * doc/the-libitm-abi/library-design-principles.rst: New file.
112 * doc/the-libitm-abi/memory-model.rst: New file.
113 * doc/the-libitm-abi/non-objectives.rst: New file.
114 * doc/the-libitm-abi/objectives.rst: New file.
115 * doc/the-libitm-abi/sample-code.rst: New file.
116 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
117 * doc/tm-methods-and-method-groups.rst: New file.
119 2022-11-14 Martin Liska <mliska@suse.cz>
122 2022-11-14 Martin Liska <mliska@suse.cz>
124 * Makefile.in: Support Sphinx based documentation.
126 2022-11-14 Martin Liska <mliska@suse.cz>
129 2022-11-14 Martin Liska <mliska@suse.cz>
131 * libitm.texi: Removed.
133 2022-11-14 Martin Liska <mliska@suse.cz>
136 2022-11-14 Martin Liska <mliska@suse.cz>
138 * Makefile.in: Support --with-sphinx-build.
139 * configure.ac: Likewise.
140 * configure: Regenerate.
142 2022-11-14 Martin Liska <mliska@suse.cz>
145 2022-11-14 Martin Liska <mliska@suse.cz>
147 * Makefile.in: Build info pages conditionally.
149 2022-11-14 Martin Liska <mliska@suse.cz>
152 2022-11-14 Martin Liska <mliska@suse.cz>
154 * doc/c-c++-language-constructs-for-tm.rst:
155 Add trailing newline.
157 Add trailing newline.
158 * doc/enabling-libitm.rst:
159 Add trailing newline.
160 * doc/gnu-free-documentation-license.rst:
161 Add trailing newline.
163 Add trailing newline.
164 * doc/indices-and-tables.rst:
165 Add trailing newline.
167 Add trailing newline.
168 * doc/locking-conventions.rst:
169 Add trailing newline.
170 * doc/nesting-flat-vs-closed.rst:
171 Add trailing newline.
172 * doc/the-libitm-abi.rst:
173 Add trailing newline.
174 * doc/the-libitm-abi/function-list.rst:
175 Add trailing newline.
176 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
177 Add trailing newline.
178 * doc/the-libitm-abi/library-design-principles.rst:
179 Add trailing newline.
180 * doc/the-libitm-abi/memory-model.rst:
181 Add trailing newline.
182 * doc/the-libitm-abi/non-objectives.rst:
183 Add trailing newline.
184 * doc/the-libitm-abi/objectives.rst:
185 Add trailing newline.
186 * doc/the-libitm-abi/sample-code.rst:
187 Add trailing newline.
188 * doc/the-libitm-abi/types-and-macros-list.rst:
189 Add trailing newline.
190 * doc/tm-methods-and-method-groups.rst:
191 Add trailing newline.
193 2022-11-14 Martin Liska <mliska@suse.cz>
196 2022-11-14 Martin Liska <mliska@suse.cz>
198 * Makefile.in: Add missing HAS_SPHINX_BUILD.
200 2022-11-14 Martin Liska <mliska@suse.cz>
203 2022-11-14 Martin Liska <mliska@suse.cz>
205 * doc/conf.py: Add newline at last line.
207 2022-11-14 Martin Liska <mliska@suse.cz>
210 2022-11-14 Martin Liska <mliska@suse.cz>
213 * configure: Regenerate.
214 * configure.ac: Always set sphinx-build.
216 2022-11-13 Martin Liska <mliska@suse.cz>
219 * configure: Regenerate.
220 * configure.ac: Always set sphinx-build.
222 2022-11-10 Martin Liska <mliska@suse.cz>
224 * doc/conf.py: Add newline at last line.
226 2022-11-09 Martin Liska <mliska@suse.cz>
228 * Makefile.in: Add missing HAS_SPHINX_BUILD.
230 2022-11-09 Martin Liska <mliska@suse.cz>
232 * doc/c-c++-language-constructs-for-tm.rst:
233 Add trailing newline.
235 Add trailing newline.
236 * doc/enabling-libitm.rst:
237 Add trailing newline.
238 * doc/gnu-free-documentation-license.rst:
239 Add trailing newline.
241 Add trailing newline.
242 * doc/indices-and-tables.rst:
243 Add trailing newline.
245 Add trailing newline.
246 * doc/locking-conventions.rst:
247 Add trailing newline.
248 * doc/nesting-flat-vs-closed.rst:
249 Add trailing newline.
250 * doc/the-libitm-abi.rst:
251 Add trailing newline.
252 * doc/the-libitm-abi/function-list.rst:
253 Add trailing newline.
254 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
255 Add trailing newline.
256 * doc/the-libitm-abi/library-design-principles.rst:
257 Add trailing newline.
258 * doc/the-libitm-abi/memory-model.rst:
259 Add trailing newline.
260 * doc/the-libitm-abi/non-objectives.rst:
261 Add trailing newline.
262 * doc/the-libitm-abi/objectives.rst:
263 Add trailing newline.
264 * doc/the-libitm-abi/sample-code.rst:
265 Add trailing newline.
266 * doc/the-libitm-abi/types-and-macros-list.rst:
267 Add trailing newline.
268 * doc/tm-methods-and-method-groups.rst:
269 Add trailing newline.
271 2022-11-09 Martin Liska <mliska@suse.cz>
273 * Makefile.in: Build info pages conditionally.
275 2022-11-09 Martin Liska <mliska@suse.cz>
277 * Makefile.in: Support --with-sphinx-build.
278 * configure.ac: Likewise.
279 * configure: Regenerate.
281 2022-11-09 Martin Liska <mliska@suse.cz>
283 * libitm.texi: Removed.
285 2022-11-09 Martin Liska <mliska@suse.cz>
287 * Makefile.in: Support Sphinx based documentation.
289 2022-11-09 Martin Liska <mliska@suse.cz>
291 * doc/c-c++-language-constructs-for-tm.rst: New file.
292 * doc/conf.py: New file.
293 * doc/copyright.rst: New file.
294 * doc/enabling-libitm.rst: New file.
295 * doc/gnu-free-documentation-license.rst: New file.
296 * doc/index.rst: New file.
297 * doc/indices-and-tables.rst: New file.
298 * doc/internals.rst: New file.
299 * doc/locking-conventions.rst: New file.
300 * doc/nesting-flat-vs-closed.rst: New file.
301 * doc/the-libitm-abi.rst: New file.
302 * doc/the-libitm-abi/function-list.rst: New file.
303 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
304 * doc/the-libitm-abi/library-design-principles.rst: New file.
305 * doc/the-libitm-abi/memory-model.rst: New file.
306 * doc/the-libitm-abi/non-objectives.rst: New file.
307 * doc/the-libitm-abi/objectives.rst: New file.
308 * doc/the-libitm-abi/sample-code.rst: New file.
309 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
310 * doc/tm-methods-and-method-groups.rst: New file.
312 2022-10-31 Xiongchuan Tan <xc-tan@outlook.com>
314 * configure.tgt: Add riscv support.
315 * config/riscv/asm.h: New file.
316 * config/riscv/sjlj.S: New file.
317 * config/riscv/target.h: New file.
319 2022-10-13 Lulu Cheng <chenglulu@loongson.cn>
321 * config/loongarch/sjlj.S: Add a soft floating point condition to the
322 register recovery part of the code.
324 2022-10-12 Martin Liska <mliska@suse.cz>
326 * configure: Regenerate.
328 2022-10-11 Olivier Hainque <hainque@adacore.com>
329 Olivier Hainque <hainque@adacore.com>
331 * configure: Regenerate.
333 2022-09-28 Lulu Cheng <chenglulu@loongson.cn>
334 Yang Yujie <yangyujie@loongson.cn>
336 * configure.tgt: Add loongarch support.
337 * config/loongarch/asm.h: New file.
338 * config/loongarch/sjlj.S: New file.
339 * config/loongarch/target.h: New file.
341 2022-08-31 Martin Liska <mliska@suse.cz>
343 * configure: Regenerate.
345 2022-08-31 Martin Liska <mliska@suse.cz>
347 * configure: Regenerate.
349 2022-06-02 David Malcolm <dmalcolm@redhat.com>
351 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
353 2022-02-03 David Seifert <soap@gentoo.org>
354 Jakub Jelinek <jakub@redhat.com>
356 * configure.ac: Support --disable-werror.
357 * configure: Regenerate.
359 2022-01-31 Martin Liska <mliska@suse.cz>
361 * acinclude.m4: Detect *_ld_is_mold and use it.
362 * configure: Regenerate.
364 2022-01-03 Jakub Jelinek <jakub@redhat.com>
366 * libitm.texi: Bump @copying's copyright year.
368 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
370 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
371 target does not support HAVE_ELF_STYLE_WEAKREF then do not
372 try to test the __cxa_get_globals against NULL.
374 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
377 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
379 2021-01-15 Jakub Jelinek <jakub@redhat.com>
382 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
383 be added through preprocessor check on
384 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
386 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
388 * configure: Re-generate.
390 2021-01-01 Jakub Jelinek <jakub@redhat.com>
392 * libitm.texi: Bump @copying's copyright year.
394 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
397 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
398 * configure: Regenerate.
400 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
402 * configure: Regenerate.
404 2020-10-01 Alan Modra <amodra@gmail.com>
406 * config/powerpc/sjlj.S: Support __PCREL__ code.
408 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
410 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
412 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
414 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
415 and add BTI c to function entries.
417 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
419 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
421 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
424 * configure: Regenerated.
426 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
429 * configure: Regenerated.
431 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
433 * configure: Regenerated.
435 2020-05-12 Nathan Sidwell <nathan@acm.org>
437 Fix throw specifiers on interface.
438 * libitm/libitm.h (_ITM_NOTHROW): Define.
439 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
440 (_ITM_cxa_begin_catch): Use it.
441 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
442 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
444 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
445 (_ITM_cxa_begin_catch): Likewise.
447 2020-05-05 Nathan Sidwell <nathan@acm.org>
449 * testsuite/lib/libitm.exp (libitm_init): Add
450 -fdiagnostics-color=never to options.
452 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
457 * configure: Regenerated.
459 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
461 * configure.ac: Handle `--with-toolexeclibdir='.
462 * Makefile.in: Regenerate.
463 * aclocal.m4: Regenerate.
464 * configure: Regenerate.
465 * testsuite/Makefile.in: Regenerate.
467 2020-01-01 Jakub Jelinek <jakub@redhat.com>
469 Update copyright years.
471 * libitm.texi: Bump @copying's copyright year.
473 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
476 * configure.tgt: Avoid IE tls on *-*-musl*.
478 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
480 * configure: Regenerate.
482 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
484 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
486 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
488 * configure.tgt: Handle *-*-uclinux*.
489 * configure: Regenerate.
491 2019-09-06 Florian Weimer <fweimer@redhat.com>
493 * configure: Regenerate.
495 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
498 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
499 scanning to conform to the GNU Coding Standards.
500 * configure: Regenerate.
502 2019-05-03 Jakub Jelinek <jakub@redhat.com>
504 * Makefile.am (finclude): Remove.
505 * Makefile.in: Regenerated.
507 2019-01-01 Jakub Jelinek <jakub@redhat.com>
509 Update copyright years.
511 2019-01-01 Jakub Jelinek <jakub@redhat.com>
513 * libitm.texi: Bump @copying's copyright year.
515 2018-12-16 Jakub Jelinek <jakub@redhat.com>
518 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
519 void * to void (*) (void *).
520 (_ITM_cxa_throw): Likewise.
521 * libitm.h (_ITM_cxa_throw): Likewise.
522 * libitm.texi (_ITM_cxa_throw): Likewise.
524 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
526 * config/powerpc/target.h (htm_available): Add support for
527 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
529 2018-10-31 Joseph Myers <joseph@codesourcery.com>
532 * Makefile.am: Include multilib.am.
533 (AUTOMAKE_OPTIONS): Add info-in-builddir.
534 (CLEANFILES): Remove libitm.info.
535 * configure.ac: Remove AC_PREREQ.
536 * testsuite/Makefile.am (RUNTEST): Remove quotes.
537 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
540 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
543 * method-serial.cc: Mark varible as potentially unused
546 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
548 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
549 absolute relocation in a shared library.
551 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
554 * config/linux/x86/tls.h (SEG_READ): Use the offset of
555 __private_tm as base.
556 (SEG_WRITE): Likewise.
557 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
558 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
559 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
560 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
561 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
563 2018-05-17 Jason Merrill <jason@redhat.com>
565 * beginend.cc (save): Disable -Werror=deprecated-copy.
567 2018-05-02 Tom de Vries <tom@codesourcery.com>
570 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
572 2018-05-02 Tom de Vries <tom@codesourcery.com>
575 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
577 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
579 * config/x86/sjlj.S (_ITM_beginTransaction): Add
580 (__CET__ & 2) != 0 check for shadow stack.
581 (GTM_longjmp): Likewise.
583 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
585 * configure: Regenerated.
587 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
590 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
592 2018-04-19 Jakub Jelinek <jakub@redhat.com>
594 * configure: Regenerated.
596 2018-04-18 David Malcolm <dmalcolm@redhat.com>
599 * configure: Regenerate.
601 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
604 * configure: Regenerate.
606 2018-01-03 Jakub Jelinek <jakub@redhat.com>
608 Update copyright years.
610 * libitm.texi: Bump @copying's copyright year.
612 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
614 * Makefile.in: Regenerate.
615 * acinclude.m4: Add enable.m4 and cet.m4.
616 * config/x86/sjlj.S: Include cet.h.
617 (_ITM_beginTransaction): Add _CET_ENDBR.
618 Save Shadow Stack pointer.
619 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
620 * config/x86/target.h (struct gtm_jmpbuf):
621 Add new field for Shadow Stack pointer.
622 * configure: Regenerate.
623 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
624 * configure.ac: Update libtool_VERSION for x86.
625 * testsuite/Makefile.in: Regenerate.
627 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
629 * libitm/config/x86/target.h: Add new field (ssp).
630 * libitm/config/x86/sjlj.S: Change offsets.
632 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634 * testsuite/lib/libitm.exp: Load scanlang.exp.
636 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
638 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
640 2017-01-21 Jakub Jelinek <jakub@redhat.com>
643 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
644 of cat to get version from BASE-VER file.
645 * testsuite/Makefile.in: Regenerated.
647 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
649 * config/x86/target.h (htm_available): Determine vendor from
650 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
652 2017-01-18 Torvald Riegel <triegel@redhat.com>
654 * config/x86/target.h (htm_available): Add check for some processors
655 on which TSX is broken.
657 2017-01-17 Jakub Jelinek <jakub@redhat.com>
660 * configure.ac: Add GCC_BASE_VER.
661 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
662 get version from BASE-VER file.
663 * testsuite/Makefile.in: Regenerated.
664 * configure: Regenerated.
665 * Makefile.in: Regenerated.
667 2017-01-04 Alan Modra <amodra@gmail.com>
669 * Makefile.in: Regenerate.
670 * testsuite/Makefile.in: Regenerate.
672 2017-01-01 Jakub Jelinek <jakub@redhat.com>
674 Update copyright years.
676 * libitm.texi: Bump @copying's copyright year.
678 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
681 * aclocal.m4: Regenerate.
682 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
683 LIBITM_CHECK_LINKER_HWCAP.
685 2016-11-15 Matthias Klose <doko@ubuntu.com>
687 * configure: Regenerate.
689 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
692 * util.cc (xmalloc): Use posix_memalign to allocate memory on
693 on cache line if requested.
695 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
697 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
698 function attribute to disable floating point in begin_transaction() on
700 * beginend.cc (begin_transaction): Use
701 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
703 2016-01-22 Torvald Riegel <triegel@redhat.com>
705 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
707 (htm_fastpath): Remove.
708 (gtm_thread::begin_transaction): Fix HTM fastpath.
709 (_ITM_commitTransaction): Adapt.
710 (_ITM_commitTransactionEH): Adapt.
711 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
713 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
714 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
715 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
716 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
717 * libitm/method-serial.cc (htm_mg): Adapt.
718 (gtm_thread::serialirr_mode): Adapt.
719 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
721 2016-01-21 Torvald Riegel <triegel@redhat.com>
723 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
726 2016-01-19 Richard Henderson <rth@redhat.com>
731 2016-01-13 Richard Henderson <rth@redhat.com>
733 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
734 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
735 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
736 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
737 * configure.ac (ARCH_AARCH64): New conditional.
738 (ARCH_PPC, ARCH_S390): Likewise.
739 * Makefile.in, configure: Rebuild.
741 * libitm.h (_ITM_TYPE_M128): Always define.
742 * vect64.cc: Split ...
743 * vect128.cc: ... out of...
744 * config/x86/x86_sse.cc: ... here.
745 * config/arm/neon.cc: New file.
747 2016-01-19 Torvald Riegel <triegel@redhat.com>
749 * local_type_traits: Remove file.
750 * libitm_i.h: Don't include it anymore.
751 (sized_integral): Remove.
753 2016-01-16 Torvald Riegel <triegel@redhat.com>
755 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
757 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
758 * libitm/testsuite/libitm.c/priv-1.c: New.
760 2015-01-15 Torvald Riegel <triegel@redhat.com>
762 testsuite/libitm.c++/libstdc++-safeexc.C: New.
764 2016-01-13 Torvald Riegel <triegel@redhat.com>
766 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
767 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
768 (gtm_rwlock::write_unlock): Likewise.
770 2016-01-13 Richard Henderson <rth@redhat.com>
772 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
773 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
774 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
775 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
776 * configure.ac (ARCH_AARCH64): New conditional.
777 (ARCH_PPC, ARCH_S390): Likewise.
778 * Makefile.in, configure: Rebuild.
780 * libitm.h (_ITM_TYPE_M128): Always define.
781 * vect64.cc: Split ...
782 * vect128.cc: ... out of...
783 * config/x86/x86_sse.cc: ... here.
784 * config/arm/neon.cc: New file.
786 2016-01-13 Torvald Riegel <triegel@redhat.com>
788 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
789 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
790 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
791 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
792 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
793 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
794 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
795 (serialirr_dispatch::snapshot_most_recent): New.
796 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
798 2016-01-12 Torvald Riegel <triegel@redhat.com>
800 * libitm_i.h (gtm_mask_stack): Remove.
801 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
802 * stmlock.h: Remove file.
803 * config/alpha/cacheline.h: Likewise.
804 * config/generic/cacheline.h: Likewise.
805 * config/powerpc/cacheline.h: Likewise.
806 * config/sparc/cacheline.h: Likewise.
807 * config/x86/cacheline.h: Likewise.
809 2016-01-04 Jakub Jelinek <jakub@redhat.com>
811 Update copyright years.
813 * libitm.texi: Bump @copying's copyright year.
815 2015-11-26 Torvald Riegel <triegel@redhat.com>
817 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
818 (ml_wt_dispatch::pre_write): Adapt.
819 (ml_wt_dispatch::pre_load): Likewise.
821 2015-11-22 Torvald Riegel <triegel@redhat.com>
823 * libitm_i.h (gtm_alloc_action): Remove union.
824 * testsuite/libitm.c/alloc-1.c: New.
826 2015-11-19 Torvald Riegel <triegel@redhat.com>
828 * testsuite/libitm.c++/eh-5.C: New.
829 * libitm.h (_ITM_cxa_free_exception): New.
830 * libitm.map (_ITM_cxa_free_exception): Add it.
831 * libitm.texi: Update ABI docs.
832 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
833 (gtm_transaction_cp::cxa_uncaught_count): Add.
834 (gtm_thread::cxa_unthrown): Remove.
835 (gtm_thread::cxa_uncaught_count_ptr): Add.
836 (gtm_thread::cxa_uncaught_count): Add.
837 (gtm_thread::drop_references_allocations): Rename to...
838 (gtm_thread::discard_allocation): ... this and adapt.
839 (gtm_thread::init_cpp_exceptions): New.
840 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
841 (gtm_thread::begin_transaction): Likewise.
842 (gtm_transaction_cp::save): Likewise.
843 (gtm_thread::trycommit): Likewise.
844 * eh_cpp.cc: Add overview comments.
845 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
846 (free_any_exception, _ITM_cxa_free_exception): New.
847 (gtm_thread::init_cpp_exceptions): Define.
848 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
849 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
850 (gtm_thread::revert_cpp_exceptions): Likewise.
852 2015-11-09 Torvald Riegel <triegel@redhat.com>
854 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
855 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
856 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
857 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
858 (gtm_thread::forget_allocations): New overload with size_t argument.
859 * alloc.c (gtm_thread::forget_allocation): Define new overload and
861 (gtm_thread::record_allocation): Adapt.
862 (gtm_thread::commit_allocations_1): Adapt.
863 (gtm_thread::commit_allocations_2): Adapt.
864 * testsuite/libitm.c++/newdelete.C: New.
866 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
867 Joseph Myers <joseph@codesourcery.com>
868 Mark Shinwell <shinwell@codesourcery.com>
869 Andrew Stubbs <ams@codesourcery.com>
870 Rich Felker <dalias@libc.org>
872 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
873 GTM_begin_transaction for compatibility with FDPIC.
875 2015-10-09 David Malcolm <dmalcolm@redhat.com>
877 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
880 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
883 * local_atomic (__always_inline): Rename to...
884 (__libitm_always_inline): ... this.
886 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
889 * config/powerpc/sjlj.S: Port to Xcode 2.5.
891 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
893 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
894 operands "op" and "val" to int.
896 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
898 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
899 "op" and "val" to int.
901 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
903 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
904 "op" and "val" to int.
906 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
908 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
909 Declare as static int.
910 (FUTEX_PRIVATE_FLAG): Remove L suffix.
911 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
913 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
915 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
918 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
920 * Makefile.in: Regenerated with automake-1.11.6.
921 * aclocal.m4: Likewise.
922 * configure: Likewise.
923 * testsuite/Makefile.in: Likewise.
925 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
927 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
928 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
930 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
933 * libitm.c/stackundo.c (test2): Make it static.
936 2015-01-05 Jakub Jelinek <jakub@redhat.com>
938 Update copyright years.
940 2015-01-05 Jakub Jelinek <jakub@redhat.com>
942 * libitm.texi: Bump @copying's copyright year.
944 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
946 * testsuite/lib/libitm.exp: Load target-utils.exp.
947 Move load of target-supports.exp earlier.
949 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
951 * configure.tgt (x86_64): Tune -m32 multilib to generic.
953 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
956 * configure: Regenerated.
958 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
961 * configure: Regenerate.
963 2014-10-06 Marek Polacek <polacek@redhat.com>
965 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
966 * testsuite/libitm.c/memset-1.c: Likewise.
968 2014-07-24 Richard Henderson <rth@redhat.com>
970 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
971 addressing mode in epilogue.
973 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
975 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
976 -mclear-hwcap instead.
977 * configure: Regenerate.
978 * clearcap.map: Remove.
980 2014-05-21 John Marino <gnugcc@marino.st>
982 * configure.tgt (*-*-dragonfly*): New target.
984 2014-05-19 Richard Henderson <rth@redhat.com>
986 * config/aarch64/sjlj.S: New file.
987 * config/aarch64/target.h: New file.
988 * configure.tgt: Enable aarch64.
990 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992 * config/generic/asmcfi.h: Also check for
993 __GCC_HAVE_DWARF2_CFI_ASM.
995 2013-04-02 Richard Henderson <rth@redhat.com>
997 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
998 * config/arm/target.h, config/sh/target.h: Likewise.
999 * config/sparc/target.h, config/x86/target.h: Likewise.
1001 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1003 * config/linux/futex_bits.h: Include errno.h.
1004 (sys_futex0): If syscall returns -1, return -errno rather than
1007 2014-03-26 Joseph Myers <joseph@codesourcery.com>
1009 * libitm.texi (Index): Rename to Library Index.
1011 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
1014 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
1015 (x86_avx.lo): Append -mavx to CXXFLAGS.
1016 * Makefile.in: Regenerate.
1018 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1020 Update copyright years
1022 2014-01-02 Tobias Burnus <burnus@net-b.de>
1024 * libitm.texi: Bump @copying's copyright year.
1026 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1028 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
1029 (FUNC): Define ELFv2 variant.
1034 (LR_SAVE): Likewise.
1036 2013-09-20 Alan Modra <amodra@gmail.com>
1038 * configure: Regenerate.
1040 2013-08-30 Torvald Riegel <triegel@redhat.com>
1042 * config/posix/rwlock.cc: Fix initialization order.
1044 2013-08-30 Torvald Riegel <triegel@redhat.com>
1046 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1047 (htm_fastpath): Assign an asm name.
1048 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1050 (_ITM_actions): Likewise.
1051 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1053 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1054 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
1055 field to the start of the structure.
1056 * config/linux/rwlock.h (gtm_rwlock): Update comments.
1057 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1058 handling for custom HTM fast paths.
1060 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1062 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1064 * configure.tgt: Add -msoft-float to XCFLAGS.
1066 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1068 * configure.tgt: Add -msoft-float to XCFLAGS.
1070 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1072 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1073 (htm_transaction_active): Enable zEC12 instructions in the
1075 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1077 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1079 * acinclude.m4: Add htm asm check for s390.
1080 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1081 * configure: Regenerate.
1082 * config/s390/target.h: Remove __HTM__ check.
1083 (htm_available): Call getauxval to get hwcaps and check whether
1084 HTM is available or not.
1086 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1088 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1089 * configure.ac: Use it.
1090 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1091 (AC_CHECK_FUNCS): Check for getauxval.
1092 * config.h.in, configure: Rebuild.
1093 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1094 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1095 (USE_HTM_FASTPATH): Define.
1096 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1097 _HTM_RETRIES) New macros.
1098 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1099 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1101 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1103 * config/s390/target.h: Include htmintrin.h.
1104 (_HTM_ITM_RETRIES): New macro definition.
1105 (htm_available, htm_init, htm_begin, htm_begin_success)
1106 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1108 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1109 Cesar Philippidis <cesar@codesourcery.com>
1111 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1112 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1113 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1114 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1116 2013-06-20 Torvald Riegel <triegel@redhat.com>
1118 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1119 (_ITM_getTransactionId): Same.
1120 * config/x86/target.h (htm_transaction_active): New.
1122 2013-06-20 Torvald Riegel <triegel@redhat.com>
1125 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1128 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
1131 * local_atomic (__always_inline): Always define our version.
1132 (__calculate_memory_order): Mark inline.
1133 (atomic_thread_fence): Ditto.
1134 (atomic_signal_fence): Ditto.
1135 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1136 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1137 (atomic_bool::atomic_flag_test_and_set): Ditto.
1138 (atomic_bool::atomic_flag_clear): Ditto.
1140 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1142 * config/s390/sjlj.S: New file.
1143 * config/s390/target.h: New file.
1144 * configure.tgt: Set options for S/390.
1146 2013-03-23 Andi Kleen <ak@linux.intel.com>
1148 * local_atomic (__always_inline): Add.
1149 (__calculate_memory_order, atomic_thread_fence,
1150 atomic_signal_fence, test_and_set, clear, store, load,
1151 exchange, compare_exchange_weak, compare_exchange_strong,
1152 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1153 Add __always_inline to force inlining.
1155 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1156 Jack Howarth <howarth@bromo.med.uc.edu>
1157 Patrick Marlier <patrick.marlier@gmail.com>
1160 * alloc_cpp.cc: Enable function declarations on darwin.
1161 * eh_cpp.cc: Likewise.
1163 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1165 Update copyright years.
1167 2012-11-09 Torvald Riegel <triegel@redhat.com>
1169 * beginend.cc (htm_fastpath): New.
1170 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1171 _ITM_commitTransactionEH): Add HTM fastpath handling.
1172 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1173 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1174 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1175 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1176 * configure.tgt: Add -mrtm to XCFLAGS.
1177 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1178 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1179 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1180 * retry.cc (parse_default_method): Add HTM method parsing.
1181 (gtm_thread::number_of_threads_changed): Use HTM by default if
1184 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1186 * configure: Regenerate.
1188 2012-10-31 Richard Henderson <rth@redhat.com>
1190 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1191 * configure.ac: Use it.
1192 * config.h.in, configure: Rebuild.
1193 * testsuite/Makefile.in: Rebuild.
1195 2012-10-24 Torvald Riegel <triegel@redhat.com>
1197 * libitm.texi: Clarify ABI requirements for data-logging functions.
1199 2012-10-24 Torvald Riegel <triegel@redhat.com>
1201 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1202 it requires serial mode instead of assuming that for certain
1204 * dispatch.h (abi_dispatch::requires_serial): New.
1205 (abi_dispatch::abi_dispatch): Adapt.
1206 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1207 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1208 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1209 serial_dispatch::serial_dispatch,
1210 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1212 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1214 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1215 and ia32 declarations some more.
1216 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1218 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1221 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1222 * configure: Regenerate.
1223 * Makefile.in: Regenerate.
1225 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1227 * configure: Regenerated.
1229 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
1231 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1233 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
1235 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1237 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1239 * configure: Regenerated.
1241 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
1244 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1247 2012-04-03 Tristan Gingold <gingold@adacore.com>
1249 * configure: Regenerate.
1251 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1254 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1256 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1258 * testsuite/lib/libitm.exp: load fortran-modules.exp
1260 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1262 * configure.tgt (*-*-irix6*): Remove.
1264 2012-03-13 Torvald Riegel <triegel@redhat.com>
1267 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1270 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1272 * configure.tgt (*-*-osf*): Remove.
1273 * configure: Regenerate.
1275 2012-03-05 Torvald Riegel <triegel@redhat.com>
1277 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1278 memtransfer/memset if size isn't larger than zero.
1280 2012-03-02 Torvald Riegel <triegel@redhat.com>
1282 * libitm.texi: Link to specification and add a usage example.
1284 2012-02-24 Torvald Riegel <triegel@redhat.com>
1286 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1287 default dispatch for more than 1 thread to ml_wt.
1289 2012-02-20 Torvald Riegel <triegel@redhat.com>
1291 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1293 2012-02-20 Torvald Riegel <triegel@redhat.com>
1295 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1297 2012-02-20 Torvald Riegel <triegel@redhat.com>
1299 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1300 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1301 (gl_wt_dispatch.rollback): Same.
1303 2012-02-20 Torvald Riegel <triegel@redhat.com>
1305 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1307 2012-02-20 Torvald Riegel <triegel@redhat.com>
1309 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1310 for RfW src. Optimize number of calls to gtm_thr.
1312 2012-02-20 Torvald Riegel <triegel@redhat.com>
1314 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1316 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1317 (default_dispatch): Make atomic.
1318 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1319 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1320 use decide_begin_dispatch() if default_dispatch might have changed.
1321 (GTM::gtm_thread::number_of_threads_changed): Initialize
1322 default_dispatch here.
1324 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1325 Patrick Marlier <patrick.marlier@gmail.com>
1328 * alloc_cpp.cc: No dummy definitions for darwin.
1329 * eh_cpp.cc: Likewise.
1331 2012-02-14 Richard Henderson <rth@redhat.com>
1333 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1335 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1337 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1339 2012-02-14 Torvald Riegel <triegel@redhat.com>
1341 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1342 (GTM::gtm_thread): Add read and write logs.
1343 (GTM::dispatch_ml_wt): Declare.
1344 * retry.cc (parse_default_method): Support ml_wt.
1345 * method-ml.cc: New file.
1346 * Makefile.am: Add method-ml.cc.
1347 * Makefile.in: Regenerate.
1349 2012-02-14 Torvald Riegel <triegel@redhat.com>
1351 * dispatch.h (GTM::abi_dispatch::supports): New.
1352 (GTM::method_group::reinit): New.
1353 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1354 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1355 supports the current situation.
1357 2012-02-14 Torvald Riegel <triegel@redhat.com>
1359 * util.cc (GTM::xcalloc): New.
1360 * common.h (GTM::xcalloc): Declare.
1362 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1364 * config/sparc/target.h (cpu_relax): Read from CC register.
1365 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1367 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1369 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1371 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1373 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1374 * config/sparc/cacheline.h: New file.
1375 * config/sparc/target.h: Likewise.
1376 * config/sparc/sjlj.S: Likewise.
1377 * config/linux/sparc/futex_bits.h: Likewise.
1379 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1381 * configure.ac (link_itm): Fix comment.
1382 * configure: Regenerate.
1383 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1385 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1388 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1389 Correct libgomp references.
1391 2012-01-24 Torvald Riegel <triegel@redhat.com>
1393 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1396 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1398 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1400 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1401 offset values. Do not copy return address. Decrement stack
1403 (GTM_longjump) [__x86_64__]: Update offset values.
1405 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1408 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1409 the first function argument to %eax.
1411 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413 * libitm.h (_ITM_getThreadnum): Remove.
1414 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1416 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1418 * clearcap.map: New file.
1419 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1420 * configure.ac: Call it.
1421 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1422 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1423 * configure: Regenerate.
1424 * Makefile.in: Regenerate.
1425 * testsuite/Makefile.in: Regenerate.
1427 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1430 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1431 include, exclude options.
1433 2012-01-14 Torvald Riegel <triegel@redhat.com>
1435 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1437 * containers.h (GTM::vector::set_size): New.
1439 2012-01-14 Torvald Riegel <triegel@redhat.com>
1442 * config/generic/tls.h (GTM::mask_stack_top): New.
1443 (GTM::mask_stack_bottom): Declare.
1444 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1445 * local.cc (gtm_undolog::rollback): Filter out any updates that
1446 overlap the libitm stack. Add current transaction as parameter.
1447 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1448 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1449 * testsuite/libitm.c/stackundo.c: New test.
1451 2012-01-10 Richard Henderson <rth@redhat.com>
1453 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1454 * eh_cpp.cc (_Unwind_DeleteException): Define for
1455 !HAVE_ELF_STYLE_WEAKREF.
1457 2012-01-08 Torvald Riegel <triegel@redhat.com>
1459 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1460 (GTM::gtm_thread::drop_references_undolog): Remove.
1461 (GTM::gtm_thread::commit_undolog,
1462 GTM::gtm_thread::rollback_undolog): Move to ...
1463 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1464 (GTM::gtm_undolog_entry): Remove.
1465 (GTM::gtm_thread): Adapt.
1466 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1467 (GTM::gtm_thread::trycommit): Adapt.
1468 * method-serial.cc (serial_dispatch::log): Adapt.
1469 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1470 (gl_wt_dispatch::store): Fix likely/unlikely.
1471 * containers.h (GTM::vector::resize): Add additional_capacity
1472 parameter and handle it.
1473 (GTM::vector::resize_noinline): New/adapt.
1474 (GTM::vector::push): New.
1476 2012-01-06 Richard Henderson <rth@redhat.com>
1478 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1479 * config/linux/powerpc/futex_bits.h: New file.
1480 * config/powerpc/cacheline.h: New file.
1481 * config/powerpc/sjlj.S: New file.
1482 * config/powerpc/target.h: New file.
1483 * config/generic/asmcfi.h (cfi_offset): New.
1484 (cfi_restore, cfi_undefined): New.
1486 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1489 * testsuite/libitm.c/reentrant.c: Remove xfail.
1490 (thread): Pass x to pure().
1491 From Patrik Marlier <patrick.marlier@gmail.com>.
1493 2011-12-24 Torvald Riegel <triegel@redhat.com>
1495 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1496 privatization safety if already in serial mode.
1498 2011-12-24 Torvald Riegel <triegel@redhat.com>
1500 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1501 finish_serial_upgrade parameter.
1502 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1503 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1504 Don't unset reader flag.
1505 (GTM::gtm_rwlock::write_upgrade_finish): New.
1506 * config/posix/rwlock.cc: Same.
1507 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1509 * config/posix/rwlock.h: Same.
1510 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1511 flag after commit or after rollback when restarting.
1513 2011-12-24 Torvald Riegel <triegel@redhat.com>
1515 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1516 (GTM::gtm_thread::try_commit): Changed memory order.
1517 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1519 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1520 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1521 * config/linux/futex_bits.h (sys_futex0): Same.
1522 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1523 * config/linux/futex.h (futex_wait, futex_wake): Same.
1524 * config/linux/rwlock.h (gtm_rwlock::writers,
1525 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1527 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1528 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1529 gtm_rwlock::write_unlock): Fix memory orders and fences.
1530 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1531 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1532 gtm_rwlock::write_unlock): Same.
1533 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1534 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1535 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1537 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1538 gl_wt_dispatch::load, gl_wt_dispatch::store,
1539 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1540 orders and fences. Add comments.
1542 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1544 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1545 * Makefile.in: Regenerated.
1547 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1549 * configure.tgt: Add sh* case.
1550 * config/sh/target.h: New file.
1551 * config/sh/sjlj.S: New file.
1552 * config/linux/sh/futex_bits.h: New file.
1554 2011-12-14 Richard Henderson <rth@redhat.com>
1556 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1557 * config/arm/sjlj.S, config/arm/target.h: New files.
1558 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1559 (cfi_rel_offset): New.
1560 * config/linux/futex_bits.h: New file.
1561 * config/linux/futex.cc: Include futex_bits.h here...
1562 * config/linux/futex.h: ... not here.
1563 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1564 * configure.ac (ARCH_AM): New conditional.
1565 * Makefile.in, configure: Rebuild.
1566 * configure.tgt: Handle ARM.
1568 2011-12-13 Richard Henderson <rth@redhat.com>
1570 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1571 signed/unsigned comparison werror.
1573 * local_atomic: New file.
1574 * libitm_i.h: Include it.
1575 (gtm_thread::shared_state): Use atomic template.
1576 * beginend.cc (GTM::gtm_clock): Use atomic template.
1577 (global_tid): Use atomic template if 64-bit atomics available.
1578 (gtm_thread::gtm_thread): Update shared_state access.
1579 (gtm_thread::trycommit): Likewise.
1580 (choose_code_path): Update global_tid access.
1581 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1582 * stmlock.h (GTM::gtm_clock): Use atomic template.
1583 (gtm_get_clock, gtm_inc_clock): Update accesses.
1584 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1585 redundant __sync_synchronize after atomic shared_state access.
1586 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1587 (gtm_rwlock::write_lock_generic): Likewise.
1588 (gtm_rwlock::read_unlock): Likewise.
1589 * config/alpha/target.h (atomic_read_barrier): Remove.
1590 (atomic_write_barrier): Remove.
1591 * config/x86/target.h (atomic_read_barrier): Remove.
1592 (atomic_write_barrier): Remove.
1594 2011-11-30 Richard Henderson <rth@redhat.com>
1596 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1597 * beginend.c (_ITM_abortTransaction): Update to match.
1598 (GTM::gtm_thread::restart): Likewise.
1599 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1600 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1602 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1604 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1605 * Makefile.in: Regenerate.
1607 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1609 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1610 * alloc_cpp.cc: Generate dummy functions if we don't
1611 HAVE_ELF_STYLE_WEAKREF.
1612 * eh_cpp.cc: Likewise.
1613 * configure: Regenerate.
1614 * aclocal.m4: Likewise.
1615 * config.h.in: Likewise.
1616 * Makefile.in: Likewise.
1617 * testsuite/Makefile.in: Likewise.
1619 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1621 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1622 __USER_LABEL_PREFIX__ for targets that use it.
1623 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1624 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1625 in portability to non-elf targets.
1626 (GTM_longjmp): Likewise.
1627 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1630 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1632 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1633 * testsuite/libitm.c/memset-1.c: Likewise.
1635 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1637 * configure: Regenerate.
1639 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1641 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1642 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1643 * Makefile.am: Handle sun style versioning.
1644 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1645 * configure: Regenerate.
1646 * Makefile.in: Regenerate.
1648 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1650 * config/generic/asmcfi.h: Fix comment.
1651 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1652 sequence without .hidden support, error for non-ELF targets.
1653 (GTM_longjmp) [__ELF__]: Only use .hidden if
1654 HAVE_ATTRIBUTE_VISIBILITY.
1656 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1658 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1659 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1661 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1662 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1664 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1667 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1668 * configure: Regenerate.
1670 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1672 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1674 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1676 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1678 (.note.GNU-stack): Only use if __linux__.
1679 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1680 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1681 * testsuite/libitm.c/reentrant.c: Likewise.
1682 * testsuite/libitm.c/simple-2.c: Likewise.
1683 * testsuite/libitm.c/txrelease.c: Likewise.
1684 * testsuite/libitm.c++/static_ctor.C: Likewise.
1686 2011-11-10 Richard Henderson <rth@redhat.com>
1688 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1689 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1690 * configure.ac (ARCH_X86_AVX): New conditional.
1691 * Makefile.in, configure: Rebuild.
1693 2011-11-09 Richard Henderson <rth@redhat.com>
1695 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1696 * configure.ac: Use it.
1697 * config.h.in, configure: Rebuild.
1698 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1700 2011-11-09 Richard Henderson <rth@redhat.com>
1702 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1703 * config/alpha/unaligned.h: Remove file.
1704 * config/generic/unaligned.h: Remove file.
1705 * config/x86/unaligned.h: Remove file.
1706 * config/generic/cachepage.h: Remove file.
1707 * config/posix/cachepage.cc: Remove file.
1708 * config/generic/cacheline.cc: Remove file.
1709 * config/x86/cacheline.cc: Remove file.
1710 * config/generic/cacheline.h (gtm_cacheline): Remove the
1711 store_mask, copy_mask, copy_mask_wb methods.
1712 * config/x86/cacheline.h: Likewise.
1713 * config/alpha/cacheline.h: Fall back to generic after setting size.
1714 * config/generic/tls.cc (gtm_mask_stack): Remove.
1715 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1716 (GTM_vpalignr_table): Remove.
1717 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1718 (GTM_pshift_table): Remove.
1719 * config/libitm_i.h: Don't include cachepage.h.
1720 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1721 * Makefile.in, testsuite/Makefile.in: Rebuild.
1723 2011-11-09 Richard Henderson <rth@redhat.com>
1725 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1726 to emit branch prediction hint.
1728 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1729 Protect .note.GNU-stack with __linux__.
1731 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1732 * configure, aclocal.m4, config.h.in: Rebuild.
1733 * config/generic/asmcfi.h: New file.
1734 * config/x86/sjlj.S: Use it.
1736 2011-11-08 Richard Henderson <rth@redhat.com>
1738 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1740 2011-11-08 Richard Henderson <rth@redhat.com>
1742 * configure.tgt: Test correct directory for supported cpus.
1744 * configure.ac: Exit if unsupported.
1745 * configure: Rebuild.
1746 * configure.tgt: Delete boilerplate from libgomp for unsupported
1747 targets. Set UNSUPPORTED for unsupported targets.
1749 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1751 * configure.tgt: Handle i386 like i[456]86.
1752 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1754 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1755 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1757 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1759 * method-wbetl.cc: Update copyright notice.
1765 * barrier.tpl: Same.
1766 * useraction.cc: Same.
1770 * config/generic/tls.cc: Same.
1771 * config/generic/cacheline.h: Same.
1772 * config/generic/cachepage.h: Same.
1773 * config/generic/cacheline.cc: Same.
1774 * config/generic/unaligned.h: Same.
1775 * config/x86/cacheline.h: Same.
1776 * config/x86/cacheline.cc: Same.
1777 * config/x86/unaligned.h: Same.
1778 * config/alpha/cacheline.h: Same.
1779 * config/alpha/unaligned.h: Same.
1780 * config/alpha/sjlj.S: Same.
1781 * config/posix/cachepage.cc: Same.
1782 * config/linux/futex.h: Same.
1783 * config/linux/alpha/futex_bits.h: Same.
1785 2011-11-04 Torvald Riegel <triegel@redhat.com>
1787 * libitm.texi: No cover text and invariant sections.
1789 2011-11-03 Richard Henderson <rth@redhat.com>
1791 * local_type_traits: New file.
1792 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1794 2011-11-03 Richard Henderson <rth@redhat.com>
1796 * configure.ac: Don't test for gfortran.
1797 * configure: Rebuild.
1799 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1800 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1802 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1804 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1805 * testsuite/libitm.c/memset-1.c: Same.
1806 * testsuite/libitm.c/c.exp: Same.
1807 * testsuite/lib/libitm-dg.exp: Same.
1808 * testsuite/lib/libitm.exp: Same.
1809 * testsuite/libitm.c++/c++.exp: Same.
1811 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1813 * testsuite/config/default.exp: Update copyright date.
1814 * configure.ac: Add copyright info.
1815 * configure.tgt: Same.
1817 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1819 * testsuite/libitm.c/reentrant.c: XFAIL.
1820 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1822 2011-10-29 Torvald Riegel <triegel@redhat.com>
1824 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1826 (_ITM_abortTransaction): Handle aborts of outer transactions.
1828 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1829 * libitm.texi: Document aborts of outer transactions.
1830 * testsuite/libitm.c/cancel.c: New file.
1832 2011-10-19 Torvald Riegel <triegel@redhat.com>
1834 * testsuite/*: Change __transaction to __transaction_atomic or
1835 __transaction_relaxed.
1837 2011-10-19 Torvald Riegel <triegel@redhat.com>
1839 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1842 2011-10-19 Torvald Riegel <triegel@redhat.com>
1844 * libitm_i.h: Add gl_wt dispatch.
1845 * retry.cc (parse_default_method): Same.
1846 * method-gl.cc: New file.
1847 * Makefile.am: Use method-gl.cc.
1848 * Makefile.in: Rebuild.
1850 2011-10-19 Torvald Riegel <triegel@redhat.com>
1852 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1853 safety if requested by a TM method.
1854 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1855 privatization safety.
1856 * method-serial.cc: Same.
1858 2011-10-19 Torvald Riegel <triegel@redhat.com>
1860 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1861 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1862 undolog-related member functions from *_local to *_undolog.
1863 * local.cc (gtm_thread::commit_undolog): Same.
1864 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1865 (GTM::gtm_thread::rollback): Roll back undolog before
1866 dispatch-specific rollback.
1868 2011-10-19 Torvald Riegel <triegel@redhat.com>
1870 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1871 re-initialization of the current method group.
1872 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1874 2011-10-19 Torvald Riegel <triegel@redhat.com>
1876 * alloc.cc (commit_allocations_2): Do not free transaction-local
1877 memory when committing a nested transaction.
1879 2011-10-19 Torvald Riegel <triegel@redhat.com>
1881 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1882 serial-irrevocable dispatch, not serial.
1884 2011-10-19 Torvald Riegel <triegel@redhat.com>
1886 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1888 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1889 * method-serial.cc: Implement begin_or_restart().
1890 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1891 dispatch-specific begin_or_restart().
1892 (GTM::gtm_thread::restart): Same.
1894 2011-08-23 Torvald Riegel <triegel@redhat.com>
1896 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1897 restarting without switching to serial mode.
1898 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1899 transaction state. Choose closed-nesting alternative if available.
1900 (GTM::gtm_thread::set_default_dispatch): New.
1901 (parse_default_method): New.
1902 (GTM::gtm_thread::number_of_threads_changed): New.
1903 * method-serial.cc (GTM::serial_mg): New method group class.
1904 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1906 (GTM::serial_dispatch): Same.
1907 (GTM::serialirr_onwrite_dispatch): Same.
1908 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1909 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1911 (GTM::gtm_thread::gtm_thread): Same.
1912 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1913 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1914 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1915 choose dispatch but set state according to dispatch here.
1916 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1917 (GTM::method_group): New class.
1918 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1919 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1920 * libitm.texi: Document TM methods, method groups, method life cycle.
1921 Rename method sets to method groups.
1923 2011-08-23 Torvald Riegel <triegel@redhat.com>
1925 * config/x86/tls.h: Moved to ...
1926 * config/linux/x86/tls.h: ... here.
1928 2011-08-23 Torvald Riegel <triegel@redhat.com>
1930 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1932 * config/x86/sjlj.S: Same.
1934 2011-08-19 Torvald Riegel <triegel@redhat.com>
1936 * config/linux/rwlock.h: New file.
1937 * config/linux/rwlock.c: New file.
1938 * configure.ac: Reenable futex support (undo SVN rev 157758).
1939 * Makefile.am: Same.
1940 * configure.tgt: Same.
1941 * config/linux/alpha/futex_bits.h: Same.
1942 * config/linux/futex.h: Same. Return number of woken processes.
1943 * config/linux/futex.cc: Same.
1944 (futex_wait): Remove spinning.
1945 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1946 Use __x86_64__ instead of __LP64__.
1947 * aclocal.m4: Include generic futex checks.
1948 * configure: Rebuild.
1949 * Makefile.in: Rebuild.
1950 * testsuite/Makefile.in: Rebuild.
1951 * beginend.cc: Include pthread.h.
1952 * config/posix/cachepage.cc: Same.
1954 2011-08-12 Torvald Riegel <triegel@redhat.com>
1956 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1957 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1959 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1961 (GTM::gtm_thread::thread_num): Removed.
1962 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1963 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1964 tx-to-thread renaming.
1965 * beginend.cc: Adapted to tx-to-thread renaming.
1966 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1967 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1968 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1969 gtm_transaction to gtm_thread.
1970 (_ITM_getThreadnum): Removed. Not supported anymore.
1971 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1972 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1973 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1974 gtm_tx-to-gtm_thr renaming if necessary.
1981 * alloc_cpp.cc: Same.
1982 * method-serial.cc: Same.
1983 * config/generic/tls.cc: Same.
1984 * config/posix/rwlock.h (gtm_rwlock): Same.
1985 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1987 2011-08-12 Torvald Riegel <triegel@redhat.com>
1989 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1991 (gtm_rwlock::read_unlock): Same.
1992 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1993 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1994 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1995 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1996 w_upgrade. Replaced by per-transaction flags (in shared_state).
1997 Added c_confirmed_writers.
1998 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1999 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
2000 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2001 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
2002 * beginend.cc (GTM::gtm_transaction::begin_transaction,
2003 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
2004 * libitm.texi: Document locking conventions and implementations in
2007 2011-08-12 Torvald Riegel <triegel@redhat.com>
2009 * libitm_i.h (next_tx): Add list of all threads' transaction.
2010 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
2011 transaction with list of transactions and ...
2012 (thread_exit_handler): ... deregister here.
2013 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
2014 * config/x86/target.h: Same.
2016 2011-08-12 Torvald Riegel <triegel@redhat.com>
2018 * testsuite/libitm.c++/static_ctor.C: New file.
2020 2011-08-12 Torvald Riegel <triegel@redhat.com>
2022 * testsuite/libitm.c/reentrant.c: New file.
2024 2011-08-12 Torvald Riegel <triegel@redhat.com>
2026 * config/generic/tls.h: Remove the free list for transactions and ...
2027 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
2028 (GTM::gtm_transaction::operator delete): ... and release here.
2029 (thread_exit_handler): New. Delete tx when thread terminates.
2030 (thread_exit_init): New.
2031 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
2032 * testsuite/libitm.c/txrelease.c: New file.
2034 2011-08-12 Torvald Riegel <triegel@redhat.com>
2036 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2037 * testsuite/libitm.c/notx.c: New file.
2039 2011-08-12 Torvald Riegel <triegel@redhat.com>
2041 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2042 * libitm_i.h (local_tid): ... to here.
2043 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2044 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2046 2011-08-12 Torvald Riegel <triegel@redhat.com>
2048 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2049 serialirr_onwrite_dispatch as new default for now.
2050 * method-serial.cc (serialirr_onwrite_dispatch): New.
2051 (GTM::dispatch_serialirr_onwrite): New.
2054 2011-08-12 Torvald Riegel <triegel@redhat.com>
2056 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2057 * query.cc (_ITM_getTransactionId): There is no active transaction if
2058 the current nesting level is zero.
2060 2011-07-28 Torvald Riegel <triegel@redhat.com>
2062 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2065 2011-07-28 Torvald Riegel <triegel@redhat.com>
2067 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2068 transaction properties from the caller instead of from the
2071 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2073 2011-07-28 Torvald Riegel <triegel@redhat.com>
2075 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2076 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2078 * method-serial.cc: Same.
2079 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2080 flat nesting as default, and closed nesting on demand.
2081 (GTM::gtm_transaction::rollback): Same.
2082 (_ITM_abortTransaction): Same.
2083 (GTM::gtm_transaction::restart): Same.
2084 (GTM::gtm_transaction::trycommit): Same.
2085 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2086 (choose_code_path): New.
2087 (GTM::gtm_transaction_cp::save): New.
2088 (GTM::gtm_transaction_cp::commit): New.
2089 * query.cc (_ITM_inTransaction): Support flat nesting.
2090 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2091 (GTM::gtm_transaction): Support flat and closed nesting.
2092 * alloc.cc (commit_allocations_2): New.
2093 (commit_cb_data): New helper struct.
2094 (GTM::gtm_transaction::commit_allocations): Handle nested
2096 * libitm.texi: Update user action section, add description of nesting.
2098 2011-07-28 Torvald Riegel <triegel@redhat.com>
2100 * libitm_i.h: Add closed nesting as restart reason.
2101 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2103 2011-07-28 Torvald Riegel <triegel@redhat.com>
2105 * useraction.cc: Use vector instead of list to store actions.
2106 Also support partial rollbacks for closed nesting.
2107 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2108 * beginend.cc: Same.
2110 2011-07-28 Torvald Riegel <triegel@redhat.com>
2112 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2113 closed_nesting flags, as well as a closed nesting alternative.
2114 * method-serial.cc: Same.
2115 (serial_dispatch): Renamed to serialirr_dispatch.
2116 (GTM::dispatch_serialirr): Same.
2117 (serial_dispatch_ul): Renamed to serial_dispatch.
2118 (GTM::dispatch_serial): Same.
2120 2011-07-28 Torvald Riegel <triegel@redhat.com>
2122 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2124 2011-07-28 Torvald Riegel <triegel@redhat.com>
2126 * aatree.h (aa_tree::remove): New.
2127 (aa_tree::operator new): Add placement new.
2129 2011-07-02 Torvald Riegel <triegel@redhat.com>
2131 * containers.h: New file.
2132 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2133 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2134 * common.h: ... to here.
2135 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2138 2011-06-30 Torvald Riegel <triegel@redhat.com>
2140 * libitm_i.h (STATE_ABORTING): Remove.
2141 * beginend.cc (_ITM_abortTransaction): Same.
2142 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2143 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2144 (_ITM_rollbackTransaction): Remove.
2145 * beginend.cc: Same.
2147 * libitm.texi: Document these ABI changes.
2149 2011-06-30 Torvald Riegel <triegel@redhat.com>
2151 * libitm.texi: New file.
2152 * Makefile.am: Add libitm.texi.
2153 * Makefile.in: Rebuild.
2155 2011-06-30 Torvald Riegel <triegel@redhat.com>
2157 * libitm_i.h: Move parts to common.h and dispatch.h.
2158 * common.h: New file.
2159 * dispatch.h: New file, new dispatch class.
2160 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2161 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2162 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2163 decision to retry.cc.
2164 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2166 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2167 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2169 * barrier.cc: Use new barriers definitions.
2170 (abi_dispatch::memmove_overlap_check): New.
2171 * config/x86/x86_sse.cc: Same.
2172 * config/x86/x86_avx.cc: Same.
2173 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2175 * Makefile.in: Rebuild.
2176 * method-readonly.cc: Remove.
2177 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2178 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2180 2011-06-30 Torvald Riegel <triegel@redhat.com>
2182 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2183 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2184 * testsuite/libitm.c/dropref-2.c: Same.
2185 * testsuite/libitm.c/dropref.c: Same.
2187 2011-06-30 Torvald Riegel <triegel@redhat.com>
2189 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2190 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2191 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2193 * barrier.tpl: Same.
2195 * config/generic/tls.h: Same.
2196 * config/x86/tls.h: Same.
2200 * method-readonly.cc: Same.
2201 * method-serial.cc: Same.
2202 * method-wbetl.cc: Same.
2205 2011-03-03 Richard Henderson <rth@redhat.com>
2207 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2208 From Patrik Marlier <patrick.marlier@unine.ch>.
2210 2011-02-03 Richard Henderson <rth@redhat.com>
2212 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2213 * configure.ac: Use it.
2214 * configure, config.h.in: Rebuild.
2215 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2216 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2217 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2218 * libitm.map: Use wildcards to match size_t mangling.
2220 2010-12-14 Richard Henderson <rth@redhat.com>
2222 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2223 blocks of TIDs per thread.
2224 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2225 (setup_gtm_thr): Return the thread structure.
2226 * config/x86/tls.h (setup_gtm_thr): Likewise.
2228 2010-12-14 Richard Henderson <rth@redhat.com>
2230 * clone.cc (table_lock): Remove.
2231 (find_clone): Don't take it.
2232 (ExcludeTransaction): New helper class.
2233 (_ITM_registerTMCloneTable): Use it.
2234 (_ITM_deregisterTMCloneTable): Likewise.
2236 2010-12-14 Richard Henderson <rth@redhat.com>
2238 * config/x86/tls.h: New file.
2240 2010-07-15 Richard Henderson <rth@redhat.com>
2242 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2243 * Makefile.in: Rebuild.
2245 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2247 * method-wbetl.cc (trydropreference): Fix source line.
2249 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2251 * libitm.h: Add comment.
2252 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2254 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
2256 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2257 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2258 available, use pthread mutexes.
2259 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2260 * config.h.in: Regenerate.
2261 * configure: Regenerate.
2263 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
2265 * libitm.h (ITM_PURE): Define.
2266 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2268 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2270 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2271 (validate): Add comment.
2272 (trydropreference): New.
2273 * method-readonly.cc (class readonly_dispatch): Add
2275 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2276 Call trydropreference().
2277 * libitm.h (_ITM_dropReferences): Remove const attribute.
2278 * method-serial.cc (class serial_dispatch): Add trydropreference.
2279 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2281 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2283 * memcpy.cc (do_memcpy): Comment.
2285 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
2287 * barrier.tpl: Add comments throughout.
2289 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2291 * method-wbetl.cc (struct w_entry): Add comments.
2295 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2297 * alloc_c.cc (_ITM_dropReferences): New.
2298 * libitm.map (_ITM_dropReferences): Add.
2299 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2300 * libitm_i.h (struct gtm_transaction): Declare
2301 drop_references_allocations and drop_references_local.
2302 * local.cc (rollback_local): Ignore memory when applicable.
2303 (drop_references_local): New.
2305 2010-06-23 Richard Henderson <rth@redhat.com>
2307 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2308 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2309 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2310 * config/alpha/target.h: Likewise.
2311 * config/generic/tls.cc (gtm_mask_stack): Use it.
2313 2010-06-23 Richard Henderson <rth@redhat.com>
2315 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2316 a mutex instead of trying a lock-free compare-and-swap on the list.
2317 (gtm_cacheline_page::operator delete): Likewise.
2319 2010-06-16 Richard Henderson <rth@redhat.com>
2321 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2322 that overlap the libitm stack.
2323 * barrier.tpl: Mark incoming stack.
2324 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2325 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2326 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2327 * memcpy.cc, memset.cc: Likewise.
2328 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2329 * config/generic/tls.h (gtm_thread): Add stack_top member.
2330 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2331 * libitm_i.h (gtm_mask_stack): Declare.
2332 * config/generic/tls.cc: New file.
2333 * Makefile.am (libitm_la_SOURCES): Add it.
2334 (AM_CXXFLAGS): Turn off exceptions.
2335 * Makefile.in: Rebuild.
2337 2010-06-16 Richard Henderson <rth@redhat.com>
2339 * alloc.cc (struct gtm_alloc_action): Move definition ...
2340 * libitm_i.h: ... here.
2341 (class gtm_transaction): Declare new and delete.
2342 * beginend.cc (alloc_tx): Reformulate as operator new.
2343 (free_tx): Reformulate as operator delete.
2344 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2346 2010-06-11 Richard Henderson <rth@redhat.com>
2348 * clone.cc (clone_entry_compare): Fix typo.
2349 From Patrik Marlier <patrick.marlier@unine.ch>.
2351 2010-05-13 Richard Henderson <rth@redhat.com>
2353 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2356 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2358 * libitm_i.h (struct gtm_transaction): Remove
2359 get_allocation_size.
2360 (record_allocation): Remove size parameter.
2361 * libitm.map (_ITM_realloc): Remove.
2362 * alloc_c.cc (_ITM_realloc): Remove.
2363 (_ITM_malloc): Remove size argument to record_allocation.
2364 (_ITM_calloc): Same.
2365 * alloc_cpp.cc (_ZGTtnwm): Same.
2366 (_ZGTtnwmRKSt9nothrow_t): Same.
2368 (_ZGTtnamRKSt9nothrow_t): Same.
2369 * alloc.cc (struct gtm_alloc_action): Remove size.
2370 (get_allocation_size): Remove.
2371 (commit_allocations): Add comment.
2372 (record_allocation): Remove size parameter.
2373 (forget_allocation): Remove set of size.
2375 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2377 * Makefile.am (abi_version): New.
2378 (AM_CXXFLAGS): Pass abi_version.
2379 * Makefile.in: Regenerate.
2380 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2382 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2384 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2385 _ITM_getTMCloneOrIrrevokable.
2386 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2387 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2389 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2391 * configure.ac: Remove Linux futex support.
2392 * configure.tgt (config_path): Same.
2393 * Makefile.am: Same.
2394 * config/linux: Remove entire directory.
2395 * configure: Rebuild.
2396 * Makefile.in: Rebuild.
2397 * testsuite/Makefile.in: Rebuild.
2399 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2401 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2402 switching to serial mode.
2403 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2405 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2407 * configure.tgt: Add emacs -*- tags.
2408 * barrier.tpl: Same.
2410 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2412 * Makefile.am: Rename serial.cc to method-serial.cc.
2413 * Makefile.in: Regenerate with automake 1.11.1.
2414 * testsuite/Makefile.in: Same.
2415 * aclocal.m4: Regenerate with aclocal 1.11.1.
2416 * method-serial.cc: Rename from serial.cc.
2417 * libitm_i.h (struct gtm_transaction): Update comment on
2420 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2422 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2423 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2425 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2427 * configure: Rebuild.
2429 2009-11-12 Richard Henderson <rth@redhat.com>
2431 * Rewrite everything in C++.
2433 2009-11-03 Richard Henderson <rth@redhat.com>
2435 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2436 * Makefile.am (libitm_la_SOURCES): Add them.
2437 * configure.ac (ARCH_X86): New conditional.
2438 * Makefile.in, configure: Rebuild.
2439 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2440 Move futex setup into "other system configury" case.
2441 * local.c (rollback_local): Merge into ...
2442 (GTM_rollback_local): ... here.
2443 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2444 (_ITM_LB): Define as an alias to GTM_LB.
2446 2009-11-03 Richard Henderson <rth@redhat.com>
2448 * method-readonly.c: New file.
2449 * Makefile.am (libitm_la_SOURCES): Add it.
2450 * Makefile.in: Rebuild.
2451 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2452 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2453 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2454 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2455 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2456 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2457 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2458 gtm_get_clock, gtm_inc_clock): New.
2459 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2460 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2461 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2462 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2463 replace uses with new libitm_i.h symbols.
2464 (dispatch_wbetl): Rename from wbetl_dispatch.
2465 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2466 away from dispatch_readonly; abort if the beginTransaction call
2467 asserted that the transaction was readonly.
2469 2009-11-03 Richard Henderson <rth@redhat.com>
2471 * memset.c: New file.
2472 * Makefile.am (libitm_la_SOURCES): Add it.
2473 * Makefile.in: Rebuild.
2474 * testsuite/libitm.c/memset-1.c: New.
2476 2009-11-03 Richard Henderson <rth@redhat.com>
2478 * dispatch.c: Remove file.
2479 * useraction.c (struct gtm_user_action): Move from libitm.h.
2480 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2481 (serial_memset, serial_memmove, serial_memcpy): Remove.
2482 (serial_W*, serial_R*): Remove.
2483 (serial_dispatch): Update to match.
2484 * configure.ac: Move Werror down below configure checks. Don't
2485 check for sys/loadavg.h, do check for malloc.h. Don't check for
2486 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2487 Use GCC_AC_FUNC_MMAP_BLACKLIST
2488 * libitm.h: Split out all internal items to...
2489 * libitm_i.h: ... here. New file.
2490 * copymask.c: New file.
2491 * local.c (struct gtm_local_undo): Move from libitm.h.
2492 (GTM_alloc_local): Rename from alloc_local; export.
2493 * memcpy.c: New file.
2494 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2495 * config/posix/page.c: New file.
2496 * config/posix/target_tls.h: Remove file.
2497 * barrier.c: New file.
2498 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2500 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2501 * method-wbetl.c: Rewrite for new cacheline methods.
2502 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2504 * config/alpha/sjlj.S: Fix typo.
2505 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2506 * config/alpha/copymask.c: New file.
2507 * config/alpha/target.h (CACHELINE_SIZE): New.
2508 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2510 * config/x86/target_i.h: Copy functions from x86/target.h.
2511 * config/x86/copymask.c: New file.
2512 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2513 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2514 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2515 * config/x86/target_tls.h: Move contents to target_i.h.
2517 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2518 * testsuite/libitm.c/memcpy-1.c: New.
2520 2009-10-22 Richard Henderson <rth@redhat.com>
2522 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2523 (AM_CCASFLAGS): New.
2524 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2525 saving/restoring _AC_ARG_VAR_PRECIOUS.
2526 * Makefile.in, aclocal.m4, config.h.in, configure,
2527 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2529 2009-10-22 Richard Henderson <rth@redhat.com>
2531 * testsuite/*: Update for new compiler syntax.
2533 2009-10-21 Richard Henderson <rth@redhat.com>
2535 * libitm.h (_ITM_abortReason): Add outerAbort.
2537 2009-08-03 Richard Henderson <rth@redhat.com>
2539 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2540 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2541 * method-wbetl.c (struct w_entry): Remove mask.
2542 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2545 2009-07-22 Richard Henderson <rth@redhat.com>
2547 * eh_cpp.c: New file.
2548 * Makefile.am (libitm_la_SOURCES): Add it.
2549 * Makefile.in: Rebuild.
2550 * beginend.c (GTM_rollback_transaction): Undo exception state.
2551 (GTM_trycommit_transaction): Mark inline.
2552 (GTM_trycommit_and_finalize_transaction): Split out from ...
2553 (_ITM_commitTransaction): ... here.
2554 (_ITM_commitTransactionEH): New function.
2555 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2556 cxa_unthrown, eh_in_flight; reorder.
2558 * testsuite/libitm.c++/c++.exp: New.
2559 * testsuite/libitm.c++/eh-1.C: New.
2561 * aatree.c (aa_free): Remove REGPARM.
2562 * aatree.h: Remove all REGPARM.
2564 2009-07-18 Richard Henderson <rth@redhat.com>
2566 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2567 * Makefile.am (libitm_la_SOURCES): Add them.
2568 * Makefile.in: Rebuild.
2569 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2570 (GTM_trycommit_transaction): Likewise.
2571 * libitm.h: Include aatree.h
2572 (struct gtm_alloc_action): New.
2573 (struct gtm_transaction): Add alloc_actions.
2574 (GTM_record_allocation, GTM_forget_allocation): Declare.
2575 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2576 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2577 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2578 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2579 _ZGTtdaPvRKSt9nothrow_t): Export.
2581 2009-07-18 Richard Henderson <rth@redhat.com>
2583 * target_tls.h: Move ...
2584 * config/posix/target_tls.h: ... here.
2586 2009-07-07 Richard Henderson <rth@redhat.com>
2588 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2590 2009-07-07 Richard Henderson <rth@redhat.com>
2594 2009-07-07 Richard Henderson <rth@redhat.com>
2596 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2597 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2599 * configure.tgt: Don't use -ftls-model for x86 linux.
2600 * libitm.h: Include target.h after standard includes.
2601 (_gtm_thr): Rename from gtm_thr.
2602 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2603 (gtm_disp, set_gtm_disp): New.
2604 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2605 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2606 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2608 2009-07-07 Richard Henderson <rth@redhat.com>
2610 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2612 2009-07-06 Richard Henderson <rth@redhat.com>
2614 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2615 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2616 (_ITM_beginTransaction): Take variadic arguments.
2617 (_ITM_registerThrownObject): Declare.
2618 * beginend.c, serial.c: Update.
2619 * libitm.map: Add _ITM_registerThrownObject.
2621 2009-01-28 Richard Henderson <rth@redhat.com>
2623 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2624 * Makefile.in: Rebuild.
2625 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2626 (GTM_restart_transaction): Fix uninstrumented code check.
2627 * retry.c (GTM_decide_retry_strategy): Add serial check.
2628 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2629 automatically go irrevokable when in serial mode.
2630 * clone.c: New file.
2631 * libitm.h, libitm.map: Update.
2633 2009-01-27 Richard Henderson <rth@redhat.com>
2635 * Makefile.am (LTCCASCOMPILE): Define.
2636 (libitm_la_SOURCES): Add methid-wbetl.c.
2637 * testsuite/Makefile.am: New
2638 * configure.ac: Add testsuite/Makefile.
2639 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2640 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2641 (_ITM_abortTransaction): Finalize implementation method; pass
2642 transaction properties to longjmp.
2643 (GTM_restart_transaction): Split out from ...
2644 (_ITM_commitTransaction): ... here.
2645 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2646 Move to config/x86/target.h.
2647 * config/linux/alpha/futex_bits.h: New.
2648 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2649 * config/x86/target.h: Disable target types for 32-bit.
2650 * config/alpha/sjlj.S, config/alpha/target.h: New.
2651 * libitm.h (struct gtm_dispatch): Add init, fini.
2652 (enum restart_reason): New.
2653 (struct gtm_transaction): Add method and restarts.
2654 * retry.c (GTM_decide_retry_strategy): Implement.
2655 * serial.c (serial_init, serial_fini): New.
2656 (GTM_serialmode): Finialize outgoing method.
2657 * method-wbetl.c: New.
2659 2008-12-09 Richard Henderson <rth@redhat.com>
2661 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2662 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2663 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2664 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2665 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2666 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2667 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2668 * serial.c (serial_R##T, serial_W##T): Likewise.
2670 2008-11-21 Richard Henderson <rth@redhat.com>
2674 Copyright (C) 2008-2025 Free Software Foundation, Inc.
2676 Copying and distribution of this file, with or without modification,
2677 are permitted in any medium without royalty provided the copyright
2678 notice and this notice are preserved.