gengtype.h (obstack_chunk_alloc, [...]): Remove cast.
[official-gcc.git] / libitm / ChangeLog
blobf35a630c9502e36a43eaa42675c475d7350a2a8c
1 2014-10-06  Marek Polacek  <polacek@redhat.com>
3         * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
4         * testsuite/libitm.c/memset-1.c: Likewise.
6 2014-07-24  Richard Henderson  <rth@redhat.com>
8         * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
9         addressing mode in epilogue.
11 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
14         -mclear-hwcap instead.
15         * configure: Regenerate.
16         * clearcap.map: Remove.
18 2014-05-21  John Marino  <gnugcc@marino.st>
20         * configure.tgt (*-*-dragonfly*): New target.
22 2014-05-19  Richard Henderson  <rth@redhat.com>
24         * config/aarch64/sjlj.S: New file.
25         * config/aarch64/target.h: New file.
26         * configure.tgt: Enable aarch64.
28 2014-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30         * config/generic/asmcfi.h: Also check for
31         __GCC_HAVE_DWARF2_CFI_ASM.
33 2013-04-02  Richard Henderson  <rth@redhat.com>
35         * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
36         * config/arm/target.h, config/sh/target.h: Likewise.
37         * config/sparc/target.h, config/x86/target.h: Likewise.
39 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
41         * config/linux/futex_bits.h: Include errno.h.
42         (sys_futex0): If syscall returns -1, return -errno rather than
43         -1.
45 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
47         * libitm.texi (Index): Rename to Library Index.
49 2014-01-13  H.J. Lu  <hongjiu.lu@intel.com>
51         PR libitm/53113
52         * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
53         (x86_avx.lo): Append -mavx to CXXFLAGS.
54         * Makefile.in: Regenerate.
56 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
58         Update copyright years
60 2014-01-02  Tobias Burnus  <burnus@net-b.de>
62         * libitm.texi: Bump @copying's copyright year.
64 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
66         * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
67         (FUNC): Define ELFv2 variant.
68         (END): Likewise.
69         (HIDDEN): Likewise.
70         (CALL): Likewise.
71         (BASE): Likewise.
72         (LR_SAVE): Likewise.
74 2013-09-20  Alan Modra  <amodra@gmail.com>
76         * configure: Regenerate.
78 2013-08-30  Torvald Riegel  <triegel@redhat.com>
80         * config/posix/rwlock.cc: Fix initialization order.
82 2013-08-30  Torvald Riegel  <triegel@redhat.com>
84         * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
85         (htm_fastpath): Assign an asm name.
86         * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
87         HTM fast paths.
88         (_ITM_actions): Likewise.
89         * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
90         x86_64.
91         * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
92         * config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
93         field to the start of the structure.
94         * config/linux/rwlock.h (gtm_rwlock): Update comments.
95         * beginend.cc (gtm_thread::begin_transaction): Add retry policy
96         handling for custom HTM fast paths.
98 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
99         Revert:
100         2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
102         * configure.tgt: Add -msoft-float to XCFLAGS.
104 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
106         * configure.tgt: Add -msoft-float to XCFLAGS.
108 2013-07-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
110         * config/s390/target.h (htm_begin, htm_commit, htm_abort)
111         (htm_transaction_active): Enable zEC12 instructions in the
112         assembler.
113         * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
115 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
117         * acinclude.m4: Add htm asm check for s390.
118         * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
119         * configure: Regenerate.
120         * config/s390/target.h: Remove __HTM__ check.
121         (htm_available): Call getauxval to get hwcaps and check whether
122         HTM is available or not.
124 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
126         * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
127         * configure.ac: Use it.
128         (AC_CHECK_HEADERS): Check for sys/auxv.h.
129         (AC_CHECK_FUNCS): Check for getauxval.
130         * config.h.in, configure: Rebuild.
131         * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
132         * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
133         (USE_HTM_FASTPATH): Define.
134         (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
135         _HTM_RETRIES) New macros.
136         (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
137         htm_begin_success, htm_commit, htm_transaction_active): New functions.
139 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
141         * config/s390/target.h: Include htmintrin.h.
142         (_HTM_ITM_RETRIES): New macro definition.
143         (htm_available, htm_init, htm_begin, htm_begin_success)
144         (htm_commit, htm_abort, htm_abort_should_retry): New functions.
146 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
147             Cesar Philippidis  <cesar@codesourcery.com>
149         * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
150         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
151         * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
152         * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
154 2013-06-20  Torvald Riegel  <triegel@redhat.com>
156         * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
157         (_ITM_getTransactionId): Same.
158         * config/x86/target.h (htm_transaction_active): New.
160 2013-06-20  Torvald Riegel  <triegel@redhat.com>
162         PR libitm/57643
163         * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
164         the HTM fastpath.
166 2013-03-31  Gerald Pfeifer  <gerald@pfeifer.com>
168         PR bootstrap/56714
169         * local_atomic (__always_inline): Always define our version.
170         (__calculate_memory_order): Mark inline.
171         (atomic_thread_fence): Ditto.
172         (atomic_signal_fence): Ditto.
173         (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
174         (atomic_bool::atomic_flag_clear_explicit): Ditto.
175         (atomic_bool::atomic_flag_test_and_set): Ditto.
176         (atomic_bool::atomic_flag_clear): Ditto.
178 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
180         * config/s390/sjlj.S: New file.
181         * config/s390/target.h: New file.
182         * configure.tgt: Set options for S/390.
184 2013-03-23  Andi Kleen  <ak@linux.intel.com>
186         * local_atomic (__always_inline): Add.
187         (__calculate_memory_order, atomic_thread_fence,
188          atomic_signal_fence, test_and_set, clear, store, load,
189          exchange, compare_exchange_weak, compare_exchange_strong,
190          fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
191         Add __always_inline to force inlining.
193 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
194             Jack Howarth  <howarth@bromo.med.uc.edu>
195             Patrick Marlier  <patrick.marlier@gmail.com>
197         PR libitm/55693
198         * alloc_cpp.cc: Enable function declarations on darwin.
199         * eh_cpp.cc: Likewise.
201 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
203         Update copyright years.
205 2012-11-09  Torvald Riegel  <triegel@redhat.com>
207         * beginend.cc (htm_fastpath): New.
208         (gtm_thread::begin_transaction, _ITM_commitTransaction,
209         _ITM_commitTransactionEH): Add HTM fastpath handling.
210         * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
211         * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
212         * config/x86/target.h (htm_available, htm_init, htm_begin_success,
213         htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
214         * configure.tgt: Add -mrtm to XCFLAGS.
215         * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
216         (gtm_thread::serialirr_mode): Add HTM fastpath handling.
217         * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
218         * retry.cc (parse_default_method): Add HTM method parsing.
219         (gtm_thread::number_of_threads_changed): Use HTM by default if
220         available.
222 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
224         * configure: Regenerate.
226 2012-10-31  Richard Henderson  <rth@redhat.com>
228         * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
229         * configure.ac: Use it.
230         * config.h.in, configure: Rebuild.
231         * testsuite/Makefile.in: Rebuild.
233 2012-10-24  Torvald Riegel  <triegel@redhat.com>
235         * libitm.texi: Clarify ABI requirements for data-logging functions.
237 2012-10-24  Torvald Riegel  <triegel@redhat.com>
239         * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
240         it requires serial mode instead of assuming that for certain
241         dispatchs.
242         * dispatch.h (abi_dispatch::requires_serial): New.
243         (abi_dispatch::abi_dispatch): Adapt.
244         * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
245         * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
246         * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
247         serial_dispatch::serial_dispatch,
248         serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
250 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
252         * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
253         and ia32 declarations some more.
254         * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
256 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
258         PR other/43620
259         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
260         * configure: Regenerate.
261         * Makefile.in: Regenerate.
263 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
265         * configure: Regenerated.
267 2012-07-31  Uros Bizjak  <ubizjak@gmail.com>
269         * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
271 2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>
273         * eh_cpp.cc: Fix __cxa_end_catch declaration.
275 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
277         * configure: Regenerated.
279 2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>
281         PR libitm/52854
282         * config/x86/target.h (gtm_jmpbuf): Replace long with long long
283         for x86-64.
285 2012-04-03  Tristan Gingold  <gingold@adacore.com>
287         * configure: Regenerate.
289 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
291         PR bootstrap/52812
292         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
294 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
296         * testsuite/lib/libitm.exp: load fortran-modules.exp
298 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
300         * configure.tgt (*-*-irix6*): Remove.
302 2012-03-13  Torvald Riegel  <triegel@redhat.com>
304         PR libitm/52526
305         * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
306         wake-up.
308 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
310         * configure.tgt (*-*-osf*): Remove.
311         * configure: Regenerate.
313 2012-03-05  Torvald Riegel  <triegel@redhat.com>
315         * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
316         memtransfer/memset if size isn't larger than zero.
318 2012-03-02  Torvald Riegel  <triegel@redhat.com>
320         * libitm.texi: Link to specification and add a usage example.
322 2012-02-24  Torvald Riegel  <triegel@redhat.com>
324         * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
325         default dispatch for more than 1 thread to ml_wt.
327 2012-02-20  Torvald Riegel  <triegel@redhat.com>
329         * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
331 2012-02-20  Torvald Riegel  <triegel@redhat.com>
333         * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
335 2012-02-20  Torvald Riegel  <triegel@redhat.com>
337         * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
338         serial mode corner cases made obsolete by prior gtm_rwlock changes.
339         (gl_wt_dispatch.rollback): Same.
341 2012-02-20  Torvald Riegel  <triegel@redhat.com>
343         * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
345 2012-02-20  Torvald Riegel  <triegel@redhat.com>
347         * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
348         for RfW src.  Optimize number of calls to gtm_thr.
350 2012-02-20  Torvald Riegel  <triegel@redhat.com>
352         * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
353         acquisition to ...
354         * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
355         (default_dispatch): Make atomic.
356         (GTM::gtm_thread::set_default_dispatch): Access atomically.
357         (GTM::gtm_thread::decide_retry_strategy): Access atomically and
358         use decide_begin_dispatch() if default_dispatch might have changed.
359         (GTM::gtm_thread::number_of_threads_changed): Initialize
360         default_dispatch here.
362 2012-02-15  Iain Sandoe  <iains@gcc.gnu.org>
363             Patrick Marlier  <patrick.marlier@gmail.com>
365         PR libitm/52220
366         * alloc_cpp.cc: No dummy definitions for darwin.
367         * eh_cpp.cc: Likewise.
369 2012-02-14  Richard Henderson  <rth@redhat.com>
371         * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
373 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
375         * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
377 2012-02-14  Torvald Riegel  <triegel@redhat.com>
379         * libitm_i.h (GTM::gtm_rwlog_entry): New.
380         (GTM::gtm_thread): Add read and write logs.
381         (GTM::dispatch_ml_wt): Declare.
382         * retry.cc (parse_default_method): Support ml_wt.
383         * method-ml.cc: New file.
384         * Makefile.am: Add method-ml.cc.
385         * Makefile.in: Regenerate.
387 2012-02-14  Torvald Riegel  <triegel@redhat.com>
389         * dispatch.h (GTM::abi_dispatch::supports): New.
390         (GTM::method_group::reinit): New.
391         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
392         (GTM::gtm_thread::number_of_threads_changed): Check that the method
393         supports the current situation.
395 2012-02-14  Torvald Riegel  <triegel@redhat.com>
397         * util.cc (GTM::xcalloc): New.
398         * common.h (GTM::xcalloc): Declare.
400 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
402         * config/sparc/target.h (cpu_relax): Read from CC register.
403         * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
405 2012-02-14  Uros Bizjak  <ubizjak@gmail.com>
407         * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
409 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
411         * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
412         * config/sparc/cacheline.h: New file.
413         * config/sparc/target.h: Likewise.
414         * config/sparc/sjlj.S: Likewise.
415         * config/linux/sparc/futex_bits.h: Likewise.
417 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
419         * configure.ac (link_itm): Fix comment.
420         * configure: Regenerate.
421         * testsuite/lib/libitm.exp: Do not pass -litm for the link.
423 2012-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
425         PR libitm/51822
426         * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
427         Correct libgomp references.
429 2012-01-24  Torvald Riegel  <triegel@redhat.com>
431         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
432         wake-up.
434 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
436         * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
437         end of structure.
438         * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
439         offset values.  Do not copy return address.  Decrement stack
440         by 56 bytes only.
441         (GTM_longjump) [__x86_64__]: Update offset values.
443 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
445         PR libitm/51830
446         * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
447         the first function argument to %eax.
449 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
451         * libitm.h (_ITM_getThreadnum): Remove.
452         * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
454 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
456         * clearcap.map: New file.
457         * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
458         * configure.ac: Call it.
459         Clear HWCAP_LDFLAGS if defaulting to -mavx.
460         * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
461         * configure: Regenerate.
462         * Makefile.in: Regenerate.
463         * testsuite/Makefile.in: Regenerate.
465 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
467         PR libitm/51173
468         * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
469         include, exclude options.
471 2012-01-14  Torvald Riegel  <triegel@redhat.com>
473         * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
474         rolling back.
475         * containers.h (GTM::vector::set_size): New.
477 2012-01-14  Torvald Riegel  <triegel@redhat.com>
479         PR libitm/51855
480         * config/generic/tls.h (GTM::mask_stack_top): New.
481         (GTM::mask_stack_bottom): Declare.
482         * config/generic/tls.c (GTM::mask_stack_bottom): New.
483         * local.cc (gtm_undolog::rollback): Filter out any updates that
484         overlap the libitm stack.  Add current transaction as parameter.
485         * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
486         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
487         * testsuite/libitm.c/stackundo.c: New test.
489 2012-01-10  Richard Henderson  <rth@redhat.com>
491         * libitm_i.h (_Unwind_DeleteException): Declare weak.
492         * eh_cpp.cc (_Unwind_DeleteException): Define for
493         !HAVE_ELF_STYLE_WEAKREF.
495 2012-01-08  Torvald Riegel  <triegel@redhat.com>
497         * local.cc (GTM_LB): Use GTM::gtm_undolog.
498         (GTM::gtm_thread::drop_references_undolog): Remove.
499         (GTM::gtm_thread::commit_undolog,
500         GTM::gtm_thread::rollback_undolog): Move to ...
501         * libitm_i.h (GTM::gtm_undolog): ...here. New.
502         (GTM::gtm_undolog_entry): Remove.
503         (GTM::gtm_thread): Adapt.
504         * beginend.cc (GTM::gtm_thread::rollback): Adapt.
505         (GTM::gtm_thread::trycommit): Adapt.
506         * method-serial.cc (serial_dispatch::log): Adapt.
507         * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
508         (gl_wt_dispatch::store): Fix likely/unlikely.
509         * containers.h (GTM::vector::resize): Add additional_capacity
510         parameter and handle it.
511         (GTM::vector::resize_noinline): New/adapt.
512         (GTM::vector::push): New.
514 2012-01-06  Richard Henderson  <rth@redhat.com>
516         * configure.tgt: Support powerpc-linux and powerpc-darwin.
517         * config/linux/powerpc/futex_bits.h: New file.
518         * config/powerpc/cacheline.h: New file.
519         * config/powerpc/sjlj.S: New file.
520         * config/powerpc/target.h: New file.
521         * config/generic/asmcfi.h (cfi_offset): New.
522         (cfi_restore, cfi_undefined): New.
524 2012-01-05  Aldy Hernandez  <aldyh@redhat.com>
526         PR other/51171
527         * testsuite/libitm.c/reentrant.c: Remove xfail.
528         (thread): Pass x to pure().
529         From Patrik Marlier <patrick.marlier@gmail.com>.
531 2011-12-24  Torvald Riegel  <triegel@redhat.com>
533         * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
534         privatization safety if already in serial mode.
536 2011-12-24  Torvald Riegel  <triegel@redhat.com>
538         * beginend.cc (GTM::gtm_thread::restart): Add and handle
539         finish_serial_upgrade parameter.
540         * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
541         * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
542         Don't unset reader flag.
543         (GTM::gtm_rwlock::write_upgrade_finish): New.
544         * config/posix/rwlock.cc: Same.
545         * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
546         Declare.
547         * config/posix/rwlock.h: Same.
548         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
549         flag after commit or after rollback when restarting.
551 2011-12-24  Torvald Riegel  <triegel@redhat.com>
553         * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
554         (GTM::gtm_thread::try_commit): Changed memory order.
555         * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
556         as parameter.
557         * config/linux/x86/futex_bits.h (sys_futex0): Same.
558         * config/linux/sh/futex_bits.h (sys_futex0): Same.
559         * config/linux/futex_bits.h (sys_futex0): Same.
560         * config/linux/futex.cc (futex_wait, futex_wake): Same.
561         * config/linux/futex.h (futex_wait, futex_wake): Same.
562         * config/linux/rwlock.h (gtm_rwlock::writers,
563         gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
564         ints.
565         * config/linux/rwlock.cc (gtm_rwlock::read_lock,
566         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
567         gtm_rwlock::write_unlock): Fix memory orders and fences.
568         * config/posix/rwlock.cc (gtm_rwlock::read_lock,
569         gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
570         gtm_rwlock::write_unlock): Same.
571         * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
572         * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
573         gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
574         Add comments.
575         (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
576         gl_wt_dispatch::load, gl_wt_dispatch::store,
577         gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
578         orders and fences.  Add comments.
580 2011-12-21  Jakub Jelinek  <jakub@redhat.com>
582         * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
583         * Makefile.in: Regenerated.
585 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
587         * configure.tgt: Add sh* case.
588         * config/sh/target.h: New file.
589         * config/sh/sjlj.S: New file.
590         * config/linux/sh/futex_bits.h: New file.
592 2011-12-14  Richard Henderson  <rth@redhat.com>
594         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
595         * config/arm/sjlj.S, config/arm/target.h: New files.
596         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
597         (cfi_rel_offset): New.
598         * config/linux/futex_bits.h: New file.
599         * config/linux/futex.cc: Include futex_bits.h here...
600         * config/linux/futex.h: ... not here.
601         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
602         * configure.ac (ARCH_AM): New conditional.
603         * Makefile.in, configure: Rebuild.
604         * configure.tgt: Handle ARM.
606 2011-12-13  Richard Henderson  <rth@redhat.com>
608         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
609         signed/unsigned comparison werror.
611         * local_atomic: New file.
612         * libitm_i.h: Include it.
613         (gtm_thread::shared_state): Use atomic template.
614         * beginend.cc (GTM::gtm_clock): Use atomic template.
615         (global_tid): Use atomic template if 64-bit atomics available.
616         (gtm_thread::gtm_thread): Update shared_state access.
617         (gtm_thread::trycommit): Likewise.
618         (choose_code_path): Update global_tid access.
619         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
620         * stmlock.h (GTM::gtm_clock): Use atomic template.
621         (gtm_get_clock, gtm_inc_clock): Update accesses.
622         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
623         redundant __sync_synchronize after atomic shared_state access.
624         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
625         (gtm_rwlock::write_lock_generic): Likewise.
626         (gtm_rwlock::read_unlock): Likewise.
627         * config/alpha/target.h (atomic_read_barrier): Remove.
628         (atomic_write_barrier): Remove.
629         * config/x86/target.h (atomic_read_barrier): Remove.
630         (atomic_write_barrier): Remove.
632 2011-11-30  Richard Henderson  <rth@redhat.com>
634         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
635         * beginend.c (_ITM_abortTransaction): Update to match.
636         (GTM::gtm_thread::restart): Likewise.
637         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
638         * config/x86/sjlj.S (GTM_longjmp): Likewise.
640 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
642         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
643         * Makefile.in: Regenerate.
645 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
647         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
648         * alloc_cpp.cc: Generate dummy functions if we don't
649         HAVE_ELF_STYLE_WEAKREF.
650         * eh_cpp.cc: Likewise.
651         * configure: Regenerate.
652         * aclocal.m4:  Likewise.
653         * config.h.in: Likewise.
654         * Makefile.in: Likewise.
655         * testsuite/Makefile.in: Likewise.
657 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
659         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
660         __USER_LABEL_PREFIX__ for targets that use it.
661         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
662         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
663         in portability to non-elf targets.
664         (GTM_longjmp): Likewise.
665         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
666         where required.
668 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
670         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
671         * testsuite/libitm.c/memset-1.c: Likewise.
673 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
675         * configure: Regenerate.
677 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
679         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
680         (LIBITM_ENABLE_SYMVERS): Handle sun style.
681         * Makefile.am: Handle sun style versioning.
682         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
683         * configure: Regenerate.
684         * Makefile.in: Regenerate.
686 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
688         * config/generic/asmcfi.h: Fix comment.
689         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
690         sequence without .hidden support, error for non-ELF targets.
691         (GTM_longjmp) [__ELF__]: Only use .hidden if
692         HAVE_ATTRIBUTE_VISIBILITY.
694 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
696         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
697         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
698         Dummy functions.
699         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
700         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
702 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
704         PR bootstrap/51098
705         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
706         * configure: Regenerate.
708 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
710         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
712 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
714         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
715         .hidden.
716         (.note.GNU-stack): Only use if __linux__.
717         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
718         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
719         * testsuite/libitm.c/reentrant.c: Likewise.
720         * testsuite/libitm.c/simple-2.c: Likewise.
721         * testsuite/libitm.c/txrelease.c: Likewise.
722         * testsuite/libitm.c++/static_ctor.C: Likewise.
724 2011-11-10  Richard Henderson  <rth@redhat.com>
726         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
727         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
728         * configure.ac (ARCH_X86_AVX): New conditional.
729         * Makefile.in, configure: Rebuild.
731 2011-11-09  Richard Henderson  <rth@redhat.com>
733         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
734         * configure.ac: Use it.
735         * config.h.in, configure: Rebuild.
736         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
738 2011-11-09  Richard Henderson  <rth@redhat.com>
740         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
741         * config/alpha/unaligned.h: Remove file.
742         * config/generic/unaligned.h: Remove file.
743         * config/x86/unaligned.h: Remove file.
744         * config/generic/cachepage.h: Remove file.
745         * config/posix/cachepage.cc: Remove file.
746         * config/generic/cacheline.cc: Remove file.
747         * config/x86/cacheline.cc: Remove file.
748         * config/generic/cacheline.h (gtm_cacheline): Remove the
749         store_mask, copy_mask, copy_mask_wb methods.
750         * config/x86/cacheline.h: Likewise.
751         * config/alpha/cacheline.h: Fall back to generic after setting size.
752         * config/generic/tls.cc (gtm_mask_stack): Remove.
753         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
754         (GTM_vpalignr_table): Remove.
755         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
756         (GTM_pshift_table): Remove.
757         * config/libitm_i.h: Don't include cachepage.h.
758         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
759         * Makefile.in, testsuite/Makefile.in: Rebuild.
761 2011-11-09  Richard Henderson  <rth@redhat.com>
763         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
764         to emit branch prediction hint.
766         * config/x86/sjlj.S: Protect elf directives with __ELF__.
767         Protect .note.GNU-stack with __linux__.
769         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
770         * configure, aclocal.m4, config.h.in: Rebuild.
771         * config/generic/asmcfi.h: New file.
772         * config/x86/sjlj.S: Use it.
774 2011-11-08  Richard Henderson  <rth@redhat.com>
776         * local.cc (_ITM_LB): Use a normal call, not a function alias.
778 2011-11-08  Richard Henderson  <rth@redhat.com>
780         * configure.tgt: Test correct directory for supported cpus.
782         * configure.ac: Exit if unsupported.
783         * configure: Rebuild.
784         * configure.tgt: Delete boilerplate from libgomp for unsupported
785         targets.  Set UNSUPPORTED for unsupported targets.
787 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
789         * configure.tgt: Handle i386 like i[456]86.
790         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
791         take address.
792         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
793         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
795 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
797         * method-wbetl.cc: Update copyright notice.
798         * aatree.cc: Same.
799         * util.cc: Same.
800         * libitm.h: Same.
801         * memset.cc: Same.
802         * eh_cpp.cc: Same.
803         * barrier.tpl: Same.
804         * useraction.cc: Same.
805         * stmlock.h: Same.
806         * memcpy.cc: Same.
807         * common.h: Same.
808         * config/generic/tls.cc: Same.
809         * config/generic/cacheline.h: Same.
810         * config/generic/cachepage.h: Same.
811         * config/generic/cacheline.cc: Same.
812         * config/generic/unaligned.h: Same.
813         * config/x86/cacheline.h: Same.
814         * config/x86/cacheline.cc: Same.
815         * config/x86/unaligned.h: Same.
816         * config/alpha/cacheline.h: Same.
817         * config/alpha/unaligned.h: Same.
818         * config/alpha/sjlj.S: Same.
819         * config/posix/cachepage.cc: Same.
820         * config/linux/futex.h: Same.
821         * config/linux/alpha/futex_bits.h: Same.
823 2011-11-04  Torvald Riegel  <triegel@redhat.com>
825         * libitm.texi: No cover text and invariant sections.
827 2011-11-03  Richard Henderson  <rth@redhat.com>
829         * local_type_traits: New file.
830         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
832 2011-11-03  Richard Henderson  <rth@redhat.com>
834         * configure.ac: Don't test for gfortran.
835         * configure: Rebuild.
837         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
838         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
840 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
842         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
843         * testsuite/libitm.c/memset-1.c: Same.
844         * testsuite/libitm.c/c.exp: Same.
845         * testsuite/lib/libitm-dg.exp: Same.
846         * testsuite/lib/libitm.exp: Same.
847         * testsuite/libitm.c++/c++.exp: Same.
849 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
851         * testsuite/config/default.exp: Update copyright date.
852         * configure.ac: Add copyright info.
853         * configure.tgt: Same.
855 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
857         * testsuite/libitm.c/reentrant.c: XFAIL.
858         * testsuite/libitm.c++/static_ctor.C: XFAIL.
860 2011-10-29  Torvald Riegel  <triegel@redhat.com>
862         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
863         handle aborts.
864         (_ITM_abortTransaction): Handle aborts of outer transactions.
865         * libitm_i.h: Same.
866         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
867         * libitm.texi: Document aborts of outer transactions.
868         * testsuite/libitm.c/cancel.c: New file.
870 2011-10-19  Torvald Riegel  <triegel@redhat.com>
872         * testsuite/*: Change __transaction to __transaction_atomic or
873         __transaction_relaxed.
875 2011-10-19  Torvald Riegel  <triegel@redhat.com>
877         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
878         (gtm_thr): Same.
880 2011-10-19  Torvald Riegel  <triegel@redhat.com>
882         * libitm_i.h: Add gl_wt dispatch.
883         * retry.cc (parse_default_method): Same.
884         * method-gl.cc: New file.
885         * Makefile.am: Use method-gl.cc.
886         * Makefile.in: Rebuild.
888 2011-10-19  Torvald Riegel  <triegel@redhat.com>
890         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
891         safety if requested by a TM method.
892         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
893         privatization safety.
894         * method-serial.cc: Same.
896 2011-10-19  Torvald Riegel  <triegel@redhat.com>
898         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
899         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
900         undolog-related member functions from *_local to *_undolog.
901         * local.cc (gtm_thread::commit_undolog): Same.
902         * beginend.cc (GTM::gtm_thread::trycommit): Same.
903         (GTM::gtm_thread::rollback): Roll back undolog before
904         dispatch-specific rollback.
906 2011-10-19  Torvald Riegel  <triegel@redhat.com>
908         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
909         re-initialization of the current method group.
910         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
912 2011-10-19  Torvald Riegel  <triegel@redhat.com>
914         * alloc.cc (commit_allocations_2): Do not free transaction-local
915         memory when committing a nested transaction.
917 2011-10-19  Torvald Riegel  <triegel@redhat.com>
919         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
920         serial-irrevocable dispatch, not serial.
922 2011-10-19  Torvald Riegel  <triegel@redhat.com>
924         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
925         declarations.
926         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
927         * method-serial.cc: Implement begin_or_restart().
928         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
929         dispatch-specific begin_or_restart().
930         (GTM::gtm_thread::restart): Same.
932 2011-08-23  Torvald Riegel  <triegel@redhat.com>
934         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
935         restarting without switching to serial mode.
936         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
937         transaction state. Choose closed-nesting alternative if available.
938         (GTM::gtm_thread::set_default_dispatch): New.
939         (parse_default_method): New.
940         (GTM::gtm_thread::number_of_threads_changed): New.
941         * method-serial.cc (GTM::serial_mg): New method group class.
942         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
943         fini.
944         (GTM::serial_dispatch): Same.
945         (GTM::serialirr_onwrite_dispatch): Same.
946         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
947         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
948         registered threads.
949         (GTM::gtm_thread::gtm_thread): Same.
950         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
951         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
952         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
953         choose dispatch but set state according to dispatch here.
954         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
955         (GTM::method_group): New class.
956         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
957         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
958         * libitm.texi: Document TM methods, method groups, method life cycle.
959         Rename method sets to method groups.
961 2011-08-23  Torvald Riegel  <triegel@redhat.com>
963         * config/x86/tls.h: Moved to ...
964         * config/linux/x86/tls.h: ... here.
966 2011-08-23  Torvald Riegel  <triegel@redhat.com>
968         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
969         Add X32 support.
970         * config/x86/sjlj.S: Same.
972 2011-08-19  Torvald Riegel  <triegel@redhat.com>
974         * config/linux/rwlock.h: New file.
975         * config/linux/rwlock.c: New file.
976         * configure.ac: Reenable futex support (undo SVN rev 157758).
977         * Makefile.am: Same.
978         * configure.tgt: Same.
979         * config/linux/alpha/futex_bits.h: Same.
980         * config/linux/futex.h: Same. Return number of woken processes.
981         * config/linux/futex.cc: Same.
982         (futex_wait): Remove spinning.
983         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
984         Use __x86_64__ instead of __LP64__.
985         * aclocal.m4: Include generic futex checks.
986         * configure: Rebuild.
987         * Makefile.in: Rebuild.
988         * testsuite/Makefile.in: Rebuild.
989         * beginend.cc: Include pthread.h.
990         * config/posix/cachepage.cc: Same.
992 2011-08-12  Torvald Riegel  <triegel@redhat.com>
994         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
995         (abi_disp, set_abi_disp): Move to tx's TLS slot.
996         (set_gtm_thr): New.
997         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
998         (set_gtm_thr): New.
999         (GTM::gtm_thread::thread_num): Removed.
1000         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1001         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1002         tx-to-thread renaming.
1003         * beginend.cc: Adapted to tx-to-thread renaming.
1004         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1005         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1006         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1007         gtm_transaction to gtm_thread.
1008         (_ITM_getThreadnum): Removed. Not supported anymore.
1009         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1010         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1011         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1012         gtm_tx-to-gtm_thr renaming if necessary.
1013         * eh_cpp.cc: Same.
1014         * local.cc: Same.
1015         * retry.cc: Same.
1016         * clone.cc: Same.
1017         * alloc.cc: Same.
1018         * alloc_c.cc: Same.
1019         * alloc_cpp.cc: Same.
1020         * method-serial.cc: Same.
1021         * config/generic/tls.cc: Same.
1022         * config/posix/rwlock.h (gtm_rwlock): Same.
1023         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1025 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1027         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1028         implementation.
1029         (gtm_rwlock::read_unlock): Same.
1030         (gtm_rwlock::write_lock_generic): New. Generalized from ...
1031         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1032         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1033         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1034         w_upgrade. Replaced by per-transaction flags (in shared_state).
1035         Added c_confirmed_writers.
1036         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1037         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1038         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1039         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1040         * beginend.cc (GTM::gtm_transaction::begin_transaction,
1041         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1042         * libitm.texi: Document locking conventions and implementations in
1043         libitm.
1045 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1047         * libitm_i.h (next_tx): Add list of all threads' transaction.
1048         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1049         transaction with list of transactions and ...
1050         (thread_exit_handler): ... deregister here.
1051         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1052         * config/x86/target.h: Same.
1054 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1056         * testsuite/libitm.c++/static_ctor.C: New file.
1058 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1060         * testsuite/libitm.c/reentrant.c: New file.
1062 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1064         * config/generic/tls.h: Remove the free list for transactions and ...
1065         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1066         (GTM::gtm_transaction::operator delete): ... and release here.
1067         (thread_exit_handler): New. Delete tx when thread terminates.
1068         (thread_exit_init): New.
1069         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1070         * testsuite/libitm.c/txrelease.c: New file.
1072 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1074         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1075         * testsuite/libitm.c/notx.c: New file.
1077 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1079         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1080         * libitm_i.h (local_tid): ... to here.
1081         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1082         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1084 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1086         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1087         serialirr_onwrite_dispatch as new default for now.
1088         * method-serial.cc (serialirr_onwrite_dispatch): New.
1089         (GTM::dispatch_serialirr_onwrite): New.
1090         * libitm_i.h: Same.
1092 2011-08-12  Torvald Riegel  <triegel@redhat.com>
1094         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1095         * query.cc (_ITM_getTransactionId): There is no active transaction if
1096         the current nesting level is zero.
1098 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1100         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1101         rollback.
1103 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1105         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1106         transaction properties from the caller instead of from the
1107         transaction object.
1108         * libitm_i.h: Same.
1109         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1111 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1113         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1114         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1115         * dispatch.h: Same.
1116         * method-serial.cc: Same.
1117         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1118         flat nesting as default, and closed nesting on demand.
1119         (GTM::gtm_transaction::rollback): Same.
1120         (_ITM_abortTransaction): Same.
1121         (GTM::gtm_transaction::restart): Same.
1122         (GTM::gtm_transaction::trycommit): Same.
1123         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1124         (choose_code_path): New.
1125         (GTM::gtm_transaction_cp::save): New.
1126         (GTM::gtm_transaction_cp::commit): New.
1127         * query.cc (_ITM_inTransaction): Support flat nesting.
1128         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1129         (GTM::gtm_transaction): Support flat and closed nesting.
1130         * alloc.cc (commit_allocations_2): New.
1131         (commit_cb_data): New helper struct.
1132         (GTM::gtm_transaction::commit_allocations): Handle nested
1133         commits/rollbacks.
1134         * libitm.texi: Update user action section, add description of nesting.
1136 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1138         * libitm_i.h: Add closed nesting as restart reason.
1139         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1141 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1143         * useraction.cc: Use vector instead of list to store actions.
1144         Also support partial rollbacks for closed nesting.
1145         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1146         * beginend.cc: Same.
1148 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1150         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1151         closed_nesting flags, as well as a closed nesting alternative.
1152         * method-serial.cc: Same.
1153         (serial_dispatch): Renamed to serialirr_dispatch.
1154         (GTM::dispatch_serialirr): Same.
1155         (serial_dispatch_ul): Renamed to serial_dispatch.
1156         (GTM::dispatch_serial): Same.
1158 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1160         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1162 2011-07-28  Torvald Riegel  <triegel@redhat.com>
1164         * aatree.h (aa_tree::remove): New.
1165         (aa_tree::operator new): Add placement new.
1167 2011-07-02  Torvald Riegel  <triegel@redhat.com>
1169         * containers.h: New file.
1170         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1171         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1172         * common.h: ... to here.
1173         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1174         * local.cc: Same.
1176 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1178         * libitm_i.h (STATE_ABORTING): Remove.
1179         * beginend.cc (_ITM_abortTransaction): Same.
1180         (GTM::gtm_transaction::trycommit_and_finalize): Same.
1181         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1182         (_ITM_rollbackTransaction): Remove.
1183         * beginend.cc: Same.
1184         * libitm.map: Same.
1185         * libitm.texi: Document these ABI changes.
1187 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1189         * libitm.texi: New file.
1190         * Makefile.am: Add libitm.texi.
1191         * Makefile.in: Rebuild.
1193 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1195         * libitm_i.h: Move parts to common.h and dispatch.h.
1196         * common.h: New file.
1197         * dispatch.h: New file, new dispatch class.
1198         Rename GTM::abi_dispatch::lock_type to ls_modifier.
1199         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1200         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1201         decision to retry.cc.
1202         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1203         only.
1204         (GTM::gtm_transaction::decide_begin_dispatch): Same.
1205         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1206         logging.
1207         * barrier.cc: Use new barriers definitions.
1208         (abi_dispatch::memmove_overlap_check): New.
1209         * config/x86/x86_sse.cc: Same.
1210         * config/x86/x86_avx.cc: Same.
1211         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1212         memcpy.cc.
1213         * Makefile.in: Rebuild.
1214         * method-readonly.cc: Remove.
1215         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1216         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1218 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1220         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1221         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1222         * testsuite/libitm.c/dropref-2.c: Same.
1223         * testsuite/libitm.c/dropref.c: Same.
1225 2011-06-30  Torvald Riegel  <triegel@redhat.com>
1227         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1228         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1229         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1230         * alloc_c.cc: Same.
1231         * barrier.tpl: Same.
1232         * beginend.c: Same.
1233         * config/generic/tls.h: Same.
1234         * config/x86/tls.h: Same.
1235         * libitm_i.h: Same.
1236         * memcpy.cc: Same.
1237         * memset.cc: Same.
1238         * method-readonly.cc: Same.
1239         * method-serial.cc: Same.
1240         * method-wbetl.cc: Same.
1241         * retry.cc: Same.
1243 2011-03-03  Richard Henderson  <rth@redhat.com>
1245         * config/posix/rwlock.cc (write_upgrade): Add missing case.
1246         From Patrik Marlier <patrick.marlier@unine.ch>.
1248 2011-02-03  Richard Henderson  <rth@redhat.com>
1250         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1251         * configure.ac: Use it.
1252         * configure, config.h.in: Rebuild.
1253         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1254         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1255         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1256         * libitm.map: Use wildcards to match size_t mangling.
1258 2010-12-14  Richard Henderson  <rth@redhat.com>
1260         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1261         blocks of TIDs per thread.
1262         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1263         (setup_gtm_thr): Return the thread structure.
1264         * config/x86/tls.h (setup_gtm_thr): Likewise.
1266 2010-12-14  Richard Henderson  <rth@redhat.com>
1268         * clone.cc (table_lock): Remove.
1269         (find_clone): Don't take it.
1270         (ExcludeTransaction): New helper class.
1271         (_ITM_registerTMCloneTable): Use it.
1272         (_ITM_deregisterTMCloneTable): Likewise.
1274 2010-12-14  Richard Henderson  <rth@redhat.com>
1276         * config/x86/tls.h: New file.
1278 2010-07-15  Richard Henderson  <rth@redhat.com>
1280         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1281         * Makefile.in: Rebuild.
1283 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1285         * method-wbetl.cc (trydropreference): Fix source line.
1287 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
1289         * libitm.h: Add comment.
1290         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1292 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
1294         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1295         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1296         available, use pthread mutexes.
1297         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1298         * config.h.in: Regenerate.
1299         * configure: Regenerate.
1301 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
1303         * libitm.h (ITM_PURE): Define.
1304         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1306 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1308         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1309         (validate): Add comment.
1310         (trydropreference): New.
1311         * method-readonly.cc (class readonly_dispatch): Add
1312         trydropreference.
1313         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1314         Call trydropreference().
1315         * libitm.h (_ITM_dropReferences): Remove const attribute.
1316         * method-serial.cc (class serial_dispatch): Add trydropreference.
1317         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1319 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
1321         * memcpy.cc (do_memcpy): Comment.
1323 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
1325         * barrier.tpl: Add comments throughout.
1327 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1329         * method-wbetl.cc (struct w_entry): Add comments.
1330         (trycommit): Same.
1331         (rollback): Same.
1333 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
1335         * alloc_c.cc (_ITM_dropReferences): New.
1336         * libitm.map (_ITM_dropReferences): Add.
1337         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1338         * libitm_i.h (struct gtm_transaction): Declare
1339         drop_references_allocations and drop_references_local.
1340         * local.cc (rollback_local): Ignore memory when applicable.
1341         (drop_references_local): New.
1343 2010-06-23  Richard Henderson  <rth@redhat.com>
1345         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1346         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1347         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1348         * config/alpha/target.h: Likewise.
1349         * config/generic/tls.cc (gtm_mask_stack): Use it.
1351 2010-06-23  Richard Henderson  <rth@redhat.com>
1353         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1354         a mutex instead of trying a lock-free compare-and-swap on the list.
1355         (gtm_cacheline_page::operator delete): Likewise.
1357 2010-06-16  Richard Henderson  <rth@redhat.com>
1359         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1360         that overlap the libitm stack.
1361         * barrier.tpl: Mark incoming stack.
1362         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1363         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1364         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1365         * memcpy.cc, memset.cc: Likewise.
1366         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1367         * config/generic/tls.h (gtm_thread): Add stack_top member.
1368         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1369         * libitm_i.h (gtm_mask_stack): Declare.
1370         * config/generic/tls.cc: New file.
1371         * Makefile.am (libitm_la_SOURCES): Add it.
1372         (AM_CXXFLAGS): Turn off exceptions.
1373         * Makefile.in: Rebuild.
1375 2010-06-16  Richard Henderson  <rth@redhat.com>
1377         * alloc.cc (struct gtm_alloc_action): Move definition ...
1378         * libitm_i.h: ... here.
1379         (class gtm_transaction): Declare new and delete.
1380         * beginend.cc (alloc_tx): Reformulate as operator new.
1381         (free_tx): Reformulate as operator delete.
1382         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1384 2010-06-11  Richard Henderson  <rth@redhat.com>
1386         * clone.cc (clone_entry_compare): Fix typo.
1387         From Patrik Marlier <patrick.marlier@unine.ch>.
1389 2010-05-13  Richard Henderson  <rth@redhat.com>
1391         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1392         in extern "C".
1394 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
1396         * libitm_i.h (struct gtm_transaction): Remove
1397         get_allocation_size.
1398         (record_allocation): Remove size parameter.
1399         * libitm.map (_ITM_realloc): Remove.
1400         * alloc_c.cc (_ITM_realloc): Remove.
1401         (_ITM_malloc): Remove size argument to record_allocation.
1402         (_ITM_calloc): Same.
1403         * alloc_cpp.cc (_ZGTtnwm): Same.
1404         (_ZGTtnwmRKSt9nothrow_t): Same.
1405         (_ZGTtnam): Same.
1406         (_ZGTtnamRKSt9nothrow_t): Same.
1407         * alloc.cc (struct gtm_alloc_action): Remove size.
1408         (get_allocation_size): Remove.
1409         (commit_allocations): Add comment.
1410         (record_allocation): Remove size parameter.
1411         (forget_allocation): Remove set of size.
1413 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
1415         * Makefile.am (abi_version): New.
1416         (AM_CXXFLAGS): Pass abi_version.
1417         * Makefile.in: Regenerate.
1418         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1420 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
1422         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1423         _ITM_getTMCloneOrIrrevokable.
1424         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1425         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1427 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
1429         * configure.ac: Remove Linux futex support.
1430         * configure.tgt (config_path): Same.
1431         * Makefile.am: Same.
1432         * config/linux: Remove entire directory.
1433         * configure: Rebuild.
1434         * Makefile.in: Rebuild.
1435         * testsuite/Makefile.in: Rebuild.
1437 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
1439         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1440         switching to serial mode.
1441         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1443 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
1445         * configure.tgt: Add emacs -*- tags.
1446         * barrier.tpl: Same.
1448 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
1450         * Makefile.am: Rename serial.cc to method-serial.cc.
1451         * Makefile.in: Regenerate with automake 1.11.1.
1452         * testsuite/Makefile.in: Same.
1453         * aclocal.m4: Regenerate with aclocal 1.11.1.
1454         * method-serial.cc: Rename from serial.cc.
1455         * libitm_i.h (struct gtm_transaction): Update comment on
1456         serialirr_mode.
1458 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
1460         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1461         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1463 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
1465         * configure: Rebuild.
1467 2009-11-12  Richard Henderson  <rth@redhat.com>
1469         * Rewrite everything in C++.
1471 2009-11-03  Richard Henderson  <rth@redhat.com>
1473         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1474         * Makefile.am (libitm_la_SOURCES): Add them.
1475         * configure.ac (ARCH_X86): New conditional.
1476         * Makefile.in, configure: Rebuild.
1477         * configure.tgt: Set up ARCH; do cflags setup at the same time.
1478         Move futex setup into "other system configury" case.
1479         * local.c (rollback_local): Merge into ...
1480         (GTM_rollback_local): ... here.
1481         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1482         (_ITM_LB): Define as an alias to GTM_LB.
1484 2009-11-03  Richard Henderson  <rth@redhat.com>
1486         * method-readonly.c: New file.
1487         * Makefile.am (libitm_la_SOURCES): Add it.
1488         * Makefile.in: Rebuild.
1489         * beginend.c (gtm_stmlock_array, gtm_clock): New.
1490         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1491         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1492         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1493         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1494         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1495         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1496         gtm_get_clock, gtm_inc_clock): New.
1497         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1498         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1499         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1500         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1501         replace uses with new libitm_i.h symbols.
1502         (dispatch_wbetl): Rename from wbetl_dispatch.
1503         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1504         away from dispatch_readonly; abort if the beginTransaction call
1505         asserted that the transaction was readonly.
1507 2009-11-03  Richard Henderson  <rth@redhat.com>
1509         * memset.c: New file.
1510         * Makefile.am (libitm_la_SOURCES): Add it.
1511         * Makefile.in: Rebuild.
1512         * testsuite/libitm.c/memset-1.c: New.
1514 2009-11-03  Richard Henderson  <rth@redhat.com>
1516         * dispatch.c: Remove file.
1517         * useraction.c (struct gtm_user_action): Move from libitm.h.
1518         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1519         (serial_memset, serial_memmove, serial_memcpy): Remove.
1520         (serial_W*, serial_R*): Remove.
1521         (serial_dispatch): Update to match.
1522         * configure.ac: Move Werror down below configure checks.  Don't
1523         check for sys/loadavg.h, do check for malloc.h.  Don't check for
1524         getloadavg and clock_gettime; do check for memalign, posix_memalign.
1525         Use GCC_AC_FUNC_MMAP_BLACKLIST
1526         * libitm.h: Split out all internal items to...
1527         * libitm_i.h: ... here.  New file.
1528         * copymask.c: New file.
1529         * local.c (struct gtm_local_undo): Move from libitm.h.
1530         (GTM_alloc_local): Rename from alloc_local; export.
1531         * memcpy.c: New file.
1532         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1533         * config/posix/page.c: New file.
1534         * config/posix/target_tls.h: Remove file.
1535         * barrier.c: New file.
1536         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1537         copymask.c, page.c.
1538         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1539         * method-wbetl.c: Rewrite for new cacheline methods.
1540         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1542         * config/alpha/sjlj.S: Fix typo.
1543         * config/alpha/target_i.h: Copy functions from alpha/target.h.
1544         * config/alpha/copymask.c: New file.
1545         * config/alpha/target.h (CACHELINE_SIZE): New.
1546         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1548         * config/x86/target_i.h: Copy functions from x86/target.h.
1549         * config/x86/copymask.c: New file.
1550         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1551         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1552         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1553         * config/x86/target_tls.h: Move contents to target_i.h.
1555         * testsuite/libitm.c/clone-1.c: Include libitm.h.
1556         * testsuite/libitm.c/memcpy-1.c: New.
1558 2009-10-22  Richard Henderson  <rth@redhat.com>
1560         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1561         (AM_CCASFLAGS): New.
1562         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
1563         saving/restoring _AC_ARG_VAR_PRECIOUS.
1564         * Makefile.in, aclocal.m4, config.h.in, configure,
1565         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1567 2009-10-22  Richard Henderson  <rth@redhat.com>
1569         * testsuite/*: Update for new compiler syntax.
1571 2009-10-21  Richard Henderson  <rth@redhat.com>
1573         * libitm.h (_ITM_abortReason): Add outerAbort.
1575 2009-08-03  Richard Henderson  <rth@redhat.com>
1577         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1578         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1579         * method-wbetl.c (struct w_entry): Remove mask.
1580         (wbetl_write, wbetl_load): Return pointer to word containing the data;
1581         adjust all callers.
1583 2009-07-22  Richard Henderson  <rth@redhat.com>
1585         * eh_cpp.c: New file.
1586         * Makefile.am (libitm_la_SOURCES): Add it.
1587         * Makefile.in: Rebuild.
1588         * beginend.c (GTM_rollback_transaction): Undo exception state.
1589         (GTM_trycommit_transaction): Mark inline.
1590         (GTM_trycommit_and_finalize_transaction): Split out from ...
1591         (_ITM_commitTransaction): ... here.
1592         (_ITM_commitTransactionEH): New function.
1593         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1594         cxa_unthrown, eh_in_flight; reorder.
1596         * testsuite/libitm.c++/c++.exp: New.
1597         * testsuite/libitm.c++/eh-1.C: New.
1599         * aatree.c (aa_free): Remove REGPARM.
1600         * aatree.h: Remove all REGPARM.
1602 2009-07-18  Richard Henderson  <rth@redhat.com>
1604         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1605         * Makefile.am (libitm_la_SOURCES): Add them.
1606         * Makefile.in: Rebuild.
1607         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1608         (GTM_trycommit_transaction): Likewise.
1609         * libitm.h: Include aatree.h
1610         (struct gtm_alloc_action): New.
1611         (struct gtm_transaction): Add alloc_actions.
1612         (GTM_record_allocation, GTM_forget_allocation): Declare.
1613         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1614         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1615         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1616         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1617         _ZGTtdaPvRKSt9nothrow_t): Export.
1619 2009-07-18  Richard Henderson  <rth@redhat.com>
1621         * target_tls.h: Move ...
1622         * config/posix/target_tls.h: ... here.
1624 2009-07-07  Richard Henderson  <rth@redhat.com>
1626         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1628 2009-07-07  Richard Henderson  <rth@redhat.com>
1630         * Update to GPL3.
1632 2009-07-07  Richard Henderson  <rth@redhat.com>
1634         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1635         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1637         * configure.tgt: Don't use -ftls-model for x86 linux.
1638         * libitm.h: Include target.h after standard includes.
1639         (_gtm_thr): Rename from gtm_thr.
1640         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1641         (gtm_disp, set_gtm_disp): New.
1642         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1643         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1644         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1646 2009-07-07  Richard Henderson  <rth@redhat.com>
1648         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1650 2009-07-06  Richard Henderson  <rth@redhat.com>
1652         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1653         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1654         (_ITM_beginTransaction): Take variadic arguments.
1655         (_ITM_registerThrownObject): Declare.
1656         * beginend.c, serial.c: Update.
1657         * libitm.map: Add _ITM_registerThrownObject.
1659 2009-01-28  Richard Henderson  <rth@redhat.com>
1661         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1662         * Makefile.in: Rebuild.
1663         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1664         (GTM_restart_transaction): Fix uninstrumented code check.
1665         * retry.c (GTM_decide_retry_strategy): Add serial check.
1666         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1667         automatically go irrevokable when in serial mode.
1668         * clone.c: New file.
1669         * libitm.h, libitm.map: Update.
1671 2009-01-27  Richard Henderson  <rth@redhat.com>
1673         * Makefile.am (LTCCASCOMPILE): Define.
1674         (libitm_la_SOURCES): Add methid-wbetl.c.
1675         * testsuite/Makefile.am: New
1676         * configure.ac: Add testsuite/Makefile.
1677         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1678         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1679         (_ITM_abortTransaction): Finalize implementation method; pass
1680         transaction properties to longjmp.
1681         (GTM_restart_transaction): Split out from ...
1682         (_ITM_commitTransaction): ... here.
1683         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1684         Move to config/x86/target.h.
1685         * config/linux/alpha/futex_bits.h: New.
1686         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1687         * config/x86/target.h: Disable target types for 32-bit.
1688         * config/alpha/sjlj.S, config/alpha/target.h: New.
1689         * libitm.h (struct gtm_dispatch): Add init, fini.
1690         (enum restart_reason): New.
1691         (struct gtm_transaction): Add method and restarts.
1692         * retry.c (GTM_decide_retry_strategy): Implement.
1693         * serial.c (serial_init, serial_fini): New.
1694         (GTM_serialmode): Finialize outgoing method.
1695         * method-wbetl.c: New.
1697 2008-12-09  Richard Henderson  <rth@redhat.com>
1699         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1700         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1701         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1702         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1703         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1704         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1705         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1706         * serial.c (serial_R##T, serial_W##T): Likewise.
1708 2008-11-21  Richard Henderson  <rth@redhat.com>
1710         * Initial commit.