[AArch64 3/3 big.LITTLE] Add support for -mcpu=cortex-a57.cortex-a53
[official-gcc.git] / libitm / ChangeLog
blobe6dc6468d194ab14b5572c5ca5d1241165529496
1 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
4         (FUNC): Define ELFv2 variant.
5         (END): Likewise.
6         (HIDDEN): Likewise.
7         (CALL): Likewise.
8         (BASE): Likewise.
9         (LR_SAVE): Likewise.
11 2013-09-20  Alan Modra  <amodra@gmail.com>
13         * configure: Regenerate.
15 2013-08-30  Torvald Riegel  <triegel@redhat.com>
17         * config/posix/rwlock.cc: Fix initialization order.
19 2013-08-30  Torvald Riegel  <triegel@redhat.com>
21         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
22         (htm_fastpath): Assign an asm name.
23         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
24         HTM fast paths.
25         (_ITM_actions): Likewise.
26         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
27         x86_64.
28         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
29         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
30         field to the start of the structure.
31         * config/linux/rwlock.h (gtm_rwlock): Update comments.
32         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
33         handling for custom HTM fast paths.
35 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36         Revert:
37         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39         * configure.tgt: Add -msoft-float to XCFLAGS.
41 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43         * configure.tgt: Add -msoft-float to XCFLAGS.
45 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
48         (htm_transaction_active): Enable zEC12 instructions in the
49         assembler.
50         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
52 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54         * acinclude.m4: Add htm asm check for s390.
55         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
56         * configure: Regenerate.
57         * config/s390/target.h: Remove __HTM__ check.
58         (htm_available): Call getauxval to get hwcaps and check whether
59         HTM is available or not.
61 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
63         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
64         * configure.ac: Use it.
65         (AC_CHECK_HEADERS): Check for sys/auxv.h.
66         (AC_CHECK_FUNCS): Check for getauxval.
67         * config.h.in, configure: Rebuild.
68         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
69         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
70         (USE_HTM_FASTPATH): Define.
71         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
72         _HTM_RETRIES) New macros.
73         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
74         htm_begin_success, htm_commit, htm_transaction_active): New functions.
76 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78         * config/s390/target.h: Include htmintrin.h.
79         (_HTM_ITM_RETRIES): New macro definition.
80         (htm_available, htm_init, htm_begin, htm_begin_success)
81         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
83 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
84             Cesar Philippidis  <cesar@codesourcery.com>
86         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
87         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
88         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
89         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
91 2013-06-20  Torvald Riegel  <triegel@redhat.com>
93         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
94         (_ITM_getTransactionId): Same.
95         * config/x86/target.h (htm_transaction_active): New.
97 2013-06-20  Torvald Riegel  <triegel@redhat.com>
99         PR libitm/57643
100         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
101         the HTM fastpath.
103 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
105         PR bootstrap/56714
106         * local_atomic (__always_inline): Always define our version.
107         (__calculate_memory_order): Mark inline.
108         (atomic_thread_fence): Ditto.
109         (atomic_signal_fence): Ditto.
110         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
111         (atomic_bool::atomic_flag_clear_explicit): Ditto.
112         (atomic_bool::atomic_flag_test_and_set): Ditto.
113         (atomic_bool::atomic_flag_clear): Ditto.
115 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
117         * config/s390/sjlj.S: New file.
118         * config/s390/target.h: New file.
119         * configure.tgt: Set options for S/390.
121 2013-03-23  Andi Kleen  <ak@linux.intel.com>
123         * local_atomic (__always_inline): Add.
124         (__calculate_memory_order, atomic_thread_fence,
125          atomic_signal_fence, test_and_set, clear, store, load,
126          exchange, compare_exchange_weak, compare_exchange_strong,
127          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
128         Add __always_inline to force inlining.
130 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
131             Jack Howarth  <howarth@bromo.med.uc.edu>
132             Patrick Marlier  <patrick.marlier@gmail.com>
134         PR libitm/55693
135         * alloc_cpp.cc: Enable function declarations on darwin.
136         * eh_cpp.cc: Likewise.
138 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
140         Update copyright years.
142 2012-11-09  Torvald Riegel  <triegel@redhat.com>
144         * beginend.cc (htm_fastpath): New.
145         (gtm_thread::begin_transaction, _ITM_commitTransaction,
146         _ITM_commitTransactionEH): Add HTM fastpath handling.
147         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
148         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
149         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
150         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
151         * configure.tgt: Add -mrtm to XCFLAGS.
152         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
153         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
154         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
155         * retry.cc (parse_default_method): Add HTM method parsing.
156         (gtm_thread::number_of_threads_changed): Use HTM by default if
157         available.
159 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
161         * configure: Regenerate.
163 2012-10-31  Richard Henderson  <rth@redhat.com>
165         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
166         * configure.ac: Use it.
167         * config.h.in, configure: Rebuild.
168         * testsuite/Makefile.in: Rebuild.
170 2012-10-24  Torvald Riegel  <triegel@redhat.com>
172         * libitm.texi: Clarify ABI requirements for data-logging functions.
174 2012-10-24  Torvald Riegel  <triegel@redhat.com>
176         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
177         it requires serial mode instead of assuming that for certain
178         dispatchs.
179         * dispatch.h (abi_dispatch::requires_serial): New.
180         (abi_dispatch::abi_dispatch): Adapt.
181         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
182         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
183         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
184         serial_dispatch::serial_dispatch,
185         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
187 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
189         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
190         and ia32 declarations some more.
191         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
193 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
195         PR other/43620
196         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
197         * configure: Regenerate.
198         * Makefile.in: Regenerate.
200 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
202         * configure: Regenerated.
204 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
206         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
208 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
210         * eh_cpp.cc: Fix __cxa_end_catch declaration.
212 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
214         * configure: Regenerated.
216 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
218         PR libitm/52854
219         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
220         for x86-64.
222 2012-04-03  Tristan Gingold  <gingold@adacore.com>
224         * configure: Regenerate.
226 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
228         PR bootstrap/52812
229         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
231 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
233         * testsuite/lib/libitm.exp: load fortran-modules.exp
235 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
237         * configure.tgt (*-*-irix6*): Remove.
239 2012-03-13  Torvald Riegel  <triegel@redhat.com>
241         PR libitm/52526
242         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
243         wake-up.
245 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
247         * configure.tgt (*-*-osf*): Remove.
248         * configure: Regenerate.
250 2012-03-05  Torvald Riegel  <triegel@redhat.com>
252         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
253         memtransfer/memset if size isn't larger than zero.
255 2012-03-02  Torvald Riegel  <triegel@redhat.com>
257         * libitm.texi: Link to specification and add a usage example.
259 2012-02-24  Torvald Riegel  <triegel@redhat.com>
261         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
262         default dispatch for more than 1 thread to ml_wt.
264 2012-02-20  Torvald Riegel  <triegel@redhat.com>
266         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
268 2012-02-20  Torvald Riegel  <triegel@redhat.com>
270         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
272 2012-02-20  Torvald Riegel  <triegel@redhat.com>
274         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
275         serial mode corner cases made obsolete by prior gtm_rwlock changes.
276         (gl_wt_dispatch.rollback): Same.
278 2012-02-20  Torvald Riegel  <triegel@redhat.com>
280         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
282 2012-02-20  Torvald Riegel  <triegel@redhat.com>
284         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
285         for RfW src.  Optimize number of calls to gtm_thr.
287 2012-02-20  Torvald Riegel  <triegel@redhat.com>
289         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
290         acquisition to ...
291         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
292         (default_dispatch): Make atomic.
293         (GTM::gtm_thread::set_default_dispatch): Access atomically.
294         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
295         use decide_begin_dispatch() if default_dispatch might have changed.
296         (GTM::gtm_thread::number_of_threads_changed): Initialize
297         default_dispatch here.
299 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
300             Patrick Marlier  <patrick.marlier@gmail.com>
302         PR libitm/52220
303         * alloc_cpp.cc: No dummy definitions for darwin.
304         * eh_cpp.cc: Likewise.
306 2012-02-14  Richard Henderson  <rth@redhat.com>
308         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
310 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
312         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
314 2012-02-14  Torvald Riegel  <triegel@redhat.com>
316         * libitm_i.h (GTM::gtm_rwlog_entry): New.
317         (GTM::gtm_thread): Add read and write logs.
318         (GTM::dispatch_ml_wt): Declare.
319         * retry.cc (parse_default_method): Support ml_wt.
320         * method-ml.cc: New file.
321         * Makefile.am: Add method-ml.cc.
322         * Makefile.in: Regenerate.
324 2012-02-14  Torvald Riegel  <triegel@redhat.com>
326         * dispatch.h (GTM::abi_dispatch::supports): New.
327         (GTM::method_group::reinit): New.
328         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
329         (GTM::gtm_thread::number_of_threads_changed): Check that the method
330         supports the current situation.
332 2012-02-14  Torvald Riegel  <triegel@redhat.com>
334         * util.cc (GTM::xcalloc): New.
335         * common.h (GTM::xcalloc): Declare.
337 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
339         * config/sparc/target.h (cpu_relax): Read from CC register.
340         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
342 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
344         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
346 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
348         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
349         * config/sparc/cacheline.h: New file.
350         * config/sparc/target.h: Likewise.
351         * config/sparc/sjlj.S: Likewise.
352         * config/linux/sparc/futex_bits.h: Likewise.
354 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
356         * configure.ac (link_itm): Fix comment.
357         * configure: Regenerate.
358         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
360 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
362         PR libitm/51822
363         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
364         Correct libgomp references.
366 2012-01-24  Torvald Riegel  <triegel@redhat.com>
368         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
369         wake-up.
371 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
373         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
374         end of structure.
375         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
376         offset values.  Do not copy return address.  Decrement stack
377         by 56 bytes only.
378         (GTM_longjump) [__x86_64__]: Update offset values.
380 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
382         PR libitm/51830
383         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
384         the first function argument to %eax.
386 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
388         * libitm.h (_ITM_getThreadnum): Remove.
389         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
391 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
393         * clearcap.map: New file.
394         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
395         * configure.ac: Call it.
396         Clear HWCAP_LDFLAGS if defaulting to -mavx.
397         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
398         * configure: Regenerate.
399         * Makefile.in: Regenerate.
400         * testsuite/Makefile.in: Regenerate.
402 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
404         PR libitm/51173
405         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
406         include, exclude options.
408 2012-01-14  Torvald Riegel  <triegel@redhat.com>
410         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
411         rolling back.
412         * containers.h (GTM::vector::set_size): New.
414 2012-01-14  Torvald Riegel  <triegel@redhat.com>
416         PR libitm/51855
417         * config/generic/tls.h (GTM::mask_stack_top): New.
418         (GTM::mask_stack_bottom): Declare.
419         * config/generic/tls.c (GTM::mask_stack_bottom): New.
420         * local.cc (gtm_undolog::rollback): Filter out any updates that
421         overlap the libitm stack.  Add current transaction as parameter.
422         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
423         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
424         * testsuite/libitm.c/stackundo.c: New test.
426 2012-01-10  Richard Henderson  <rth@redhat.com>
428         * libitm_i.h (_Unwind_DeleteException): Declare weak.
429         * eh_cpp.cc (_Unwind_DeleteException): Define for
430         !HAVE_ELF_STYLE_WEAKREF.
432 2012-01-08  Torvald Riegel  <triegel@redhat.com>
434         * local.cc (GTM_LB): Use GTM::gtm_undolog.
435         (GTM::gtm_thread::drop_references_undolog): Remove.
436         (GTM::gtm_thread::commit_undolog,
437         GTM::gtm_thread::rollback_undolog): Move to ...
438         * libitm_i.h (GTM::gtm_undolog): ...here. New.
439         (GTM::gtm_undolog_entry): Remove.
440         (GTM::gtm_thread): Adapt.
441         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
442         (GTM::gtm_thread::trycommit): Adapt.
443         * method-serial.cc (serial_dispatch::log): Adapt.
444         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
445         (gl_wt_dispatch::store): Fix likely/unlikely.
446         * containers.h (GTM::vector::resize): Add additional_capacity
447         parameter and handle it.
448         (GTM::vector::resize_noinline): New/adapt.
449         (GTM::vector::push): New.
451 2012-01-06  Richard Henderson  <rth@redhat.com>
453         * configure.tgt: Support powerpc-linux and powerpc-darwin.
454         * config/linux/powerpc/futex_bits.h: New file.
455         * config/powerpc/cacheline.h: New file.
456         * config/powerpc/sjlj.S: New file.
457         * config/powerpc/target.h: New file.
458         * config/generic/asmcfi.h (cfi_offset): New.
459         (cfi_restore, cfi_undefined): New.
461 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
463         PR other/51171
464         * testsuite/libitm.c/reentrant.c: Remove xfail.
465         (thread): Pass x to pure().
466         From Patrik Marlier <patrick.marlier@gmail.com>.
468 2011-12-24  Torvald Riegel  <triegel@redhat.com>
470         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
471         privatization safety if already in serial mode.
473 2011-12-24  Torvald Riegel  <triegel@redhat.com>
475         * beginend.cc (GTM::gtm_thread::restart): Add and handle
476         finish_serial_upgrade parameter.
477         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
478         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
479         Don't unset reader flag.
480         (GTM::gtm_rwlock::write_upgrade_finish): New.
481         * config/posix/rwlock.cc: Same.
482         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
483         Declare.
484         * config/posix/rwlock.h: Same.
485         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
486         flag after commit or after rollback when restarting.
488 2011-12-24  Torvald Riegel  <triegel@redhat.com>
490         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
491         (GTM::gtm_thread::try_commit): Changed memory order.
492         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
493         as parameter.
494         * config/linux/x86/futex_bits.h (sys_futex0): Same.
495         * config/linux/sh/futex_bits.h (sys_futex0): Same.
496         * config/linux/futex_bits.h (sys_futex0): Same.
497         * config/linux/futex.cc (futex_wait, futex_wake): Same.
498         * config/linux/futex.h (futex_wait, futex_wake): Same.
499         * config/linux/rwlock.h (gtm_rwlock::writers,
500         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
501         ints.
502         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
503         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
504         gtm_rwlock::write_unlock): Fix memory orders and fences.
505         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
506         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
507         gtm_rwlock::write_unlock): Same.
508         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
509         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
510         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
511         Add comments.
512         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
513         gl_wt_dispatch::load, gl_wt_dispatch::store,
514         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
515         orders and fences.  Add comments.
517 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
519         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
520         * Makefile.in: Regenerated.
522 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
524         * configure.tgt: Add sh* case.
525         * config/sh/target.h: New file.
526         * config/sh/sjlj.S: New file.
527         * config/linux/sh/futex_bits.h: New file.
529 2011-12-14  Richard Henderson  <rth@redhat.com>
531         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
532         * config/arm/sjlj.S, config/arm/target.h: New files.
533         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
534         (cfi_rel_offset): New.
535         * config/linux/futex_bits.h: New file.
536         * config/linux/futex.cc: Include futex_bits.h here...
537         * config/linux/futex.h: ... not here.
538         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
539         * configure.ac (ARCH_AM): New conditional.
540         * Makefile.in, configure: Rebuild.
541         * configure.tgt: Handle ARM.
543 2011-12-13  Richard Henderson  <rth@redhat.com>
545         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
546         signed/unsigned comparison werror.
548         * local_atomic: New file.
549         * libitm_i.h: Include it.
550         (gtm_thread::shared_state): Use atomic template.
551         * beginend.cc (GTM::gtm_clock): Use atomic template.
552         (global_tid): Use atomic template if 64-bit atomics available.
553         (gtm_thread::gtm_thread): Update shared_state access.
554         (gtm_thread::trycommit): Likewise.
555         (choose_code_path): Update global_tid access.
556         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
557         * stmlock.h (GTM::gtm_clock): Use atomic template.
558         (gtm_get_clock, gtm_inc_clock): Update accesses.
559         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
560         redundant __sync_synchronize after atomic shared_state access.
561         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
562         (gtm_rwlock::write_lock_generic): Likewise.
563         (gtm_rwlock::read_unlock): Likewise.
564         * config/alpha/target.h (atomic_read_barrier): Remove.
565         (atomic_write_barrier): Remove.
566         * config/x86/target.h (atomic_read_barrier): Remove.
567         (atomic_write_barrier): Remove.
569 2011-11-30  Richard Henderson  <rth@redhat.com>
571         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
572         * beginend.c (_ITM_abortTransaction): Update to match.
573         (GTM::gtm_thread::restart): Likewise.
574         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
575         * config/x86/sjlj.S (GTM_longjmp): Likewise.
577 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
579         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
580         * Makefile.in: Regenerate.
582 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
584         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
585         * alloc_cpp.cc: Generate dummy functions if we don't
586         HAVE_ELF_STYLE_WEAKREF.
587         * eh_cpp.cc: Likewise.
588         * configure: Regenerate.
589         * aclocal.m4:  Likewise.
590         * config.h.in: Likewise.
591         * Makefile.in: Likewise.
592         * testsuite/Makefile.in: Likewise.
594 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
596         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
597         __USER_LABEL_PREFIX__ for targets that use it.
598         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
599         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
600         in portability to non-elf targets.
601         (GTM_longjmp): Likewise.
602         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
603         where required.
605 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
607         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
608         * testsuite/libitm.c/memset-1.c: Likewise.
610 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
612         * configure: Regenerate.
614 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
616         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
617         (LIBITM_ENABLE_SYMVERS): Handle sun style.
618         * Makefile.am: Handle sun style versioning.
619         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
620         * configure: Regenerate.
621         * Makefile.in: Regenerate.
623 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
625         * config/generic/asmcfi.h: Fix comment.
626         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
627         sequence without .hidden support, error for non-ELF targets.
628         (GTM_longjmp) [__ELF__]: Only use .hidden if
629         HAVE_ATTRIBUTE_VISIBILITY.
631 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
633         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
634         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
635         Dummy functions.
636         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
637         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
639 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
641         PR bootstrap/51098
642         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
643         * configure: Regenerate.
645 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
647         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
649 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
651         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
652         .hidden.
653         (.note.GNU-stack): Only use if __linux__.
654         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
655         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
656         * testsuite/libitm.c/reentrant.c: Likewise.
657         * testsuite/libitm.c/simple-2.c: Likewise.
658         * testsuite/libitm.c/txrelease.c: Likewise.
659         * testsuite/libitm.c++/static_ctor.C: Likewise.
661 2011-11-10  Richard Henderson  <rth@redhat.com>
663         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
664         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
665         * configure.ac (ARCH_X86_AVX): New conditional.
666         * Makefile.in, configure: Rebuild.
668 2011-11-09  Richard Henderson  <rth@redhat.com>
670         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
671         * configure.ac: Use it.
672         * config.h.in, configure: Rebuild.
673         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
675 2011-11-09  Richard Henderson  <rth@redhat.com>
677         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
678         * config/alpha/unaligned.h: Remove file.
679         * config/generic/unaligned.h: Remove file.
680         * config/x86/unaligned.h: Remove file.
681         * config/generic/cachepage.h: Remove file.
682         * config/posix/cachepage.cc: Remove file.
683         * config/generic/cacheline.cc: Remove file.
684         * config/x86/cacheline.cc: Remove file.
685         * config/generic/cacheline.h (gtm_cacheline): Remove the
686         store_mask, copy_mask, copy_mask_wb methods.
687         * config/x86/cacheline.h: Likewise.
688         * config/alpha/cacheline.h: Fall back to generic after setting size.
689         * config/generic/tls.cc (gtm_mask_stack): Remove.
690         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
691         (GTM_vpalignr_table): Remove.
692         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
693         (GTM_pshift_table): Remove.
694         * config/libitm_i.h: Don't include cachepage.h.
695         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
696         * Makefile.in, testsuite/Makefile.in: Rebuild.
698 2011-11-09  Richard Henderson  <rth@redhat.com>
700         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
701         to emit branch prediction hint.
703         * config/x86/sjlj.S: Protect elf directives with __ELF__.
704         Protect .note.GNU-stack with __linux__.
706         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
707         * configure, aclocal.m4, config.h.in: Rebuild.
708         * config/generic/asmcfi.h: New file.
709         * config/x86/sjlj.S: Use it.
711 2011-11-08  Richard Henderson  <rth@redhat.com>
713         * local.cc (_ITM_LB): Use a normal call, not a function alias.
715 2011-11-08  Richard Henderson  <rth@redhat.com>
717         * configure.tgt: Test correct directory for supported cpus.
719         * configure.ac: Exit if unsupported.
720         * configure: Rebuild.
721         * configure.tgt: Delete boilerplate from libgomp for unsupported
722         targets.  Set UNSUPPORTED for unsupported targets.
724 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
726         * configure.tgt: Handle i386 like i[456]86.
727         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
728         take address.
729         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
730         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
732 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
734         * method-wbetl.cc: Update copyright notice.
735         * aatree.cc: Same.
736         * util.cc: Same.
737         * libitm.h: Same.
738         * memset.cc: Same.
739         * eh_cpp.cc: Same.
740         * barrier.tpl: Same.
741         * useraction.cc: Same.
742         * stmlock.h: Same.
743         * memcpy.cc: Same.
744         * common.h: Same.
745         * config/generic/tls.cc: Same.
746         * config/generic/cacheline.h: Same.
747         * config/generic/cachepage.h: Same.
748         * config/generic/cacheline.cc: Same.
749         * config/generic/unaligned.h: Same.
750         * config/x86/cacheline.h: Same.
751         * config/x86/cacheline.cc: Same.
752         * config/x86/unaligned.h: Same.
753         * config/alpha/cacheline.h: Same.
754         * config/alpha/unaligned.h: Same.
755         * config/alpha/sjlj.S: Same.
756         * config/posix/cachepage.cc: Same.
757         * config/linux/futex.h: Same.
758         * config/linux/alpha/futex_bits.h: Same.
760 2011-11-04  Torvald Riegel  <triegel@redhat.com>
762         * libitm.texi: No cover text and invariant sections.
764 2011-11-03  Richard Henderson  <rth@redhat.com>
766         * local_type_traits: New file.
767         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
769 2011-11-03  Richard Henderson  <rth@redhat.com>
771         * configure.ac: Don't test for gfortran.
772         * configure: Rebuild.
774         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
775         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
777 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
779         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
780         * testsuite/libitm.c/memset-1.c: Same.
781         * testsuite/libitm.c/c.exp: Same.
782         * testsuite/lib/libitm-dg.exp: Same.
783         * testsuite/lib/libitm.exp: Same.
784         * testsuite/libitm.c++/c++.exp: Same.
786 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
788         * testsuite/config/default.exp: Update copyright date.
789         * configure.ac: Add copyright info.
790         * configure.tgt: Same.
792 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
794         * testsuite/libitm.c/reentrant.c: XFAIL.
795         * testsuite/libitm.c++/static_ctor.C: XFAIL.
797 2011-10-29  Torvald Riegel  <triegel@redhat.com>
799         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
800         handle aborts.
801         (_ITM_abortTransaction): Handle aborts of outer transactions.
802         * libitm_i.h: Same.
803         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
804         * libitm.texi: Document aborts of outer transactions.
805         * testsuite/libitm.c/cancel.c: New file.
807 2011-10-19  Torvald Riegel  <triegel@redhat.com>
809         * testsuite/*: Change __transaction to __transaction_atomic or
810         __transaction_relaxed.
812 2011-10-19  Torvald Riegel  <triegel@redhat.com>
814         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
815         (gtm_thr): Same.
817 2011-10-19  Torvald Riegel  <triegel@redhat.com>
819         * libitm_i.h: Add gl_wt dispatch.
820         * retry.cc (parse_default_method): Same.
821         * method-gl.cc: New file.
822         * Makefile.am: Use method-gl.cc.
823         * Makefile.in: Rebuild.
825 2011-10-19  Torvald Riegel  <triegel@redhat.com>
827         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
828         safety if requested by a TM method.
829         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
830         privatization safety.
831         * method-serial.cc: Same.
833 2011-10-19  Torvald Riegel  <triegel@redhat.com>
835         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
836         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
837         undolog-related member functions from *_local to *_undolog.
838         * local.cc (gtm_thread::commit_undolog): Same.
839         * beginend.cc (GTM::gtm_thread::trycommit): Same.
840         (GTM::gtm_thread::rollback): Roll back undolog before
841         dispatch-specific rollback.
843 2011-10-19  Torvald Riegel  <triegel@redhat.com>
845         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
846         re-initialization of the current method group.
847         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
849 2011-10-19  Torvald Riegel  <triegel@redhat.com>
851         * alloc.cc (commit_allocations_2): Do not free transaction-local
852         memory when committing a nested transaction.
854 2011-10-19  Torvald Riegel  <triegel@redhat.com>
856         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
857         serial-irrevocable dispatch, not serial.
859 2011-10-19  Torvald Riegel  <triegel@redhat.com>
861         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
862         declarations.
863         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
864         * method-serial.cc: Implement begin_or_restart().
865         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
866         dispatch-specific begin_or_restart().
867         (GTM::gtm_thread::restart): Same.
869 2011-08-23  Torvald Riegel  <triegel@redhat.com>
871         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
872         restarting without switching to serial mode.
873         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
874         transaction state. Choose closed-nesting alternative if available.
875         (GTM::gtm_thread::set_default_dispatch): New.
876         (parse_default_method): New.
877         (GTM::gtm_thread::number_of_threads_changed): New.
878         * method-serial.cc (GTM::serial_mg): New method group class.
879         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
880         fini.
881         (GTM::serial_dispatch): Same.
882         (GTM::serialirr_onwrite_dispatch): Same.
883         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
884         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
885         registered threads.
886         (GTM::gtm_thread::gtm_thread): Same.
887         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
888         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
889         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
890         choose dispatch but set state according to dispatch here.
891         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
892         (GTM::method_group): New class.
893         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
894         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
895         * libitm.texi: Document TM methods, method groups, method life cycle.
896         Rename method sets to method groups.
898 2011-08-23  Torvald Riegel  <triegel@redhat.com>
900         * config/x86/tls.h: Moved to ...
901         * config/linux/x86/tls.h: ... here.
903 2011-08-23  Torvald Riegel  <triegel@redhat.com>
905         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
906         Add X32 support.
907         * config/x86/sjlj.S: Same.
909 2011-08-19  Torvald Riegel  <triegel@redhat.com>
911         * config/linux/rwlock.h: New file.
912         * config/linux/rwlock.c: New file.
913         * configure.ac: Reenable futex support (undo SVN rev 157758).
914         * Makefile.am: Same.
915         * configure.tgt: Same.
916         * config/linux/alpha/futex_bits.h: Same.
917         * config/linux/futex.h: Same. Return number of woken processes.
918         * config/linux/futex.cc: Same.
919         (futex_wait): Remove spinning.
920         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
921         Use __x86_64__ instead of __LP64__.
922         * aclocal.m4: Include generic futex checks.
923         * configure: Rebuild.
924         * Makefile.in: Rebuild.
925         * testsuite/Makefile.in: Rebuild.
926         * beginend.cc: Include pthread.h.
927         * config/posix/cachepage.cc: Same.
929 2011-08-12  Torvald Riegel  <triegel@redhat.com>
931         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
932         (abi_disp, set_abi_disp): Move to tx's TLS slot.
933         (set_gtm_thr): New.
934         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
935         (set_gtm_thr): New.
936         (GTM::gtm_thread::thread_num): Removed.
937         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
938         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
939         tx-to-thread renaming.
940         * beginend.cc: Adapted to tx-to-thread renaming.
941         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
942         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
943         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
944         gtm_transaction to gtm_thread.
945         (_ITM_getThreadnum): Removed. Not supported anymore.
946         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
947         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
948         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
949         gtm_tx-to-gtm_thr renaming if necessary.
950         * eh_cpp.cc: Same.
951         * local.cc: Same.
952         * retry.cc: Same.
953         * clone.cc: Same.
954         * alloc.cc: Same.
955         * alloc_c.cc: Same.
956         * alloc_cpp.cc: Same.
957         * method-serial.cc: Same.
958         * config/generic/tls.cc: Same.
959         * config/posix/rwlock.h (gtm_rwlock): Same.
960         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
962 2011-08-12  Torvald Riegel  <triegel@redhat.com>
964         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
965         implementation.
966         (gtm_rwlock::read_unlock): Same.
967         (gtm_rwlock::write_lock_generic): New. Generalized from ...
968         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
969         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
970         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
971         w_upgrade. Replaced by per-transaction flags (in shared_state).
972         Added c_confirmed_writers.
973         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
974         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
975         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
976         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
977         * beginend.cc (GTM::gtm_transaction::begin_transaction,
978         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
979         * libitm.texi: Document locking conventions and implementations in
980         libitm.
982 2011-08-12  Torvald Riegel  <triegel@redhat.com>
984         * libitm_i.h (next_tx): Add list of all threads' transaction.
985         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
986         transaction with list of transactions and ...
987         (thread_exit_handler): ... deregister here.
988         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
989         * config/x86/target.h: Same.
991 2011-08-12  Torvald Riegel  <triegel@redhat.com>
993         * testsuite/libitm.c++/static_ctor.C: New file.
995 2011-08-12  Torvald Riegel  <triegel@redhat.com>
997         * testsuite/libitm.c/reentrant.c: New file.
999 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1001         * config/generic/tls.h: Remove the free list for transactions and ...
1002         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1003         (GTM::gtm_transaction::operator delete): ... and release here.
1004         (thread_exit_handler): New. Delete tx when thread terminates.
1005         (thread_exit_init): New.
1006         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1007         * testsuite/libitm.c/txrelease.c: New file.
1009 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1011         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1012         * testsuite/libitm.c/notx.c: New file.
1014 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1016         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1017         * libitm_i.h (local_tid): ... to here.
1018         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1019         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1021 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1023         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1024         serialirr_onwrite_dispatch as new default for now.
1025         * method-serial.cc (serialirr_onwrite_dispatch): New.
1026         (GTM::dispatch_serialirr_onwrite): New.
1027         * libitm_i.h: Same.
1029 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1031         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1032         * query.cc (_ITM_getTransactionId): There is no active transaction if
1033         the current nesting level is zero.
1035 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1037         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1038         rollback.
1040 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1042         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1043         transaction properties from the caller instead of from the
1044         transaction object.
1045         * libitm_i.h: Same.
1046         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1048 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1050         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1051         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1052         * dispatch.h: Same.
1053         * method-serial.cc: Same.
1054         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1055         flat nesting as default, and closed nesting on demand.
1056         (GTM::gtm_transaction::rollback): Same.
1057         (_ITM_abortTransaction): Same.
1058         (GTM::gtm_transaction::restart): Same.
1059         (GTM::gtm_transaction::trycommit): Same.
1060         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1061         (choose_code_path): New.
1062         (GTM::gtm_transaction_cp::save): New.
1063         (GTM::gtm_transaction_cp::commit): New.
1064         * query.cc (_ITM_inTransaction): Support flat nesting.
1065         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1066         (GTM::gtm_transaction): Support flat and closed nesting.
1067         * alloc.cc (commit_allocations_2): New.
1068         (commit_cb_data): New helper struct.
1069         (GTM::gtm_transaction::commit_allocations): Handle nested
1070         commits/rollbacks.
1071         * libitm.texi: Update user action section, add description of nesting.
1073 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1075         * libitm_i.h: Add closed nesting as restart reason.
1076         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1078 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1080         * useraction.cc: Use vector instead of list to store actions.
1081         Also support partial rollbacks for closed nesting.
1082         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1083         * beginend.cc: Same.
1085 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1087         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1088         closed_nesting flags, as well as a closed nesting alternative.
1089         * method-serial.cc: Same.
1090         (serial_dispatch): Renamed to serialirr_dispatch.
1091         (GTM::dispatch_serialirr): Same.
1092         (serial_dispatch_ul): Renamed to serial_dispatch.
1093         (GTM::dispatch_serial): Same.
1095 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1097         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1099 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1101         * aatree.h (aa_tree::remove): New.
1102         (aa_tree::operator new): Add placement new.
1104 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1106         * containers.h: New file.
1107         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1108         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1109         * common.h: ... to here.
1110         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1111         * local.cc: Same.
1113 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1115         * libitm_i.h (STATE_ABORTING): Remove.
1116         * beginend.cc (_ITM_abortTransaction): Same.
1117         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1118         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1119         (_ITM_rollbackTransaction): Remove.
1120         * beginend.cc: Same.
1121         * libitm.map: Same.
1122         * libitm.texi: Document these ABI changes.
1124 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1126         * libitm.texi: New file.
1127         * Makefile.am: Add libitm.texi.
1128         * Makefile.in: Rebuild.
1130 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1132         * libitm_i.h: Move parts to common.h and dispatch.h.
1133         * common.h: New file.
1134         * dispatch.h: New file, new dispatch class.
1135         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1136         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1137         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1138         decision to retry.cc.
1139         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1140         only.
1141         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1142         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1143         logging.
1144         * barrier.cc: Use new barriers definitions.
1145         (abi_dispatch::memmove_overlap_check): New.
1146         * config/x86/x86_sse.cc: Same.
1147         * config/x86/x86_avx.cc: Same.
1148         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1149         memcpy.cc.
1150         * Makefile.in: Rebuild.
1151         * method-readonly.cc: Remove.
1152         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1153         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1155 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1157         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1158         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1159         * testsuite/libitm.c/dropref-2.c: Same.
1160         * testsuite/libitm.c/dropref.c: Same.
1162 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1164         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1165         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1166         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1167         * alloc_c.cc: Same.
1168         * barrier.tpl: Same.
1169         * beginend.c: Same.
1170         * config/generic/tls.h: Same.
1171         * config/x86/tls.h: Same.
1172         * libitm_i.h: Same.
1173         * memcpy.cc: Same.
1174         * memset.cc: Same.
1175         * method-readonly.cc: Same.
1176         * method-serial.cc: Same.
1177         * method-wbetl.cc: Same.
1178         * retry.cc: Same.
1180 2011-03-03  Richard Henderson  <rth@redhat.com>
1182         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1183         From Patrik Marlier <patrick.marlier@unine.ch>.
1185 2011-02-03  Richard Henderson  <rth@redhat.com>
1187         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1188         * configure.ac: Use it.
1189         * configure, config.h.in: Rebuild.
1190         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1191         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1192         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1193         * libitm.map: Use wildcards to match size_t mangling.
1195 2010-12-14  Richard Henderson  <rth@redhat.com>
1197         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1198         blocks of TIDs per thread.
1199         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1200         (setup_gtm_thr): Return the thread structure.
1201         * config/x86/tls.h (setup_gtm_thr): Likewise.
1203 2010-12-14  Richard Henderson  <rth@redhat.com>
1205         * clone.cc (table_lock): Remove.
1206         (find_clone): Don't take it.
1207         (ExcludeTransaction): New helper class.
1208         (_ITM_registerTMCloneTable): Use it.
1209         (_ITM_deregisterTMCloneTable): Likewise.
1211 2010-12-14  Richard Henderson  <rth@redhat.com>
1213         * config/x86/tls.h: New file.
1215 2010-07-15  Richard Henderson  <rth@redhat.com>
1217         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1218         * Makefile.in: Rebuild.
1220 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1222         * method-wbetl.cc (trydropreference): Fix source line.
1224 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1226         * libitm.h: Add comment.
1227         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1229 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1231         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1232         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1233         available, use pthread mutexes.
1234         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1235         * config.h.in: Regenerate.
1236         * configure: Regenerate.
1238 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1240         * libitm.h (ITM_PURE): Define.
1241         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1243 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1245         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1246         (validate): Add comment.
1247         (trydropreference): New.
1248         * method-readonly.cc (class readonly_dispatch): Add
1249         trydropreference.
1250         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1251         Call trydropreference().
1252         * libitm.h (_ITM_dropReferences): Remove const attribute.
1253         * method-serial.cc (class serial_dispatch): Add trydropreference.
1254         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1256 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1258         * memcpy.cc (do_memcpy): Comment.
1260 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1262         * barrier.tpl: Add comments throughout.
1264 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1266         * method-wbetl.cc (struct w_entry): Add comments.
1267         (trycommit): Same.
1268         (rollback): Same.
1270 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1272         * alloc_c.cc (_ITM_dropReferences): New.
1273         * libitm.map (_ITM_dropReferences): Add.
1274         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1275         * libitm_i.h (struct gtm_transaction): Declare
1276         drop_references_allocations and drop_references_local.
1277         * local.cc (rollback_local): Ignore memory when applicable.
1278         (drop_references_local): New.
1280 2010-06-23  Richard Henderson  <rth@redhat.com>
1282         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1283         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1284         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1285         * config/alpha/target.h: Likewise.
1286         * config/generic/tls.cc (gtm_mask_stack): Use it.
1288 2010-06-23  Richard Henderson  <rth@redhat.com>
1290         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1291         a mutex instead of trying a lock-free compare-and-swap on the list.
1292         (gtm_cacheline_page::operator delete): Likewise.
1294 2010-06-16  Richard Henderson  <rth@redhat.com>
1296         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1297         that overlap the libitm stack.
1298         * barrier.tpl: Mark incoming stack.
1299         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1300         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1301         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1302         * memcpy.cc, memset.cc: Likewise.
1303         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1304         * config/generic/tls.h (gtm_thread): Add stack_top member.
1305         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1306         * libitm_i.h (gtm_mask_stack): Declare.
1307         * config/generic/tls.cc: New file.
1308         * Makefile.am (libitm_la_SOURCES): Add it.
1309         (AM_CXXFLAGS): Turn off exceptions.
1310         * Makefile.in: Rebuild.
1312 2010-06-16  Richard Henderson  <rth@redhat.com>
1314         * alloc.cc (struct gtm_alloc_action): Move definition ...
1315         * libitm_i.h: ... here.
1316         (class gtm_transaction): Declare new and delete.
1317         * beginend.cc (alloc_tx): Reformulate as operator new.
1318         (free_tx): Reformulate as operator delete.
1319         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1321 2010-06-11  Richard Henderson  <rth@redhat.com>
1323         * clone.cc (clone_entry_compare): Fix typo.
1324         From Patrik Marlier <patrick.marlier@unine.ch>.
1326 2010-05-13  Richard Henderson  <rth@redhat.com>
1328         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1329         in extern "C".
1331 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1333         * libitm_i.h (struct gtm_transaction): Remove
1334         get_allocation_size.
1335         (record_allocation): Remove size parameter.
1336         * libitm.map (_ITM_realloc): Remove.
1337         * alloc_c.cc (_ITM_realloc): Remove.
1338         (_ITM_malloc): Remove size argument to record_allocation.
1339         (_ITM_calloc): Same.
1340         * alloc_cpp.cc (_ZGTtnwm): Same.
1341         (_ZGTtnwmRKSt9nothrow_t): Same.
1342         (_ZGTtnam): Same.
1343         (_ZGTtnamRKSt9nothrow_t): Same.
1344         * alloc.cc (struct gtm_alloc_action): Remove size.
1345         (get_allocation_size): Remove.
1346         (commit_allocations): Add comment.
1347         (record_allocation): Remove size parameter.
1348         (forget_allocation): Remove set of size.
1350 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1352         * Makefile.am (abi_version): New.
1353         (AM_CXXFLAGS): Pass abi_version.
1354         * Makefile.in: Regenerate.
1355         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1357 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1359         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1360         _ITM_getTMCloneOrIrrevokable.
1361         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1362         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1364 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1366         * configure.ac: Remove Linux futex support.
1367         * configure.tgt (config_path): Same.
1368         * Makefile.am: Same.
1369         * config/linux: Remove entire directory.
1370         * configure: Rebuild.
1371         * Makefile.in: Rebuild.
1372         * testsuite/Makefile.in: Rebuild.
1374 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1376         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1377         switching to serial mode.
1378         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1380 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1382         * configure.tgt: Add emacs -*- tags.
1383         * barrier.tpl: Same.
1385 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1387         * Makefile.am: Rename serial.cc to method-serial.cc.
1388         * Makefile.in: Regenerate with automake 1.11.1.
1389         * testsuite/Makefile.in: Same.
1390         * aclocal.m4: Regenerate with aclocal 1.11.1.
1391         * method-serial.cc: Rename from serial.cc.
1392         * libitm_i.h (struct gtm_transaction): Update comment on
1393         serialirr_mode.
1395 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1397         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1398         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1400 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1402         * configure: Rebuild.
1404 2009-11-12  Richard Henderson  <rth@redhat.com>
1406         * Rewrite everything in C++.
1408 2009-11-03  Richard Henderson  <rth@redhat.com>
1410         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1411         * Makefile.am (libitm_la_SOURCES): Add them.
1412         * configure.ac (ARCH_X86): New conditional.
1413         * Makefile.in, configure: Rebuild.
1414         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1415         Move futex setup into "other system configury" case.
1416         * local.c (rollback_local): Merge into ...
1417         (GTM_rollback_local): ... here.
1418         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1419         (_ITM_LB): Define as an alias to GTM_LB.
1421 2009-11-03  Richard Henderson  <rth@redhat.com>
1423         * method-readonly.c: New file.
1424         * Makefile.am (libitm_la_SOURCES): Add it.
1425         * Makefile.in: Rebuild.
1426         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1427         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1428         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1429         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1430         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1431         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1432         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1433         gtm_get_clock, gtm_inc_clock): New.
1434         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1435         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1436         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1437         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1438         replace uses with new libitm_i.h symbols.
1439         (dispatch_wbetl): Rename from wbetl_dispatch.
1440         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1441         away from dispatch_readonly; abort if the beginTransaction call
1442         asserted that the transaction was readonly.
1444 2009-11-03  Richard Henderson  <rth@redhat.com>
1446         * memset.c: New file.
1447         * Makefile.am (libitm_la_SOURCES): Add it.
1448         * Makefile.in: Rebuild.
1449         * testsuite/libitm.c/memset-1.c: New.
1451 2009-11-03  Richard Henderson  <rth@redhat.com>
1453         * dispatch.c: Remove file.
1454         * useraction.c (struct gtm_user_action): Move from libitm.h.
1455         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1456         (serial_memset, serial_memmove, serial_memcpy): Remove.
1457         (serial_W*, serial_R*): Remove.
1458         (serial_dispatch): Update to match.
1459         * configure.ac: Move Werror down below configure checks.  Don't
1460         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1461         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1462         Use GCC_AC_FUNC_MMAP_BLACKLIST
1463         * libitm.h: Split out all internal items to...
1464         * libitm_i.h: ... here.  New file.
1465         * copymask.c: New file.
1466         * local.c (struct gtm_local_undo): Move from libitm.h.
1467         (GTM_alloc_local): Rename from alloc_local; export.
1468         * memcpy.c: New file.
1469         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1470         * config/posix/page.c: New file.
1471         * config/posix/target_tls.h: Remove file.
1472         * barrier.c: New file.
1473         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1474         copymask.c, page.c.
1475         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1476         * method-wbetl.c: Rewrite for new cacheline methods.
1477         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1479         * config/alpha/sjlj.S: Fix typo.
1480         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1481         * config/alpha/copymask.c: New file.
1482         * config/alpha/target.h (CACHELINE_SIZE): New.
1483         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1485         * config/x86/target_i.h: Copy functions from x86/target.h.
1486         * config/x86/copymask.c: New file.
1487         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1488         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1489         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1490         * config/x86/target_tls.h: Move contents to target_i.h.
1492         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1493         * testsuite/libitm.c/memcpy-1.c: New.
1495 2009-10-22  Richard Henderson  <rth@redhat.com>
1497         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1498         (AM_CCASFLAGS): New.
1499         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1500         saving/restoring _AC_ARG_VAR_PRECIOUS.
1501         * Makefile.in, aclocal.m4, config.h.in, configure,
1502         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1504 2009-10-22  Richard Henderson  <rth@redhat.com>
1506         * testsuite/*: Update for new compiler syntax.
1508 2009-10-21  Richard Henderson  <rth@redhat.com>
1510         * libitm.h (_ITM_abortReason): Add outerAbort.
1512 2009-08-03  Richard Henderson  <rth@redhat.com>
1514         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1515         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1516         * method-wbetl.c (struct w_entry): Remove mask.
1517         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1518         adjust all callers.
1520 2009-07-22  Richard Henderson  <rth@redhat.com>
1522         * eh_cpp.c: New file.
1523         * Makefile.am (libitm_la_SOURCES): Add it.
1524         * Makefile.in: Rebuild.
1525         * beginend.c (GTM_rollback_transaction): Undo exception state.
1526         (GTM_trycommit_transaction): Mark inline.
1527         (GTM_trycommit_and_finalize_transaction): Split out from ...
1528         (_ITM_commitTransaction): ... here.
1529         (_ITM_commitTransactionEH): New function.
1530         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1531         cxa_unthrown, eh_in_flight; reorder.
1533         * testsuite/libitm.c++/c++.exp: New.
1534         * testsuite/libitm.c++/eh-1.C: New.
1536         * aatree.c (aa_free): Remove REGPARM.
1537         * aatree.h: Remove all REGPARM.
1539 2009-07-18  Richard Henderson  <rth@redhat.com>
1541         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1542         * Makefile.am (libitm_la_SOURCES): Add them.
1543         * Makefile.in: Rebuild.
1544         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1545         (GTM_trycommit_transaction): Likewise.
1546         * libitm.h: Include aatree.h
1547         (struct gtm_alloc_action): New.
1548         (struct gtm_transaction): Add alloc_actions.
1549         (GTM_record_allocation, GTM_forget_allocation): Declare.
1550         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1551         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1552         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1553         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1554         _ZGTtdaPvRKSt9nothrow_t): Export.
1556 2009-07-18  Richard Henderson  <rth@redhat.com>
1558         * target_tls.h: Move ...
1559         * config/posix/target_tls.h: ... here.
1561 2009-07-07  Richard Henderson  <rth@redhat.com>
1563         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1565 2009-07-07  Richard Henderson  <rth@redhat.com>
1567         * Update to GPL3.
1569 2009-07-07  Richard Henderson  <rth@redhat.com>
1571         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1572         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1574         * configure.tgt: Don't use -ftls-model for x86 linux.
1575         * libitm.h: Include target.h after standard includes.
1576         (_gtm_thr): Rename from gtm_thr.
1577         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1578         (gtm_disp, set_gtm_disp): New.
1579         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1580         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1581         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1583 2009-07-07  Richard Henderson  <rth@redhat.com>
1585         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1587 2009-07-06  Richard Henderson  <rth@redhat.com>
1589         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1590         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1591         (_ITM_beginTransaction): Take variadic arguments.
1592         (_ITM_registerThrownObject): Declare.
1593         * beginend.c, serial.c: Update.
1594         * libitm.map: Add _ITM_registerThrownObject.
1596 2009-01-28  Richard Henderson  <rth@redhat.com>
1598         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1599         * Makefile.in: Rebuild.
1600         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1601         (GTM_restart_transaction): Fix uninstrumented code check.
1602         * retry.c (GTM_decide_retry_strategy): Add serial check.
1603         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1604         automatically go irrevokable when in serial mode.
1605         * clone.c: New file.
1606         * libitm.h, libitm.map: Update.
1608 2009-01-27  Richard Henderson  <rth@redhat.com>
1610         * Makefile.am (LTCCASCOMPILE): Define.
1611         (libitm_la_SOURCES): Add methid-wbetl.c.
1612         * testsuite/Makefile.am: New
1613         * configure.ac: Add testsuite/Makefile.
1614         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1615         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1616         (_ITM_abortTransaction): Finalize implementation method; pass
1617         transaction properties to longjmp.
1618         (GTM_restart_transaction): Split out from ...
1619         (_ITM_commitTransaction): ... here.
1620         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1621         Move to config/x86/target.h.
1622         * config/linux/alpha/futex_bits.h: New.
1623         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1624         * config/x86/target.h: Disable target types for 32-bit.
1625         * config/alpha/sjlj.S, config/alpha/target.h: New.
1626         * libitm.h (struct gtm_dispatch): Add init, fini.
1627         (enum restart_reason): New.
1628         (struct gtm_transaction): Add method and restarts.
1629         * retry.c (GTM_decide_retry_strategy): Implement.
1630         * serial.c (serial_init, serial_fini): New.
1631         (GTM_serialmode): Finialize outgoing method.
1632         * method-wbetl.c: New.
1634 2008-12-09  Richard Henderson  <rth@redhat.com>
1636         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1637         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1638         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1639         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1640         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1641         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1642         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1643         * serial.c (serial_R##T, serial_W##T): Likewise.
1645 2008-11-21  Richard Henderson  <rth@redhat.com>
1647         * Initial commit.