ipa-inline-analysis.c (simple_edge_hints): Fix check for cross-module inlining.
[official-gcc.git] / libitm / ChangeLog
blobe46819cf3afed45745f8e8fb745214e549a6d1ba
1 2015-01-15  H.J. Lu  <hongjiu.lu@intel.com>
3         PR libitm/64360
4         * libitm.c/stackundo.c (test2): Make it static.
5         (test1): Likewise.
7 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9         Update copyright years.
11 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13         * libitm.texi: Bump @copying's copyright year.
15 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17         * testsuite/lib/libitm.exp: Load target-utils.exp.
18         Move load of target-supports.exp earlier.
20 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
22         * configure.tgt (x86_64): Tune -m32 multilib to generic.
24 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
26         PR bootstrap/63784
27         * configure: Regenerated.
29 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
31         PR target/63610
32         * configure: Regenerate.
34 2014-10-06  Marek Polacek  <polacek@redhat.com>
36         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
37         * testsuite/libitm.c/memset-1.c: Likewise.
39 2014-07-24  Richard Henderson  <rth@redhat.com>
41         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
42         addressing mode in epilogue.
44 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
46         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
47         -mclear-hwcap instead.
48         * configure: Regenerate.
49         * clearcap.map: Remove.
51 2014-05-21  John Marino  <gnugcc@marino.st>
53         * configure.tgt (*-*-dragonfly*): New target.
55 2014-05-19  Richard Henderson  <rth@redhat.com>
57         * config/aarch64/sjlj.S: New file.
58         * config/aarch64/target.h: New file.
59         * configure.tgt: Enable aarch64.
61 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
63         * config/generic/asmcfi.h: Also check for
64         __GCC_HAVE_DWARF2_CFI_ASM.
66 2013-04-02  Richard Henderson  <rth@redhat.com>
68         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
69         * config/arm/target.h, config/sh/target.h: Likewise.
70         * config/sparc/target.h, config/x86/target.h: Likewise.
72 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
74         * config/linux/futex_bits.h: Include errno.h.
75         (sys_futex0): If syscall returns -1, return -errno rather than
76         -1.
78 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
80         * libitm.texi (Index): Rename to Library Index.
82 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
84         PR libitm/53113
85         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
86         (x86_avx.lo): Append -mavx to CXXFLAGS.
87         * Makefile.in: Regenerate.
89 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
91         Update copyright years
93 2014-01-02  Tobias Burnus  <burnus@net-b.de>
95         * libitm.texi: Bump @copying's copyright year.
97 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
99         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
100         (FUNC): Define ELFv2 variant.
101         (END): Likewise.
102         (HIDDEN): Likewise.
103         (CALL): Likewise.
104         (BASE): Likewise.
105         (LR_SAVE): Likewise.
107 2013-09-20  Alan Modra  <amodra@gmail.com>
109         * configure: Regenerate.
111 2013-08-30  Torvald Riegel  <triegel@redhat.com>
113         * config/posix/rwlock.cc: Fix initialization order.
115 2013-08-30  Torvald Riegel  <triegel@redhat.com>
117         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
118         (htm_fastpath): Assign an asm name.
119         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
120         HTM fast paths.
121         (_ITM_actions): Likewise.
122         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
123         x86_64.
124         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
125         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
126         field to the start of the structure.
127         * config/linux/rwlock.h (gtm_rwlock): Update comments.
128         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
129         handling for custom HTM fast paths.
131 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
132         Revert:
133         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
135         * configure.tgt: Add -msoft-float to XCFLAGS.
137 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
139         * configure.tgt: Add -msoft-float to XCFLAGS.
141 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
143         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
144         (htm_transaction_active): Enable zEC12 instructions in the
145         assembler.
146         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
148 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
150         * acinclude.m4: Add htm asm check for s390.
151         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
152         * configure: Regenerate.
153         * config/s390/target.h: Remove __HTM__ check.
154         (htm_available): Call getauxval to get hwcaps and check whether
155         HTM is available or not.
157 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
159         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
160         * configure.ac: Use it.
161         (AC_CHECK_HEADERS): Check for sys/auxv.h.
162         (AC_CHECK_FUNCS): Check for getauxval.
163         * config.h.in, configure: Rebuild.
164         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
165         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
166         (USE_HTM_FASTPATH): Define.
167         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
168         _HTM_RETRIES) New macros.
169         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
170         htm_begin_success, htm_commit, htm_transaction_active): New functions.
172 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
174         * config/s390/target.h: Include htmintrin.h.
175         (_HTM_ITM_RETRIES): New macro definition.
176         (htm_available, htm_init, htm_begin, htm_begin_success)
177         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
179 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
180             Cesar Philippidis  <cesar@codesourcery.com>
182         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
183         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
184         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
185         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
187 2013-06-20  Torvald Riegel  <triegel@redhat.com>
189         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
190         (_ITM_getTransactionId): Same.
191         * config/x86/target.h (htm_transaction_active): New.
193 2013-06-20  Torvald Riegel  <triegel@redhat.com>
195         PR libitm/57643
196         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
197         the HTM fastpath.
199 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
201         PR bootstrap/56714
202         * local_atomic (__always_inline): Always define our version.
203         (__calculate_memory_order): Mark inline.
204         (atomic_thread_fence): Ditto.
205         (atomic_signal_fence): Ditto.
206         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
207         (atomic_bool::atomic_flag_clear_explicit): Ditto.
208         (atomic_bool::atomic_flag_test_and_set): Ditto.
209         (atomic_bool::atomic_flag_clear): Ditto.
211 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
213         * config/s390/sjlj.S: New file.
214         * config/s390/target.h: New file.
215         * configure.tgt: Set options for S/390.
217 2013-03-23  Andi Kleen  <ak@linux.intel.com>
219         * local_atomic (__always_inline): Add.
220         (__calculate_memory_order, atomic_thread_fence,
221          atomic_signal_fence, test_and_set, clear, store, load,
222          exchange, compare_exchange_weak, compare_exchange_strong,
223          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
224         Add __always_inline to force inlining.
226 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
227             Jack Howarth  <howarth@bromo.med.uc.edu>
228             Patrick Marlier  <patrick.marlier@gmail.com>
230         PR libitm/55693
231         * alloc_cpp.cc: Enable function declarations on darwin.
232         * eh_cpp.cc: Likewise.
234 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
236         Update copyright years.
238 2012-11-09  Torvald Riegel  <triegel@redhat.com>
240         * beginend.cc (htm_fastpath): New.
241         (gtm_thread::begin_transaction, _ITM_commitTransaction,
242         _ITM_commitTransactionEH): Add HTM fastpath handling.
243         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
244         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
245         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
246         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
247         * configure.tgt: Add -mrtm to XCFLAGS.
248         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
249         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
250         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
251         * retry.cc (parse_default_method): Add HTM method parsing.
252         (gtm_thread::number_of_threads_changed): Use HTM by default if
253         available.
255 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
257         * configure: Regenerate.
259 2012-10-31  Richard Henderson  <rth@redhat.com>
261         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
262         * configure.ac: Use it.
263         * config.h.in, configure: Rebuild.
264         * testsuite/Makefile.in: Rebuild.
266 2012-10-24  Torvald Riegel  <triegel@redhat.com>
268         * libitm.texi: Clarify ABI requirements for data-logging functions.
270 2012-10-24  Torvald Riegel  <triegel@redhat.com>
272         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
273         it requires serial mode instead of assuming that for certain
274         dispatchs.
275         * dispatch.h (abi_dispatch::requires_serial): New.
276         (abi_dispatch::abi_dispatch): Adapt.
277         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
278         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
279         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
280         serial_dispatch::serial_dispatch,
281         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
283 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
285         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
286         and ia32 declarations some more.
287         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
289 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
291         PR other/43620
292         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
293         * configure: Regenerate.
294         * Makefile.in: Regenerate.
296 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
298         * configure: Regenerated.
300 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
302         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
304 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
306         * eh_cpp.cc: Fix __cxa_end_catch declaration.
308 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
310         * configure: Regenerated.
312 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
314         PR libitm/52854
315         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
316         for x86-64.
318 2012-04-03  Tristan Gingold  <gingold@adacore.com>
320         * configure: Regenerate.
322 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
324         PR bootstrap/52812
325         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
327 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
329         * testsuite/lib/libitm.exp: load fortran-modules.exp
331 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
333         * configure.tgt (*-*-irix6*): Remove.
335 2012-03-13  Torvald Riegel  <triegel@redhat.com>
337         PR libitm/52526
338         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
339         wake-up.
341 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
343         * configure.tgt (*-*-osf*): Remove.
344         * configure: Regenerate.
346 2012-03-05  Torvald Riegel  <triegel@redhat.com>
348         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
349         memtransfer/memset if size isn't larger than zero.
351 2012-03-02  Torvald Riegel  <triegel@redhat.com>
353         * libitm.texi: Link to specification and add a usage example.
355 2012-02-24  Torvald Riegel  <triegel@redhat.com>
357         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
358         default dispatch for more than 1 thread to ml_wt.
360 2012-02-20  Torvald Riegel  <triegel@redhat.com>
362         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
364 2012-02-20  Torvald Riegel  <triegel@redhat.com>
366         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
368 2012-02-20  Torvald Riegel  <triegel@redhat.com>
370         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
371         serial mode corner cases made obsolete by prior gtm_rwlock changes.
372         (gl_wt_dispatch.rollback): Same.
374 2012-02-20  Torvald Riegel  <triegel@redhat.com>
376         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
378 2012-02-20  Torvald Riegel  <triegel@redhat.com>
380         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
381         for RfW src.  Optimize number of calls to gtm_thr.
383 2012-02-20  Torvald Riegel  <triegel@redhat.com>
385         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
386         acquisition to ...
387         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
388         (default_dispatch): Make atomic.
389         (GTM::gtm_thread::set_default_dispatch): Access atomically.
390         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
391         use decide_begin_dispatch() if default_dispatch might have changed.
392         (GTM::gtm_thread::number_of_threads_changed): Initialize
393         default_dispatch here.
395 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
396             Patrick Marlier  <patrick.marlier@gmail.com>
398         PR libitm/52220
399         * alloc_cpp.cc: No dummy definitions for darwin.
400         * eh_cpp.cc: Likewise.
402 2012-02-14  Richard Henderson  <rth@redhat.com>
404         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
406 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
408         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
410 2012-02-14  Torvald Riegel  <triegel@redhat.com>
412         * libitm_i.h (GTM::gtm_rwlog_entry): New.
413         (GTM::gtm_thread): Add read and write logs.
414         (GTM::dispatch_ml_wt): Declare.
415         * retry.cc (parse_default_method): Support ml_wt.
416         * method-ml.cc: New file.
417         * Makefile.am: Add method-ml.cc.
418         * Makefile.in: Regenerate.
420 2012-02-14  Torvald Riegel  <triegel@redhat.com>
422         * dispatch.h (GTM::abi_dispatch::supports): New.
423         (GTM::method_group::reinit): New.
424         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
425         (GTM::gtm_thread::number_of_threads_changed): Check that the method
426         supports the current situation.
428 2012-02-14  Torvald Riegel  <triegel@redhat.com>
430         * util.cc (GTM::xcalloc): New.
431         * common.h (GTM::xcalloc): Declare.
433 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
435         * config/sparc/target.h (cpu_relax): Read from CC register.
436         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
438 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
440         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
442 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
444         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
445         * config/sparc/cacheline.h: New file.
446         * config/sparc/target.h: Likewise.
447         * config/sparc/sjlj.S: Likewise.
448         * config/linux/sparc/futex_bits.h: Likewise.
450 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
452         * configure.ac (link_itm): Fix comment.
453         * configure: Regenerate.
454         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
456 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
458         PR libitm/51822
459         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
460         Correct libgomp references.
462 2012-01-24  Torvald Riegel  <triegel@redhat.com>
464         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
465         wake-up.
467 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
469         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
470         end of structure.
471         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
472         offset values.  Do not copy return address.  Decrement stack
473         by 56 bytes only.
474         (GTM_longjump) [__x86_64__]: Update offset values.
476 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
478         PR libitm/51830
479         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
480         the first function argument to %eax.
482 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
484         * libitm.h (_ITM_getThreadnum): Remove.
485         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
487 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
489         * clearcap.map: New file.
490         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
491         * configure.ac: Call it.
492         Clear HWCAP_LDFLAGS if defaulting to -mavx.
493         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
494         * configure: Regenerate.
495         * Makefile.in: Regenerate.
496         * testsuite/Makefile.in: Regenerate.
498 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
500         PR libitm/51173
501         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
502         include, exclude options.
504 2012-01-14  Torvald Riegel  <triegel@redhat.com>
506         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
507         rolling back.
508         * containers.h (GTM::vector::set_size): New.
510 2012-01-14  Torvald Riegel  <triegel@redhat.com>
512         PR libitm/51855
513         * config/generic/tls.h (GTM::mask_stack_top): New.
514         (GTM::mask_stack_bottom): Declare.
515         * config/generic/tls.c (GTM::mask_stack_bottom): New.
516         * local.cc (gtm_undolog::rollback): Filter out any updates that
517         overlap the libitm stack.  Add current transaction as parameter.
518         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
519         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
520         * testsuite/libitm.c/stackundo.c: New test.
522 2012-01-10  Richard Henderson  <rth@redhat.com>
524         * libitm_i.h (_Unwind_DeleteException): Declare weak.
525         * eh_cpp.cc (_Unwind_DeleteException): Define for
526         !HAVE_ELF_STYLE_WEAKREF.
528 2012-01-08  Torvald Riegel  <triegel@redhat.com>
530         * local.cc (GTM_LB): Use GTM::gtm_undolog.
531         (GTM::gtm_thread::drop_references_undolog): Remove.
532         (GTM::gtm_thread::commit_undolog,
533         GTM::gtm_thread::rollback_undolog): Move to ...
534         * libitm_i.h (GTM::gtm_undolog): ...here. New.
535         (GTM::gtm_undolog_entry): Remove.
536         (GTM::gtm_thread): Adapt.
537         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
538         (GTM::gtm_thread::trycommit): Adapt.
539         * method-serial.cc (serial_dispatch::log): Adapt.
540         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
541         (gl_wt_dispatch::store): Fix likely/unlikely.
542         * containers.h (GTM::vector::resize): Add additional_capacity
543         parameter and handle it.
544         (GTM::vector::resize_noinline): New/adapt.
545         (GTM::vector::push): New.
547 2012-01-06  Richard Henderson  <rth@redhat.com>
549         * configure.tgt: Support powerpc-linux and powerpc-darwin.
550         * config/linux/powerpc/futex_bits.h: New file.
551         * config/powerpc/cacheline.h: New file.
552         * config/powerpc/sjlj.S: New file.
553         * config/powerpc/target.h: New file.
554         * config/generic/asmcfi.h (cfi_offset): New.
555         (cfi_restore, cfi_undefined): New.
557 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
559         PR other/51171
560         * testsuite/libitm.c/reentrant.c: Remove xfail.
561         (thread): Pass x to pure().
562         From Patrik Marlier <patrick.marlier@gmail.com>.
564 2011-12-24  Torvald Riegel  <triegel@redhat.com>
566         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
567         privatization safety if already in serial mode.
569 2011-12-24  Torvald Riegel  <triegel@redhat.com>
571         * beginend.cc (GTM::gtm_thread::restart): Add and handle
572         finish_serial_upgrade parameter.
573         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
574         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
575         Don't unset reader flag.
576         (GTM::gtm_rwlock::write_upgrade_finish): New.
577         * config/posix/rwlock.cc: Same.
578         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
579         Declare.
580         * config/posix/rwlock.h: Same.
581         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
582         flag after commit or after rollback when restarting.
584 2011-12-24  Torvald Riegel  <triegel@redhat.com>
586         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
587         (GTM::gtm_thread::try_commit): Changed memory order.
588         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
589         as parameter.
590         * config/linux/x86/futex_bits.h (sys_futex0): Same.
591         * config/linux/sh/futex_bits.h (sys_futex0): Same.
592         * config/linux/futex_bits.h (sys_futex0): Same.
593         * config/linux/futex.cc (futex_wait, futex_wake): Same.
594         * config/linux/futex.h (futex_wait, futex_wake): Same.
595         * config/linux/rwlock.h (gtm_rwlock::writers,
596         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
597         ints.
598         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
599         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
600         gtm_rwlock::write_unlock): Fix memory orders and fences.
601         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
602         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
603         gtm_rwlock::write_unlock): Same.
604         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
605         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
606         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
607         Add comments.
608         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
609         gl_wt_dispatch::load, gl_wt_dispatch::store,
610         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
611         orders and fences.  Add comments.
613 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
615         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
616         * Makefile.in: Regenerated.
618 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
620         * configure.tgt: Add sh* case.
621         * config/sh/target.h: New file.
622         * config/sh/sjlj.S: New file.
623         * config/linux/sh/futex_bits.h: New file.
625 2011-12-14  Richard Henderson  <rth@redhat.com>
627         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
628         * config/arm/sjlj.S, config/arm/target.h: New files.
629         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
630         (cfi_rel_offset): New.
631         * config/linux/futex_bits.h: New file.
632         * config/linux/futex.cc: Include futex_bits.h here...
633         * config/linux/futex.h: ... not here.
634         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
635         * configure.ac (ARCH_AM): New conditional.
636         * Makefile.in, configure: Rebuild.
637         * configure.tgt: Handle ARM.
639 2011-12-13  Richard Henderson  <rth@redhat.com>
641         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
642         signed/unsigned comparison werror.
644         * local_atomic: New file.
645         * libitm_i.h: Include it.
646         (gtm_thread::shared_state): Use atomic template.
647         * beginend.cc (GTM::gtm_clock): Use atomic template.
648         (global_tid): Use atomic template if 64-bit atomics available.
649         (gtm_thread::gtm_thread): Update shared_state access.
650         (gtm_thread::trycommit): Likewise.
651         (choose_code_path): Update global_tid access.
652         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
653         * stmlock.h (GTM::gtm_clock): Use atomic template.
654         (gtm_get_clock, gtm_inc_clock): Update accesses.
655         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
656         redundant __sync_synchronize after atomic shared_state access.
657         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
658         (gtm_rwlock::write_lock_generic): Likewise.
659         (gtm_rwlock::read_unlock): Likewise.
660         * config/alpha/target.h (atomic_read_barrier): Remove.
661         (atomic_write_barrier): Remove.
662         * config/x86/target.h (atomic_read_barrier): Remove.
663         (atomic_write_barrier): Remove.
665 2011-11-30  Richard Henderson  <rth@redhat.com>
667         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
668         * beginend.c (_ITM_abortTransaction): Update to match.
669         (GTM::gtm_thread::restart): Likewise.
670         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
671         * config/x86/sjlj.S (GTM_longjmp): Likewise.
673 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
675         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
676         * Makefile.in: Regenerate.
678 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
680         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
681         * alloc_cpp.cc: Generate dummy functions if we don't
682         HAVE_ELF_STYLE_WEAKREF.
683         * eh_cpp.cc: Likewise.
684         * configure: Regenerate.
685         * aclocal.m4:  Likewise.
686         * config.h.in: Likewise.
687         * Makefile.in: Likewise.
688         * testsuite/Makefile.in: Likewise.
690 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
692         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
693         __USER_LABEL_PREFIX__ for targets that use it.
694         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
695         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
696         in portability to non-elf targets.
697         (GTM_longjmp): Likewise.
698         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
699         where required.
701 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
703         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
704         * testsuite/libitm.c/memset-1.c: Likewise.
706 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
708         * configure: Regenerate.
710 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
712         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
713         (LIBITM_ENABLE_SYMVERS): Handle sun style.
714         * Makefile.am: Handle sun style versioning.
715         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
716         * configure: Regenerate.
717         * Makefile.in: Regenerate.
719 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
721         * config/generic/asmcfi.h: Fix comment.
722         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
723         sequence without .hidden support, error for non-ELF targets.
724         (GTM_longjmp) [__ELF__]: Only use .hidden if
725         HAVE_ATTRIBUTE_VISIBILITY.
727 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
729         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
730         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
731         Dummy functions.
732         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
733         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
735 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
737         PR bootstrap/51098
738         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
739         * configure: Regenerate.
741 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
743         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
745 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
747         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
748         .hidden.
749         (.note.GNU-stack): Only use if __linux__.
750         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
751         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
752         * testsuite/libitm.c/reentrant.c: Likewise.
753         * testsuite/libitm.c/simple-2.c: Likewise.
754         * testsuite/libitm.c/txrelease.c: Likewise.
755         * testsuite/libitm.c++/static_ctor.C: Likewise.
757 2011-11-10  Richard Henderson  <rth@redhat.com>
759         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
760         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
761         * configure.ac (ARCH_X86_AVX): New conditional.
762         * Makefile.in, configure: Rebuild.
764 2011-11-09  Richard Henderson  <rth@redhat.com>
766         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
767         * configure.ac: Use it.
768         * config.h.in, configure: Rebuild.
769         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
771 2011-11-09  Richard Henderson  <rth@redhat.com>
773         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
774         * config/alpha/unaligned.h: Remove file.
775         * config/generic/unaligned.h: Remove file.
776         * config/x86/unaligned.h: Remove file.
777         * config/generic/cachepage.h: Remove file.
778         * config/posix/cachepage.cc: Remove file.
779         * config/generic/cacheline.cc: Remove file.
780         * config/x86/cacheline.cc: Remove file.
781         * config/generic/cacheline.h (gtm_cacheline): Remove the
782         store_mask, copy_mask, copy_mask_wb methods.
783         * config/x86/cacheline.h: Likewise.
784         * config/alpha/cacheline.h: Fall back to generic after setting size.
785         * config/generic/tls.cc (gtm_mask_stack): Remove.
786         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
787         (GTM_vpalignr_table): Remove.
788         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
789         (GTM_pshift_table): Remove.
790         * config/libitm_i.h: Don't include cachepage.h.
791         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
792         * Makefile.in, testsuite/Makefile.in: Rebuild.
794 2011-11-09  Richard Henderson  <rth@redhat.com>
796         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
797         to emit branch prediction hint.
799         * config/x86/sjlj.S: Protect elf directives with __ELF__.
800         Protect .note.GNU-stack with __linux__.
802         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
803         * configure, aclocal.m4, config.h.in: Rebuild.
804         * config/generic/asmcfi.h: New file.
805         * config/x86/sjlj.S: Use it.
807 2011-11-08  Richard Henderson  <rth@redhat.com>
809         * local.cc (_ITM_LB): Use a normal call, not a function alias.
811 2011-11-08  Richard Henderson  <rth@redhat.com>
813         * configure.tgt: Test correct directory for supported cpus.
815         * configure.ac: Exit if unsupported.
816         * configure: Rebuild.
817         * configure.tgt: Delete boilerplate from libgomp for unsupported
818         targets.  Set UNSUPPORTED for unsupported targets.
820 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
822         * configure.tgt: Handle i386 like i[456]86.
823         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
824         take address.
825         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
826         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
828 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
830         * method-wbetl.cc: Update copyright notice.
831         * aatree.cc: Same.
832         * util.cc: Same.
833         * libitm.h: Same.
834         * memset.cc: Same.
835         * eh_cpp.cc: Same.
836         * barrier.tpl: Same.
837         * useraction.cc: Same.
838         * stmlock.h: Same.
839         * memcpy.cc: Same.
840         * common.h: Same.
841         * config/generic/tls.cc: Same.
842         * config/generic/cacheline.h: Same.
843         * config/generic/cachepage.h: Same.
844         * config/generic/cacheline.cc: Same.
845         * config/generic/unaligned.h: Same.
846         * config/x86/cacheline.h: Same.
847         * config/x86/cacheline.cc: Same.
848         * config/x86/unaligned.h: Same.
849         * config/alpha/cacheline.h: Same.
850         * config/alpha/unaligned.h: Same.
851         * config/alpha/sjlj.S: Same.
852         * config/posix/cachepage.cc: Same.
853         * config/linux/futex.h: Same.
854         * config/linux/alpha/futex_bits.h: Same.
856 2011-11-04  Torvald Riegel  <triegel@redhat.com>
858         * libitm.texi: No cover text and invariant sections.
860 2011-11-03  Richard Henderson  <rth@redhat.com>
862         * local_type_traits: New file.
863         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
865 2011-11-03  Richard Henderson  <rth@redhat.com>
867         * configure.ac: Don't test for gfortran.
868         * configure: Rebuild.
870         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
871         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
873 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
875         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
876         * testsuite/libitm.c/memset-1.c: Same.
877         * testsuite/libitm.c/c.exp: Same.
878         * testsuite/lib/libitm-dg.exp: Same.
879         * testsuite/lib/libitm.exp: Same.
880         * testsuite/libitm.c++/c++.exp: Same.
882 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
884         * testsuite/config/default.exp: Update copyright date.
885         * configure.ac: Add copyright info.
886         * configure.tgt: Same.
888 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
890         * testsuite/libitm.c/reentrant.c: XFAIL.
891         * testsuite/libitm.c++/static_ctor.C: XFAIL.
893 2011-10-29  Torvald Riegel  <triegel@redhat.com>
895         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
896         handle aborts.
897         (_ITM_abortTransaction): Handle aborts of outer transactions.
898         * libitm_i.h: Same.
899         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
900         * libitm.texi: Document aborts of outer transactions.
901         * testsuite/libitm.c/cancel.c: New file.
903 2011-10-19  Torvald Riegel  <triegel@redhat.com>
905         * testsuite/*: Change __transaction to __transaction_atomic or
906         __transaction_relaxed.
908 2011-10-19  Torvald Riegel  <triegel@redhat.com>
910         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
911         (gtm_thr): Same.
913 2011-10-19  Torvald Riegel  <triegel@redhat.com>
915         * libitm_i.h: Add gl_wt dispatch.
916         * retry.cc (parse_default_method): Same.
917         * method-gl.cc: New file.
918         * Makefile.am: Use method-gl.cc.
919         * Makefile.in: Rebuild.
921 2011-10-19  Torvald Riegel  <triegel@redhat.com>
923         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
924         safety if requested by a TM method.
925         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
926         privatization safety.
927         * method-serial.cc: Same.
929 2011-10-19  Torvald Riegel  <triegel@redhat.com>
931         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
932         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
933         undolog-related member functions from *_local to *_undolog.
934         * local.cc (gtm_thread::commit_undolog): Same.
935         * beginend.cc (GTM::gtm_thread::trycommit): Same.
936         (GTM::gtm_thread::rollback): Roll back undolog before
937         dispatch-specific rollback.
939 2011-10-19  Torvald Riegel  <triegel@redhat.com>
941         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
942         re-initialization of the current method group.
943         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
945 2011-10-19  Torvald Riegel  <triegel@redhat.com>
947         * alloc.cc (commit_allocations_2): Do not free transaction-local
948         memory when committing a nested transaction.
950 2011-10-19  Torvald Riegel  <triegel@redhat.com>
952         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
953         serial-irrevocable dispatch, not serial.
955 2011-10-19  Torvald Riegel  <triegel@redhat.com>
957         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
958         declarations.
959         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
960         * method-serial.cc: Implement begin_or_restart().
961         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
962         dispatch-specific begin_or_restart().
963         (GTM::gtm_thread::restart): Same.
965 2011-08-23  Torvald Riegel  <triegel@redhat.com>
967         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
968         restarting without switching to serial mode.
969         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
970         transaction state. Choose closed-nesting alternative if available.
971         (GTM::gtm_thread::set_default_dispatch): New.
972         (parse_default_method): New.
973         (GTM::gtm_thread::number_of_threads_changed): New.
974         * method-serial.cc (GTM::serial_mg): New method group class.
975         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
976         fini.
977         (GTM::serial_dispatch): Same.
978         (GTM::serialirr_onwrite_dispatch): Same.
979         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
980         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
981         registered threads.
982         (GTM::gtm_thread::gtm_thread): Same.
983         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
984         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
985         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
986         choose dispatch but set state according to dispatch here.
987         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
988         (GTM::method_group): New class.
989         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
990         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
991         * libitm.texi: Document TM methods, method groups, method life cycle.
992         Rename method sets to method groups.
994 2011-08-23  Torvald Riegel  <triegel@redhat.com>
996         * config/x86/tls.h: Moved to ...
997         * config/linux/x86/tls.h: ... here.
999 2011-08-23  Torvald Riegel  <triegel@redhat.com>
1001         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1002         Add X32 support.
1003         * config/x86/sjlj.S: Same.
1005 2011-08-19  Torvald Riegel  <triegel@redhat.com>
1007         * config/linux/rwlock.h: New file.
1008         * config/linux/rwlock.c: New file.
1009         * configure.ac: Reenable futex support (undo SVN rev 157758).
1010         * Makefile.am: Same.
1011         * configure.tgt: Same.
1012         * config/linux/alpha/futex_bits.h: Same.
1013         * config/linux/futex.h: Same. Return number of woken processes.
1014         * config/linux/futex.cc: Same.
1015         (futex_wait): Remove spinning.
1016         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1017         Use __x86_64__ instead of __LP64__.
1018         * aclocal.m4: Include generic futex checks.
1019         * configure: Rebuild.
1020         * Makefile.in: Rebuild.
1021         * testsuite/Makefile.in: Rebuild.
1022         * beginend.cc: Include pthread.h.
1023         * config/posix/cachepage.cc: Same.
1025 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1027         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1028         (abi_disp, set_abi_disp): Move to tx's TLS slot.
1029         (set_gtm_thr): New.
1030         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1031         (set_gtm_thr): New.
1032         (GTM::gtm_thread::thread_num): Removed.
1033         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1034         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1035         tx-to-thread renaming.
1036         * beginend.cc: Adapted to tx-to-thread renaming.
1037         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1038         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1039         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1040         gtm_transaction to gtm_thread.
1041         (_ITM_getThreadnum): Removed. Not supported anymore.
1042         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1043         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1044         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1045         gtm_tx-to-gtm_thr renaming if necessary.
1046         * eh_cpp.cc: Same.
1047         * local.cc: Same.
1048         * retry.cc: Same.
1049         * clone.cc: Same.
1050         * alloc.cc: Same.
1051         * alloc_c.cc: Same.
1052         * alloc_cpp.cc: Same.
1053         * method-serial.cc: Same.
1054         * config/generic/tls.cc: Same.
1055         * config/posix/rwlock.h (gtm_rwlock): Same.
1056         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1058 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1060         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1061         implementation.
1062         (gtm_rwlock::read_unlock): Same.
1063         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1064         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1065         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1066         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1067         w_upgrade. Replaced by per-transaction flags (in shared_state).
1068         Added c_confirmed_writers.
1069         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1070         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1071         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1072         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1073         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1074         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1075         * libitm.texi: Document locking conventions and implementations in
1076         libitm.
1078 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1080         * libitm_i.h (next_tx): Add list of all threads' transaction.
1081         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1082         transaction with list of transactions and ...
1083         (thread_exit_handler): ... deregister here.
1084         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1085         * config/x86/target.h: Same.
1087 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1089         * testsuite/libitm.c++/static_ctor.C: New file.
1091 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1093         * testsuite/libitm.c/reentrant.c: New file.
1095 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1097         * config/generic/tls.h: Remove the free list for transactions and ...
1098         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1099         (GTM::gtm_transaction::operator delete): ... and release here.
1100         (thread_exit_handler): New. Delete tx when thread terminates.
1101         (thread_exit_init): New.
1102         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1103         * testsuite/libitm.c/txrelease.c: New file.
1105 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1107         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1108         * testsuite/libitm.c/notx.c: New file.
1110 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1112         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1113         * libitm_i.h (local_tid): ... to here.
1114         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1115         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1117 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1119         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1120         serialirr_onwrite_dispatch as new default for now.
1121         * method-serial.cc (serialirr_onwrite_dispatch): New.
1122         (GTM::dispatch_serialirr_onwrite): New.
1123         * libitm_i.h: Same.
1125 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1127         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1128         * query.cc (_ITM_getTransactionId): There is no active transaction if
1129         the current nesting level is zero.
1131 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1133         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1134         rollback.
1136 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1138         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1139         transaction properties from the caller instead of from the
1140         transaction object.
1141         * libitm_i.h: Same.
1142         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1144 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1146         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1147         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1148         * dispatch.h: Same.
1149         * method-serial.cc: Same.
1150         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1151         flat nesting as default, and closed nesting on demand.
1152         (GTM::gtm_transaction::rollback): Same.
1153         (_ITM_abortTransaction): Same.
1154         (GTM::gtm_transaction::restart): Same.
1155         (GTM::gtm_transaction::trycommit): Same.
1156         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1157         (choose_code_path): New.
1158         (GTM::gtm_transaction_cp::save): New.
1159         (GTM::gtm_transaction_cp::commit): New.
1160         * query.cc (_ITM_inTransaction): Support flat nesting.
1161         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1162         (GTM::gtm_transaction): Support flat and closed nesting.
1163         * alloc.cc (commit_allocations_2): New.
1164         (commit_cb_data): New helper struct.
1165         (GTM::gtm_transaction::commit_allocations): Handle nested
1166         commits/rollbacks.
1167         * libitm.texi: Update user action section, add description of nesting.
1169 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1171         * libitm_i.h: Add closed nesting as restart reason.
1172         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1174 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1176         * useraction.cc: Use vector instead of list to store actions.
1177         Also support partial rollbacks for closed nesting.
1178         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1179         * beginend.cc: Same.
1181 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1183         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1184         closed_nesting flags, as well as a closed nesting alternative.
1185         * method-serial.cc: Same.
1186         (serial_dispatch): Renamed to serialirr_dispatch.
1187         (GTM::dispatch_serialirr): Same.
1188         (serial_dispatch_ul): Renamed to serial_dispatch.
1189         (GTM::dispatch_serial): Same.
1191 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1193         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1195 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1197         * aatree.h (aa_tree::remove): New.
1198         (aa_tree::operator new): Add placement new.
1200 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1202         * containers.h: New file.
1203         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1204         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1205         * common.h: ... to here.
1206         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1207         * local.cc: Same.
1209 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1211         * libitm_i.h (STATE_ABORTING): Remove.
1212         * beginend.cc (_ITM_abortTransaction): Same.
1213         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1214         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1215         (_ITM_rollbackTransaction): Remove.
1216         * beginend.cc: Same.
1217         * libitm.map: Same.
1218         * libitm.texi: Document these ABI changes.
1220 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1222         * libitm.texi: New file.
1223         * Makefile.am: Add libitm.texi.
1224         * Makefile.in: Rebuild.
1226 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1228         * libitm_i.h: Move parts to common.h and dispatch.h.
1229         * common.h: New file.
1230         * dispatch.h: New file, new dispatch class.
1231         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1232         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1233         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1234         decision to retry.cc.
1235         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1236         only.
1237         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1238         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1239         logging.
1240         * barrier.cc: Use new barriers definitions.
1241         (abi_dispatch::memmove_overlap_check): New.
1242         * config/x86/x86_sse.cc: Same.
1243         * config/x86/x86_avx.cc: Same.
1244         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1245         memcpy.cc.
1246         * Makefile.in: Rebuild.
1247         * method-readonly.cc: Remove.
1248         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1249         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1251 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1253         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1254         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1255         * testsuite/libitm.c/dropref-2.c: Same.
1256         * testsuite/libitm.c/dropref.c: Same.
1258 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1260         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1261         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1262         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1263         * alloc_c.cc: Same.
1264         * barrier.tpl: Same.
1265         * beginend.c: Same.
1266         * config/generic/tls.h: Same.
1267         * config/x86/tls.h: Same.
1268         * libitm_i.h: Same.
1269         * memcpy.cc: Same.
1270         * memset.cc: Same.
1271         * method-readonly.cc: Same.
1272         * method-serial.cc: Same.
1273         * method-wbetl.cc: Same.
1274         * retry.cc: Same.
1276 2011-03-03  Richard Henderson  <rth@redhat.com>
1278         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1279         From Patrik Marlier <patrick.marlier@unine.ch>.
1281 2011-02-03  Richard Henderson  <rth@redhat.com>
1283         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1284         * configure.ac: Use it.
1285         * configure, config.h.in: Rebuild.
1286         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1287         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1288         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1289         * libitm.map: Use wildcards to match size_t mangling.
1291 2010-12-14  Richard Henderson  <rth@redhat.com>
1293         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1294         blocks of TIDs per thread.
1295         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1296         (setup_gtm_thr): Return the thread structure.
1297         * config/x86/tls.h (setup_gtm_thr): Likewise.
1299 2010-12-14  Richard Henderson  <rth@redhat.com>
1301         * clone.cc (table_lock): Remove.
1302         (find_clone): Don't take it.
1303         (ExcludeTransaction): New helper class.
1304         (_ITM_registerTMCloneTable): Use it.
1305         (_ITM_deregisterTMCloneTable): Likewise.
1307 2010-12-14  Richard Henderson  <rth@redhat.com>
1309         * config/x86/tls.h: New file.
1311 2010-07-15  Richard Henderson  <rth@redhat.com>
1313         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1314         * Makefile.in: Rebuild.
1316 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1318         * method-wbetl.cc (trydropreference): Fix source line.
1320 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1322         * libitm.h: Add comment.
1323         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1325 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1327         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1328         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1329         available, use pthread mutexes.
1330         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1331         * config.h.in: Regenerate.
1332         * configure: Regenerate.
1334 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1336         * libitm.h (ITM_PURE): Define.
1337         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1339 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1341         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1342         (validate): Add comment.
1343         (trydropreference): New.
1344         * method-readonly.cc (class readonly_dispatch): Add
1345         trydropreference.
1346         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1347         Call trydropreference().
1348         * libitm.h (_ITM_dropReferences): Remove const attribute.
1349         * method-serial.cc (class serial_dispatch): Add trydropreference.
1350         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1352 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1354         * memcpy.cc (do_memcpy): Comment.
1356 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1358         * barrier.tpl: Add comments throughout.
1360 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1362         * method-wbetl.cc (struct w_entry): Add comments.
1363         (trycommit): Same.
1364         (rollback): Same.
1366 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1368         * alloc_c.cc (_ITM_dropReferences): New.
1369         * libitm.map (_ITM_dropReferences): Add.
1370         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1371         * libitm_i.h (struct gtm_transaction): Declare
1372         drop_references_allocations and drop_references_local.
1373         * local.cc (rollback_local): Ignore memory when applicable.
1374         (drop_references_local): New.
1376 2010-06-23  Richard Henderson  <rth@redhat.com>
1378         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1379         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1380         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1381         * config/alpha/target.h: Likewise.
1382         * config/generic/tls.cc (gtm_mask_stack): Use it.
1384 2010-06-23  Richard Henderson  <rth@redhat.com>
1386         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1387         a mutex instead of trying a lock-free compare-and-swap on the list.
1388         (gtm_cacheline_page::operator delete): Likewise.
1390 2010-06-16  Richard Henderson  <rth@redhat.com>
1392         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1393         that overlap the libitm stack.
1394         * barrier.tpl: Mark incoming stack.
1395         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1396         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1397         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1398         * memcpy.cc, memset.cc: Likewise.
1399         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1400         * config/generic/tls.h (gtm_thread): Add stack_top member.
1401         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1402         * libitm_i.h (gtm_mask_stack): Declare.
1403         * config/generic/tls.cc: New file.
1404         * Makefile.am (libitm_la_SOURCES): Add it.
1405         (AM_CXXFLAGS): Turn off exceptions.
1406         * Makefile.in: Rebuild.
1408 2010-06-16  Richard Henderson  <rth@redhat.com>
1410         * alloc.cc (struct gtm_alloc_action): Move definition ...
1411         * libitm_i.h: ... here.
1412         (class gtm_transaction): Declare new and delete.
1413         * beginend.cc (alloc_tx): Reformulate as operator new.
1414         (free_tx): Reformulate as operator delete.
1415         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1417 2010-06-11  Richard Henderson  <rth@redhat.com>
1419         * clone.cc (clone_entry_compare): Fix typo.
1420         From Patrik Marlier <patrick.marlier@unine.ch>.
1422 2010-05-13  Richard Henderson  <rth@redhat.com>
1424         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1425         in extern "C".
1427 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1429         * libitm_i.h (struct gtm_transaction): Remove
1430         get_allocation_size.
1431         (record_allocation): Remove size parameter.
1432         * libitm.map (_ITM_realloc): Remove.
1433         * alloc_c.cc (_ITM_realloc): Remove.
1434         (_ITM_malloc): Remove size argument to record_allocation.
1435         (_ITM_calloc): Same.
1436         * alloc_cpp.cc (_ZGTtnwm): Same.
1437         (_ZGTtnwmRKSt9nothrow_t): Same.
1438         (_ZGTtnam): Same.
1439         (_ZGTtnamRKSt9nothrow_t): Same.
1440         * alloc.cc (struct gtm_alloc_action): Remove size.
1441         (get_allocation_size): Remove.
1442         (commit_allocations): Add comment.
1443         (record_allocation): Remove size parameter.
1444         (forget_allocation): Remove set of size.
1446 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1448         * Makefile.am (abi_version): New.
1449         (AM_CXXFLAGS): Pass abi_version.
1450         * Makefile.in: Regenerate.
1451         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1453 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1455         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1456         _ITM_getTMCloneOrIrrevokable.
1457         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1458         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1460 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1462         * configure.ac: Remove Linux futex support.
1463         * configure.tgt (config_path): Same.
1464         * Makefile.am: Same.
1465         * config/linux: Remove entire directory.
1466         * configure: Rebuild.
1467         * Makefile.in: Rebuild.
1468         * testsuite/Makefile.in: Rebuild.
1470 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1472         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1473         switching to serial mode.
1474         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1476 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1478         * configure.tgt: Add emacs -*- tags.
1479         * barrier.tpl: Same.
1481 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1483         * Makefile.am: Rename serial.cc to method-serial.cc.
1484         * Makefile.in: Regenerate with automake 1.11.1.
1485         * testsuite/Makefile.in: Same.
1486         * aclocal.m4: Regenerate with aclocal 1.11.1.
1487         * method-serial.cc: Rename from serial.cc.
1488         * libitm_i.h (struct gtm_transaction): Update comment on
1489         serialirr_mode.
1491 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1493         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1494         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1496 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1498         * configure: Rebuild.
1500 2009-11-12  Richard Henderson  <rth@redhat.com>
1502         * Rewrite everything in C++.
1504 2009-11-03  Richard Henderson  <rth@redhat.com>
1506         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1507         * Makefile.am (libitm_la_SOURCES): Add them.
1508         * configure.ac (ARCH_X86): New conditional.
1509         * Makefile.in, configure: Rebuild.
1510         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1511         Move futex setup into "other system configury" case.
1512         * local.c (rollback_local): Merge into ...
1513         (GTM_rollback_local): ... here.
1514         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1515         (_ITM_LB): Define as an alias to GTM_LB.
1517 2009-11-03  Richard Henderson  <rth@redhat.com>
1519         * method-readonly.c: New file.
1520         * Makefile.am (libitm_la_SOURCES): Add it.
1521         * Makefile.in: Rebuild.
1522         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1523         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1524         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1525         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1526         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1527         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1528         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1529         gtm_get_clock, gtm_inc_clock): New.
1530         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1531         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1532         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1533         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1534         replace uses with new libitm_i.h symbols.
1535         (dispatch_wbetl): Rename from wbetl_dispatch.
1536         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1537         away from dispatch_readonly; abort if the beginTransaction call
1538         asserted that the transaction was readonly.
1540 2009-11-03  Richard Henderson  <rth@redhat.com>
1542         * memset.c: New file.
1543         * Makefile.am (libitm_la_SOURCES): Add it.
1544         * Makefile.in: Rebuild.
1545         * testsuite/libitm.c/memset-1.c: New.
1547 2009-11-03  Richard Henderson  <rth@redhat.com>
1549         * dispatch.c: Remove file.
1550         * useraction.c (struct gtm_user_action): Move from libitm.h.
1551         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1552         (serial_memset, serial_memmove, serial_memcpy): Remove.
1553         (serial_W*, serial_R*): Remove.
1554         (serial_dispatch): Update to match.
1555         * configure.ac: Move Werror down below configure checks.  Don't
1556         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1557         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1558         Use GCC_AC_FUNC_MMAP_BLACKLIST
1559         * libitm.h: Split out all internal items to...
1560         * libitm_i.h: ... here.  New file.
1561         * copymask.c: New file.
1562         * local.c (struct gtm_local_undo): Move from libitm.h.
1563         (GTM_alloc_local): Rename from alloc_local; export.
1564         * memcpy.c: New file.
1565         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1566         * config/posix/page.c: New file.
1567         * config/posix/target_tls.h: Remove file.
1568         * barrier.c: New file.
1569         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1570         copymask.c, page.c.
1571         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1572         * method-wbetl.c: Rewrite for new cacheline methods.
1573         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1575         * config/alpha/sjlj.S: Fix typo.
1576         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1577         * config/alpha/copymask.c: New file.
1578         * config/alpha/target.h (CACHELINE_SIZE): New.
1579         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1581         * config/x86/target_i.h: Copy functions from x86/target.h.
1582         * config/x86/copymask.c: New file.
1583         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1584         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1585         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1586         * config/x86/target_tls.h: Move contents to target_i.h.
1588         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1589         * testsuite/libitm.c/memcpy-1.c: New.
1591 2009-10-22  Richard Henderson  <rth@redhat.com>
1593         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1594         (AM_CCASFLAGS): New.
1595         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1596         saving/restoring _AC_ARG_VAR_PRECIOUS.
1597         * Makefile.in, aclocal.m4, config.h.in, configure,
1598         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1600 2009-10-22  Richard Henderson  <rth@redhat.com>
1602         * testsuite/*: Update for new compiler syntax.
1604 2009-10-21  Richard Henderson  <rth@redhat.com>
1606         * libitm.h (_ITM_abortReason): Add outerAbort.
1608 2009-08-03  Richard Henderson  <rth@redhat.com>
1610         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1611         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1612         * method-wbetl.c (struct w_entry): Remove mask.
1613         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1614         adjust all callers.
1616 2009-07-22  Richard Henderson  <rth@redhat.com>
1618         * eh_cpp.c: New file.
1619         * Makefile.am (libitm_la_SOURCES): Add it.
1620         * Makefile.in: Rebuild.
1621         * beginend.c (GTM_rollback_transaction): Undo exception state.
1622         (GTM_trycommit_transaction): Mark inline.
1623         (GTM_trycommit_and_finalize_transaction): Split out from ...
1624         (_ITM_commitTransaction): ... here.
1625         (_ITM_commitTransactionEH): New function.
1626         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1627         cxa_unthrown, eh_in_flight; reorder.
1629         * testsuite/libitm.c++/c++.exp: New.
1630         * testsuite/libitm.c++/eh-1.C: New.
1632         * aatree.c (aa_free): Remove REGPARM.
1633         * aatree.h: Remove all REGPARM.
1635 2009-07-18  Richard Henderson  <rth@redhat.com>
1637         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1638         * Makefile.am (libitm_la_SOURCES): Add them.
1639         * Makefile.in: Rebuild.
1640         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1641         (GTM_trycommit_transaction): Likewise.
1642         * libitm.h: Include aatree.h
1643         (struct gtm_alloc_action): New.
1644         (struct gtm_transaction): Add alloc_actions.
1645         (GTM_record_allocation, GTM_forget_allocation): Declare.
1646         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1647         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1648         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1649         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1650         _ZGTtdaPvRKSt9nothrow_t): Export.
1652 2009-07-18  Richard Henderson  <rth@redhat.com>
1654         * target_tls.h: Move ...
1655         * config/posix/target_tls.h: ... here.
1657 2009-07-07  Richard Henderson  <rth@redhat.com>
1659         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1661 2009-07-07  Richard Henderson  <rth@redhat.com>
1663         * Update to GPL3.
1665 2009-07-07  Richard Henderson  <rth@redhat.com>
1667         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1668         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1670         * configure.tgt: Don't use -ftls-model for x86 linux.
1671         * libitm.h: Include target.h after standard includes.
1672         (_gtm_thr): Rename from gtm_thr.
1673         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1674         (gtm_disp, set_gtm_disp): New.
1675         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1676         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1677         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1679 2009-07-07  Richard Henderson  <rth@redhat.com>
1681         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1683 2009-07-06  Richard Henderson  <rth@redhat.com>
1685         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1686         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1687         (_ITM_beginTransaction): Take variadic arguments.
1688         (_ITM_registerThrownObject): Declare.
1689         * beginend.c, serial.c: Update.
1690         * libitm.map: Add _ITM_registerThrownObject.
1692 2009-01-28  Richard Henderson  <rth@redhat.com>
1694         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1695         * Makefile.in: Rebuild.
1696         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1697         (GTM_restart_transaction): Fix uninstrumented code check.
1698         * retry.c (GTM_decide_retry_strategy): Add serial check.
1699         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1700         automatically go irrevokable when in serial mode.
1701         * clone.c: New file.
1702         * libitm.h, libitm.map: Update.
1704 2009-01-27  Richard Henderson  <rth@redhat.com>
1706         * Makefile.am (LTCCASCOMPILE): Define.
1707         (libitm_la_SOURCES): Add methid-wbetl.c.
1708         * testsuite/Makefile.am: New
1709         * configure.ac: Add testsuite/Makefile.
1710         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1711         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1712         (_ITM_abortTransaction): Finalize implementation method; pass
1713         transaction properties to longjmp.
1714         (GTM_restart_transaction): Split out from ...
1715         (_ITM_commitTransaction): ... here.
1716         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1717         Move to config/x86/target.h.
1718         * config/linux/alpha/futex_bits.h: New.
1719         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1720         * config/x86/target.h: Disable target types for 32-bit.
1721         * config/alpha/sjlj.S, config/alpha/target.h: New.
1722         * libitm.h (struct gtm_dispatch): Add init, fini.
1723         (enum restart_reason): New.
1724         (struct gtm_transaction): Add method and restarts.
1725         * retry.c (GTM_decide_retry_strategy): Implement.
1726         * serial.c (serial_init, serial_fini): New.
1727         (GTM_serialmode): Finialize outgoing method.
1728         * method-wbetl.c: New.
1730 2008-12-09  Richard Henderson  <rth@redhat.com>
1732         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1733         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1734         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1735         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1736         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1737         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1738         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1739         * serial.c (serial_R##T, serial_W##T): Likewise.
1741 2008-11-21  Richard Henderson  <rth@redhat.com>
1743         * Initial commit.