1 2024-02-05 Marek Polacek <polacek@redhat.com>
3 * containers.h (vector): Remove the template-id in constructors.
5 2024-01-03 Jakub Jelinek <jakub@redhat.com>
7 * libitm.texi: Bump @copying's copyright year.
9 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
11 * testsuite/lib/libitm.exp: Likewise.
12 * testsuite/libitm.c++/c++.exp: Likewise.
14 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
16 * Makefile.am: Handle Darwin rpaths.
17 * Makefile.in: Regenerate.
18 * configure: Regenerate.
19 * configure.ac: Handle Darwin rpaths.
21 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
23 * configure: Regenerate.
25 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
27 * configure: Regenerate.
29 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
31 * configure: Regenerate.
33 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
35 * configure: Regenerate.
37 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
39 * configure: Regenerate.
41 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
43 * configure: Regenerate.
45 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
47 * configure.ac (PERL): Remove.
48 * configure: Regenerate.
49 * Makefile.in: Likewise.
50 * testsuite/Makefile.in: Likewise.
52 2023-01-02 Jakub Jelinek <jakub@redhat.com>
54 * libitm.texi: Bump @copying's copyright year.
56 2022-11-14 Martin Liska <mliska@suse.cz>
59 2022-11-14 Martin Liska <mliska@suse.cz>
61 * doc/c-c++-language-constructs-for-tm.rst: New file.
62 * doc/conf.py: New file.
63 * doc/copyright.rst: New file.
64 * doc/enabling-libitm.rst: New file.
65 * doc/gnu-free-documentation-license.rst: New file.
66 * doc/index.rst: New file.
67 * doc/indices-and-tables.rst: New file.
68 * doc/internals.rst: New file.
69 * doc/locking-conventions.rst: New file.
70 * doc/nesting-flat-vs-closed.rst: New file.
71 * doc/the-libitm-abi.rst: New file.
72 * doc/the-libitm-abi/function-list.rst: New file.
73 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
74 * doc/the-libitm-abi/library-design-principles.rst: New file.
75 * doc/the-libitm-abi/memory-model.rst: New file.
76 * doc/the-libitm-abi/non-objectives.rst: New file.
77 * doc/the-libitm-abi/objectives.rst: New file.
78 * doc/the-libitm-abi/sample-code.rst: New file.
79 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
80 * doc/tm-methods-and-method-groups.rst: New file.
82 2022-11-14 Martin Liska <mliska@suse.cz>
85 2022-11-14 Martin Liska <mliska@suse.cz>
87 * Makefile.in: Support Sphinx based documentation.
89 2022-11-14 Martin Liska <mliska@suse.cz>
92 2022-11-14 Martin Liska <mliska@suse.cz>
94 * libitm.texi: Removed.
96 2022-11-14 Martin Liska <mliska@suse.cz>
99 2022-11-14 Martin Liska <mliska@suse.cz>
101 * Makefile.in: Support --with-sphinx-build.
102 * configure.ac: Likewise.
103 * configure: Regenerate.
105 2022-11-14 Martin Liska <mliska@suse.cz>
108 2022-11-14 Martin Liska <mliska@suse.cz>
110 * Makefile.in: Build info pages conditionally.
112 2022-11-14 Martin Liska <mliska@suse.cz>
115 2022-11-14 Martin Liska <mliska@suse.cz>
117 * doc/c-c++-language-constructs-for-tm.rst:
118 Add trailing newline.
120 Add trailing newline.
121 * doc/enabling-libitm.rst:
122 Add trailing newline.
123 * doc/gnu-free-documentation-license.rst:
124 Add trailing newline.
126 Add trailing newline.
127 * doc/indices-and-tables.rst:
128 Add trailing newline.
130 Add trailing newline.
131 * doc/locking-conventions.rst:
132 Add trailing newline.
133 * doc/nesting-flat-vs-closed.rst:
134 Add trailing newline.
135 * doc/the-libitm-abi.rst:
136 Add trailing newline.
137 * doc/the-libitm-abi/function-list.rst:
138 Add trailing newline.
139 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
140 Add trailing newline.
141 * doc/the-libitm-abi/library-design-principles.rst:
142 Add trailing newline.
143 * doc/the-libitm-abi/memory-model.rst:
144 Add trailing newline.
145 * doc/the-libitm-abi/non-objectives.rst:
146 Add trailing newline.
147 * doc/the-libitm-abi/objectives.rst:
148 Add trailing newline.
149 * doc/the-libitm-abi/sample-code.rst:
150 Add trailing newline.
151 * doc/the-libitm-abi/types-and-macros-list.rst:
152 Add trailing newline.
153 * doc/tm-methods-and-method-groups.rst:
154 Add trailing newline.
156 2022-11-14 Martin Liska <mliska@suse.cz>
159 2022-11-14 Martin Liska <mliska@suse.cz>
161 * Makefile.in: Add missing HAS_SPHINX_BUILD.
163 2022-11-14 Martin Liska <mliska@suse.cz>
166 2022-11-14 Martin Liska <mliska@suse.cz>
168 * doc/conf.py: Add newline at last line.
170 2022-11-14 Martin Liska <mliska@suse.cz>
173 2022-11-14 Martin Liska <mliska@suse.cz>
176 * configure: Regenerate.
177 * configure.ac: Always set sphinx-build.
179 2022-11-13 Martin Liska <mliska@suse.cz>
182 * configure: Regenerate.
183 * configure.ac: Always set sphinx-build.
185 2022-11-10 Martin Liska <mliska@suse.cz>
187 * doc/conf.py: Add newline at last line.
189 2022-11-09 Martin Liska <mliska@suse.cz>
191 * Makefile.in: Add missing HAS_SPHINX_BUILD.
193 2022-11-09 Martin Liska <mliska@suse.cz>
195 * doc/c-c++-language-constructs-for-tm.rst:
196 Add trailing newline.
198 Add trailing newline.
199 * doc/enabling-libitm.rst:
200 Add trailing newline.
201 * doc/gnu-free-documentation-license.rst:
202 Add trailing newline.
204 Add trailing newline.
205 * doc/indices-and-tables.rst:
206 Add trailing newline.
208 Add trailing newline.
209 * doc/locking-conventions.rst:
210 Add trailing newline.
211 * doc/nesting-flat-vs-closed.rst:
212 Add trailing newline.
213 * doc/the-libitm-abi.rst:
214 Add trailing newline.
215 * doc/the-libitm-abi/function-list.rst:
216 Add trailing newline.
217 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
218 Add trailing newline.
219 * doc/the-libitm-abi/library-design-principles.rst:
220 Add trailing newline.
221 * doc/the-libitm-abi/memory-model.rst:
222 Add trailing newline.
223 * doc/the-libitm-abi/non-objectives.rst:
224 Add trailing newline.
225 * doc/the-libitm-abi/objectives.rst:
226 Add trailing newline.
227 * doc/the-libitm-abi/sample-code.rst:
228 Add trailing newline.
229 * doc/the-libitm-abi/types-and-macros-list.rst:
230 Add trailing newline.
231 * doc/tm-methods-and-method-groups.rst:
232 Add trailing newline.
234 2022-11-09 Martin Liska <mliska@suse.cz>
236 * Makefile.in: Build info pages conditionally.
238 2022-11-09 Martin Liska <mliska@suse.cz>
240 * Makefile.in: Support --with-sphinx-build.
241 * configure.ac: Likewise.
242 * configure: Regenerate.
244 2022-11-09 Martin Liska <mliska@suse.cz>
246 * libitm.texi: Removed.
248 2022-11-09 Martin Liska <mliska@suse.cz>
250 * Makefile.in: Support Sphinx based documentation.
252 2022-11-09 Martin Liska <mliska@suse.cz>
254 * doc/c-c++-language-constructs-for-tm.rst: New file.
255 * doc/conf.py: New file.
256 * doc/copyright.rst: New file.
257 * doc/enabling-libitm.rst: New file.
258 * doc/gnu-free-documentation-license.rst: New file.
259 * doc/index.rst: New file.
260 * doc/indices-and-tables.rst: New file.
261 * doc/internals.rst: New file.
262 * doc/locking-conventions.rst: New file.
263 * doc/nesting-flat-vs-closed.rst: New file.
264 * doc/the-libitm-abi.rst: New file.
265 * doc/the-libitm-abi/function-list.rst: New file.
266 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
267 * doc/the-libitm-abi/library-design-principles.rst: New file.
268 * doc/the-libitm-abi/memory-model.rst: New file.
269 * doc/the-libitm-abi/non-objectives.rst: New file.
270 * doc/the-libitm-abi/objectives.rst: New file.
271 * doc/the-libitm-abi/sample-code.rst: New file.
272 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
273 * doc/tm-methods-and-method-groups.rst: New file.
275 2022-10-31 Xiongchuan Tan <xc-tan@outlook.com>
277 * configure.tgt: Add riscv support.
278 * config/riscv/asm.h: New file.
279 * config/riscv/sjlj.S: New file.
280 * config/riscv/target.h: New file.
282 2022-10-13 Lulu Cheng <chenglulu@loongson.cn>
284 * config/loongarch/sjlj.S: Add a soft floating point condition to the
285 register recovery part of the code.
287 2022-10-12 Martin Liska <mliska@suse.cz>
289 * configure: Regenerate.
291 2022-10-11 Olivier Hainque <hainque@adacore.com>
292 Olivier Hainque <hainque@adacore.com>
294 * configure: Regenerate.
296 2022-09-28 Lulu Cheng <chenglulu@loongson.cn>
297 Yang Yujie <yangyujie@loongson.cn>
299 * configure.tgt: Add loongarch support.
300 * config/loongarch/asm.h: New file.
301 * config/loongarch/sjlj.S: New file.
302 * config/loongarch/target.h: New file.
304 2022-08-31 Martin Liska <mliska@suse.cz>
306 * configure: Regenerate.
308 2022-08-31 Martin Liska <mliska@suse.cz>
310 * configure: Regenerate.
312 2022-06-02 David Malcolm <dmalcolm@redhat.com>
314 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
316 2022-02-03 David Seifert <soap@gentoo.org>
317 Jakub Jelinek <jakub@redhat.com>
319 * configure.ac: Support --disable-werror.
320 * configure: Regenerate.
322 2022-01-31 Martin Liska <mliska@suse.cz>
324 * acinclude.m4: Detect *_ld_is_mold and use it.
325 * configure: Regenerate.
327 2022-01-03 Jakub Jelinek <jakub@redhat.com>
329 * libitm.texi: Bump @copying's copyright year.
331 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
333 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
334 target does not support HAVE_ELF_STYLE_WEAKREF then do not
335 try to test the __cxa_get_globals against NULL.
337 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
340 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
342 2021-01-15 Jakub Jelinek <jakub@redhat.com>
345 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
346 be added through preprocessor check on
347 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
349 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
351 * configure: Re-generate.
353 2021-01-01 Jakub Jelinek <jakub@redhat.com>
355 * libitm.texi: Bump @copying's copyright year.
357 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
360 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
361 * configure: Regenerate.
363 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
365 * configure: Regenerate.
367 2020-10-01 Alan Modra <amodra@gmail.com>
369 * config/powerpc/sjlj.S: Support __PCREL__ code.
371 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
373 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
375 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
377 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
378 and add BTI c to function entries.
380 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
382 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
384 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
387 * configure: Regenerated.
389 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
392 * configure: Regenerated.
394 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
396 * configure: Regenerated.
398 2020-05-12 Nathan Sidwell <nathan@acm.org>
400 Fix throw specifiers on interface.
401 * libitm/libitm.h (_ITM_NOTHROW): Define.
402 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
403 (_ITM_cxa_begin_catch): Use it.
404 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
405 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
407 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
408 (_ITM_cxa_begin_catch): Likewise.
410 2020-05-05 Nathan Sidwell <nathan@acm.org>
412 * testsuite/lib/libitm.exp (libitm_init): Add
413 -fdiagnostics-color=never to options.
415 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
420 * configure: Regenerated.
422 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
424 * configure.ac: Handle `--with-toolexeclibdir='.
425 * Makefile.in: Regenerate.
426 * aclocal.m4: Regenerate.
427 * configure: Regenerate.
428 * testsuite/Makefile.in: Regenerate.
430 2020-01-01 Jakub Jelinek <jakub@redhat.com>
432 Update copyright years.
434 * libitm.texi: Bump @copying's copyright year.
436 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
439 * configure.tgt: Avoid IE tls on *-*-musl*.
441 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
443 * configure: Regenerate.
445 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
447 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
449 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
451 * configure.tgt: Handle *-*-uclinux*.
452 * configure: Regenerate.
454 2019-09-06 Florian Weimer <fweimer@redhat.com>
456 * configure: Regenerate.
458 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
461 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
462 scanning to conform to the GNU Coding Standards.
463 * configure: Regenerate.
465 2019-05-03 Jakub Jelinek <jakub@redhat.com>
467 * Makefile.am (finclude): Remove.
468 * Makefile.in: Regenerated.
470 2019-01-01 Jakub Jelinek <jakub@redhat.com>
472 Update copyright years.
474 2019-01-01 Jakub Jelinek <jakub@redhat.com>
476 * libitm.texi: Bump @copying's copyright year.
478 2018-12-16 Jakub Jelinek <jakub@redhat.com>
481 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
482 void * to void (*) (void *).
483 (_ITM_cxa_throw): Likewise.
484 * libitm.h (_ITM_cxa_throw): Likewise.
485 * libitm.texi (_ITM_cxa_throw): Likewise.
487 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
489 * config/powerpc/target.h (htm_available): Add support for
490 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
492 2018-10-31 Joseph Myers <joseph@codesourcery.com>
495 * Makefile.am: Include multilib.am.
496 (AUTOMAKE_OPTIONS): Add info-in-builddir.
497 (CLEANFILES): Remove libitm.info.
498 * configure.ac: Remove AC_PREREQ.
499 * testsuite/Makefile.am (RUNTEST): Remove quotes.
500 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
503 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
506 * method-serial.cc: Mark varible as potentially unused
509 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
511 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
512 absolute relocation in a shared library.
514 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
517 * config/linux/x86/tls.h (SEG_READ): Use the offset of
518 __private_tm as base.
519 (SEG_WRITE): Likewise.
520 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
521 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
522 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
523 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
524 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
526 2018-05-17 Jason Merrill <jason@redhat.com>
528 * beginend.cc (save): Disable -Werror=deprecated-copy.
530 2018-05-02 Tom de Vries <tom@codesourcery.com>
533 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
535 2018-05-02 Tom de Vries <tom@codesourcery.com>
538 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
540 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
542 * config/x86/sjlj.S (_ITM_beginTransaction): Add
543 (__CET__ & 2) != 0 check for shadow stack.
544 (GTM_longjmp): Likewise.
546 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
548 * configure: Regenerated.
550 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
553 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
555 2018-04-19 Jakub Jelinek <jakub@redhat.com>
557 * configure: Regenerated.
559 2018-04-18 David Malcolm <dmalcolm@redhat.com>
562 * configure: Regenerate.
564 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
567 * configure: Regenerate.
569 2018-01-03 Jakub Jelinek <jakub@redhat.com>
571 Update copyright years.
573 * libitm.texi: Bump @copying's copyright year.
575 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
577 * Makefile.in: Regenerate.
578 * acinclude.m4: Add enable.m4 and cet.m4.
579 * config/x86/sjlj.S: Include cet.h.
580 (_ITM_beginTransaction): Add _CET_ENDBR.
581 Save Shadow Stack pointer.
582 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
583 * config/x86/target.h (struct gtm_jmpbuf):
584 Add new field for Shadow Stack pointer.
585 * configure: Regenerate.
586 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
587 * configure.ac: Update libtool_VERSION for x86.
588 * testsuite/Makefile.in: Regenerate.
590 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
592 * libitm/config/x86/target.h: Add new field (ssp).
593 * libitm/config/x86/sjlj.S: Change offsets.
595 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597 * testsuite/lib/libitm.exp: Load scanlang.exp.
599 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
601 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
603 2017-01-21 Jakub Jelinek <jakub@redhat.com>
606 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
607 of cat to get version from BASE-VER file.
608 * testsuite/Makefile.in: Regenerated.
610 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
612 * config/x86/target.h (htm_available): Determine vendor from
613 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
615 2017-01-18 Torvald Riegel <triegel@redhat.com>
617 * config/x86/target.h (htm_available): Add check for some processors
618 on which TSX is broken.
620 2017-01-17 Jakub Jelinek <jakub@redhat.com>
623 * configure.ac: Add GCC_BASE_VER.
624 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
625 get version from BASE-VER file.
626 * testsuite/Makefile.in: Regenerated.
627 * configure: Regenerated.
628 * Makefile.in: Regenerated.
630 2017-01-04 Alan Modra <amodra@gmail.com>
632 * Makefile.in: Regenerate.
633 * testsuite/Makefile.in: Regenerate.
635 2017-01-01 Jakub Jelinek <jakub@redhat.com>
637 Update copyright years.
639 * libitm.texi: Bump @copying's copyright year.
641 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
643 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
644 * aclocal.m4: Regenerate.
645 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
646 LIBITM_CHECK_LINKER_HWCAP.
648 2016-11-15 Matthias Klose <doko@ubuntu.com>
650 * configure: Regenerate.
652 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
655 * util.cc (xmalloc): Use posix_memalign to allocate memory on
656 on cache line if requested.
658 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
660 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
661 function attribute to disable floating point in begin_transaction() on
663 * beginend.cc (begin_transaction): Use
664 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
666 2016-01-22 Torvald Riegel <triegel@redhat.com>
668 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
670 (htm_fastpath): Remove.
671 (gtm_thread::begin_transaction): Fix HTM fastpath.
672 (_ITM_commitTransaction): Adapt.
673 (_ITM_commitTransactionEH): Adapt.
674 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
676 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
677 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
678 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
679 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
680 * libitm/method-serial.cc (htm_mg): Adapt.
681 (gtm_thread::serialirr_mode): Adapt.
682 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
684 2016-01-21 Torvald Riegel <triegel@redhat.com>
686 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
689 2016-01-19 Richard Henderson <rth@redhat.com>
694 2016-01-13 Richard Henderson <rth@redhat.com>
696 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
697 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
698 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
699 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
700 * configure.ac (ARCH_AARCH64): New conditional.
701 (ARCH_PPC, ARCH_S390): Likewise.
702 * Makefile.in, configure: Rebuild.
704 * libitm.h (_ITM_TYPE_M128): Always define.
705 * vect64.cc: Split ...
706 * vect128.cc: ... out of...
707 * config/x86/x86_sse.cc: ... here.
708 * config/arm/neon.cc: New file.
710 2016-01-19 Torvald Riegel <triegel@redhat.com>
712 * local_type_traits: Remove file.
713 * libitm_i.h: Don't include it anymore.
714 (sized_integral): Remove.
716 2016-01-16 Torvald Riegel <triegel@redhat.com>
718 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
720 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
721 * libitm/testsuite/libitm.c/priv-1.c: New.
723 2015-01-15 Torvald Riegel <triegel@redhat.com>
725 testsuite/libitm.c++/libstdc++-safeexc.C: New.
727 2016-01-13 Torvald Riegel <triegel@redhat.com>
729 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
730 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
731 (gtm_rwlock::write_unlock): Likewise.
733 2016-01-13 Richard Henderson <rth@redhat.com>
735 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
736 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
737 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
738 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
739 * configure.ac (ARCH_AARCH64): New conditional.
740 (ARCH_PPC, ARCH_S390): Likewise.
741 * Makefile.in, configure: Rebuild.
743 * libitm.h (_ITM_TYPE_M128): Always define.
744 * vect64.cc: Split ...
745 * vect128.cc: ... out of...
746 * config/x86/x86_sse.cc: ... here.
747 * config/arm/neon.cc: New file.
749 2016-01-13 Torvald Riegel <triegel@redhat.com>
751 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
752 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
753 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
754 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
755 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
756 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
757 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
758 (serialirr_dispatch::snapshot_most_recent): New.
759 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
761 2016-01-12 Torvald Riegel <triegel@redhat.com>
763 * libitm_i.h (gtm_mask_stack): Remove.
764 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
765 * stmlock.h: Remove file.
766 * config/alpha/cacheline.h: Likewise.
767 * config/generic/cacheline.h: Likewise.
768 * config/powerpc/cacheline.h: Likewise.
769 * config/sparc/cacheline.h: Likewise.
770 * config/x86/cacheline.h: Likewise.
772 2016-01-04 Jakub Jelinek <jakub@redhat.com>
774 Update copyright years.
776 * libitm.texi: Bump @copying's copyright year.
778 2015-11-26 Torvald Riegel <triegel@redhat.com>
780 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
781 (ml_wt_dispatch::pre_write): Adapt.
782 (ml_wt_dispatch::pre_load): Likewise.
784 2015-11-22 Torvald Riegel <triegel@redhat.com>
786 * libitm_i.h (gtm_alloc_action): Remove union.
787 * testsuite/libitm.c/alloc-1.c: New.
789 2015-11-19 Torvald Riegel <triegel@redhat.com>
791 * testsuite/libitm.c++/eh-5.C: New.
792 * libitm.h (_ITM_cxa_free_exception): New.
793 * libitm.map (_ITM_cxa_free_exception): Add it.
794 * libitm.texi: Update ABI docs.
795 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
796 (gtm_transaction_cp::cxa_uncaught_count): Add.
797 (gtm_thread::cxa_unthrown): Remove.
798 (gtm_thread::cxa_uncaught_count_ptr): Add.
799 (gtm_thread::cxa_uncaught_count): Add.
800 (gtm_thread::drop_references_allocations): Rename to...
801 (gtm_thread::discard_allocation): ... this and adapt.
802 (gtm_thread::init_cpp_exceptions): New.
803 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
804 (gtm_thread::begin_transaction): Likewise.
805 (gtm_transaction_cp::save): Likewise.
806 (gtm_thread::trycommit): Likewise.
807 * eh_cpp.cc: Add overview comments.
808 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
809 (free_any_exception, _ITM_cxa_free_exception): New.
810 (gtm_thread::init_cpp_exceptions): Define.
811 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
812 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
813 (gtm_thread::revert_cpp_exceptions): Likewise.
815 2015-11-09 Torvald Riegel <triegel@redhat.com>
817 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
818 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
819 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
820 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
821 (gtm_thread::forget_allocations): New overload with size_t argument.
822 * alloc.c (gtm_thread::forget_allocation): Define new overload and
824 (gtm_thread::record_allocation): Adapt.
825 (gtm_thread::commit_allocations_1): Adapt.
826 (gtm_thread::commit_allocations_2): Adapt.
827 * testsuite/libitm.c++/newdelete.C: New.
829 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
830 Joseph Myers <joseph@codesourcery.com>
831 Mark Shinwell <shinwell@codesourcery.com>
832 Andrew Stubbs <ams@codesourcery.com>
833 Rich Felker <dalias@libc.org>
835 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
836 GTM_begin_transaction for compatibility with FDPIC.
838 2015-10-09 David Malcolm <dmalcolm@redhat.com>
840 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
843 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
846 * local_atomic (__always_inline): Rename to...
847 (__libitm_always_inline): ... this.
849 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
852 * config/powerpc/sjlj.S: Port to Xcode 2.5.
854 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
856 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
857 operands "op" and "val" to int.
859 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
861 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
862 "op" and "val" to int.
864 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
866 * config/linux/alpha/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/futex.cc (gtm_futex_wait, gtm_futex_wake):
872 Declare as static int.
873 (FUTEX_PRIVATE_FLAG): Remove L suffix.
874 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
876 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
878 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
881 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
883 * Makefile.in: Regenerated with automake-1.11.6.
884 * aclocal.m4: Likewise.
885 * configure: Likewise.
886 * testsuite/Makefile.in: Likewise.
888 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
890 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
891 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
893 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
896 * libitm.c/stackundo.c (test2): Make it static.
899 2015-01-05 Jakub Jelinek <jakub@redhat.com>
901 Update copyright years.
903 2015-01-05 Jakub Jelinek <jakub@redhat.com>
905 * libitm.texi: Bump @copying's copyright year.
907 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
909 * testsuite/lib/libitm.exp: Load target-utils.exp.
910 Move load of target-supports.exp earlier.
912 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
914 * configure.tgt (x86_64): Tune -m32 multilib to generic.
916 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
919 * configure: Regenerated.
921 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
924 * configure: Regenerate.
926 2014-10-06 Marek Polacek <polacek@redhat.com>
928 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
929 * testsuite/libitm.c/memset-1.c: Likewise.
931 2014-07-24 Richard Henderson <rth@redhat.com>
933 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
934 addressing mode in epilogue.
936 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
938 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
939 -mclear-hwcap instead.
940 * configure: Regenerate.
941 * clearcap.map: Remove.
943 2014-05-21 John Marino <gnugcc@marino.st>
945 * configure.tgt (*-*-dragonfly*): New target.
947 2014-05-19 Richard Henderson <rth@redhat.com>
949 * config/aarch64/sjlj.S: New file.
950 * config/aarch64/target.h: New file.
951 * configure.tgt: Enable aarch64.
953 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
955 * config/generic/asmcfi.h: Also check for
956 __GCC_HAVE_DWARF2_CFI_ASM.
958 2013-04-02 Richard Henderson <rth@redhat.com>
960 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
961 * config/arm/target.h, config/sh/target.h: Likewise.
962 * config/sparc/target.h, config/x86/target.h: Likewise.
964 2014-03-26 Jakub Jelinek <jakub@redhat.com>
966 * config/linux/futex_bits.h: Include errno.h.
967 (sys_futex0): If syscall returns -1, return -errno rather than
970 2014-03-26 Joseph Myers <joseph@codesourcery.com>
972 * libitm.texi (Index): Rename to Library Index.
974 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
977 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
978 (x86_avx.lo): Append -mavx to CXXFLAGS.
979 * Makefile.in: Regenerate.
981 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
983 Update copyright years
985 2014-01-02 Tobias Burnus <burnus@net-b.de>
987 * libitm.texi: Bump @copying's copyright year.
989 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
991 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
992 (FUNC): Define ELFv2 variant.
999 2013-09-20 Alan Modra <amodra@gmail.com>
1001 * configure: Regenerate.
1003 2013-08-30 Torvald Riegel <triegel@redhat.com>
1005 * config/posix/rwlock.cc: Fix initialization order.
1007 2013-08-30 Torvald Riegel <triegel@redhat.com>
1009 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1010 (htm_fastpath): Assign an asm name.
1011 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1013 (_ITM_actions): Likewise.
1014 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1016 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1017 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
1018 field to the start of the structure.
1019 * config/linux/rwlock.h (gtm_rwlock): Update comments.
1020 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1021 handling for custom HTM fast paths.
1023 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1025 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1027 * configure.tgt: Add -msoft-float to XCFLAGS.
1029 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1031 * configure.tgt: Add -msoft-float to XCFLAGS.
1033 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1035 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1036 (htm_transaction_active): Enable zEC12 instructions in the
1038 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1040 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1042 * acinclude.m4: Add htm asm check for s390.
1043 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1044 * configure: Regenerate.
1045 * config/s390/target.h: Remove __HTM__ check.
1046 (htm_available): Call getauxval to get hwcaps and check whether
1047 HTM is available or not.
1049 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1051 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1052 * configure.ac: Use it.
1053 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1054 (AC_CHECK_FUNCS): Check for getauxval.
1055 * config.h.in, configure: Rebuild.
1056 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1057 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1058 (USE_HTM_FASTPATH): Define.
1059 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1060 _HTM_RETRIES) New macros.
1061 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1062 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1064 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1066 * config/s390/target.h: Include htmintrin.h.
1067 (_HTM_ITM_RETRIES): New macro definition.
1068 (htm_available, htm_init, htm_begin, htm_begin_success)
1069 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1071 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1072 Cesar Philippidis <cesar@codesourcery.com>
1074 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1075 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1076 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1077 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1079 2013-06-20 Torvald Riegel <triegel@redhat.com>
1081 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1082 (_ITM_getTransactionId): Same.
1083 * config/x86/target.h (htm_transaction_active): New.
1085 2013-06-20 Torvald Riegel <triegel@redhat.com>
1088 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1091 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
1094 * local_atomic (__always_inline): Always define our version.
1095 (__calculate_memory_order): Mark inline.
1096 (atomic_thread_fence): Ditto.
1097 (atomic_signal_fence): Ditto.
1098 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1099 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1100 (atomic_bool::atomic_flag_test_and_set): Ditto.
1101 (atomic_bool::atomic_flag_clear): Ditto.
1103 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1105 * config/s390/sjlj.S: New file.
1106 * config/s390/target.h: New file.
1107 * configure.tgt: Set options for S/390.
1109 2013-03-23 Andi Kleen <ak@linux.intel.com>
1111 * local_atomic (__always_inline): Add.
1112 (__calculate_memory_order, atomic_thread_fence,
1113 atomic_signal_fence, test_and_set, clear, store, load,
1114 exchange, compare_exchange_weak, compare_exchange_strong,
1115 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1116 Add __always_inline to force inlining.
1118 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1119 Jack Howarth <howarth@bromo.med.uc.edu>
1120 Patrick Marlier <patrick.marlier@gmail.com>
1123 * alloc_cpp.cc: Enable function declarations on darwin.
1124 * eh_cpp.cc: Likewise.
1126 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1128 Update copyright years.
1130 2012-11-09 Torvald Riegel <triegel@redhat.com>
1132 * beginend.cc (htm_fastpath): New.
1133 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1134 _ITM_commitTransactionEH): Add HTM fastpath handling.
1135 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1136 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1137 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1138 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1139 * configure.tgt: Add -mrtm to XCFLAGS.
1140 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1141 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1142 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1143 * retry.cc (parse_default_method): Add HTM method parsing.
1144 (gtm_thread::number_of_threads_changed): Use HTM by default if
1147 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1149 * configure: Regenerate.
1151 2012-10-31 Richard Henderson <rth@redhat.com>
1153 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1154 * configure.ac: Use it.
1155 * config.h.in, configure: Rebuild.
1156 * testsuite/Makefile.in: Rebuild.
1158 2012-10-24 Torvald Riegel <triegel@redhat.com>
1160 * libitm.texi: Clarify ABI requirements for data-logging functions.
1162 2012-10-24 Torvald Riegel <triegel@redhat.com>
1164 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1165 it requires serial mode instead of assuming that for certain
1167 * dispatch.h (abi_dispatch::requires_serial): New.
1168 (abi_dispatch::abi_dispatch): Adapt.
1169 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1170 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1171 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1172 serial_dispatch::serial_dispatch,
1173 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1175 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1177 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1178 and ia32 declarations some more.
1179 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1181 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1184 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1185 * configure: Regenerate.
1186 * Makefile.in: Regenerate.
1188 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1190 * configure: Regenerated.
1192 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
1194 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1196 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
1198 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1200 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1202 * configure: Regenerated.
1204 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
1207 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1210 2012-04-03 Tristan Gingold <gingold@adacore.com>
1212 * configure: Regenerate.
1214 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1217 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1219 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1221 * testsuite/lib/libitm.exp: load fortran-modules.exp
1223 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1225 * configure.tgt (*-*-irix6*): Remove.
1227 2012-03-13 Torvald Riegel <triegel@redhat.com>
1230 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1233 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1235 * configure.tgt (*-*-osf*): Remove.
1236 * configure: Regenerate.
1238 2012-03-05 Torvald Riegel <triegel@redhat.com>
1240 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1241 memtransfer/memset if size isn't larger than zero.
1243 2012-03-02 Torvald Riegel <triegel@redhat.com>
1245 * libitm.texi: Link to specification and add a usage example.
1247 2012-02-24 Torvald Riegel <triegel@redhat.com>
1249 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1250 default dispatch for more than 1 thread to ml_wt.
1252 2012-02-20 Torvald Riegel <triegel@redhat.com>
1254 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1256 2012-02-20 Torvald Riegel <triegel@redhat.com>
1258 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1260 2012-02-20 Torvald Riegel <triegel@redhat.com>
1262 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1263 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1264 (gl_wt_dispatch.rollback): Same.
1266 2012-02-20 Torvald Riegel <triegel@redhat.com>
1268 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1270 2012-02-20 Torvald Riegel <triegel@redhat.com>
1272 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1273 for RfW src. Optimize number of calls to gtm_thr.
1275 2012-02-20 Torvald Riegel <triegel@redhat.com>
1277 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1279 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1280 (default_dispatch): Make atomic.
1281 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1282 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1283 use decide_begin_dispatch() if default_dispatch might have changed.
1284 (GTM::gtm_thread::number_of_threads_changed): Initialize
1285 default_dispatch here.
1287 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1288 Patrick Marlier <patrick.marlier@gmail.com>
1291 * alloc_cpp.cc: No dummy definitions for darwin.
1292 * eh_cpp.cc: Likewise.
1294 2012-02-14 Richard Henderson <rth@redhat.com>
1296 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1298 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1300 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1302 2012-02-14 Torvald Riegel <triegel@redhat.com>
1304 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1305 (GTM::gtm_thread): Add read and write logs.
1306 (GTM::dispatch_ml_wt): Declare.
1307 * retry.cc (parse_default_method): Support ml_wt.
1308 * method-ml.cc: New file.
1309 * Makefile.am: Add method-ml.cc.
1310 * Makefile.in: Regenerate.
1312 2012-02-14 Torvald Riegel <triegel@redhat.com>
1314 * dispatch.h (GTM::abi_dispatch::supports): New.
1315 (GTM::method_group::reinit): New.
1316 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1317 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1318 supports the current situation.
1320 2012-02-14 Torvald Riegel <triegel@redhat.com>
1322 * util.cc (GTM::xcalloc): New.
1323 * common.h (GTM::xcalloc): Declare.
1325 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1327 * config/sparc/target.h (cpu_relax): Read from CC register.
1328 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1330 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1332 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1334 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1336 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1337 * config/sparc/cacheline.h: New file.
1338 * config/sparc/target.h: Likewise.
1339 * config/sparc/sjlj.S: Likewise.
1340 * config/linux/sparc/futex_bits.h: Likewise.
1342 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1344 * configure.ac (link_itm): Fix comment.
1345 * configure: Regenerate.
1346 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1348 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1351 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1352 Correct libgomp references.
1354 2012-01-24 Torvald Riegel <triegel@redhat.com>
1356 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1359 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1361 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1363 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1364 offset values. Do not copy return address. Decrement stack
1366 (GTM_longjump) [__x86_64__]: Update offset values.
1368 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1371 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1372 the first function argument to %eax.
1374 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1376 * libitm.h (_ITM_getThreadnum): Remove.
1377 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1379 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1381 * clearcap.map: New file.
1382 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1383 * configure.ac: Call it.
1384 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1385 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1386 * configure: Regenerate.
1387 * Makefile.in: Regenerate.
1388 * testsuite/Makefile.in: Regenerate.
1390 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1393 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1394 include, exclude options.
1396 2012-01-14 Torvald Riegel <triegel@redhat.com>
1398 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1400 * containers.h (GTM::vector::set_size): New.
1402 2012-01-14 Torvald Riegel <triegel@redhat.com>
1405 * config/generic/tls.h (GTM::mask_stack_top): New.
1406 (GTM::mask_stack_bottom): Declare.
1407 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1408 * local.cc (gtm_undolog::rollback): Filter out any updates that
1409 overlap the libitm stack. Add current transaction as parameter.
1410 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1411 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1412 * testsuite/libitm.c/stackundo.c: New test.
1414 2012-01-10 Richard Henderson <rth@redhat.com>
1416 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1417 * eh_cpp.cc (_Unwind_DeleteException): Define for
1418 !HAVE_ELF_STYLE_WEAKREF.
1420 2012-01-08 Torvald Riegel <triegel@redhat.com>
1422 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1423 (GTM::gtm_thread::drop_references_undolog): Remove.
1424 (GTM::gtm_thread::commit_undolog,
1425 GTM::gtm_thread::rollback_undolog): Move to ...
1426 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1427 (GTM::gtm_undolog_entry): Remove.
1428 (GTM::gtm_thread): Adapt.
1429 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1430 (GTM::gtm_thread::trycommit): Adapt.
1431 * method-serial.cc (serial_dispatch::log): Adapt.
1432 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1433 (gl_wt_dispatch::store): Fix likely/unlikely.
1434 * containers.h (GTM::vector::resize): Add additional_capacity
1435 parameter and handle it.
1436 (GTM::vector::resize_noinline): New/adapt.
1437 (GTM::vector::push): New.
1439 2012-01-06 Richard Henderson <rth@redhat.com>
1441 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1442 * config/linux/powerpc/futex_bits.h: New file.
1443 * config/powerpc/cacheline.h: New file.
1444 * config/powerpc/sjlj.S: New file.
1445 * config/powerpc/target.h: New file.
1446 * config/generic/asmcfi.h (cfi_offset): New.
1447 (cfi_restore, cfi_undefined): New.
1449 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1452 * testsuite/libitm.c/reentrant.c: Remove xfail.
1453 (thread): Pass x to pure().
1454 From Patrik Marlier <patrick.marlier@gmail.com>.
1456 2011-12-24 Torvald Riegel <triegel@redhat.com>
1458 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1459 privatization safety if already in serial mode.
1461 2011-12-24 Torvald Riegel <triegel@redhat.com>
1463 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1464 finish_serial_upgrade parameter.
1465 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1466 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1467 Don't unset reader flag.
1468 (GTM::gtm_rwlock::write_upgrade_finish): New.
1469 * config/posix/rwlock.cc: Same.
1470 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1472 * config/posix/rwlock.h: Same.
1473 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1474 flag after commit or after rollback when restarting.
1476 2011-12-24 Torvald Riegel <triegel@redhat.com>
1478 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1479 (GTM::gtm_thread::try_commit): Changed memory order.
1480 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1482 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1483 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1484 * config/linux/futex_bits.h (sys_futex0): Same.
1485 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1486 * config/linux/futex.h (futex_wait, futex_wake): Same.
1487 * config/linux/rwlock.h (gtm_rwlock::writers,
1488 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1490 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1491 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1492 gtm_rwlock::write_unlock): Fix memory orders and fences.
1493 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1494 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1495 gtm_rwlock::write_unlock): Same.
1496 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1497 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1498 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1500 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1501 gl_wt_dispatch::load, gl_wt_dispatch::store,
1502 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1503 orders and fences. Add comments.
1505 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1507 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1508 * Makefile.in: Regenerated.
1510 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1512 * configure.tgt: Add sh* case.
1513 * config/sh/target.h: New file.
1514 * config/sh/sjlj.S: New file.
1515 * config/linux/sh/futex_bits.h: New file.
1517 2011-12-14 Richard Henderson <rth@redhat.com>
1519 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1520 * config/arm/sjlj.S, config/arm/target.h: New files.
1521 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1522 (cfi_rel_offset): New.
1523 * config/linux/futex_bits.h: New file.
1524 * config/linux/futex.cc: Include futex_bits.h here...
1525 * config/linux/futex.h: ... not here.
1526 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1527 * configure.ac (ARCH_AM): New conditional.
1528 * Makefile.in, configure: Rebuild.
1529 * configure.tgt: Handle ARM.
1531 2011-12-13 Richard Henderson <rth@redhat.com>
1533 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1534 signed/unsigned comparison werror.
1536 * local_atomic: New file.
1537 * libitm_i.h: Include it.
1538 (gtm_thread::shared_state): Use atomic template.
1539 * beginend.cc (GTM::gtm_clock): Use atomic template.
1540 (global_tid): Use atomic template if 64-bit atomics available.
1541 (gtm_thread::gtm_thread): Update shared_state access.
1542 (gtm_thread::trycommit): Likewise.
1543 (choose_code_path): Update global_tid access.
1544 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1545 * stmlock.h (GTM::gtm_clock): Use atomic template.
1546 (gtm_get_clock, gtm_inc_clock): Update accesses.
1547 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1548 redundant __sync_synchronize after atomic shared_state access.
1549 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1550 (gtm_rwlock::write_lock_generic): Likewise.
1551 (gtm_rwlock::read_unlock): Likewise.
1552 * config/alpha/target.h (atomic_read_barrier): Remove.
1553 (atomic_write_barrier): Remove.
1554 * config/x86/target.h (atomic_read_barrier): Remove.
1555 (atomic_write_barrier): Remove.
1557 2011-11-30 Richard Henderson <rth@redhat.com>
1559 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1560 * beginend.c (_ITM_abortTransaction): Update to match.
1561 (GTM::gtm_thread::restart): Likewise.
1562 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1563 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1565 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1567 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1568 * Makefile.in: Regenerate.
1570 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1572 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1573 * alloc_cpp.cc: Generate dummy functions if we don't
1574 HAVE_ELF_STYLE_WEAKREF.
1575 * eh_cpp.cc: Likewise.
1576 * configure: Regenerate.
1577 * aclocal.m4: Likewise.
1578 * config.h.in: Likewise.
1579 * Makefile.in: Likewise.
1580 * testsuite/Makefile.in: Likewise.
1582 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1584 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1585 __USER_LABEL_PREFIX__ for targets that use it.
1586 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1587 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1588 in portability to non-elf targets.
1589 (GTM_longjmp): Likewise.
1590 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1593 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1595 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1596 * testsuite/libitm.c/memset-1.c: Likewise.
1598 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1600 * configure: Regenerate.
1602 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1604 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1605 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1606 * Makefile.am: Handle sun style versioning.
1607 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1608 * configure: Regenerate.
1609 * Makefile.in: Regenerate.
1611 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1613 * config/generic/asmcfi.h: Fix comment.
1614 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1615 sequence without .hidden support, error for non-ELF targets.
1616 (GTM_longjmp) [__ELF__]: Only use .hidden if
1617 HAVE_ATTRIBUTE_VISIBILITY.
1619 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1621 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1622 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1624 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1625 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1627 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1630 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1631 * configure: Regenerate.
1633 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1635 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1637 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1639 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1641 (.note.GNU-stack): Only use if __linux__.
1642 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1643 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1644 * testsuite/libitm.c/reentrant.c: Likewise.
1645 * testsuite/libitm.c/simple-2.c: Likewise.
1646 * testsuite/libitm.c/txrelease.c: Likewise.
1647 * testsuite/libitm.c++/static_ctor.C: Likewise.
1649 2011-11-10 Richard Henderson <rth@redhat.com>
1651 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1652 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1653 * configure.ac (ARCH_X86_AVX): New conditional.
1654 * Makefile.in, configure: Rebuild.
1656 2011-11-09 Richard Henderson <rth@redhat.com>
1658 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1659 * configure.ac: Use it.
1660 * config.h.in, configure: Rebuild.
1661 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1663 2011-11-09 Richard Henderson <rth@redhat.com>
1665 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1666 * config/alpha/unaligned.h: Remove file.
1667 * config/generic/unaligned.h: Remove file.
1668 * config/x86/unaligned.h: Remove file.
1669 * config/generic/cachepage.h: Remove file.
1670 * config/posix/cachepage.cc: Remove file.
1671 * config/generic/cacheline.cc: Remove file.
1672 * config/x86/cacheline.cc: Remove file.
1673 * config/generic/cacheline.h (gtm_cacheline): Remove the
1674 store_mask, copy_mask, copy_mask_wb methods.
1675 * config/x86/cacheline.h: Likewise.
1676 * config/alpha/cacheline.h: Fall back to generic after setting size.
1677 * config/generic/tls.cc (gtm_mask_stack): Remove.
1678 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1679 (GTM_vpalignr_table): Remove.
1680 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1681 (GTM_pshift_table): Remove.
1682 * config/libitm_i.h: Don't include cachepage.h.
1683 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1684 * Makefile.in, testsuite/Makefile.in: Rebuild.
1686 2011-11-09 Richard Henderson <rth@redhat.com>
1688 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1689 to emit branch prediction hint.
1691 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1692 Protect .note.GNU-stack with __linux__.
1694 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1695 * configure, aclocal.m4, config.h.in: Rebuild.
1696 * config/generic/asmcfi.h: New file.
1697 * config/x86/sjlj.S: Use it.
1699 2011-11-08 Richard Henderson <rth@redhat.com>
1701 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1703 2011-11-08 Richard Henderson <rth@redhat.com>
1705 * configure.tgt: Test correct directory for supported cpus.
1707 * configure.ac: Exit if unsupported.
1708 * configure: Rebuild.
1709 * configure.tgt: Delete boilerplate from libgomp for unsupported
1710 targets. Set UNSUPPORTED for unsupported targets.
1712 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1714 * configure.tgt: Handle i386 like i[456]86.
1715 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1717 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1718 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1720 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1722 * method-wbetl.cc: Update copyright notice.
1728 * barrier.tpl: Same.
1729 * useraction.cc: Same.
1733 * config/generic/tls.cc: Same.
1734 * config/generic/cacheline.h: Same.
1735 * config/generic/cachepage.h: Same.
1736 * config/generic/cacheline.cc: Same.
1737 * config/generic/unaligned.h: Same.
1738 * config/x86/cacheline.h: Same.
1739 * config/x86/cacheline.cc: Same.
1740 * config/x86/unaligned.h: Same.
1741 * config/alpha/cacheline.h: Same.
1742 * config/alpha/unaligned.h: Same.
1743 * config/alpha/sjlj.S: Same.
1744 * config/posix/cachepage.cc: Same.
1745 * config/linux/futex.h: Same.
1746 * config/linux/alpha/futex_bits.h: Same.
1748 2011-11-04 Torvald Riegel <triegel@redhat.com>
1750 * libitm.texi: No cover text and invariant sections.
1752 2011-11-03 Richard Henderson <rth@redhat.com>
1754 * local_type_traits: New file.
1755 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1757 2011-11-03 Richard Henderson <rth@redhat.com>
1759 * configure.ac: Don't test for gfortran.
1760 * configure: Rebuild.
1762 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1763 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1765 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1767 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1768 * testsuite/libitm.c/memset-1.c: Same.
1769 * testsuite/libitm.c/c.exp: Same.
1770 * testsuite/lib/libitm-dg.exp: Same.
1771 * testsuite/lib/libitm.exp: Same.
1772 * testsuite/libitm.c++/c++.exp: Same.
1774 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1776 * testsuite/config/default.exp: Update copyright date.
1777 * configure.ac: Add copyright info.
1778 * configure.tgt: Same.
1780 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1782 * testsuite/libitm.c/reentrant.c: XFAIL.
1783 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1785 2011-10-29 Torvald Riegel <triegel@redhat.com>
1787 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1789 (_ITM_abortTransaction): Handle aborts of outer transactions.
1791 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1792 * libitm.texi: Document aborts of outer transactions.
1793 * testsuite/libitm.c/cancel.c: New file.
1795 2011-10-19 Torvald Riegel <triegel@redhat.com>
1797 * testsuite/*: Change __transaction to __transaction_atomic or
1798 __transaction_relaxed.
1800 2011-10-19 Torvald Riegel <triegel@redhat.com>
1802 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1805 2011-10-19 Torvald Riegel <triegel@redhat.com>
1807 * libitm_i.h: Add gl_wt dispatch.
1808 * retry.cc (parse_default_method): Same.
1809 * method-gl.cc: New file.
1810 * Makefile.am: Use method-gl.cc.
1811 * Makefile.in: Rebuild.
1813 2011-10-19 Torvald Riegel <triegel@redhat.com>
1815 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1816 safety if requested by a TM method.
1817 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1818 privatization safety.
1819 * method-serial.cc: Same.
1821 2011-10-19 Torvald Riegel <triegel@redhat.com>
1823 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1824 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1825 undolog-related member functions from *_local to *_undolog.
1826 * local.cc (gtm_thread::commit_undolog): Same.
1827 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1828 (GTM::gtm_thread::rollback): Roll back undolog before
1829 dispatch-specific rollback.
1831 2011-10-19 Torvald Riegel <triegel@redhat.com>
1833 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1834 re-initialization of the current method group.
1835 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1837 2011-10-19 Torvald Riegel <triegel@redhat.com>
1839 * alloc.cc (commit_allocations_2): Do not free transaction-local
1840 memory when committing a nested transaction.
1842 2011-10-19 Torvald Riegel <triegel@redhat.com>
1844 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1845 serial-irrevocable dispatch, not serial.
1847 2011-10-19 Torvald Riegel <triegel@redhat.com>
1849 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1851 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1852 * method-serial.cc: Implement begin_or_restart().
1853 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1854 dispatch-specific begin_or_restart().
1855 (GTM::gtm_thread::restart): Same.
1857 2011-08-23 Torvald Riegel <triegel@redhat.com>
1859 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1860 restarting without switching to serial mode.
1861 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1862 transaction state. Choose closed-nesting alternative if available.
1863 (GTM::gtm_thread::set_default_dispatch): New.
1864 (parse_default_method): New.
1865 (GTM::gtm_thread::number_of_threads_changed): New.
1866 * method-serial.cc (GTM::serial_mg): New method group class.
1867 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1869 (GTM::serial_dispatch): Same.
1870 (GTM::serialirr_onwrite_dispatch): Same.
1871 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1872 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1874 (GTM::gtm_thread::gtm_thread): Same.
1875 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1876 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1877 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1878 choose dispatch but set state according to dispatch here.
1879 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1880 (GTM::method_group): New class.
1881 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1882 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1883 * libitm.texi: Document TM methods, method groups, method life cycle.
1884 Rename method sets to method groups.
1886 2011-08-23 Torvald Riegel <triegel@redhat.com>
1888 * config/x86/tls.h: Moved to ...
1889 * config/linux/x86/tls.h: ... here.
1891 2011-08-23 Torvald Riegel <triegel@redhat.com>
1893 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1895 * config/x86/sjlj.S: Same.
1897 2011-08-19 Torvald Riegel <triegel@redhat.com>
1899 * config/linux/rwlock.h: New file.
1900 * config/linux/rwlock.c: New file.
1901 * configure.ac: Reenable futex support (undo SVN rev 157758).
1902 * Makefile.am: Same.
1903 * configure.tgt: Same.
1904 * config/linux/alpha/futex_bits.h: Same.
1905 * config/linux/futex.h: Same. Return number of woken processes.
1906 * config/linux/futex.cc: Same.
1907 (futex_wait): Remove spinning.
1908 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1909 Use __x86_64__ instead of __LP64__.
1910 * aclocal.m4: Include generic futex checks.
1911 * configure: Rebuild.
1912 * Makefile.in: Rebuild.
1913 * testsuite/Makefile.in: Rebuild.
1914 * beginend.cc: Include pthread.h.
1915 * config/posix/cachepage.cc: Same.
1917 2011-08-12 Torvald Riegel <triegel@redhat.com>
1919 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1920 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1922 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1924 (GTM::gtm_thread::thread_num): Removed.
1925 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1926 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1927 tx-to-thread renaming.
1928 * beginend.cc: Adapted to tx-to-thread renaming.
1929 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1930 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1931 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1932 gtm_transaction to gtm_thread.
1933 (_ITM_getThreadnum): Removed. Not supported anymore.
1934 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1935 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1936 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1937 gtm_tx-to-gtm_thr renaming if necessary.
1944 * alloc_cpp.cc: Same.
1945 * method-serial.cc: Same.
1946 * config/generic/tls.cc: Same.
1947 * config/posix/rwlock.h (gtm_rwlock): Same.
1948 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1950 2011-08-12 Torvald Riegel <triegel@redhat.com>
1952 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1954 (gtm_rwlock::read_unlock): Same.
1955 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1956 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1957 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1958 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1959 w_upgrade. Replaced by per-transaction flags (in shared_state).
1960 Added c_confirmed_writers.
1961 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1962 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1963 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1964 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1965 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1966 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1967 * libitm.texi: Document locking conventions and implementations in
1970 2011-08-12 Torvald Riegel <triegel@redhat.com>
1972 * libitm_i.h (next_tx): Add list of all threads' transaction.
1973 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1974 transaction with list of transactions and ...
1975 (thread_exit_handler): ... deregister here.
1976 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1977 * config/x86/target.h: Same.
1979 2011-08-12 Torvald Riegel <triegel@redhat.com>
1981 * testsuite/libitm.c++/static_ctor.C: New file.
1983 2011-08-12 Torvald Riegel <triegel@redhat.com>
1985 * testsuite/libitm.c/reentrant.c: New file.
1987 2011-08-12 Torvald Riegel <triegel@redhat.com>
1989 * config/generic/tls.h: Remove the free list for transactions and ...
1990 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1991 (GTM::gtm_transaction::operator delete): ... and release here.
1992 (thread_exit_handler): New. Delete tx when thread terminates.
1993 (thread_exit_init): New.
1994 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1995 * testsuite/libitm.c/txrelease.c: New file.
1997 2011-08-12 Torvald Riegel <triegel@redhat.com>
1999 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2000 * testsuite/libitm.c/notx.c: New file.
2002 2011-08-12 Torvald Riegel <triegel@redhat.com>
2004 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2005 * libitm_i.h (local_tid): ... to here.
2006 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2007 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2009 2011-08-12 Torvald Riegel <triegel@redhat.com>
2011 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2012 serialirr_onwrite_dispatch as new default for now.
2013 * method-serial.cc (serialirr_onwrite_dispatch): New.
2014 (GTM::dispatch_serialirr_onwrite): New.
2017 2011-08-12 Torvald Riegel <triegel@redhat.com>
2019 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2020 * query.cc (_ITM_getTransactionId): There is no active transaction if
2021 the current nesting level is zero.
2023 2011-07-28 Torvald Riegel <triegel@redhat.com>
2025 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2028 2011-07-28 Torvald Riegel <triegel@redhat.com>
2030 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2031 transaction properties from the caller instead of from the
2034 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2036 2011-07-28 Torvald Riegel <triegel@redhat.com>
2038 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2039 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2041 * method-serial.cc: Same.
2042 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2043 flat nesting as default, and closed nesting on demand.
2044 (GTM::gtm_transaction::rollback): Same.
2045 (_ITM_abortTransaction): Same.
2046 (GTM::gtm_transaction::restart): Same.
2047 (GTM::gtm_transaction::trycommit): Same.
2048 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2049 (choose_code_path): New.
2050 (GTM::gtm_transaction_cp::save): New.
2051 (GTM::gtm_transaction_cp::commit): New.
2052 * query.cc (_ITM_inTransaction): Support flat nesting.
2053 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2054 (GTM::gtm_transaction): Support flat and closed nesting.
2055 * alloc.cc (commit_allocations_2): New.
2056 (commit_cb_data): New helper struct.
2057 (GTM::gtm_transaction::commit_allocations): Handle nested
2059 * libitm.texi: Update user action section, add description of nesting.
2061 2011-07-28 Torvald Riegel <triegel@redhat.com>
2063 * libitm_i.h: Add closed nesting as restart reason.
2064 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2066 2011-07-28 Torvald Riegel <triegel@redhat.com>
2068 * useraction.cc: Use vector instead of list to store actions.
2069 Also support partial rollbacks for closed nesting.
2070 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2071 * beginend.cc: Same.
2073 2011-07-28 Torvald Riegel <triegel@redhat.com>
2075 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2076 closed_nesting flags, as well as a closed nesting alternative.
2077 * method-serial.cc: Same.
2078 (serial_dispatch): Renamed to serialirr_dispatch.
2079 (GTM::dispatch_serialirr): Same.
2080 (serial_dispatch_ul): Renamed to serial_dispatch.
2081 (GTM::dispatch_serial): Same.
2083 2011-07-28 Torvald Riegel <triegel@redhat.com>
2085 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2087 2011-07-28 Torvald Riegel <triegel@redhat.com>
2089 * aatree.h (aa_tree::remove): New.
2090 (aa_tree::operator new): Add placement new.
2092 2011-07-02 Torvald Riegel <triegel@redhat.com>
2094 * containers.h: New file.
2095 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2096 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2097 * common.h: ... to here.
2098 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2101 2011-06-30 Torvald Riegel <triegel@redhat.com>
2103 * libitm_i.h (STATE_ABORTING): Remove.
2104 * beginend.cc (_ITM_abortTransaction): Same.
2105 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2106 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2107 (_ITM_rollbackTransaction): Remove.
2108 * beginend.cc: Same.
2110 * libitm.texi: Document these ABI changes.
2112 2011-06-30 Torvald Riegel <triegel@redhat.com>
2114 * libitm.texi: New file.
2115 * Makefile.am: Add libitm.texi.
2116 * Makefile.in: Rebuild.
2118 2011-06-30 Torvald Riegel <triegel@redhat.com>
2120 * libitm_i.h: Move parts to common.h and dispatch.h.
2121 * common.h: New file.
2122 * dispatch.h: New file, new dispatch class.
2123 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2124 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2125 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2126 decision to retry.cc.
2127 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2129 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2130 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2132 * barrier.cc: Use new barriers definitions.
2133 (abi_dispatch::memmove_overlap_check): New.
2134 * config/x86/x86_sse.cc: Same.
2135 * config/x86/x86_avx.cc: Same.
2136 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2138 * Makefile.in: Rebuild.
2139 * method-readonly.cc: Remove.
2140 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2141 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2143 2011-06-30 Torvald Riegel <triegel@redhat.com>
2145 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2146 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2147 * testsuite/libitm.c/dropref-2.c: Same.
2148 * testsuite/libitm.c/dropref.c: Same.
2150 2011-06-30 Torvald Riegel <triegel@redhat.com>
2152 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2153 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2154 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2156 * barrier.tpl: Same.
2158 * config/generic/tls.h: Same.
2159 * config/x86/tls.h: Same.
2163 * method-readonly.cc: Same.
2164 * method-serial.cc: Same.
2165 * method-wbetl.cc: Same.
2168 2011-03-03 Richard Henderson <rth@redhat.com>
2170 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2171 From Patrik Marlier <patrick.marlier@unine.ch>.
2173 2011-02-03 Richard Henderson <rth@redhat.com>
2175 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2176 * configure.ac: Use it.
2177 * configure, config.h.in: Rebuild.
2178 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2179 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2180 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2181 * libitm.map: Use wildcards to match size_t mangling.
2183 2010-12-14 Richard Henderson <rth@redhat.com>
2185 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2186 blocks of TIDs per thread.
2187 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2188 (setup_gtm_thr): Return the thread structure.
2189 * config/x86/tls.h (setup_gtm_thr): Likewise.
2191 2010-12-14 Richard Henderson <rth@redhat.com>
2193 * clone.cc (table_lock): Remove.
2194 (find_clone): Don't take it.
2195 (ExcludeTransaction): New helper class.
2196 (_ITM_registerTMCloneTable): Use it.
2197 (_ITM_deregisterTMCloneTable): Likewise.
2199 2010-12-14 Richard Henderson <rth@redhat.com>
2201 * config/x86/tls.h: New file.
2203 2010-07-15 Richard Henderson <rth@redhat.com>
2205 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2206 * Makefile.in: Rebuild.
2208 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2210 * method-wbetl.cc (trydropreference): Fix source line.
2212 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2214 * libitm.h: Add comment.
2215 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2217 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
2219 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2220 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2221 available, use pthread mutexes.
2222 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2223 * config.h.in: Regenerate.
2224 * configure: Regenerate.
2226 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
2228 * libitm.h (ITM_PURE): Define.
2229 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2231 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2233 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2234 (validate): Add comment.
2235 (trydropreference): New.
2236 * method-readonly.cc (class readonly_dispatch): Add
2238 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2239 Call trydropreference().
2240 * libitm.h (_ITM_dropReferences): Remove const attribute.
2241 * method-serial.cc (class serial_dispatch): Add trydropreference.
2242 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2244 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2246 * memcpy.cc (do_memcpy): Comment.
2248 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
2250 * barrier.tpl: Add comments throughout.
2252 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2254 * method-wbetl.cc (struct w_entry): Add comments.
2258 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2260 * alloc_c.cc (_ITM_dropReferences): New.
2261 * libitm.map (_ITM_dropReferences): Add.
2262 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2263 * libitm_i.h (struct gtm_transaction): Declare
2264 drop_references_allocations and drop_references_local.
2265 * local.cc (rollback_local): Ignore memory when applicable.
2266 (drop_references_local): New.
2268 2010-06-23 Richard Henderson <rth@redhat.com>
2270 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2271 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2272 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2273 * config/alpha/target.h: Likewise.
2274 * config/generic/tls.cc (gtm_mask_stack): Use it.
2276 2010-06-23 Richard Henderson <rth@redhat.com>
2278 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2279 a mutex instead of trying a lock-free compare-and-swap on the list.
2280 (gtm_cacheline_page::operator delete): Likewise.
2282 2010-06-16 Richard Henderson <rth@redhat.com>
2284 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2285 that overlap the libitm stack.
2286 * barrier.tpl: Mark incoming stack.
2287 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2288 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2289 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2290 * memcpy.cc, memset.cc: Likewise.
2291 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2292 * config/generic/tls.h (gtm_thread): Add stack_top member.
2293 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2294 * libitm_i.h (gtm_mask_stack): Declare.
2295 * config/generic/tls.cc: New file.
2296 * Makefile.am (libitm_la_SOURCES): Add it.
2297 (AM_CXXFLAGS): Turn off exceptions.
2298 * Makefile.in: Rebuild.
2300 2010-06-16 Richard Henderson <rth@redhat.com>
2302 * alloc.cc (struct gtm_alloc_action): Move definition ...
2303 * libitm_i.h: ... here.
2304 (class gtm_transaction): Declare new and delete.
2305 * beginend.cc (alloc_tx): Reformulate as operator new.
2306 (free_tx): Reformulate as operator delete.
2307 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2309 2010-06-11 Richard Henderson <rth@redhat.com>
2311 * clone.cc (clone_entry_compare): Fix typo.
2312 From Patrik Marlier <patrick.marlier@unine.ch>.
2314 2010-05-13 Richard Henderson <rth@redhat.com>
2316 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2319 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2321 * libitm_i.h (struct gtm_transaction): Remove
2322 get_allocation_size.
2323 (record_allocation): Remove size parameter.
2324 * libitm.map (_ITM_realloc): Remove.
2325 * alloc_c.cc (_ITM_realloc): Remove.
2326 (_ITM_malloc): Remove size argument to record_allocation.
2327 (_ITM_calloc): Same.
2328 * alloc_cpp.cc (_ZGTtnwm): Same.
2329 (_ZGTtnwmRKSt9nothrow_t): Same.
2331 (_ZGTtnamRKSt9nothrow_t): Same.
2332 * alloc.cc (struct gtm_alloc_action): Remove size.
2333 (get_allocation_size): Remove.
2334 (commit_allocations): Add comment.
2335 (record_allocation): Remove size parameter.
2336 (forget_allocation): Remove set of size.
2338 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2340 * Makefile.am (abi_version): New.
2341 (AM_CXXFLAGS): Pass abi_version.
2342 * Makefile.in: Regenerate.
2343 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2345 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2347 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2348 _ITM_getTMCloneOrIrrevokable.
2349 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2350 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2352 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2354 * configure.ac: Remove Linux futex support.
2355 * configure.tgt (config_path): Same.
2356 * Makefile.am: Same.
2357 * config/linux: Remove entire directory.
2358 * configure: Rebuild.
2359 * Makefile.in: Rebuild.
2360 * testsuite/Makefile.in: Rebuild.
2362 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2364 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2365 switching to serial mode.
2366 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2368 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2370 * configure.tgt: Add emacs -*- tags.
2371 * barrier.tpl: Same.
2373 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2375 * Makefile.am: Rename serial.cc to method-serial.cc.
2376 * Makefile.in: Regenerate with automake 1.11.1.
2377 * testsuite/Makefile.in: Same.
2378 * aclocal.m4: Regenerate with aclocal 1.11.1.
2379 * method-serial.cc: Rename from serial.cc.
2380 * libitm_i.h (struct gtm_transaction): Update comment on
2383 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2385 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2386 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2388 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2390 * configure: Rebuild.
2392 2009-11-12 Richard Henderson <rth@redhat.com>
2394 * Rewrite everything in C++.
2396 2009-11-03 Richard Henderson <rth@redhat.com>
2398 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2399 * Makefile.am (libitm_la_SOURCES): Add them.
2400 * configure.ac (ARCH_X86): New conditional.
2401 * Makefile.in, configure: Rebuild.
2402 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2403 Move futex setup into "other system configury" case.
2404 * local.c (rollback_local): Merge into ...
2405 (GTM_rollback_local): ... here.
2406 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2407 (_ITM_LB): Define as an alias to GTM_LB.
2409 2009-11-03 Richard Henderson <rth@redhat.com>
2411 * method-readonly.c: New file.
2412 * Makefile.am (libitm_la_SOURCES): Add it.
2413 * Makefile.in: Rebuild.
2414 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2415 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2416 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2417 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2418 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2419 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2420 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2421 gtm_get_clock, gtm_inc_clock): New.
2422 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2423 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2424 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2425 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2426 replace uses with new libitm_i.h symbols.
2427 (dispatch_wbetl): Rename from wbetl_dispatch.
2428 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2429 away from dispatch_readonly; abort if the beginTransaction call
2430 asserted that the transaction was readonly.
2432 2009-11-03 Richard Henderson <rth@redhat.com>
2434 * memset.c: New file.
2435 * Makefile.am (libitm_la_SOURCES): Add it.
2436 * Makefile.in: Rebuild.
2437 * testsuite/libitm.c/memset-1.c: New.
2439 2009-11-03 Richard Henderson <rth@redhat.com>
2441 * dispatch.c: Remove file.
2442 * useraction.c (struct gtm_user_action): Move from libitm.h.
2443 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2444 (serial_memset, serial_memmove, serial_memcpy): Remove.
2445 (serial_W*, serial_R*): Remove.
2446 (serial_dispatch): Update to match.
2447 * configure.ac: Move Werror down below configure checks. Don't
2448 check for sys/loadavg.h, do check for malloc.h. Don't check for
2449 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2450 Use GCC_AC_FUNC_MMAP_BLACKLIST
2451 * libitm.h: Split out all internal items to...
2452 * libitm_i.h: ... here. New file.
2453 * copymask.c: New file.
2454 * local.c (struct gtm_local_undo): Move from libitm.h.
2455 (GTM_alloc_local): Rename from alloc_local; export.
2456 * memcpy.c: New file.
2457 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2458 * config/posix/page.c: New file.
2459 * config/posix/target_tls.h: Remove file.
2460 * barrier.c: New file.
2461 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2463 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2464 * method-wbetl.c: Rewrite for new cacheline methods.
2465 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2467 * config/alpha/sjlj.S: Fix typo.
2468 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2469 * config/alpha/copymask.c: New file.
2470 * config/alpha/target.h (CACHELINE_SIZE): New.
2471 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2473 * config/x86/target_i.h: Copy functions from x86/target.h.
2474 * config/x86/copymask.c: New file.
2475 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2476 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2477 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2478 * config/x86/target_tls.h: Move contents to target_i.h.
2480 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2481 * testsuite/libitm.c/memcpy-1.c: New.
2483 2009-10-22 Richard Henderson <rth@redhat.com>
2485 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2486 (AM_CCASFLAGS): New.
2487 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2488 saving/restoring _AC_ARG_VAR_PRECIOUS.
2489 * Makefile.in, aclocal.m4, config.h.in, configure,
2490 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2492 2009-10-22 Richard Henderson <rth@redhat.com>
2494 * testsuite/*: Update for new compiler syntax.
2496 2009-10-21 Richard Henderson <rth@redhat.com>
2498 * libitm.h (_ITM_abortReason): Add outerAbort.
2500 2009-08-03 Richard Henderson <rth@redhat.com>
2502 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2503 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2504 * method-wbetl.c (struct w_entry): Remove mask.
2505 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2508 2009-07-22 Richard Henderson <rth@redhat.com>
2510 * eh_cpp.c: New file.
2511 * Makefile.am (libitm_la_SOURCES): Add it.
2512 * Makefile.in: Rebuild.
2513 * beginend.c (GTM_rollback_transaction): Undo exception state.
2514 (GTM_trycommit_transaction): Mark inline.
2515 (GTM_trycommit_and_finalize_transaction): Split out from ...
2516 (_ITM_commitTransaction): ... here.
2517 (_ITM_commitTransactionEH): New function.
2518 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2519 cxa_unthrown, eh_in_flight; reorder.
2521 * testsuite/libitm.c++/c++.exp: New.
2522 * testsuite/libitm.c++/eh-1.C: New.
2524 * aatree.c (aa_free): Remove REGPARM.
2525 * aatree.h: Remove all REGPARM.
2527 2009-07-18 Richard Henderson <rth@redhat.com>
2529 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2530 * Makefile.am (libitm_la_SOURCES): Add them.
2531 * Makefile.in: Rebuild.
2532 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2533 (GTM_trycommit_transaction): Likewise.
2534 * libitm.h: Include aatree.h
2535 (struct gtm_alloc_action): New.
2536 (struct gtm_transaction): Add alloc_actions.
2537 (GTM_record_allocation, GTM_forget_allocation): Declare.
2538 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2539 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2540 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2541 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2542 _ZGTtdaPvRKSt9nothrow_t): Export.
2544 2009-07-18 Richard Henderson <rth@redhat.com>
2546 * target_tls.h: Move ...
2547 * config/posix/target_tls.h: ... here.
2549 2009-07-07 Richard Henderson <rth@redhat.com>
2551 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2553 2009-07-07 Richard Henderson <rth@redhat.com>
2557 2009-07-07 Richard Henderson <rth@redhat.com>
2559 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2560 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2562 * configure.tgt: Don't use -ftls-model for x86 linux.
2563 * libitm.h: Include target.h after standard includes.
2564 (_gtm_thr): Rename from gtm_thr.
2565 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2566 (gtm_disp, set_gtm_disp): New.
2567 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2568 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2569 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2571 2009-07-07 Richard Henderson <rth@redhat.com>
2573 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2575 2009-07-06 Richard Henderson <rth@redhat.com>
2577 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2578 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2579 (_ITM_beginTransaction): Take variadic arguments.
2580 (_ITM_registerThrownObject): Declare.
2581 * beginend.c, serial.c: Update.
2582 * libitm.map: Add _ITM_registerThrownObject.
2584 2009-01-28 Richard Henderson <rth@redhat.com>
2586 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2587 * Makefile.in: Rebuild.
2588 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2589 (GTM_restart_transaction): Fix uninstrumented code check.
2590 * retry.c (GTM_decide_retry_strategy): Add serial check.
2591 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2592 automatically go irrevokable when in serial mode.
2593 * clone.c: New file.
2594 * libitm.h, libitm.map: Update.
2596 2009-01-27 Richard Henderson <rth@redhat.com>
2598 * Makefile.am (LTCCASCOMPILE): Define.
2599 (libitm_la_SOURCES): Add methid-wbetl.c.
2600 * testsuite/Makefile.am: New
2601 * configure.ac: Add testsuite/Makefile.
2602 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2603 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2604 (_ITM_abortTransaction): Finalize implementation method; pass
2605 transaction properties to longjmp.
2606 (GTM_restart_transaction): Split out from ...
2607 (_ITM_commitTransaction): ... here.
2608 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2609 Move to config/x86/target.h.
2610 * config/linux/alpha/futex_bits.h: New.
2611 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2612 * config/x86/target.h: Disable target types for 32-bit.
2613 * config/alpha/sjlj.S, config/alpha/target.h: New.
2614 * libitm.h (struct gtm_dispatch): Add init, fini.
2615 (enum restart_reason): New.
2616 (struct gtm_transaction): Add method and restarts.
2617 * retry.c (GTM_decide_retry_strategy): Implement.
2618 * serial.c (serial_init, serial_fini): New.
2619 (GTM_serialmode): Finialize outgoing method.
2620 * method-wbetl.c: New.
2622 2008-12-09 Richard Henderson <rth@redhat.com>
2624 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2625 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2626 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2627 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2628 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2629 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2630 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2631 * serial.c (serial_R##T, serial_W##T): Likewise.
2633 2008-11-21 Richard Henderson <rth@redhat.com>
2637 Copyright (C) 2008-2024 Free Software Foundation, Inc.
2639 Copying and distribution of this file, with or without modification,
2640 are permitted in any medium without royalty provided the copyright
2641 notice and this notice are preserved.