Update ChangeLog and version files for release
[official-gcc.git] / libitm / ChangeLog
blobf66dd31b03aa35ef3ab50026ab7ae936a2db6e7e
1 2018-01-25  Release Manager
3         * GCC 7.3.0 released.
5 2017-08-14  Release Manager
7         * GCC 7.2.0 released.
9 2017-05-02  Release Manager
11         * GCC 7.1.0 released.
13 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
15         * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
17 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
19         PR other/79046
20         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
21         of cat to get version from BASE-VER file.
22         * testsuite/Makefile.in: Regenerated.
24 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
26         * config/x86/target.h (htm_available): Determine vendor from
27         __get_cpuid_max return.  Use signature_INTEL_ebx.  Cleanup.
29 2017-01-18  Torvald Riegel  <triegel@redhat.com>
31         * config/x86/target.h (htm_available): Add check for some processors
32         on which TSX is broken.
34 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
36         PR other/79046
37         * configure.ac: Add GCC_BASE_VER.
38         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
39         get version from BASE-VER file.
40         * testsuite/Makefile.in: Regenerated.
41         * configure: Regenerated.
42         * Makefile.in: Regenerated.
44 2017-01-04  Alan Modra  <amodra@gmail.com>
46         * Makefile.in: Regenerate.
47         * testsuite/Makefile.in: Regenerate.
49 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
51         Update copyright years.
53         * libitm.texi: Bump @copying's copyright year.
55 2016-12-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
57         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
58         * aclocal.m4: Regenerate.
59         * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
60         LIBITM_CHECK_LINKER_HWCAP.
62 2016-11-15  Matthias Klose  <doko@ubuntu.com>
64         * configure: Regenerate.
66 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
68         PR libitm/70456
69         * util.cc (xmalloc): Use posix_memalign to allocate memory on
70         on cache line if requested.
72 2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
74         * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
75         function attribute to disable floating point in begin_transaction() on
76         S/390.
77         * beginend.cc (begin_transaction): Use
78         TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
80 2016-01-22  Torvald Riegel  <triegel@redhat.com>
82         * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
83         boundary.
84         (htm_fastpath): Remove.
85         (gtm_thread::begin_transaction): Fix HTM fastpath.
86         (_ITM_commitTransaction): Adapt.
87         (_ITM_commitTransactionEH): Adapt.
88         * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
89         and accessors.
90         * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
91         * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
92         * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
93         * libitm/libitm_i.h (htm_fastpath): Remove declaration.
94         * libitm/method-serial.cc (htm_mg): Adapt.
95         (gtm_thread::serialirr_mode): Adapt.
96         * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
98 2016-01-21  Torvald Riegel  <triegel@redhat.com>
100         * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
101         or AIX.
103 2016-01-19  Richard Henderson  <rth@redhat.com>
105         PR bootstrap/69343
106         PR bootstrap/69339
107         Revert:
108         2016-01-13  Richard Henderson  <rth@redhat.com>
110         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
111         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
112         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
113         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
114         * configure.ac (ARCH_AARCH64): New conditional.
115         (ARCH_PPC, ARCH_S390): Likewise.
116         * Makefile.in, configure: Rebuild.
118         * libitm.h (_ITM_TYPE_M128): Always define.
119         * vect64.cc: Split ...
120         * vect128.cc: ... out of...
121         * config/x86/x86_sse.cc: ... here.
122         * config/arm/neon.cc: New file.
124 2016-01-19  Torvald Riegel  <triegel@redhat.com>
126         * local_type_traits: Remove file.
127         * libitm_i.h: Don't include it anymore.
128         (sized_integral): Remove.
130 2016-01-16  Torvald Riegel  <triegel@redhat.com>
132         * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
133         safety.
134         * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
135         * libitm/testsuite/libitm.c/priv-1.c: New.
137 2015-01-15  Torvald Riegel  <triegel@redhat.com>
139         testsuite/libitm.c++/libstdc++-safeexc.C: New.
141 2016-01-13  Torvald Riegel  <triegel@redhat.com>
143         * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
144         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
145         (gtm_rwlock::write_unlock): Likewise.
147 2016-01-13  Richard Henderson  <rth@redhat.com>
149         * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
150         (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
151         (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
152         (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
153         * configure.ac (ARCH_AARCH64): New conditional.
154         (ARCH_PPC, ARCH_S390): Likewise.
155         * Makefile.in, configure: Rebuild.
157         * libitm.h (_ITM_TYPE_M128): Always define.
158         * vect64.cc: Split ...
159         * vect128.cc: ... out of...
160         * config/x86/x86_sse.cc: ... here.
161         * config/arm/neon.cc: New file.
163 2016-01-13  Torvald Riegel  <triegel@redhat.com>
165         * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
166         * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
167         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
168         * dispatch.h (abi_dispatch::snapshot_most_recent): New.
169         * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
170         * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
171         * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
172         (serialirr_dispatch::snapshot_most_recent): New.
173         (serialirr_onwrite_dispatch::snapshot_most_recent): New.
175 2016-01-12  Torvald Riegel  <triegel@redhat.com>
177         * libitm_i.h (gtm_mask_stack): Remove.
178         * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
179         * stmlock.h: Remove file.
180         * config/alpha/cacheline.h: Likewise.
181         * config/generic/cacheline.h: Likewise.
182         * config/powerpc/cacheline.h: Likewise.
183         * config/sparc/cacheline.h: Likewise.
184         * config/x86/cacheline.h: Likewise.
186 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
188         Update copyright years.
190         * libitm.texi: Bump @copying's copyright year.
192 2015-11-26  Torvald Riegel  <triegel@redhat.com>
194         * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
195         (ml_wt_dispatch::pre_write): Adapt.
196         (ml_wt_dispatch::pre_load): Likewise.
198 2015-11-22  Torvald Riegel  <triegel@redhat.com>
200         * libitm_i.h (gtm_alloc_action): Remove union.
201         * testsuite/libitm.c/alloc-1.c: New.
203 2015-11-19  Torvald Riegel  <triegel@redhat.com>
205         * testsuite/libitm.c++/eh-5.C: New.
206         * libitm.h (_ITM_cxa_free_exception): New.
207         * libitm.map (_ITM_cxa_free_exception): Add it.
208         * libitm.texi: Update ABI docs.
209         * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
210         (gtm_transaction_cp::cxa_uncaught_count): Add.
211         (gtm_thread::cxa_unthrown): Remove.
212         (gtm_thread::cxa_uncaught_count_ptr): Add.
213         (gtm_thread::cxa_uncaught_count): Add.
214         (gtm_thread::drop_references_allocations): Rename to...
215         (gtm_thread::discard_allocation): ... this and adapt.
216         (gtm_thread::init_cpp_exceptions): New.
217         * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
218         (gtm_thread::begin_transaction): Likewise.
219         (gtm_transaction_cp::save): Likewise.
220         (gtm_thread::trycommit): Likewise.
221         * eh_cpp.cc: Add overview comments.
222         (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
223         (free_any_exception, _ITM_cxa_free_exception): New.
224         (gtm_thread::init_cpp_exceptions): Define.
225         (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
226         (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
227         (gtm_thread::revert_cpp_exceptions): Likewise.
229 2015-11-09  Torvald Riegel  <triegel@redhat.com>
231         * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
232         _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
233         * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
234         * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz.  Add comments.
235         (gtm_thread::forget_allocations): New overload with size_t argument.
236         * alloc.c (gtm_thread::forget_allocation): Define new overload and
237         adapt existing one.
238         (gtm_thread::record_allocation): Adapt.
239         (gtm_thread::commit_allocations_1): Adapt.
240         (gtm_thread::commit_allocations_2): Adapt.
241         * testsuite/libitm.c++/newdelete.C: New.
243 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
244             Joseph Myers  <joseph@codesourcery.com>
245             Mark Shinwell  <shinwell@codesourcery.com>
246             Andrew Stubbs  <ams@codesourcery.com>
247             Rich Felker <dalias@libc.org>
249         * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
250         GTM_begin_transaction for compatibility with FDPIC.
252 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
254         * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
255         using load_gcc_lib.
257 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
259         PR libitm/61164
260         * local_atomic (__always_inline): Rename to...
261         (__libitm_always_inline): ... this.
263 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
265         PR target/52482
266         * config/powerpc/sjlj.S: Port to Xcode 2.5.
268 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
270         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
271         operands "op" and "val" to int.
273 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
275         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
276         "op" and "val" to int.
278 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
280         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
281         "op" and "val" to int.
283 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
285         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
286         Declare as static int.
287         (FUTEX_PRIVATE_FLAG): Remove L suffix.
288         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
290 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
292         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
293         sys_futex0 function.
295 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
297         * Makefile.in: Regenerated with automake-1.11.6.
298         * aclocal.m4: Likewise.
299         * configure: Likewise.
300         * testsuite/Makefile.in: Likewise.
302 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
304         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
305         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
307 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
309         PR libitm/64360
310         * libitm.c/stackundo.c (test2): Make it static.
311         (test1): Likewise.
313 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
315         Update copyright years.
317 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
319         * libitm.texi: Bump @copying's copyright year.
321 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
323         * testsuite/lib/libitm.exp: Load target-utils.exp.
324         Move load of target-supports.exp earlier.
326 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
328         * configure.tgt (x86_64): Tune -m32 multilib to generic.
330 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
332         PR bootstrap/63784
333         * configure: Regenerated.
335 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
337         PR target/63610
338         * configure: Regenerate.
340 2014-10-06  Marek Polacek  <polacek@redhat.com>
342         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
343         * testsuite/libitm.c/memset-1.c: Likewise.
345 2014-07-24  Richard Henderson  <rth@redhat.com>
347         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
348         addressing mode in epilogue.
350 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
352         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
353         -mclear-hwcap instead.
354         * configure: Regenerate.
355         * clearcap.map: Remove.
357 2014-05-21  John Marino  <gnugcc@marino.st>
359         * configure.tgt (*-*-dragonfly*): New target.
361 2014-05-19  Richard Henderson  <rth@redhat.com>
363         * config/aarch64/sjlj.S: New file.
364         * config/aarch64/target.h: New file.
365         * configure.tgt: Enable aarch64.
367 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
369         * config/generic/asmcfi.h: Also check for
370         __GCC_HAVE_DWARF2_CFI_ASM.
372 2013-04-02  Richard Henderson  <rth@redhat.com>
374         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
375         * config/arm/target.h, config/sh/target.h: Likewise.
376         * config/sparc/target.h, config/x86/target.h: Likewise.
378 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
380         * config/linux/futex_bits.h: Include errno.h.
381         (sys_futex0): If syscall returns -1, return -errno rather than
382         -1.
384 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
386         * libitm.texi (Index): Rename to Library Index.
388 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
390         PR libitm/53113
391         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
392         (x86_avx.lo): Append -mavx to CXXFLAGS.
393         * Makefile.in: Regenerate.
395 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
397         Update copyright years
399 2014-01-02  Tobias Burnus  <burnus@net-b.de>
401         * libitm.texi: Bump @copying's copyright year.
403 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
405         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
406         (FUNC): Define ELFv2 variant.
407         (END): Likewise.
408         (HIDDEN): Likewise.
409         (CALL): Likewise.
410         (BASE): Likewise.
411         (LR_SAVE): Likewise.
413 2013-09-20  Alan Modra  <amodra@gmail.com>
415         * configure: Regenerate.
417 2013-08-30  Torvald Riegel  <triegel@redhat.com>
419         * config/posix/rwlock.cc: Fix initialization order.
421 2013-08-30  Torvald Riegel  <triegel@redhat.com>
423         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
424         (htm_fastpath): Assign an asm name.
425         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
426         HTM fast paths.
427         (_ITM_actions): Likewise.
428         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
429         x86_64.
430         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
431         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
432         field to the start of the structure.
433         * config/linux/rwlock.h (gtm_rwlock): Update comments.
434         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
435         handling for custom HTM fast paths.
437 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
438         Revert:
439         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
441         * configure.tgt: Add -msoft-float to XCFLAGS.
443 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
445         * configure.tgt: Add -msoft-float to XCFLAGS.
447 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
449         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
450         (htm_transaction_active): Enable zEC12 instructions in the
451         assembler.
452         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
454 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
456         * acinclude.m4: Add htm asm check for s390.
457         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
458         * configure: Regenerate.
459         * config/s390/target.h: Remove __HTM__ check.
460         (htm_available): Call getauxval to get hwcaps and check whether
461         HTM is available or not.
463 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
465         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
466         * configure.ac: Use it.
467         (AC_CHECK_HEADERS): Check for sys/auxv.h.
468         (AC_CHECK_FUNCS): Check for getauxval.
469         * config.h.in, configure: Rebuild.
470         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
471         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
472         (USE_HTM_FASTPATH): Define.
473         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
474         _HTM_RETRIES) New macros.
475         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
476         htm_begin_success, htm_commit, htm_transaction_active): New functions.
478 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
480         * config/s390/target.h: Include htmintrin.h.
481         (_HTM_ITM_RETRIES): New macro definition.
482         (htm_available, htm_init, htm_begin, htm_begin_success)
483         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
485 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
486             Cesar Philippidis  <cesar@codesourcery.com>
488         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
489         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
490         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
491         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
493 2013-06-20  Torvald Riegel  <triegel@redhat.com>
495         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
496         (_ITM_getTransactionId): Same.
497         * config/x86/target.h (htm_transaction_active): New.
499 2013-06-20  Torvald Riegel  <triegel@redhat.com>
501         PR libitm/57643
502         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
503         the HTM fastpath.
505 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
507         PR bootstrap/56714
508         * local_atomic (__always_inline): Always define our version.
509         (__calculate_memory_order): Mark inline.
510         (atomic_thread_fence): Ditto.
511         (atomic_signal_fence): Ditto.
512         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
513         (atomic_bool::atomic_flag_clear_explicit): Ditto.
514         (atomic_bool::atomic_flag_test_and_set): Ditto.
515         (atomic_bool::atomic_flag_clear): Ditto.
517 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
519         * config/s390/sjlj.S: New file.
520         * config/s390/target.h: New file.
521         * configure.tgt: Set options for S/390.
523 2013-03-23  Andi Kleen  <ak@linux.intel.com>
525         * local_atomic (__always_inline): Add.
526         (__calculate_memory_order, atomic_thread_fence,
527          atomic_signal_fence, test_and_set, clear, store, load,
528          exchange, compare_exchange_weak, compare_exchange_strong,
529          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
530         Add __always_inline to force inlining.
532 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
533             Jack Howarth  <howarth@bromo.med.uc.edu>
534             Patrick Marlier  <patrick.marlier@gmail.com>
536         PR libitm/55693
537         * alloc_cpp.cc: Enable function declarations on darwin.
538         * eh_cpp.cc: Likewise.
540 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
542         Update copyright years.
544 2012-11-09  Torvald Riegel  <triegel@redhat.com>
546         * beginend.cc (htm_fastpath): New.
547         (gtm_thread::begin_transaction, _ITM_commitTransaction,
548         _ITM_commitTransactionEH): Add HTM fastpath handling.
549         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
550         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
551         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
552         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
553         * configure.tgt: Add -mrtm to XCFLAGS.
554         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
555         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
556         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
557         * retry.cc (parse_default_method): Add HTM method parsing.
558         (gtm_thread::number_of_threads_changed): Use HTM by default if
559         available.
561 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
563         * configure: Regenerate.
565 2012-10-31  Richard Henderson  <rth@redhat.com>
567         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
568         * configure.ac: Use it.
569         * config.h.in, configure: Rebuild.
570         * testsuite/Makefile.in: Rebuild.
572 2012-10-24  Torvald Riegel  <triegel@redhat.com>
574         * libitm.texi: Clarify ABI requirements for data-logging functions.
576 2012-10-24  Torvald Riegel  <triegel@redhat.com>
578         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
579         it requires serial mode instead of assuming that for certain
580         dispatchs.
581         * dispatch.h (abi_dispatch::requires_serial): New.
582         (abi_dispatch::abi_dispatch): Adapt.
583         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
584         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
585         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
586         serial_dispatch::serial_dispatch,
587         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
589 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
591         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
592         and ia32 declarations some more.
593         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
595 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
597         PR other/43620
598         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
599         * configure: Regenerate.
600         * Makefile.in: Regenerate.
602 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
604         * configure: Regenerated.
606 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
608         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
610 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
612         * eh_cpp.cc: Fix __cxa_end_catch declaration.
614 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
616         * configure: Regenerated.
618 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
620         PR libitm/52854
621         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
622         for x86-64.
624 2012-04-03  Tristan Gingold  <gingold@adacore.com>
626         * configure: Regenerate.
628 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
630         PR bootstrap/52812
631         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
633 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
635         * testsuite/lib/libitm.exp: load fortran-modules.exp
637 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
639         * configure.tgt (*-*-irix6*): Remove.
641 2012-03-13  Torvald Riegel  <triegel@redhat.com>
643         PR libitm/52526
644         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
645         wake-up.
647 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
649         * configure.tgt (*-*-osf*): Remove.
650         * configure: Regenerate.
652 2012-03-05  Torvald Riegel  <triegel@redhat.com>
654         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
655         memtransfer/memset if size isn't larger than zero.
657 2012-03-02  Torvald Riegel  <triegel@redhat.com>
659         * libitm.texi: Link to specification and add a usage example.
661 2012-02-24  Torvald Riegel  <triegel@redhat.com>
663         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
664         default dispatch for more than 1 thread to ml_wt.
666 2012-02-20  Torvald Riegel  <triegel@redhat.com>
668         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
670 2012-02-20  Torvald Riegel  <triegel@redhat.com>
672         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
674 2012-02-20  Torvald Riegel  <triegel@redhat.com>
676         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
677         serial mode corner cases made obsolete by prior gtm_rwlock changes.
678         (gl_wt_dispatch.rollback): Same.
680 2012-02-20  Torvald Riegel  <triegel@redhat.com>
682         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
684 2012-02-20  Torvald Riegel  <triegel@redhat.com>
686         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
687         for RfW src.  Optimize number of calls to gtm_thr.
689 2012-02-20  Torvald Riegel  <triegel@redhat.com>
691         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
692         acquisition to ...
693         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
694         (default_dispatch): Make atomic.
695         (GTM::gtm_thread::set_default_dispatch): Access atomically.
696         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
697         use decide_begin_dispatch() if default_dispatch might have changed.
698         (GTM::gtm_thread::number_of_threads_changed): Initialize
699         default_dispatch here.
701 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
702             Patrick Marlier  <patrick.marlier@gmail.com>
704         PR libitm/52220
705         * alloc_cpp.cc: No dummy definitions for darwin.
706         * eh_cpp.cc: Likewise.
708 2012-02-14  Richard Henderson  <rth@redhat.com>
710         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
712 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
714         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
716 2012-02-14  Torvald Riegel  <triegel@redhat.com>
718         * libitm_i.h (GTM::gtm_rwlog_entry): New.
719         (GTM::gtm_thread): Add read and write logs.
720         (GTM::dispatch_ml_wt): Declare.
721         * retry.cc (parse_default_method): Support ml_wt.
722         * method-ml.cc: New file.
723         * Makefile.am: Add method-ml.cc.
724         * Makefile.in: Regenerate.
726 2012-02-14  Torvald Riegel  <triegel@redhat.com>
728         * dispatch.h (GTM::abi_dispatch::supports): New.
729         (GTM::method_group::reinit): New.
730         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
731         (GTM::gtm_thread::number_of_threads_changed): Check that the method
732         supports the current situation.
734 2012-02-14  Torvald Riegel  <triegel@redhat.com>
736         * util.cc (GTM::xcalloc): New.
737         * common.h (GTM::xcalloc): Declare.
739 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
741         * config/sparc/target.h (cpu_relax): Read from CC register.
742         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
744 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
746         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
748 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
750         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
751         * config/sparc/cacheline.h: New file.
752         * config/sparc/target.h: Likewise.
753         * config/sparc/sjlj.S: Likewise.
754         * config/linux/sparc/futex_bits.h: Likewise.
756 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
758         * configure.ac (link_itm): Fix comment.
759         * configure: Regenerate.
760         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
762 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
764         PR libitm/51822
765         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
766         Correct libgomp references.
768 2012-01-24  Torvald Riegel  <triegel@redhat.com>
770         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
771         wake-up.
773 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
775         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
776         end of structure.
777         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
778         offset values.  Do not copy return address.  Decrement stack
779         by 56 bytes only.
780         (GTM_longjump) [__x86_64__]: Update offset values.
782 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
784         PR libitm/51830
785         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
786         the first function argument to %eax.
788 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
790         * libitm.h (_ITM_getThreadnum): Remove.
791         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
793 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
795         * clearcap.map: New file.
796         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
797         * configure.ac: Call it.
798         Clear HWCAP_LDFLAGS if defaulting to -mavx.
799         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
800         * configure: Regenerate.
801         * Makefile.in: Regenerate.
802         * testsuite/Makefile.in: Regenerate.
804 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
806         PR libitm/51173
807         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
808         include, exclude options.
810 2012-01-14  Torvald Riegel  <triegel@redhat.com>
812         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
813         rolling back.
814         * containers.h (GTM::vector::set_size): New.
816 2012-01-14  Torvald Riegel  <triegel@redhat.com>
818         PR libitm/51855
819         * config/generic/tls.h (GTM::mask_stack_top): New.
820         (GTM::mask_stack_bottom): Declare.
821         * config/generic/tls.c (GTM::mask_stack_bottom): New.
822         * local.cc (gtm_undolog::rollback): Filter out any updates that
823         overlap the libitm stack.  Add current transaction as parameter.
824         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
825         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
826         * testsuite/libitm.c/stackundo.c: New test.
828 2012-01-10  Richard Henderson  <rth@redhat.com>
830         * libitm_i.h (_Unwind_DeleteException): Declare weak.
831         * eh_cpp.cc (_Unwind_DeleteException): Define for
832         !HAVE_ELF_STYLE_WEAKREF.
834 2012-01-08  Torvald Riegel  <triegel@redhat.com>
836         * local.cc (GTM_LB): Use GTM::gtm_undolog.
837         (GTM::gtm_thread::drop_references_undolog): Remove.
838         (GTM::gtm_thread::commit_undolog,
839         GTM::gtm_thread::rollback_undolog): Move to ...
840         * libitm_i.h (GTM::gtm_undolog): ...here. New.
841         (GTM::gtm_undolog_entry): Remove.
842         (GTM::gtm_thread): Adapt.
843         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
844         (GTM::gtm_thread::trycommit): Adapt.
845         * method-serial.cc (serial_dispatch::log): Adapt.
846         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
847         (gl_wt_dispatch::store): Fix likely/unlikely.
848         * containers.h (GTM::vector::resize): Add additional_capacity
849         parameter and handle it.
850         (GTM::vector::resize_noinline): New/adapt.
851         (GTM::vector::push): New.
853 2012-01-06  Richard Henderson  <rth@redhat.com>
855         * configure.tgt: Support powerpc-linux and powerpc-darwin.
856         * config/linux/powerpc/futex_bits.h: New file.
857         * config/powerpc/cacheline.h: New file.
858         * config/powerpc/sjlj.S: New file.
859         * config/powerpc/target.h: New file.
860         * config/generic/asmcfi.h (cfi_offset): New.
861         (cfi_restore, cfi_undefined): New.
863 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
865         PR other/51171
866         * testsuite/libitm.c/reentrant.c: Remove xfail.
867         (thread): Pass x to pure().
868         From Patrik Marlier <patrick.marlier@gmail.com>.
870 2011-12-24  Torvald Riegel  <triegel@redhat.com>
872         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
873         privatization safety if already in serial mode.
875 2011-12-24  Torvald Riegel  <triegel@redhat.com>
877         * beginend.cc (GTM::gtm_thread::restart): Add and handle
878         finish_serial_upgrade parameter.
879         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
880         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
881         Don't unset reader flag.
882         (GTM::gtm_rwlock::write_upgrade_finish): New.
883         * config/posix/rwlock.cc: Same.
884         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
885         Declare.
886         * config/posix/rwlock.h: Same.
887         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
888         flag after commit or after rollback when restarting.
890 2011-12-24  Torvald Riegel  <triegel@redhat.com>
892         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
893         (GTM::gtm_thread::try_commit): Changed memory order.
894         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
895         as parameter.
896         * config/linux/x86/futex_bits.h (sys_futex0): Same.
897         * config/linux/sh/futex_bits.h (sys_futex0): Same.
898         * config/linux/futex_bits.h (sys_futex0): Same.
899         * config/linux/futex.cc (futex_wait, futex_wake): Same.
900         * config/linux/futex.h (futex_wait, futex_wake): Same.
901         * config/linux/rwlock.h (gtm_rwlock::writers,
902         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
903         ints.
904         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
905         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
906         gtm_rwlock::write_unlock): Fix memory orders and fences.
907         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
908         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
909         gtm_rwlock::write_unlock): Same.
910         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
911         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
912         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
913         Add comments.
914         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
915         gl_wt_dispatch::load, gl_wt_dispatch::store,
916         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
917         orders and fences.  Add comments.
919 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
921         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
922         * Makefile.in: Regenerated.
924 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
926         * configure.tgt: Add sh* case.
927         * config/sh/target.h: New file.
928         * config/sh/sjlj.S: New file.
929         * config/linux/sh/futex_bits.h: New file.
931 2011-12-14  Richard Henderson  <rth@redhat.com>
933         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
934         * config/arm/sjlj.S, config/arm/target.h: New files.
935         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
936         (cfi_rel_offset): New.
937         * config/linux/futex_bits.h: New file.
938         * config/linux/futex.cc: Include futex_bits.h here...
939         * config/linux/futex.h: ... not here.
940         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
941         * configure.ac (ARCH_AM): New conditional.
942         * Makefile.in, configure: Rebuild.
943         * configure.tgt: Handle ARM.
945 2011-12-13  Richard Henderson  <rth@redhat.com>
947         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
948         signed/unsigned comparison werror.
950         * local_atomic: New file.
951         * libitm_i.h: Include it.
952         (gtm_thread::shared_state): Use atomic template.
953         * beginend.cc (GTM::gtm_clock): Use atomic template.
954         (global_tid): Use atomic template if 64-bit atomics available.
955         (gtm_thread::gtm_thread): Update shared_state access.
956         (gtm_thread::trycommit): Likewise.
957         (choose_code_path): Update global_tid access.
958         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
959         * stmlock.h (GTM::gtm_clock): Use atomic template.
960         (gtm_get_clock, gtm_inc_clock): Update accesses.
961         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
962         redundant __sync_synchronize after atomic shared_state access.
963         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
964         (gtm_rwlock::write_lock_generic): Likewise.
965         (gtm_rwlock::read_unlock): Likewise.
966         * config/alpha/target.h (atomic_read_barrier): Remove.
967         (atomic_write_barrier): Remove.
968         * config/x86/target.h (atomic_read_barrier): Remove.
969         (atomic_write_barrier): Remove.
971 2011-11-30  Richard Henderson  <rth@redhat.com>
973         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
974         * beginend.c (_ITM_abortTransaction): Update to match.
975         (GTM::gtm_thread::restart): Likewise.
976         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
977         * config/x86/sjlj.S (GTM_longjmp): Likewise.
979 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
981         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
982         * Makefile.in: Regenerate.
984 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
986         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
987         * alloc_cpp.cc: Generate dummy functions if we don't
988         HAVE_ELF_STYLE_WEAKREF.
989         * eh_cpp.cc: Likewise.
990         * configure: Regenerate.
991         * aclocal.m4:  Likewise.
992         * config.h.in: Likewise.
993         * Makefile.in: Likewise.
994         * testsuite/Makefile.in: Likewise.
996 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
998         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
999         __USER_LABEL_PREFIX__ for targets that use it.
1000         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1001         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1002         in portability to non-elf targets.
1003         (GTM_longjmp): Likewise.
1004         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1005         where required.
1007 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1009         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1010         * testsuite/libitm.c/memset-1.c: Likewise.
1012 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1014         * configure: Regenerate.
1016 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1018         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1019         (LIBITM_ENABLE_SYMVERS): Handle sun style.
1020         * Makefile.am: Handle sun style versioning.
1021         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1022         * configure: Regenerate.
1023         * Makefile.in: Regenerate.
1025 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1027         * config/generic/asmcfi.h: Fix comment.
1028         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1029         sequence without .hidden support, error for non-ELF targets.
1030         (GTM_longjmp) [__ELF__]: Only use .hidden if
1031         HAVE_ATTRIBUTE_VISIBILITY.
1033 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1035         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1036         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1037         Dummy functions.
1038         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1039         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1041 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
1043         PR bootstrap/51098
1044         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1045         * configure: Regenerate.
1047 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1049         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1051 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1053         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1054         .hidden.
1055         (.note.GNU-stack): Only use if __linux__.
1056         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1057         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1058         * testsuite/libitm.c/reentrant.c: Likewise.
1059         * testsuite/libitm.c/simple-2.c: Likewise.
1060         * testsuite/libitm.c/txrelease.c: Likewise.
1061         * testsuite/libitm.c++/static_ctor.C: Likewise.
1063 2011-11-10  Richard Henderson  <rth@redhat.com>
1065         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
1066         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1067         * configure.ac (ARCH_X86_AVX): New conditional.
1068         * Makefile.in, configure: Rebuild.
1070 2011-11-09  Richard Henderson  <rth@redhat.com>
1072         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1073         * configure.ac: Use it.
1074         * config.h.in, configure: Rebuild.
1075         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1077 2011-11-09  Richard Henderson  <rth@redhat.com>
1079         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1080         * config/alpha/unaligned.h: Remove file.
1081         * config/generic/unaligned.h: Remove file.
1082         * config/x86/unaligned.h: Remove file.
1083         * config/generic/cachepage.h: Remove file.
1084         * config/posix/cachepage.cc: Remove file.
1085         * config/generic/cacheline.cc: Remove file.
1086         * config/x86/cacheline.cc: Remove file.
1087         * config/generic/cacheline.h (gtm_cacheline): Remove the
1088         store_mask, copy_mask, copy_mask_wb methods.
1089         * config/x86/cacheline.h: Likewise.
1090         * config/alpha/cacheline.h: Fall back to generic after setting size.
1091         * config/generic/tls.cc (gtm_mask_stack): Remove.
1092         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1093         (GTM_vpalignr_table): Remove.
1094         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1095         (GTM_pshift_table): Remove.
1096         * config/libitm_i.h: Don't include cachepage.h.
1097         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1098         * Makefile.in, testsuite/Makefile.in: Rebuild.
1100 2011-11-09  Richard Henderson  <rth@redhat.com>
1102         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1103         to emit branch prediction hint.
1105         * config/x86/sjlj.S: Protect elf directives with __ELF__.
1106         Protect .note.GNU-stack with __linux__.
1108         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1109         * configure, aclocal.m4, config.h.in: Rebuild.
1110         * config/generic/asmcfi.h: New file.
1111         * config/x86/sjlj.S: Use it.
1113 2011-11-08  Richard Henderson  <rth@redhat.com>
1115         * local.cc (_ITM_LB): Use a normal call, not a function alias.
1117 2011-11-08  Richard Henderson  <rth@redhat.com>
1119         * configure.tgt: Test correct directory for supported cpus.
1121         * configure.ac: Exit if unsupported.
1122         * configure: Rebuild.
1123         * configure.tgt: Delete boilerplate from libgomp for unsupported
1124         targets.  Set UNSUPPORTED for unsupported targets.
1126 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1128         * configure.tgt: Handle i386 like i[456]86.
1129         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1130         take address.
1131         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1132         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1134 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
1136         * method-wbetl.cc: Update copyright notice.
1137         * aatree.cc: Same.
1138         * util.cc: Same.
1139         * libitm.h: Same.
1140         * memset.cc: Same.
1141         * eh_cpp.cc: Same.
1142         * barrier.tpl: Same.
1143         * useraction.cc: Same.
1144         * stmlock.h: Same.
1145         * memcpy.cc: Same.
1146         * common.h: Same.
1147         * config/generic/tls.cc: Same.
1148         * config/generic/cacheline.h: Same.
1149         * config/generic/cachepage.h: Same.
1150         * config/generic/cacheline.cc: Same.
1151         * config/generic/unaligned.h: Same.
1152         * config/x86/cacheline.h: Same.
1153         * config/x86/cacheline.cc: Same.
1154         * config/x86/unaligned.h: Same.
1155         * config/alpha/cacheline.h: Same.
1156         * config/alpha/unaligned.h: Same.
1157         * config/alpha/sjlj.S: Same.
1158         * config/posix/cachepage.cc: Same.
1159         * config/linux/futex.h: Same.
1160         * config/linux/alpha/futex_bits.h: Same.
1162 2011-11-04  Torvald Riegel  <triegel@redhat.com>
1164         * libitm.texi: No cover text and invariant sections.
1166 2011-11-03  Richard Henderson  <rth@redhat.com>
1168         * local_type_traits: New file.
1169         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
1171 2011-11-03  Richard Henderson  <rth@redhat.com>
1173         * configure.ac: Don't test for gfortran.
1174         * configure: Rebuild.
1176         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1177         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1179 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1181         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1182         * testsuite/libitm.c/memset-1.c: Same.
1183         * testsuite/libitm.c/c.exp: Same.
1184         * testsuite/lib/libitm-dg.exp: Same.
1185         * testsuite/lib/libitm.exp: Same.
1186         * testsuite/libitm.c++/c++.exp: Same.
1188 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1190         * testsuite/config/default.exp: Update copyright date.
1191         * configure.ac: Add copyright info.
1192         * configure.tgt: Same.
1194 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
1196         * testsuite/libitm.c/reentrant.c: XFAIL.
1197         * testsuite/libitm.c++/static_ctor.C: XFAIL.
1199 2011-10-29  Torvald Riegel  <triegel@redhat.com>
1201         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1202         handle aborts.
1203         (_ITM_abortTransaction): Handle aborts of outer transactions.
1204         * libitm_i.h: Same.
1205         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1206         * libitm.texi: Document aborts of outer transactions.
1207         * testsuite/libitm.c/cancel.c: New file.
1209 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1211         * testsuite/*: Change __transaction to __transaction_atomic or
1212         __transaction_relaxed.
1214 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1216         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1217         (gtm_thr): Same.
1219 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1221         * libitm_i.h: Add gl_wt dispatch.
1222         * retry.cc (parse_default_method): Same.
1223         * method-gl.cc: New file.
1224         * Makefile.am: Use method-gl.cc.
1225         * Makefile.in: Rebuild.
1227 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1229         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1230         safety if requested by a TM method.
1231         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1232         privatization safety.
1233         * method-serial.cc: Same.
1235 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1237         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1238         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1239         undolog-related member functions from *_local to *_undolog.
1240         * local.cc (gtm_thread::commit_undolog): Same.
1241         * beginend.cc (GTM::gtm_thread::trycommit): Same.
1242         (GTM::gtm_thread::rollback): Roll back undolog before
1243         dispatch-specific rollback.
1245 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1247         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1248         re-initialization of the current method group.
1249         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1251 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1253         * alloc.cc (commit_allocations_2): Do not free transaction-local
1254         memory when committing a nested transaction.
1256 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1258         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1259         serial-irrevocable dispatch, not serial.
1261 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1263         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1264         declarations.
1265         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1266         * method-serial.cc: Implement begin_or_restart().
1267         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1268         dispatch-specific begin_or_restart().
1269         (GTM::gtm_thread::restart): Same.
1271 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1273         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1274         restarting without switching to serial mode.
1275         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1276         transaction state. Choose closed-nesting alternative if available.
1277         (GTM::gtm_thread::set_default_dispatch): New.
1278         (parse_default_method): New.
1279         (GTM::gtm_thread::number_of_threads_changed): New.
1280         * method-serial.cc (GTM::serial_mg): New method group class.
1281         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1282         fini.
1283         (GTM::serial_dispatch): Same.
1284         (GTM::serialirr_onwrite_dispatch): Same.
1285         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1286         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1287         registered threads.
1288         (GTM::gtm_thread::gtm_thread): Same.
1289         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1290         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1291         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1292         choose dispatch but set state according to dispatch here.
1293         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1294         (GTM::method_group): New class.
1295         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1296         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1297         * libitm.texi: Document TM methods, method groups, method life cycle.
1298         Rename method sets to method groups.
1300 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1302         * config/x86/tls.h: Moved to ...
1303         * config/linux/x86/tls.h: ... here.
1305 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1307         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1308         Add X32 support.
1309         * config/x86/sjlj.S: Same.
1311 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1313         * config/linux/rwlock.h: New file.
1314         * config/linux/rwlock.c: New file.
1315         * configure.ac: Reenable futex support (undo SVN rev 157758).
1316         * Makefile.am: Same.
1317         * configure.tgt: Same.
1318         * config/linux/alpha/futex_bits.h: Same.
1319         * config/linux/futex.h: Same. Return number of woken processes.
1320         * config/linux/futex.cc: Same.
1321         (futex_wait): Remove spinning.
1322         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1323         Use __x86_64__ instead of __LP64__.
1324         * aclocal.m4: Include generic futex checks.
1325         * configure: Rebuild.
1326         * Makefile.in: Rebuild.
1327         * testsuite/Makefile.in: Rebuild.
1328         * beginend.cc: Include pthread.h.
1329         * config/posix/cachepage.cc: Same.
1331 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1333         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1334         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1335         (set_gtm_thr): New.
1336         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1337         (set_gtm_thr): New.
1338         (GTM::gtm_thread::thread_num): Removed.
1339         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1340         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1341         tx-to-thread renaming.
1342         * beginend.cc: Adapted to tx-to-thread renaming.
1343         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1344         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1345         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1346         gtm_transaction to gtm_thread.
1347         (_ITM_getThreadnum): Removed. Not supported anymore.
1348         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1349         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1350         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1351         gtm_tx-to-gtm_thr renaming if necessary.
1352         * eh_cpp.cc: Same.
1353         * local.cc: Same.
1354         * retry.cc: Same.
1355         * clone.cc: Same.
1356         * alloc.cc: Same.
1357         * alloc_c.cc: Same.
1358         * alloc_cpp.cc: Same.
1359         * method-serial.cc: Same.
1360         * config/generic/tls.cc: Same.
1361         * config/posix/rwlock.h (gtm_rwlock): Same.
1362         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1364 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1366         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1367         implementation.
1368         (gtm_rwlock::read_unlock): Same.
1369         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1370         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1371         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1372         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1373         w_upgrade. Replaced by per-transaction flags (in shared_state).
1374         Added c_confirmed_writers.
1375         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1376         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1377         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1378         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1379         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1380         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1381         * libitm.texi: Document locking conventions and implementations in
1382         libitm.
1384 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1386         * libitm_i.h (next_tx): Add list of all threads' transaction.
1387         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1388         transaction with list of transactions and ...
1389         (thread_exit_handler): ... deregister here.
1390         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1391         * config/x86/target.h: Same.
1393 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1395         * testsuite/libitm.c++/static_ctor.C: New file.
1397 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1399         * testsuite/libitm.c/reentrant.c: New file.
1401 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1403         * config/generic/tls.h: Remove the free list for transactions and ...
1404         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1405         (GTM::gtm_transaction::operator delete): ... and release here.
1406         (thread_exit_handler): New. Delete tx when thread terminates.
1407         (thread_exit_init): New.
1408         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1409         * testsuite/libitm.c/txrelease.c: New file.
1411 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1413         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1414         * testsuite/libitm.c/notx.c: New file.
1416 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1418         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1419         * libitm_i.h (local_tid): ... to here.
1420         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1421         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1423 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1425         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1426         serialirr_onwrite_dispatch as new default for now.
1427         * method-serial.cc (serialirr_onwrite_dispatch): New.
1428         (GTM::dispatch_serialirr_onwrite): New.
1429         * libitm_i.h: Same.
1431 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1433         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1434         * query.cc (_ITM_getTransactionId): There is no active transaction if
1435         the current nesting level is zero.
1437 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1439         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1440         rollback.
1442 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1444         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1445         transaction properties from the caller instead of from the
1446         transaction object.
1447         * libitm_i.h: Same.
1448         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1450 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1452         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1453         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1454         * dispatch.h: Same.
1455         * method-serial.cc: Same.
1456         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1457         flat nesting as default, and closed nesting on demand.
1458         (GTM::gtm_transaction::rollback): Same.
1459         (_ITM_abortTransaction): Same.
1460         (GTM::gtm_transaction::restart): Same.
1461         (GTM::gtm_transaction::trycommit): Same.
1462         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1463         (choose_code_path): New.
1464         (GTM::gtm_transaction_cp::save): New.
1465         (GTM::gtm_transaction_cp::commit): New.
1466         * query.cc (_ITM_inTransaction): Support flat nesting.
1467         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1468         (GTM::gtm_transaction): Support flat and closed nesting.
1469         * alloc.cc (commit_allocations_2): New.
1470         (commit_cb_data): New helper struct.
1471         (GTM::gtm_transaction::commit_allocations): Handle nested
1472         commits/rollbacks.
1473         * libitm.texi: Update user action section, add description of nesting.
1475 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1477         * libitm_i.h: Add closed nesting as restart reason.
1478         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1480 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1482         * useraction.cc: Use vector instead of list to store actions.
1483         Also support partial rollbacks for closed nesting.
1484         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1485         * beginend.cc: Same.
1487 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1489         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1490         closed_nesting flags, as well as a closed nesting alternative.
1491         * method-serial.cc: Same.
1492         (serial_dispatch): Renamed to serialirr_dispatch.
1493         (GTM::dispatch_serialirr): Same.
1494         (serial_dispatch_ul): Renamed to serial_dispatch.
1495         (GTM::dispatch_serial): Same.
1497 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1499         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1501 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1503         * aatree.h (aa_tree::remove): New.
1504         (aa_tree::operator new): Add placement new.
1506 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1508         * containers.h: New file.
1509         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1510         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1511         * common.h: ... to here.
1512         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1513         * local.cc: Same.
1515 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1517         * libitm_i.h (STATE_ABORTING): Remove.
1518         * beginend.cc (_ITM_abortTransaction): Same.
1519         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1520         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1521         (_ITM_rollbackTransaction): Remove.
1522         * beginend.cc: Same.
1523         * libitm.map: Same.
1524         * libitm.texi: Document these ABI changes.
1526 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1528         * libitm.texi: New file.
1529         * Makefile.am: Add libitm.texi.
1530         * Makefile.in: Rebuild.
1532 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1534         * libitm_i.h: Move parts to common.h and dispatch.h.
1535         * common.h: New file.
1536         * dispatch.h: New file, new dispatch class.
1537         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1538         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1539         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1540         decision to retry.cc.
1541         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1542         only.
1543         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1544         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1545         logging.
1546         * barrier.cc: Use new barriers definitions.
1547         (abi_dispatch::memmove_overlap_check): New.
1548         * config/x86/x86_sse.cc: Same.
1549         * config/x86/x86_avx.cc: Same.
1550         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1551         memcpy.cc.
1552         * Makefile.in: Rebuild.
1553         * method-readonly.cc: Remove.
1554         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1555         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1557 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1559         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1560         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1561         * testsuite/libitm.c/dropref-2.c: Same.
1562         * testsuite/libitm.c/dropref.c: Same.
1564 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1566         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1567         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1568         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1569         * alloc_c.cc: Same.
1570         * barrier.tpl: Same.
1571         * beginend.c: Same.
1572         * config/generic/tls.h: Same.
1573         * config/x86/tls.h: Same.
1574         * libitm_i.h: Same.
1575         * memcpy.cc: Same.
1576         * memset.cc: Same.
1577         * method-readonly.cc: Same.
1578         * method-serial.cc: Same.
1579         * method-wbetl.cc: Same.
1580         * retry.cc: Same.
1582 2011-03-03  Richard Henderson  <rth@redhat.com>
1584         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1585         From Patrik Marlier <patrick.marlier@unine.ch>.
1587 2011-02-03  Richard Henderson  <rth@redhat.com>
1589         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1590         * configure.ac: Use it.
1591         * configure, config.h.in: Rebuild.
1592         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1593         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1594         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1595         * libitm.map: Use wildcards to match size_t mangling.
1597 2010-12-14  Richard Henderson  <rth@redhat.com>
1599         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1600         blocks of TIDs per thread.
1601         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1602         (setup_gtm_thr): Return the thread structure.
1603         * config/x86/tls.h (setup_gtm_thr): Likewise.
1605 2010-12-14  Richard Henderson  <rth@redhat.com>
1607         * clone.cc (table_lock): Remove.
1608         (find_clone): Don't take it.
1609         (ExcludeTransaction): New helper class.
1610         (_ITM_registerTMCloneTable): Use it.
1611         (_ITM_deregisterTMCloneTable): Likewise.
1613 2010-12-14  Richard Henderson  <rth@redhat.com>
1615         * config/x86/tls.h: New file.
1617 2010-07-15  Richard Henderson  <rth@redhat.com>
1619         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1620         * Makefile.in: Rebuild.
1622 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1624         * method-wbetl.cc (trydropreference): Fix source line.
1626 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1628         * libitm.h: Add comment.
1629         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1631 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1633         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1634         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1635         available, use pthread mutexes.
1636         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1637         * config.h.in: Regenerate.
1638         * configure: Regenerate.
1640 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1642         * libitm.h (ITM_PURE): Define.
1643         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1645 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1647         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1648         (validate): Add comment.
1649         (trydropreference): New.
1650         * method-readonly.cc (class readonly_dispatch): Add
1651         trydropreference.
1652         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1653         Call trydropreference().
1654         * libitm.h (_ITM_dropReferences): Remove const attribute.
1655         * method-serial.cc (class serial_dispatch): Add trydropreference.
1656         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1658 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1660         * memcpy.cc (do_memcpy): Comment.
1662 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1664         * barrier.tpl: Add comments throughout.
1666 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1668         * method-wbetl.cc (struct w_entry): Add comments.
1669         (trycommit): Same.
1670         (rollback): Same.
1672 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1674         * alloc_c.cc (_ITM_dropReferences): New.
1675         * libitm.map (_ITM_dropReferences): Add.
1676         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1677         * libitm_i.h (struct gtm_transaction): Declare
1678         drop_references_allocations and drop_references_local.
1679         * local.cc (rollback_local): Ignore memory when applicable.
1680         (drop_references_local): New.
1682 2010-06-23  Richard Henderson  <rth@redhat.com>
1684         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1685         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1686         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1687         * config/alpha/target.h: Likewise.
1688         * config/generic/tls.cc (gtm_mask_stack): Use it.
1690 2010-06-23  Richard Henderson  <rth@redhat.com>
1692         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1693         a mutex instead of trying a lock-free compare-and-swap on the list.
1694         (gtm_cacheline_page::operator delete): Likewise.
1696 2010-06-16  Richard Henderson  <rth@redhat.com>
1698         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1699         that overlap the libitm stack.
1700         * barrier.tpl: Mark incoming stack.
1701         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1702         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1703         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1704         * memcpy.cc, memset.cc: Likewise.
1705         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1706         * config/generic/tls.h (gtm_thread): Add stack_top member.
1707         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1708         * libitm_i.h (gtm_mask_stack): Declare.
1709         * config/generic/tls.cc: New file.
1710         * Makefile.am (libitm_la_SOURCES): Add it.
1711         (AM_CXXFLAGS): Turn off exceptions.
1712         * Makefile.in: Rebuild.
1714 2010-06-16  Richard Henderson  <rth@redhat.com>
1716         * alloc.cc (struct gtm_alloc_action): Move definition ...
1717         * libitm_i.h: ... here.
1718         (class gtm_transaction): Declare new and delete.
1719         * beginend.cc (alloc_tx): Reformulate as operator new.
1720         (free_tx): Reformulate as operator delete.
1721         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1723 2010-06-11  Richard Henderson  <rth@redhat.com>
1725         * clone.cc (clone_entry_compare): Fix typo.
1726         From Patrik Marlier <patrick.marlier@unine.ch>.
1728 2010-05-13  Richard Henderson  <rth@redhat.com>
1730         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1731         in extern "C".
1733 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1735         * libitm_i.h (struct gtm_transaction): Remove
1736         get_allocation_size.
1737         (record_allocation): Remove size parameter.
1738         * libitm.map (_ITM_realloc): Remove.
1739         * alloc_c.cc (_ITM_realloc): Remove.
1740         (_ITM_malloc): Remove size argument to record_allocation.
1741         (_ITM_calloc): Same.
1742         * alloc_cpp.cc (_ZGTtnwm): Same.
1743         (_ZGTtnwmRKSt9nothrow_t): Same.
1744         (_ZGTtnam): Same.
1745         (_ZGTtnamRKSt9nothrow_t): Same.
1746         * alloc.cc (struct gtm_alloc_action): Remove size.
1747         (get_allocation_size): Remove.
1748         (commit_allocations): Add comment.
1749         (record_allocation): Remove size parameter.
1750         (forget_allocation): Remove set of size.
1752 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1754         * Makefile.am (abi_version): New.
1755         (AM_CXXFLAGS): Pass abi_version.
1756         * Makefile.in: Regenerate.
1757         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1759 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1761         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1762         _ITM_getTMCloneOrIrrevokable.
1763         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1764         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1766 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1768         * configure.ac: Remove Linux futex support.
1769         * configure.tgt (config_path): Same.
1770         * Makefile.am: Same.
1771         * config/linux: Remove entire directory.
1772         * configure: Rebuild.
1773         * Makefile.in: Rebuild.
1774         * testsuite/Makefile.in: Rebuild.
1776 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1778         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1779         switching to serial mode.
1780         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1782 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1784         * configure.tgt: Add emacs -*- tags.
1785         * barrier.tpl: Same.
1787 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1789         * Makefile.am: Rename serial.cc to method-serial.cc.
1790         * Makefile.in: Regenerate with automake 1.11.1.
1791         * testsuite/Makefile.in: Same.
1792         * aclocal.m4: Regenerate with aclocal 1.11.1.
1793         * method-serial.cc: Rename from serial.cc.
1794         * libitm_i.h (struct gtm_transaction): Update comment on
1795         serialirr_mode.
1797 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1799         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1800         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1802 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1804         * configure: Rebuild.
1806 2009-11-12  Richard Henderson  <rth@redhat.com>
1808         * Rewrite everything in C++.
1810 2009-11-03  Richard Henderson  <rth@redhat.com>
1812         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1813         * Makefile.am (libitm_la_SOURCES): Add them.
1814         * configure.ac (ARCH_X86): New conditional.
1815         * Makefile.in, configure: Rebuild.
1816         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1817         Move futex setup into "other system configury" case.
1818         * local.c (rollback_local): Merge into ...
1819         (GTM_rollback_local): ... here.
1820         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1821         (_ITM_LB): Define as an alias to GTM_LB.
1823 2009-11-03  Richard Henderson  <rth@redhat.com>
1825         * method-readonly.c: New file.
1826         * Makefile.am (libitm_la_SOURCES): Add it.
1827         * Makefile.in: Rebuild.
1828         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1829         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1830         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1831         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1832         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1833         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1834         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1835         gtm_get_clock, gtm_inc_clock): New.
1836         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1837         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1838         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1839         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1840         replace uses with new libitm_i.h symbols.
1841         (dispatch_wbetl): Rename from wbetl_dispatch.
1842         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1843         away from dispatch_readonly; abort if the beginTransaction call
1844         asserted that the transaction was readonly.
1846 2009-11-03  Richard Henderson  <rth@redhat.com>
1848         * memset.c: New file.
1849         * Makefile.am (libitm_la_SOURCES): Add it.
1850         * Makefile.in: Rebuild.
1851         * testsuite/libitm.c/memset-1.c: New.
1853 2009-11-03  Richard Henderson  <rth@redhat.com>
1855         * dispatch.c: Remove file.
1856         * useraction.c (struct gtm_user_action): Move from libitm.h.
1857         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1858         (serial_memset, serial_memmove, serial_memcpy): Remove.
1859         (serial_W*, serial_R*): Remove.
1860         (serial_dispatch): Update to match.
1861         * configure.ac: Move Werror down below configure checks.  Don't
1862         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1863         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1864         Use GCC_AC_FUNC_MMAP_BLACKLIST
1865         * libitm.h: Split out all internal items to...
1866         * libitm_i.h: ... here.  New file.
1867         * copymask.c: New file.
1868         * local.c (struct gtm_local_undo): Move from libitm.h.
1869         (GTM_alloc_local): Rename from alloc_local; export.
1870         * memcpy.c: New file.
1871         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1872         * config/posix/page.c: New file.
1873         * config/posix/target_tls.h: Remove file.
1874         * barrier.c: New file.
1875         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1876         copymask.c, page.c.
1877         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1878         * method-wbetl.c: Rewrite for new cacheline methods.
1879         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1881         * config/alpha/sjlj.S: Fix typo.
1882         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1883         * config/alpha/copymask.c: New file.
1884         * config/alpha/target.h (CACHELINE_SIZE): New.
1885         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1887         * config/x86/target_i.h: Copy functions from x86/target.h.
1888         * config/x86/copymask.c: New file.
1889         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1890         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1891         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1892         * config/x86/target_tls.h: Move contents to target_i.h.
1894         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1895         * testsuite/libitm.c/memcpy-1.c: New.
1897 2009-10-22  Richard Henderson  <rth@redhat.com>
1899         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1900         (AM_CCASFLAGS): New.
1901         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1902         saving/restoring _AC_ARG_VAR_PRECIOUS.
1903         * Makefile.in, aclocal.m4, config.h.in, configure,
1904         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1906 2009-10-22  Richard Henderson  <rth@redhat.com>
1908         * testsuite/*: Update for new compiler syntax.
1910 2009-10-21  Richard Henderson  <rth@redhat.com>
1912         * libitm.h (_ITM_abortReason): Add outerAbort.
1914 2009-08-03  Richard Henderson  <rth@redhat.com>
1916         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1917         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1918         * method-wbetl.c (struct w_entry): Remove mask.
1919         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1920         adjust all callers.
1922 2009-07-22  Richard Henderson  <rth@redhat.com>
1924         * eh_cpp.c: New file.
1925         * Makefile.am (libitm_la_SOURCES): Add it.
1926         * Makefile.in: Rebuild.
1927         * beginend.c (GTM_rollback_transaction): Undo exception state.
1928         (GTM_trycommit_transaction): Mark inline.
1929         (GTM_trycommit_and_finalize_transaction): Split out from ...
1930         (_ITM_commitTransaction): ... here.
1931         (_ITM_commitTransactionEH): New function.
1932         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1933         cxa_unthrown, eh_in_flight; reorder.
1935         * testsuite/libitm.c++/c++.exp: New.
1936         * testsuite/libitm.c++/eh-1.C: New.
1938         * aatree.c (aa_free): Remove REGPARM.
1939         * aatree.h: Remove all REGPARM.
1941 2009-07-18  Richard Henderson  <rth@redhat.com>
1943         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1944         * Makefile.am (libitm_la_SOURCES): Add them.
1945         * Makefile.in: Rebuild.
1946         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1947         (GTM_trycommit_transaction): Likewise.
1948         * libitm.h: Include aatree.h
1949         (struct gtm_alloc_action): New.
1950         (struct gtm_transaction): Add alloc_actions.
1951         (GTM_record_allocation, GTM_forget_allocation): Declare.
1952         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1953         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1954         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1955         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1956         _ZGTtdaPvRKSt9nothrow_t): Export.
1958 2009-07-18  Richard Henderson  <rth@redhat.com>
1960         * target_tls.h: Move ...
1961         * config/posix/target_tls.h: ... here.
1963 2009-07-07  Richard Henderson  <rth@redhat.com>
1965         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1967 2009-07-07  Richard Henderson  <rth@redhat.com>
1969         * Update to GPL3.
1971 2009-07-07  Richard Henderson  <rth@redhat.com>
1973         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1974         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1976         * configure.tgt: Don't use -ftls-model for x86 linux.
1977         * libitm.h: Include target.h after standard includes.
1978         (_gtm_thr): Rename from gtm_thr.
1979         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1980         (gtm_disp, set_gtm_disp): New.
1981         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1982         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1983         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1985 2009-07-07  Richard Henderson  <rth@redhat.com>
1987         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1989 2009-07-06  Richard Henderson  <rth@redhat.com>
1991         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1992         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1993         (_ITM_beginTransaction): Take variadic arguments.
1994         (_ITM_registerThrownObject): Declare.
1995         * beginend.c, serial.c: Update.
1996         * libitm.map: Add _ITM_registerThrownObject.
1998 2009-01-28  Richard Henderson  <rth@redhat.com>
2000         * Makefile.am (libitm_la_SOURCES): Add clone.c.
2001         * Makefile.in: Rebuild.
2002         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2003         (GTM_restart_transaction): Fix uninstrumented code check.
2004         * retry.c (GTM_decide_retry_strategy): Add serial check.
2005         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
2006         automatically go irrevokable when in serial mode.
2007         * clone.c: New file.
2008         * libitm.h, libitm.map: Update.
2010 2009-01-27  Richard Henderson  <rth@redhat.com>
2012         * Makefile.am (LTCCASCOMPILE): Define.
2013         (libitm_la_SOURCES): Add methid-wbetl.c.
2014         * testsuite/Makefile.am: New
2015         * configure.ac: Add testsuite/Makefile.
2016         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2017         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2018         (_ITM_abortTransaction): Finalize implementation method; pass
2019         transaction properties to longjmp.
2020         (GTM_restart_transaction): Split out from ...
2021         (_ITM_commitTransaction): ... here.
2022         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2023         Move to config/x86/target.h.
2024         * config/linux/alpha/futex_bits.h: New.
2025         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2026         * config/x86/target.h: Disable target types for 32-bit.
2027         * config/alpha/sjlj.S, config/alpha/target.h: New.
2028         * libitm.h (struct gtm_dispatch): Add init, fini.
2029         (enum restart_reason): New.
2030         (struct gtm_transaction): Add method and restarts.
2031         * retry.c (GTM_decide_retry_strategy): Implement.
2032         * serial.c (serial_init, serial_fini): New.
2033         (GTM_serialmode): Finialize outgoing method.
2034         * method-wbetl.c: New.
2036 2008-12-09  Richard Henderson  <rth@redhat.com>
2038         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2039         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2040         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2041         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2042         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2043         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2044         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2045         * serial.c (serial_R##T, serial_W##T): Likewise.
2047 2008-11-21  Richard Henderson  <rth@redhat.com>
2049         * Initial commit.
2051 Copyright (C) 2008-2017 Free Software Foundation, Inc.
2053 Copying and distribution of this file, with or without modification,
2054 are permitted in any medium without royalty provided the copyright
2055 notice and this notice are preserved.