1 2018-10-31 Joseph Myers <joseph@codesourcery.com>
4 * Makefile.am: Include multilib.am.
5 (AUTOMAKE_OPTIONS): Add info-in-builddir.
6 (CLEANFILES): Remove libitm.info.
7 * configure.ac: Remove AC_PREREQ.
8 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
12 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
15 * method-serial.cc: Mark varible as potentially unused
18 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
20 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
21 absolute relocation in a shared library.
23 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
26 * config/linux/x86/tls.h (SEG_READ): Use the offset of
28 (SEG_WRITE): Likewise.
29 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
30 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
31 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
32 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
33 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
35 2018-05-17 Jason Merrill <jason@redhat.com>
37 * beginend.cc (save): Disable -Werror=deprecated-copy.
39 2018-05-02 Tom de Vries <tom@codesourcery.com>
42 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
44 2018-05-02 Tom de Vries <tom@codesourcery.com>
47 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
49 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
51 * config/x86/sjlj.S (_ITM_beginTransaction): Add
52 (__CET__ & 2) != 0 check for shadow stack.
53 (GTM_longjmp): Likewise.
55 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
57 * configure: Regenerated.
59 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
62 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
64 2018-04-19 Jakub Jelinek <jakub@redhat.com>
66 * configure: Regenerated.
68 2018-04-18 David Malcolm <dmalcolm@redhat.com>
71 * configure: Regenerate.
73 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
76 * configure: Regenerate.
78 2018-01-03 Jakub Jelinek <jakub@redhat.com>
80 Update copyright years.
82 * libitm.texi: Bump @copying's copyright year.
84 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
86 * Makefile.in: Regenerate.
87 * acinclude.m4: Add enable.m4 and cet.m4.
88 * config/x86/sjlj.S: Include cet.h.
89 (_ITM_beginTransaction): Add _CET_ENDBR.
90 Save Shadow Stack pointer.
91 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
92 * config/x86/target.h (struct gtm_jmpbuf):
93 Add new field for Shadow Stack pointer.
94 * configure: Regenerate.
95 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
96 * configure.ac: Update libtool_VERSION for x86.
97 * testsuite/Makefile.in: Regenerate.
99 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
101 * libitm/config/x86/target.h: Add new field (ssp).
102 * libitm/config/x86/sjlj.S: Change offsets.
104 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106 * testsuite/lib/libitm.exp: Load scanlang.exp.
108 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
110 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
112 2017-01-21 Jakub Jelinek <jakub@redhat.com>
115 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
116 of cat to get version from BASE-VER file.
117 * testsuite/Makefile.in: Regenerated.
119 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
121 * config/x86/target.h (htm_available): Determine vendor from
122 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
124 2017-01-18 Torvald Riegel <triegel@redhat.com>
126 * config/x86/target.h (htm_available): Add check for some processors
127 on which TSX is broken.
129 2017-01-17 Jakub Jelinek <jakub@redhat.com>
132 * configure.ac: Add GCC_BASE_VER.
133 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
134 get version from BASE-VER file.
135 * testsuite/Makefile.in: Regenerated.
136 * configure: Regenerated.
137 * Makefile.in: Regenerated.
139 2017-01-04 Alan Modra <amodra@gmail.com>
141 * Makefile.in: Regenerate.
142 * testsuite/Makefile.in: Regenerate.
144 2017-01-01 Jakub Jelinek <jakub@redhat.com>
146 Update copyright years.
148 * libitm.texi: Bump @copying's copyright year.
150 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
152 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
153 * aclocal.m4: Regenerate.
154 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
155 LIBITM_CHECK_LINKER_HWCAP.
157 2016-11-15 Matthias Klose <doko@ubuntu.com>
159 * configure: Regenerate.
161 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
164 * util.cc (xmalloc): Use posix_memalign to allocate memory on
165 on cache line if requested.
167 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
169 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
170 function attribute to disable floating point in begin_transaction() on
172 * beginend.cc (begin_transaction): Use
173 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
175 2016-01-22 Torvald Riegel <triegel@redhat.com>
177 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
179 (htm_fastpath): Remove.
180 (gtm_thread::begin_transaction): Fix HTM fastpath.
181 (_ITM_commitTransaction): Adapt.
182 (_ITM_commitTransactionEH): Adapt.
183 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
185 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
186 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
187 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
188 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
189 * libitm/method-serial.cc (htm_mg): Adapt.
190 (gtm_thread::serialirr_mode): Adapt.
191 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
193 2016-01-21 Torvald Riegel <triegel@redhat.com>
195 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
198 2016-01-19 Richard Henderson <rth@redhat.com>
203 2016-01-13 Richard Henderson <rth@redhat.com>
205 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
206 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
207 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
208 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
209 * configure.ac (ARCH_AARCH64): New conditional.
210 (ARCH_PPC, ARCH_S390): Likewise.
211 * Makefile.in, configure: Rebuild.
213 * libitm.h (_ITM_TYPE_M128): Always define.
214 * vect64.cc: Split ...
215 * vect128.cc: ... out of...
216 * config/x86/x86_sse.cc: ... here.
217 * config/arm/neon.cc: New file.
219 2016-01-19 Torvald Riegel <triegel@redhat.com>
221 * local_type_traits: Remove file.
222 * libitm_i.h: Don't include it anymore.
223 (sized_integral): Remove.
225 2016-01-16 Torvald Riegel <triegel@redhat.com>
227 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
229 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
230 * libitm/testsuite/libitm.c/priv-1.c: New.
232 2015-01-15 Torvald Riegel <triegel@redhat.com>
234 testsuite/libitm.c++/libstdc++-safeexc.C: New.
236 2016-01-13 Torvald Riegel <triegel@redhat.com>
238 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
239 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
240 (gtm_rwlock::write_unlock): Likewise.
242 2016-01-13 Richard Henderson <rth@redhat.com>
244 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
245 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
246 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
247 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
248 * configure.ac (ARCH_AARCH64): New conditional.
249 (ARCH_PPC, ARCH_S390): Likewise.
250 * Makefile.in, configure: Rebuild.
252 * libitm.h (_ITM_TYPE_M128): Always define.
253 * vect64.cc: Split ...
254 * vect128.cc: ... out of...
255 * config/x86/x86_sse.cc: ... here.
256 * config/arm/neon.cc: New file.
258 2016-01-13 Torvald Riegel <triegel@redhat.com>
260 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
261 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
262 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
263 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
264 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
265 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
266 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
267 (serialirr_dispatch::snapshot_most_recent): New.
268 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
270 2016-01-12 Torvald Riegel <triegel@redhat.com>
272 * libitm_i.h (gtm_mask_stack): Remove.
273 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
274 * stmlock.h: Remove file.
275 * config/alpha/cacheline.h: Likewise.
276 * config/generic/cacheline.h: Likewise.
277 * config/powerpc/cacheline.h: Likewise.
278 * config/sparc/cacheline.h: Likewise.
279 * config/x86/cacheline.h: Likewise.
281 2016-01-04 Jakub Jelinek <jakub@redhat.com>
283 Update copyright years.
285 * libitm.texi: Bump @copying's copyright year.
287 2015-11-26 Torvald Riegel <triegel@redhat.com>
289 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
290 (ml_wt_dispatch::pre_write): Adapt.
291 (ml_wt_dispatch::pre_load): Likewise.
293 2015-11-22 Torvald Riegel <triegel@redhat.com>
295 * libitm_i.h (gtm_alloc_action): Remove union.
296 * testsuite/libitm.c/alloc-1.c: New.
298 2015-11-19 Torvald Riegel <triegel@redhat.com>
300 * testsuite/libitm.c++/eh-5.C: New.
301 * libitm.h (_ITM_cxa_free_exception): New.
302 * libitm.map (_ITM_cxa_free_exception): Add it.
303 * libitm.texi: Update ABI docs.
304 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
305 (gtm_transaction_cp::cxa_uncaught_count): Add.
306 (gtm_thread::cxa_unthrown): Remove.
307 (gtm_thread::cxa_uncaught_count_ptr): Add.
308 (gtm_thread::cxa_uncaught_count): Add.
309 (gtm_thread::drop_references_allocations): Rename to...
310 (gtm_thread::discard_allocation): ... this and adapt.
311 (gtm_thread::init_cpp_exceptions): New.
312 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
313 (gtm_thread::begin_transaction): Likewise.
314 (gtm_transaction_cp::save): Likewise.
315 (gtm_thread::trycommit): Likewise.
316 * eh_cpp.cc: Add overview comments.
317 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
318 (free_any_exception, _ITM_cxa_free_exception): New.
319 (gtm_thread::init_cpp_exceptions): Define.
320 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
321 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
322 (gtm_thread::revert_cpp_exceptions): Likewise.
324 2015-11-09 Torvald Riegel <triegel@redhat.com>
326 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
327 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
328 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
329 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
330 (gtm_thread::forget_allocations): New overload with size_t argument.
331 * alloc.c (gtm_thread::forget_allocation): Define new overload and
333 (gtm_thread::record_allocation): Adapt.
334 (gtm_thread::commit_allocations_1): Adapt.
335 (gtm_thread::commit_allocations_2): Adapt.
336 * testsuite/libitm.c++/newdelete.C: New.
338 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
339 Joseph Myers <joseph@codesourcery.com>
340 Mark Shinwell <shinwell@codesourcery.com>
341 Andrew Stubbs <ams@codesourcery.com>
342 Rich Felker <dalias@libc.org>
344 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
345 GTM_begin_transaction for compatibility with FDPIC.
347 2015-10-09 David Malcolm <dmalcolm@redhat.com>
349 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
352 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
355 * local_atomic (__always_inline): Rename to...
356 (__libitm_always_inline): ... this.
358 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
361 * config/powerpc/sjlj.S: Port to Xcode 2.5.
363 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
365 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
366 operands "op" and "val" to int.
368 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
370 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
371 "op" and "val" to int.
373 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
375 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
376 "op" and "val" to int.
378 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
380 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
381 Declare as static int.
382 (FUTEX_PRIVATE_FLAG): Remove L suffix.
383 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
385 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
387 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
390 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
392 * Makefile.in: Regenerated with automake-1.11.6.
393 * aclocal.m4: Likewise.
394 * configure: Likewise.
395 * testsuite/Makefile.in: Likewise.
397 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
399 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
400 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
402 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
405 * libitm.c/stackundo.c (test2): Make it static.
408 2015-01-05 Jakub Jelinek <jakub@redhat.com>
410 Update copyright years.
412 2015-01-05 Jakub Jelinek <jakub@redhat.com>
414 * libitm.texi: Bump @copying's copyright year.
416 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
418 * testsuite/lib/libitm.exp: Load target-utils.exp.
419 Move load of target-supports.exp earlier.
421 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
423 * configure.tgt (x86_64): Tune -m32 multilib to generic.
425 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
428 * configure: Regenerated.
430 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
433 * configure: Regenerate.
435 2014-10-06 Marek Polacek <polacek@redhat.com>
437 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
438 * testsuite/libitm.c/memset-1.c: Likewise.
440 2014-07-24 Richard Henderson <rth@redhat.com>
442 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
443 addressing mode in epilogue.
445 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
447 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
448 -mclear-hwcap instead.
449 * configure: Regenerate.
450 * clearcap.map: Remove.
452 2014-05-21 John Marino <gnugcc@marino.st>
454 * configure.tgt (*-*-dragonfly*): New target.
456 2014-05-19 Richard Henderson <rth@redhat.com>
458 * config/aarch64/sjlj.S: New file.
459 * config/aarch64/target.h: New file.
460 * configure.tgt: Enable aarch64.
462 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
464 * config/generic/asmcfi.h: Also check for
465 __GCC_HAVE_DWARF2_CFI_ASM.
467 2013-04-02 Richard Henderson <rth@redhat.com>
469 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
470 * config/arm/target.h, config/sh/target.h: Likewise.
471 * config/sparc/target.h, config/x86/target.h: Likewise.
473 2014-03-26 Jakub Jelinek <jakub@redhat.com>
475 * config/linux/futex_bits.h: Include errno.h.
476 (sys_futex0): If syscall returns -1, return -errno rather than
479 2014-03-26 Joseph Myers <joseph@codesourcery.com>
481 * libitm.texi (Index): Rename to Library Index.
483 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
486 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
487 (x86_avx.lo): Append -mavx to CXXFLAGS.
488 * Makefile.in: Regenerate.
490 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
492 Update copyright years
494 2014-01-02 Tobias Burnus <burnus@net-b.de>
496 * libitm.texi: Bump @copying's copyright year.
498 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
500 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
501 (FUNC): Define ELFv2 variant.
508 2013-09-20 Alan Modra <amodra@gmail.com>
510 * configure: Regenerate.
512 2013-08-30 Torvald Riegel <triegel@redhat.com>
514 * config/posix/rwlock.cc: Fix initialization order.
516 2013-08-30 Torvald Riegel <triegel@redhat.com>
518 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
519 (htm_fastpath): Assign an asm name.
520 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
522 (_ITM_actions): Likewise.
523 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
525 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
526 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
527 field to the start of the structure.
528 * config/linux/rwlock.h (gtm_rwlock): Update comments.
529 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
530 handling for custom HTM fast paths.
532 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
534 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
536 * configure.tgt: Add -msoft-float to XCFLAGS.
538 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
540 * configure.tgt: Add -msoft-float to XCFLAGS.
542 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
544 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
545 (htm_transaction_active): Enable zEC12 instructions in the
547 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
549 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
551 * acinclude.m4: Add htm asm check for s390.
552 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
553 * configure: Regenerate.
554 * config/s390/target.h: Remove __HTM__ check.
555 (htm_available): Call getauxval to get hwcaps and check whether
556 HTM is available or not.
558 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
560 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
561 * configure.ac: Use it.
562 (AC_CHECK_HEADERS): Check for sys/auxv.h.
563 (AC_CHECK_FUNCS): Check for getauxval.
564 * config.h.in, configure: Rebuild.
565 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
566 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
567 (USE_HTM_FASTPATH): Define.
568 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
569 _HTM_RETRIES) New macros.
570 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
571 htm_begin_success, htm_commit, htm_transaction_active): New functions.
573 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
575 * config/s390/target.h: Include htmintrin.h.
576 (_HTM_ITM_RETRIES): New macro definition.
577 (htm_available, htm_init, htm_begin, htm_begin_success)
578 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
580 2013-06-20 Iain Sandoe <iain@codesourcery.com>
581 Cesar Philippidis <cesar@codesourcery.com>
583 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
584 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
585 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
586 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
588 2013-06-20 Torvald Riegel <triegel@redhat.com>
590 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
591 (_ITM_getTransactionId): Same.
592 * config/x86/target.h (htm_transaction_active): New.
594 2013-06-20 Torvald Riegel <triegel@redhat.com>
597 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
600 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
603 * local_atomic (__always_inline): Always define our version.
604 (__calculate_memory_order): Mark inline.
605 (atomic_thread_fence): Ditto.
606 (atomic_signal_fence): Ditto.
607 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
608 (atomic_bool::atomic_flag_clear_explicit): Ditto.
609 (atomic_bool::atomic_flag_test_and_set): Ditto.
610 (atomic_bool::atomic_flag_clear): Ditto.
612 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
614 * config/s390/sjlj.S: New file.
615 * config/s390/target.h: New file.
616 * configure.tgt: Set options for S/390.
618 2013-03-23 Andi Kleen <ak@linux.intel.com>
620 * local_atomic (__always_inline): Add.
621 (__calculate_memory_order, atomic_thread_fence,
622 atomic_signal_fence, test_and_set, clear, store, load,
623 exchange, compare_exchange_weak, compare_exchange_strong,
624 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
625 Add __always_inline to force inlining.
627 2013-02-11 Iain Sandoe <iain@codesourcery.com>
628 Jack Howarth <howarth@bromo.med.uc.edu>
629 Patrick Marlier <patrick.marlier@gmail.com>
632 * alloc_cpp.cc: Enable function declarations on darwin.
633 * eh_cpp.cc: Likewise.
635 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
637 Update copyright years.
639 2012-11-09 Torvald Riegel <triegel@redhat.com>
641 * beginend.cc (htm_fastpath): New.
642 (gtm_thread::begin_transaction, _ITM_commitTransaction,
643 _ITM_commitTransactionEH): Add HTM fastpath handling.
644 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
645 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
646 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
647 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
648 * configure.tgt: Add -mrtm to XCFLAGS.
649 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
650 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
651 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
652 * retry.cc (parse_default_method): Add HTM method parsing.
653 (gtm_thread::number_of_threads_changed): Use HTM by default if
656 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
658 * configure: Regenerate.
660 2012-10-31 Richard Henderson <rth@redhat.com>
662 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
663 * configure.ac: Use it.
664 * config.h.in, configure: Rebuild.
665 * testsuite/Makefile.in: Rebuild.
667 2012-10-24 Torvald Riegel <triegel@redhat.com>
669 * libitm.texi: Clarify ABI requirements for data-logging functions.
671 2012-10-24 Torvald Riegel <triegel@redhat.com>
673 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
674 it requires serial mode instead of assuming that for certain
676 * dispatch.h (abi_dispatch::requires_serial): New.
677 (abi_dispatch::abi_dispatch): Adapt.
678 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
679 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
680 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
681 serial_dispatch::serial_dispatch,
682 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
684 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
686 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
687 and ia32 declarations some more.
688 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
690 2012-09-20 Jakub Jelinek <jakub@redhat.com>
693 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
694 * configure: Regenerate.
695 * Makefile.in: Regenerate.
697 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
699 * configure: Regenerated.
701 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
703 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
705 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
707 * eh_cpp.cc: Fix __cxa_end_catch declaration.
709 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
711 * configure: Regenerated.
713 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
716 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
719 2012-04-03 Tristan Gingold <gingold@adacore.com>
721 * configure: Regenerate.
723 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
726 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
728 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
730 * testsuite/lib/libitm.exp: load fortran-modules.exp
732 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
734 * configure.tgt (*-*-irix6*): Remove.
736 2012-03-13 Torvald Riegel <triegel@redhat.com>
739 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
742 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
744 * configure.tgt (*-*-osf*): Remove.
745 * configure: Regenerate.
747 2012-03-05 Torvald Riegel <triegel@redhat.com>
749 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
750 memtransfer/memset if size isn't larger than zero.
752 2012-03-02 Torvald Riegel <triegel@redhat.com>
754 * libitm.texi: Link to specification and add a usage example.
756 2012-02-24 Torvald Riegel <triegel@redhat.com>
758 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
759 default dispatch for more than 1 thread to ml_wt.
761 2012-02-20 Torvald Riegel <triegel@redhat.com>
763 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
765 2012-02-20 Torvald Riegel <triegel@redhat.com>
767 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
769 2012-02-20 Torvald Riegel <triegel@redhat.com>
771 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
772 serial mode corner cases made obsolete by prior gtm_rwlock changes.
773 (gl_wt_dispatch.rollback): Same.
775 2012-02-20 Torvald Riegel <triegel@redhat.com>
777 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
779 2012-02-20 Torvald Riegel <triegel@redhat.com>
781 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
782 for RfW src. Optimize number of calls to gtm_thr.
784 2012-02-20 Torvald Riegel <triegel@redhat.com>
786 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
788 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
789 (default_dispatch): Make atomic.
790 (GTM::gtm_thread::set_default_dispatch): Access atomically.
791 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
792 use decide_begin_dispatch() if default_dispatch might have changed.
793 (GTM::gtm_thread::number_of_threads_changed): Initialize
794 default_dispatch here.
796 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
797 Patrick Marlier <patrick.marlier@gmail.com>
800 * alloc_cpp.cc: No dummy definitions for darwin.
801 * eh_cpp.cc: Likewise.
803 2012-02-14 Richard Henderson <rth@redhat.com>
805 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
807 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
809 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
811 2012-02-14 Torvald Riegel <triegel@redhat.com>
813 * libitm_i.h (GTM::gtm_rwlog_entry): New.
814 (GTM::gtm_thread): Add read and write logs.
815 (GTM::dispatch_ml_wt): Declare.
816 * retry.cc (parse_default_method): Support ml_wt.
817 * method-ml.cc: New file.
818 * Makefile.am: Add method-ml.cc.
819 * Makefile.in: Regenerate.
821 2012-02-14 Torvald Riegel <triegel@redhat.com>
823 * dispatch.h (GTM::abi_dispatch::supports): New.
824 (GTM::method_group::reinit): New.
825 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
826 (GTM::gtm_thread::number_of_threads_changed): Check that the method
827 supports the current situation.
829 2012-02-14 Torvald Riegel <triegel@redhat.com>
831 * util.cc (GTM::xcalloc): New.
832 * common.h (GTM::xcalloc): Declare.
834 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
836 * config/sparc/target.h (cpu_relax): Read from CC register.
837 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
839 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
841 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
843 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
845 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
846 * config/sparc/cacheline.h: New file.
847 * config/sparc/target.h: Likewise.
848 * config/sparc/sjlj.S: Likewise.
849 * config/linux/sparc/futex_bits.h: Likewise.
851 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
853 * configure.ac (link_itm): Fix comment.
854 * configure: Regenerate.
855 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
857 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
860 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
861 Correct libgomp references.
863 2012-01-24 Torvald Riegel <triegel@redhat.com>
865 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
868 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
870 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
872 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
873 offset values. Do not copy return address. Decrement stack
875 (GTM_longjump) [__x86_64__]: Update offset values.
877 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
880 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
881 the first function argument to %eax.
883 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
885 * libitm.h (_ITM_getThreadnum): Remove.
886 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
888 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
890 * clearcap.map: New file.
891 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
892 * configure.ac: Call it.
893 Clear HWCAP_LDFLAGS if defaulting to -mavx.
894 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
895 * configure: Regenerate.
896 * Makefile.in: Regenerate.
897 * testsuite/Makefile.in: Regenerate.
899 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
902 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
903 include, exclude options.
905 2012-01-14 Torvald Riegel <triegel@redhat.com>
907 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
909 * containers.h (GTM::vector::set_size): New.
911 2012-01-14 Torvald Riegel <triegel@redhat.com>
914 * config/generic/tls.h (GTM::mask_stack_top): New.
915 (GTM::mask_stack_bottom): Declare.
916 * config/generic/tls.c (GTM::mask_stack_bottom): New.
917 * local.cc (gtm_undolog::rollback): Filter out any updates that
918 overlap the libitm stack. Add current transaction as parameter.
919 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
920 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
921 * testsuite/libitm.c/stackundo.c: New test.
923 2012-01-10 Richard Henderson <rth@redhat.com>
925 * libitm_i.h (_Unwind_DeleteException): Declare weak.
926 * eh_cpp.cc (_Unwind_DeleteException): Define for
927 !HAVE_ELF_STYLE_WEAKREF.
929 2012-01-08 Torvald Riegel <triegel@redhat.com>
931 * local.cc (GTM_LB): Use GTM::gtm_undolog.
932 (GTM::gtm_thread::drop_references_undolog): Remove.
933 (GTM::gtm_thread::commit_undolog,
934 GTM::gtm_thread::rollback_undolog): Move to ...
935 * libitm_i.h (GTM::gtm_undolog): ...here. New.
936 (GTM::gtm_undolog_entry): Remove.
937 (GTM::gtm_thread): Adapt.
938 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
939 (GTM::gtm_thread::trycommit): Adapt.
940 * method-serial.cc (serial_dispatch::log): Adapt.
941 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
942 (gl_wt_dispatch::store): Fix likely/unlikely.
943 * containers.h (GTM::vector::resize): Add additional_capacity
944 parameter and handle it.
945 (GTM::vector::resize_noinline): New/adapt.
946 (GTM::vector::push): New.
948 2012-01-06 Richard Henderson <rth@redhat.com>
950 * configure.tgt: Support powerpc-linux and powerpc-darwin.
951 * config/linux/powerpc/futex_bits.h: New file.
952 * config/powerpc/cacheline.h: New file.
953 * config/powerpc/sjlj.S: New file.
954 * config/powerpc/target.h: New file.
955 * config/generic/asmcfi.h (cfi_offset): New.
956 (cfi_restore, cfi_undefined): New.
958 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
961 * testsuite/libitm.c/reentrant.c: Remove xfail.
962 (thread): Pass x to pure().
963 From Patrik Marlier <patrick.marlier@gmail.com>.
965 2011-12-24 Torvald Riegel <triegel@redhat.com>
967 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
968 privatization safety if already in serial mode.
970 2011-12-24 Torvald Riegel <triegel@redhat.com>
972 * beginend.cc (GTM::gtm_thread::restart): Add and handle
973 finish_serial_upgrade parameter.
974 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
975 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
976 Don't unset reader flag.
977 (GTM::gtm_rwlock::write_upgrade_finish): New.
978 * config/posix/rwlock.cc: Same.
979 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
981 * config/posix/rwlock.h: Same.
982 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
983 flag after commit or after rollback when restarting.
985 2011-12-24 Torvald Riegel <triegel@redhat.com>
987 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
988 (GTM::gtm_thread::try_commit): Changed memory order.
989 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
991 * config/linux/x86/futex_bits.h (sys_futex0): Same.
992 * config/linux/sh/futex_bits.h (sys_futex0): Same.
993 * config/linux/futex_bits.h (sys_futex0): Same.
994 * config/linux/futex.cc (futex_wait, futex_wake): Same.
995 * config/linux/futex.h (futex_wait, futex_wake): Same.
996 * config/linux/rwlock.h (gtm_rwlock::writers,
997 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
999 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1000 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1001 gtm_rwlock::write_unlock): Fix memory orders and fences.
1002 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1003 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1004 gtm_rwlock::write_unlock): Same.
1005 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1006 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1007 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1009 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1010 gl_wt_dispatch::load, gl_wt_dispatch::store,
1011 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1012 orders and fences. Add comments.
1014 2011-12-21 Jakub Jelinek <jakub@redhat.com>
1016 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1017 * Makefile.in: Regenerated.
1019 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1021 * configure.tgt: Add sh* case.
1022 * config/sh/target.h: New file.
1023 * config/sh/sjlj.S: New file.
1024 * config/linux/sh/futex_bits.h: New file.
1026 2011-12-14 Richard Henderson <rth@redhat.com>
1028 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1029 * config/arm/sjlj.S, config/arm/target.h: New files.
1030 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1031 (cfi_rel_offset): New.
1032 * config/linux/futex_bits.h: New file.
1033 * config/linux/futex.cc: Include futex_bits.h here...
1034 * config/linux/futex.h: ... not here.
1035 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1036 * configure.ac (ARCH_AM): New conditional.
1037 * Makefile.in, configure: Rebuild.
1038 * configure.tgt: Handle ARM.
1040 2011-12-13 Richard Henderson <rth@redhat.com>
1042 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1043 signed/unsigned comparison werror.
1045 * local_atomic: New file.
1046 * libitm_i.h: Include it.
1047 (gtm_thread::shared_state): Use atomic template.
1048 * beginend.cc (GTM::gtm_clock): Use atomic template.
1049 (global_tid): Use atomic template if 64-bit atomics available.
1050 (gtm_thread::gtm_thread): Update shared_state access.
1051 (gtm_thread::trycommit): Likewise.
1052 (choose_code_path): Update global_tid access.
1053 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1054 * stmlock.h (GTM::gtm_clock): Use atomic template.
1055 (gtm_get_clock, gtm_inc_clock): Update accesses.
1056 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1057 redundant __sync_synchronize after atomic shared_state access.
1058 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1059 (gtm_rwlock::write_lock_generic): Likewise.
1060 (gtm_rwlock::read_unlock): Likewise.
1061 * config/alpha/target.h (atomic_read_barrier): Remove.
1062 (atomic_write_barrier): Remove.
1063 * config/x86/target.h (atomic_read_barrier): Remove.
1064 (atomic_write_barrier): Remove.
1066 2011-11-30 Richard Henderson <rth@redhat.com>
1068 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1069 * beginend.c (_ITM_abortTransaction): Update to match.
1070 (GTM::gtm_thread::restart): Likewise.
1071 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1072 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1074 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1076 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1077 * Makefile.in: Regenerate.
1079 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1081 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1082 * alloc_cpp.cc: Generate dummy functions if we don't
1083 HAVE_ELF_STYLE_WEAKREF.
1084 * eh_cpp.cc: Likewise.
1085 * configure: Regenerate.
1086 * aclocal.m4: Likewise.
1087 * config.h.in: Likewise.
1088 * Makefile.in: Likewise.
1089 * testsuite/Makefile.in: Likewise.
1091 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1093 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1094 __USER_LABEL_PREFIX__ for targets that use it.
1095 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1096 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1097 in portability to non-elf targets.
1098 (GTM_longjmp): Likewise.
1099 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1102 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1104 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1105 * testsuite/libitm.c/memset-1.c: Likewise.
1107 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1109 * configure: Regenerate.
1111 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1113 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1114 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1115 * Makefile.am: Handle sun style versioning.
1116 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1117 * configure: Regenerate.
1118 * Makefile.in: Regenerate.
1120 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1122 * config/generic/asmcfi.h: Fix comment.
1123 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1124 sequence without .hidden support, error for non-ELF targets.
1125 (GTM_longjmp) [__ELF__]: Only use .hidden if
1126 HAVE_ATTRIBUTE_VISIBILITY.
1128 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1130 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1131 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1133 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1134 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1136 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
1139 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1140 * configure: Regenerate.
1142 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1144 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1146 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1148 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1150 (.note.GNU-stack): Only use if __linux__.
1151 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1152 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1153 * testsuite/libitm.c/reentrant.c: Likewise.
1154 * testsuite/libitm.c/simple-2.c: Likewise.
1155 * testsuite/libitm.c/txrelease.c: Likewise.
1156 * testsuite/libitm.c++/static_ctor.C: Likewise.
1158 2011-11-10 Richard Henderson <rth@redhat.com>
1160 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1161 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1162 * configure.ac (ARCH_X86_AVX): New conditional.
1163 * Makefile.in, configure: Rebuild.
1165 2011-11-09 Richard Henderson <rth@redhat.com>
1167 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1168 * configure.ac: Use it.
1169 * config.h.in, configure: Rebuild.
1170 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1172 2011-11-09 Richard Henderson <rth@redhat.com>
1174 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1175 * config/alpha/unaligned.h: Remove file.
1176 * config/generic/unaligned.h: Remove file.
1177 * config/x86/unaligned.h: Remove file.
1178 * config/generic/cachepage.h: Remove file.
1179 * config/posix/cachepage.cc: Remove file.
1180 * config/generic/cacheline.cc: Remove file.
1181 * config/x86/cacheline.cc: Remove file.
1182 * config/generic/cacheline.h (gtm_cacheline): Remove the
1183 store_mask, copy_mask, copy_mask_wb methods.
1184 * config/x86/cacheline.h: Likewise.
1185 * config/alpha/cacheline.h: Fall back to generic after setting size.
1186 * config/generic/tls.cc (gtm_mask_stack): Remove.
1187 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1188 (GTM_vpalignr_table): Remove.
1189 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1190 (GTM_pshift_table): Remove.
1191 * config/libitm_i.h: Don't include cachepage.h.
1192 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1193 * Makefile.in, testsuite/Makefile.in: Rebuild.
1195 2011-11-09 Richard Henderson <rth@redhat.com>
1197 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1198 to emit branch prediction hint.
1200 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1201 Protect .note.GNU-stack with __linux__.
1203 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1204 * configure, aclocal.m4, config.h.in: Rebuild.
1205 * config/generic/asmcfi.h: New file.
1206 * config/x86/sjlj.S: Use it.
1208 2011-11-08 Richard Henderson <rth@redhat.com>
1210 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1212 2011-11-08 Richard Henderson <rth@redhat.com>
1214 * configure.tgt: Test correct directory for supported cpus.
1216 * configure.ac: Exit if unsupported.
1217 * configure: Rebuild.
1218 * configure.tgt: Delete boilerplate from libgomp for unsupported
1219 targets. Set UNSUPPORTED for unsupported targets.
1221 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1223 * configure.tgt: Handle i386 like i[456]86.
1224 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1226 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1227 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1229 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
1231 * method-wbetl.cc: Update copyright notice.
1237 * barrier.tpl: Same.
1238 * useraction.cc: Same.
1242 * config/generic/tls.cc: Same.
1243 * config/generic/cacheline.h: Same.
1244 * config/generic/cachepage.h: Same.
1245 * config/generic/cacheline.cc: Same.
1246 * config/generic/unaligned.h: Same.
1247 * config/x86/cacheline.h: Same.
1248 * config/x86/cacheline.cc: Same.
1249 * config/x86/unaligned.h: Same.
1250 * config/alpha/cacheline.h: Same.
1251 * config/alpha/unaligned.h: Same.
1252 * config/alpha/sjlj.S: Same.
1253 * config/posix/cachepage.cc: Same.
1254 * config/linux/futex.h: Same.
1255 * config/linux/alpha/futex_bits.h: Same.
1257 2011-11-04 Torvald Riegel <triegel@redhat.com>
1259 * libitm.texi: No cover text and invariant sections.
1261 2011-11-03 Richard Henderson <rth@redhat.com>
1263 * local_type_traits: New file.
1264 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1266 2011-11-03 Richard Henderson <rth@redhat.com>
1268 * configure.ac: Don't test for gfortran.
1269 * configure: Rebuild.
1271 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1272 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1274 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1276 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1277 * testsuite/libitm.c/memset-1.c: Same.
1278 * testsuite/libitm.c/c.exp: Same.
1279 * testsuite/lib/libitm-dg.exp: Same.
1280 * testsuite/lib/libitm.exp: Same.
1281 * testsuite/libitm.c++/c++.exp: Same.
1283 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1285 * testsuite/config/default.exp: Update copyright date.
1286 * configure.ac: Add copyright info.
1287 * configure.tgt: Same.
1289 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1291 * testsuite/libitm.c/reentrant.c: XFAIL.
1292 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1294 2011-10-29 Torvald Riegel <triegel@redhat.com>
1296 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1298 (_ITM_abortTransaction): Handle aborts of outer transactions.
1300 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1301 * libitm.texi: Document aborts of outer transactions.
1302 * testsuite/libitm.c/cancel.c: New file.
1304 2011-10-19 Torvald Riegel <triegel@redhat.com>
1306 * testsuite/*: Change __transaction to __transaction_atomic or
1307 __transaction_relaxed.
1309 2011-10-19 Torvald Riegel <triegel@redhat.com>
1311 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1314 2011-10-19 Torvald Riegel <triegel@redhat.com>
1316 * libitm_i.h: Add gl_wt dispatch.
1317 * retry.cc (parse_default_method): Same.
1318 * method-gl.cc: New file.
1319 * Makefile.am: Use method-gl.cc.
1320 * Makefile.in: Rebuild.
1322 2011-10-19 Torvald Riegel <triegel@redhat.com>
1324 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1325 safety if requested by a TM method.
1326 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1327 privatization safety.
1328 * method-serial.cc: Same.
1330 2011-10-19 Torvald Riegel <triegel@redhat.com>
1332 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1333 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1334 undolog-related member functions from *_local to *_undolog.
1335 * local.cc (gtm_thread::commit_undolog): Same.
1336 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1337 (GTM::gtm_thread::rollback): Roll back undolog before
1338 dispatch-specific rollback.
1340 2011-10-19 Torvald Riegel <triegel@redhat.com>
1342 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1343 re-initialization of the current method group.
1344 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1346 2011-10-19 Torvald Riegel <triegel@redhat.com>
1348 * alloc.cc (commit_allocations_2): Do not free transaction-local
1349 memory when committing a nested transaction.
1351 2011-10-19 Torvald Riegel <triegel@redhat.com>
1353 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1354 serial-irrevocable dispatch, not serial.
1356 2011-10-19 Torvald Riegel <triegel@redhat.com>
1358 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1360 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1361 * method-serial.cc: Implement begin_or_restart().
1362 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1363 dispatch-specific begin_or_restart().
1364 (GTM::gtm_thread::restart): Same.
1366 2011-08-23 Torvald Riegel <triegel@redhat.com>
1368 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1369 restarting without switching to serial mode.
1370 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1371 transaction state. Choose closed-nesting alternative if available.
1372 (GTM::gtm_thread::set_default_dispatch): New.
1373 (parse_default_method): New.
1374 (GTM::gtm_thread::number_of_threads_changed): New.
1375 * method-serial.cc (GTM::serial_mg): New method group class.
1376 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1378 (GTM::serial_dispatch): Same.
1379 (GTM::serialirr_onwrite_dispatch): Same.
1380 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1381 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1383 (GTM::gtm_thread::gtm_thread): Same.
1384 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1385 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1386 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1387 choose dispatch but set state according to dispatch here.
1388 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1389 (GTM::method_group): New class.
1390 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1391 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1392 * libitm.texi: Document TM methods, method groups, method life cycle.
1393 Rename method sets to method groups.
1395 2011-08-23 Torvald Riegel <triegel@redhat.com>
1397 * config/x86/tls.h: Moved to ...
1398 * config/linux/x86/tls.h: ... here.
1400 2011-08-23 Torvald Riegel <triegel@redhat.com>
1402 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1404 * config/x86/sjlj.S: Same.
1406 2011-08-19 Torvald Riegel <triegel@redhat.com>
1408 * config/linux/rwlock.h: New file.
1409 * config/linux/rwlock.c: New file.
1410 * configure.ac: Reenable futex support (undo SVN rev 157758).
1411 * Makefile.am: Same.
1412 * configure.tgt: Same.
1413 * config/linux/alpha/futex_bits.h: Same.
1414 * config/linux/futex.h: Same. Return number of woken processes.
1415 * config/linux/futex.cc: Same.
1416 (futex_wait): Remove spinning.
1417 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1418 Use __x86_64__ instead of __LP64__.
1419 * aclocal.m4: Include generic futex checks.
1420 * configure: Rebuild.
1421 * Makefile.in: Rebuild.
1422 * testsuite/Makefile.in: Rebuild.
1423 * beginend.cc: Include pthread.h.
1424 * config/posix/cachepage.cc: Same.
1426 2011-08-12 Torvald Riegel <triegel@redhat.com>
1428 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1429 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1431 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1433 (GTM::gtm_thread::thread_num): Removed.
1434 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1435 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1436 tx-to-thread renaming.
1437 * beginend.cc: Adapted to tx-to-thread renaming.
1438 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1439 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1440 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1441 gtm_transaction to gtm_thread.
1442 (_ITM_getThreadnum): Removed. Not supported anymore.
1443 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1444 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1445 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1446 gtm_tx-to-gtm_thr renaming if necessary.
1453 * alloc_cpp.cc: Same.
1454 * method-serial.cc: Same.
1455 * config/generic/tls.cc: Same.
1456 * config/posix/rwlock.h (gtm_rwlock): Same.
1457 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1459 2011-08-12 Torvald Riegel <triegel@redhat.com>
1461 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1463 (gtm_rwlock::read_unlock): Same.
1464 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1465 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1466 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1467 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1468 w_upgrade. Replaced by per-transaction flags (in shared_state).
1469 Added c_confirmed_writers.
1470 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1471 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1472 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1473 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1474 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1475 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1476 * libitm.texi: Document locking conventions and implementations in
1479 2011-08-12 Torvald Riegel <triegel@redhat.com>
1481 * libitm_i.h (next_tx): Add list of all threads' transaction.
1482 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1483 transaction with list of transactions and ...
1484 (thread_exit_handler): ... deregister here.
1485 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1486 * config/x86/target.h: Same.
1488 2011-08-12 Torvald Riegel <triegel@redhat.com>
1490 * testsuite/libitm.c++/static_ctor.C: New file.
1492 2011-08-12 Torvald Riegel <triegel@redhat.com>
1494 * testsuite/libitm.c/reentrant.c: New file.
1496 2011-08-12 Torvald Riegel <triegel@redhat.com>
1498 * config/generic/tls.h: Remove the free list for transactions and ...
1499 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1500 (GTM::gtm_transaction::operator delete): ... and release here.
1501 (thread_exit_handler): New. Delete tx when thread terminates.
1502 (thread_exit_init): New.
1503 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1504 * testsuite/libitm.c/txrelease.c: New file.
1506 2011-08-12 Torvald Riegel <triegel@redhat.com>
1508 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1509 * testsuite/libitm.c/notx.c: New file.
1511 2011-08-12 Torvald Riegel <triegel@redhat.com>
1513 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1514 * libitm_i.h (local_tid): ... to here.
1515 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1516 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1518 2011-08-12 Torvald Riegel <triegel@redhat.com>
1520 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1521 serialirr_onwrite_dispatch as new default for now.
1522 * method-serial.cc (serialirr_onwrite_dispatch): New.
1523 (GTM::dispatch_serialirr_onwrite): New.
1526 2011-08-12 Torvald Riegel <triegel@redhat.com>
1528 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1529 * query.cc (_ITM_getTransactionId): There is no active transaction if
1530 the current nesting level is zero.
1532 2011-07-28 Torvald Riegel <triegel@redhat.com>
1534 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1537 2011-07-28 Torvald Riegel <triegel@redhat.com>
1539 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1540 transaction properties from the caller instead of from the
1543 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1545 2011-07-28 Torvald Riegel <triegel@redhat.com>
1547 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1548 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1550 * method-serial.cc: Same.
1551 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1552 flat nesting as default, and closed nesting on demand.
1553 (GTM::gtm_transaction::rollback): Same.
1554 (_ITM_abortTransaction): Same.
1555 (GTM::gtm_transaction::restart): Same.
1556 (GTM::gtm_transaction::trycommit): Same.
1557 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1558 (choose_code_path): New.
1559 (GTM::gtm_transaction_cp::save): New.
1560 (GTM::gtm_transaction_cp::commit): New.
1561 * query.cc (_ITM_inTransaction): Support flat nesting.
1562 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1563 (GTM::gtm_transaction): Support flat and closed nesting.
1564 * alloc.cc (commit_allocations_2): New.
1565 (commit_cb_data): New helper struct.
1566 (GTM::gtm_transaction::commit_allocations): Handle nested
1568 * libitm.texi: Update user action section, add description of nesting.
1570 2011-07-28 Torvald Riegel <triegel@redhat.com>
1572 * libitm_i.h: Add closed nesting as restart reason.
1573 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1575 2011-07-28 Torvald Riegel <triegel@redhat.com>
1577 * useraction.cc: Use vector instead of list to store actions.
1578 Also support partial rollbacks for closed nesting.
1579 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1580 * beginend.cc: Same.
1582 2011-07-28 Torvald Riegel <triegel@redhat.com>
1584 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1585 closed_nesting flags, as well as a closed nesting alternative.
1586 * method-serial.cc: Same.
1587 (serial_dispatch): Renamed to serialirr_dispatch.
1588 (GTM::dispatch_serialirr): Same.
1589 (serial_dispatch_ul): Renamed to serial_dispatch.
1590 (GTM::dispatch_serial): Same.
1592 2011-07-28 Torvald Riegel <triegel@redhat.com>
1594 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1596 2011-07-28 Torvald Riegel <triegel@redhat.com>
1598 * aatree.h (aa_tree::remove): New.
1599 (aa_tree::operator new): Add placement new.
1601 2011-07-02 Torvald Riegel <triegel@redhat.com>
1603 * containers.h: New file.
1604 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1605 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1606 * common.h: ... to here.
1607 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1610 2011-06-30 Torvald Riegel <triegel@redhat.com>
1612 * libitm_i.h (STATE_ABORTING): Remove.
1613 * beginend.cc (_ITM_abortTransaction): Same.
1614 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1615 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1616 (_ITM_rollbackTransaction): Remove.
1617 * beginend.cc: Same.
1619 * libitm.texi: Document these ABI changes.
1621 2011-06-30 Torvald Riegel <triegel@redhat.com>
1623 * libitm.texi: New file.
1624 * Makefile.am: Add libitm.texi.
1625 * Makefile.in: Rebuild.
1627 2011-06-30 Torvald Riegel <triegel@redhat.com>
1629 * libitm_i.h: Move parts to common.h and dispatch.h.
1630 * common.h: New file.
1631 * dispatch.h: New file, new dispatch class.
1632 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1633 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1634 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1635 decision to retry.cc.
1636 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1638 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1639 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1641 * barrier.cc: Use new barriers definitions.
1642 (abi_dispatch::memmove_overlap_check): New.
1643 * config/x86/x86_sse.cc: Same.
1644 * config/x86/x86_avx.cc: Same.
1645 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1647 * Makefile.in: Rebuild.
1648 * method-readonly.cc: Remove.
1649 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1650 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1652 2011-06-30 Torvald Riegel <triegel@redhat.com>
1654 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1655 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1656 * testsuite/libitm.c/dropref-2.c: Same.
1657 * testsuite/libitm.c/dropref.c: Same.
1659 2011-06-30 Torvald Riegel <triegel@redhat.com>
1661 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1662 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1663 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1665 * barrier.tpl: Same.
1667 * config/generic/tls.h: Same.
1668 * config/x86/tls.h: Same.
1672 * method-readonly.cc: Same.
1673 * method-serial.cc: Same.
1674 * method-wbetl.cc: Same.
1677 2011-03-03 Richard Henderson <rth@redhat.com>
1679 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1680 From Patrik Marlier <patrick.marlier@unine.ch>.
1682 2011-02-03 Richard Henderson <rth@redhat.com>
1684 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1685 * configure.ac: Use it.
1686 * configure, config.h.in: Rebuild.
1687 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1688 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1689 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1690 * libitm.map: Use wildcards to match size_t mangling.
1692 2010-12-14 Richard Henderson <rth@redhat.com>
1694 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1695 blocks of TIDs per thread.
1696 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1697 (setup_gtm_thr): Return the thread structure.
1698 * config/x86/tls.h (setup_gtm_thr): Likewise.
1700 2010-12-14 Richard Henderson <rth@redhat.com>
1702 * clone.cc (table_lock): Remove.
1703 (find_clone): Don't take it.
1704 (ExcludeTransaction): New helper class.
1705 (_ITM_registerTMCloneTable): Use it.
1706 (_ITM_deregisterTMCloneTable): Likewise.
1708 2010-12-14 Richard Henderson <rth@redhat.com>
1710 * config/x86/tls.h: New file.
1712 2010-07-15 Richard Henderson <rth@redhat.com>
1714 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1715 * Makefile.in: Rebuild.
1717 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1719 * method-wbetl.cc (trydropreference): Fix source line.
1721 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1723 * libitm.h: Add comment.
1724 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1726 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1728 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1729 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1730 available, use pthread mutexes.
1731 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1732 * config.h.in: Regenerate.
1733 * configure: Regenerate.
1735 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1737 * libitm.h (ITM_PURE): Define.
1738 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1740 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1742 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1743 (validate): Add comment.
1744 (trydropreference): New.
1745 * method-readonly.cc (class readonly_dispatch): Add
1747 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1748 Call trydropreference().
1749 * libitm.h (_ITM_dropReferences): Remove const attribute.
1750 * method-serial.cc (class serial_dispatch): Add trydropreference.
1751 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1753 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1755 * memcpy.cc (do_memcpy): Comment.
1757 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1759 * barrier.tpl: Add comments throughout.
1761 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1763 * method-wbetl.cc (struct w_entry): Add comments.
1767 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1769 * alloc_c.cc (_ITM_dropReferences): New.
1770 * libitm.map (_ITM_dropReferences): Add.
1771 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1772 * libitm_i.h (struct gtm_transaction): Declare
1773 drop_references_allocations and drop_references_local.
1774 * local.cc (rollback_local): Ignore memory when applicable.
1775 (drop_references_local): New.
1777 2010-06-23 Richard Henderson <rth@redhat.com>
1779 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1780 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1781 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1782 * config/alpha/target.h: Likewise.
1783 * config/generic/tls.cc (gtm_mask_stack): Use it.
1785 2010-06-23 Richard Henderson <rth@redhat.com>
1787 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1788 a mutex instead of trying a lock-free compare-and-swap on the list.
1789 (gtm_cacheline_page::operator delete): Likewise.
1791 2010-06-16 Richard Henderson <rth@redhat.com>
1793 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1794 that overlap the libitm stack.
1795 * barrier.tpl: Mark incoming stack.
1796 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1797 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1798 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1799 * memcpy.cc, memset.cc: Likewise.
1800 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1801 * config/generic/tls.h (gtm_thread): Add stack_top member.
1802 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1803 * libitm_i.h (gtm_mask_stack): Declare.
1804 * config/generic/tls.cc: New file.
1805 * Makefile.am (libitm_la_SOURCES): Add it.
1806 (AM_CXXFLAGS): Turn off exceptions.
1807 * Makefile.in: Rebuild.
1809 2010-06-16 Richard Henderson <rth@redhat.com>
1811 * alloc.cc (struct gtm_alloc_action): Move definition ...
1812 * libitm_i.h: ... here.
1813 (class gtm_transaction): Declare new and delete.
1814 * beginend.cc (alloc_tx): Reformulate as operator new.
1815 (free_tx): Reformulate as operator delete.
1816 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1818 2010-06-11 Richard Henderson <rth@redhat.com>
1820 * clone.cc (clone_entry_compare): Fix typo.
1821 From Patrik Marlier <patrick.marlier@unine.ch>.
1823 2010-05-13 Richard Henderson <rth@redhat.com>
1825 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1828 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1830 * libitm_i.h (struct gtm_transaction): Remove
1831 get_allocation_size.
1832 (record_allocation): Remove size parameter.
1833 * libitm.map (_ITM_realloc): Remove.
1834 * alloc_c.cc (_ITM_realloc): Remove.
1835 (_ITM_malloc): Remove size argument to record_allocation.
1836 (_ITM_calloc): Same.
1837 * alloc_cpp.cc (_ZGTtnwm): Same.
1838 (_ZGTtnwmRKSt9nothrow_t): Same.
1840 (_ZGTtnamRKSt9nothrow_t): Same.
1841 * alloc.cc (struct gtm_alloc_action): Remove size.
1842 (get_allocation_size): Remove.
1843 (commit_allocations): Add comment.
1844 (record_allocation): Remove size parameter.
1845 (forget_allocation): Remove set of size.
1847 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1849 * Makefile.am (abi_version): New.
1850 (AM_CXXFLAGS): Pass abi_version.
1851 * Makefile.in: Regenerate.
1852 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1854 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1856 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1857 _ITM_getTMCloneOrIrrevokable.
1858 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1859 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1861 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1863 * configure.ac: Remove Linux futex support.
1864 * configure.tgt (config_path): Same.
1865 * Makefile.am: Same.
1866 * config/linux: Remove entire directory.
1867 * configure: Rebuild.
1868 * Makefile.in: Rebuild.
1869 * testsuite/Makefile.in: Rebuild.
1871 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1873 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1874 switching to serial mode.
1875 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1877 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1879 * configure.tgt: Add emacs -*- tags.
1880 * barrier.tpl: Same.
1882 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1884 * Makefile.am: Rename serial.cc to method-serial.cc.
1885 * Makefile.in: Regenerate with automake 1.11.1.
1886 * testsuite/Makefile.in: Same.
1887 * aclocal.m4: Regenerate with aclocal 1.11.1.
1888 * method-serial.cc: Rename from serial.cc.
1889 * libitm_i.h (struct gtm_transaction): Update comment on
1892 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1894 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1895 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1897 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1899 * configure: Rebuild.
1901 2009-11-12 Richard Henderson <rth@redhat.com>
1903 * Rewrite everything in C++.
1905 2009-11-03 Richard Henderson <rth@redhat.com>
1907 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1908 * Makefile.am (libitm_la_SOURCES): Add them.
1909 * configure.ac (ARCH_X86): New conditional.
1910 * Makefile.in, configure: Rebuild.
1911 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1912 Move futex setup into "other system configury" case.
1913 * local.c (rollback_local): Merge into ...
1914 (GTM_rollback_local): ... here.
1915 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1916 (_ITM_LB): Define as an alias to GTM_LB.
1918 2009-11-03 Richard Henderson <rth@redhat.com>
1920 * method-readonly.c: New file.
1921 * Makefile.am (libitm_la_SOURCES): Add it.
1922 * Makefile.in: Rebuild.
1923 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1924 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1925 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1926 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1927 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1928 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1929 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1930 gtm_get_clock, gtm_inc_clock): New.
1931 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1932 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1933 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1934 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1935 replace uses with new libitm_i.h symbols.
1936 (dispatch_wbetl): Rename from wbetl_dispatch.
1937 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1938 away from dispatch_readonly; abort if the beginTransaction call
1939 asserted that the transaction was readonly.
1941 2009-11-03 Richard Henderson <rth@redhat.com>
1943 * memset.c: New file.
1944 * Makefile.am (libitm_la_SOURCES): Add it.
1945 * Makefile.in: Rebuild.
1946 * testsuite/libitm.c/memset-1.c: New.
1948 2009-11-03 Richard Henderson <rth@redhat.com>
1950 * dispatch.c: Remove file.
1951 * useraction.c (struct gtm_user_action): Move from libitm.h.
1952 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1953 (serial_memset, serial_memmove, serial_memcpy): Remove.
1954 (serial_W*, serial_R*): Remove.
1955 (serial_dispatch): Update to match.
1956 * configure.ac: Move Werror down below configure checks. Don't
1957 check for sys/loadavg.h, do check for malloc.h. Don't check for
1958 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1959 Use GCC_AC_FUNC_MMAP_BLACKLIST
1960 * libitm.h: Split out all internal items to...
1961 * libitm_i.h: ... here. New file.
1962 * copymask.c: New file.
1963 * local.c (struct gtm_local_undo): Move from libitm.h.
1964 (GTM_alloc_local): Rename from alloc_local; export.
1965 * memcpy.c: New file.
1966 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1967 * config/posix/page.c: New file.
1968 * config/posix/target_tls.h: Remove file.
1969 * barrier.c: New file.
1970 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1972 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1973 * method-wbetl.c: Rewrite for new cacheline methods.
1974 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1976 * config/alpha/sjlj.S: Fix typo.
1977 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1978 * config/alpha/copymask.c: New file.
1979 * config/alpha/target.h (CACHELINE_SIZE): New.
1980 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1982 * config/x86/target_i.h: Copy functions from x86/target.h.
1983 * config/x86/copymask.c: New file.
1984 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1985 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1986 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1987 * config/x86/target_tls.h: Move contents to target_i.h.
1989 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1990 * testsuite/libitm.c/memcpy-1.c: New.
1992 2009-10-22 Richard Henderson <rth@redhat.com>
1994 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1995 (AM_CCASFLAGS): New.
1996 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1997 saving/restoring _AC_ARG_VAR_PRECIOUS.
1998 * Makefile.in, aclocal.m4, config.h.in, configure,
1999 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2001 2009-10-22 Richard Henderson <rth@redhat.com>
2003 * testsuite/*: Update for new compiler syntax.
2005 2009-10-21 Richard Henderson <rth@redhat.com>
2007 * libitm.h (_ITM_abortReason): Add outerAbort.
2009 2009-08-03 Richard Henderson <rth@redhat.com>
2011 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2012 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2013 * method-wbetl.c (struct w_entry): Remove mask.
2014 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2017 2009-07-22 Richard Henderson <rth@redhat.com>
2019 * eh_cpp.c: New file.
2020 * Makefile.am (libitm_la_SOURCES): Add it.
2021 * Makefile.in: Rebuild.
2022 * beginend.c (GTM_rollback_transaction): Undo exception state.
2023 (GTM_trycommit_transaction): Mark inline.
2024 (GTM_trycommit_and_finalize_transaction): Split out from ...
2025 (_ITM_commitTransaction): ... here.
2026 (_ITM_commitTransactionEH): New function.
2027 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2028 cxa_unthrown, eh_in_flight; reorder.
2030 * testsuite/libitm.c++/c++.exp: New.
2031 * testsuite/libitm.c++/eh-1.C: New.
2033 * aatree.c (aa_free): Remove REGPARM.
2034 * aatree.h: Remove all REGPARM.
2036 2009-07-18 Richard Henderson <rth@redhat.com>
2038 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2039 * Makefile.am (libitm_la_SOURCES): Add them.
2040 * Makefile.in: Rebuild.
2041 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2042 (GTM_trycommit_transaction): Likewise.
2043 * libitm.h: Include aatree.h
2044 (struct gtm_alloc_action): New.
2045 (struct gtm_transaction): Add alloc_actions.
2046 (GTM_record_allocation, GTM_forget_allocation): Declare.
2047 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2048 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2049 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2050 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2051 _ZGTtdaPvRKSt9nothrow_t): Export.
2053 2009-07-18 Richard Henderson <rth@redhat.com>
2055 * target_tls.h: Move ...
2056 * config/posix/target_tls.h: ... here.
2058 2009-07-07 Richard Henderson <rth@redhat.com>
2060 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2062 2009-07-07 Richard Henderson <rth@redhat.com>
2066 2009-07-07 Richard Henderson <rth@redhat.com>
2068 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2069 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2071 * configure.tgt: Don't use -ftls-model for x86 linux.
2072 * libitm.h: Include target.h after standard includes.
2073 (_gtm_thr): Rename from gtm_thr.
2074 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2075 (gtm_disp, set_gtm_disp): New.
2076 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2077 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2078 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2080 2009-07-07 Richard Henderson <rth@redhat.com>
2082 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2084 2009-07-06 Richard Henderson <rth@redhat.com>
2086 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2087 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2088 (_ITM_beginTransaction): Take variadic arguments.
2089 (_ITM_registerThrownObject): Declare.
2090 * beginend.c, serial.c: Update.
2091 * libitm.map: Add _ITM_registerThrownObject.
2093 2009-01-28 Richard Henderson <rth@redhat.com>
2095 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2096 * Makefile.in: Rebuild.
2097 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2098 (GTM_restart_transaction): Fix uninstrumented code check.
2099 * retry.c (GTM_decide_retry_strategy): Add serial check.
2100 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2101 automatically go irrevokable when in serial mode.
2102 * clone.c: New file.
2103 * libitm.h, libitm.map: Update.
2105 2009-01-27 Richard Henderson <rth@redhat.com>
2107 * Makefile.am (LTCCASCOMPILE): Define.
2108 (libitm_la_SOURCES): Add methid-wbetl.c.
2109 * testsuite/Makefile.am: New
2110 * configure.ac: Add testsuite/Makefile.
2111 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2112 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2113 (_ITM_abortTransaction): Finalize implementation method; pass
2114 transaction properties to longjmp.
2115 (GTM_restart_transaction): Split out from ...
2116 (_ITM_commitTransaction): ... here.
2117 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2118 Move to config/x86/target.h.
2119 * config/linux/alpha/futex_bits.h: New.
2120 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2121 * config/x86/target.h: Disable target types for 32-bit.
2122 * config/alpha/sjlj.S, config/alpha/target.h: New.
2123 * libitm.h (struct gtm_dispatch): Add init, fini.
2124 (enum restart_reason): New.
2125 (struct gtm_transaction): Add method and restarts.
2126 * retry.c (GTM_decide_retry_strategy): Implement.
2127 * serial.c (serial_init, serial_fini): New.
2128 (GTM_serialmode): Finialize outgoing method.
2129 * method-wbetl.c: New.
2131 2008-12-09 Richard Henderson <rth@redhat.com>
2133 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2134 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2135 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2136 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2137 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2138 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2139 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2140 * serial.c (serial_R##T, serial_W##T): Likewise.
2142 2008-11-21 Richard Henderson <rth@redhat.com>
2146 Copyright (C) 2008-2018 Free Software Foundation, Inc.
2148 Copying and distribution of this file, with or without modification,
2149 are permitted in any medium without royalty provided the copyright
2150 notice and this notice are preserved.