1 2024-05-21 Release Manager
5 2023-07-27 Release Manager
9 2023-04-26 Release Manager
11 * GCC 13.1.0 released.
13 2023-01-02 Jakub Jelinek <jakub@redhat.com>
15 * libitm.texi: Bump @copying's copyright year.
17 2022-11-14 Martin Liska <mliska@suse.cz>
20 2022-11-14 Martin Liska <mliska@suse.cz>
22 * doc/c-c++-language-constructs-for-tm.rst: New file.
23 * doc/conf.py: New file.
24 * doc/copyright.rst: New file.
25 * doc/enabling-libitm.rst: New file.
26 * doc/gnu-free-documentation-license.rst: New file.
27 * doc/index.rst: New file.
28 * doc/indices-and-tables.rst: New file.
29 * doc/internals.rst: New file.
30 * doc/locking-conventions.rst: New file.
31 * doc/nesting-flat-vs-closed.rst: New file.
32 * doc/the-libitm-abi.rst: New file.
33 * doc/the-libitm-abi/function-list.rst: New file.
34 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
35 * doc/the-libitm-abi/library-design-principles.rst: New file.
36 * doc/the-libitm-abi/memory-model.rst: New file.
37 * doc/the-libitm-abi/non-objectives.rst: New file.
38 * doc/the-libitm-abi/objectives.rst: New file.
39 * doc/the-libitm-abi/sample-code.rst: New file.
40 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
41 * doc/tm-methods-and-method-groups.rst: New file.
43 2022-11-14 Martin Liska <mliska@suse.cz>
46 2022-11-14 Martin Liska <mliska@suse.cz>
48 * Makefile.in: Support Sphinx based documentation.
50 2022-11-14 Martin Liska <mliska@suse.cz>
53 2022-11-14 Martin Liska <mliska@suse.cz>
55 * libitm.texi: Removed.
57 2022-11-14 Martin Liska <mliska@suse.cz>
60 2022-11-14 Martin Liska <mliska@suse.cz>
62 * Makefile.in: Support --with-sphinx-build.
63 * configure.ac: Likewise.
64 * configure: Regenerate.
66 2022-11-14 Martin Liska <mliska@suse.cz>
69 2022-11-14 Martin Liska <mliska@suse.cz>
71 * Makefile.in: Build info pages conditionally.
73 2022-11-14 Martin Liska <mliska@suse.cz>
76 2022-11-14 Martin Liska <mliska@suse.cz>
78 * doc/c-c++-language-constructs-for-tm.rst:
82 * doc/enabling-libitm.rst:
84 * doc/gnu-free-documentation-license.rst:
88 * doc/indices-and-tables.rst:
92 * doc/locking-conventions.rst:
94 * doc/nesting-flat-vs-closed.rst:
96 * doc/the-libitm-abi.rst:
98 * doc/the-libitm-abi/function-list.rst:
100 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
101 Add trailing newline.
102 * doc/the-libitm-abi/library-design-principles.rst:
103 Add trailing newline.
104 * doc/the-libitm-abi/memory-model.rst:
105 Add trailing newline.
106 * doc/the-libitm-abi/non-objectives.rst:
107 Add trailing newline.
108 * doc/the-libitm-abi/objectives.rst:
109 Add trailing newline.
110 * doc/the-libitm-abi/sample-code.rst:
111 Add trailing newline.
112 * doc/the-libitm-abi/types-and-macros-list.rst:
113 Add trailing newline.
114 * doc/tm-methods-and-method-groups.rst:
115 Add trailing newline.
117 2022-11-14 Martin Liska <mliska@suse.cz>
120 2022-11-14 Martin Liska <mliska@suse.cz>
122 * Makefile.in: Add missing HAS_SPHINX_BUILD.
124 2022-11-14 Martin Liska <mliska@suse.cz>
127 2022-11-14 Martin Liska <mliska@suse.cz>
129 * doc/conf.py: Add newline at last line.
131 2022-11-14 Martin Liska <mliska@suse.cz>
134 2022-11-14 Martin Liska <mliska@suse.cz>
137 * configure: Regenerate.
138 * configure.ac: Always set sphinx-build.
140 2022-11-13 Martin Liska <mliska@suse.cz>
143 * configure: Regenerate.
144 * configure.ac: Always set sphinx-build.
146 2022-11-10 Martin Liska <mliska@suse.cz>
148 * doc/conf.py: Add newline at last line.
150 2022-11-09 Martin Liska <mliska@suse.cz>
152 * Makefile.in: Add missing HAS_SPHINX_BUILD.
154 2022-11-09 Martin Liska <mliska@suse.cz>
156 * doc/c-c++-language-constructs-for-tm.rst:
157 Add trailing newline.
159 Add trailing newline.
160 * doc/enabling-libitm.rst:
161 Add trailing newline.
162 * doc/gnu-free-documentation-license.rst:
163 Add trailing newline.
165 Add trailing newline.
166 * doc/indices-and-tables.rst:
167 Add trailing newline.
169 Add trailing newline.
170 * doc/locking-conventions.rst:
171 Add trailing newline.
172 * doc/nesting-flat-vs-closed.rst:
173 Add trailing newline.
174 * doc/the-libitm-abi.rst:
175 Add trailing newline.
176 * doc/the-libitm-abi/function-list.rst:
177 Add trailing newline.
178 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
179 Add trailing newline.
180 * doc/the-libitm-abi/library-design-principles.rst:
181 Add trailing newline.
182 * doc/the-libitm-abi/memory-model.rst:
183 Add trailing newline.
184 * doc/the-libitm-abi/non-objectives.rst:
185 Add trailing newline.
186 * doc/the-libitm-abi/objectives.rst:
187 Add trailing newline.
188 * doc/the-libitm-abi/sample-code.rst:
189 Add trailing newline.
190 * doc/the-libitm-abi/types-and-macros-list.rst:
191 Add trailing newline.
192 * doc/tm-methods-and-method-groups.rst:
193 Add trailing newline.
195 2022-11-09 Martin Liska <mliska@suse.cz>
197 * Makefile.in: Build info pages conditionally.
199 2022-11-09 Martin Liska <mliska@suse.cz>
201 * Makefile.in: Support --with-sphinx-build.
202 * configure.ac: Likewise.
203 * configure: Regenerate.
205 2022-11-09 Martin Liska <mliska@suse.cz>
207 * libitm.texi: Removed.
209 2022-11-09 Martin Liska <mliska@suse.cz>
211 * Makefile.in: Support Sphinx based documentation.
213 2022-11-09 Martin Liska <mliska@suse.cz>
215 * doc/c-c++-language-constructs-for-tm.rst: New file.
216 * doc/conf.py: New file.
217 * doc/copyright.rst: New file.
218 * doc/enabling-libitm.rst: New file.
219 * doc/gnu-free-documentation-license.rst: New file.
220 * doc/index.rst: New file.
221 * doc/indices-and-tables.rst: New file.
222 * doc/internals.rst: New file.
223 * doc/locking-conventions.rst: New file.
224 * doc/nesting-flat-vs-closed.rst: New file.
225 * doc/the-libitm-abi.rst: New file.
226 * doc/the-libitm-abi/function-list.rst: New file.
227 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
228 * doc/the-libitm-abi/library-design-principles.rst: New file.
229 * doc/the-libitm-abi/memory-model.rst: New file.
230 * doc/the-libitm-abi/non-objectives.rst: New file.
231 * doc/the-libitm-abi/objectives.rst: New file.
232 * doc/the-libitm-abi/sample-code.rst: New file.
233 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
234 * doc/tm-methods-and-method-groups.rst: New file.
236 2022-10-31 Xiongchuan Tan <xc-tan@outlook.com>
238 * configure.tgt: Add riscv support.
239 * config/riscv/asm.h: New file.
240 * config/riscv/sjlj.S: New file.
241 * config/riscv/target.h: New file.
243 2022-10-13 Lulu Cheng <chenglulu@loongson.cn>
245 * config/loongarch/sjlj.S: Add a soft floating point condition to the
246 register recovery part of the code.
248 2022-10-12 Martin Liska <mliska@suse.cz>
250 * configure: Regenerate.
252 2022-10-11 Olivier Hainque <hainque@adacore.com>
253 Olivier Hainque <hainque@adacore.com>
255 * configure: Regenerate.
257 2022-09-28 Lulu Cheng <chenglulu@loongson.cn>
258 Yang Yujie <yangyujie@loongson.cn>
260 * configure.tgt: Add loongarch support.
261 * config/loongarch/asm.h: New file.
262 * config/loongarch/sjlj.S: New file.
263 * config/loongarch/target.h: New file.
265 2022-08-31 Martin Liska <mliska@suse.cz>
267 * configure: Regenerate.
269 2022-08-31 Martin Liska <mliska@suse.cz>
271 * configure: Regenerate.
273 2022-06-02 David Malcolm <dmalcolm@redhat.com>
275 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
277 2022-02-03 David Seifert <soap@gentoo.org>
278 Jakub Jelinek <jakub@redhat.com>
280 * configure.ac: Support --disable-werror.
281 * configure: Regenerate.
283 2022-01-31 Martin Liska <mliska@suse.cz>
285 * acinclude.m4: Detect *_ld_is_mold and use it.
286 * configure: Regenerate.
288 2022-01-03 Jakub Jelinek <jakub@redhat.com>
290 * libitm.texi: Bump @copying's copyright year.
292 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
294 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
295 target does not support HAVE_ELF_STYLE_WEAKREF then do not
296 try to test the __cxa_get_globals against NULL.
298 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
301 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
303 2021-01-15 Jakub Jelinek <jakub@redhat.com>
306 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
307 be added through preprocessor check on
308 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
310 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
312 * configure: Re-generate.
314 2021-01-01 Jakub Jelinek <jakub@redhat.com>
316 * libitm.texi: Bump @copying's copyright year.
318 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
321 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
322 * configure: Regenerate.
324 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
326 * configure: Regenerate.
328 2020-10-01 Alan Modra <amodra@gmail.com>
330 * config/powerpc/sjlj.S: Support __PCREL__ code.
332 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
334 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
336 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
338 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
339 and add BTI c to function entries.
341 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
343 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
345 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
348 * configure: Regenerated.
350 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
353 * configure: Regenerated.
355 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
357 * configure: Regenerated.
359 2020-05-12 Nathan Sidwell <nathan@acm.org>
361 Fix throw specifiers on interface.
362 * libitm/libitm.h (_ITM_NOTHROW): Define.
363 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
364 (_ITM_cxa_begin_catch): Use it.
365 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
366 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
368 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
369 (_ITM_cxa_begin_catch): Likewise.
371 2020-05-05 Nathan Sidwell <nathan@acm.org>
373 * testsuite/lib/libitm.exp (libitm_init): Add
374 -fdiagnostics-color=never to options.
376 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
381 * configure: Regenerated.
383 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
385 * configure.ac: Handle `--with-toolexeclibdir='.
386 * Makefile.in: Regenerate.
387 * aclocal.m4: Regenerate.
388 * configure: Regenerate.
389 * testsuite/Makefile.in: Regenerate.
391 2020-01-01 Jakub Jelinek <jakub@redhat.com>
393 Update copyright years.
395 * libitm.texi: Bump @copying's copyright year.
397 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
400 * configure.tgt: Avoid IE tls on *-*-musl*.
402 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
404 * configure: Regenerate.
406 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
408 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
410 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
412 * configure.tgt: Handle *-*-uclinux*.
413 * configure: Regenerate.
415 2019-09-06 Florian Weimer <fweimer@redhat.com>
417 * configure: Regenerate.
419 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
422 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
423 scanning to conform to the GNU Coding Standards.
424 * configure: Regenerate.
426 2019-05-03 Jakub Jelinek <jakub@redhat.com>
428 * Makefile.am (finclude): Remove.
429 * Makefile.in: Regenerated.
431 2019-01-01 Jakub Jelinek <jakub@redhat.com>
433 Update copyright years.
435 2019-01-01 Jakub Jelinek <jakub@redhat.com>
437 * libitm.texi: Bump @copying's copyright year.
439 2018-12-16 Jakub Jelinek <jakub@redhat.com>
442 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
443 void * to void (*) (void *).
444 (_ITM_cxa_throw): Likewise.
445 * libitm.h (_ITM_cxa_throw): Likewise.
446 * libitm.texi (_ITM_cxa_throw): Likewise.
448 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
450 * config/powerpc/target.h (htm_available): Add support for
451 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
453 2018-10-31 Joseph Myers <joseph@codesourcery.com>
456 * Makefile.am: Include multilib.am.
457 (AUTOMAKE_OPTIONS): Add info-in-builddir.
458 (CLEANFILES): Remove libitm.info.
459 * configure.ac: Remove AC_PREREQ.
460 * testsuite/Makefile.am (RUNTEST): Remove quotes.
461 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
464 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
467 * method-serial.cc: Mark varible as potentially unused
470 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
472 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
473 absolute relocation in a shared library.
475 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
478 * config/linux/x86/tls.h (SEG_READ): Use the offset of
479 __private_tm as base.
480 (SEG_WRITE): Likewise.
481 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
482 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
483 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
484 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
485 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
487 2018-05-17 Jason Merrill <jason@redhat.com>
489 * beginend.cc (save): Disable -Werror=deprecated-copy.
491 2018-05-02 Tom de Vries <tom@codesourcery.com>
494 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
496 2018-05-02 Tom de Vries <tom@codesourcery.com>
499 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
501 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
503 * config/x86/sjlj.S (_ITM_beginTransaction): Add
504 (__CET__ & 2) != 0 check for shadow stack.
505 (GTM_longjmp): Likewise.
507 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
509 * configure: Regenerated.
511 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
514 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
516 2018-04-19 Jakub Jelinek <jakub@redhat.com>
518 * configure: Regenerated.
520 2018-04-18 David Malcolm <dmalcolm@redhat.com>
523 * configure: Regenerate.
525 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
528 * configure: Regenerate.
530 2018-01-03 Jakub Jelinek <jakub@redhat.com>
532 Update copyright years.
534 * libitm.texi: Bump @copying's copyright year.
536 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
538 * Makefile.in: Regenerate.
539 * acinclude.m4: Add enable.m4 and cet.m4.
540 * config/x86/sjlj.S: Include cet.h.
541 (_ITM_beginTransaction): Add _CET_ENDBR.
542 Save Shadow Stack pointer.
543 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
544 * config/x86/target.h (struct gtm_jmpbuf):
545 Add new field for Shadow Stack pointer.
546 * configure: Regenerate.
547 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
548 * configure.ac: Update libtool_VERSION for x86.
549 * testsuite/Makefile.in: Regenerate.
551 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
553 * libitm/config/x86/target.h: Add new field (ssp).
554 * libitm/config/x86/sjlj.S: Change offsets.
556 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558 * testsuite/lib/libitm.exp: Load scanlang.exp.
560 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
562 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
564 2017-01-21 Jakub Jelinek <jakub@redhat.com>
567 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
568 of cat to get version from BASE-VER file.
569 * testsuite/Makefile.in: Regenerated.
571 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
573 * config/x86/target.h (htm_available): Determine vendor from
574 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
576 2017-01-18 Torvald Riegel <triegel@redhat.com>
578 * config/x86/target.h (htm_available): Add check for some processors
579 on which TSX is broken.
581 2017-01-17 Jakub Jelinek <jakub@redhat.com>
584 * configure.ac: Add GCC_BASE_VER.
585 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
586 get version from BASE-VER file.
587 * testsuite/Makefile.in: Regenerated.
588 * configure: Regenerated.
589 * Makefile.in: Regenerated.
591 2017-01-04 Alan Modra <amodra@gmail.com>
593 * Makefile.in: Regenerate.
594 * testsuite/Makefile.in: Regenerate.
596 2017-01-01 Jakub Jelinek <jakub@redhat.com>
598 Update copyright years.
600 * libitm.texi: Bump @copying's copyright year.
602 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
604 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
605 * aclocal.m4: Regenerate.
606 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
607 LIBITM_CHECK_LINKER_HWCAP.
609 2016-11-15 Matthias Klose <doko@ubuntu.com>
611 * configure: Regenerate.
613 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
616 * util.cc (xmalloc): Use posix_memalign to allocate memory on
617 on cache line if requested.
619 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
621 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
622 function attribute to disable floating point in begin_transaction() on
624 * beginend.cc (begin_transaction): Use
625 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
627 2016-01-22 Torvald Riegel <triegel@redhat.com>
629 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
631 (htm_fastpath): Remove.
632 (gtm_thread::begin_transaction): Fix HTM fastpath.
633 (_ITM_commitTransaction): Adapt.
634 (_ITM_commitTransactionEH): Adapt.
635 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
637 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
638 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
639 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
640 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
641 * libitm/method-serial.cc (htm_mg): Adapt.
642 (gtm_thread::serialirr_mode): Adapt.
643 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
645 2016-01-21 Torvald Riegel <triegel@redhat.com>
647 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
650 2016-01-19 Richard Henderson <rth@redhat.com>
655 2016-01-13 Richard Henderson <rth@redhat.com>
657 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
658 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
659 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
660 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
661 * configure.ac (ARCH_AARCH64): New conditional.
662 (ARCH_PPC, ARCH_S390): Likewise.
663 * Makefile.in, configure: Rebuild.
665 * libitm.h (_ITM_TYPE_M128): Always define.
666 * vect64.cc: Split ...
667 * vect128.cc: ... out of...
668 * config/x86/x86_sse.cc: ... here.
669 * config/arm/neon.cc: New file.
671 2016-01-19 Torvald Riegel <triegel@redhat.com>
673 * local_type_traits: Remove file.
674 * libitm_i.h: Don't include it anymore.
675 (sized_integral): Remove.
677 2016-01-16 Torvald Riegel <triegel@redhat.com>
679 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
681 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
682 * libitm/testsuite/libitm.c/priv-1.c: New.
684 2015-01-15 Torvald Riegel <triegel@redhat.com>
686 testsuite/libitm.c++/libstdc++-safeexc.C: New.
688 2016-01-13 Torvald Riegel <triegel@redhat.com>
690 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
691 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
692 (gtm_rwlock::write_unlock): Likewise.
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-13 Torvald Riegel <triegel@redhat.com>
712 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
713 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
714 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
715 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
716 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
717 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
718 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
719 (serialirr_dispatch::snapshot_most_recent): New.
720 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
722 2016-01-12 Torvald Riegel <triegel@redhat.com>
724 * libitm_i.h (gtm_mask_stack): Remove.
725 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
726 * stmlock.h: Remove file.
727 * config/alpha/cacheline.h: Likewise.
728 * config/generic/cacheline.h: Likewise.
729 * config/powerpc/cacheline.h: Likewise.
730 * config/sparc/cacheline.h: Likewise.
731 * config/x86/cacheline.h: Likewise.
733 2016-01-04 Jakub Jelinek <jakub@redhat.com>
735 Update copyright years.
737 * libitm.texi: Bump @copying's copyright year.
739 2015-11-26 Torvald Riegel <triegel@redhat.com>
741 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
742 (ml_wt_dispatch::pre_write): Adapt.
743 (ml_wt_dispatch::pre_load): Likewise.
745 2015-11-22 Torvald Riegel <triegel@redhat.com>
747 * libitm_i.h (gtm_alloc_action): Remove union.
748 * testsuite/libitm.c/alloc-1.c: New.
750 2015-11-19 Torvald Riegel <triegel@redhat.com>
752 * testsuite/libitm.c++/eh-5.C: New.
753 * libitm.h (_ITM_cxa_free_exception): New.
754 * libitm.map (_ITM_cxa_free_exception): Add it.
755 * libitm.texi: Update ABI docs.
756 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
757 (gtm_transaction_cp::cxa_uncaught_count): Add.
758 (gtm_thread::cxa_unthrown): Remove.
759 (gtm_thread::cxa_uncaught_count_ptr): Add.
760 (gtm_thread::cxa_uncaught_count): Add.
761 (gtm_thread::drop_references_allocations): Rename to...
762 (gtm_thread::discard_allocation): ... this and adapt.
763 (gtm_thread::init_cpp_exceptions): New.
764 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
765 (gtm_thread::begin_transaction): Likewise.
766 (gtm_transaction_cp::save): Likewise.
767 (gtm_thread::trycommit): Likewise.
768 * eh_cpp.cc: Add overview comments.
769 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
770 (free_any_exception, _ITM_cxa_free_exception): New.
771 (gtm_thread::init_cpp_exceptions): Define.
772 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
773 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
774 (gtm_thread::revert_cpp_exceptions): Likewise.
776 2015-11-09 Torvald Riegel <triegel@redhat.com>
778 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
779 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
780 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
781 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
782 (gtm_thread::forget_allocations): New overload with size_t argument.
783 * alloc.c (gtm_thread::forget_allocation): Define new overload and
785 (gtm_thread::record_allocation): Adapt.
786 (gtm_thread::commit_allocations_1): Adapt.
787 (gtm_thread::commit_allocations_2): Adapt.
788 * testsuite/libitm.c++/newdelete.C: New.
790 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
791 Joseph Myers <joseph@codesourcery.com>
792 Mark Shinwell <shinwell@codesourcery.com>
793 Andrew Stubbs <ams@codesourcery.com>
794 Rich Felker <dalias@libc.org>
796 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
797 GTM_begin_transaction for compatibility with FDPIC.
799 2015-10-09 David Malcolm <dmalcolm@redhat.com>
801 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
804 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
807 * local_atomic (__always_inline): Rename to...
808 (__libitm_always_inline): ... this.
810 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
813 * config/powerpc/sjlj.S: Port to Xcode 2.5.
815 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
817 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
818 operands "op" and "val" to int.
820 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
822 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
823 "op" and "val" to int.
825 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
827 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
828 "op" and "val" to int.
830 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
832 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
833 Declare as static int.
834 (FUTEX_PRIVATE_FLAG): Remove L suffix.
835 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
837 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
839 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
842 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
844 * Makefile.in: Regenerated with automake-1.11.6.
845 * aclocal.m4: Likewise.
846 * configure: Likewise.
847 * testsuite/Makefile.in: Likewise.
849 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
851 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
852 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
854 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
857 * libitm.c/stackundo.c (test2): Make it static.
860 2015-01-05 Jakub Jelinek <jakub@redhat.com>
862 Update copyright years.
864 2015-01-05 Jakub Jelinek <jakub@redhat.com>
866 * libitm.texi: Bump @copying's copyright year.
868 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
870 * testsuite/lib/libitm.exp: Load target-utils.exp.
871 Move load of target-supports.exp earlier.
873 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
875 * configure.tgt (x86_64): Tune -m32 multilib to generic.
877 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
880 * configure: Regenerated.
882 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
885 * configure: Regenerate.
887 2014-10-06 Marek Polacek <polacek@redhat.com>
889 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
890 * testsuite/libitm.c/memset-1.c: Likewise.
892 2014-07-24 Richard Henderson <rth@redhat.com>
894 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
895 addressing mode in epilogue.
897 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
899 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
900 -mclear-hwcap instead.
901 * configure: Regenerate.
902 * clearcap.map: Remove.
904 2014-05-21 John Marino <gnugcc@marino.st>
906 * configure.tgt (*-*-dragonfly*): New target.
908 2014-05-19 Richard Henderson <rth@redhat.com>
910 * config/aarch64/sjlj.S: New file.
911 * config/aarch64/target.h: New file.
912 * configure.tgt: Enable aarch64.
914 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
916 * config/generic/asmcfi.h: Also check for
917 __GCC_HAVE_DWARF2_CFI_ASM.
919 2013-04-02 Richard Henderson <rth@redhat.com>
921 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
922 * config/arm/target.h, config/sh/target.h: Likewise.
923 * config/sparc/target.h, config/x86/target.h: Likewise.
925 2014-03-26 Jakub Jelinek <jakub@redhat.com>
927 * config/linux/futex_bits.h: Include errno.h.
928 (sys_futex0): If syscall returns -1, return -errno rather than
931 2014-03-26 Joseph Myers <joseph@codesourcery.com>
933 * libitm.texi (Index): Rename to Library Index.
935 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
938 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
939 (x86_avx.lo): Append -mavx to CXXFLAGS.
940 * Makefile.in: Regenerate.
942 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
944 Update copyright years
946 2014-01-02 Tobias Burnus <burnus@net-b.de>
948 * libitm.texi: Bump @copying's copyright year.
950 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
952 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
953 (FUNC): Define ELFv2 variant.
960 2013-09-20 Alan Modra <amodra@gmail.com>
962 * configure: Regenerate.
964 2013-08-30 Torvald Riegel <triegel@redhat.com>
966 * config/posix/rwlock.cc: Fix initialization order.
968 2013-08-30 Torvald Riegel <triegel@redhat.com>
970 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
971 (htm_fastpath): Assign an asm name.
972 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
974 (_ITM_actions): Likewise.
975 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
977 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
978 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
979 field to the start of the structure.
980 * config/linux/rwlock.h (gtm_rwlock): Update comments.
981 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
982 handling for custom HTM fast paths.
984 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
986 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
988 * configure.tgt: Add -msoft-float to XCFLAGS.
990 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
992 * configure.tgt: Add -msoft-float to XCFLAGS.
994 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
996 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
997 (htm_transaction_active): Enable zEC12 instructions in the
999 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1001 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1003 * acinclude.m4: Add htm asm check for s390.
1004 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1005 * configure: Regenerate.
1006 * config/s390/target.h: Remove __HTM__ check.
1007 (htm_available): Call getauxval to get hwcaps and check whether
1008 HTM is available or not.
1010 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
1012 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1013 * configure.ac: Use it.
1014 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1015 (AC_CHECK_FUNCS): Check for getauxval.
1016 * config.h.in, configure: Rebuild.
1017 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1018 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1019 (USE_HTM_FASTPATH): Define.
1020 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1021 _HTM_RETRIES) New macros.
1022 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1023 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1025 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1027 * config/s390/target.h: Include htmintrin.h.
1028 (_HTM_ITM_RETRIES): New macro definition.
1029 (htm_available, htm_init, htm_begin, htm_begin_success)
1030 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1032 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1033 Cesar Philippidis <cesar@codesourcery.com>
1035 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1036 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1037 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1038 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1040 2013-06-20 Torvald Riegel <triegel@redhat.com>
1042 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1043 (_ITM_getTransactionId): Same.
1044 * config/x86/target.h (htm_transaction_active): New.
1046 2013-06-20 Torvald Riegel <triegel@redhat.com>
1049 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1052 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
1055 * local_atomic (__always_inline): Always define our version.
1056 (__calculate_memory_order): Mark inline.
1057 (atomic_thread_fence): Ditto.
1058 (atomic_signal_fence): Ditto.
1059 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1060 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1061 (atomic_bool::atomic_flag_test_and_set): Ditto.
1062 (atomic_bool::atomic_flag_clear): Ditto.
1064 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1066 * config/s390/sjlj.S: New file.
1067 * config/s390/target.h: New file.
1068 * configure.tgt: Set options for S/390.
1070 2013-03-23 Andi Kleen <ak@linux.intel.com>
1072 * local_atomic (__always_inline): Add.
1073 (__calculate_memory_order, atomic_thread_fence,
1074 atomic_signal_fence, test_and_set, clear, store, load,
1075 exchange, compare_exchange_weak, compare_exchange_strong,
1076 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1077 Add __always_inline to force inlining.
1079 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1080 Jack Howarth <howarth@bromo.med.uc.edu>
1081 Patrick Marlier <patrick.marlier@gmail.com>
1084 * alloc_cpp.cc: Enable function declarations on darwin.
1085 * eh_cpp.cc: Likewise.
1087 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1089 Update copyright years.
1091 2012-11-09 Torvald Riegel <triegel@redhat.com>
1093 * beginend.cc (htm_fastpath): New.
1094 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1095 _ITM_commitTransactionEH): Add HTM fastpath handling.
1096 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1097 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1098 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1099 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1100 * configure.tgt: Add -mrtm to XCFLAGS.
1101 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1102 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1103 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1104 * retry.cc (parse_default_method): Add HTM method parsing.
1105 (gtm_thread::number_of_threads_changed): Use HTM by default if
1108 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1110 * configure: Regenerate.
1112 2012-10-31 Richard Henderson <rth@redhat.com>
1114 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1115 * configure.ac: Use it.
1116 * config.h.in, configure: Rebuild.
1117 * testsuite/Makefile.in: Rebuild.
1119 2012-10-24 Torvald Riegel <triegel@redhat.com>
1121 * libitm.texi: Clarify ABI requirements for data-logging functions.
1123 2012-10-24 Torvald Riegel <triegel@redhat.com>
1125 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1126 it requires serial mode instead of assuming that for certain
1128 * dispatch.h (abi_dispatch::requires_serial): New.
1129 (abi_dispatch::abi_dispatch): Adapt.
1130 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1131 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1132 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1133 serial_dispatch::serial_dispatch,
1134 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1136 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1138 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1139 and ia32 declarations some more.
1140 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1142 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1145 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1146 * configure: Regenerate.
1147 * Makefile.in: Regenerate.
1149 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1151 * configure: Regenerated.
1153 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
1155 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1157 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
1159 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1161 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1163 * configure: Regenerated.
1165 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
1168 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1171 2012-04-03 Tristan Gingold <gingold@adacore.com>
1173 * configure: Regenerate.
1175 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1178 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1180 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1182 * testsuite/lib/libitm.exp: load fortran-modules.exp
1184 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186 * configure.tgt (*-*-irix6*): Remove.
1188 2012-03-13 Torvald Riegel <triegel@redhat.com>
1191 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1194 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1196 * configure.tgt (*-*-osf*): Remove.
1197 * configure: Regenerate.
1199 2012-03-05 Torvald Riegel <triegel@redhat.com>
1201 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1202 memtransfer/memset if size isn't larger than zero.
1204 2012-03-02 Torvald Riegel <triegel@redhat.com>
1206 * libitm.texi: Link to specification and add a usage example.
1208 2012-02-24 Torvald Riegel <triegel@redhat.com>
1210 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1211 default dispatch for more than 1 thread to ml_wt.
1213 2012-02-20 Torvald Riegel <triegel@redhat.com>
1215 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1217 2012-02-20 Torvald Riegel <triegel@redhat.com>
1219 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1221 2012-02-20 Torvald Riegel <triegel@redhat.com>
1223 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1224 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1225 (gl_wt_dispatch.rollback): Same.
1227 2012-02-20 Torvald Riegel <triegel@redhat.com>
1229 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1231 2012-02-20 Torvald Riegel <triegel@redhat.com>
1233 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1234 for RfW src. Optimize number of calls to gtm_thr.
1236 2012-02-20 Torvald Riegel <triegel@redhat.com>
1238 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1240 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1241 (default_dispatch): Make atomic.
1242 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1243 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1244 use decide_begin_dispatch() if default_dispatch might have changed.
1245 (GTM::gtm_thread::number_of_threads_changed): Initialize
1246 default_dispatch here.
1248 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1249 Patrick Marlier <patrick.marlier@gmail.com>
1252 * alloc_cpp.cc: No dummy definitions for darwin.
1253 * eh_cpp.cc: Likewise.
1255 2012-02-14 Richard Henderson <rth@redhat.com>
1257 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1259 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1261 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1263 2012-02-14 Torvald Riegel <triegel@redhat.com>
1265 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1266 (GTM::gtm_thread): Add read and write logs.
1267 (GTM::dispatch_ml_wt): Declare.
1268 * retry.cc (parse_default_method): Support ml_wt.
1269 * method-ml.cc: New file.
1270 * Makefile.am: Add method-ml.cc.
1271 * Makefile.in: Regenerate.
1273 2012-02-14 Torvald Riegel <triegel@redhat.com>
1275 * dispatch.h (GTM::abi_dispatch::supports): New.
1276 (GTM::method_group::reinit): New.
1277 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1278 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1279 supports the current situation.
1281 2012-02-14 Torvald Riegel <triegel@redhat.com>
1283 * util.cc (GTM::xcalloc): New.
1284 * common.h (GTM::xcalloc): Declare.
1286 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1288 * config/sparc/target.h (cpu_relax): Read from CC register.
1289 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1291 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
1293 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1295 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1297 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1298 * config/sparc/cacheline.h: New file.
1299 * config/sparc/target.h: Likewise.
1300 * config/sparc/sjlj.S: Likewise.
1301 * config/linux/sparc/futex_bits.h: Likewise.
1303 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1305 * configure.ac (link_itm): Fix comment.
1306 * configure: Regenerate.
1307 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1309 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1312 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1313 Correct libgomp references.
1315 2012-01-24 Torvald Riegel <triegel@redhat.com>
1317 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1320 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
1322 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1324 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1325 offset values. Do not copy return address. Decrement stack
1327 (GTM_longjump) [__x86_64__]: Update offset values.
1329 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1332 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1333 the first function argument to %eax.
1335 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1337 * libitm.h (_ITM_getThreadnum): Remove.
1338 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1340 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1342 * clearcap.map: New file.
1343 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1344 * configure.ac: Call it.
1345 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1346 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1347 * configure: Regenerate.
1348 * Makefile.in: Regenerate.
1349 * testsuite/Makefile.in: Regenerate.
1351 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1354 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1355 include, exclude options.
1357 2012-01-14 Torvald Riegel <triegel@redhat.com>
1359 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1361 * containers.h (GTM::vector::set_size): New.
1363 2012-01-14 Torvald Riegel <triegel@redhat.com>
1366 * config/generic/tls.h (GTM::mask_stack_top): New.
1367 (GTM::mask_stack_bottom): Declare.
1368 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1369 * local.cc (gtm_undolog::rollback): Filter out any updates that
1370 overlap the libitm stack. Add current transaction as parameter.
1371 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1372 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1373 * testsuite/libitm.c/stackundo.c: New test.
1375 2012-01-10 Richard Henderson <rth@redhat.com>
1377 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1378 * eh_cpp.cc (_Unwind_DeleteException): Define for
1379 !HAVE_ELF_STYLE_WEAKREF.
1381 2012-01-08 Torvald Riegel <triegel@redhat.com>
1383 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1384 (GTM::gtm_thread::drop_references_undolog): Remove.
1385 (GTM::gtm_thread::commit_undolog,
1386 GTM::gtm_thread::rollback_undolog): Move to ...
1387 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1388 (GTM::gtm_undolog_entry): Remove.
1389 (GTM::gtm_thread): Adapt.
1390 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1391 (GTM::gtm_thread::trycommit): Adapt.
1392 * method-serial.cc (serial_dispatch::log): Adapt.
1393 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1394 (gl_wt_dispatch::store): Fix likely/unlikely.
1395 * containers.h (GTM::vector::resize): Add additional_capacity
1396 parameter and handle it.
1397 (GTM::vector::resize_noinline): New/adapt.
1398 (GTM::vector::push): New.
1400 2012-01-06 Richard Henderson <rth@redhat.com>
1402 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1403 * config/linux/powerpc/futex_bits.h: New file.
1404 * config/powerpc/cacheline.h: New file.
1405 * config/powerpc/sjlj.S: New file.
1406 * config/powerpc/target.h: New file.
1407 * config/generic/asmcfi.h (cfi_offset): New.
1408 (cfi_restore, cfi_undefined): New.
1410 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
1413 * testsuite/libitm.c/reentrant.c: Remove xfail.
1414 (thread): Pass x to pure().
1415 From Patrik Marlier <patrick.marlier@gmail.com>.
1417 2011-12-24 Torvald Riegel <triegel@redhat.com>
1419 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1420 privatization safety if already in serial mode.
1422 2011-12-24 Torvald Riegel <triegel@redhat.com>
1424 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1425 finish_serial_upgrade parameter.
1426 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1427 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1428 Don't unset reader flag.
1429 (GTM::gtm_rwlock::write_upgrade_finish): New.
1430 * config/posix/rwlock.cc: Same.
1431 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1433 * config/posix/rwlock.h: Same.
1434 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1435 flag after commit or after rollback when restarting.
1437 2011-12-24 Torvald Riegel <triegel@redhat.com>
1439 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1440 (GTM::gtm_thread::try_commit): Changed memory order.
1441 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1443 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1444 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1445 * config/linux/futex_bits.h (sys_futex0): Same.
1446 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1447 * config/linux/futex.h (futex_wait, futex_wake): Same.
1448 * config/linux/rwlock.h (gtm_rwlock::writers,
1449 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1451 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1452 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1453 gtm_rwlock::write_unlock): Fix memory orders and fences.
1454 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1455 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1456 gtm_rwlock::write_unlock): Same.
1457 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1458 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1459 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1461 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1462 gl_wt_dispatch::load, gl_wt_dispatch::store,
1463 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1464 orders and fences. Add comments.
1466 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1468 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1469 * Makefile.in: Regenerated.
1471 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1473 * configure.tgt: Add sh* case.
1474 * config/sh/target.h: New file.
1475 * config/sh/sjlj.S: New file.
1476 * config/linux/sh/futex_bits.h: New file.
1478 2011-12-14 Richard Henderson <rth@redhat.com>
1480 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1481 * config/arm/sjlj.S, config/arm/target.h: New files.
1482 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1483 (cfi_rel_offset): New.
1484 * config/linux/futex_bits.h: New file.
1485 * config/linux/futex.cc: Include futex_bits.h here...
1486 * config/linux/futex.h: ... not here.
1487 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1488 * configure.ac (ARCH_AM): New conditional.
1489 * Makefile.in, configure: Rebuild.
1490 * configure.tgt: Handle ARM.
1492 2011-12-13 Richard Henderson <rth@redhat.com>
1494 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1495 signed/unsigned comparison werror.
1497 * local_atomic: New file.
1498 * libitm_i.h: Include it.
1499 (gtm_thread::shared_state): Use atomic template.
1500 * beginend.cc (GTM::gtm_clock): Use atomic template.
1501 (global_tid): Use atomic template if 64-bit atomics available.
1502 (gtm_thread::gtm_thread): Update shared_state access.
1503 (gtm_thread::trycommit): Likewise.
1504 (choose_code_path): Update global_tid access.
1505 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1506 * stmlock.h (GTM::gtm_clock): Use atomic template.
1507 (gtm_get_clock, gtm_inc_clock): Update accesses.
1508 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1509 redundant __sync_synchronize after atomic shared_state access.
1510 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1511 (gtm_rwlock::write_lock_generic): Likewise.
1512 (gtm_rwlock::read_unlock): Likewise.
1513 * config/alpha/target.h (atomic_read_barrier): Remove.
1514 (atomic_write_barrier): Remove.
1515 * config/x86/target.h (atomic_read_barrier): Remove.
1516 (atomic_write_barrier): Remove.
1518 2011-11-30 Richard Henderson <rth@redhat.com>
1520 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1521 * beginend.c (_ITM_abortTransaction): Update to match.
1522 (GTM::gtm_thread::restart): Likewise.
1523 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1524 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1526 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1528 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1529 * Makefile.in: Regenerate.
1531 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1533 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1534 * alloc_cpp.cc: Generate dummy functions if we don't
1535 HAVE_ELF_STYLE_WEAKREF.
1536 * eh_cpp.cc: Likewise.
1537 * configure: Regenerate.
1538 * aclocal.m4: Likewise.
1539 * config.h.in: Likewise.
1540 * Makefile.in: Likewise.
1541 * testsuite/Makefile.in: Likewise.
1543 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1545 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1546 __USER_LABEL_PREFIX__ for targets that use it.
1547 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1548 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1549 in portability to non-elf targets.
1550 (GTM_longjmp): Likewise.
1551 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1554 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1556 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1557 * testsuite/libitm.c/memset-1.c: Likewise.
1559 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1561 * configure: Regenerate.
1563 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1565 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1566 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1567 * Makefile.am: Handle sun style versioning.
1568 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1569 * configure: Regenerate.
1570 * Makefile.in: Regenerate.
1572 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574 * config/generic/asmcfi.h: Fix comment.
1575 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1576 sequence without .hidden support, error for non-ELF targets.
1577 (GTM_longjmp) [__ELF__]: Only use .hidden if
1578 HAVE_ATTRIBUTE_VISIBILITY.
1580 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1583 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1585 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1586 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1588 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1591 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1592 * configure: Regenerate.
1594 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1596 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1598 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1602 (.note.GNU-stack): Only use if __linux__.
1603 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1604 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1605 * testsuite/libitm.c/reentrant.c: Likewise.
1606 * testsuite/libitm.c/simple-2.c: Likewise.
1607 * testsuite/libitm.c/txrelease.c: Likewise.
1608 * testsuite/libitm.c++/static_ctor.C: Likewise.
1610 2011-11-10 Richard Henderson <rth@redhat.com>
1612 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1613 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1614 * configure.ac (ARCH_X86_AVX): New conditional.
1615 * Makefile.in, configure: Rebuild.
1617 2011-11-09 Richard Henderson <rth@redhat.com>
1619 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1620 * configure.ac: Use it.
1621 * config.h.in, configure: Rebuild.
1622 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1624 2011-11-09 Richard Henderson <rth@redhat.com>
1626 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1627 * config/alpha/unaligned.h: Remove file.
1628 * config/generic/unaligned.h: Remove file.
1629 * config/x86/unaligned.h: Remove file.
1630 * config/generic/cachepage.h: Remove file.
1631 * config/posix/cachepage.cc: Remove file.
1632 * config/generic/cacheline.cc: Remove file.
1633 * config/x86/cacheline.cc: Remove file.
1634 * config/generic/cacheline.h (gtm_cacheline): Remove the
1635 store_mask, copy_mask, copy_mask_wb methods.
1636 * config/x86/cacheline.h: Likewise.
1637 * config/alpha/cacheline.h: Fall back to generic after setting size.
1638 * config/generic/tls.cc (gtm_mask_stack): Remove.
1639 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1640 (GTM_vpalignr_table): Remove.
1641 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1642 (GTM_pshift_table): Remove.
1643 * config/libitm_i.h: Don't include cachepage.h.
1644 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1645 * Makefile.in, testsuite/Makefile.in: Rebuild.
1647 2011-11-09 Richard Henderson <rth@redhat.com>
1649 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1650 to emit branch prediction hint.
1652 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1653 Protect .note.GNU-stack with __linux__.
1655 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1656 * configure, aclocal.m4, config.h.in: Rebuild.
1657 * config/generic/asmcfi.h: New file.
1658 * config/x86/sjlj.S: Use it.
1660 2011-11-08 Richard Henderson <rth@redhat.com>
1662 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1664 2011-11-08 Richard Henderson <rth@redhat.com>
1666 * configure.tgt: Test correct directory for supported cpus.
1668 * configure.ac: Exit if unsupported.
1669 * configure: Rebuild.
1670 * configure.tgt: Delete boilerplate from libgomp for unsupported
1671 targets. Set UNSUPPORTED for unsupported targets.
1673 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1675 * configure.tgt: Handle i386 like i[456]86.
1676 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1678 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1679 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1681 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1683 * method-wbetl.cc: Update copyright notice.
1689 * barrier.tpl: Same.
1690 * useraction.cc: Same.
1694 * config/generic/tls.cc: Same.
1695 * config/generic/cacheline.h: Same.
1696 * config/generic/cachepage.h: Same.
1697 * config/generic/cacheline.cc: Same.
1698 * config/generic/unaligned.h: Same.
1699 * config/x86/cacheline.h: Same.
1700 * config/x86/cacheline.cc: Same.
1701 * config/x86/unaligned.h: Same.
1702 * config/alpha/cacheline.h: Same.
1703 * config/alpha/unaligned.h: Same.
1704 * config/alpha/sjlj.S: Same.
1705 * config/posix/cachepage.cc: Same.
1706 * config/linux/futex.h: Same.
1707 * config/linux/alpha/futex_bits.h: Same.
1709 2011-11-04 Torvald Riegel <triegel@redhat.com>
1711 * libitm.texi: No cover text and invariant sections.
1713 2011-11-03 Richard Henderson <rth@redhat.com>
1715 * local_type_traits: New file.
1716 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1718 2011-11-03 Richard Henderson <rth@redhat.com>
1720 * configure.ac: Don't test for gfortran.
1721 * configure: Rebuild.
1723 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1724 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1726 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1728 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1729 * testsuite/libitm.c/memset-1.c: Same.
1730 * testsuite/libitm.c/c.exp: Same.
1731 * testsuite/lib/libitm-dg.exp: Same.
1732 * testsuite/lib/libitm.exp: Same.
1733 * testsuite/libitm.c++/c++.exp: Same.
1735 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1737 * testsuite/config/default.exp: Update copyright date.
1738 * configure.ac: Add copyright info.
1739 * configure.tgt: Same.
1741 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1743 * testsuite/libitm.c/reentrant.c: XFAIL.
1744 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1746 2011-10-29 Torvald Riegel <triegel@redhat.com>
1748 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1750 (_ITM_abortTransaction): Handle aborts of outer transactions.
1752 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1753 * libitm.texi: Document aborts of outer transactions.
1754 * testsuite/libitm.c/cancel.c: New file.
1756 2011-10-19 Torvald Riegel <triegel@redhat.com>
1758 * testsuite/*: Change __transaction to __transaction_atomic or
1759 __transaction_relaxed.
1761 2011-10-19 Torvald Riegel <triegel@redhat.com>
1763 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1766 2011-10-19 Torvald Riegel <triegel@redhat.com>
1768 * libitm_i.h: Add gl_wt dispatch.
1769 * retry.cc (parse_default_method): Same.
1770 * method-gl.cc: New file.
1771 * Makefile.am: Use method-gl.cc.
1772 * Makefile.in: Rebuild.
1774 2011-10-19 Torvald Riegel <triegel@redhat.com>
1776 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1777 safety if requested by a TM method.
1778 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1779 privatization safety.
1780 * method-serial.cc: Same.
1782 2011-10-19 Torvald Riegel <triegel@redhat.com>
1784 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1785 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1786 undolog-related member functions from *_local to *_undolog.
1787 * local.cc (gtm_thread::commit_undolog): Same.
1788 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1789 (GTM::gtm_thread::rollback): Roll back undolog before
1790 dispatch-specific rollback.
1792 2011-10-19 Torvald Riegel <triegel@redhat.com>
1794 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1795 re-initialization of the current method group.
1796 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1798 2011-10-19 Torvald Riegel <triegel@redhat.com>
1800 * alloc.cc (commit_allocations_2): Do not free transaction-local
1801 memory when committing a nested transaction.
1803 2011-10-19 Torvald Riegel <triegel@redhat.com>
1805 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1806 serial-irrevocable dispatch, not serial.
1808 2011-10-19 Torvald Riegel <triegel@redhat.com>
1810 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1812 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1813 * method-serial.cc: Implement begin_or_restart().
1814 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1815 dispatch-specific begin_or_restart().
1816 (GTM::gtm_thread::restart): Same.
1818 2011-08-23 Torvald Riegel <triegel@redhat.com>
1820 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1821 restarting without switching to serial mode.
1822 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1823 transaction state. Choose closed-nesting alternative if available.
1824 (GTM::gtm_thread::set_default_dispatch): New.
1825 (parse_default_method): New.
1826 (GTM::gtm_thread::number_of_threads_changed): New.
1827 * method-serial.cc (GTM::serial_mg): New method group class.
1828 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1830 (GTM::serial_dispatch): Same.
1831 (GTM::serialirr_onwrite_dispatch): Same.
1832 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1833 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1835 (GTM::gtm_thread::gtm_thread): Same.
1836 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1837 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1838 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1839 choose dispatch but set state according to dispatch here.
1840 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1841 (GTM::method_group): New class.
1842 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1843 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1844 * libitm.texi: Document TM methods, method groups, method life cycle.
1845 Rename method sets to method groups.
1847 2011-08-23 Torvald Riegel <triegel@redhat.com>
1849 * config/x86/tls.h: Moved to ...
1850 * config/linux/x86/tls.h: ... here.
1852 2011-08-23 Torvald Riegel <triegel@redhat.com>
1854 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1856 * config/x86/sjlj.S: Same.
1858 2011-08-19 Torvald Riegel <triegel@redhat.com>
1860 * config/linux/rwlock.h: New file.
1861 * config/linux/rwlock.c: New file.
1862 * configure.ac: Reenable futex support (undo SVN rev 157758).
1863 * Makefile.am: Same.
1864 * configure.tgt: Same.
1865 * config/linux/alpha/futex_bits.h: Same.
1866 * config/linux/futex.h: Same. Return number of woken processes.
1867 * config/linux/futex.cc: Same.
1868 (futex_wait): Remove spinning.
1869 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1870 Use __x86_64__ instead of __LP64__.
1871 * aclocal.m4: Include generic futex checks.
1872 * configure: Rebuild.
1873 * Makefile.in: Rebuild.
1874 * testsuite/Makefile.in: Rebuild.
1875 * beginend.cc: Include pthread.h.
1876 * config/posix/cachepage.cc: Same.
1878 2011-08-12 Torvald Riegel <triegel@redhat.com>
1880 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1881 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1883 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1885 (GTM::gtm_thread::thread_num): Removed.
1886 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1887 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1888 tx-to-thread renaming.
1889 * beginend.cc: Adapted to tx-to-thread renaming.
1890 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1891 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1892 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1893 gtm_transaction to gtm_thread.
1894 (_ITM_getThreadnum): Removed. Not supported anymore.
1895 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1896 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1897 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1898 gtm_tx-to-gtm_thr renaming if necessary.
1905 * alloc_cpp.cc: Same.
1906 * method-serial.cc: Same.
1907 * config/generic/tls.cc: Same.
1908 * config/posix/rwlock.h (gtm_rwlock): Same.
1909 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1911 2011-08-12 Torvald Riegel <triegel@redhat.com>
1913 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1915 (gtm_rwlock::read_unlock): Same.
1916 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1917 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1918 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1919 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1920 w_upgrade. Replaced by per-transaction flags (in shared_state).
1921 Added c_confirmed_writers.
1922 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1923 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1924 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1925 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1926 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1927 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1928 * libitm.texi: Document locking conventions and implementations in
1931 2011-08-12 Torvald Riegel <triegel@redhat.com>
1933 * libitm_i.h (next_tx): Add list of all threads' transaction.
1934 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1935 transaction with list of transactions and ...
1936 (thread_exit_handler): ... deregister here.
1937 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1938 * config/x86/target.h: Same.
1940 2011-08-12 Torvald Riegel <triegel@redhat.com>
1942 * testsuite/libitm.c++/static_ctor.C: New file.
1944 2011-08-12 Torvald Riegel <triegel@redhat.com>
1946 * testsuite/libitm.c/reentrant.c: New file.
1948 2011-08-12 Torvald Riegel <triegel@redhat.com>
1950 * config/generic/tls.h: Remove the free list for transactions and ...
1951 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1952 (GTM::gtm_transaction::operator delete): ... and release here.
1953 (thread_exit_handler): New. Delete tx when thread terminates.
1954 (thread_exit_init): New.
1955 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1956 * testsuite/libitm.c/txrelease.c: New file.
1958 2011-08-12 Torvald Riegel <triegel@redhat.com>
1960 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1961 * testsuite/libitm.c/notx.c: New file.
1963 2011-08-12 Torvald Riegel <triegel@redhat.com>
1965 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1966 * libitm_i.h (local_tid): ... to here.
1967 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1968 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1970 2011-08-12 Torvald Riegel <triegel@redhat.com>
1972 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1973 serialirr_onwrite_dispatch as new default for now.
1974 * method-serial.cc (serialirr_onwrite_dispatch): New.
1975 (GTM::dispatch_serialirr_onwrite): New.
1978 2011-08-12 Torvald Riegel <triegel@redhat.com>
1980 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1981 * query.cc (_ITM_getTransactionId): There is no active transaction if
1982 the current nesting level is zero.
1984 2011-07-28 Torvald Riegel <triegel@redhat.com>
1986 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1989 2011-07-28 Torvald Riegel <triegel@redhat.com>
1991 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1992 transaction properties from the caller instead of from the
1995 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1997 2011-07-28 Torvald Riegel <triegel@redhat.com>
1999 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2000 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2002 * method-serial.cc: Same.
2003 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2004 flat nesting as default, and closed nesting on demand.
2005 (GTM::gtm_transaction::rollback): Same.
2006 (_ITM_abortTransaction): Same.
2007 (GTM::gtm_transaction::restart): Same.
2008 (GTM::gtm_transaction::trycommit): Same.
2009 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2010 (choose_code_path): New.
2011 (GTM::gtm_transaction_cp::save): New.
2012 (GTM::gtm_transaction_cp::commit): New.
2013 * query.cc (_ITM_inTransaction): Support flat nesting.
2014 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2015 (GTM::gtm_transaction): Support flat and closed nesting.
2016 * alloc.cc (commit_allocations_2): New.
2017 (commit_cb_data): New helper struct.
2018 (GTM::gtm_transaction::commit_allocations): Handle nested
2020 * libitm.texi: Update user action section, add description of nesting.
2022 2011-07-28 Torvald Riegel <triegel@redhat.com>
2024 * libitm_i.h: Add closed nesting as restart reason.
2025 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2027 2011-07-28 Torvald Riegel <triegel@redhat.com>
2029 * useraction.cc: Use vector instead of list to store actions.
2030 Also support partial rollbacks for closed nesting.
2031 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2032 * beginend.cc: Same.
2034 2011-07-28 Torvald Riegel <triegel@redhat.com>
2036 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2037 closed_nesting flags, as well as a closed nesting alternative.
2038 * method-serial.cc: Same.
2039 (serial_dispatch): Renamed to serialirr_dispatch.
2040 (GTM::dispatch_serialirr): Same.
2041 (serial_dispatch_ul): Renamed to serial_dispatch.
2042 (GTM::dispatch_serial): Same.
2044 2011-07-28 Torvald Riegel <triegel@redhat.com>
2046 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2048 2011-07-28 Torvald Riegel <triegel@redhat.com>
2050 * aatree.h (aa_tree::remove): New.
2051 (aa_tree::operator new): Add placement new.
2053 2011-07-02 Torvald Riegel <triegel@redhat.com>
2055 * containers.h: New file.
2056 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2057 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2058 * common.h: ... to here.
2059 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2062 2011-06-30 Torvald Riegel <triegel@redhat.com>
2064 * libitm_i.h (STATE_ABORTING): Remove.
2065 * beginend.cc (_ITM_abortTransaction): Same.
2066 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2067 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2068 (_ITM_rollbackTransaction): Remove.
2069 * beginend.cc: Same.
2071 * libitm.texi: Document these ABI changes.
2073 2011-06-30 Torvald Riegel <triegel@redhat.com>
2075 * libitm.texi: New file.
2076 * Makefile.am: Add libitm.texi.
2077 * Makefile.in: Rebuild.
2079 2011-06-30 Torvald Riegel <triegel@redhat.com>
2081 * libitm_i.h: Move parts to common.h and dispatch.h.
2082 * common.h: New file.
2083 * dispatch.h: New file, new dispatch class.
2084 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2085 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2086 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2087 decision to retry.cc.
2088 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2090 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2091 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2093 * barrier.cc: Use new barriers definitions.
2094 (abi_dispatch::memmove_overlap_check): New.
2095 * config/x86/x86_sse.cc: Same.
2096 * config/x86/x86_avx.cc: Same.
2097 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2099 * Makefile.in: Rebuild.
2100 * method-readonly.cc: Remove.
2101 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2102 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2104 2011-06-30 Torvald Riegel <triegel@redhat.com>
2106 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2107 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2108 * testsuite/libitm.c/dropref-2.c: Same.
2109 * testsuite/libitm.c/dropref.c: Same.
2111 2011-06-30 Torvald Riegel <triegel@redhat.com>
2113 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2114 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2115 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2117 * barrier.tpl: Same.
2119 * config/generic/tls.h: Same.
2120 * config/x86/tls.h: Same.
2124 * method-readonly.cc: Same.
2125 * method-serial.cc: Same.
2126 * method-wbetl.cc: Same.
2129 2011-03-03 Richard Henderson <rth@redhat.com>
2131 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2132 From Patrik Marlier <patrick.marlier@unine.ch>.
2134 2011-02-03 Richard Henderson <rth@redhat.com>
2136 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2137 * configure.ac: Use it.
2138 * configure, config.h.in: Rebuild.
2139 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2140 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2141 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2142 * libitm.map: Use wildcards to match size_t mangling.
2144 2010-12-14 Richard Henderson <rth@redhat.com>
2146 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2147 blocks of TIDs per thread.
2148 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2149 (setup_gtm_thr): Return the thread structure.
2150 * config/x86/tls.h (setup_gtm_thr): Likewise.
2152 2010-12-14 Richard Henderson <rth@redhat.com>
2154 * clone.cc (table_lock): Remove.
2155 (find_clone): Don't take it.
2156 (ExcludeTransaction): New helper class.
2157 (_ITM_registerTMCloneTable): Use it.
2158 (_ITM_deregisterTMCloneTable): Likewise.
2160 2010-12-14 Richard Henderson <rth@redhat.com>
2162 * config/x86/tls.h: New file.
2164 2010-07-15 Richard Henderson <rth@redhat.com>
2166 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2167 * Makefile.in: Rebuild.
2169 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2171 * method-wbetl.cc (trydropreference): Fix source line.
2173 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
2175 * libitm.h: Add comment.
2176 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2178 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
2180 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2181 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2182 available, use pthread mutexes.
2183 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2184 * config.h.in: Regenerate.
2185 * configure: Regenerate.
2187 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
2189 * libitm.h (ITM_PURE): Define.
2190 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2192 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2194 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2195 (validate): Add comment.
2196 (trydropreference): New.
2197 * method-readonly.cc (class readonly_dispatch): Add
2199 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2200 Call trydropreference().
2201 * libitm.h (_ITM_dropReferences): Remove const attribute.
2202 * method-serial.cc (class serial_dispatch): Add trydropreference.
2203 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2205 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
2207 * memcpy.cc (do_memcpy): Comment.
2209 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
2211 * barrier.tpl: Add comments throughout.
2213 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2215 * method-wbetl.cc (struct w_entry): Add comments.
2219 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
2221 * alloc_c.cc (_ITM_dropReferences): New.
2222 * libitm.map (_ITM_dropReferences): Add.
2223 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2224 * libitm_i.h (struct gtm_transaction): Declare
2225 drop_references_allocations and drop_references_local.
2226 * local.cc (rollback_local): Ignore memory when applicable.
2227 (drop_references_local): New.
2229 2010-06-23 Richard Henderson <rth@redhat.com>
2231 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2232 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2233 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2234 * config/alpha/target.h: Likewise.
2235 * config/generic/tls.cc (gtm_mask_stack): Use it.
2237 2010-06-23 Richard Henderson <rth@redhat.com>
2239 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2240 a mutex instead of trying a lock-free compare-and-swap on the list.
2241 (gtm_cacheline_page::operator delete): Likewise.
2243 2010-06-16 Richard Henderson <rth@redhat.com>
2245 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2246 that overlap the libitm stack.
2247 * barrier.tpl: Mark incoming stack.
2248 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2249 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2250 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2251 * memcpy.cc, memset.cc: Likewise.
2252 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2253 * config/generic/tls.h (gtm_thread): Add stack_top member.
2254 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2255 * libitm_i.h (gtm_mask_stack): Declare.
2256 * config/generic/tls.cc: New file.
2257 * Makefile.am (libitm_la_SOURCES): Add it.
2258 (AM_CXXFLAGS): Turn off exceptions.
2259 * Makefile.in: Rebuild.
2261 2010-06-16 Richard Henderson <rth@redhat.com>
2263 * alloc.cc (struct gtm_alloc_action): Move definition ...
2264 * libitm_i.h: ... here.
2265 (class gtm_transaction): Declare new and delete.
2266 * beginend.cc (alloc_tx): Reformulate as operator new.
2267 (free_tx): Reformulate as operator delete.
2268 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2270 2010-06-11 Richard Henderson <rth@redhat.com>
2272 * clone.cc (clone_entry_compare): Fix typo.
2273 From Patrik Marlier <patrick.marlier@unine.ch>.
2275 2010-05-13 Richard Henderson <rth@redhat.com>
2277 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2280 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
2282 * libitm_i.h (struct gtm_transaction): Remove
2283 get_allocation_size.
2284 (record_allocation): Remove size parameter.
2285 * libitm.map (_ITM_realloc): Remove.
2286 * alloc_c.cc (_ITM_realloc): Remove.
2287 (_ITM_malloc): Remove size argument to record_allocation.
2288 (_ITM_calloc): Same.
2289 * alloc_cpp.cc (_ZGTtnwm): Same.
2290 (_ZGTtnwmRKSt9nothrow_t): Same.
2292 (_ZGTtnamRKSt9nothrow_t): Same.
2293 * alloc.cc (struct gtm_alloc_action): Remove size.
2294 (get_allocation_size): Remove.
2295 (commit_allocations): Add comment.
2296 (record_allocation): Remove size parameter.
2297 (forget_allocation): Remove set of size.
2299 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
2301 * Makefile.am (abi_version): New.
2302 (AM_CXXFLAGS): Pass abi_version.
2303 * Makefile.in: Regenerate.
2304 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2306 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
2308 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2309 _ITM_getTMCloneOrIrrevokable.
2310 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2311 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2313 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
2315 * configure.ac: Remove Linux futex support.
2316 * configure.tgt (config_path): Same.
2317 * Makefile.am: Same.
2318 * config/linux: Remove entire directory.
2319 * configure: Rebuild.
2320 * Makefile.in: Rebuild.
2321 * testsuite/Makefile.in: Rebuild.
2323 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
2325 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2326 switching to serial mode.
2327 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2329 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
2331 * configure.tgt: Add emacs -*- tags.
2332 * barrier.tpl: Same.
2334 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
2336 * Makefile.am: Rename serial.cc to method-serial.cc.
2337 * Makefile.in: Regenerate with automake 1.11.1.
2338 * testsuite/Makefile.in: Same.
2339 * aclocal.m4: Regenerate with aclocal 1.11.1.
2340 * method-serial.cc: Rename from serial.cc.
2341 * libitm_i.h (struct gtm_transaction): Update comment on
2344 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
2346 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2347 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2349 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
2351 * configure: Rebuild.
2353 2009-11-12 Richard Henderson <rth@redhat.com>
2355 * Rewrite everything in C++.
2357 2009-11-03 Richard Henderson <rth@redhat.com>
2359 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2360 * Makefile.am (libitm_la_SOURCES): Add them.
2361 * configure.ac (ARCH_X86): New conditional.
2362 * Makefile.in, configure: Rebuild.
2363 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2364 Move futex setup into "other system configury" case.
2365 * local.c (rollback_local): Merge into ...
2366 (GTM_rollback_local): ... here.
2367 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2368 (_ITM_LB): Define as an alias to GTM_LB.
2370 2009-11-03 Richard Henderson <rth@redhat.com>
2372 * method-readonly.c: New file.
2373 * Makefile.am (libitm_la_SOURCES): Add it.
2374 * Makefile.in: Rebuild.
2375 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2376 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2377 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2378 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2379 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2380 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2381 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2382 gtm_get_clock, gtm_inc_clock): New.
2383 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2384 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2385 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2386 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2387 replace uses with new libitm_i.h symbols.
2388 (dispatch_wbetl): Rename from wbetl_dispatch.
2389 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2390 away from dispatch_readonly; abort if the beginTransaction call
2391 asserted that the transaction was readonly.
2393 2009-11-03 Richard Henderson <rth@redhat.com>
2395 * memset.c: New file.
2396 * Makefile.am (libitm_la_SOURCES): Add it.
2397 * Makefile.in: Rebuild.
2398 * testsuite/libitm.c/memset-1.c: New.
2400 2009-11-03 Richard Henderson <rth@redhat.com>
2402 * dispatch.c: Remove file.
2403 * useraction.c (struct gtm_user_action): Move from libitm.h.
2404 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2405 (serial_memset, serial_memmove, serial_memcpy): Remove.
2406 (serial_W*, serial_R*): Remove.
2407 (serial_dispatch): Update to match.
2408 * configure.ac: Move Werror down below configure checks. Don't
2409 check for sys/loadavg.h, do check for malloc.h. Don't check for
2410 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2411 Use GCC_AC_FUNC_MMAP_BLACKLIST
2412 * libitm.h: Split out all internal items to...
2413 * libitm_i.h: ... here. New file.
2414 * copymask.c: New file.
2415 * local.c (struct gtm_local_undo): Move from libitm.h.
2416 (GTM_alloc_local): Rename from alloc_local; export.
2417 * memcpy.c: New file.
2418 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2419 * config/posix/page.c: New file.
2420 * config/posix/target_tls.h: Remove file.
2421 * barrier.c: New file.
2422 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2424 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2425 * method-wbetl.c: Rewrite for new cacheline methods.
2426 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2428 * config/alpha/sjlj.S: Fix typo.
2429 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2430 * config/alpha/copymask.c: New file.
2431 * config/alpha/target.h (CACHELINE_SIZE): New.
2432 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2434 * config/x86/target_i.h: Copy functions from x86/target.h.
2435 * config/x86/copymask.c: New file.
2436 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2437 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2438 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2439 * config/x86/target_tls.h: Move contents to target_i.h.
2441 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2442 * testsuite/libitm.c/memcpy-1.c: New.
2444 2009-10-22 Richard Henderson <rth@redhat.com>
2446 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2447 (AM_CCASFLAGS): New.
2448 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2449 saving/restoring _AC_ARG_VAR_PRECIOUS.
2450 * Makefile.in, aclocal.m4, config.h.in, configure,
2451 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2453 2009-10-22 Richard Henderson <rth@redhat.com>
2455 * testsuite/*: Update for new compiler syntax.
2457 2009-10-21 Richard Henderson <rth@redhat.com>
2459 * libitm.h (_ITM_abortReason): Add outerAbort.
2461 2009-08-03 Richard Henderson <rth@redhat.com>
2463 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2464 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2465 * method-wbetl.c (struct w_entry): Remove mask.
2466 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2469 2009-07-22 Richard Henderson <rth@redhat.com>
2471 * eh_cpp.c: New file.
2472 * Makefile.am (libitm_la_SOURCES): Add it.
2473 * Makefile.in: Rebuild.
2474 * beginend.c (GTM_rollback_transaction): Undo exception state.
2475 (GTM_trycommit_transaction): Mark inline.
2476 (GTM_trycommit_and_finalize_transaction): Split out from ...
2477 (_ITM_commitTransaction): ... here.
2478 (_ITM_commitTransactionEH): New function.
2479 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2480 cxa_unthrown, eh_in_flight; reorder.
2482 * testsuite/libitm.c++/c++.exp: New.
2483 * testsuite/libitm.c++/eh-1.C: New.
2485 * aatree.c (aa_free): Remove REGPARM.
2486 * aatree.h: Remove all REGPARM.
2488 2009-07-18 Richard Henderson <rth@redhat.com>
2490 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2491 * Makefile.am (libitm_la_SOURCES): Add them.
2492 * Makefile.in: Rebuild.
2493 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2494 (GTM_trycommit_transaction): Likewise.
2495 * libitm.h: Include aatree.h
2496 (struct gtm_alloc_action): New.
2497 (struct gtm_transaction): Add alloc_actions.
2498 (GTM_record_allocation, GTM_forget_allocation): Declare.
2499 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2500 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2501 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2502 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2503 _ZGTtdaPvRKSt9nothrow_t): Export.
2505 2009-07-18 Richard Henderson <rth@redhat.com>
2507 * target_tls.h: Move ...
2508 * config/posix/target_tls.h: ... here.
2510 2009-07-07 Richard Henderson <rth@redhat.com>
2512 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2514 2009-07-07 Richard Henderson <rth@redhat.com>
2518 2009-07-07 Richard Henderson <rth@redhat.com>
2520 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2521 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2523 * configure.tgt: Don't use -ftls-model for x86 linux.
2524 * libitm.h: Include target.h after standard includes.
2525 (_gtm_thr): Rename from gtm_thr.
2526 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2527 (gtm_disp, set_gtm_disp): New.
2528 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2529 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2530 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2532 2009-07-07 Richard Henderson <rth@redhat.com>
2534 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2536 2009-07-06 Richard Henderson <rth@redhat.com>
2538 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2539 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2540 (_ITM_beginTransaction): Take variadic arguments.
2541 (_ITM_registerThrownObject): Declare.
2542 * beginend.c, serial.c: Update.
2543 * libitm.map: Add _ITM_registerThrownObject.
2545 2009-01-28 Richard Henderson <rth@redhat.com>
2547 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2548 * Makefile.in: Rebuild.
2549 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2550 (GTM_restart_transaction): Fix uninstrumented code check.
2551 * retry.c (GTM_decide_retry_strategy): Add serial check.
2552 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2553 automatically go irrevokable when in serial mode.
2554 * clone.c: New file.
2555 * libitm.h, libitm.map: Update.
2557 2009-01-27 Richard Henderson <rth@redhat.com>
2559 * Makefile.am (LTCCASCOMPILE): Define.
2560 (libitm_la_SOURCES): Add methid-wbetl.c.
2561 * testsuite/Makefile.am: New
2562 * configure.ac: Add testsuite/Makefile.
2563 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2564 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2565 (_ITM_abortTransaction): Finalize implementation method; pass
2566 transaction properties to longjmp.
2567 (GTM_restart_transaction): Split out from ...
2568 (_ITM_commitTransaction): ... here.
2569 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2570 Move to config/x86/target.h.
2571 * config/linux/alpha/futex_bits.h: New.
2572 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2573 * config/x86/target.h: Disable target types for 32-bit.
2574 * config/alpha/sjlj.S, config/alpha/target.h: New.
2575 * libitm.h (struct gtm_dispatch): Add init, fini.
2576 (enum restart_reason): New.
2577 (struct gtm_transaction): Add method and restarts.
2578 * retry.c (GTM_decide_retry_strategy): Implement.
2579 * serial.c (serial_init, serial_fini): New.
2580 (GTM_serialmode): Finialize outgoing method.
2581 * method-wbetl.c: New.
2583 2008-12-09 Richard Henderson <rth@redhat.com>
2585 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2586 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2587 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2588 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2589 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2590 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2591 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2592 * serial.c (serial_R##T, serial_W##T): Likewise.
2594 2008-11-21 Richard Henderson <rth@redhat.com>
2598 Copyright (C) 2008-2023 Free Software Foundation, Inc.
2600 Copying and distribution of this file, with or without modification,
2601 are permitted in any medium without royalty provided the copyright
2602 notice and this notice are preserved.