2013-10-22 Steve Ellcey <sellcey@mips.com>
[official-gcc.git] / libitm / ChangeLog
blob28f8a227f20e507b263bd4fa50210caa2217f436
1 2013-09-20  Alan Modra  <amodra@gmail.com>
3         * configure: Regenerate.
5 2013-08-30  Torvald Riegel  <triegel@redhat.com>
7         * config/posix/rwlock.cc: Fix initialization order.
9 2013-08-30  Torvald Riegel  <triegel@redhat.com>
11         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
12         (htm_fastpath): Assign an asm name.
13         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
14         HTM fast paths.
15         (_ITM_actions): Likewise.
16         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
17         x86_64.
18         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
19         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
20         field to the start of the structure.
21         * config/linux/rwlock.h (gtm_rwlock): Update comments.
22         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
23         handling for custom HTM fast paths.
25 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26         Revert:
27         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29         * configure.tgt: Add -msoft-float to XCFLAGS.
31 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33         * configure.tgt: Add -msoft-float to XCFLAGS.
35 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
38         (htm_transaction_active): Enable zEC12 instructions in the
39         assembler.
40         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
42 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44         * acinclude.m4: Add htm asm check for s390.
45         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
46         * configure: Regenerate.
47         * config/s390/target.h: Remove __HTM__ check.
48         (htm_available): Call getauxval to get hwcaps and check whether
49         HTM is available or not.
51 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
53         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
54         * configure.ac: Use it.
55         (AC_CHECK_HEADERS): Check for sys/auxv.h.
56         (AC_CHECK_FUNCS): Check for getauxval.
57         * config.h.in, configure: Rebuild.
58         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
59         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
60         (USE_HTM_FASTPATH): Define.
61         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
62         _HTM_RETRIES) New macros.
63         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
64         htm_begin_success, htm_commit, htm_transaction_active): New functions.
66 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68         * config/s390/target.h: Include htmintrin.h.
69         (_HTM_ITM_RETRIES): New macro definition.
70         (htm_available, htm_init, htm_begin, htm_begin_success)
71         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
73 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
74             Cesar Philippidis  <cesar@codesourcery.com>
76         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
77         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
78         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
79         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
81 2013-06-20  Torvald Riegel  <triegel@redhat.com>
83         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
84         (_ITM_getTransactionId): Same.
85         * config/x86/target.h (htm_transaction_active): New.
87 2013-06-20  Torvald Riegel  <triegel@redhat.com>
89         PR libitm/57643
90         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
91         the HTM fastpath.
93 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
95         PR bootstrap/56714
96         * local_atomic (__always_inline): Always define our version.
97         (__calculate_memory_order): Mark inline.
98         (atomic_thread_fence): Ditto.
99         (atomic_signal_fence): Ditto.
100         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
101         (atomic_bool::atomic_flag_clear_explicit): Ditto.
102         (atomic_bool::atomic_flag_test_and_set): Ditto.
103         (atomic_bool::atomic_flag_clear): Ditto.
105 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
107         * config/s390/sjlj.S: New file.
108         * config/s390/target.h: New file.
109         * configure.tgt: Set options for S/390.
111 2013-03-23  Andi Kleen  <ak@linux.intel.com>
113         * local_atomic (__always_inline): Add.
114         (__calculate_memory_order, atomic_thread_fence,
115          atomic_signal_fence, test_and_set, clear, store, load,
116          exchange, compare_exchange_weak, compare_exchange_strong,
117          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
118         Add __always_inline to force inlining.
120 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
121             Jack Howarth  <howarth@bromo.med.uc.edu>
122             Patrick Marlier  <patrick.marlier@gmail.com>
124         PR libitm/55693
125         * alloc_cpp.cc: Enable function declarations on darwin.
126         * eh_cpp.cc: Likewise.
128 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
130         Update copyright years.
132 2012-11-09  Torvald Riegel  <triegel@redhat.com>
134         * beginend.cc (htm_fastpath): New.
135         (gtm_thread::begin_transaction, _ITM_commitTransaction,
136         _ITM_commitTransactionEH): Add HTM fastpath handling.
137         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
138         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
139         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
140         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
141         * configure.tgt: Add -mrtm to XCFLAGS.
142         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
143         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
144         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
145         * retry.cc (parse_default_method): Add HTM method parsing.
146         (gtm_thread::number_of_threads_changed): Use HTM by default if
147         available.
149 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
151         * configure: Regenerate.
153 2012-10-31  Richard Henderson  <rth@redhat.com>
155         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
156         * configure.ac: Use it.
157         * config.h.in, configure: Rebuild.
158         * testsuite/Makefile.in: Rebuild.
160 2012-10-24  Torvald Riegel  <triegel@redhat.com>
162         * libitm.texi: Clarify ABI requirements for data-logging functions.
164 2012-10-24  Torvald Riegel  <triegel@redhat.com>
166         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
167         it requires serial mode instead of assuming that for certain
168         dispatchs.
169         * dispatch.h (abi_dispatch::requires_serial): New.
170         (abi_dispatch::abi_dispatch): Adapt.
171         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
172         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
173         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
174         serial_dispatch::serial_dispatch,
175         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
177 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
179         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
180         and ia32 declarations some more.
181         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
183 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
185         PR other/43620
186         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
187         * configure: Regenerate.
188         * Makefile.in: Regenerate.
190 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
192         * configure: Regenerated.
194 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
196         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
198 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
200         * eh_cpp.cc: Fix __cxa_end_catch declaration.
202 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
204         * configure: Regenerated.
206 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
208         PR libitm/52854
209         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
210         for x86-64.
212 2012-04-03  Tristan Gingold  <gingold@adacore.com>
214         * configure: Regenerate.
216 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
218         PR bootstrap/52812
219         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
221 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
223         * testsuite/lib/libitm.exp: load fortran-modules.exp
225 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
227         * configure.tgt (*-*-irix6*): Remove.
229 2012-03-13  Torvald Riegel  <triegel@redhat.com>
231         PR libitm/52526
232         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
233         wake-up.
235 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
237         * configure.tgt (*-*-osf*): Remove.
238         * configure: Regenerate.
240 2012-03-05  Torvald Riegel  <triegel@redhat.com>
242         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
243         memtransfer/memset if size isn't larger than zero.
245 2012-03-02  Torvald Riegel  <triegel@redhat.com>
247         * libitm.texi: Link to specification and add a usage example.
249 2012-02-24  Torvald Riegel  <triegel@redhat.com>
251         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
252         default dispatch for more than 1 thread to ml_wt.
254 2012-02-20  Torvald Riegel  <triegel@redhat.com>
256         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
258 2012-02-20  Torvald Riegel  <triegel@redhat.com>
260         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
262 2012-02-20  Torvald Riegel  <triegel@redhat.com>
264         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
265         serial mode corner cases made obsolete by prior gtm_rwlock changes.
266         (gl_wt_dispatch.rollback): Same.
268 2012-02-20  Torvald Riegel  <triegel@redhat.com>
270         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
272 2012-02-20  Torvald Riegel  <triegel@redhat.com>
274         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
275         for RfW src.  Optimize number of calls to gtm_thr.
277 2012-02-20  Torvald Riegel  <triegel@redhat.com>
279         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
280         acquisition to ...
281         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
282         (default_dispatch): Make atomic.
283         (GTM::gtm_thread::set_default_dispatch): Access atomically.
284         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
285         use decide_begin_dispatch() if default_dispatch might have changed.
286         (GTM::gtm_thread::number_of_threads_changed): Initialize
287         default_dispatch here.
289 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
290             Patrick Marlier  <patrick.marlier@gmail.com>
292         PR libitm/52220
293         * alloc_cpp.cc: No dummy definitions for darwin.
294         * eh_cpp.cc: Likewise.
296 2012-02-14  Richard Henderson  <rth@redhat.com>
298         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
300 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
302         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
304 2012-02-14  Torvald Riegel  <triegel@redhat.com>
306         * libitm_i.h (GTM::gtm_rwlog_entry): New.
307         (GTM::gtm_thread): Add read and write logs.
308         (GTM::dispatch_ml_wt): Declare.
309         * retry.cc (parse_default_method): Support ml_wt.
310         * method-ml.cc: New file.
311         * Makefile.am: Add method-ml.cc.
312         * Makefile.in: Regenerate.
314 2012-02-14  Torvald Riegel  <triegel@redhat.com>
316         * dispatch.h (GTM::abi_dispatch::supports): New.
317         (GTM::method_group::reinit): New.
318         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
319         (GTM::gtm_thread::number_of_threads_changed): Check that the method
320         supports the current situation.
322 2012-02-14  Torvald Riegel  <triegel@redhat.com>
324         * util.cc (GTM::xcalloc): New.
325         * common.h (GTM::xcalloc): Declare.
327 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
329         * config/sparc/target.h (cpu_relax): Read from CC register.
330         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
332 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
334         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
336 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
338         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
339         * config/sparc/cacheline.h: New file.
340         * config/sparc/target.h: Likewise.
341         * config/sparc/sjlj.S: Likewise.
342         * config/linux/sparc/futex_bits.h: Likewise.
344 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
346         * configure.ac (link_itm): Fix comment.
347         * configure: Regenerate.
348         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
350 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
352         PR libitm/51822
353         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
354         Correct libgomp references.
356 2012-01-24  Torvald Riegel  <triegel@redhat.com>
358         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
359         wake-up.
361 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
363         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
364         end of structure.
365         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
366         offset values.  Do not copy return address.  Decrement stack
367         by 56 bytes only.
368         (GTM_longjump) [__x86_64__]: Update offset values.
370 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
372         PR libitm/51830
373         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
374         the first function argument to %eax.
376 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
378         * libitm.h (_ITM_getThreadnum): Remove.
379         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
381 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
383         * clearcap.map: New file.
384         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
385         * configure.ac: Call it.
386         Clear HWCAP_LDFLAGS if defaulting to -mavx.
387         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
388         * configure: Regenerate.
389         * Makefile.in: Regenerate.
390         * testsuite/Makefile.in: Regenerate.
392 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
394         PR libitm/51173
395         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
396         include, exclude options.
398 2012-01-14  Torvald Riegel  <triegel@redhat.com>
400         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
401         rolling back.
402         * containers.h (GTM::vector::set_size): New.
404 2012-01-14  Torvald Riegel  <triegel@redhat.com>
406         PR libitm/51855
407         * config/generic/tls.h (GTM::mask_stack_top): New.
408         (GTM::mask_stack_bottom): Declare.
409         * config/generic/tls.c (GTM::mask_stack_bottom): New.
410         * local.cc (gtm_undolog::rollback): Filter out any updates that
411         overlap the libitm stack.  Add current transaction as parameter.
412         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
413         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
414         * testsuite/libitm.c/stackundo.c: New test.
416 2012-01-10  Richard Henderson  <rth@redhat.com>
418         * libitm_i.h (_Unwind_DeleteException): Declare weak.
419         * eh_cpp.cc (_Unwind_DeleteException): Define for
420         !HAVE_ELF_STYLE_WEAKREF.
422 2012-01-08  Torvald Riegel  <triegel@redhat.com>
424         * local.cc (GTM_LB): Use GTM::gtm_undolog.
425         (GTM::gtm_thread::drop_references_undolog): Remove.
426         (GTM::gtm_thread::commit_undolog,
427         GTM::gtm_thread::rollback_undolog): Move to ...
428         * libitm_i.h (GTM::gtm_undolog): ...here. New.
429         (GTM::gtm_undolog_entry): Remove.
430         (GTM::gtm_thread): Adapt.
431         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
432         (GTM::gtm_thread::trycommit): Adapt.
433         * method-serial.cc (serial_dispatch::log): Adapt.
434         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
435         (gl_wt_dispatch::store): Fix likely/unlikely.
436         * containers.h (GTM::vector::resize): Add additional_capacity
437         parameter and handle it.
438         (GTM::vector::resize_noinline): New/adapt.
439         (GTM::vector::push): New.
441 2012-01-06  Richard Henderson  <rth@redhat.com>
443         * configure.tgt: Support powerpc-linux and powerpc-darwin.
444         * config/linux/powerpc/futex_bits.h: New file.
445         * config/powerpc/cacheline.h: New file.
446         * config/powerpc/sjlj.S: New file.
447         * config/powerpc/target.h: New file.
448         * config/generic/asmcfi.h (cfi_offset): New.
449         (cfi_restore, cfi_undefined): New.
451 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
453         PR other/51171
454         * testsuite/libitm.c/reentrant.c: Remove xfail.
455         (thread): Pass x to pure().
456         From Patrik Marlier <patrick.marlier@gmail.com>.
458 2011-12-24  Torvald Riegel  <triegel@redhat.com>
460         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
461         privatization safety if already in serial mode.
463 2011-12-24  Torvald Riegel  <triegel@redhat.com>
465         * beginend.cc (GTM::gtm_thread::restart): Add and handle
466         finish_serial_upgrade parameter.
467         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
468         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
469         Don't unset reader flag.
470         (GTM::gtm_rwlock::write_upgrade_finish): New.
471         * config/posix/rwlock.cc: Same.
472         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
473         Declare.
474         * config/posix/rwlock.h: Same.
475         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
476         flag after commit or after rollback when restarting.
478 2011-12-24  Torvald Riegel  <triegel@redhat.com>
480         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
481         (GTM::gtm_thread::try_commit): Changed memory order.
482         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
483         as parameter.
484         * config/linux/x86/futex_bits.h (sys_futex0): Same.
485         * config/linux/sh/futex_bits.h (sys_futex0): Same.
486         * config/linux/futex_bits.h (sys_futex0): Same.
487         * config/linux/futex.cc (futex_wait, futex_wake): Same.
488         * config/linux/futex.h (futex_wait, futex_wake): Same.
489         * config/linux/rwlock.h (gtm_rwlock::writers,
490         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
491         ints.
492         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
493         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
494         gtm_rwlock::write_unlock): Fix memory orders and fences.
495         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
496         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
497         gtm_rwlock::write_unlock): Same.
498         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
499         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
500         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
501         Add comments.
502         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
503         gl_wt_dispatch::load, gl_wt_dispatch::store,
504         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
505         orders and fences.  Add comments.
507 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
509         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
510         * Makefile.in: Regenerated.
512 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
514         * configure.tgt: Add sh* case.
515         * config/sh/target.h: New file.
516         * config/sh/sjlj.S: New file.
517         * config/linux/sh/futex_bits.h: New file.
519 2011-12-14  Richard Henderson  <rth@redhat.com>
521         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
522         * config/arm/sjlj.S, config/arm/target.h: New files.
523         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
524         (cfi_rel_offset): New.
525         * config/linux/futex_bits.h: New file.
526         * config/linux/futex.cc: Include futex_bits.h here...
527         * config/linux/futex.h: ... not here.
528         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
529         * configure.ac (ARCH_AM): New conditional.
530         * Makefile.in, configure: Rebuild.
531         * configure.tgt: Handle ARM.
533 2011-12-13  Richard Henderson  <rth@redhat.com>
535         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
536         signed/unsigned comparison werror.
538         * local_atomic: New file.
539         * libitm_i.h: Include it.
540         (gtm_thread::shared_state): Use atomic template.
541         * beginend.cc (GTM::gtm_clock): Use atomic template.
542         (global_tid): Use atomic template if 64-bit atomics available.
543         (gtm_thread::gtm_thread): Update shared_state access.
544         (gtm_thread::trycommit): Likewise.
545         (choose_code_path): Update global_tid access.
546         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
547         * stmlock.h (GTM::gtm_clock): Use atomic template.
548         (gtm_get_clock, gtm_inc_clock): Update accesses.
549         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
550         redundant __sync_synchronize after atomic shared_state access.
551         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
552         (gtm_rwlock::write_lock_generic): Likewise.
553         (gtm_rwlock::read_unlock): Likewise.
554         * config/alpha/target.h (atomic_read_barrier): Remove.
555         (atomic_write_barrier): Remove.
556         * config/x86/target.h (atomic_read_barrier): Remove.
557         (atomic_write_barrier): Remove.
559 2011-11-30  Richard Henderson  <rth@redhat.com>
561         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
562         * beginend.c (_ITM_abortTransaction): Update to match.
563         (GTM::gtm_thread::restart): Likewise.
564         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
565         * config/x86/sjlj.S (GTM_longjmp): Likewise.
567 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
569         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
570         * Makefile.in: Regenerate.
572 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
574         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
575         * alloc_cpp.cc: Generate dummy functions if we don't
576         HAVE_ELF_STYLE_WEAKREF.
577         * eh_cpp.cc: Likewise.
578         * configure: Regenerate.
579         * aclocal.m4:  Likewise.
580         * config.h.in: Likewise.
581         * Makefile.in: Likewise.
582         * testsuite/Makefile.in: Likewise.
584 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
586         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
587         __USER_LABEL_PREFIX__ for targets that use it.
588         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
589         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
590         in portability to non-elf targets.
591         (GTM_longjmp): Likewise.
592         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
593         where required.
595 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
597         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
598         * testsuite/libitm.c/memset-1.c: Likewise.
600 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
602         * configure: Regenerate.
604 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
606         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
607         (LIBITM_ENABLE_SYMVERS): Handle sun style.
608         * Makefile.am: Handle sun style versioning.
609         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
610         * configure: Regenerate.
611         * Makefile.in: Regenerate.
613 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
615         * config/generic/asmcfi.h: Fix comment.
616         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
617         sequence without .hidden support, error for non-ELF targets.
618         (GTM_longjmp) [__ELF__]: Only use .hidden if
619         HAVE_ATTRIBUTE_VISIBILITY.
621 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
623         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
624         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
625         Dummy functions.
626         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
627         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
629 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
631         PR bootstrap/51098
632         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
633         * configure: Regenerate.
635 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
637         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
639 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
641         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
642         .hidden.
643         (.note.GNU-stack): Only use if __linux__.
644         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
645         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
646         * testsuite/libitm.c/reentrant.c: Likewise.
647         * testsuite/libitm.c/simple-2.c: Likewise.
648         * testsuite/libitm.c/txrelease.c: Likewise.
649         * testsuite/libitm.c++/static_ctor.C: Likewise.
651 2011-11-10  Richard Henderson  <rth@redhat.com>
653         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
654         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
655         * configure.ac (ARCH_X86_AVX): New conditional.
656         * Makefile.in, configure: Rebuild.
658 2011-11-09  Richard Henderson  <rth@redhat.com>
660         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
661         * configure.ac: Use it.
662         * config.h.in, configure: Rebuild.
663         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
665 2011-11-09  Richard Henderson  <rth@redhat.com>
667         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
668         * config/alpha/unaligned.h: Remove file.
669         * config/generic/unaligned.h: Remove file.
670         * config/x86/unaligned.h: Remove file.
671         * config/generic/cachepage.h: Remove file.
672         * config/posix/cachepage.cc: Remove file.
673         * config/generic/cacheline.cc: Remove file.
674         * config/x86/cacheline.cc: Remove file.
675         * config/generic/cacheline.h (gtm_cacheline): Remove the
676         store_mask, copy_mask, copy_mask_wb methods.
677         * config/x86/cacheline.h: Likewise.
678         * config/alpha/cacheline.h: Fall back to generic after setting size.
679         * config/generic/tls.cc (gtm_mask_stack): Remove.
680         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
681         (GTM_vpalignr_table): Remove.
682         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
683         (GTM_pshift_table): Remove.
684         * config/libitm_i.h: Don't include cachepage.h.
685         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
686         * Makefile.in, testsuite/Makefile.in: Rebuild.
688 2011-11-09  Richard Henderson  <rth@redhat.com>
690         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
691         to emit branch prediction hint.
693         * config/x86/sjlj.S: Protect elf directives with __ELF__.
694         Protect .note.GNU-stack with __linux__.
696         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
697         * configure, aclocal.m4, config.h.in: Rebuild.
698         * config/generic/asmcfi.h: New file.
699         * config/x86/sjlj.S: Use it.
701 2011-11-08  Richard Henderson  <rth@redhat.com>
703         * local.cc (_ITM_LB): Use a normal call, not a function alias.
705 2011-11-08  Richard Henderson  <rth@redhat.com>
707         * configure.tgt: Test correct directory for supported cpus.
709         * configure.ac: Exit if unsupported.
710         * configure: Rebuild.
711         * configure.tgt: Delete boilerplate from libgomp for unsupported
712         targets.  Set UNSUPPORTED for unsupported targets.
714 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
716         * configure.tgt: Handle i386 like i[456]86.
717         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
718         take address.
719         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
720         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
722 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
724         * method-wbetl.cc: Update copyright notice.
725         * aatree.cc: Same.
726         * util.cc: Same.
727         * libitm.h: Same.
728         * memset.cc: Same.
729         * eh_cpp.cc: Same.
730         * barrier.tpl: Same.
731         * useraction.cc: Same.
732         * stmlock.h: Same.
733         * memcpy.cc: Same.
734         * common.h: Same.
735         * config/generic/tls.cc: Same.
736         * config/generic/cacheline.h: Same.
737         * config/generic/cachepage.h: Same.
738         * config/generic/cacheline.cc: Same.
739         * config/generic/unaligned.h: Same.
740         * config/x86/cacheline.h: Same.
741         * config/x86/cacheline.cc: Same.
742         * config/x86/unaligned.h: Same.
743         * config/alpha/cacheline.h: Same.
744         * config/alpha/unaligned.h: Same.
745         * config/alpha/sjlj.S: Same.
746         * config/posix/cachepage.cc: Same.
747         * config/linux/futex.h: Same.
748         * config/linux/alpha/futex_bits.h: Same.
750 2011-11-04  Torvald Riegel  <triegel@redhat.com>
752         * libitm.texi: No cover text and invariant sections.
754 2011-11-03  Richard Henderson  <rth@redhat.com>
756         * local_type_traits: New file.
757         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
759 2011-11-03  Richard Henderson  <rth@redhat.com>
761         * configure.ac: Don't test for gfortran.
762         * configure: Rebuild.
764         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
765         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
767 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
769         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
770         * testsuite/libitm.c/memset-1.c: Same.
771         * testsuite/libitm.c/c.exp: Same.
772         * testsuite/lib/libitm-dg.exp: Same.
773         * testsuite/lib/libitm.exp: Same.
774         * testsuite/libitm.c++/c++.exp: Same.
776 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
778         * testsuite/config/default.exp: Update copyright date.
779         * configure.ac: Add copyright info.
780         * configure.tgt: Same.
782 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
784         * testsuite/libitm.c/reentrant.c: XFAIL.
785         * testsuite/libitm.c++/static_ctor.C: XFAIL.
787 2011-10-29  Torvald Riegel  <triegel@redhat.com>
789         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
790         handle aborts.
791         (_ITM_abortTransaction): Handle aborts of outer transactions.
792         * libitm_i.h: Same.
793         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
794         * libitm.texi: Document aborts of outer transactions.
795         * testsuite/libitm.c/cancel.c: New file.
797 2011-10-19  Torvald Riegel  <triegel@redhat.com>
799         * testsuite/*: Change __transaction to __transaction_atomic or
800         __transaction_relaxed.
802 2011-10-19  Torvald Riegel  <triegel@redhat.com>
804         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
805         (gtm_thr): Same.
807 2011-10-19  Torvald Riegel  <triegel@redhat.com>
809         * libitm_i.h: Add gl_wt dispatch.
810         * retry.cc (parse_default_method): Same.
811         * method-gl.cc: New file.
812         * Makefile.am: Use method-gl.cc.
813         * Makefile.in: Rebuild.
815 2011-10-19  Torvald Riegel  <triegel@redhat.com>
817         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
818         safety if requested by a TM method.
819         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
820         privatization safety.
821         * method-serial.cc: Same.
823 2011-10-19  Torvald Riegel  <triegel@redhat.com>
825         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
826         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
827         undolog-related member functions from *_local to *_undolog.
828         * local.cc (gtm_thread::commit_undolog): Same.
829         * beginend.cc (GTM::gtm_thread::trycommit): Same.
830         (GTM::gtm_thread::rollback): Roll back undolog before
831         dispatch-specific rollback.
833 2011-10-19  Torvald Riegel  <triegel@redhat.com>
835         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
836         re-initialization of the current method group.
837         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
839 2011-10-19  Torvald Riegel  <triegel@redhat.com>
841         * alloc.cc (commit_allocations_2): Do not free transaction-local
842         memory when committing a nested transaction.
844 2011-10-19  Torvald Riegel  <triegel@redhat.com>
846         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
847         serial-irrevocable dispatch, not serial.
849 2011-10-19  Torvald Riegel  <triegel@redhat.com>
851         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
852         declarations.
853         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
854         * method-serial.cc: Implement begin_or_restart().
855         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
856         dispatch-specific begin_or_restart().
857         (GTM::gtm_thread::restart): Same.
859 2011-08-23  Torvald Riegel  <triegel@redhat.com>
861         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
862         restarting without switching to serial mode.
863         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
864         transaction state. Choose closed-nesting alternative if available.
865         (GTM::gtm_thread::set_default_dispatch): New.
866         (parse_default_method): New.
867         (GTM::gtm_thread::number_of_threads_changed): New.
868         * method-serial.cc (GTM::serial_mg): New method group class.
869         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
870         fini.
871         (GTM::serial_dispatch): Same.
872         (GTM::serialirr_onwrite_dispatch): Same.
873         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
874         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
875         registered threads.
876         (GTM::gtm_thread::gtm_thread): Same.
877         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
878         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
879         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
880         choose dispatch but set state according to dispatch here.
881         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
882         (GTM::method_group): New class.
883         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
884         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
885         * libitm.texi: Document TM methods, method groups, method life cycle.
886         Rename method sets to method groups.
888 2011-08-23  Torvald Riegel  <triegel@redhat.com>
890         * config/x86/tls.h: Moved to ...
891         * config/linux/x86/tls.h: ... here.
893 2011-08-23  Torvald Riegel  <triegel@redhat.com>
895         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
896         Add X32 support.
897         * config/x86/sjlj.S: Same.
899 2011-08-19  Torvald Riegel  <triegel@redhat.com>
901         * config/linux/rwlock.h: New file.
902         * config/linux/rwlock.c: New file.
903         * configure.ac: Reenable futex support (undo SVN rev 157758).
904         * Makefile.am: Same.
905         * configure.tgt: Same.
906         * config/linux/alpha/futex_bits.h: Same.
907         * config/linux/futex.h: Same. Return number of woken processes.
908         * config/linux/futex.cc: Same.
909         (futex_wait): Remove spinning.
910         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
911         Use __x86_64__ instead of __LP64__.
912         * aclocal.m4: Include generic futex checks.
913         * configure: Rebuild.
914         * Makefile.in: Rebuild.
915         * testsuite/Makefile.in: Rebuild.
916         * beginend.cc: Include pthread.h.
917         * config/posix/cachepage.cc: Same.
919 2011-08-12  Torvald Riegel  <triegel@redhat.com>
921         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
922         (abi_disp, set_abi_disp): Move to tx's TLS slot.
923         (set_gtm_thr): New.
924         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
925         (set_gtm_thr): New.
926         (GTM::gtm_thread::thread_num): Removed.
927         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
928         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
929         tx-to-thread renaming.
930         * beginend.cc: Adapted to tx-to-thread renaming.
931         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
932         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
933         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
934         gtm_transaction to gtm_thread.
935         (_ITM_getThreadnum): Removed. Not supported anymore.
936         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
937         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
938         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
939         gtm_tx-to-gtm_thr renaming if necessary.
940         * eh_cpp.cc: Same.
941         * local.cc: Same.
942         * retry.cc: Same.
943         * clone.cc: Same.
944         * alloc.cc: Same.
945         * alloc_c.cc: Same.
946         * alloc_cpp.cc: Same.
947         * method-serial.cc: Same.
948         * config/generic/tls.cc: Same.
949         * config/posix/rwlock.h (gtm_rwlock): Same.
950         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
952 2011-08-12  Torvald Riegel  <triegel@redhat.com>
954         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
955         implementation.
956         (gtm_rwlock::read_unlock): Same.
957         (gtm_rwlock::write_lock_generic): New. Generalized from ...
958         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
959         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
960         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
961         w_upgrade. Replaced by per-transaction flags (in shared_state).
962         Added c_confirmed_writers.
963         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
964         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
965         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
966         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
967         * beginend.cc (GTM::gtm_transaction::begin_transaction,
968         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
969         * libitm.texi: Document locking conventions and implementations in
970         libitm.
972 2011-08-12  Torvald Riegel  <triegel@redhat.com>
974         * libitm_i.h (next_tx): Add list of all threads' transaction.
975         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
976         transaction with list of transactions and ...
977         (thread_exit_handler): ... deregister here.
978         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
979         * config/x86/target.h: Same.
981 2011-08-12  Torvald Riegel  <triegel@redhat.com>
983         * testsuite/libitm.c++/static_ctor.C: New file.
985 2011-08-12  Torvald Riegel  <triegel@redhat.com>
987         * testsuite/libitm.c/reentrant.c: New file.
989 2011-08-12  Torvald Riegel  <triegel@redhat.com>
991         * config/generic/tls.h: Remove the free list for transactions and ...
992         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
993         (GTM::gtm_transaction::operator delete): ... and release here.
994         (thread_exit_handler): New. Delete tx when thread terminates.
995         (thread_exit_init): New.
996         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
997         * testsuite/libitm.c/txrelease.c: New file.
999 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1001         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1002         * testsuite/libitm.c/notx.c: New file.
1004 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1006         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1007         * libitm_i.h (local_tid): ... to here.
1008         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1009         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1011 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1013         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1014         serialirr_onwrite_dispatch as new default for now.
1015         * method-serial.cc (serialirr_onwrite_dispatch): New.
1016         (GTM::dispatch_serialirr_onwrite): New.
1017         * libitm_i.h: Same.
1019 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1021         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1022         * query.cc (_ITM_getTransactionId): There is no active transaction if
1023         the current nesting level is zero.
1025 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1027         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1028         rollback.
1030 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1032         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1033         transaction properties from the caller instead of from the
1034         transaction object.
1035         * libitm_i.h: Same.
1036         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1038 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1040         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1041         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1042         * dispatch.h: Same.
1043         * method-serial.cc: Same.
1044         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1045         flat nesting as default, and closed nesting on demand.
1046         (GTM::gtm_transaction::rollback): Same.
1047         (_ITM_abortTransaction): Same.
1048         (GTM::gtm_transaction::restart): Same.
1049         (GTM::gtm_transaction::trycommit): Same.
1050         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1051         (choose_code_path): New.
1052         (GTM::gtm_transaction_cp::save): New.
1053         (GTM::gtm_transaction_cp::commit): New.
1054         * query.cc (_ITM_inTransaction): Support flat nesting.
1055         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1056         (GTM::gtm_transaction): Support flat and closed nesting.
1057         * alloc.cc (commit_allocations_2): New.
1058         (commit_cb_data): New helper struct.
1059         (GTM::gtm_transaction::commit_allocations): Handle nested
1060         commits/rollbacks.
1061         * libitm.texi: Update user action section, add description of nesting.
1063 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1065         * libitm_i.h: Add closed nesting as restart reason.
1066         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1068 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1070         * useraction.cc: Use vector instead of list to store actions.
1071         Also support partial rollbacks for closed nesting.
1072         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1073         * beginend.cc: Same.
1075 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1077         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1078         closed_nesting flags, as well as a closed nesting alternative.
1079         * method-serial.cc: Same.
1080         (serial_dispatch): Renamed to serialirr_dispatch.
1081         (GTM::dispatch_serialirr): Same.
1082         (serial_dispatch_ul): Renamed to serial_dispatch.
1083         (GTM::dispatch_serial): Same.
1085 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1087         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1089 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1091         * aatree.h (aa_tree::remove): New.
1092         (aa_tree::operator new): Add placement new.
1094 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1096         * containers.h: New file.
1097         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1098         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1099         * common.h: ... to here.
1100         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1101         * local.cc: Same.
1103 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1105         * libitm_i.h (STATE_ABORTING): Remove.
1106         * beginend.cc (_ITM_abortTransaction): Same.
1107         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1108         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1109         (_ITM_rollbackTransaction): Remove.
1110         * beginend.cc: Same.
1111         * libitm.map: Same.
1112         * libitm.texi: Document these ABI changes.
1114 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1116         * libitm.texi: New file.
1117         * Makefile.am: Add libitm.texi.
1118         * Makefile.in: Rebuild.
1120 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1122         * libitm_i.h: Move parts to common.h and dispatch.h.
1123         * common.h: New file.
1124         * dispatch.h: New file, new dispatch class.
1125         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1126         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1127         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1128         decision to retry.cc.
1129         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1130         only.
1131         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1132         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1133         logging.
1134         * barrier.cc: Use new barriers definitions.
1135         (abi_dispatch::memmove_overlap_check): New.
1136         * config/x86/x86_sse.cc: Same.
1137         * config/x86/x86_avx.cc: Same.
1138         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1139         memcpy.cc.
1140         * Makefile.in: Rebuild.
1141         * method-readonly.cc: Remove.
1142         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1143         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1145 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1147         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1148         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1149         * testsuite/libitm.c/dropref-2.c: Same.
1150         * testsuite/libitm.c/dropref.c: Same.
1152 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1154         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1155         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1156         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1157         * alloc_c.cc: Same.
1158         * barrier.tpl: Same.
1159         * beginend.c: Same.
1160         * config/generic/tls.h: Same.
1161         * config/x86/tls.h: Same.
1162         * libitm_i.h: Same.
1163         * memcpy.cc: Same.
1164         * memset.cc: Same.
1165         * method-readonly.cc: Same.
1166         * method-serial.cc: Same.
1167         * method-wbetl.cc: Same.
1168         * retry.cc: Same.
1170 2011-03-03  Richard Henderson  <rth@redhat.com>
1172         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1173         From Patrik Marlier <patrick.marlier@unine.ch>.
1175 2011-02-03  Richard Henderson  <rth@redhat.com>
1177         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1178         * configure.ac: Use it.
1179         * configure, config.h.in: Rebuild.
1180         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1181         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1182         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1183         * libitm.map: Use wildcards to match size_t mangling.
1185 2010-12-14  Richard Henderson  <rth@redhat.com>
1187         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1188         blocks of TIDs per thread.
1189         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1190         (setup_gtm_thr): Return the thread structure.
1191         * config/x86/tls.h (setup_gtm_thr): Likewise.
1193 2010-12-14  Richard Henderson  <rth@redhat.com>
1195         * clone.cc (table_lock): Remove.
1196         (find_clone): Don't take it.
1197         (ExcludeTransaction): New helper class.
1198         (_ITM_registerTMCloneTable): Use it.
1199         (_ITM_deregisterTMCloneTable): Likewise.
1201 2010-12-14  Richard Henderson  <rth@redhat.com>
1203         * config/x86/tls.h: New file.
1205 2010-07-15  Richard Henderson  <rth@redhat.com>
1207         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1208         * Makefile.in: Rebuild.
1210 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1212         * method-wbetl.cc (trydropreference): Fix source line.
1214 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1216         * libitm.h: Add comment.
1217         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1219 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1221         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1222         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1223         available, use pthread mutexes.
1224         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1225         * config.h.in: Regenerate.
1226         * configure: Regenerate.
1228 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1230         * libitm.h (ITM_PURE): Define.
1231         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1233 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1235         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1236         (validate): Add comment.
1237         (trydropreference): New.
1238         * method-readonly.cc (class readonly_dispatch): Add
1239         trydropreference.
1240         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1241         Call trydropreference().
1242         * libitm.h (_ITM_dropReferences): Remove const attribute.
1243         * method-serial.cc (class serial_dispatch): Add trydropreference.
1244         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1246 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1248         * memcpy.cc (do_memcpy): Comment.
1250 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1252         * barrier.tpl: Add comments throughout.
1254 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1256         * method-wbetl.cc (struct w_entry): Add comments.
1257         (trycommit): Same.
1258         (rollback): Same.
1260 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1262         * alloc_c.cc (_ITM_dropReferences): New.
1263         * libitm.map (_ITM_dropReferences): Add.
1264         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1265         * libitm_i.h (struct gtm_transaction): Declare
1266         drop_references_allocations and drop_references_local.
1267         * local.cc (rollback_local): Ignore memory when applicable.
1268         (drop_references_local): New.
1270 2010-06-23  Richard Henderson  <rth@redhat.com>
1272         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1273         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1274         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1275         * config/alpha/target.h: Likewise.
1276         * config/generic/tls.cc (gtm_mask_stack): Use it.
1278 2010-06-23  Richard Henderson  <rth@redhat.com>
1280         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1281         a mutex instead of trying a lock-free compare-and-swap on the list.
1282         (gtm_cacheline_page::operator delete): Likewise.
1284 2010-06-16  Richard Henderson  <rth@redhat.com>
1286         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1287         that overlap the libitm stack.
1288         * barrier.tpl: Mark incoming stack.
1289         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1290         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1291         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1292         * memcpy.cc, memset.cc: Likewise.
1293         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1294         * config/generic/tls.h (gtm_thread): Add stack_top member.
1295         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1296         * libitm_i.h (gtm_mask_stack): Declare.
1297         * config/generic/tls.cc: New file.
1298         * Makefile.am (libitm_la_SOURCES): Add it.
1299         (AM_CXXFLAGS): Turn off exceptions.
1300         * Makefile.in: Rebuild.
1302 2010-06-16  Richard Henderson  <rth@redhat.com>
1304         * alloc.cc (struct gtm_alloc_action): Move definition ...
1305         * libitm_i.h: ... here.
1306         (class gtm_transaction): Declare new and delete.
1307         * beginend.cc (alloc_tx): Reformulate as operator new.
1308         (free_tx): Reformulate as operator delete.
1309         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1311 2010-06-11  Richard Henderson  <rth@redhat.com>
1313         * clone.cc (clone_entry_compare): Fix typo.
1314         From Patrik Marlier <patrick.marlier@unine.ch>.
1316 2010-05-13  Richard Henderson  <rth@redhat.com>
1318         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1319         in extern "C".
1321 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1323         * libitm_i.h (struct gtm_transaction): Remove
1324         get_allocation_size.
1325         (record_allocation): Remove size parameter.
1326         * libitm.map (_ITM_realloc): Remove.
1327         * alloc_c.cc (_ITM_realloc): Remove.
1328         (_ITM_malloc): Remove size argument to record_allocation.
1329         (_ITM_calloc): Same.
1330         * alloc_cpp.cc (_ZGTtnwm): Same.
1331         (_ZGTtnwmRKSt9nothrow_t): Same.
1332         (_ZGTtnam): Same.
1333         (_ZGTtnamRKSt9nothrow_t): Same.
1334         * alloc.cc (struct gtm_alloc_action): Remove size.
1335         (get_allocation_size): Remove.
1336         (commit_allocations): Add comment.
1337         (record_allocation): Remove size parameter.
1338         (forget_allocation): Remove set of size.
1340 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1342         * Makefile.am (abi_version): New.
1343         (AM_CXXFLAGS): Pass abi_version.
1344         * Makefile.in: Regenerate.
1345         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1347 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1349         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1350         _ITM_getTMCloneOrIrrevokable.
1351         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1352         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1354 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1356         * configure.ac: Remove Linux futex support.
1357         * configure.tgt (config_path): Same.
1358         * Makefile.am: Same.
1359         * config/linux: Remove entire directory.
1360         * configure: Rebuild.
1361         * Makefile.in: Rebuild.
1362         * testsuite/Makefile.in: Rebuild.
1364 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1366         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1367         switching to serial mode.
1368         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1370 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1372         * configure.tgt: Add emacs -*- tags.
1373         * barrier.tpl: Same.
1375 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1377         * Makefile.am: Rename serial.cc to method-serial.cc.
1378         * Makefile.in: Regenerate with automake 1.11.1.
1379         * testsuite/Makefile.in: Same.
1380         * aclocal.m4: Regenerate with aclocal 1.11.1.
1381         * method-serial.cc: Rename from serial.cc.
1382         * libitm_i.h (struct gtm_transaction): Update comment on
1383         serialirr_mode.
1385 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1387         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1388         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1390 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1392         * configure: Rebuild.
1394 2009-11-12  Richard Henderson  <rth@redhat.com>
1396         * Rewrite everything in C++.
1398 2009-11-03  Richard Henderson  <rth@redhat.com>
1400         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1401         * Makefile.am (libitm_la_SOURCES): Add them.
1402         * configure.ac (ARCH_X86): New conditional.
1403         * Makefile.in, configure: Rebuild.
1404         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1405         Move futex setup into "other system configury" case.
1406         * local.c (rollback_local): Merge into ...
1407         (GTM_rollback_local): ... here.
1408         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1409         (_ITM_LB): Define as an alias to GTM_LB.
1411 2009-11-03  Richard Henderson  <rth@redhat.com>
1413         * method-readonly.c: New file.
1414         * Makefile.am (libitm_la_SOURCES): Add it.
1415         * Makefile.in: Rebuild.
1416         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1417         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1418         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1419         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1420         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1421         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1422         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1423         gtm_get_clock, gtm_inc_clock): New.
1424         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1425         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1426         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1427         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1428         replace uses with new libitm_i.h symbols.
1429         (dispatch_wbetl): Rename from wbetl_dispatch.
1430         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1431         away from dispatch_readonly; abort if the beginTransaction call
1432         asserted that the transaction was readonly.
1434 2009-11-03  Richard Henderson  <rth@redhat.com>
1436         * memset.c: New file.
1437         * Makefile.am (libitm_la_SOURCES): Add it.
1438         * Makefile.in: Rebuild.
1439         * testsuite/libitm.c/memset-1.c: New.
1441 2009-11-03  Richard Henderson  <rth@redhat.com>
1443         * dispatch.c: Remove file.
1444         * useraction.c (struct gtm_user_action): Move from libitm.h.
1445         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1446         (serial_memset, serial_memmove, serial_memcpy): Remove.
1447         (serial_W*, serial_R*): Remove.
1448         (serial_dispatch): Update to match.
1449         * configure.ac: Move Werror down below configure checks.  Don't
1450         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1451         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1452         Use GCC_AC_FUNC_MMAP_BLACKLIST
1453         * libitm.h: Split out all internal items to...
1454         * libitm_i.h: ... here.  New file.
1455         * copymask.c: New file.
1456         * local.c (struct gtm_local_undo): Move from libitm.h.
1457         (GTM_alloc_local): Rename from alloc_local; export.
1458         * memcpy.c: New file.
1459         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1460         * config/posix/page.c: New file.
1461         * config/posix/target_tls.h: Remove file.
1462         * barrier.c: New file.
1463         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1464         copymask.c, page.c.
1465         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1466         * method-wbetl.c: Rewrite for new cacheline methods.
1467         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1469         * config/alpha/sjlj.S: Fix typo.
1470         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1471         * config/alpha/copymask.c: New file.
1472         * config/alpha/target.h (CACHELINE_SIZE): New.
1473         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1475         * config/x86/target_i.h: Copy functions from x86/target.h.
1476         * config/x86/copymask.c: New file.
1477         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1478         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1479         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1480         * config/x86/target_tls.h: Move contents to target_i.h.
1482         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1483         * testsuite/libitm.c/memcpy-1.c: New.
1485 2009-10-22  Richard Henderson  <rth@redhat.com>
1487         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1488         (AM_CCASFLAGS): New.
1489         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1490         saving/restoring _AC_ARG_VAR_PRECIOUS.
1491         * Makefile.in, aclocal.m4, config.h.in, configure,
1492         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1494 2009-10-22  Richard Henderson  <rth@redhat.com>
1496         * testsuite/*: Update for new compiler syntax.
1498 2009-10-21  Richard Henderson  <rth@redhat.com>
1500         * libitm.h (_ITM_abortReason): Add outerAbort.
1502 2009-08-03  Richard Henderson  <rth@redhat.com>
1504         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1505         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1506         * method-wbetl.c (struct w_entry): Remove mask.
1507         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1508         adjust all callers.
1510 2009-07-22  Richard Henderson  <rth@redhat.com>
1512         * eh_cpp.c: New file.
1513         * Makefile.am (libitm_la_SOURCES): Add it.
1514         * Makefile.in: Rebuild.
1515         * beginend.c (GTM_rollback_transaction): Undo exception state.
1516         (GTM_trycommit_transaction): Mark inline.
1517         (GTM_trycommit_and_finalize_transaction): Split out from ...
1518         (_ITM_commitTransaction): ... here.
1519         (_ITM_commitTransactionEH): New function.
1520         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1521         cxa_unthrown, eh_in_flight; reorder.
1523         * testsuite/libitm.c++/c++.exp: New.
1524         * testsuite/libitm.c++/eh-1.C: New.
1526         * aatree.c (aa_free): Remove REGPARM.
1527         * aatree.h: Remove all REGPARM.
1529 2009-07-18  Richard Henderson  <rth@redhat.com>
1531         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1532         * Makefile.am (libitm_la_SOURCES): Add them.
1533         * Makefile.in: Rebuild.
1534         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1535         (GTM_trycommit_transaction): Likewise.
1536         * libitm.h: Include aatree.h
1537         (struct gtm_alloc_action): New.
1538         (struct gtm_transaction): Add alloc_actions.
1539         (GTM_record_allocation, GTM_forget_allocation): Declare.
1540         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1541         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1542         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1543         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1544         _ZGTtdaPvRKSt9nothrow_t): Export.
1546 2009-07-18  Richard Henderson  <rth@redhat.com>
1548         * target_tls.h: Move ...
1549         * config/posix/target_tls.h: ... here.
1551 2009-07-07  Richard Henderson  <rth@redhat.com>
1553         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1555 2009-07-07  Richard Henderson  <rth@redhat.com>
1557         * Update to GPL3.
1559 2009-07-07  Richard Henderson  <rth@redhat.com>
1561         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1562         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1564         * configure.tgt: Don't use -ftls-model for x86 linux.
1565         * libitm.h: Include target.h after standard includes.
1566         (_gtm_thr): Rename from gtm_thr.
1567         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1568         (gtm_disp, set_gtm_disp): New.
1569         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1570         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1571         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1573 2009-07-07  Richard Henderson  <rth@redhat.com>
1575         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1577 2009-07-06  Richard Henderson  <rth@redhat.com>
1579         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1580         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1581         (_ITM_beginTransaction): Take variadic arguments.
1582         (_ITM_registerThrownObject): Declare.
1583         * beginend.c, serial.c: Update.
1584         * libitm.map: Add _ITM_registerThrownObject.
1586 2009-01-28  Richard Henderson  <rth@redhat.com>
1588         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1589         * Makefile.in: Rebuild.
1590         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1591         (GTM_restart_transaction): Fix uninstrumented code check.
1592         * retry.c (GTM_decide_retry_strategy): Add serial check.
1593         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1594         automatically go irrevokable when in serial mode.
1595         * clone.c: New file.
1596         * libitm.h, libitm.map: Update.
1598 2009-01-27  Richard Henderson  <rth@redhat.com>
1600         * Makefile.am (LTCCASCOMPILE): Define.
1601         (libitm_la_SOURCES): Add methid-wbetl.c.
1602         * testsuite/Makefile.am: New
1603         * configure.ac: Add testsuite/Makefile.
1604         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1605         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1606         (_ITM_abortTransaction): Finalize implementation method; pass
1607         transaction properties to longjmp.
1608         (GTM_restart_transaction): Split out from ...
1609         (_ITM_commitTransaction): ... here.
1610         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1611         Move to config/x86/target.h.
1612         * config/linux/alpha/futex_bits.h: New.
1613         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1614         * config/x86/target.h: Disable target types for 32-bit.
1615         * config/alpha/sjlj.S, config/alpha/target.h: New.
1616         * libitm.h (struct gtm_dispatch): Add init, fini.
1617         (enum restart_reason): New.
1618         (struct gtm_transaction): Add method and restarts.
1619         * retry.c (GTM_decide_retry_strategy): Implement.
1620         * serial.c (serial_init, serial_fini): New.
1621         (GTM_serialmode): Finialize outgoing method.
1622         * method-wbetl.c: New.
1624 2008-12-09  Richard Henderson  <rth@redhat.com>
1626         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1627         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1628         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1629         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1630         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1631         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1632         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1633         * serial.c (serial_R##T, serial_W##T): Likewise.
1635 2008-11-21  Richard Henderson  <rth@redhat.com>
1637         * Initial commit.