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