2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libitm / ChangeLog
blobf3c8d1277913439b2cd2e3f2d1806f77bd997d48
1 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
3         PR libitm/53113
4         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
5         (x86_avx.lo): Append -mavx to CXXFLAGS.
6         * Makefile.in: Regenerate.
8 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10         Update copyright years
12 2014-01-02  Tobias Burnus  <burnus@net-b.de>
14         * libitm.texi: Bump @copying's copyright year.
16 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
19         (FUNC): Define ELFv2 variant.
20         (END): Likewise.
21         (HIDDEN): Likewise.
22         (CALL): Likewise.
23         (BASE): Likewise.
24         (LR_SAVE): Likewise.
26 2013-09-20  Alan Modra  <amodra@gmail.com>
28         * configure: Regenerate.
30 2013-08-30  Torvald Riegel  <triegel@redhat.com>
32         * config/posix/rwlock.cc: Fix initialization order.
34 2013-08-30  Torvald Riegel  <triegel@redhat.com>
36         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
37         (htm_fastpath): Assign an asm name.
38         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
39         HTM fast paths.
40         (_ITM_actions): Likewise.
41         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
42         x86_64.
43         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
44         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
45         field to the start of the structure.
46         * config/linux/rwlock.h (gtm_rwlock): Update comments.
47         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
48         handling for custom HTM fast paths.
50 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51         Revert:
52         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54         * configure.tgt: Add -msoft-float to XCFLAGS.
56 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58         * configure.tgt: Add -msoft-float to XCFLAGS.
60 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
63         (htm_transaction_active): Enable zEC12 instructions in the
64         assembler.
65         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
67 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69         * acinclude.m4: Add htm asm check for s390.
70         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
71         * configure: Regenerate.
72         * config/s390/target.h: Remove __HTM__ check.
73         (htm_available): Call getauxval to get hwcaps and check whether
74         HTM is available or not.
76 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
78         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
79         * configure.ac: Use it.
80         (AC_CHECK_HEADERS): Check for sys/auxv.h.
81         (AC_CHECK_FUNCS): Check for getauxval.
82         * config.h.in, configure: Rebuild.
83         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
84         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
85         (USE_HTM_FASTPATH): Define.
86         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
87         _HTM_RETRIES) New macros.
88         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
89         htm_begin_success, htm_commit, htm_transaction_active): New functions.
91 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
93         * config/s390/target.h: Include htmintrin.h.
94         (_HTM_ITM_RETRIES): New macro definition.
95         (htm_available, htm_init, htm_begin, htm_begin_success)
96         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
98 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
99             Cesar Philippidis  <cesar@codesourcery.com>
101         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
102         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
103         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
104         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
106 2013-06-20  Torvald Riegel  <triegel@redhat.com>
108         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
109         (_ITM_getTransactionId): Same.
110         * config/x86/target.h (htm_transaction_active): New.
112 2013-06-20  Torvald Riegel  <triegel@redhat.com>
114         PR libitm/57643
115         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
116         the HTM fastpath.
118 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
120         PR bootstrap/56714
121         * local_atomic (__always_inline): Always define our version.
122         (__calculate_memory_order): Mark inline.
123         (atomic_thread_fence): Ditto.
124         (atomic_signal_fence): Ditto.
125         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
126         (atomic_bool::atomic_flag_clear_explicit): Ditto.
127         (atomic_bool::atomic_flag_test_and_set): Ditto.
128         (atomic_bool::atomic_flag_clear): Ditto.
130 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
132         * config/s390/sjlj.S: New file.
133         * config/s390/target.h: New file.
134         * configure.tgt: Set options for S/390.
136 2013-03-23  Andi Kleen  <ak@linux.intel.com>
138         * local_atomic (__always_inline): Add.
139         (__calculate_memory_order, atomic_thread_fence,
140          atomic_signal_fence, test_and_set, clear, store, load,
141          exchange, compare_exchange_weak, compare_exchange_strong,
142          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
143         Add __always_inline to force inlining.
145 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
146             Jack Howarth  <howarth@bromo.med.uc.edu>
147             Patrick Marlier  <patrick.marlier@gmail.com>
149         PR libitm/55693
150         * alloc_cpp.cc: Enable function declarations on darwin.
151         * eh_cpp.cc: Likewise.
153 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
155         Update copyright years.
157 2012-11-09  Torvald Riegel  <triegel@redhat.com>
159         * beginend.cc (htm_fastpath): New.
160         (gtm_thread::begin_transaction, _ITM_commitTransaction,
161         _ITM_commitTransactionEH): Add HTM fastpath handling.
162         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
163         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
164         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
165         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
166         * configure.tgt: Add -mrtm to XCFLAGS.
167         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
168         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
169         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
170         * retry.cc (parse_default_method): Add HTM method parsing.
171         (gtm_thread::number_of_threads_changed): Use HTM by default if
172         available.
174 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
176         * configure: Regenerate.
178 2012-10-31  Richard Henderson  <rth@redhat.com>
180         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
181         * configure.ac: Use it.
182         * config.h.in, configure: Rebuild.
183         * testsuite/Makefile.in: Rebuild.
185 2012-10-24  Torvald Riegel  <triegel@redhat.com>
187         * libitm.texi: Clarify ABI requirements for data-logging functions.
189 2012-10-24  Torvald Riegel  <triegel@redhat.com>
191         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
192         it requires serial mode instead of assuming that for certain
193         dispatchs.
194         * dispatch.h (abi_dispatch::requires_serial): New.
195         (abi_dispatch::abi_dispatch): Adapt.
196         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
197         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
198         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
199         serial_dispatch::serial_dispatch,
200         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
202 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
204         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
205         and ia32 declarations some more.
206         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
208 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
210         PR other/43620
211         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
212         * configure: Regenerate.
213         * Makefile.in: Regenerate.
215 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
217         * configure: Regenerated.
219 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
221         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
223 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
225         * eh_cpp.cc: Fix __cxa_end_catch declaration.
227 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
229         * configure: Regenerated.
231 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
233         PR libitm/52854
234         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
235         for x86-64.
237 2012-04-03  Tristan Gingold  <gingold@adacore.com>
239         * configure: Regenerate.
241 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
243         PR bootstrap/52812
244         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
246 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
248         * testsuite/lib/libitm.exp: load fortran-modules.exp
250 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
252         * configure.tgt (*-*-irix6*): Remove.
254 2012-03-13  Torvald Riegel  <triegel@redhat.com>
256         PR libitm/52526
257         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
258         wake-up.
260 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
262         * configure.tgt (*-*-osf*): Remove.
263         * configure: Regenerate.
265 2012-03-05  Torvald Riegel  <triegel@redhat.com>
267         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
268         memtransfer/memset if size isn't larger than zero.
270 2012-03-02  Torvald Riegel  <triegel@redhat.com>
272         * libitm.texi: Link to specification and add a usage example.
274 2012-02-24  Torvald Riegel  <triegel@redhat.com>
276         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
277         default dispatch for more than 1 thread to ml_wt.
279 2012-02-20  Torvald Riegel  <triegel@redhat.com>
281         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
283 2012-02-20  Torvald Riegel  <triegel@redhat.com>
285         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
287 2012-02-20  Torvald Riegel  <triegel@redhat.com>
289         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
290         serial mode corner cases made obsolete by prior gtm_rwlock changes.
291         (gl_wt_dispatch.rollback): Same.
293 2012-02-20  Torvald Riegel  <triegel@redhat.com>
295         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
297 2012-02-20  Torvald Riegel  <triegel@redhat.com>
299         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
300         for RfW src.  Optimize number of calls to gtm_thr.
302 2012-02-20  Torvald Riegel  <triegel@redhat.com>
304         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
305         acquisition to ...
306         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
307         (default_dispatch): Make atomic.
308         (GTM::gtm_thread::set_default_dispatch): Access atomically.
309         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
310         use decide_begin_dispatch() if default_dispatch might have changed.
311         (GTM::gtm_thread::number_of_threads_changed): Initialize
312         default_dispatch here.
314 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
315             Patrick Marlier  <patrick.marlier@gmail.com>
317         PR libitm/52220
318         * alloc_cpp.cc: No dummy definitions for darwin.
319         * eh_cpp.cc: Likewise.
321 2012-02-14  Richard Henderson  <rth@redhat.com>
323         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
325 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
327         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
329 2012-02-14  Torvald Riegel  <triegel@redhat.com>
331         * libitm_i.h (GTM::gtm_rwlog_entry): New.
332         (GTM::gtm_thread): Add read and write logs.
333         (GTM::dispatch_ml_wt): Declare.
334         * retry.cc (parse_default_method): Support ml_wt.
335         * method-ml.cc: New file.
336         * Makefile.am: Add method-ml.cc.
337         * Makefile.in: Regenerate.
339 2012-02-14  Torvald Riegel  <triegel@redhat.com>
341         * dispatch.h (GTM::abi_dispatch::supports): New.
342         (GTM::method_group::reinit): New.
343         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
344         (GTM::gtm_thread::number_of_threads_changed): Check that the method
345         supports the current situation.
347 2012-02-14  Torvald Riegel  <triegel@redhat.com>
349         * util.cc (GTM::xcalloc): New.
350         * common.h (GTM::xcalloc): Declare.
352 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
354         * config/sparc/target.h (cpu_relax): Read from CC register.
355         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
357 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
359         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
361 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
363         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
364         * config/sparc/cacheline.h: New file.
365         * config/sparc/target.h: Likewise.
366         * config/sparc/sjlj.S: Likewise.
367         * config/linux/sparc/futex_bits.h: Likewise.
369 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
371         * configure.ac (link_itm): Fix comment.
372         * configure: Regenerate.
373         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
375 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
377         PR libitm/51822
378         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
379         Correct libgomp references.
381 2012-01-24  Torvald Riegel  <triegel@redhat.com>
383         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
384         wake-up.
386 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
388         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
389         end of structure.
390         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
391         offset values.  Do not copy return address.  Decrement stack
392         by 56 bytes only.
393         (GTM_longjump) [__x86_64__]: Update offset values.
395 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
397         PR libitm/51830
398         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
399         the first function argument to %eax.
401 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
403         * libitm.h (_ITM_getThreadnum): Remove.
404         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
406 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
408         * clearcap.map: New file.
409         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
410         * configure.ac: Call it.
411         Clear HWCAP_LDFLAGS if defaulting to -mavx.
412         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
413         * configure: Regenerate.
414         * Makefile.in: Regenerate.
415         * testsuite/Makefile.in: Regenerate.
417 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
419         PR libitm/51173
420         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
421         include, exclude options.
423 2012-01-14  Torvald Riegel  <triegel@redhat.com>
425         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
426         rolling back.
427         * containers.h (GTM::vector::set_size): New.
429 2012-01-14  Torvald Riegel  <triegel@redhat.com>
431         PR libitm/51855
432         * config/generic/tls.h (GTM::mask_stack_top): New.
433         (GTM::mask_stack_bottom): Declare.
434         * config/generic/tls.c (GTM::mask_stack_bottom): New.
435         * local.cc (gtm_undolog::rollback): Filter out any updates that
436         overlap the libitm stack.  Add current transaction as parameter.
437         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
438         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
439         * testsuite/libitm.c/stackundo.c: New test.
441 2012-01-10  Richard Henderson  <rth@redhat.com>
443         * libitm_i.h (_Unwind_DeleteException): Declare weak.
444         * eh_cpp.cc (_Unwind_DeleteException): Define for
445         !HAVE_ELF_STYLE_WEAKREF.
447 2012-01-08  Torvald Riegel  <triegel@redhat.com>
449         * local.cc (GTM_LB): Use GTM::gtm_undolog.
450         (GTM::gtm_thread::drop_references_undolog): Remove.
451         (GTM::gtm_thread::commit_undolog,
452         GTM::gtm_thread::rollback_undolog): Move to ...
453         * libitm_i.h (GTM::gtm_undolog): ...here. New.
454         (GTM::gtm_undolog_entry): Remove.
455         (GTM::gtm_thread): Adapt.
456         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
457         (GTM::gtm_thread::trycommit): Adapt.
458         * method-serial.cc (serial_dispatch::log): Adapt.
459         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
460         (gl_wt_dispatch::store): Fix likely/unlikely.
461         * containers.h (GTM::vector::resize): Add additional_capacity
462         parameter and handle it.
463         (GTM::vector::resize_noinline): New/adapt.
464         (GTM::vector::push): New.
466 2012-01-06  Richard Henderson  <rth@redhat.com>
468         * configure.tgt: Support powerpc-linux and powerpc-darwin.
469         * config/linux/powerpc/futex_bits.h: New file.
470         * config/powerpc/cacheline.h: New file.
471         * config/powerpc/sjlj.S: New file.
472         * config/powerpc/target.h: New file.
473         * config/generic/asmcfi.h (cfi_offset): New.
474         (cfi_restore, cfi_undefined): New.
476 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
478         PR other/51171
479         * testsuite/libitm.c/reentrant.c: Remove xfail.
480         (thread): Pass x to pure().
481         From Patrik Marlier <patrick.marlier@gmail.com>.
483 2011-12-24  Torvald Riegel  <triegel@redhat.com>
485         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
486         privatization safety if already in serial mode.
488 2011-12-24  Torvald Riegel  <triegel@redhat.com>
490         * beginend.cc (GTM::gtm_thread::restart): Add and handle
491         finish_serial_upgrade parameter.
492         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
493         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
494         Don't unset reader flag.
495         (GTM::gtm_rwlock::write_upgrade_finish): New.
496         * config/posix/rwlock.cc: Same.
497         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
498         Declare.
499         * config/posix/rwlock.h: Same.
500         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
501         flag after commit or after rollback when restarting.
503 2011-12-24  Torvald Riegel  <triegel@redhat.com>
505         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
506         (GTM::gtm_thread::try_commit): Changed memory order.
507         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
508         as parameter.
509         * config/linux/x86/futex_bits.h (sys_futex0): Same.
510         * config/linux/sh/futex_bits.h (sys_futex0): Same.
511         * config/linux/futex_bits.h (sys_futex0): Same.
512         * config/linux/futex.cc (futex_wait, futex_wake): Same.
513         * config/linux/futex.h (futex_wait, futex_wake): Same.
514         * config/linux/rwlock.h (gtm_rwlock::writers,
515         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
516         ints.
517         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
518         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
519         gtm_rwlock::write_unlock): Fix memory orders and fences.
520         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
521         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
522         gtm_rwlock::write_unlock): Same.
523         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
524         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
525         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
526         Add comments.
527         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
528         gl_wt_dispatch::load, gl_wt_dispatch::store,
529         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
530         orders and fences.  Add comments.
532 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
534         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
535         * Makefile.in: Regenerated.
537 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
539         * configure.tgt: Add sh* case.
540         * config/sh/target.h: New file.
541         * config/sh/sjlj.S: New file.
542         * config/linux/sh/futex_bits.h: New file.
544 2011-12-14  Richard Henderson  <rth@redhat.com>
546         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
547         * config/arm/sjlj.S, config/arm/target.h: New files.
548         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
549         (cfi_rel_offset): New.
550         * config/linux/futex_bits.h: New file.
551         * config/linux/futex.cc: Include futex_bits.h here...
552         * config/linux/futex.h: ... not here.
553         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
554         * configure.ac (ARCH_AM): New conditional.
555         * Makefile.in, configure: Rebuild.
556         * configure.tgt: Handle ARM.
558 2011-12-13  Richard Henderson  <rth@redhat.com>
560         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
561         signed/unsigned comparison werror.
563         * local_atomic: New file.
564         * libitm_i.h: Include it.
565         (gtm_thread::shared_state): Use atomic template.
566         * beginend.cc (GTM::gtm_clock): Use atomic template.
567         (global_tid): Use atomic template if 64-bit atomics available.
568         (gtm_thread::gtm_thread): Update shared_state access.
569         (gtm_thread::trycommit): Likewise.
570         (choose_code_path): Update global_tid access.
571         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
572         * stmlock.h (GTM::gtm_clock): Use atomic template.
573         (gtm_get_clock, gtm_inc_clock): Update accesses.
574         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
575         redundant __sync_synchronize after atomic shared_state access.
576         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
577         (gtm_rwlock::write_lock_generic): Likewise.
578         (gtm_rwlock::read_unlock): Likewise.
579         * config/alpha/target.h (atomic_read_barrier): Remove.
580         (atomic_write_barrier): Remove.
581         * config/x86/target.h (atomic_read_barrier): Remove.
582         (atomic_write_barrier): Remove.
584 2011-11-30  Richard Henderson  <rth@redhat.com>
586         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
587         * beginend.c (_ITM_abortTransaction): Update to match.
588         (GTM::gtm_thread::restart): Likewise.
589         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
590         * config/x86/sjlj.S (GTM_longjmp): Likewise.
592 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
594         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
595         * Makefile.in: Regenerate.
597 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
599         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
600         * alloc_cpp.cc: Generate dummy functions if we don't
601         HAVE_ELF_STYLE_WEAKREF.
602         * eh_cpp.cc: Likewise.
603         * configure: Regenerate.
604         * aclocal.m4:  Likewise.
605         * config.h.in: Likewise.
606         * Makefile.in: Likewise.
607         * testsuite/Makefile.in: Likewise.
609 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
611         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
612         __USER_LABEL_PREFIX__ for targets that use it.
613         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
614         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
615         in portability to non-elf targets.
616         (GTM_longjmp): Likewise.
617         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
618         where required.
620 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
622         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
623         * testsuite/libitm.c/memset-1.c: Likewise.
625 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
627         * configure: Regenerate.
629 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
631         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
632         (LIBITM_ENABLE_SYMVERS): Handle sun style.
633         * Makefile.am: Handle sun style versioning.
634         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
635         * configure: Regenerate.
636         * Makefile.in: Regenerate.
638 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
640         * config/generic/asmcfi.h: Fix comment.
641         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
642         sequence without .hidden support, error for non-ELF targets.
643         (GTM_longjmp) [__ELF__]: Only use .hidden if
644         HAVE_ATTRIBUTE_VISIBILITY.
646 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
648         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
649         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
650         Dummy functions.
651         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
652         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
654 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
656         PR bootstrap/51098
657         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
658         * configure: Regenerate.
660 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
662         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
664 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
666         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
667         .hidden.
668         (.note.GNU-stack): Only use if __linux__.
669         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
670         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
671         * testsuite/libitm.c/reentrant.c: Likewise.
672         * testsuite/libitm.c/simple-2.c: Likewise.
673         * testsuite/libitm.c/txrelease.c: Likewise.
674         * testsuite/libitm.c++/static_ctor.C: Likewise.
676 2011-11-10  Richard Henderson  <rth@redhat.com>
678         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
679         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
680         * configure.ac (ARCH_X86_AVX): New conditional.
681         * Makefile.in, configure: Rebuild.
683 2011-11-09  Richard Henderson  <rth@redhat.com>
685         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
686         * configure.ac: Use it.
687         * config.h.in, configure: Rebuild.
688         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
690 2011-11-09  Richard Henderson  <rth@redhat.com>
692         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
693         * config/alpha/unaligned.h: Remove file.
694         * config/generic/unaligned.h: Remove file.
695         * config/x86/unaligned.h: Remove file.
696         * config/generic/cachepage.h: Remove file.
697         * config/posix/cachepage.cc: Remove file.
698         * config/generic/cacheline.cc: Remove file.
699         * config/x86/cacheline.cc: Remove file.
700         * config/generic/cacheline.h (gtm_cacheline): Remove the
701         store_mask, copy_mask, copy_mask_wb methods.
702         * config/x86/cacheline.h: Likewise.
703         * config/alpha/cacheline.h: Fall back to generic after setting size.
704         * config/generic/tls.cc (gtm_mask_stack): Remove.
705         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
706         (GTM_vpalignr_table): Remove.
707         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
708         (GTM_pshift_table): Remove.
709         * config/libitm_i.h: Don't include cachepage.h.
710         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
711         * Makefile.in, testsuite/Makefile.in: Rebuild.
713 2011-11-09  Richard Henderson  <rth@redhat.com>
715         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
716         to emit branch prediction hint.
718         * config/x86/sjlj.S: Protect elf directives with __ELF__.
719         Protect .note.GNU-stack with __linux__.
721         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
722         * configure, aclocal.m4, config.h.in: Rebuild.
723         * config/generic/asmcfi.h: New file.
724         * config/x86/sjlj.S: Use it.
726 2011-11-08  Richard Henderson  <rth@redhat.com>
728         * local.cc (_ITM_LB): Use a normal call, not a function alias.
730 2011-11-08  Richard Henderson  <rth@redhat.com>
732         * configure.tgt: Test correct directory for supported cpus.
734         * configure.ac: Exit if unsupported.
735         * configure: Rebuild.
736         * configure.tgt: Delete boilerplate from libgomp for unsupported
737         targets.  Set UNSUPPORTED for unsupported targets.
739 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
741         * configure.tgt: Handle i386 like i[456]86.
742         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
743         take address.
744         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
745         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
747 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
749         * method-wbetl.cc: Update copyright notice.
750         * aatree.cc: Same.
751         * util.cc: Same.
752         * libitm.h: Same.
753         * memset.cc: Same.
754         * eh_cpp.cc: Same.
755         * barrier.tpl: Same.
756         * useraction.cc: Same.
757         * stmlock.h: Same.
758         * memcpy.cc: Same.
759         * common.h: Same.
760         * config/generic/tls.cc: Same.
761         * config/generic/cacheline.h: Same.
762         * config/generic/cachepage.h: Same.
763         * config/generic/cacheline.cc: Same.
764         * config/generic/unaligned.h: Same.
765         * config/x86/cacheline.h: Same.
766         * config/x86/cacheline.cc: Same.
767         * config/x86/unaligned.h: Same.
768         * config/alpha/cacheline.h: Same.
769         * config/alpha/unaligned.h: Same.
770         * config/alpha/sjlj.S: Same.
771         * config/posix/cachepage.cc: Same.
772         * config/linux/futex.h: Same.
773         * config/linux/alpha/futex_bits.h: Same.
775 2011-11-04  Torvald Riegel  <triegel@redhat.com>
777         * libitm.texi: No cover text and invariant sections.
779 2011-11-03  Richard Henderson  <rth@redhat.com>
781         * local_type_traits: New file.
782         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
784 2011-11-03  Richard Henderson  <rth@redhat.com>
786         * configure.ac: Don't test for gfortran.
787         * configure: Rebuild.
789         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
790         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
792 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
794         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
795         * testsuite/libitm.c/memset-1.c: Same.
796         * testsuite/libitm.c/c.exp: Same.
797         * testsuite/lib/libitm-dg.exp: Same.
798         * testsuite/lib/libitm.exp: Same.
799         * testsuite/libitm.c++/c++.exp: Same.
801 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
803         * testsuite/config/default.exp: Update copyright date.
804         * configure.ac: Add copyright info.
805         * configure.tgt: Same.
807 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
809         * testsuite/libitm.c/reentrant.c: XFAIL.
810         * testsuite/libitm.c++/static_ctor.C: XFAIL.
812 2011-10-29  Torvald Riegel  <triegel@redhat.com>
814         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
815         handle aborts.
816         (_ITM_abortTransaction): Handle aborts of outer transactions.
817         * libitm_i.h: Same.
818         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
819         * libitm.texi: Document aborts of outer transactions.
820         * testsuite/libitm.c/cancel.c: New file.
822 2011-10-19  Torvald Riegel  <triegel@redhat.com>
824         * testsuite/*: Change __transaction to __transaction_atomic or
825         __transaction_relaxed.
827 2011-10-19  Torvald Riegel  <triegel@redhat.com>
829         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
830         (gtm_thr): Same.
832 2011-10-19  Torvald Riegel  <triegel@redhat.com>
834         * libitm_i.h: Add gl_wt dispatch.
835         * retry.cc (parse_default_method): Same.
836         * method-gl.cc: New file.
837         * Makefile.am: Use method-gl.cc.
838         * Makefile.in: Rebuild.
840 2011-10-19  Torvald Riegel  <triegel@redhat.com>
842         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
843         safety if requested by a TM method.
844         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
845         privatization safety.
846         * method-serial.cc: Same.
848 2011-10-19  Torvald Riegel  <triegel@redhat.com>
850         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
851         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
852         undolog-related member functions from *_local to *_undolog.
853         * local.cc (gtm_thread::commit_undolog): Same.
854         * beginend.cc (GTM::gtm_thread::trycommit): Same.
855         (GTM::gtm_thread::rollback): Roll back undolog before
856         dispatch-specific rollback.
858 2011-10-19  Torvald Riegel  <triegel@redhat.com>
860         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
861         re-initialization of the current method group.
862         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
864 2011-10-19  Torvald Riegel  <triegel@redhat.com>
866         * alloc.cc (commit_allocations_2): Do not free transaction-local
867         memory when committing a nested transaction.
869 2011-10-19  Torvald Riegel  <triegel@redhat.com>
871         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
872         serial-irrevocable dispatch, not serial.
874 2011-10-19  Torvald Riegel  <triegel@redhat.com>
876         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
877         declarations.
878         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
879         * method-serial.cc: Implement begin_or_restart().
880         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
881         dispatch-specific begin_or_restart().
882         (GTM::gtm_thread::restart): Same.
884 2011-08-23  Torvald Riegel  <triegel@redhat.com>
886         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
887         restarting without switching to serial mode.
888         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
889         transaction state. Choose closed-nesting alternative if available.
890         (GTM::gtm_thread::set_default_dispatch): New.
891         (parse_default_method): New.
892         (GTM::gtm_thread::number_of_threads_changed): New.
893         * method-serial.cc (GTM::serial_mg): New method group class.
894         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
895         fini.
896         (GTM::serial_dispatch): Same.
897         (GTM::serialirr_onwrite_dispatch): Same.
898         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
899         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
900         registered threads.
901         (GTM::gtm_thread::gtm_thread): Same.
902         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
903         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
904         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
905         choose dispatch but set state according to dispatch here.
906         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
907         (GTM::method_group): New class.
908         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
909         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
910         * libitm.texi: Document TM methods, method groups, method life cycle.
911         Rename method sets to method groups.
913 2011-08-23  Torvald Riegel  <triegel@redhat.com>
915         * config/x86/tls.h: Moved to ...
916         * config/linux/x86/tls.h: ... here.
918 2011-08-23  Torvald Riegel  <triegel@redhat.com>
920         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
921         Add X32 support.
922         * config/x86/sjlj.S: Same.
924 2011-08-19  Torvald Riegel  <triegel@redhat.com>
926         * config/linux/rwlock.h: New file.
927         * config/linux/rwlock.c: New file.
928         * configure.ac: Reenable futex support (undo SVN rev 157758).
929         * Makefile.am: Same.
930         * configure.tgt: Same.
931         * config/linux/alpha/futex_bits.h: Same.
932         * config/linux/futex.h: Same. Return number of woken processes.
933         * config/linux/futex.cc: Same.
934         (futex_wait): Remove spinning.
935         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
936         Use __x86_64__ instead of __LP64__.
937         * aclocal.m4: Include generic futex checks.
938         * configure: Rebuild.
939         * Makefile.in: Rebuild.
940         * testsuite/Makefile.in: Rebuild.
941         * beginend.cc: Include pthread.h.
942         * config/posix/cachepage.cc: Same.
944 2011-08-12  Torvald Riegel  <triegel@redhat.com>
946         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
947         (abi_disp, set_abi_disp): Move to tx's TLS slot.
948         (set_gtm_thr): New.
949         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
950         (set_gtm_thr): New.
951         (GTM::gtm_thread::thread_num): Removed.
952         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
953         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
954         tx-to-thread renaming.
955         * beginend.cc: Adapted to tx-to-thread renaming.
956         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
957         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
958         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
959         gtm_transaction to gtm_thread.
960         (_ITM_getThreadnum): Removed. Not supported anymore.
961         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
962         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
963         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
964         gtm_tx-to-gtm_thr renaming if necessary.
965         * eh_cpp.cc: Same.
966         * local.cc: Same.
967         * retry.cc: Same.
968         * clone.cc: Same.
969         * alloc.cc: Same.
970         * alloc_c.cc: Same.
971         * alloc_cpp.cc: Same.
972         * method-serial.cc: Same.
973         * config/generic/tls.cc: Same.
974         * config/posix/rwlock.h (gtm_rwlock): Same.
975         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
977 2011-08-12  Torvald Riegel  <triegel@redhat.com>
979         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
980         implementation.
981         (gtm_rwlock::read_unlock): Same.
982         (gtm_rwlock::write_lock_generic): New. Generalized from ...
983         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
984         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
985         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
986         w_upgrade. Replaced by per-transaction flags (in shared_state).
987         Added c_confirmed_writers.
988         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
989         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
990         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
991         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
992         * beginend.cc (GTM::gtm_transaction::begin_transaction,
993         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
994         * libitm.texi: Document locking conventions and implementations in
995         libitm.
997 2011-08-12  Torvald Riegel  <triegel@redhat.com>
999         * libitm_i.h (next_tx): Add list of all threads' transaction.
1000         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1001         transaction with list of transactions and ...
1002         (thread_exit_handler): ... deregister here.
1003         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1004         * config/x86/target.h: Same.
1006 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1008         * testsuite/libitm.c++/static_ctor.C: New file.
1010 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1012         * testsuite/libitm.c/reentrant.c: New file.
1014 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1016         * config/generic/tls.h: Remove the free list for transactions and ...
1017         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1018         (GTM::gtm_transaction::operator delete): ... and release here.
1019         (thread_exit_handler): New. Delete tx when thread terminates.
1020         (thread_exit_init): New.
1021         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1022         * testsuite/libitm.c/txrelease.c: New file.
1024 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1026         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1027         * testsuite/libitm.c/notx.c: New file.
1029 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1031         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1032         * libitm_i.h (local_tid): ... to here.
1033         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1034         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1036 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1038         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1039         serialirr_onwrite_dispatch as new default for now.
1040         * method-serial.cc (serialirr_onwrite_dispatch): New.
1041         (GTM::dispatch_serialirr_onwrite): New.
1042         * libitm_i.h: Same.
1044 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1046         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1047         * query.cc (_ITM_getTransactionId): There is no active transaction if
1048         the current nesting level is zero.
1050 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1052         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1053         rollback.
1055 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1057         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1058         transaction properties from the caller instead of from the
1059         transaction object.
1060         * libitm_i.h: Same.
1061         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1063 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1065         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1066         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1067         * dispatch.h: Same.
1068         * method-serial.cc: Same.
1069         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1070         flat nesting as default, and closed nesting on demand.
1071         (GTM::gtm_transaction::rollback): Same.
1072         (_ITM_abortTransaction): Same.
1073         (GTM::gtm_transaction::restart): Same.
1074         (GTM::gtm_transaction::trycommit): Same.
1075         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1076         (choose_code_path): New.
1077         (GTM::gtm_transaction_cp::save): New.
1078         (GTM::gtm_transaction_cp::commit): New.
1079         * query.cc (_ITM_inTransaction): Support flat nesting.
1080         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1081         (GTM::gtm_transaction): Support flat and closed nesting.
1082         * alloc.cc (commit_allocations_2): New.
1083         (commit_cb_data): New helper struct.
1084         (GTM::gtm_transaction::commit_allocations): Handle nested
1085         commits/rollbacks.
1086         * libitm.texi: Update user action section, add description of nesting.
1088 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1090         * libitm_i.h: Add closed nesting as restart reason.
1091         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1093 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1095         * useraction.cc: Use vector instead of list to store actions.
1096         Also support partial rollbacks for closed nesting.
1097         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1098         * beginend.cc: Same.
1100 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1102         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1103         closed_nesting flags, as well as a closed nesting alternative.
1104         * method-serial.cc: Same.
1105         (serial_dispatch): Renamed to serialirr_dispatch.
1106         (GTM::dispatch_serialirr): Same.
1107         (serial_dispatch_ul): Renamed to serial_dispatch.
1108         (GTM::dispatch_serial): Same.
1110 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1112         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1114 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1116         * aatree.h (aa_tree::remove): New.
1117         (aa_tree::operator new): Add placement new.
1119 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1121         * containers.h: New file.
1122         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1123         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1124         * common.h: ... to here.
1125         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1126         * local.cc: Same.
1128 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1130         * libitm_i.h (STATE_ABORTING): Remove.
1131         * beginend.cc (_ITM_abortTransaction): Same.
1132         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1133         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1134         (_ITM_rollbackTransaction): Remove.
1135         * beginend.cc: Same.
1136         * libitm.map: Same.
1137         * libitm.texi: Document these ABI changes.
1139 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1141         * libitm.texi: New file.
1142         * Makefile.am: Add libitm.texi.
1143         * Makefile.in: Rebuild.
1145 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1147         * libitm_i.h: Move parts to common.h and dispatch.h.
1148         * common.h: New file.
1149         * dispatch.h: New file, new dispatch class.
1150         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1151         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1152         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1153         decision to retry.cc.
1154         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1155         only.
1156         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1157         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1158         logging.
1159         * barrier.cc: Use new barriers definitions.
1160         (abi_dispatch::memmove_overlap_check): New.
1161         * config/x86/x86_sse.cc: Same.
1162         * config/x86/x86_avx.cc: Same.
1163         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1164         memcpy.cc.
1165         * Makefile.in: Rebuild.
1166         * method-readonly.cc: Remove.
1167         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1168         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1170 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1172         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1173         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1174         * testsuite/libitm.c/dropref-2.c: Same.
1175         * testsuite/libitm.c/dropref.c: Same.
1177 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1179         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1180         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1181         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1182         * alloc_c.cc: Same.
1183         * barrier.tpl: Same.
1184         * beginend.c: Same.
1185         * config/generic/tls.h: Same.
1186         * config/x86/tls.h: Same.
1187         * libitm_i.h: Same.
1188         * memcpy.cc: Same.
1189         * memset.cc: Same.
1190         * method-readonly.cc: Same.
1191         * method-serial.cc: Same.
1192         * method-wbetl.cc: Same.
1193         * retry.cc: Same.
1195 2011-03-03  Richard Henderson  <rth@redhat.com>
1197         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1198         From Patrik Marlier <patrick.marlier@unine.ch>.
1200 2011-02-03  Richard Henderson  <rth@redhat.com>
1202         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1203         * configure.ac: Use it.
1204         * configure, config.h.in: Rebuild.
1205         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1206         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1207         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1208         * libitm.map: Use wildcards to match size_t mangling.
1210 2010-12-14  Richard Henderson  <rth@redhat.com>
1212         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1213         blocks of TIDs per thread.
1214         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1215         (setup_gtm_thr): Return the thread structure.
1216         * config/x86/tls.h (setup_gtm_thr): Likewise.
1218 2010-12-14  Richard Henderson  <rth@redhat.com>
1220         * clone.cc (table_lock): Remove.
1221         (find_clone): Don't take it.
1222         (ExcludeTransaction): New helper class.
1223         (_ITM_registerTMCloneTable): Use it.
1224         (_ITM_deregisterTMCloneTable): Likewise.
1226 2010-12-14  Richard Henderson  <rth@redhat.com>
1228         * config/x86/tls.h: New file.
1230 2010-07-15  Richard Henderson  <rth@redhat.com>
1232         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1233         * Makefile.in: Rebuild.
1235 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1237         * method-wbetl.cc (trydropreference): Fix source line.
1239 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1241         * libitm.h: Add comment.
1242         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1244 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1246         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1247         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1248         available, use pthread mutexes.
1249         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1250         * config.h.in: Regenerate.
1251         * configure: Regenerate.
1253 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1255         * libitm.h (ITM_PURE): Define.
1256         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1258 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1260         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1261         (validate): Add comment.
1262         (trydropreference): New.
1263         * method-readonly.cc (class readonly_dispatch): Add
1264         trydropreference.
1265         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1266         Call trydropreference().
1267         * libitm.h (_ITM_dropReferences): Remove const attribute.
1268         * method-serial.cc (class serial_dispatch): Add trydropreference.
1269         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1271 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1273         * memcpy.cc (do_memcpy): Comment.
1275 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1277         * barrier.tpl: Add comments throughout.
1279 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1281         * method-wbetl.cc (struct w_entry): Add comments.
1282         (trycommit): Same.
1283         (rollback): Same.
1285 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1287         * alloc_c.cc (_ITM_dropReferences): New.
1288         * libitm.map (_ITM_dropReferences): Add.
1289         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1290         * libitm_i.h (struct gtm_transaction): Declare
1291         drop_references_allocations and drop_references_local.
1292         * local.cc (rollback_local): Ignore memory when applicable.
1293         (drop_references_local): New.
1295 2010-06-23  Richard Henderson  <rth@redhat.com>
1297         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1298         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1299         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1300         * config/alpha/target.h: Likewise.
1301         * config/generic/tls.cc (gtm_mask_stack): Use it.
1303 2010-06-23  Richard Henderson  <rth@redhat.com>
1305         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1306         a mutex instead of trying a lock-free compare-and-swap on the list.
1307         (gtm_cacheline_page::operator delete): Likewise.
1309 2010-06-16  Richard Henderson  <rth@redhat.com>
1311         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1312         that overlap the libitm stack.
1313         * barrier.tpl: Mark incoming stack.
1314         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1315         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1316         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1317         * memcpy.cc, memset.cc: Likewise.
1318         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1319         * config/generic/tls.h (gtm_thread): Add stack_top member.
1320         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1321         * libitm_i.h (gtm_mask_stack): Declare.
1322         * config/generic/tls.cc: New file.
1323         * Makefile.am (libitm_la_SOURCES): Add it.
1324         (AM_CXXFLAGS): Turn off exceptions.
1325         * Makefile.in: Rebuild.
1327 2010-06-16  Richard Henderson  <rth@redhat.com>
1329         * alloc.cc (struct gtm_alloc_action): Move definition ...
1330         * libitm_i.h: ... here.
1331         (class gtm_transaction): Declare new and delete.
1332         * beginend.cc (alloc_tx): Reformulate as operator new.
1333         (free_tx): Reformulate as operator delete.
1334         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1336 2010-06-11  Richard Henderson  <rth@redhat.com>
1338         * clone.cc (clone_entry_compare): Fix typo.
1339         From Patrik Marlier <patrick.marlier@unine.ch>.
1341 2010-05-13  Richard Henderson  <rth@redhat.com>
1343         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1344         in extern "C".
1346 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1348         * libitm_i.h (struct gtm_transaction): Remove
1349         get_allocation_size.
1350         (record_allocation): Remove size parameter.
1351         * libitm.map (_ITM_realloc): Remove.
1352         * alloc_c.cc (_ITM_realloc): Remove.
1353         (_ITM_malloc): Remove size argument to record_allocation.
1354         (_ITM_calloc): Same.
1355         * alloc_cpp.cc (_ZGTtnwm): Same.
1356         (_ZGTtnwmRKSt9nothrow_t): Same.
1357         (_ZGTtnam): Same.
1358         (_ZGTtnamRKSt9nothrow_t): Same.
1359         * alloc.cc (struct gtm_alloc_action): Remove size.
1360         (get_allocation_size): Remove.
1361         (commit_allocations): Add comment.
1362         (record_allocation): Remove size parameter.
1363         (forget_allocation): Remove set of size.
1365 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1367         * Makefile.am (abi_version): New.
1368         (AM_CXXFLAGS): Pass abi_version.
1369         * Makefile.in: Regenerate.
1370         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1372 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1374         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1375         _ITM_getTMCloneOrIrrevokable.
1376         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1377         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1379 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1381         * configure.ac: Remove Linux futex support.
1382         * configure.tgt (config_path): Same.
1383         * Makefile.am: Same.
1384         * config/linux: Remove entire directory.
1385         * configure: Rebuild.
1386         * Makefile.in: Rebuild.
1387         * testsuite/Makefile.in: Rebuild.
1389 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1391         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1392         switching to serial mode.
1393         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1395 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1397         * configure.tgt: Add emacs -*- tags.
1398         * barrier.tpl: Same.
1400 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1402         * Makefile.am: Rename serial.cc to method-serial.cc.
1403         * Makefile.in: Regenerate with automake 1.11.1.
1404         * testsuite/Makefile.in: Same.
1405         * aclocal.m4: Regenerate with aclocal 1.11.1.
1406         * method-serial.cc: Rename from serial.cc.
1407         * libitm_i.h (struct gtm_transaction): Update comment on
1408         serialirr_mode.
1410 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1412         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1413         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1415 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1417         * configure: Rebuild.
1419 2009-11-12  Richard Henderson  <rth@redhat.com>
1421         * Rewrite everything in C++.
1423 2009-11-03  Richard Henderson  <rth@redhat.com>
1425         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1426         * Makefile.am (libitm_la_SOURCES): Add them.
1427         * configure.ac (ARCH_X86): New conditional.
1428         * Makefile.in, configure: Rebuild.
1429         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1430         Move futex setup into "other system configury" case.
1431         * local.c (rollback_local): Merge into ...
1432         (GTM_rollback_local): ... here.
1433         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1434         (_ITM_LB): Define as an alias to GTM_LB.
1436 2009-11-03  Richard Henderson  <rth@redhat.com>
1438         * method-readonly.c: New file.
1439         * Makefile.am (libitm_la_SOURCES): Add it.
1440         * Makefile.in: Rebuild.
1441         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1442         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1443         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1444         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1445         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1446         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1447         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1448         gtm_get_clock, gtm_inc_clock): New.
1449         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1450         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1451         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1452         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1453         replace uses with new libitm_i.h symbols.
1454         (dispatch_wbetl): Rename from wbetl_dispatch.
1455         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1456         away from dispatch_readonly; abort if the beginTransaction call
1457         asserted that the transaction was readonly.
1459 2009-11-03  Richard Henderson  <rth@redhat.com>
1461         * memset.c: New file.
1462         * Makefile.am (libitm_la_SOURCES): Add it.
1463         * Makefile.in: Rebuild.
1464         * testsuite/libitm.c/memset-1.c: New.
1466 2009-11-03  Richard Henderson  <rth@redhat.com>
1468         * dispatch.c: Remove file.
1469         * useraction.c (struct gtm_user_action): Move from libitm.h.
1470         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1471         (serial_memset, serial_memmove, serial_memcpy): Remove.
1472         (serial_W*, serial_R*): Remove.
1473         (serial_dispatch): Update to match.
1474         * configure.ac: Move Werror down below configure checks.  Don't
1475         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1476         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1477         Use GCC_AC_FUNC_MMAP_BLACKLIST
1478         * libitm.h: Split out all internal items to...
1479         * libitm_i.h: ... here.  New file.
1480         * copymask.c: New file.
1481         * local.c (struct gtm_local_undo): Move from libitm.h.
1482         (GTM_alloc_local): Rename from alloc_local; export.
1483         * memcpy.c: New file.
1484         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1485         * config/posix/page.c: New file.
1486         * config/posix/target_tls.h: Remove file.
1487         * barrier.c: New file.
1488         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1489         copymask.c, page.c.
1490         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1491         * method-wbetl.c: Rewrite for new cacheline methods.
1492         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1494         * config/alpha/sjlj.S: Fix typo.
1495         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1496         * config/alpha/copymask.c: New file.
1497         * config/alpha/target.h (CACHELINE_SIZE): New.
1498         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1500         * config/x86/target_i.h: Copy functions from x86/target.h.
1501         * config/x86/copymask.c: New file.
1502         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1503         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1504         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1505         * config/x86/target_tls.h: Move contents to target_i.h.
1507         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1508         * testsuite/libitm.c/memcpy-1.c: New.
1510 2009-10-22  Richard Henderson  <rth@redhat.com>
1512         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1513         (AM_CCASFLAGS): New.
1514         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1515         saving/restoring _AC_ARG_VAR_PRECIOUS.
1516         * Makefile.in, aclocal.m4, config.h.in, configure,
1517         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1519 2009-10-22  Richard Henderson  <rth@redhat.com>
1521         * testsuite/*: Update for new compiler syntax.
1523 2009-10-21  Richard Henderson  <rth@redhat.com>
1525         * libitm.h (_ITM_abortReason): Add outerAbort.
1527 2009-08-03  Richard Henderson  <rth@redhat.com>
1529         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1530         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1531         * method-wbetl.c (struct w_entry): Remove mask.
1532         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1533         adjust all callers.
1535 2009-07-22  Richard Henderson  <rth@redhat.com>
1537         * eh_cpp.c: New file.
1538         * Makefile.am (libitm_la_SOURCES): Add it.
1539         * Makefile.in: Rebuild.
1540         * beginend.c (GTM_rollback_transaction): Undo exception state.
1541         (GTM_trycommit_transaction): Mark inline.
1542         (GTM_trycommit_and_finalize_transaction): Split out from ...
1543         (_ITM_commitTransaction): ... here.
1544         (_ITM_commitTransactionEH): New function.
1545         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1546         cxa_unthrown, eh_in_flight; reorder.
1548         * testsuite/libitm.c++/c++.exp: New.
1549         * testsuite/libitm.c++/eh-1.C: New.
1551         * aatree.c (aa_free): Remove REGPARM.
1552         * aatree.h: Remove all REGPARM.
1554 2009-07-18  Richard Henderson  <rth@redhat.com>
1556         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1557         * Makefile.am (libitm_la_SOURCES): Add them.
1558         * Makefile.in: Rebuild.
1559         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1560         (GTM_trycommit_transaction): Likewise.
1561         * libitm.h: Include aatree.h
1562         (struct gtm_alloc_action): New.
1563         (struct gtm_transaction): Add alloc_actions.
1564         (GTM_record_allocation, GTM_forget_allocation): Declare.
1565         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1566         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1567         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1568         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1569         _ZGTtdaPvRKSt9nothrow_t): Export.
1571 2009-07-18  Richard Henderson  <rth@redhat.com>
1573         * target_tls.h: Move ...
1574         * config/posix/target_tls.h: ... here.
1576 2009-07-07  Richard Henderson  <rth@redhat.com>
1578         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1580 2009-07-07  Richard Henderson  <rth@redhat.com>
1582         * Update to GPL3.
1584 2009-07-07  Richard Henderson  <rth@redhat.com>
1586         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1587         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1589         * configure.tgt: Don't use -ftls-model for x86 linux.
1590         * libitm.h: Include target.h after standard includes.
1591         (_gtm_thr): Rename from gtm_thr.
1592         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1593         (gtm_disp, set_gtm_disp): New.
1594         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1595         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1596         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1598 2009-07-07  Richard Henderson  <rth@redhat.com>
1600         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1602 2009-07-06  Richard Henderson  <rth@redhat.com>
1604         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1605         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1606         (_ITM_beginTransaction): Take variadic arguments.
1607         (_ITM_registerThrownObject): Declare.
1608         * beginend.c, serial.c: Update.
1609         * libitm.map: Add _ITM_registerThrownObject.
1611 2009-01-28  Richard Henderson  <rth@redhat.com>
1613         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1614         * Makefile.in: Rebuild.
1615         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1616         (GTM_restart_transaction): Fix uninstrumented code check.
1617         * retry.c (GTM_decide_retry_strategy): Add serial check.
1618         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1619         automatically go irrevokable when in serial mode.
1620         * clone.c: New file.
1621         * libitm.h, libitm.map: Update.
1623 2009-01-27  Richard Henderson  <rth@redhat.com>
1625         * Makefile.am (LTCCASCOMPILE): Define.
1626         (libitm_la_SOURCES): Add methid-wbetl.c.
1627         * testsuite/Makefile.am: New
1628         * configure.ac: Add testsuite/Makefile.
1629         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1630         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1631         (_ITM_abortTransaction): Finalize implementation method; pass
1632         transaction properties to longjmp.
1633         (GTM_restart_transaction): Split out from ...
1634         (_ITM_commitTransaction): ... here.
1635         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1636         Move to config/x86/target.h.
1637         * config/linux/alpha/futex_bits.h: New.
1638         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1639         * config/x86/target.h: Disable target types for 32-bit.
1640         * config/alpha/sjlj.S, config/alpha/target.h: New.
1641         * libitm.h (struct gtm_dispatch): Add init, fini.
1642         (enum restart_reason): New.
1643         (struct gtm_transaction): Add method and restarts.
1644         * retry.c (GTM_decide_retry_strategy): Implement.
1645         * serial.c (serial_init, serial_fini): New.
1646         (GTM_serialmode): Finialize outgoing method.
1647         * method-wbetl.c: New.
1649 2008-12-09  Richard Henderson  <rth@redhat.com>
1651         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1652         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1653         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1654         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1655         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1656         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1657         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1658         * serial.c (serial_R##T, serial_W##T): Likewise.
1660 2008-11-21  Richard Henderson  <rth@redhat.com>
1662         * Initial commit.