[AArch64] Implement copysign[ds]f3
[official-gcc.git] / libitm / ChangeLog
blob6285c85fd44aff37722e6e04c00c2898102f9aaa
1 2015-08-20  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>  (tiny change)
3         PR libitm/61164
4         * local_atomic (__always_inline): Rename to...
5         (__libitm_always_inline): ... this.
7 2015-07-03  Carlos Sánchez de La Lama  <csanchezdll@gmail.com>
9         PR target/52482
10         * config/powerpc/sjlj.S: Port to Xcode 2.5.
12 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14         * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
15         operands "op" and "val" to int.
17 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
19         * config/linux/sh/futex_bits.h (sys_futex0) Change operands
20         "op" and "val" to int.
22 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
24         * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
25         "op" and "val" to int.
27 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
29         * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
30         Declare as static int.
31         (FUTEX_PRIVATE_FLAG): Remove L suffix.
32         * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
34 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
36         * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
37         sys_futex0 function.
39 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
41         * Makefile.in: Regenerated with automake-1.11.6.
42         * aclocal.m4: Likewise.
43         * configure: Likewise.
44         * testsuite/Makefile.in: Likewise.
46 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
48         * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
49         * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
51 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
53         PR libitm/64360
54         * libitm.c/stackundo.c (test2): Make it static.
55         (test1): Likewise.
57 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
59         Update copyright years.
61 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
63         * libitm.texi: Bump @copying's copyright year.
65 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
67         * testsuite/lib/libitm.exp: Load target-utils.exp.
68         Move load of target-supports.exp earlier.
70 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
72         * configure.tgt (x86_64): Tune -m32 multilib to generic.
74 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
76         PR bootstrap/63784
77         * configure: Regenerated.
79 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
81         PR target/63610
82         * configure: Regenerate.
84 2014-10-06  Marek Polacek  <polacek@redhat.com>
86         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
87         * testsuite/libitm.c/memset-1.c: Likewise.
89 2014-07-24  Richard Henderson  <rth@redhat.com>
91         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
92         addressing mode in epilogue.
94 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
96         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
97         -mclear-hwcap instead.
98         * configure: Regenerate.
99         * clearcap.map: Remove.
101 2014-05-21  John Marino  <gnugcc@marino.st>
103         * configure.tgt (*-*-dragonfly*): New target.
105 2014-05-19  Richard Henderson  <rth@redhat.com>
107         * config/aarch64/sjlj.S: New file.
108         * config/aarch64/target.h: New file.
109         * configure.tgt: Enable aarch64.
111 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
113         * config/generic/asmcfi.h: Also check for
114         __GCC_HAVE_DWARF2_CFI_ASM.
116 2013-04-02  Richard Henderson  <rth@redhat.com>
118         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
119         * config/arm/target.h, config/sh/target.h: Likewise.
120         * config/sparc/target.h, config/x86/target.h: Likewise.
122 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
124         * config/linux/futex_bits.h: Include errno.h.
125         (sys_futex0): If syscall returns -1, return -errno rather than
126         -1.
128 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
130         * libitm.texi (Index): Rename to Library Index.
132 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
134         PR libitm/53113
135         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
136         (x86_avx.lo): Append -mavx to CXXFLAGS.
137         * Makefile.in: Regenerate.
139 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
141         Update copyright years
143 2014-01-02  Tobias Burnus  <burnus@net-b.de>
145         * libitm.texi: Bump @copying's copyright year.
147 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
149         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
150         (FUNC): Define ELFv2 variant.
151         (END): Likewise.
152         (HIDDEN): Likewise.
153         (CALL): Likewise.
154         (BASE): Likewise.
155         (LR_SAVE): Likewise.
157 2013-09-20  Alan Modra  <amodra@gmail.com>
159         * configure: Regenerate.
161 2013-08-30  Torvald Riegel  <triegel@redhat.com>
163         * config/posix/rwlock.cc: Fix initialization order.
165 2013-08-30  Torvald Riegel  <triegel@redhat.com>
167         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
168         (htm_fastpath): Assign an asm name.
169         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
170         HTM fast paths.
171         (_ITM_actions): Likewise.
172         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
173         x86_64.
174         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
175         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
176         field to the start of the structure.
177         * config/linux/rwlock.h (gtm_rwlock): Update comments.
178         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
179         handling for custom HTM fast paths.
181 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
182         Revert:
183         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
185         * configure.tgt: Add -msoft-float to XCFLAGS.
187 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
189         * configure.tgt: Add -msoft-float to XCFLAGS.
191 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
193         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
194         (htm_transaction_active): Enable zEC12 instructions in the
195         assembler.
196         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
198 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
200         * acinclude.m4: Add htm asm check for s390.
201         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
202         * configure: Regenerate.
203         * config/s390/target.h: Remove __HTM__ check.
204         (htm_available): Call getauxval to get hwcaps and check whether
205         HTM is available or not.
207 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
209         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
210         * configure.ac: Use it.
211         (AC_CHECK_HEADERS): Check for sys/auxv.h.
212         (AC_CHECK_FUNCS): Check for getauxval.
213         * config.h.in, configure: Rebuild.
214         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
215         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
216         (USE_HTM_FASTPATH): Define.
217         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
218         _HTM_RETRIES) New macros.
219         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
220         htm_begin_success, htm_commit, htm_transaction_active): New functions.
222 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
224         * config/s390/target.h: Include htmintrin.h.
225         (_HTM_ITM_RETRIES): New macro definition.
226         (htm_available, htm_init, htm_begin, htm_begin_success)
227         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
229 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
230             Cesar Philippidis  <cesar@codesourcery.com>
232         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
233         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
234         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
235         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
237 2013-06-20  Torvald Riegel  <triegel@redhat.com>
239         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
240         (_ITM_getTransactionId): Same.
241         * config/x86/target.h (htm_transaction_active): New.
243 2013-06-20  Torvald Riegel  <triegel@redhat.com>
245         PR libitm/57643
246         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
247         the HTM fastpath.
249 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
251         PR bootstrap/56714
252         * local_atomic (__always_inline): Always define our version.
253         (__calculate_memory_order): Mark inline.
254         (atomic_thread_fence): Ditto.
255         (atomic_signal_fence): Ditto.
256         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
257         (atomic_bool::atomic_flag_clear_explicit): Ditto.
258         (atomic_bool::atomic_flag_test_and_set): Ditto.
259         (atomic_bool::atomic_flag_clear): Ditto.
261 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
263         * config/s390/sjlj.S: New file.
264         * config/s390/target.h: New file.
265         * configure.tgt: Set options for S/390.
267 2013-03-23  Andi Kleen  <ak@linux.intel.com>
269         * local_atomic (__always_inline): Add.
270         (__calculate_memory_order, atomic_thread_fence,
271          atomic_signal_fence, test_and_set, clear, store, load,
272          exchange, compare_exchange_weak, compare_exchange_strong,
273          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
274         Add __always_inline to force inlining.
276 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
277             Jack Howarth  <howarth@bromo.med.uc.edu>
278             Patrick Marlier  <patrick.marlier@gmail.com>
280         PR libitm/55693
281         * alloc_cpp.cc: Enable function declarations on darwin.
282         * eh_cpp.cc: Likewise.
284 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
286         Update copyright years.
288 2012-11-09  Torvald Riegel  <triegel@redhat.com>
290         * beginend.cc (htm_fastpath): New.
291         (gtm_thread::begin_transaction, _ITM_commitTransaction,
292         _ITM_commitTransactionEH): Add HTM fastpath handling.
293         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
294         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
295         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
296         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
297         * configure.tgt: Add -mrtm to XCFLAGS.
298         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
299         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
300         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
301         * retry.cc (parse_default_method): Add HTM method parsing.
302         (gtm_thread::number_of_threads_changed): Use HTM by default if
303         available.
305 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
307         * configure: Regenerate.
309 2012-10-31  Richard Henderson  <rth@redhat.com>
311         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
312         * configure.ac: Use it.
313         * config.h.in, configure: Rebuild.
314         * testsuite/Makefile.in: Rebuild.
316 2012-10-24  Torvald Riegel  <triegel@redhat.com>
318         * libitm.texi: Clarify ABI requirements for data-logging functions.
320 2012-10-24  Torvald Riegel  <triegel@redhat.com>
322         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
323         it requires serial mode instead of assuming that for certain
324         dispatchs.
325         * dispatch.h (abi_dispatch::requires_serial): New.
326         (abi_dispatch::abi_dispatch): Adapt.
327         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
328         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
329         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
330         serial_dispatch::serial_dispatch,
331         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
333 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
335         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
336         and ia32 declarations some more.
337         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
339 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
341         PR other/43620
342         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
343         * configure: Regenerate.
344         * Makefile.in: Regenerate.
346 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
348         * configure: Regenerated.
350 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
352         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
354 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
356         * eh_cpp.cc: Fix __cxa_end_catch declaration.
358 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
360         * configure: Regenerated.
362 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
364         PR libitm/52854
365         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
366         for x86-64.
368 2012-04-03  Tristan Gingold  <gingold@adacore.com>
370         * configure: Regenerate.
372 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
374         PR bootstrap/52812
375         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
377 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
379         * testsuite/lib/libitm.exp: load fortran-modules.exp
381 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
383         * configure.tgt (*-*-irix6*): Remove.
385 2012-03-13  Torvald Riegel  <triegel@redhat.com>
387         PR libitm/52526
388         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
389         wake-up.
391 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
393         * configure.tgt (*-*-osf*): Remove.
394         * configure: Regenerate.
396 2012-03-05  Torvald Riegel  <triegel@redhat.com>
398         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
399         memtransfer/memset if size isn't larger than zero.
401 2012-03-02  Torvald Riegel  <triegel@redhat.com>
403         * libitm.texi: Link to specification and add a usage example.
405 2012-02-24  Torvald Riegel  <triegel@redhat.com>
407         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
408         default dispatch for more than 1 thread to ml_wt.
410 2012-02-20  Torvald Riegel  <triegel@redhat.com>
412         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
414 2012-02-20  Torvald Riegel  <triegel@redhat.com>
416         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
418 2012-02-20  Torvald Riegel  <triegel@redhat.com>
420         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
421         serial mode corner cases made obsolete by prior gtm_rwlock changes.
422         (gl_wt_dispatch.rollback): Same.
424 2012-02-20  Torvald Riegel  <triegel@redhat.com>
426         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
428 2012-02-20  Torvald Riegel  <triegel@redhat.com>
430         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
431         for RfW src.  Optimize number of calls to gtm_thr.
433 2012-02-20  Torvald Riegel  <triegel@redhat.com>
435         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
436         acquisition to ...
437         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
438         (default_dispatch): Make atomic.
439         (GTM::gtm_thread::set_default_dispatch): Access atomically.
440         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
441         use decide_begin_dispatch() if default_dispatch might have changed.
442         (GTM::gtm_thread::number_of_threads_changed): Initialize
443         default_dispatch here.
445 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
446             Patrick Marlier  <patrick.marlier@gmail.com>
448         PR libitm/52220
449         * alloc_cpp.cc: No dummy definitions for darwin.
450         * eh_cpp.cc: Likewise.
452 2012-02-14  Richard Henderson  <rth@redhat.com>
454         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
456 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
458         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
460 2012-02-14  Torvald Riegel  <triegel@redhat.com>
462         * libitm_i.h (GTM::gtm_rwlog_entry): New.
463         (GTM::gtm_thread): Add read and write logs.
464         (GTM::dispatch_ml_wt): Declare.
465         * retry.cc (parse_default_method): Support ml_wt.
466         * method-ml.cc: New file.
467         * Makefile.am: Add method-ml.cc.
468         * Makefile.in: Regenerate.
470 2012-02-14  Torvald Riegel  <triegel@redhat.com>
472         * dispatch.h (GTM::abi_dispatch::supports): New.
473         (GTM::method_group::reinit): New.
474         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
475         (GTM::gtm_thread::number_of_threads_changed): Check that the method
476         supports the current situation.
478 2012-02-14  Torvald Riegel  <triegel@redhat.com>
480         * util.cc (GTM::xcalloc): New.
481         * common.h (GTM::xcalloc): Declare.
483 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
485         * config/sparc/target.h (cpu_relax): Read from CC register.
486         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
488 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
490         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
492 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
494         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
495         * config/sparc/cacheline.h: New file.
496         * config/sparc/target.h: Likewise.
497         * config/sparc/sjlj.S: Likewise.
498         * config/linux/sparc/futex_bits.h: Likewise.
500 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
502         * configure.ac (link_itm): Fix comment.
503         * configure: Regenerate.
504         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
506 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
508         PR libitm/51822
509         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
510         Correct libgomp references.
512 2012-01-24  Torvald Riegel  <triegel@redhat.com>
514         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
515         wake-up.
517 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
519         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
520         end of structure.
521         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
522         offset values.  Do not copy return address.  Decrement stack
523         by 56 bytes only.
524         (GTM_longjump) [__x86_64__]: Update offset values.
526 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
528         PR libitm/51830
529         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
530         the first function argument to %eax.
532 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
534         * libitm.h (_ITM_getThreadnum): Remove.
535         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
537 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
539         * clearcap.map: New file.
540         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
541         * configure.ac: Call it.
542         Clear HWCAP_LDFLAGS if defaulting to -mavx.
543         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
544         * configure: Regenerate.
545         * Makefile.in: Regenerate.
546         * testsuite/Makefile.in: Regenerate.
548 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
550         PR libitm/51173
551         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
552         include, exclude options.
554 2012-01-14  Torvald Riegel  <triegel@redhat.com>
556         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
557         rolling back.
558         * containers.h (GTM::vector::set_size): New.
560 2012-01-14  Torvald Riegel  <triegel@redhat.com>
562         PR libitm/51855
563         * config/generic/tls.h (GTM::mask_stack_top): New.
564         (GTM::mask_stack_bottom): Declare.
565         * config/generic/tls.c (GTM::mask_stack_bottom): New.
566         * local.cc (gtm_undolog::rollback): Filter out any updates that
567         overlap the libitm stack.  Add current transaction as parameter.
568         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
569         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
570         * testsuite/libitm.c/stackundo.c: New test.
572 2012-01-10  Richard Henderson  <rth@redhat.com>
574         * libitm_i.h (_Unwind_DeleteException): Declare weak.
575         * eh_cpp.cc (_Unwind_DeleteException): Define for
576         !HAVE_ELF_STYLE_WEAKREF.
578 2012-01-08  Torvald Riegel  <triegel@redhat.com>
580         * local.cc (GTM_LB): Use GTM::gtm_undolog.
581         (GTM::gtm_thread::drop_references_undolog): Remove.
582         (GTM::gtm_thread::commit_undolog,
583         GTM::gtm_thread::rollback_undolog): Move to ...
584         * libitm_i.h (GTM::gtm_undolog): ...here. New.
585         (GTM::gtm_undolog_entry): Remove.
586         (GTM::gtm_thread): Adapt.
587         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
588         (GTM::gtm_thread::trycommit): Adapt.
589         * method-serial.cc (serial_dispatch::log): Adapt.
590         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
591         (gl_wt_dispatch::store): Fix likely/unlikely.
592         * containers.h (GTM::vector::resize): Add additional_capacity
593         parameter and handle it.
594         (GTM::vector::resize_noinline): New/adapt.
595         (GTM::vector::push): New.
597 2012-01-06  Richard Henderson  <rth@redhat.com>
599         * configure.tgt: Support powerpc-linux and powerpc-darwin.
600         * config/linux/powerpc/futex_bits.h: New file.
601         * config/powerpc/cacheline.h: New file.
602         * config/powerpc/sjlj.S: New file.
603         * config/powerpc/target.h: New file.
604         * config/generic/asmcfi.h (cfi_offset): New.
605         (cfi_restore, cfi_undefined): New.
607 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
609         PR other/51171
610         * testsuite/libitm.c/reentrant.c: Remove xfail.
611         (thread): Pass x to pure().
612         From Patrik Marlier <patrick.marlier@gmail.com>.
614 2011-12-24  Torvald Riegel  <triegel@redhat.com>
616         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
617         privatization safety if already in serial mode.
619 2011-12-24  Torvald Riegel  <triegel@redhat.com>
621         * beginend.cc (GTM::gtm_thread::restart): Add and handle
622         finish_serial_upgrade parameter.
623         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
624         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
625         Don't unset reader flag.
626         (GTM::gtm_rwlock::write_upgrade_finish): New.
627         * config/posix/rwlock.cc: Same.
628         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
629         Declare.
630         * config/posix/rwlock.h: Same.
631         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
632         flag after commit or after rollback when restarting.
634 2011-12-24  Torvald Riegel  <triegel@redhat.com>
636         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
637         (GTM::gtm_thread::try_commit): Changed memory order.
638         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
639         as parameter.
640         * config/linux/x86/futex_bits.h (sys_futex0): Same.
641         * config/linux/sh/futex_bits.h (sys_futex0): Same.
642         * config/linux/futex_bits.h (sys_futex0): Same.
643         * config/linux/futex.cc (futex_wait, futex_wake): Same.
644         * config/linux/futex.h (futex_wait, futex_wake): Same.
645         * config/linux/rwlock.h (gtm_rwlock::writers,
646         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
647         ints.
648         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
649         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
650         gtm_rwlock::write_unlock): Fix memory orders and fences.
651         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
652         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
653         gtm_rwlock::write_unlock): Same.
654         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
655         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
656         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
657         Add comments.
658         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
659         gl_wt_dispatch::load, gl_wt_dispatch::store,
660         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
661         orders and fences.  Add comments.
663 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
665         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
666         * Makefile.in: Regenerated.
668 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
670         * configure.tgt: Add sh* case.
671         * config/sh/target.h: New file.
672         * config/sh/sjlj.S: New file.
673         * config/linux/sh/futex_bits.h: New file.
675 2011-12-14  Richard Henderson  <rth@redhat.com>
677         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
678         * config/arm/sjlj.S, config/arm/target.h: New files.
679         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
680         (cfi_rel_offset): New.
681         * config/linux/futex_bits.h: New file.
682         * config/linux/futex.cc: Include futex_bits.h here...
683         * config/linux/futex.h: ... not here.
684         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
685         * configure.ac (ARCH_AM): New conditional.
686         * Makefile.in, configure: Rebuild.
687         * configure.tgt: Handle ARM.
689 2011-12-13  Richard Henderson  <rth@redhat.com>
691         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
692         signed/unsigned comparison werror.
694         * local_atomic: New file.
695         * libitm_i.h: Include it.
696         (gtm_thread::shared_state): Use atomic template.
697         * beginend.cc (GTM::gtm_clock): Use atomic template.
698         (global_tid): Use atomic template if 64-bit atomics available.
699         (gtm_thread::gtm_thread): Update shared_state access.
700         (gtm_thread::trycommit): Likewise.
701         (choose_code_path): Update global_tid access.
702         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
703         * stmlock.h (GTM::gtm_clock): Use atomic template.
704         (gtm_get_clock, gtm_inc_clock): Update accesses.
705         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
706         redundant __sync_synchronize after atomic shared_state access.
707         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
708         (gtm_rwlock::write_lock_generic): Likewise.
709         (gtm_rwlock::read_unlock): Likewise.
710         * config/alpha/target.h (atomic_read_barrier): Remove.
711         (atomic_write_barrier): Remove.
712         * config/x86/target.h (atomic_read_barrier): Remove.
713         (atomic_write_barrier): Remove.
715 2011-11-30  Richard Henderson  <rth@redhat.com>
717         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
718         * beginend.c (_ITM_abortTransaction): Update to match.
719         (GTM::gtm_thread::restart): Likewise.
720         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
721         * config/x86/sjlj.S (GTM_longjmp): Likewise.
723 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
725         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
726         * Makefile.in: Regenerate.
728 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
730         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
731         * alloc_cpp.cc: Generate dummy functions if we don't
732         HAVE_ELF_STYLE_WEAKREF.
733         * eh_cpp.cc: Likewise.
734         * configure: Regenerate.
735         * aclocal.m4:  Likewise.
736         * config.h.in: Likewise.
737         * Makefile.in: Likewise.
738         * testsuite/Makefile.in: Likewise.
740 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
742         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
743         __USER_LABEL_PREFIX__ for targets that use it.
744         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
745         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
746         in portability to non-elf targets.
747         (GTM_longjmp): Likewise.
748         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
749         where required.
751 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
753         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
754         * testsuite/libitm.c/memset-1.c: Likewise.
756 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
758         * configure: Regenerate.
760 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
762         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
763         (LIBITM_ENABLE_SYMVERS): Handle sun style.
764         * Makefile.am: Handle sun style versioning.
765         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
766         * configure: Regenerate.
767         * Makefile.in: Regenerate.
769 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
771         * config/generic/asmcfi.h: Fix comment.
772         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
773         sequence without .hidden support, error for non-ELF targets.
774         (GTM_longjmp) [__ELF__]: Only use .hidden if
775         HAVE_ATTRIBUTE_VISIBILITY.
777 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
779         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
780         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
781         Dummy functions.
782         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
783         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
785 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
787         PR bootstrap/51098
788         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
789         * configure: Regenerate.
791 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
793         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
795 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
797         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
798         .hidden.
799         (.note.GNU-stack): Only use if __linux__.
800         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
801         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
802         * testsuite/libitm.c/reentrant.c: Likewise.
803         * testsuite/libitm.c/simple-2.c: Likewise.
804         * testsuite/libitm.c/txrelease.c: Likewise.
805         * testsuite/libitm.c++/static_ctor.C: Likewise.
807 2011-11-10  Richard Henderson  <rth@redhat.com>
809         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
810         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
811         * configure.ac (ARCH_X86_AVX): New conditional.
812         * Makefile.in, configure: Rebuild.
814 2011-11-09  Richard Henderson  <rth@redhat.com>
816         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
817         * configure.ac: Use it.
818         * config.h.in, configure: Rebuild.
819         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
821 2011-11-09  Richard Henderson  <rth@redhat.com>
823         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
824         * config/alpha/unaligned.h: Remove file.
825         * config/generic/unaligned.h: Remove file.
826         * config/x86/unaligned.h: Remove file.
827         * config/generic/cachepage.h: Remove file.
828         * config/posix/cachepage.cc: Remove file.
829         * config/generic/cacheline.cc: Remove file.
830         * config/x86/cacheline.cc: Remove file.
831         * config/generic/cacheline.h (gtm_cacheline): Remove the
832         store_mask, copy_mask, copy_mask_wb methods.
833         * config/x86/cacheline.h: Likewise.
834         * config/alpha/cacheline.h: Fall back to generic after setting size.
835         * config/generic/tls.cc (gtm_mask_stack): Remove.
836         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
837         (GTM_vpalignr_table): Remove.
838         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
839         (GTM_pshift_table): Remove.
840         * config/libitm_i.h: Don't include cachepage.h.
841         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
842         * Makefile.in, testsuite/Makefile.in: Rebuild.
844 2011-11-09  Richard Henderson  <rth@redhat.com>
846         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
847         to emit branch prediction hint.
849         * config/x86/sjlj.S: Protect elf directives with __ELF__.
850         Protect .note.GNU-stack with __linux__.
852         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
853         * configure, aclocal.m4, config.h.in: Rebuild.
854         * config/generic/asmcfi.h: New file.
855         * config/x86/sjlj.S: Use it.
857 2011-11-08  Richard Henderson  <rth@redhat.com>
859         * local.cc (_ITM_LB): Use a normal call, not a function alias.
861 2011-11-08  Richard Henderson  <rth@redhat.com>
863         * configure.tgt: Test correct directory for supported cpus.
865         * configure.ac: Exit if unsupported.
866         * configure: Rebuild.
867         * configure.tgt: Delete boilerplate from libgomp for unsupported
868         targets.  Set UNSUPPORTED for unsupported targets.
870 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
872         * configure.tgt: Handle i386 like i[456]86.
873         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
874         take address.
875         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
876         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
878 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
880         * method-wbetl.cc: Update copyright notice.
881         * aatree.cc: Same.
882         * util.cc: Same.
883         * libitm.h: Same.
884         * memset.cc: Same.
885         * eh_cpp.cc: Same.
886         * barrier.tpl: Same.
887         * useraction.cc: Same.
888         * stmlock.h: Same.
889         * memcpy.cc: Same.
890         * common.h: Same.
891         * config/generic/tls.cc: Same.
892         * config/generic/cacheline.h: Same.
893         * config/generic/cachepage.h: Same.
894         * config/generic/cacheline.cc: Same.
895         * config/generic/unaligned.h: Same.
896         * config/x86/cacheline.h: Same.
897         * config/x86/cacheline.cc: Same.
898         * config/x86/unaligned.h: Same.
899         * config/alpha/cacheline.h: Same.
900         * config/alpha/unaligned.h: Same.
901         * config/alpha/sjlj.S: Same.
902         * config/posix/cachepage.cc: Same.
903         * config/linux/futex.h: Same.
904         * config/linux/alpha/futex_bits.h: Same.
906 2011-11-04  Torvald Riegel  <triegel@redhat.com>
908         * libitm.texi: No cover text and invariant sections.
910 2011-11-03  Richard Henderson  <rth@redhat.com>
912         * local_type_traits: New file.
913         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
915 2011-11-03  Richard Henderson  <rth@redhat.com>
917         * configure.ac: Don't test for gfortran.
918         * configure: Rebuild.
920         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
921         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
923 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
925         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
926         * testsuite/libitm.c/memset-1.c: Same.
927         * testsuite/libitm.c/c.exp: Same.
928         * testsuite/lib/libitm-dg.exp: Same.
929         * testsuite/lib/libitm.exp: Same.
930         * testsuite/libitm.c++/c++.exp: Same.
932 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
934         * testsuite/config/default.exp: Update copyright date.
935         * configure.ac: Add copyright info.
936         * configure.tgt: Same.
938 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
940         * testsuite/libitm.c/reentrant.c: XFAIL.
941         * testsuite/libitm.c++/static_ctor.C: XFAIL.
943 2011-10-29  Torvald Riegel  <triegel@redhat.com>
945         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
946         handle aborts.
947         (_ITM_abortTransaction): Handle aborts of outer transactions.
948         * libitm_i.h: Same.
949         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
950         * libitm.texi: Document aborts of outer transactions.
951         * testsuite/libitm.c/cancel.c: New file.
953 2011-10-19  Torvald Riegel  <triegel@redhat.com>
955         * testsuite/*: Change __transaction to __transaction_atomic or
956         __transaction_relaxed.
958 2011-10-19  Torvald Riegel  <triegel@redhat.com>
960         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
961         (gtm_thr): Same.
963 2011-10-19  Torvald Riegel  <triegel@redhat.com>
965         * libitm_i.h: Add gl_wt dispatch.
966         * retry.cc (parse_default_method): Same.
967         * method-gl.cc: New file.
968         * Makefile.am: Use method-gl.cc.
969         * Makefile.in: Rebuild.
971 2011-10-19  Torvald Riegel  <triegel@redhat.com>
973         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
974         safety if requested by a TM method.
975         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
976         privatization safety.
977         * method-serial.cc: Same.
979 2011-10-19  Torvald Riegel  <triegel@redhat.com>
981         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
982         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
983         undolog-related member functions from *_local to *_undolog.
984         * local.cc (gtm_thread::commit_undolog): Same.
985         * beginend.cc (GTM::gtm_thread::trycommit): Same.
986         (GTM::gtm_thread::rollback): Roll back undolog before
987         dispatch-specific rollback.
989 2011-10-19  Torvald Riegel  <triegel@redhat.com>
991         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
992         re-initialization of the current method group.
993         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
995 2011-10-19  Torvald Riegel  <triegel@redhat.com>
997         * alloc.cc (commit_allocations_2): Do not free transaction-local
998         memory when committing a nested transaction.
1000 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1002         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1003         serial-irrevocable dispatch, not serial.
1005 2011-10-19  Torvald Riegel  <triegel@redhat.com>
1007         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1008         declarations.
1009         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1010         * method-serial.cc: Implement begin_or_restart().
1011         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1012         dispatch-specific begin_or_restart().
1013         (GTM::gtm_thread::restart): Same.
1015 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1017         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1018         restarting without switching to serial mode.
1019         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1020         transaction state. Choose closed-nesting alternative if available.
1021         (GTM::gtm_thread::set_default_dispatch): New.
1022         (parse_default_method): New.
1023         (GTM::gtm_thread::number_of_threads_changed): New.
1024         * method-serial.cc (GTM::serial_mg): New method group class.
1025         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1026         fini.
1027         (GTM::serial_dispatch): Same.
1028         (GTM::serialirr_onwrite_dispatch): Same.
1029         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1030         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1031         registered threads.
1032         (GTM::gtm_thread::gtm_thread): Same.
1033         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1034         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1035         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1036         choose dispatch but set state according to dispatch here.
1037         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1038         (GTM::method_group): New class.
1039         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1040         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1041         * libitm.texi: Document TM methods, method groups, method life cycle.
1042         Rename method sets to method groups.
1044 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1046         * config/x86/tls.h: Moved to ...
1047         * config/linux/x86/tls.h: ... here.
1049 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1051         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1052         Add X32 support.
1053         * config/x86/sjlj.S: Same.
1055 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1057         * config/linux/rwlock.h: New file.
1058         * config/linux/rwlock.c: New file.
1059         * configure.ac: Reenable futex support (undo SVN rev 157758).
1060         * Makefile.am: Same.
1061         * configure.tgt: Same.
1062         * config/linux/alpha/futex_bits.h: Same.
1063         * config/linux/futex.h: Same. Return number of woken processes.
1064         * config/linux/futex.cc: Same.
1065         (futex_wait): Remove spinning.
1066         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1067         Use __x86_64__ instead of __LP64__.
1068         * aclocal.m4: Include generic futex checks.
1069         * configure: Rebuild.
1070         * Makefile.in: Rebuild.
1071         * testsuite/Makefile.in: Rebuild.
1072         * beginend.cc: Include pthread.h.
1073         * config/posix/cachepage.cc: Same.
1075 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1077         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1078         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1079         (set_gtm_thr): New.
1080         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1081         (set_gtm_thr): New.
1082         (GTM::gtm_thread::thread_num): Removed.
1083         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1084         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1085         tx-to-thread renaming.
1086         * beginend.cc: Adapted to tx-to-thread renaming.
1087         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1088         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1089         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1090         gtm_transaction to gtm_thread.
1091         (_ITM_getThreadnum): Removed. Not supported anymore.
1092         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1093         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1094         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1095         gtm_tx-to-gtm_thr renaming if necessary.
1096         * eh_cpp.cc: Same.
1097         * local.cc: Same.
1098         * retry.cc: Same.
1099         * clone.cc: Same.
1100         * alloc.cc: Same.
1101         * alloc_c.cc: Same.
1102         * alloc_cpp.cc: Same.
1103         * method-serial.cc: Same.
1104         * config/generic/tls.cc: Same.
1105         * config/posix/rwlock.h (gtm_rwlock): Same.
1106         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1108 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1110         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1111         implementation.
1112         (gtm_rwlock::read_unlock): Same.
1113         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1114         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1115         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1116         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1117         w_upgrade. Replaced by per-transaction flags (in shared_state).
1118         Added c_confirmed_writers.
1119         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1120         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1121         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1122         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1123         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1124         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1125         * libitm.texi: Document locking conventions and implementations in
1126         libitm.
1128 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1130         * libitm_i.h (next_tx): Add list of all threads' transaction.
1131         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1132         transaction with list of transactions and ...
1133         (thread_exit_handler): ... deregister here.
1134         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1135         * config/x86/target.h: Same.
1137 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1139         * testsuite/libitm.c++/static_ctor.C: New file.
1141 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1143         * testsuite/libitm.c/reentrant.c: New file.
1145 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1147         * config/generic/tls.h: Remove the free list for transactions and ...
1148         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1149         (GTM::gtm_transaction::operator delete): ... and release here.
1150         (thread_exit_handler): New. Delete tx when thread terminates.
1151         (thread_exit_init): New.
1152         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1153         * testsuite/libitm.c/txrelease.c: New file.
1155 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1157         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1158         * testsuite/libitm.c/notx.c: New file.
1160 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1162         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1163         * libitm_i.h (local_tid): ... to here.
1164         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1165         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1167 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1169         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1170         serialirr_onwrite_dispatch as new default for now.
1171         * method-serial.cc (serialirr_onwrite_dispatch): New.
1172         (GTM::dispatch_serialirr_onwrite): New.
1173         * libitm_i.h: Same.
1175 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1177         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1178         * query.cc (_ITM_getTransactionId): There is no active transaction if
1179         the current nesting level is zero.
1181 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1183         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1184         rollback.
1186 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1188         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1189         transaction properties from the caller instead of from the
1190         transaction object.
1191         * libitm_i.h: Same.
1192         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1194 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1196         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1197         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1198         * dispatch.h: Same.
1199         * method-serial.cc: Same.
1200         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1201         flat nesting as default, and closed nesting on demand.
1202         (GTM::gtm_transaction::rollback): Same.
1203         (_ITM_abortTransaction): Same.
1204         (GTM::gtm_transaction::restart): Same.
1205         (GTM::gtm_transaction::trycommit): Same.
1206         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1207         (choose_code_path): New.
1208         (GTM::gtm_transaction_cp::save): New.
1209         (GTM::gtm_transaction_cp::commit): New.
1210         * query.cc (_ITM_inTransaction): Support flat nesting.
1211         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1212         (GTM::gtm_transaction): Support flat and closed nesting.
1213         * alloc.cc (commit_allocations_2): New.
1214         (commit_cb_data): New helper struct.
1215         (GTM::gtm_transaction::commit_allocations): Handle nested
1216         commits/rollbacks.
1217         * libitm.texi: Update user action section, add description of nesting.
1219 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1221         * libitm_i.h: Add closed nesting as restart reason.
1222         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1224 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1226         * useraction.cc: Use vector instead of list to store actions.
1227         Also support partial rollbacks for closed nesting.
1228         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1229         * beginend.cc: Same.
1231 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1233         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1234         closed_nesting flags, as well as a closed nesting alternative.
1235         * method-serial.cc: Same.
1236         (serial_dispatch): Renamed to serialirr_dispatch.
1237         (GTM::dispatch_serialirr): Same.
1238         (serial_dispatch_ul): Renamed to serial_dispatch.
1239         (GTM::dispatch_serial): Same.
1241 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1243         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1245 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1247         * aatree.h (aa_tree::remove): New.
1248         (aa_tree::operator new): Add placement new.
1250 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1252         * containers.h: New file.
1253         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1254         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1255         * common.h: ... to here.
1256         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1257         * local.cc: Same.
1259 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1261         * libitm_i.h (STATE_ABORTING): Remove.
1262         * beginend.cc (_ITM_abortTransaction): Same.
1263         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1264         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1265         (_ITM_rollbackTransaction): Remove.
1266         * beginend.cc: Same.
1267         * libitm.map: Same.
1268         * libitm.texi: Document these ABI changes.
1270 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1272         * libitm.texi: New file.
1273         * Makefile.am: Add libitm.texi.
1274         * Makefile.in: Rebuild.
1276 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1278         * libitm_i.h: Move parts to common.h and dispatch.h.
1279         * common.h: New file.
1280         * dispatch.h: New file, new dispatch class.
1281         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1282         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1283         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1284         decision to retry.cc.
1285         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1286         only.
1287         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1288         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1289         logging.
1290         * barrier.cc: Use new barriers definitions.
1291         (abi_dispatch::memmove_overlap_check): New.
1292         * config/x86/x86_sse.cc: Same.
1293         * config/x86/x86_avx.cc: Same.
1294         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1295         memcpy.cc.
1296         * Makefile.in: Rebuild.
1297         * method-readonly.cc: Remove.
1298         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1299         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1301 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1303         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1304         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1305         * testsuite/libitm.c/dropref-2.c: Same.
1306         * testsuite/libitm.c/dropref.c: Same.
1308 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1310         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1311         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1312         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1313         * alloc_c.cc: Same.
1314         * barrier.tpl: Same.
1315         * beginend.c: Same.
1316         * config/generic/tls.h: Same.
1317         * config/x86/tls.h: Same.
1318         * libitm_i.h: Same.
1319         * memcpy.cc: Same.
1320         * memset.cc: Same.
1321         * method-readonly.cc: Same.
1322         * method-serial.cc: Same.
1323         * method-wbetl.cc: Same.
1324         * retry.cc: Same.
1326 2011-03-03  Richard Henderson  <rth@redhat.com>
1328         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1329         From Patrik Marlier <patrick.marlier@unine.ch>.
1331 2011-02-03  Richard Henderson  <rth@redhat.com>
1333         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1334         * configure.ac: Use it.
1335         * configure, config.h.in: Rebuild.
1336         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1337         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1338         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1339         * libitm.map: Use wildcards to match size_t mangling.
1341 2010-12-14  Richard Henderson  <rth@redhat.com>
1343         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1344         blocks of TIDs per thread.
1345         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1346         (setup_gtm_thr): Return the thread structure.
1347         * config/x86/tls.h (setup_gtm_thr): Likewise.
1349 2010-12-14  Richard Henderson  <rth@redhat.com>
1351         * clone.cc (table_lock): Remove.
1352         (find_clone): Don't take it.
1353         (ExcludeTransaction): New helper class.
1354         (_ITM_registerTMCloneTable): Use it.
1355         (_ITM_deregisterTMCloneTable): Likewise.
1357 2010-12-14  Richard Henderson  <rth@redhat.com>
1359         * config/x86/tls.h: New file.
1361 2010-07-15  Richard Henderson  <rth@redhat.com>
1363         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1364         * Makefile.in: Rebuild.
1366 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1368         * method-wbetl.cc (trydropreference): Fix source line.
1370 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1372         * libitm.h: Add comment.
1373         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1375 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1377         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1378         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1379         available, use pthread mutexes.
1380         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1381         * config.h.in: Regenerate.
1382         * configure: Regenerate.
1384 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1386         * libitm.h (ITM_PURE): Define.
1387         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1389 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1391         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1392         (validate): Add comment.
1393         (trydropreference): New.
1394         * method-readonly.cc (class readonly_dispatch): Add
1395         trydropreference.
1396         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1397         Call trydropreference().
1398         * libitm.h (_ITM_dropReferences): Remove const attribute.
1399         * method-serial.cc (class serial_dispatch): Add trydropreference.
1400         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1402 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1404         * memcpy.cc (do_memcpy): Comment.
1406 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1408         * barrier.tpl: Add comments throughout.
1410 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1412         * method-wbetl.cc (struct w_entry): Add comments.
1413         (trycommit): Same.
1414         (rollback): Same.
1416 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1418         * alloc_c.cc (_ITM_dropReferences): New.
1419         * libitm.map (_ITM_dropReferences): Add.
1420         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1421         * libitm_i.h (struct gtm_transaction): Declare
1422         drop_references_allocations and drop_references_local.
1423         * local.cc (rollback_local): Ignore memory when applicable.
1424         (drop_references_local): New.
1426 2010-06-23  Richard Henderson  <rth@redhat.com>
1428         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1429         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1430         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1431         * config/alpha/target.h: Likewise.
1432         * config/generic/tls.cc (gtm_mask_stack): Use it.
1434 2010-06-23  Richard Henderson  <rth@redhat.com>
1436         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1437         a mutex instead of trying a lock-free compare-and-swap on the list.
1438         (gtm_cacheline_page::operator delete): Likewise.
1440 2010-06-16  Richard Henderson  <rth@redhat.com>
1442         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1443         that overlap the libitm stack.
1444         * barrier.tpl: Mark incoming stack.
1445         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1446         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1447         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1448         * memcpy.cc, memset.cc: Likewise.
1449         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1450         * config/generic/tls.h (gtm_thread): Add stack_top member.
1451         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1452         * libitm_i.h (gtm_mask_stack): Declare.
1453         * config/generic/tls.cc: New file.
1454         * Makefile.am (libitm_la_SOURCES): Add it.
1455         (AM_CXXFLAGS): Turn off exceptions.
1456         * Makefile.in: Rebuild.
1458 2010-06-16  Richard Henderson  <rth@redhat.com>
1460         * alloc.cc (struct gtm_alloc_action): Move definition ...
1461         * libitm_i.h: ... here.
1462         (class gtm_transaction): Declare new and delete.
1463         * beginend.cc (alloc_tx): Reformulate as operator new.
1464         (free_tx): Reformulate as operator delete.
1465         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1467 2010-06-11  Richard Henderson  <rth@redhat.com>
1469         * clone.cc (clone_entry_compare): Fix typo.
1470         From Patrik Marlier <patrick.marlier@unine.ch>.
1472 2010-05-13  Richard Henderson  <rth@redhat.com>
1474         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1475         in extern "C".
1477 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1479         * libitm_i.h (struct gtm_transaction): Remove
1480         get_allocation_size.
1481         (record_allocation): Remove size parameter.
1482         * libitm.map (_ITM_realloc): Remove.
1483         * alloc_c.cc (_ITM_realloc): Remove.
1484         (_ITM_malloc): Remove size argument to record_allocation.
1485         (_ITM_calloc): Same.
1486         * alloc_cpp.cc (_ZGTtnwm): Same.
1487         (_ZGTtnwmRKSt9nothrow_t): Same.
1488         (_ZGTtnam): Same.
1489         (_ZGTtnamRKSt9nothrow_t): Same.
1490         * alloc.cc (struct gtm_alloc_action): Remove size.
1491         (get_allocation_size): Remove.
1492         (commit_allocations): Add comment.
1493         (record_allocation): Remove size parameter.
1494         (forget_allocation): Remove set of size.
1496 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1498         * Makefile.am (abi_version): New.
1499         (AM_CXXFLAGS): Pass abi_version.
1500         * Makefile.in: Regenerate.
1501         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1503 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1505         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1506         _ITM_getTMCloneOrIrrevokable.
1507         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1508         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1510 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1512         * configure.ac: Remove Linux futex support.
1513         * configure.tgt (config_path): Same.
1514         * Makefile.am: Same.
1515         * config/linux: Remove entire directory.
1516         * configure: Rebuild.
1517         * Makefile.in: Rebuild.
1518         * testsuite/Makefile.in: Rebuild.
1520 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1522         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1523         switching to serial mode.
1524         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1526 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1528         * configure.tgt: Add emacs -*- tags.
1529         * barrier.tpl: Same.
1531 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1533         * Makefile.am: Rename serial.cc to method-serial.cc.
1534         * Makefile.in: Regenerate with automake 1.11.1.
1535         * testsuite/Makefile.in: Same.
1536         * aclocal.m4: Regenerate with aclocal 1.11.1.
1537         * method-serial.cc: Rename from serial.cc.
1538         * libitm_i.h (struct gtm_transaction): Update comment on
1539         serialirr_mode.
1541 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1543         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1544         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1546 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1548         * configure: Rebuild.
1550 2009-11-12  Richard Henderson  <rth@redhat.com>
1552         * Rewrite everything in C++.
1554 2009-11-03  Richard Henderson  <rth@redhat.com>
1556         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1557         * Makefile.am (libitm_la_SOURCES): Add them.
1558         * configure.ac (ARCH_X86): New conditional.
1559         * Makefile.in, configure: Rebuild.
1560         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1561         Move futex setup into "other system configury" case.
1562         * local.c (rollback_local): Merge into ...
1563         (GTM_rollback_local): ... here.
1564         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1565         (_ITM_LB): Define as an alias to GTM_LB.
1567 2009-11-03  Richard Henderson  <rth@redhat.com>
1569         * method-readonly.c: New file.
1570         * Makefile.am (libitm_la_SOURCES): Add it.
1571         * Makefile.in: Rebuild.
1572         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1573         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1574         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1575         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1576         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1577         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1578         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1579         gtm_get_clock, gtm_inc_clock): New.
1580         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1581         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1582         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1583         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1584         replace uses with new libitm_i.h symbols.
1585         (dispatch_wbetl): Rename from wbetl_dispatch.
1586         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1587         away from dispatch_readonly; abort if the beginTransaction call
1588         asserted that the transaction was readonly.
1590 2009-11-03  Richard Henderson  <rth@redhat.com>
1592         * memset.c: New file.
1593         * Makefile.am (libitm_la_SOURCES): Add it.
1594         * Makefile.in: Rebuild.
1595         * testsuite/libitm.c/memset-1.c: New.
1597 2009-11-03  Richard Henderson  <rth@redhat.com>
1599         * dispatch.c: Remove file.
1600         * useraction.c (struct gtm_user_action): Move from libitm.h.
1601         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1602         (serial_memset, serial_memmove, serial_memcpy): Remove.
1603         (serial_W*, serial_R*): Remove.
1604         (serial_dispatch): Update to match.
1605         * configure.ac: Move Werror down below configure checks.  Don't
1606         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1607         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1608         Use GCC_AC_FUNC_MMAP_BLACKLIST
1609         * libitm.h: Split out all internal items to...
1610         * libitm_i.h: ... here.  New file.
1611         * copymask.c: New file.
1612         * local.c (struct gtm_local_undo): Move from libitm.h.
1613         (GTM_alloc_local): Rename from alloc_local; export.
1614         * memcpy.c: New file.
1615         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1616         * config/posix/page.c: New file.
1617         * config/posix/target_tls.h: Remove file.
1618         * barrier.c: New file.
1619         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1620         copymask.c, page.c.
1621         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1622         * method-wbetl.c: Rewrite for new cacheline methods.
1623         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1625         * config/alpha/sjlj.S: Fix typo.
1626         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1627         * config/alpha/copymask.c: New file.
1628         * config/alpha/target.h (CACHELINE_SIZE): New.
1629         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1631         * config/x86/target_i.h: Copy functions from x86/target.h.
1632         * config/x86/copymask.c: New file.
1633         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1634         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1635         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1636         * config/x86/target_tls.h: Move contents to target_i.h.
1638         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1639         * testsuite/libitm.c/memcpy-1.c: New.
1641 2009-10-22  Richard Henderson  <rth@redhat.com>
1643         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1644         (AM_CCASFLAGS): New.
1645         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1646         saving/restoring _AC_ARG_VAR_PRECIOUS.
1647         * Makefile.in, aclocal.m4, config.h.in, configure,
1648         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1650 2009-10-22  Richard Henderson  <rth@redhat.com>
1652         * testsuite/*: Update for new compiler syntax.
1654 2009-10-21  Richard Henderson  <rth@redhat.com>
1656         * libitm.h (_ITM_abortReason): Add outerAbort.
1658 2009-08-03  Richard Henderson  <rth@redhat.com>
1660         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1661         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1662         * method-wbetl.c (struct w_entry): Remove mask.
1663         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1664         adjust all callers.
1666 2009-07-22  Richard Henderson  <rth@redhat.com>
1668         * eh_cpp.c: New file.
1669         * Makefile.am (libitm_la_SOURCES): Add it.
1670         * Makefile.in: Rebuild.
1671         * beginend.c (GTM_rollback_transaction): Undo exception state.
1672         (GTM_trycommit_transaction): Mark inline.
1673         (GTM_trycommit_and_finalize_transaction): Split out from ...
1674         (_ITM_commitTransaction): ... here.
1675         (_ITM_commitTransactionEH): New function.
1676         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1677         cxa_unthrown, eh_in_flight; reorder.
1679         * testsuite/libitm.c++/c++.exp: New.
1680         * testsuite/libitm.c++/eh-1.C: New.
1682         * aatree.c (aa_free): Remove REGPARM.
1683         * aatree.h: Remove all REGPARM.
1685 2009-07-18  Richard Henderson  <rth@redhat.com>
1687         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1688         * Makefile.am (libitm_la_SOURCES): Add them.
1689         * Makefile.in: Rebuild.
1690         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1691         (GTM_trycommit_transaction): Likewise.
1692         * libitm.h: Include aatree.h
1693         (struct gtm_alloc_action): New.
1694         (struct gtm_transaction): Add alloc_actions.
1695         (GTM_record_allocation, GTM_forget_allocation): Declare.
1696         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1697         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1698         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1699         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1700         _ZGTtdaPvRKSt9nothrow_t): Export.
1702 2009-07-18  Richard Henderson  <rth@redhat.com>
1704         * target_tls.h: Move ...
1705         * config/posix/target_tls.h: ... here.
1707 2009-07-07  Richard Henderson  <rth@redhat.com>
1709         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1711 2009-07-07  Richard Henderson  <rth@redhat.com>
1713         * Update to GPL3.
1715 2009-07-07  Richard Henderson  <rth@redhat.com>
1717         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1718         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1720         * configure.tgt: Don't use -ftls-model for x86 linux.
1721         * libitm.h: Include target.h after standard includes.
1722         (_gtm_thr): Rename from gtm_thr.
1723         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1724         (gtm_disp, set_gtm_disp): New.
1725         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1726         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1727         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1729 2009-07-07  Richard Henderson  <rth@redhat.com>
1731         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1733 2009-07-06  Richard Henderson  <rth@redhat.com>
1735         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1736         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1737         (_ITM_beginTransaction): Take variadic arguments.
1738         (_ITM_registerThrownObject): Declare.
1739         * beginend.c, serial.c: Update.
1740         * libitm.map: Add _ITM_registerThrownObject.
1742 2009-01-28  Richard Henderson  <rth@redhat.com>
1744         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1745         * Makefile.in: Rebuild.
1746         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1747         (GTM_restart_transaction): Fix uninstrumented code check.
1748         * retry.c (GTM_decide_retry_strategy): Add serial check.
1749         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1750         automatically go irrevokable when in serial mode.
1751         * clone.c: New file.
1752         * libitm.h, libitm.map: Update.
1754 2009-01-27  Richard Henderson  <rth@redhat.com>
1756         * Makefile.am (LTCCASCOMPILE): Define.
1757         (libitm_la_SOURCES): Add methid-wbetl.c.
1758         * testsuite/Makefile.am: New
1759         * configure.ac: Add testsuite/Makefile.
1760         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1761         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1762         (_ITM_abortTransaction): Finalize implementation method; pass
1763         transaction properties to longjmp.
1764         (GTM_restart_transaction): Split out from ...
1765         (_ITM_commitTransaction): ... here.
1766         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1767         Move to config/x86/target.h.
1768         * config/linux/alpha/futex_bits.h: New.
1769         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1770         * config/x86/target.h: Disable target types for 32-bit.
1771         * config/alpha/sjlj.S, config/alpha/target.h: New.
1772         * libitm.h (struct gtm_dispatch): Add init, fini.
1773         (enum restart_reason): New.
1774         (struct gtm_transaction): Add method and restarts.
1775         * retry.c (GTM_decide_retry_strategy): Implement.
1776         * serial.c (serial_init, serial_fini): New.
1777         (GTM_serialmode): Finialize outgoing method.
1778         * method-wbetl.c: New.
1780 2008-12-09  Richard Henderson  <rth@redhat.com>
1782         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1783         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1784         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1785         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1786         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1787         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1788         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1789         * serial.c (serial_R##T, serial_W##T): Likewise.
1791 2008-11-21  Richard Henderson  <rth@redhat.com>
1793         * Initial commit.