1 2024-04-02 Jakub Jelinek <jakub@redhat.com>
3 * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
4 words in comment; not not -> not to.
6 2024-02-05 Marek Polacek <polacek@redhat.com>
8 * containers.h (vector): Remove the template-id in constructors.
10 2024-01-03 Jakub Jelinek <jakub@redhat.com>
12 * libitm.texi: Bump @copying's copyright year.
14 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
16 * testsuite/lib/libitm.exp: Likewise.
17 * testsuite/libitm.c++/c++.exp: Likewise.
19 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
21 * Makefile.am: Handle Darwin rpaths.
22 * Makefile.in: Regenerate.
23 * configure: Regenerate.
24 * configure.ac: Handle Darwin rpaths.
26 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
28 * configure: Regenerate.
30 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
32 * configure: Regenerate.
34 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
36 * configure: Regenerate.
38 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
40 * configure: Regenerate.
42 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
44 * configure: Regenerate.
46 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
48 * configure: Regenerate.
50 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
52 * configure.ac (PERL): Remove.
53 * configure: Regenerate.
54 * Makefile.in: Likewise.
55 * testsuite/Makefile.in: Likewise.
57 2023-01-02 Jakub Jelinek <jakub@redhat.com>
59 * libitm.texi: Bump @copying's copyright year.
61 2022-11-14 Martin Liska <mliska@suse.cz>
64 2022-11-14 Martin Liska <mliska@suse.cz>
66 * doc/c-c++-language-constructs-for-tm.rst: New file.
67 * doc/conf.py: New file.
68 * doc/copyright.rst: New file.
69 * doc/enabling-libitm.rst: New file.
70 * doc/gnu-free-documentation-license.rst: New file.
71 * doc/index.rst: New file.
72 * doc/indices-and-tables.rst: New file.
73 * doc/internals.rst: New file.
74 * doc/locking-conventions.rst: New file.
75 * doc/nesting-flat-vs-closed.rst: New file.
76 * doc/the-libitm-abi.rst: New file.
77 * doc/the-libitm-abi/function-list.rst: New file.
78 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
79 * doc/the-libitm-abi/library-design-principles.rst: New file.
80 * doc/the-libitm-abi/memory-model.rst: New file.
81 * doc/the-libitm-abi/non-objectives.rst: New file.
82 * doc/the-libitm-abi/objectives.rst: New file.
83 * doc/the-libitm-abi/sample-code.rst: New file.
84 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
85 * doc/tm-methods-and-method-groups.rst: New file.
87 2022-11-14 Martin Liska <mliska@suse.cz>
90 2022-11-14 Martin Liska <mliska@suse.cz>
92 * Makefile.in: Support Sphinx based documentation.
94 2022-11-14 Martin Liska <mliska@suse.cz>
97 2022-11-14 Martin Liska <mliska@suse.cz>
99 * libitm.texi: Removed.
101 2022-11-14 Martin Liska <mliska@suse.cz>
104 2022-11-14 Martin Liska <mliska@suse.cz>
106 * Makefile.in: Support --with-sphinx-build.
107 * configure.ac: Likewise.
108 * configure: Regenerate.
110 2022-11-14 Martin Liska <mliska@suse.cz>
113 2022-11-14 Martin Liska <mliska@suse.cz>
115 * Makefile.in: Build info pages conditionally.
117 2022-11-14 Martin Liska <mliska@suse.cz>
120 2022-11-14 Martin Liska <mliska@suse.cz>
122 * doc/c-c++-language-constructs-for-tm.rst:
123 Add trailing newline.
125 Add trailing newline.
126 * doc/enabling-libitm.rst:
127 Add trailing newline.
128 * doc/gnu-free-documentation-license.rst:
129 Add trailing newline.
131 Add trailing newline.
132 * doc/indices-and-tables.rst:
133 Add trailing newline.
135 Add trailing newline.
136 * doc/locking-conventions.rst:
137 Add trailing newline.
138 * doc/nesting-flat-vs-closed.rst:
139 Add trailing newline.
140 * doc/the-libitm-abi.rst:
141 Add trailing newline.
142 * doc/the-libitm-abi/function-list.rst:
143 Add trailing newline.
144 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
145 Add trailing newline.
146 * doc/the-libitm-abi/library-design-principles.rst:
147 Add trailing newline.
148 * doc/the-libitm-abi/memory-model.rst:
149 Add trailing newline.
150 * doc/the-libitm-abi/non-objectives.rst:
151 Add trailing newline.
152 * doc/the-libitm-abi/objectives.rst:
153 Add trailing newline.
154 * doc/the-libitm-abi/sample-code.rst:
155 Add trailing newline.
156 * doc/the-libitm-abi/types-and-macros-list.rst:
157 Add trailing newline.
158 * doc/tm-methods-and-method-groups.rst:
159 Add trailing newline.
161 2022-11-14 Martin Liska <mliska@suse.cz>
164 2022-11-14 Martin Liska <mliska@suse.cz>
166 * Makefile.in: Add missing HAS_SPHINX_BUILD.
168 2022-11-14 Martin Liska <mliska@suse.cz>
171 2022-11-14 Martin Liska <mliska@suse.cz>
173 * doc/conf.py: Add newline at last line.
175 2022-11-14 Martin Liska <mliska@suse.cz>
178 2022-11-14 Martin Liska <mliska@suse.cz>
181 * configure: Regenerate.
182 * configure.ac: Always set sphinx-build.
184 2022-11-13 Martin Liska <mliska@suse.cz>
187 * configure: Regenerate.
188 * configure.ac: Always set sphinx-build.
190 2022-11-10 Martin Liska <mliska@suse.cz>
192 * doc/conf.py: Add newline at last line.
194 2022-11-09 Martin Liska <mliska@suse.cz>
196 * Makefile.in: Add missing HAS_SPHINX_BUILD.
198 2022-11-09 Martin Liska <mliska@suse.cz>
200 * doc/c-c++-language-constructs-for-tm.rst:
201 Add trailing newline.
203 Add trailing newline.
204 * doc/enabling-libitm.rst:
205 Add trailing newline.
206 * doc/gnu-free-documentation-license.rst:
207 Add trailing newline.
209 Add trailing newline.
210 * doc/indices-and-tables.rst:
211 Add trailing newline.
213 Add trailing newline.
214 * doc/locking-conventions.rst:
215 Add trailing newline.
216 * doc/nesting-flat-vs-closed.rst:
217 Add trailing newline.
218 * doc/the-libitm-abi.rst:
219 Add trailing newline.
220 * doc/the-libitm-abi/function-list.rst:
221 Add trailing newline.
222 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
223 Add trailing newline.
224 * doc/the-libitm-abi/library-design-principles.rst:
225 Add trailing newline.
226 * doc/the-libitm-abi/memory-model.rst:
227 Add trailing newline.
228 * doc/the-libitm-abi/non-objectives.rst:
229 Add trailing newline.
230 * doc/the-libitm-abi/objectives.rst:
231 Add trailing newline.
232 * doc/the-libitm-abi/sample-code.rst:
233 Add trailing newline.
234 * doc/the-libitm-abi/types-and-macros-list.rst:
235 Add trailing newline.
236 * doc/tm-methods-and-method-groups.rst:
237 Add trailing newline.
239 2022-11-09 Martin Liska <mliska@suse.cz>
241 * Makefile.in: Build info pages conditionally.
243 2022-11-09 Martin Liska <mliska@suse.cz>
245 * Makefile.in: Support --with-sphinx-build.
246 * configure.ac: Likewise.
247 * configure: Regenerate.
249 2022-11-09 Martin Liska <mliska@suse.cz>
251 * libitm.texi: Removed.
253 2022-11-09 Martin Liska <mliska@suse.cz>
255 * Makefile.in: Support Sphinx based documentation.
257 2022-11-09 Martin Liska <mliska@suse.cz>
259 * doc/c-c++-language-constructs-for-tm.rst: New file.
260 * doc/conf.py: New file.
261 * doc/copyright.rst: New file.
262 * doc/enabling-libitm.rst: New file.
263 * doc/gnu-free-documentation-license.rst: New file.
264 * doc/index.rst: New file.
265 * doc/indices-and-tables.rst: New file.
266 * doc/internals.rst: New file.
267 * doc/locking-conventions.rst: New file.
268 * doc/nesting-flat-vs-closed.rst: New file.
269 * doc/the-libitm-abi.rst: New file.
270 * doc/the-libitm-abi/function-list.rst: New file.
271 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
272 * doc/the-libitm-abi/library-design-principles.rst: New file.
273 * doc/the-libitm-abi/memory-model.rst: New file.
274 * doc/the-libitm-abi/non-objectives.rst: New file.
275 * doc/the-libitm-abi/objectives.rst: New file.
276 * doc/the-libitm-abi/sample-code.rst: New file.
277 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
278 * doc/tm-methods-and-method-groups.rst: New file.
280 2022-10-31 Xiongchuan Tan <xc-tan@outlook.com>
282 * configure.tgt: Add riscv support.
283 * config/riscv/asm.h: New file.
284 * config/riscv/sjlj.S: New file.
285 * config/riscv/target.h: New file.
287 2022-10-13 Lulu Cheng <chenglulu@loongson.cn>
289 * config/loongarch/sjlj.S: Add a soft floating point condition to the
290 register recovery part of the code.
292 2022-10-12 Martin Liska <mliska@suse.cz>
294 * configure: Regenerate.
296 2022-10-11 Olivier Hainque <hainque@adacore.com>
297 Olivier Hainque <hainque@adacore.com>
299 * configure: Regenerate.
301 2022-09-28 Lulu Cheng <chenglulu@loongson.cn>
302 Yang Yujie <yangyujie@loongson.cn>
304 * configure.tgt: Add loongarch support.
305 * config/loongarch/asm.h: New file.
306 * config/loongarch/sjlj.S: New file.
307 * config/loongarch/target.h: New file.
309 2022-08-31 Martin Liska <mliska@suse.cz>
311 * configure: Regenerate.
313 2022-08-31 Martin Liska <mliska@suse.cz>
315 * configure: Regenerate.
317 2022-06-02 David Malcolm <dmalcolm@redhat.com>
319 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
321 2022-02-03 David Seifert <soap@gentoo.org>
322 Jakub Jelinek <jakub@redhat.com>
324 * configure.ac: Support --disable-werror.
325 * configure: Regenerate.
327 2022-01-31 Martin Liska <mliska@suse.cz>
329 * acinclude.m4: Detect *_ld_is_mold and use it.
330 * configure: Regenerate.
332 2022-01-03 Jakub Jelinek <jakub@redhat.com>
334 * libitm.texi: Bump @copying's copyright year.
336 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
338 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
339 target does not support HAVE_ELF_STYLE_WEAKREF then do not
340 try to test the __cxa_get_globals against NULL.
342 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
345 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
347 2021-01-15 Jakub Jelinek <jakub@redhat.com>
350 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
351 be added through preprocessor check on
352 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
354 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
356 * configure: Re-generate.
358 2021-01-01 Jakub Jelinek <jakub@redhat.com>
360 * libitm.texi: Bump @copying's copyright year.
362 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
365 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
366 * configure: Regenerate.
368 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
370 * configure: Regenerate.
372 2020-10-01 Alan Modra <amodra@gmail.com>
374 * config/powerpc/sjlj.S: Support __PCREL__ code.
376 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
378 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
380 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
382 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
383 and add BTI c to function entries.
385 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
387 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
389 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
392 * configure: Regenerated.
394 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
397 * configure: Regenerated.
399 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
401 * configure: Regenerated.
403 2020-05-12 Nathan Sidwell <nathan@acm.org>
405 Fix throw specifiers on interface.
406 * libitm/libitm.h (_ITM_NOTHROW): Define.
407 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
408 (_ITM_cxa_begin_catch): Use it.
409 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
410 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
412 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
413 (_ITM_cxa_begin_catch): Likewise.
415 2020-05-05 Nathan Sidwell <nathan@acm.org>
417 * testsuite/lib/libitm.exp (libitm_init): Add
418 -fdiagnostics-color=never to options.
420 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
425 * configure: Regenerated.
427 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
429 * configure.ac: Handle `--with-toolexeclibdir='.
430 * Makefile.in: Regenerate.
431 * aclocal.m4: Regenerate.
432 * configure: Regenerate.
433 * testsuite/Makefile.in: Regenerate.
435 2020-01-01 Jakub Jelinek <jakub@redhat.com>
437 Update copyright years.
439 * libitm.texi: Bump @copying's copyright year.
441 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
444 * configure.tgt: Avoid IE tls on *-*-musl*.
446 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
448 * configure: Regenerate.
450 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
452 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
454 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
456 * configure.tgt: Handle *-*-uclinux*.
457 * configure: Regenerate.
459 2019-09-06 Florian Weimer <fweimer@redhat.com>
461 * configure: Regenerate.
463 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
466 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
467 scanning to conform to the GNU Coding Standards.
468 * configure: Regenerate.
470 2019-05-03 Jakub Jelinek <jakub@redhat.com>
472 * Makefile.am (finclude): Remove.
473 * Makefile.in: Regenerated.
475 2019-01-01 Jakub Jelinek <jakub@redhat.com>
477 Update copyright years.
479 2019-01-01 Jakub Jelinek <jakub@redhat.com>
481 * libitm.texi: Bump @copying's copyright year.
483 2018-12-16 Jakub Jelinek <jakub@redhat.com>
486 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
487 void * to void (*) (void *).
488 (_ITM_cxa_throw): Likewise.
489 * libitm.h (_ITM_cxa_throw): Likewise.
490 * libitm.texi (_ITM_cxa_throw): Likewise.
492 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
494 * config/powerpc/target.h (htm_available): Add support for
495 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
497 2018-10-31 Joseph Myers <joseph@codesourcery.com>
500 * Makefile.am: Include multilib.am.
501 (AUTOMAKE_OPTIONS): Add info-in-builddir.
502 (CLEANFILES): Remove libitm.info.
503 * configure.ac: Remove AC_PREREQ.
504 * testsuite/Makefile.am (RUNTEST): Remove quotes.
505 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
508 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
511 * method-serial.cc: Mark varible as potentially unused
514 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
516 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
517 absolute relocation in a shared library.
519 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
522 * config/linux/x86/tls.h (SEG_READ): Use the offset of
523 __private_tm as base.
524 (SEG_WRITE): Likewise.
525 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
526 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
527 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
528 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
529 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
531 2018-05-17 Jason Merrill <jason@redhat.com>
533 * beginend.cc (save): Disable -Werror=deprecated-copy.
535 2018-05-02 Tom de Vries <tom@codesourcery.com>
538 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
540 2018-05-02 Tom de Vries <tom@codesourcery.com>
543 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
545 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
547 * config/x86/sjlj.S (_ITM_beginTransaction): Add
548 (__CET__ & 2) != 0 check for shadow stack.
549 (GTM_longjmp): Likewise.
551 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
553 * configure: Regenerated.
555 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
558 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
560 2018-04-19 Jakub Jelinek <jakub@redhat.com>
562 * configure: Regenerated.
564 2018-04-18 David Malcolm <dmalcolm@redhat.com>
567 * configure: Regenerate.
569 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
572 * configure: Regenerate.
574 2018-01-03 Jakub Jelinek <jakub@redhat.com>
576 Update copyright years.
578 * libitm.texi: Bump @copying's copyright year.
580 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
582 * Makefile.in: Regenerate.
583 * acinclude.m4: Add enable.m4 and cet.m4.
584 * config/x86/sjlj.S: Include cet.h.
585 (_ITM_beginTransaction): Add _CET_ENDBR.
586 Save Shadow Stack pointer.
587 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
588 * config/x86/target.h (struct gtm_jmpbuf):
589 Add new field for Shadow Stack pointer.
590 * configure: Regenerate.
591 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
592 * configure.ac: Update libtool_VERSION for x86.
593 * testsuite/Makefile.in: Regenerate.
595 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
597 * libitm/config/x86/target.h: Add new field (ssp).
598 * libitm/config/x86/sjlj.S: Change offsets.
600 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
602 * testsuite/lib/libitm.exp: Load scanlang.exp.
604 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
606 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
608 2017-01-21 Jakub Jelinek <jakub@redhat.com>
611 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
612 of cat to get version from BASE-VER file.
613 * testsuite/Makefile.in: Regenerated.
615 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
617 * config/x86/target.h (htm_available): Determine vendor from
618 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
620 2017-01-18 Torvald Riegel <triegel@redhat.com>
622 * config/x86/target.h (htm_available): Add check for some processors
623 on which TSX is broken.
625 2017-01-17 Jakub Jelinek <jakub@redhat.com>
628 * configure.ac: Add GCC_BASE_VER.
629 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
630 get version from BASE-VER file.
631 * testsuite/Makefile.in: Regenerated.
632 * configure: Regenerated.
633 * Makefile.in: Regenerated.
635 2017-01-04 Alan Modra <amodra@gmail.com>
637 * Makefile.in: Regenerate.
638 * testsuite/Makefile.in: Regenerate.
640 2017-01-01 Jakub Jelinek <jakub@redhat.com>
642 Update copyright years.
644 * libitm.texi: Bump @copying's copyright year.
646 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
648 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
649 * aclocal.m4: Regenerate.
650 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
651 LIBITM_CHECK_LINKER_HWCAP.
653 2016-11-15 Matthias Klose <doko@ubuntu.com>
655 * configure: Regenerate.
657 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
660 * util.cc (xmalloc): Use posix_memalign to allocate memory on
661 on cache line if requested.
663 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
665 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
666 function attribute to disable floating point in begin_transaction() on
668 * beginend.cc (begin_transaction): Use
669 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
671 2016-01-22 Torvald Riegel <triegel@redhat.com>
673 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
675 (htm_fastpath): Remove.
676 (gtm_thread::begin_transaction): Fix HTM fastpath.
677 (_ITM_commitTransaction): Adapt.
678 (_ITM_commitTransactionEH): Adapt.
679 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
681 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
682 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
683 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
684 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
685 * libitm/method-serial.cc (htm_mg): Adapt.
686 (gtm_thread::serialirr_mode): Adapt.
687 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
689 2016-01-21 Torvald Riegel <triegel@redhat.com>
691 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
694 2016-01-19 Richard Henderson <rth@redhat.com>
699 2016-01-13 Richard Henderson <rth@redhat.com>
701 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
702 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
703 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
704 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
705 * configure.ac (ARCH_AARCH64): New conditional.
706 (ARCH_PPC, ARCH_S390): Likewise.
707 * Makefile.in, configure: Rebuild.
709 * libitm.h (_ITM_TYPE_M128): Always define.
710 * vect64.cc: Split ...
711 * vect128.cc: ... out of...
712 * config/x86/x86_sse.cc: ... here.
713 * config/arm/neon.cc: New file.
715 2016-01-19 Torvald Riegel <triegel@redhat.com>
717 * local_type_traits: Remove file.
718 * libitm_i.h: Don't include it anymore.
719 (sized_integral): Remove.
721 2016-01-16 Torvald Riegel <triegel@redhat.com>
723 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
725 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
726 * libitm/testsuite/libitm.c/priv-1.c: New.
728 2015-01-15 Torvald Riegel <triegel@redhat.com>
730 testsuite/libitm.c++/libstdc++-safeexc.C: New.
732 2016-01-13 Torvald Riegel <triegel@redhat.com>
734 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
735 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
736 (gtm_rwlock::write_unlock): Likewise.
738 2016-01-13 Richard Henderson <rth@redhat.com>
740 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
741 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
742 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
743 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
744 * configure.ac (ARCH_AARCH64): New conditional.
745 (ARCH_PPC, ARCH_S390): Likewise.
746 * Makefile.in, configure: Rebuild.
748 * libitm.h (_ITM_TYPE_M128): Always define.
749 * vect64.cc: Split ...
750 * vect128.cc: ... out of...
751 * config/x86/x86_sse.cc: ... here.
752 * config/arm/neon.cc: New file.
754 2016-01-13 Torvald Riegel <triegel@redhat.com>
756 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
757 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
758 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
759 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
760 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
761 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
762 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
763 (serialirr_dispatch::snapshot_most_recent): New.
764 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
766 2016-01-12 Torvald Riegel <triegel@redhat.com>
768 * libitm_i.h (gtm_mask_stack): Remove.
769 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
770 * stmlock.h: Remove file.
771 * config/alpha/cacheline.h: Likewise.
772 * config/generic/cacheline.h: Likewise.
773 * config/powerpc/cacheline.h: Likewise.
774 * config/sparc/cacheline.h: Likewise.
775 * config/x86/cacheline.h: Likewise.
777 2016-01-04 Jakub Jelinek <jakub@redhat.com>
779 Update copyright years.
781 * libitm.texi: Bump @copying's copyright year.
783 2015-11-26 Torvald Riegel <triegel@redhat.com>
785 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
786 (ml_wt_dispatch::pre_write): Adapt.
787 (ml_wt_dispatch::pre_load): Likewise.
789 2015-11-22 Torvald Riegel <triegel@redhat.com>
791 * libitm_i.h (gtm_alloc_action): Remove union.
792 * testsuite/libitm.c/alloc-1.c: New.
794 2015-11-19 Torvald Riegel <triegel@redhat.com>
796 * testsuite/libitm.c++/eh-5.C: New.
797 * libitm.h (_ITM_cxa_free_exception): New.
798 * libitm.map (_ITM_cxa_free_exception): Add it.
799 * libitm.texi: Update ABI docs.
800 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
801 (gtm_transaction_cp::cxa_uncaught_count): Add.
802 (gtm_thread::cxa_unthrown): Remove.
803 (gtm_thread::cxa_uncaught_count_ptr): Add.
804 (gtm_thread::cxa_uncaught_count): Add.
805 (gtm_thread::drop_references_allocations): Rename to...
806 (gtm_thread::discard_allocation): ... this and adapt.
807 (gtm_thread::init_cpp_exceptions): New.
808 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
809 (gtm_thread::begin_transaction): Likewise.
810 (gtm_transaction_cp::save): Likewise.
811 (gtm_thread::trycommit): Likewise.
812 * eh_cpp.cc: Add overview comments.
813 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
814 (free_any_exception, _ITM_cxa_free_exception): New.
815 (gtm_thread::init_cpp_exceptions): Define.
816 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
817 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
818 (gtm_thread::revert_cpp_exceptions): Likewise.
820 2015-11-09 Torvald Riegel <triegel@redhat.com>
822 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
823 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
824 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
825 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
826 (gtm_thread::forget_allocations): New overload with size_t argument.
827 * alloc.c (gtm_thread::forget_allocation): Define new overload and
829 (gtm_thread::record_allocation): Adapt.
830 (gtm_thread::commit_allocations_1): Adapt.
831 (gtm_thread::commit_allocations_2): Adapt.
832 * testsuite/libitm.c++/newdelete.C: New.
834 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
835 Joseph Myers <joseph@codesourcery.com>
836 Mark Shinwell <shinwell@codesourcery.com>
837 Andrew Stubbs <ams@codesourcery.com>
838 Rich Felker <dalias@libc.org>
840 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
841 GTM_begin_transaction for compatibility with FDPIC.
843 2015-10-09 David Malcolm <dmalcolm@redhat.com>
845 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
848 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
851 * local_atomic (__always_inline): Rename to...
852 (__libitm_always_inline): ... this.
854 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
857 * config/powerpc/sjlj.S: Port to Xcode 2.5.
859 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
861 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
862 operands "op" and "val" to int.
864 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
866 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
867 "op" and "val" to int.
869 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
871 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
872 "op" and "val" to int.
874 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
876 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
877 Declare as static int.
878 (FUTEX_PRIVATE_FLAG): Remove L suffix.
879 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
881 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
883 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
886 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
888 * Makefile.in: Regenerated with automake-1.11.6.
889 * aclocal.m4: Likewise.
890 * configure: Likewise.
891 * testsuite/Makefile.in: Likewise.
893 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
895 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
896 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
898 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
901 * libitm.c/stackundo.c (test2): Make it static.
904 2015-01-05 Jakub Jelinek <jakub@redhat.com>
906 Update copyright years.
908 2015-01-05 Jakub Jelinek <jakub@redhat.com>
910 * libitm.texi: Bump @copying's copyright year.
912 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
914 * testsuite/lib/libitm.exp: Load target-utils.exp.
915 Move load of target-supports.exp earlier.
917 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
919 * configure.tgt (x86_64): Tune -m32 multilib to generic.
921 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
924 * configure: Regenerated.
926 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
929 * configure: Regenerate.
931 2014-10-06 Marek Polacek <polacek@redhat.com>
933 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
934 * testsuite/libitm.c/memset-1.c: Likewise.
936 2014-07-24 Richard Henderson <rth@redhat.com>
938 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
939 addressing mode in epilogue.
941 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
943 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
944 -mclear-hwcap instead.
945 * configure: Regenerate.
946 * clearcap.map: Remove.
948 2014-05-21 John Marino <gnugcc@marino.st>
950 * configure.tgt (*-*-dragonfly*): New target.
952 2014-05-19 Richard Henderson <rth@redhat.com>
954 * config/aarch64/sjlj.S: New file.
955 * config/aarch64/target.h: New file.
956 * configure.tgt: Enable aarch64.
958 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * config/generic/asmcfi.h: Also check for
961 __GCC_HAVE_DWARF2_CFI_ASM.
963 2013-04-02 Richard Henderson <rth@redhat.com>
965 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
966 * config/arm/target.h, config/sh/target.h: Likewise.
967 * config/sparc/target.h, config/x86/target.h: Likewise.
969 2014-03-26 Jakub Jelinek <jakub@redhat.com>
971 * config/linux/futex_bits.h: Include errno.h.
972 (sys_futex0): If syscall returns -1, return -errno rather than
975 2014-03-26 Joseph Myers <joseph@codesourcery.com>
977 * libitm.texi (Index): Rename to Library Index.
979 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
982 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
983 (x86_avx.lo): Append -mavx to CXXFLAGS.
984 * Makefile.in: Regenerate.
986 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
988 Update copyright years
990 2014-01-02 Tobias Burnus <burnus@net-b.de>
992 * libitm.texi: Bump @copying's copyright year.
994 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
996 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
997 (FUNC): Define ELFv2 variant.
1002 (LR_SAVE): Likewise.
1004 2013-09-20 Alan Modra <amodra@gmail.com>
1006 * configure: Regenerate.
1008 2013-08-30 Torvald Riegel <triegel@redhat.com>
1010 * config/posix/rwlock.cc: Fix initialization order.
1012 2013-08-30 Torvald Riegel <triegel@redhat.com>
1014 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1015 (htm_fastpath): Assign an asm name.
1016 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1018 (_ITM_actions): Likewise.
1019 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1021 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1022 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
1023 field to the start of the structure.
1024 * config/linux/rwlock.h (gtm_rwlock): Update comments.
1025 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1026 handling for custom HTM fast paths.
1028 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1030 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1032 * configure.tgt: Add -msoft-float to XCFLAGS.
1034 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1036 * configure.tgt: Add -msoft-float to XCFLAGS.
1038 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1040 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1041 (htm_transaction_active): Enable zEC12 instructions in the
1043 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1045 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1047 * acinclude.m4: Add htm asm check for s390.
1048 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1049 * configure: Regenerate.
1050 * config/s390/target.h: Remove __HTM__ check.
1051 (htm_available): Call getauxval to get hwcaps and check whether
1052 HTM is available or not.
1054 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1056 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1057 * configure.ac: Use it.
1058 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1059 (AC_CHECK_FUNCS): Check for getauxval.
1060 * config.h.in, configure: Rebuild.
1061 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1062 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1063 (USE_HTM_FASTPATH): Define.
1064 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1065 _HTM_RETRIES) New macros.
1066 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1067 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1069 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1071 * config/s390/target.h: Include htmintrin.h.
1072 (_HTM_ITM_RETRIES): New macro definition.
1073 (htm_available, htm_init, htm_begin, htm_begin_success)
1074 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1076 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1077 Cesar Philippidis <cesar@codesourcery.com>
1079 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1080 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1081 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1082 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1084 2013-06-20 Torvald Riegel <triegel@redhat.com>
1086 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1087 (_ITM_getTransactionId): Same.
1088 * config/x86/target.h (htm_transaction_active): New.
1090 2013-06-20 Torvald Riegel <triegel@redhat.com>
1093 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1096 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
1099 * local_atomic (__always_inline): Always define our version.
1100 (__calculate_memory_order): Mark inline.
1101 (atomic_thread_fence): Ditto.
1102 (atomic_signal_fence): Ditto.
1103 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1104 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1105 (atomic_bool::atomic_flag_test_and_set): Ditto.
1106 (atomic_bool::atomic_flag_clear): Ditto.
1108 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1110 * config/s390/sjlj.S: New file.
1111 * config/s390/target.h: New file.
1112 * configure.tgt: Set options for S/390.
1114 2013-03-23 Andi Kleen <ak@linux.intel.com>
1116 * local_atomic (__always_inline): Add.
1117 (__calculate_memory_order, atomic_thread_fence,
1118 atomic_signal_fence, test_and_set, clear, store, load,
1119 exchange, compare_exchange_weak, compare_exchange_strong,
1120 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1121 Add __always_inline to force inlining.
1123 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1124 Jack Howarth <howarth@bromo.med.uc.edu>
1125 Patrick Marlier <patrick.marlier@gmail.com>
1128 * alloc_cpp.cc: Enable function declarations on darwin.
1129 * eh_cpp.cc: Likewise.
1131 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1133 Update copyright years.
1135 2012-11-09 Torvald Riegel <triegel@redhat.com>
1137 * beginend.cc (htm_fastpath): New.
1138 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1139 _ITM_commitTransactionEH): Add HTM fastpath handling.
1140 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1141 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1142 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1143 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1144 * configure.tgt: Add -mrtm to XCFLAGS.
1145 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1146 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1147 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1148 * retry.cc (parse_default_method): Add HTM method parsing.
1149 (gtm_thread::number_of_threads_changed): Use HTM by default if
1152 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1154 * configure: Regenerate.
1156 2012-10-31 Richard Henderson <rth@redhat.com>
1158 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1159 * configure.ac: Use it.
1160 * config.h.in, configure: Rebuild.
1161 * testsuite/Makefile.in: Rebuild.
1163 2012-10-24 Torvald Riegel <triegel@redhat.com>
1165 * libitm.texi: Clarify ABI requirements for data-logging functions.
1167 2012-10-24 Torvald Riegel <triegel@redhat.com>
1169 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1170 it requires serial mode instead of assuming that for certain
1172 * dispatch.h (abi_dispatch::requires_serial): New.
1173 (abi_dispatch::abi_dispatch): Adapt.
1174 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1175 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1176 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1177 serial_dispatch::serial_dispatch,
1178 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1180 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1182 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1183 and ia32 declarations some more.
1184 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1186 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1189 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1190 * configure: Regenerate.
1191 * Makefile.in: Regenerate.
1193 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1195 * configure: Regenerated.
1197 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
1199 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1201 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
1203 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1205 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1207 * configure: Regenerated.
1209 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
1212 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1215 2012-04-03 Tristan Gingold <gingold@adacore.com>
1217 * configure: Regenerate.
1219 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1222 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1224 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1226 * testsuite/lib/libitm.exp: load fortran-modules.exp
1228 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1230 * configure.tgt (*-*-irix6*): Remove.
1232 2012-03-13 Torvald Riegel <triegel@redhat.com>
1235 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1238 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1240 * configure.tgt (*-*-osf*): Remove.
1241 * configure: Regenerate.
1243 2012-03-05 Torvald Riegel <triegel@redhat.com>
1245 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1246 memtransfer/memset if size isn't larger than zero.
1248 2012-03-02 Torvald Riegel <triegel@redhat.com>
1250 * libitm.texi: Link to specification and add a usage example.
1252 2012-02-24 Torvald Riegel <triegel@redhat.com>
1254 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1255 default dispatch for more than 1 thread to ml_wt.
1257 2012-02-20 Torvald Riegel <triegel@redhat.com>
1259 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1261 2012-02-20 Torvald Riegel <triegel@redhat.com>
1263 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1265 2012-02-20 Torvald Riegel <triegel@redhat.com>
1267 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1268 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1269 (gl_wt_dispatch.rollback): Same.
1271 2012-02-20 Torvald Riegel <triegel@redhat.com>
1273 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1275 2012-02-20 Torvald Riegel <triegel@redhat.com>
1277 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1278 for RfW src. Optimize number of calls to gtm_thr.
1280 2012-02-20 Torvald Riegel <triegel@redhat.com>
1282 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1284 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1285 (default_dispatch): Make atomic.
1286 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1287 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1288 use decide_begin_dispatch() if default_dispatch might have changed.
1289 (GTM::gtm_thread::number_of_threads_changed): Initialize
1290 default_dispatch here.
1292 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1293 Patrick Marlier <patrick.marlier@gmail.com>
1296 * alloc_cpp.cc: No dummy definitions for darwin.
1297 * eh_cpp.cc: Likewise.
1299 2012-02-14 Richard Henderson <rth@redhat.com>
1301 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1303 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1305 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1307 2012-02-14 Torvald Riegel <triegel@redhat.com>
1309 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1310 (GTM::gtm_thread): Add read and write logs.
1311 (GTM::dispatch_ml_wt): Declare.
1312 * retry.cc (parse_default_method): Support ml_wt.
1313 * method-ml.cc: New file.
1314 * Makefile.am: Add method-ml.cc.
1315 * Makefile.in: Regenerate.
1317 2012-02-14 Torvald Riegel <triegel@redhat.com>
1319 * dispatch.h (GTM::abi_dispatch::supports): New.
1320 (GTM::method_group::reinit): New.
1321 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1322 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1323 supports the current situation.
1325 2012-02-14 Torvald Riegel <triegel@redhat.com>
1327 * util.cc (GTM::xcalloc): New.
1328 * common.h (GTM::xcalloc): Declare.
1330 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1332 * config/sparc/target.h (cpu_relax): Read from CC register.
1333 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1335 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1337 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1339 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1341 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1342 * config/sparc/cacheline.h: New file.
1343 * config/sparc/target.h: Likewise.
1344 * config/sparc/sjlj.S: Likewise.
1345 * config/linux/sparc/futex_bits.h: Likewise.
1347 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1349 * configure.ac (link_itm): Fix comment.
1350 * configure: Regenerate.
1351 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1353 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1356 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1357 Correct libgomp references.
1359 2012-01-24 Torvald Riegel <triegel@redhat.com>
1361 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1364 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1366 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1368 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1369 offset values. Do not copy return address. Decrement stack
1371 (GTM_longjump) [__x86_64__]: Update offset values.
1373 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1376 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1377 the first function argument to %eax.
1379 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1381 * libitm.h (_ITM_getThreadnum): Remove.
1382 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1384 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1386 * clearcap.map: New file.
1387 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1388 * configure.ac: Call it.
1389 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1390 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1391 * configure: Regenerate.
1392 * Makefile.in: Regenerate.
1393 * testsuite/Makefile.in: Regenerate.
1395 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1398 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1399 include, exclude options.
1401 2012-01-14 Torvald Riegel <triegel@redhat.com>
1403 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1405 * containers.h (GTM::vector::set_size): New.
1407 2012-01-14 Torvald Riegel <triegel@redhat.com>
1410 * config/generic/tls.h (GTM::mask_stack_top): New.
1411 (GTM::mask_stack_bottom): Declare.
1412 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1413 * local.cc (gtm_undolog::rollback): Filter out any updates that
1414 overlap the libitm stack. Add current transaction as parameter.
1415 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1416 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1417 * testsuite/libitm.c/stackundo.c: New test.
1419 2012-01-10 Richard Henderson <rth@redhat.com>
1421 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1422 * eh_cpp.cc (_Unwind_DeleteException): Define for
1423 !HAVE_ELF_STYLE_WEAKREF.
1425 2012-01-08 Torvald Riegel <triegel@redhat.com>
1427 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1428 (GTM::gtm_thread::drop_references_undolog): Remove.
1429 (GTM::gtm_thread::commit_undolog,
1430 GTM::gtm_thread::rollback_undolog): Move to ...
1431 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1432 (GTM::gtm_undolog_entry): Remove.
1433 (GTM::gtm_thread): Adapt.
1434 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1435 (GTM::gtm_thread::trycommit): Adapt.
1436 * method-serial.cc (serial_dispatch::log): Adapt.
1437 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1438 (gl_wt_dispatch::store): Fix likely/unlikely.
1439 * containers.h (GTM::vector::resize): Add additional_capacity
1440 parameter and handle it.
1441 (GTM::vector::resize_noinline): New/adapt.
1442 (GTM::vector::push): New.
1444 2012-01-06 Richard Henderson <rth@redhat.com>
1446 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1447 * config/linux/powerpc/futex_bits.h: New file.
1448 * config/powerpc/cacheline.h: New file.
1449 * config/powerpc/sjlj.S: New file.
1450 * config/powerpc/target.h: New file.
1451 * config/generic/asmcfi.h (cfi_offset): New.
1452 (cfi_restore, cfi_undefined): New.
1454 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1457 * testsuite/libitm.c/reentrant.c: Remove xfail.
1458 (thread): Pass x to pure().
1459 From Patrik Marlier <patrick.marlier@gmail.com>.
1461 2011-12-24 Torvald Riegel <triegel@redhat.com>
1463 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1464 privatization safety if already in serial mode.
1466 2011-12-24 Torvald Riegel <triegel@redhat.com>
1468 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1469 finish_serial_upgrade parameter.
1470 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1471 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1472 Don't unset reader flag.
1473 (GTM::gtm_rwlock::write_upgrade_finish): New.
1474 * config/posix/rwlock.cc: Same.
1475 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1477 * config/posix/rwlock.h: Same.
1478 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1479 flag after commit or after rollback when restarting.
1481 2011-12-24 Torvald Riegel <triegel@redhat.com>
1483 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1484 (GTM::gtm_thread::try_commit): Changed memory order.
1485 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1487 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1488 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1489 * config/linux/futex_bits.h (sys_futex0): Same.
1490 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1491 * config/linux/futex.h (futex_wait, futex_wake): Same.
1492 * config/linux/rwlock.h (gtm_rwlock::writers,
1493 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1495 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1496 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1497 gtm_rwlock::write_unlock): Fix memory orders and fences.
1498 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1499 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1500 gtm_rwlock::write_unlock): Same.
1501 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1502 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1503 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1505 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1506 gl_wt_dispatch::load, gl_wt_dispatch::store,
1507 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1508 orders and fences. Add comments.
1510 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1512 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1513 * Makefile.in: Regenerated.
1515 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1517 * configure.tgt: Add sh* case.
1518 * config/sh/target.h: New file.
1519 * config/sh/sjlj.S: New file.
1520 * config/linux/sh/futex_bits.h: New file.
1522 2011-12-14 Richard Henderson <rth@redhat.com>
1524 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1525 * config/arm/sjlj.S, config/arm/target.h: New files.
1526 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1527 (cfi_rel_offset): New.
1528 * config/linux/futex_bits.h: New file.
1529 * config/linux/futex.cc: Include futex_bits.h here...
1530 * config/linux/futex.h: ... not here.
1531 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1532 * configure.ac (ARCH_AM): New conditional.
1533 * Makefile.in, configure: Rebuild.
1534 * configure.tgt: Handle ARM.
1536 2011-12-13 Richard Henderson <rth@redhat.com>
1538 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1539 signed/unsigned comparison werror.
1541 * local_atomic: New file.
1542 * libitm_i.h: Include it.
1543 (gtm_thread::shared_state): Use atomic template.
1544 * beginend.cc (GTM::gtm_clock): Use atomic template.
1545 (global_tid): Use atomic template if 64-bit atomics available.
1546 (gtm_thread::gtm_thread): Update shared_state access.
1547 (gtm_thread::trycommit): Likewise.
1548 (choose_code_path): Update global_tid access.
1549 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1550 * stmlock.h (GTM::gtm_clock): Use atomic template.
1551 (gtm_get_clock, gtm_inc_clock): Update accesses.
1552 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1553 redundant __sync_synchronize after atomic shared_state access.
1554 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1555 (gtm_rwlock::write_lock_generic): Likewise.
1556 (gtm_rwlock::read_unlock): Likewise.
1557 * config/alpha/target.h (atomic_read_barrier): Remove.
1558 (atomic_write_barrier): Remove.
1559 * config/x86/target.h (atomic_read_barrier): Remove.
1560 (atomic_write_barrier): Remove.
1562 2011-11-30 Richard Henderson <rth@redhat.com>
1564 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1565 * beginend.c (_ITM_abortTransaction): Update to match.
1566 (GTM::gtm_thread::restart): Likewise.
1567 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1568 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1570 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1572 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1573 * Makefile.in: Regenerate.
1575 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1577 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1578 * alloc_cpp.cc: Generate dummy functions if we don't
1579 HAVE_ELF_STYLE_WEAKREF.
1580 * eh_cpp.cc: Likewise.
1581 * configure: Regenerate.
1582 * aclocal.m4: Likewise.
1583 * config.h.in: Likewise.
1584 * Makefile.in: Likewise.
1585 * testsuite/Makefile.in: Likewise.
1587 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1589 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1590 __USER_LABEL_PREFIX__ for targets that use it.
1591 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1592 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1593 in portability to non-elf targets.
1594 (GTM_longjmp): Likewise.
1595 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1598 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1600 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1601 * testsuite/libitm.c/memset-1.c: Likewise.
1603 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1605 * configure: Regenerate.
1607 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1609 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1610 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1611 * Makefile.am: Handle sun style versioning.
1612 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1613 * configure: Regenerate.
1614 * Makefile.in: Regenerate.
1616 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1618 * config/generic/asmcfi.h: Fix comment.
1619 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1620 sequence without .hidden support, error for non-ELF targets.
1621 (GTM_longjmp) [__ELF__]: Only use .hidden if
1622 HAVE_ATTRIBUTE_VISIBILITY.
1624 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1626 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1627 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1629 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1630 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1632 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1635 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1636 * configure: Regenerate.
1638 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1640 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1642 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1644 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1646 (.note.GNU-stack): Only use if __linux__.
1647 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1648 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1649 * testsuite/libitm.c/reentrant.c: Likewise.
1650 * testsuite/libitm.c/simple-2.c: Likewise.
1651 * testsuite/libitm.c/txrelease.c: Likewise.
1652 * testsuite/libitm.c++/static_ctor.C: Likewise.
1654 2011-11-10 Richard Henderson <rth@redhat.com>
1656 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1657 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1658 * configure.ac (ARCH_X86_AVX): New conditional.
1659 * Makefile.in, configure: Rebuild.
1661 2011-11-09 Richard Henderson <rth@redhat.com>
1663 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1664 * configure.ac: Use it.
1665 * config.h.in, configure: Rebuild.
1666 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1668 2011-11-09 Richard Henderson <rth@redhat.com>
1670 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1671 * config/alpha/unaligned.h: Remove file.
1672 * config/generic/unaligned.h: Remove file.
1673 * config/x86/unaligned.h: Remove file.
1674 * config/generic/cachepage.h: Remove file.
1675 * config/posix/cachepage.cc: Remove file.
1676 * config/generic/cacheline.cc: Remove file.
1677 * config/x86/cacheline.cc: Remove file.
1678 * config/generic/cacheline.h (gtm_cacheline): Remove the
1679 store_mask, copy_mask, copy_mask_wb methods.
1680 * config/x86/cacheline.h: Likewise.
1681 * config/alpha/cacheline.h: Fall back to generic after setting size.
1682 * config/generic/tls.cc (gtm_mask_stack): Remove.
1683 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1684 (GTM_vpalignr_table): Remove.
1685 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1686 (GTM_pshift_table): Remove.
1687 * config/libitm_i.h: Don't include cachepage.h.
1688 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1689 * Makefile.in, testsuite/Makefile.in: Rebuild.
1691 2011-11-09 Richard Henderson <rth@redhat.com>
1693 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1694 to emit branch prediction hint.
1696 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1697 Protect .note.GNU-stack with __linux__.
1699 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1700 * configure, aclocal.m4, config.h.in: Rebuild.
1701 * config/generic/asmcfi.h: New file.
1702 * config/x86/sjlj.S: Use it.
1704 2011-11-08 Richard Henderson <rth@redhat.com>
1706 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1708 2011-11-08 Richard Henderson <rth@redhat.com>
1710 * configure.tgt: Test correct directory for supported cpus.
1712 * configure.ac: Exit if unsupported.
1713 * configure: Rebuild.
1714 * configure.tgt: Delete boilerplate from libgomp for unsupported
1715 targets. Set UNSUPPORTED for unsupported targets.
1717 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719 * configure.tgt: Handle i386 like i[456]86.
1720 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1722 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1723 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1725 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1727 * method-wbetl.cc: Update copyright notice.
1733 * barrier.tpl: Same.
1734 * useraction.cc: Same.
1738 * config/generic/tls.cc: Same.
1739 * config/generic/cacheline.h: Same.
1740 * config/generic/cachepage.h: Same.
1741 * config/generic/cacheline.cc: Same.
1742 * config/generic/unaligned.h: Same.
1743 * config/x86/cacheline.h: Same.
1744 * config/x86/cacheline.cc: Same.
1745 * config/x86/unaligned.h: Same.
1746 * config/alpha/cacheline.h: Same.
1747 * config/alpha/unaligned.h: Same.
1748 * config/alpha/sjlj.S: Same.
1749 * config/posix/cachepage.cc: Same.
1750 * config/linux/futex.h: Same.
1751 * config/linux/alpha/futex_bits.h: Same.
1753 2011-11-04 Torvald Riegel <triegel@redhat.com>
1755 * libitm.texi: No cover text and invariant sections.
1757 2011-11-03 Richard Henderson <rth@redhat.com>
1759 * local_type_traits: New file.
1760 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1762 2011-11-03 Richard Henderson <rth@redhat.com>
1764 * configure.ac: Don't test for gfortran.
1765 * configure: Rebuild.
1767 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1768 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1770 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1772 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1773 * testsuite/libitm.c/memset-1.c: Same.
1774 * testsuite/libitm.c/c.exp: Same.
1775 * testsuite/lib/libitm-dg.exp: Same.
1776 * testsuite/lib/libitm.exp: Same.
1777 * testsuite/libitm.c++/c++.exp: Same.
1779 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1781 * testsuite/config/default.exp: Update copyright date.
1782 * configure.ac: Add copyright info.
1783 * configure.tgt: Same.
1785 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1787 * testsuite/libitm.c/reentrant.c: XFAIL.
1788 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1790 2011-10-29 Torvald Riegel <triegel@redhat.com>
1792 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1794 (_ITM_abortTransaction): Handle aborts of outer transactions.
1796 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1797 * libitm.texi: Document aborts of outer transactions.
1798 * testsuite/libitm.c/cancel.c: New file.
1800 2011-10-19 Torvald Riegel <triegel@redhat.com>
1802 * testsuite/*: Change __transaction to __transaction_atomic or
1803 __transaction_relaxed.
1805 2011-10-19 Torvald Riegel <triegel@redhat.com>
1807 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1810 2011-10-19 Torvald Riegel <triegel@redhat.com>
1812 * libitm_i.h: Add gl_wt dispatch.
1813 * retry.cc (parse_default_method): Same.
1814 * method-gl.cc: New file.
1815 * Makefile.am: Use method-gl.cc.
1816 * Makefile.in: Rebuild.
1818 2011-10-19 Torvald Riegel <triegel@redhat.com>
1820 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1821 safety if requested by a TM method.
1822 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1823 privatization safety.
1824 * method-serial.cc: Same.
1826 2011-10-19 Torvald Riegel <triegel@redhat.com>
1828 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1829 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1830 undolog-related member functions from *_local to *_undolog.
1831 * local.cc (gtm_thread::commit_undolog): Same.
1832 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1833 (GTM::gtm_thread::rollback): Roll back undolog before
1834 dispatch-specific rollback.
1836 2011-10-19 Torvald Riegel <triegel@redhat.com>
1838 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1839 re-initialization of the current method group.
1840 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1842 2011-10-19 Torvald Riegel <triegel@redhat.com>
1844 * alloc.cc (commit_allocations_2): Do not free transaction-local
1845 memory when committing a nested transaction.
1847 2011-10-19 Torvald Riegel <triegel@redhat.com>
1849 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1850 serial-irrevocable dispatch, not serial.
1852 2011-10-19 Torvald Riegel <triegel@redhat.com>
1854 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1856 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1857 * method-serial.cc: Implement begin_or_restart().
1858 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1859 dispatch-specific begin_or_restart().
1860 (GTM::gtm_thread::restart): Same.
1862 2011-08-23 Torvald Riegel <triegel@redhat.com>
1864 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1865 restarting without switching to serial mode.
1866 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1867 transaction state. Choose closed-nesting alternative if available.
1868 (GTM::gtm_thread::set_default_dispatch): New.
1869 (parse_default_method): New.
1870 (GTM::gtm_thread::number_of_threads_changed): New.
1871 * method-serial.cc (GTM::serial_mg): New method group class.
1872 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1874 (GTM::serial_dispatch): Same.
1875 (GTM::serialirr_onwrite_dispatch): Same.
1876 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1877 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1879 (GTM::gtm_thread::gtm_thread): Same.
1880 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1881 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1882 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1883 choose dispatch but set state according to dispatch here.
1884 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1885 (GTM::method_group): New class.
1886 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1887 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1888 * libitm.texi: Document TM methods, method groups, method life cycle.
1889 Rename method sets to method groups.
1891 2011-08-23 Torvald Riegel <triegel@redhat.com>
1893 * config/x86/tls.h: Moved to ...
1894 * config/linux/x86/tls.h: ... here.
1896 2011-08-23 Torvald Riegel <triegel@redhat.com>
1898 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1900 * config/x86/sjlj.S: Same.
1902 2011-08-19 Torvald Riegel <triegel@redhat.com>
1904 * config/linux/rwlock.h: New file.
1905 * config/linux/rwlock.c: New file.
1906 * configure.ac: Reenable futex support (undo SVN rev 157758).
1907 * Makefile.am: Same.
1908 * configure.tgt: Same.
1909 * config/linux/alpha/futex_bits.h: Same.
1910 * config/linux/futex.h: Same. Return number of woken processes.
1911 * config/linux/futex.cc: Same.
1912 (futex_wait): Remove spinning.
1913 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1914 Use __x86_64__ instead of __LP64__.
1915 * aclocal.m4: Include generic futex checks.
1916 * configure: Rebuild.
1917 * Makefile.in: Rebuild.
1918 * testsuite/Makefile.in: Rebuild.
1919 * beginend.cc: Include pthread.h.
1920 * config/posix/cachepage.cc: Same.
1922 2011-08-12 Torvald Riegel <triegel@redhat.com>
1924 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1925 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1927 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1929 (GTM::gtm_thread::thread_num): Removed.
1930 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1931 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1932 tx-to-thread renaming.
1933 * beginend.cc: Adapted to tx-to-thread renaming.
1934 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1935 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1936 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1937 gtm_transaction to gtm_thread.
1938 (_ITM_getThreadnum): Removed. Not supported anymore.
1939 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1940 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1941 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1942 gtm_tx-to-gtm_thr renaming if necessary.
1949 * alloc_cpp.cc: Same.
1950 * method-serial.cc: Same.
1951 * config/generic/tls.cc: Same.
1952 * config/posix/rwlock.h (gtm_rwlock): Same.
1953 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1955 2011-08-12 Torvald Riegel <triegel@redhat.com>
1957 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1959 (gtm_rwlock::read_unlock): Same.
1960 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1961 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1962 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1963 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1964 w_upgrade. Replaced by per-transaction flags (in shared_state).
1965 Added c_confirmed_writers.
1966 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1967 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1968 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1969 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1970 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1971 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1972 * libitm.texi: Document locking conventions and implementations in
1975 2011-08-12 Torvald Riegel <triegel@redhat.com>
1977 * libitm_i.h (next_tx): Add list of all threads' transaction.
1978 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1979 transaction with list of transactions and ...
1980 (thread_exit_handler): ... deregister here.
1981 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1982 * config/x86/target.h: Same.
1984 2011-08-12 Torvald Riegel <triegel@redhat.com>
1986 * testsuite/libitm.c++/static_ctor.C: New file.
1988 2011-08-12 Torvald Riegel <triegel@redhat.com>
1990 * testsuite/libitm.c/reentrant.c: New file.
1992 2011-08-12 Torvald Riegel <triegel@redhat.com>
1994 * config/generic/tls.h: Remove the free list for transactions and ...
1995 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1996 (GTM::gtm_transaction::operator delete): ... and release here.
1997 (thread_exit_handler): New. Delete tx when thread terminates.
1998 (thread_exit_init): New.
1999 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
2000 * testsuite/libitm.c/txrelease.c: New file.
2002 2011-08-12 Torvald Riegel <triegel@redhat.com>
2004 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2005 * testsuite/libitm.c/notx.c: New file.
2007 2011-08-12 Torvald Riegel <triegel@redhat.com>
2009 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2010 * libitm_i.h (local_tid): ... to here.
2011 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2012 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2014 2011-08-12 Torvald Riegel <triegel@redhat.com>
2016 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2017 serialirr_onwrite_dispatch as new default for now.
2018 * method-serial.cc (serialirr_onwrite_dispatch): New.
2019 (GTM::dispatch_serialirr_onwrite): New.
2022 2011-08-12 Torvald Riegel <triegel@redhat.com>
2024 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2025 * query.cc (_ITM_getTransactionId): There is no active transaction if
2026 the current nesting level is zero.
2028 2011-07-28 Torvald Riegel <triegel@redhat.com>
2030 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2033 2011-07-28 Torvald Riegel <triegel@redhat.com>
2035 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2036 transaction properties from the caller instead of from the
2039 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2041 2011-07-28 Torvald Riegel <triegel@redhat.com>
2043 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2044 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2046 * method-serial.cc: Same.
2047 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2048 flat nesting as default, and closed nesting on demand.
2049 (GTM::gtm_transaction::rollback): Same.
2050 (_ITM_abortTransaction): Same.
2051 (GTM::gtm_transaction::restart): Same.
2052 (GTM::gtm_transaction::trycommit): Same.
2053 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2054 (choose_code_path): New.
2055 (GTM::gtm_transaction_cp::save): New.
2056 (GTM::gtm_transaction_cp::commit): New.
2057 * query.cc (_ITM_inTransaction): Support flat nesting.
2058 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2059 (GTM::gtm_transaction): Support flat and closed nesting.
2060 * alloc.cc (commit_allocations_2): New.
2061 (commit_cb_data): New helper struct.
2062 (GTM::gtm_transaction::commit_allocations): Handle nested
2064 * libitm.texi: Update user action section, add description of nesting.
2066 2011-07-28 Torvald Riegel <triegel@redhat.com>
2068 * libitm_i.h: Add closed nesting as restart reason.
2069 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2071 2011-07-28 Torvald Riegel <triegel@redhat.com>
2073 * useraction.cc: Use vector instead of list to store actions.
2074 Also support partial rollbacks for closed nesting.
2075 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2076 * beginend.cc: Same.
2078 2011-07-28 Torvald Riegel <triegel@redhat.com>
2080 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2081 closed_nesting flags, as well as a closed nesting alternative.
2082 * method-serial.cc: Same.
2083 (serial_dispatch): Renamed to serialirr_dispatch.
2084 (GTM::dispatch_serialirr): Same.
2085 (serial_dispatch_ul): Renamed to serial_dispatch.
2086 (GTM::dispatch_serial): Same.
2088 2011-07-28 Torvald Riegel <triegel@redhat.com>
2090 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2092 2011-07-28 Torvald Riegel <triegel@redhat.com>
2094 * aatree.h (aa_tree::remove): New.
2095 (aa_tree::operator new): Add placement new.
2097 2011-07-02 Torvald Riegel <triegel@redhat.com>
2099 * containers.h: New file.
2100 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2101 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2102 * common.h: ... to here.
2103 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2106 2011-06-30 Torvald Riegel <triegel@redhat.com>
2108 * libitm_i.h (STATE_ABORTING): Remove.
2109 * beginend.cc (_ITM_abortTransaction): Same.
2110 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2111 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2112 (_ITM_rollbackTransaction): Remove.
2113 * beginend.cc: Same.
2115 * libitm.texi: Document these ABI changes.
2117 2011-06-30 Torvald Riegel <triegel@redhat.com>
2119 * libitm.texi: New file.
2120 * Makefile.am: Add libitm.texi.
2121 * Makefile.in: Rebuild.
2123 2011-06-30 Torvald Riegel <triegel@redhat.com>
2125 * libitm_i.h: Move parts to common.h and dispatch.h.
2126 * common.h: New file.
2127 * dispatch.h: New file, new dispatch class.
2128 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2129 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2130 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2131 decision to retry.cc.
2132 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2134 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2135 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2137 * barrier.cc: Use new barriers definitions.
2138 (abi_dispatch::memmove_overlap_check): New.
2139 * config/x86/x86_sse.cc: Same.
2140 * config/x86/x86_avx.cc: Same.
2141 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2143 * Makefile.in: Rebuild.
2144 * method-readonly.cc: Remove.
2145 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2146 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2148 2011-06-30 Torvald Riegel <triegel@redhat.com>
2150 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2151 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2152 * testsuite/libitm.c/dropref-2.c: Same.
2153 * testsuite/libitm.c/dropref.c: Same.
2155 2011-06-30 Torvald Riegel <triegel@redhat.com>
2157 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2158 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2159 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2161 * barrier.tpl: Same.
2163 * config/generic/tls.h: Same.
2164 * config/x86/tls.h: Same.
2168 * method-readonly.cc: Same.
2169 * method-serial.cc: Same.
2170 * method-wbetl.cc: Same.
2173 2011-03-03 Richard Henderson <rth@redhat.com>
2175 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2176 From Patrik Marlier <patrick.marlier@unine.ch>.
2178 2011-02-03 Richard Henderson <rth@redhat.com>
2180 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2181 * configure.ac: Use it.
2182 * configure, config.h.in: Rebuild.
2183 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2184 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2185 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2186 * libitm.map: Use wildcards to match size_t mangling.
2188 2010-12-14 Richard Henderson <rth@redhat.com>
2190 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2191 blocks of TIDs per thread.
2192 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2193 (setup_gtm_thr): Return the thread structure.
2194 * config/x86/tls.h (setup_gtm_thr): Likewise.
2196 2010-12-14 Richard Henderson <rth@redhat.com>
2198 * clone.cc (table_lock): Remove.
2199 (find_clone): Don't take it.
2200 (ExcludeTransaction): New helper class.
2201 (_ITM_registerTMCloneTable): Use it.
2202 (_ITM_deregisterTMCloneTable): Likewise.
2204 2010-12-14 Richard Henderson <rth@redhat.com>
2206 * config/x86/tls.h: New file.
2208 2010-07-15 Richard Henderson <rth@redhat.com>
2210 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2211 * Makefile.in: Rebuild.
2213 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2215 * method-wbetl.cc (trydropreference): Fix source line.
2217 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2219 * libitm.h: Add comment.
2220 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2222 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
2224 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2225 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2226 available, use pthread mutexes.
2227 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2228 * config.h.in: Regenerate.
2229 * configure: Regenerate.
2231 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
2233 * libitm.h (ITM_PURE): Define.
2234 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2236 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2238 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2239 (validate): Add comment.
2240 (trydropreference): New.
2241 * method-readonly.cc (class readonly_dispatch): Add
2243 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2244 Call trydropreference().
2245 * libitm.h (_ITM_dropReferences): Remove const attribute.
2246 * method-serial.cc (class serial_dispatch): Add trydropreference.
2247 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2249 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2251 * memcpy.cc (do_memcpy): Comment.
2253 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
2255 * barrier.tpl: Add comments throughout.
2257 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2259 * method-wbetl.cc (struct w_entry): Add comments.
2263 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2265 * alloc_c.cc (_ITM_dropReferences): New.
2266 * libitm.map (_ITM_dropReferences): Add.
2267 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2268 * libitm_i.h (struct gtm_transaction): Declare
2269 drop_references_allocations and drop_references_local.
2270 * local.cc (rollback_local): Ignore memory when applicable.
2271 (drop_references_local): New.
2273 2010-06-23 Richard Henderson <rth@redhat.com>
2275 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2276 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2277 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2278 * config/alpha/target.h: Likewise.
2279 * config/generic/tls.cc (gtm_mask_stack): Use it.
2281 2010-06-23 Richard Henderson <rth@redhat.com>
2283 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2284 a mutex instead of trying a lock-free compare-and-swap on the list.
2285 (gtm_cacheline_page::operator delete): Likewise.
2287 2010-06-16 Richard Henderson <rth@redhat.com>
2289 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2290 that overlap the libitm stack.
2291 * barrier.tpl: Mark incoming stack.
2292 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2293 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2294 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2295 * memcpy.cc, memset.cc: Likewise.
2296 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2297 * config/generic/tls.h (gtm_thread): Add stack_top member.
2298 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2299 * libitm_i.h (gtm_mask_stack): Declare.
2300 * config/generic/tls.cc: New file.
2301 * Makefile.am (libitm_la_SOURCES): Add it.
2302 (AM_CXXFLAGS): Turn off exceptions.
2303 * Makefile.in: Rebuild.
2305 2010-06-16 Richard Henderson <rth@redhat.com>
2307 * alloc.cc (struct gtm_alloc_action): Move definition ...
2308 * libitm_i.h: ... here.
2309 (class gtm_transaction): Declare new and delete.
2310 * beginend.cc (alloc_tx): Reformulate as operator new.
2311 (free_tx): Reformulate as operator delete.
2312 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2314 2010-06-11 Richard Henderson <rth@redhat.com>
2316 * clone.cc (clone_entry_compare): Fix typo.
2317 From Patrik Marlier <patrick.marlier@unine.ch>.
2319 2010-05-13 Richard Henderson <rth@redhat.com>
2321 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2324 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2326 * libitm_i.h (struct gtm_transaction): Remove
2327 get_allocation_size.
2328 (record_allocation): Remove size parameter.
2329 * libitm.map (_ITM_realloc): Remove.
2330 * alloc_c.cc (_ITM_realloc): Remove.
2331 (_ITM_malloc): Remove size argument to record_allocation.
2332 (_ITM_calloc): Same.
2333 * alloc_cpp.cc (_ZGTtnwm): Same.
2334 (_ZGTtnwmRKSt9nothrow_t): Same.
2336 (_ZGTtnamRKSt9nothrow_t): Same.
2337 * alloc.cc (struct gtm_alloc_action): Remove size.
2338 (get_allocation_size): Remove.
2339 (commit_allocations): Add comment.
2340 (record_allocation): Remove size parameter.
2341 (forget_allocation): Remove set of size.
2343 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2345 * Makefile.am (abi_version): New.
2346 (AM_CXXFLAGS): Pass abi_version.
2347 * Makefile.in: Regenerate.
2348 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2350 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2352 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2353 _ITM_getTMCloneOrIrrevokable.
2354 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2355 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2357 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2359 * configure.ac: Remove Linux futex support.
2360 * configure.tgt (config_path): Same.
2361 * Makefile.am: Same.
2362 * config/linux: Remove entire directory.
2363 * configure: Rebuild.
2364 * Makefile.in: Rebuild.
2365 * testsuite/Makefile.in: Rebuild.
2367 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2369 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2370 switching to serial mode.
2371 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2373 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2375 * configure.tgt: Add emacs -*- tags.
2376 * barrier.tpl: Same.
2378 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2380 * Makefile.am: Rename serial.cc to method-serial.cc.
2381 * Makefile.in: Regenerate with automake 1.11.1.
2382 * testsuite/Makefile.in: Same.
2383 * aclocal.m4: Regenerate with aclocal 1.11.1.
2384 * method-serial.cc: Rename from serial.cc.
2385 * libitm_i.h (struct gtm_transaction): Update comment on
2388 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2390 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2391 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2393 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2395 * configure: Rebuild.
2397 2009-11-12 Richard Henderson <rth@redhat.com>
2399 * Rewrite everything in C++.
2401 2009-11-03 Richard Henderson <rth@redhat.com>
2403 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2404 * Makefile.am (libitm_la_SOURCES): Add them.
2405 * configure.ac (ARCH_X86): New conditional.
2406 * Makefile.in, configure: Rebuild.
2407 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2408 Move futex setup into "other system configury" case.
2409 * local.c (rollback_local): Merge into ...
2410 (GTM_rollback_local): ... here.
2411 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2412 (_ITM_LB): Define as an alias to GTM_LB.
2414 2009-11-03 Richard Henderson <rth@redhat.com>
2416 * method-readonly.c: New file.
2417 * Makefile.am (libitm_la_SOURCES): Add it.
2418 * Makefile.in: Rebuild.
2419 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2420 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2421 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2422 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2423 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2424 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2425 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2426 gtm_get_clock, gtm_inc_clock): New.
2427 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2428 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2429 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2430 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2431 replace uses with new libitm_i.h symbols.
2432 (dispatch_wbetl): Rename from wbetl_dispatch.
2433 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2434 away from dispatch_readonly; abort if the beginTransaction call
2435 asserted that the transaction was readonly.
2437 2009-11-03 Richard Henderson <rth@redhat.com>
2439 * memset.c: New file.
2440 * Makefile.am (libitm_la_SOURCES): Add it.
2441 * Makefile.in: Rebuild.
2442 * testsuite/libitm.c/memset-1.c: New.
2444 2009-11-03 Richard Henderson <rth@redhat.com>
2446 * dispatch.c: Remove file.
2447 * useraction.c (struct gtm_user_action): Move from libitm.h.
2448 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2449 (serial_memset, serial_memmove, serial_memcpy): Remove.
2450 (serial_W*, serial_R*): Remove.
2451 (serial_dispatch): Update to match.
2452 * configure.ac: Move Werror down below configure checks. Don't
2453 check for sys/loadavg.h, do check for malloc.h. Don't check for
2454 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2455 Use GCC_AC_FUNC_MMAP_BLACKLIST
2456 * libitm.h: Split out all internal items to...
2457 * libitm_i.h: ... here. New file.
2458 * copymask.c: New file.
2459 * local.c (struct gtm_local_undo): Move from libitm.h.
2460 (GTM_alloc_local): Rename from alloc_local; export.
2461 * memcpy.c: New file.
2462 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2463 * config/posix/page.c: New file.
2464 * config/posix/target_tls.h: Remove file.
2465 * barrier.c: New file.
2466 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2468 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2469 * method-wbetl.c: Rewrite for new cacheline methods.
2470 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2472 * config/alpha/sjlj.S: Fix typo.
2473 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2474 * config/alpha/copymask.c: New file.
2475 * config/alpha/target.h (CACHELINE_SIZE): New.
2476 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2478 * config/x86/target_i.h: Copy functions from x86/target.h.
2479 * config/x86/copymask.c: New file.
2480 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2481 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2482 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2483 * config/x86/target_tls.h: Move contents to target_i.h.
2485 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2486 * testsuite/libitm.c/memcpy-1.c: New.
2488 2009-10-22 Richard Henderson <rth@redhat.com>
2490 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2491 (AM_CCASFLAGS): New.
2492 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2493 saving/restoring _AC_ARG_VAR_PRECIOUS.
2494 * Makefile.in, aclocal.m4, config.h.in, configure,
2495 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2497 2009-10-22 Richard Henderson <rth@redhat.com>
2499 * testsuite/*: Update for new compiler syntax.
2501 2009-10-21 Richard Henderson <rth@redhat.com>
2503 * libitm.h (_ITM_abortReason): Add outerAbort.
2505 2009-08-03 Richard Henderson <rth@redhat.com>
2507 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2508 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2509 * method-wbetl.c (struct w_entry): Remove mask.
2510 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2513 2009-07-22 Richard Henderson <rth@redhat.com>
2515 * eh_cpp.c: New file.
2516 * Makefile.am (libitm_la_SOURCES): Add it.
2517 * Makefile.in: Rebuild.
2518 * beginend.c (GTM_rollback_transaction): Undo exception state.
2519 (GTM_trycommit_transaction): Mark inline.
2520 (GTM_trycommit_and_finalize_transaction): Split out from ...
2521 (_ITM_commitTransaction): ... here.
2522 (_ITM_commitTransactionEH): New function.
2523 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2524 cxa_unthrown, eh_in_flight; reorder.
2526 * testsuite/libitm.c++/c++.exp: New.
2527 * testsuite/libitm.c++/eh-1.C: New.
2529 * aatree.c (aa_free): Remove REGPARM.
2530 * aatree.h: Remove all REGPARM.
2532 2009-07-18 Richard Henderson <rth@redhat.com>
2534 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2535 * Makefile.am (libitm_la_SOURCES): Add them.
2536 * Makefile.in: Rebuild.
2537 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2538 (GTM_trycommit_transaction): Likewise.
2539 * libitm.h: Include aatree.h
2540 (struct gtm_alloc_action): New.
2541 (struct gtm_transaction): Add alloc_actions.
2542 (GTM_record_allocation, GTM_forget_allocation): Declare.
2543 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2544 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2545 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2546 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2547 _ZGTtdaPvRKSt9nothrow_t): Export.
2549 2009-07-18 Richard Henderson <rth@redhat.com>
2551 * target_tls.h: Move ...
2552 * config/posix/target_tls.h: ... here.
2554 2009-07-07 Richard Henderson <rth@redhat.com>
2556 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2558 2009-07-07 Richard Henderson <rth@redhat.com>
2562 2009-07-07 Richard Henderson <rth@redhat.com>
2564 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2565 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2567 * configure.tgt: Don't use -ftls-model for x86 linux.
2568 * libitm.h: Include target.h after standard includes.
2569 (_gtm_thr): Rename from gtm_thr.
2570 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2571 (gtm_disp, set_gtm_disp): New.
2572 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2573 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2574 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2576 2009-07-07 Richard Henderson <rth@redhat.com>
2578 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2580 2009-07-06 Richard Henderson <rth@redhat.com>
2582 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2583 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2584 (_ITM_beginTransaction): Take variadic arguments.
2585 (_ITM_registerThrownObject): Declare.
2586 * beginend.c, serial.c: Update.
2587 * libitm.map: Add _ITM_registerThrownObject.
2589 2009-01-28 Richard Henderson <rth@redhat.com>
2591 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2592 * Makefile.in: Rebuild.
2593 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2594 (GTM_restart_transaction): Fix uninstrumented code check.
2595 * retry.c (GTM_decide_retry_strategy): Add serial check.
2596 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2597 automatically go irrevokable when in serial mode.
2598 * clone.c: New file.
2599 * libitm.h, libitm.map: Update.
2601 2009-01-27 Richard Henderson <rth@redhat.com>
2603 * Makefile.am (LTCCASCOMPILE): Define.
2604 (libitm_la_SOURCES): Add methid-wbetl.c.
2605 * testsuite/Makefile.am: New
2606 * configure.ac: Add testsuite/Makefile.
2607 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2608 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2609 (_ITM_abortTransaction): Finalize implementation method; pass
2610 transaction properties to longjmp.
2611 (GTM_restart_transaction): Split out from ...
2612 (_ITM_commitTransaction): ... here.
2613 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2614 Move to config/x86/target.h.
2615 * config/linux/alpha/futex_bits.h: New.
2616 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2617 * config/x86/target.h: Disable target types for 32-bit.
2618 * config/alpha/sjlj.S, config/alpha/target.h: New.
2619 * libitm.h (struct gtm_dispatch): Add init, fini.
2620 (enum restart_reason): New.
2621 (struct gtm_transaction): Add method and restarts.
2622 * retry.c (GTM_decide_retry_strategy): Implement.
2623 * serial.c (serial_init, serial_fini): New.
2624 (GTM_serialmode): Finialize outgoing method.
2625 * method-wbetl.c: New.
2627 2008-12-09 Richard Henderson <rth@redhat.com>
2629 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2630 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2631 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2632 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2633 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2634 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2635 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2636 * serial.c (serial_R##T, serial_W##T): Likewise.
2638 2008-11-21 Richard Henderson <rth@redhat.com>
2642 Copyright (C) 2008-2024 Free Software Foundation, Inc.
2644 Copying and distribution of this file, with or without modification,
2645 are permitted in any medium without royalty provided the copyright
2646 notice and this notice are preserved.