* configure.tgt: Add sh* case.
[official-gcc.git] / libitm / ChangeLog
blobff93a53ba9f02f0765b6a9f15cdddeefcd00e26d
1 2011-12-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3         * configure.tgt: Add sh* case.
4         * config/sh/target.h: New file.
5         * config/sh/sjlj.S: New file.
6         * config/linux/sh/futex_bits.h: New file.
8 2011-12-14  Richard Henderson  <rth@redhat.com>
10         * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
11         * config/arm/sjlj.S, config/arm/target.h: New files.
12         * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
13         (cfi_rel_offset): New.
14         * config/linux/futex_bits.h: New file.
15         * config/linux/futex.cc: Include futex_bits.h here...
16         * config/linux/futex.h: ... not here.
17         * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
18         * configure.ac (ARCH_AM): New conditional.
19         * Makefile.in, configure: Rebuild.
20         * configure.tgt: Handle ARM.
22 2011-12-13  Richard Henderson  <rth@redhat.com>
24         * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
25         signed/unsigned comparison werror.
27         * local_atomic: New file.
28         * libitm_i.h: Include it.
29         (gtm_thread::shared_state): Use atomic template.
30         * beginend.cc (GTM::gtm_clock): Use atomic template.
31         (global_tid): Use atomic template if 64-bit atomics available.
32         (gtm_thread::gtm_thread): Update shared_state access.
33         (gtm_thread::trycommit): Likewise.
34         (choose_code_path): Update global_tid access.
35         * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
36         * stmlock.h (GTM::gtm_clock): Use atomic template.
37         (gtm_get_clock, gtm_inc_clock): Update accesses.
38         * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
39         redundant __sync_synchronize after atomic shared_state access.
40         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
41         (gtm_rwlock::write_lock_generic): Likewise.
42         (gtm_rwlock::read_unlock): Likewise.
43         * config/alpha/target.h (atomic_read_barrier): Remove.
44         (atomic_write_barrier): Remove.
45         * config/x86/target.h (atomic_read_barrier): Remove.
46         (atomic_write_barrier): Remove.
48 2011-11-30  Richard Henderson  <rth@redhat.com>
50         * libitm_i.h (GTM_longjmp): Swap first and second arguments.
51         * beginend.c (_ITM_abortTransaction): Update to match.
52         (GTM::gtm_thread::restart): Likewise.
53         * config/alpha/sjlj.S (GTM_longjmp): Likewise.
54         * config/x86/sjlj.S (GTM_longjmp): Likewise.
56 2011-11-23  Iain Sandoe  <iains@gcc.gnu.org>
58         * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
59         * Makefile.in: Regenerate.
61 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
63         * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
64         * alloc_cpp.cc: Generate dummy functions if we don't
65         HAVE_ELF_STYLE_WEAKREF.
66         * eh_cpp.cc: Likewise.
67         * configure: Regenerate.
68         * aclocal.m4:  Likewise.
69         * config.h.in: Likewise.
70         * Makefile.in: Likewise.
71         * testsuite/Makefile.in: Likewise.
73 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
75         * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
76         __USER_LABEL_PREFIX__ for targets that use it.
77         (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
78         (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
79         in portability to non-elf targets.
80         (GTM_longjmp): Likewise.
81         * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
82         where required.
84 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
86         * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
87         * testsuite/libitm.c/memset-1.c: Likewise.
89 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
91         * configure: Regenerate.
93 2011-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
95         * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
96         (LIBITM_ENABLE_SYMVERS): Handle sun style.
97         * Makefile.am: Handle sun style versioning.
98         (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
99         * configure: Regenerate.
100         * Makefile.in: Regenerate.
102 2011-11-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
104         * config/generic/asmcfi.h: Fix comment.
105         * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
106         sequence without .hidden support, error for non-ELF targets.
107         (GTM_longjmp) [__ELF__]: Only use .hidden if
108         HAVE_ATTRIBUTE_VISIBILITY.
110 2011-11-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
112         * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
113         _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
114         Dummy functions.
115         * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
116         __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
118 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
120         PR bootstrap/51098
121         * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
122         * configure: Regenerate.
124 2011-11-14  H.J. Lu  <hongjiu.lu@intel.com>
126         * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
128 2011-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
130         * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
131         .hidden.
132         (.note.GNU-stack): Only use if __linux__.
133         * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
134         * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
135         * testsuite/libitm.c/reentrant.c: Likewise.
136         * testsuite/libitm.c/simple-2.c: Likewise.
137         * testsuite/libitm.c/txrelease.c: Likewise.
138         * testsuite/libitm.c++/static_ctor.C: Likewise.
140 2011-11-10  Richard Henderson  <rth@redhat.com>
142         * config/x86/x86_avx.cc: Remove #undef __AVX__ hack.  Tidy comments.
143         * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
144         * configure.ac (ARCH_X86_AVX): New conditional.
145         * Makefile.in, configure: Rebuild.
147 2011-11-09  Richard Henderson  <rth@redhat.com>
149         * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
150         * configure.ac: Use it.
151         * config.h.in, configure: Rebuild.
152         * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
154 2011-11-09  Richard Henderson  <rth@redhat.com>
156         * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
157         * config/alpha/unaligned.h: Remove file.
158         * config/generic/unaligned.h: Remove file.
159         * config/x86/unaligned.h: Remove file.
160         * config/generic/cachepage.h: Remove file.
161         * config/posix/cachepage.cc: Remove file.
162         * config/generic/cacheline.cc: Remove file.
163         * config/x86/cacheline.cc: Remove file.
164         * config/generic/cacheline.h (gtm_cacheline): Remove the
165         store_mask, copy_mask, copy_mask_wb methods.
166         * config/x86/cacheline.h: Likewise.
167         * config/alpha/cacheline.h: Fall back to generic after setting size.
168         * config/generic/tls.cc (gtm_mask_stack): Remove.
169         * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
170         (GTM_vpalignr_table): Remove.
171         * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
172         (GTM_pshift_table): Remove.
173         * config/libitm_i.h: Don't include cachepage.h.
174         * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
175         * Makefile.in, testsuite/Makefile.in: Rebuild.
177 2011-11-09  Richard Henderson  <rth@redhat.com>
179         * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
180         to emit branch prediction hint.
182         * config/x86/sjlj.S: Protect elf directives with __ELF__.
183         Protect .note.GNU-stack with __linux__.
185         * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
186         * configure, aclocal.m4, config.h.in: Rebuild.
187         * config/generic/asmcfi.h: New file.
188         * config/x86/sjlj.S: Use it.
190 2011-11-08  Richard Henderson  <rth@redhat.com>
192         * local.cc (_ITM_LB): Use a normal call, not a function alias.
194 2011-11-08  Richard Henderson  <rth@redhat.com>
196         * configure.tgt: Test correct directory for supported cpus.
198         * configure.ac: Exit if unsupported.
199         * configure: Rebuild.
200         * configure.tgt: Delete boilerplate from libgomp for unsupported
201         targets.  Set UNSUPPORTED for unsupported targets.
203 2011-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
205         * configure.tgt: Handle i386 like i[456]86.
206         * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
207         take address.
208         * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
209         !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
211 2011-11-05  Aldy Hernandez  <aldyh@redhat.com>
213         * method-wbetl.cc: Update copyright notice.
214         * aatree.cc: Same.
215         * util.cc: Same.
216         * libitm.h: Same.
217         * memset.cc: Same.
218         * eh_cpp.cc: Same.
219         * barrier.tpl: Same.
220         * useraction.cc: Same.
221         * stmlock.h: Same.
222         * memcpy.cc: Same.
223         * common.h: Same.
224         * config/generic/tls.cc: Same.
225         * config/generic/cacheline.h: Same.
226         * config/generic/cachepage.h: Same.
227         * config/generic/cacheline.cc: Same.
228         * config/generic/unaligned.h: Same.
229         * config/x86/cacheline.h: Same.
230         * config/x86/cacheline.cc: Same.
231         * config/x86/unaligned.h: Same.
232         * config/alpha/cacheline.h: Same.
233         * config/alpha/unaligned.h: Same.
234         * config/alpha/sjlj.S: Same.
235         * config/posix/cachepage.cc: Same.
236         * config/linux/futex.h: Same.
237         * config/linux/alpha/futex_bits.h: Same.
239 2011-11-04  Torvald Riegel  <triegel@redhat.com>
241         * libitm.texi: No cover text and invariant sections.
243 2011-11-03  Richard Henderson  <rth@redhat.com>
245         * local_type_traits: New file.
246         * libitm_i.h: Use it.  Use C headers, not C++ wrappers.
248 2011-11-03  Richard Henderson  <rth@redhat.com>
250         * configure.ac: Don't test for gfortran.
251         * configure: Rebuild.
253         * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
254         * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
256 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
258         * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
259         * testsuite/libitm.c/memset-1.c: Same.
260         * testsuite/libitm.c/c.exp: Same.
261         * testsuite/lib/libitm-dg.exp: Same.
262         * testsuite/lib/libitm.exp: Same.
263         * testsuite/libitm.c++/c++.exp: Same.
265 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
267         * testsuite/config/default.exp: Update copyright date.
268         * configure.ac: Add copyright info.
269         * configure.tgt: Same.
271 2011-11-03  Aldy Hernandez  <aldyh@redhat.com>
273         * testsuite/libitm.c/reentrant.c: XFAIL.
274         * testsuite/libitm.c++/static_ctor.C: XFAIL.
276 2011-10-29  Torvald Riegel  <triegel@redhat.com>
278         * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
279         handle aborts.
280         (_ITM_abortTransaction): Handle aborts of outer transactions.
281         * libitm_i.h: Same.
282         * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
283         * libitm.texi: Document aborts of outer transactions.
284         * testsuite/libitm.c/cancel.c: New file.
286 2011-10-19  Torvald Riegel  <triegel@redhat.com>
288         * testsuite/*: Change __transaction to __transaction_atomic or
289         __transaction_relaxed.
291 2011-10-19  Torvald Riegel  <triegel@redhat.com>
293         * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
294         (gtm_thr): Same.
296 2011-10-19  Torvald Riegel  <triegel@redhat.com>
298         * libitm_i.h: Add gl_wt dispatch.
299         * retry.cc (parse_default_method): Same.
300         * method-gl.cc: New file.
301         * Makefile.am: Use method-gl.cc.
302         * Makefile.in: Rebuild.
304 2011-10-19  Torvald Riegel  <triegel@redhat.com>
306         * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
307         safety if requested by a TM method.
308         * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
309         privatization safety.
310         * method-serial.cc: Same.
312 2011-10-19  Torvald Riegel  <triegel@redhat.com>
314         * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
315         (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
316         undolog-related member functions from *_local to *_undolog.
317         * local.cc (gtm_thread::commit_undolog): Same.
318         * beginend.cc (GTM::gtm_thread::trycommit): Same.
319         (GTM::gtm_thread::rollback): Roll back undolog before
320         dispatch-specific rollback.
322 2011-10-19  Torvald Riegel  <triegel@redhat.com>
324         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
325         re-initialization of the current method group.
326         * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
328 2011-10-19  Torvald Riegel  <triegel@redhat.com>
330         * alloc.cc (commit_allocations_2): Do not free transaction-local
331         memory when committing a nested transaction.
333 2011-10-19  Torvald Riegel  <triegel@redhat.com>
335         * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
336         serial-irrevocable dispatch, not serial.
338 2011-10-19  Torvald Riegel  <triegel@redhat.com>
340         * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
341         declarations.
342         * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
343         * method-serial.cc: Implement begin_or_restart().
344         * beginend.cc (GTM::gtm_thread::begin_transaction): Call
345         dispatch-specific begin_or_restart().
346         (GTM::gtm_thread::restart): Same.
348 2011-08-23  Torvald Riegel  <triegel@redhat.com>
350         * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
351         restarting without switching to serial mode.
352         (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
353         transaction state. Choose closed-nesting alternative if available.
354         (GTM::gtm_thread::set_default_dispatch): New.
355         (parse_default_method): New.
356         (GTM::gtm_thread::number_of_threads_changed): New.
357         * method-serial.cc (GTM::serial_mg): New method group class.
358         (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
359         fini.
360         (GTM::serial_dispatch): Same.
361         (GTM::serialirr_onwrite_dispatch): Same.
362         (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
363         * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
364         registered threads.
365         (GTM::gtm_thread::gtm_thread): Same.
366         (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
367         (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
368         (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
369         choose dispatch but set state according to dispatch here.
370         * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
371         (GTM::method_group): New class.
372         (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
373         * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
374         * libitm.texi: Document TM methods, method groups, method life cycle.
375         Rename method sets to method groups.
377 2011-08-23  Torvald Riegel  <triegel@redhat.com>
379         * config/x86/tls.h: Moved to ...
380         * config/linux/x86/tls.h: ... here.
382 2011-08-23  Torvald Riegel  <triegel@redhat.com>
384         * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
385         Add X32 support.
386         * config/x86/sjlj.S: Same.
388 2011-08-19  Torvald Riegel  <triegel@redhat.com>
390         * config/linux/rwlock.h: New file.
391         * config/linux/rwlock.c: New file.
392         * configure.ac: Reenable futex support (undo SVN rev 157758).
393         * Makefile.am: Same.
394         * configure.tgt: Same.
395         * config/linux/alpha/futex_bits.h: Same.
396         * config/linux/futex.h: Same. Return number of woken processes.
397         * config/linux/futex.cc: Same.
398         (futex_wait): Remove spinning.
399         * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
400         Use __x86_64__ instead of __LP64__.
401         * aclocal.m4: Include generic futex checks.
402         * configure: Rebuild.
403         * Makefile.in: Rebuild.
404         * testsuite/Makefile.in: Rebuild.
405         * beginend.cc: Include pthread.h.
406         * config/posix/cachepage.cc: Same.
408 2011-08-12  Torvald Riegel  <triegel@redhat.com>
410         * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
411         (abi_disp, set_abi_disp): Move to tx's TLS slot.
412         (set_gtm_thr): New.
413         * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
414         (set_gtm_thr): New.
415         (GTM::gtm_thread::thread_num): Removed.
416         (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
417         * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
418         tx-to-thread renaming.
419         * beginend.cc: Adapted to tx-to-thread renaming.
420         (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
421         (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
422         * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
423         gtm_transaction to gtm_thread.
424         (_ITM_getThreadnum): Removed. Not supported anymore.
425         * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
426         * libitm.texi: Documented that _ITM_getThreadnum is not supported.
427         * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
428         gtm_tx-to-gtm_thr renaming if necessary.
429         * eh_cpp.cc: Same.
430         * local.cc: Same.
431         * retry.cc: Same.
432         * clone.cc: Same.
433         * alloc.cc: Same.
434         * alloc_c.cc: Same.
435         * alloc_cpp.cc: Same.
436         * method-serial.cc: Same.
437         * config/generic/tls.cc: Same.
438         * config/posix/rwlock.h (gtm_rwlock): Same.
439         * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
441 2011-08-12  Torvald Riegel  <triegel@redhat.com>
443         * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
444         implementation.
445         (gtm_rwlock::read_unlock): Same.
446         (gtm_rwlock::write_lock_generic): New. Generalized from ...
447         (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
448         * libitm_i.h (GTM::gtm_transaction): Added shared_state.
449         * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
450         w_upgrade. Replaced by per-transaction flags (in shared_state).
451         Added c_confirmed_writers.
452         (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
453         GTM::gtm_rwlock::write_upgrade): Add tx parameter.
454         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
455         * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
456         * beginend.cc (GTM::gtm_transaction::begin_transaction,
457         _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
458         * libitm.texi: Document locking conventions and implementations in
459         libitm.
461 2011-08-12  Torvald Riegel  <triegel@redhat.com>
463         * libitm_i.h (next_tx): Add list of all threads' transaction.
464         * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
465         transaction with list of transactions and ...
466         (thread_exit_handler): ... deregister here.
467         * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
468         * config/x86/target.h: Same.
470 2011-08-12  Torvald Riegel  <triegel@redhat.com>
472         * testsuite/libitm.c++/static_ctor.C: New file.
474 2011-08-12  Torvald Riegel  <triegel@redhat.com>
476         * testsuite/libitm.c/reentrant.c: New file.
478 2011-08-12  Torvald Riegel  <triegel@redhat.com>
480         * config/generic/tls.h: Remove the free list for transactions and ...
481         * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
482         (GTM::gtm_transaction::operator delete): ... and release here.
483         (thread_exit_handler): New. Delete tx when thread terminates.
484         (thread_exit_init): New.
485         (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
486         * testsuite/libitm.c/txrelease.c: New file.
488 2011-08-12  Torvald Riegel  <triegel@redhat.com>
490         * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
491         * testsuite/libitm.c/notx.c: New file.
493 2011-08-12  Torvald Riegel  <triegel@redhat.com>
495         * config/generic/tls.h (gtm_thread): Move local_tid from here ...
496         * libitm_i.h (local_tid): ... to here.
497         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
498         (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
500 2011-08-12  Torvald Riegel  <triegel@redhat.com>
502         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
503         serialirr_onwrite_dispatch as new default for now.
504         * method-serial.cc (serialirr_onwrite_dispatch): New.
505         (GTM::dispatch_serialirr_onwrite): New.
506         * libitm_i.h: Same.
508 2011-08-12  Torvald Riegel  <triegel@redhat.com>
510         * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
511         * query.cc (_ITM_getTransactionId): There is no active transaction if
512         the current nesting level is zero.
514 2011-07-28  Torvald Riegel  <triegel@redhat.com>
516         * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
517         rollback.
519 2011-07-28  Torvald Riegel  <triegel@redhat.com>
521         * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
522         transaction properties from the caller instead of from the
523         transaction object.
524         * libitm_i.h: Same.
525         * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
527 2011-07-28  Torvald Riegel  <triegel@redhat.com>
529         * local.cc (gtm_transaction::rollback_local): Support closed nesting.
530         * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
531         * dispatch.h: Same.
532         * method-serial.cc: Same.
533         * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
534         flat nesting as default, and closed nesting on demand.
535         (GTM::gtm_transaction::rollback): Same.
536         (_ITM_abortTransaction): Same.
537         (GTM::gtm_transaction::restart): Same.
538         (GTM::gtm_transaction::trycommit): Same.
539         (GTM::gtm_transaction::trycommit_and_finalize): Removed.
540         (choose_code_path): New.
541         (GTM::gtm_transaction_cp::save): New.
542         (GTM::gtm_transaction_cp::commit): New.
543         * query.cc (_ITM_inTransaction): Support flat nesting.
544         * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
545         (GTM::gtm_transaction): Support flat and closed nesting.
546         * alloc.cc (commit_allocations_2): New.
547         (commit_cb_data): New helper struct.
548         (GTM::gtm_transaction::commit_allocations): Handle nested
549         commits/rollbacks.
550         * libitm.texi: Update user action section, add description of nesting.
552 2011-07-28  Torvald Riegel  <triegel@redhat.com>
554         * libitm_i.h: Add closed nesting as restart reason.
555         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
557 2011-07-28  Torvald Riegel  <triegel@redhat.com>
559         * useraction.cc: Use vector instead of list to store actions.
560         Also support partial rollbacks for closed nesting.
561         * libitm_i.h (GTM::gtm_transaction::user_action): Same.
562         * beginend.cc: Same.
564 2011-07-28  Torvald Riegel  <triegel@redhat.com>
566         * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
567         closed_nesting flags, as well as a closed nesting alternative.
568         * method-serial.cc: Same.
569         (serial_dispatch): Renamed to serialirr_dispatch.
570         (GTM::dispatch_serialirr): Same.
571         (serial_dispatch_ul): Renamed to serial_dispatch.
572         (GTM::dispatch_serial): Same.
574 2011-07-28  Torvald Riegel  <triegel@redhat.com>
576         * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
578 2011-07-28  Torvald Riegel  <triegel@redhat.com>
580         * aatree.h (aa_tree::remove): New.
581         (aa_tree::operator new): Add placement new.
583 2011-07-02  Torvald Riegel  <triegel@redhat.com>
585         * containers.h: New file.
586         * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
587         * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
588         * common.h: ... to here.
589         (local_undo): Use GTM::vector for gtm_transaction::local_undo.
590         * local.cc: Same.
592 2011-06-30  Torvald Riegel  <triegel@redhat.com>
594         * libitm_i.h (STATE_ABORTING): Remove.
595         * beginend.cc (_ITM_abortTransaction): Same.
596         (GTM::gtm_transaction::trycommit_and_finalize): Same.
597         * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
598         (_ITM_rollbackTransaction): Remove.
599         * beginend.cc: Same.
600         * libitm.map: Same.
601         * libitm.texi: Document these ABI changes.
603 2011-06-30  Torvald Riegel  <triegel@redhat.com>
605         * libitm.texi: New file.
606         * Makefile.am: Add libitm.texi.
607         * Makefile.in: Rebuild.
609 2011-06-30  Torvald Riegel  <triegel@redhat.com>
611         * libitm_i.h: Move parts to common.h and dispatch.h.
612         * common.h: New file.
613         * dispatch.h: New file, new dispatch class.
614         Rename GTM::abi_dispatch::lock_type to ls_modifier.
615         RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
616         * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
617         decision to retry.cc.
618         * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
619         only.
620         (GTM::gtm_transaction::decide_begin_dispatch): Same.
621         * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
622         logging.
623         * barrier.cc: Use new barriers definitions.
624         (abi_dispatch::memmove_overlap_check): New.
625         * config/x86/x86_sse.cc: Same.
626         * config/x86/x86_avx.cc: Same.
627         * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
628         memcpy.cc.
629         * Makefile.in: Rebuild.
630         * method-readonly.cc: Remove.
631         * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
632         Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
634 2011-06-30  Torvald Riegel  <triegel@redhat.com>
636         * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
637         * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
638         * testsuite/libitm.c/dropref-2.c: Same.
639         * testsuite/libitm.c/dropref.c: Same.
641 2011-06-30  Torvald Riegel  <triegel@redhat.com>
643         * config/generic/tls.h (gtm_disp): Rename to abi_disp.
644         * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
645         * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
646         * alloc_c.cc: Same.
647         * barrier.tpl: Same.
648         * beginend.c: Same.
649         * config/generic/tls.h: Same.
650         * config/x86/tls.h: Same.
651         * libitm_i.h: Same.
652         * memcpy.cc: Same.
653         * memset.cc: Same.
654         * method-readonly.cc: Same.
655         * method-serial.cc: Same.
656         * method-wbetl.cc: Same.
657         * retry.cc: Same.
659 2011-03-03  Richard Henderson  <rth@redhat.com>
661         * config/posix/rwlock.cc (write_upgrade): Add missing case.
662         From Patrik Marlier <patrick.marlier@unine.ch>.
664 2011-02-03  Richard Henderson  <rth@redhat.com>
666         * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
667         * configure.ac: Use it.
668         * configure, config.h.in: Rebuild.
669         * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
670         (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
671         _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
672         * libitm.map: Use wildcards to match size_t mangling.
674 2010-12-14  Richard Henderson  <rth@redhat.com>
676         * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
677         blocks of TIDs per thread.
678         * config/generic/tls.h (struct gtm_thread): Add local_tid member.
679         (setup_gtm_thr): Return the thread structure.
680         * config/x86/tls.h (setup_gtm_thr): Likewise.
682 2010-12-14  Richard Henderson  <rth@redhat.com>
684         * clone.cc (table_lock): Remove.
685         (find_clone): Don't take it.
686         (ExcludeTransaction): New helper class.
687         (_ITM_registerTMCloneTable): Use it.
688         (_ITM_deregisterTMCloneTable): Likewise.
690 2010-12-14  Richard Henderson  <rth@redhat.com>
692         * config/x86/tls.h: New file.
694 2010-07-15  Richard Henderson  <rth@redhat.com>
696         * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
697         * Makefile.in: Rebuild.
699 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
701         * method-wbetl.cc (trydropreference): Fix source line.
703 2010-07-13  Aldy Hernandez  <aldyh@redhat.com>
705         * libitm.h: Add comment.
706         * libitm_i.h (begin_transaction): Add ITM_REGPARM.
708 2010-07-07  Aldy Hernandez  <aldyh@redhat.com>
710         * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
711         * beginend.cc (begin_transaction): If 64-bit sync builtins are not
712         available, use pthread mutexes.
713         * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
714         * config.h.in: Regenerate.
715         * configure: Regenerate.
717 2010-07-06  Aldy Hernandez  <aldyh@redhat.com>
719         * libitm.h (ITM_PURE): Define.
720         Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
722 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
724         * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
725         (validate): Add comment.
726         (trydropreference): New.
727         * method-readonly.cc (class readonly_dispatch): Add
728         trydropreference.
729         * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
730         Call trydropreference().
731         * libitm.h (_ITM_dropReferences): Remove const attribute.
732         * method-serial.cc (class serial_dispatch): Add trydropreference.
733         * libitm_i.h (struct gtm_dispatch): Add trydropreference.
735 2010-06-28  Aldy Hernandez  <aldyh@redhat.com>
737         * memcpy.cc (do_memcpy): Comment.
739 2010-06-25  Aldy Hernandez  <aldyh@redhat.com>
741         * barrier.tpl: Add comments throughout.
743 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
745         * method-wbetl.cc (struct w_entry): Add comments.
746         (trycommit): Same.
747         (rollback): Same.
749 2010-06-24  Aldy Hernandez  <aldyh@redhat.com>
751         * alloc_c.cc (_ITM_dropReferences): New.
752         * libitm.map (_ITM_dropReferences): Add.
753         * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
754         * libitm_i.h (struct gtm_transaction): Declare
755         drop_references_allocations and drop_references_local.
756         * local.cc (rollback_local): Ignore memory when applicable.
757         (drop_references_local): New.
759 2010-06-23  Richard Henderson  <rth@redhat.com>
761         * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
762         memset.cc, method-serial.cc: Revert the 2010-06-16 change.
763         * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
764         * config/alpha/target.h: Likewise.
765         * config/generic/tls.cc (gtm_mask_stack): Use it.
767 2010-06-23  Richard Henderson  <rth@redhat.com>
769         * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
770         a mutex instead of trying a lock-free compare-and-swap on the list.
771         (gtm_cacheline_page::operator delete): Likewise.
773 2010-06-16  Richard Henderson  <rth@redhat.com>
775         * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
776         that overlap the libitm stack.
777         * barrier.tpl: Mark incoming stack.
778         * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
779         _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
780         * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
781         * memcpy.cc, memset.cc: Likewise.
782         * method-serial.cc (_ITM_changeTransactionMode): Likewise.
783         * config/generic/tls.h (gtm_thread): Add stack_top member.
784         (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
785         * libitm_i.h (gtm_mask_stack): Declare.
786         * config/generic/tls.cc: New file.
787         * Makefile.am (libitm_la_SOURCES): Add it.
788         (AM_CXXFLAGS): Turn off exceptions.
789         * Makefile.in: Rebuild.
791 2010-06-16  Richard Henderson  <rth@redhat.com>
793         * alloc.cc (struct gtm_alloc_action): Move definition ...
794         * libitm_i.h: ... here.
795         (class gtm_transaction): Declare new and delete.
796         * beginend.cc (alloc_tx): Reformulate as operator new.
797         (free_tx): Reformulate as operator delete.
798         * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
800 2010-06-11  Richard Henderson  <rth@redhat.com>
802         * clone.cc (clone_entry_compare): Fix typo.
803         From Patrik Marlier <patrick.marlier@unine.ch>.
805 2010-05-13  Richard Henderson  <rth@redhat.com>
807         * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
808         in extern "C".
810 2010-05-07  Aldy Hernandez  <aldyh@redhat.com>
812         * libitm_i.h (struct gtm_transaction): Remove
813         get_allocation_size.
814         (record_allocation): Remove size parameter.
815         * libitm.map (_ITM_realloc): Remove.
816         * alloc_c.cc (_ITM_realloc): Remove.
817         (_ITM_malloc): Remove size argument to record_allocation.
818         (_ITM_calloc): Same.
819         * alloc_cpp.cc (_ZGTtnwm): Same.
820         (_ZGTtnwmRKSt9nothrow_t): Same.
821         (_ZGTtnam): Same.
822         (_ZGTtnamRKSt9nothrow_t): Same.
823         * alloc.cc (struct gtm_alloc_action): Remove size.
824         (get_allocation_size): Remove.
825         (commit_allocations): Add comment.
826         (record_allocation): Remove size parameter.
827         (forget_allocation): Remove set of size.
829 2010-04-19  Aldy Hernandez  <aldyh@redhat.com>
831         * Makefile.am (abi_version): New.
832         (AM_CXXFLAGS): Pass abi_version.
833         * Makefile.in: Regenerate.
834         * config/x86/unaligned.h: Remove always_inline kludge for vectors.
836 2010-04-06  Aldy Hernandez  <aldyh@redhat.com>
838         * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
839         _ITM_getTMCloneOrIrrevokable.
840         * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
841         * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
843 2010-03-26  Aldy Hernandez  <aldyh@redhat.com>
845         * configure.ac: Remove Linux futex support.
846         * configure.tgt (config_path): Same.
847         * Makefile.am: Same.
848         * config/linux: Remove entire directory.
849         * configure: Rebuild.
850         * Makefile.in: Rebuild.
851         * testsuite/Makefile.in: Rebuild.
853 2010-03-09  Aldy Hernandez  <aldyh@redhat.com>
855         * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
856         switching to serial mode.
857         * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
859 2010-03-03  Aldy Hernandez  <aldyh@redhat.com>
861         * configure.tgt: Add emacs -*- tags.
862         * barrier.tpl: Same.
864 2010-02-23  Aldy Hernandez  <aldyh@redhat.com>
866         * Makefile.am: Rename serial.cc to method-serial.cc.
867         * Makefile.in: Regenerate with automake 1.11.1.
868         * testsuite/Makefile.in: Same.
869         * aclocal.m4: Regenerate with aclocal 1.11.1.
870         * method-serial.cc: Rename from serial.cc.
871         * libitm_i.h (struct gtm_transaction): Update comment on
872         serialirr_mode.
874 2010-02-22  Aldy Hernandez  <aldyh@redhat.com>
876         * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
877         * config/linux/rwlock.h (class gtm_rwlock): Add comments.
879 2010-02-11  Aldy Hernandez  <aldyh@redhat.com>
881         * configure: Rebuild.
883 2009-11-12  Richard Henderson  <rth@redhat.com>
885         * Rewrite everything in C++.
887 2009-11-03  Richard Henderson  <rth@redhat.com>
889         * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
890         * Makefile.am (libitm_la_SOURCES): Add them.
891         * configure.ac (ARCH_X86): New conditional.
892         * Makefile.in, configure: Rebuild.
893         * configure.tgt: Set up ARCH; do cflags setup at the same time.
894         Move futex setup into "other system configury" case.
895         * local.c (rollback_local): Merge into ...
896         (GTM_rollback_local): ... here.
897         (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
898         (_ITM_LB): Define as an alias to GTM_LB.
900 2009-11-03  Richard Henderson  <rth@redhat.com>
902         * method-readonly.c: New file.
903         * Makefile.am (libitm_la_SOURCES): Add it.
904         * Makefile.in: Rebuild.
905         * beginend.c (gtm_stmlock_array, gtm_clock): New.
906         (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
907         * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
908         (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
909         gtm_stmlock_set_owned, gtm_stmlock_get_addr,
910         gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
911         gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
912         gtm_get_clock, gtm_inc_clock): New.
913         * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
914         LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
915         LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
916         locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
917         replace uses with new libitm_i.h symbols.
918         (dispatch_wbetl): Rename from wbetl_dispatch.
919         * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
920         away from dispatch_readonly; abort if the beginTransaction call
921         asserted that the transaction was readonly.
923 2009-11-03  Richard Henderson  <rth@redhat.com>
925         * memset.c: New file.
926         * Makefile.am (libitm_la_SOURCES): Add it.
927         * Makefile.in: Rebuild.
928         * testsuite/libitm.c/memset-1.c: New.
930 2009-11-03  Richard Henderson  <rth@redhat.com>
932         * dispatch.c: Remove file.
933         * useraction.c (struct gtm_user_action): Move from libitm.h.
934         * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
935         (serial_memset, serial_memmove, serial_memcpy): Remove.
936         (serial_W*, serial_R*): Remove.
937         (serial_dispatch): Update to match.
938         * configure.ac: Move Werror down below configure checks.  Don't
939         check for sys/loadavg.h, do check for malloc.h.  Don't check for
940         getloadavg and clock_gettime; do check for memalign, posix_memalign.
941         Use GCC_AC_FUNC_MMAP_BLACKLIST
942         * libitm.h: Split out all internal items to...
943         * libitm_i.h: ... here.  New file.
944         * copymask.c: New file.
945         * local.c (struct gtm_local_undo): Move from libitm.h.
946         (GTM_alloc_local): Rename from alloc_local; export.
947         * memcpy.c: New file.
948         * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
949         * config/posix/page.c: New file.
950         * config/posix/target_tls.h: Remove file.
951         * barrier.c: New file.
952         * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
953         copymask.c, page.c.
954         * alloc.c (struct gtm_alloc_action): Move from libitm.h.
955         * method-wbetl.c: Rewrite for new cacheline methods.
956         * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
958         * config/alpha/sjlj.S: Fix typo.
959         * config/alpha/target_i.h: Copy functions from alpha/target.h.
960         * config/alpha/copymask.c: New file.
961         * config/alpha/target.h (CACHELINE_SIZE): New.
962         (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
964         * config/x86/target_i.h: Copy functions from x86/target.h.
965         * config/x86/copymask.c: New file.
966         * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
967         (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
968         (PAGE_SIZE, FIXED_PAGE_SIZE): New.
969         * config/x86/target_tls.h: Move contents to target_i.h.
971         * testsuite/libitm.c/clone-1.c: Include libitm.h.
972         * testsuite/libitm.c/memcpy-1.c: New.
974 2009-10-22  Richard Henderson  <rth@redhat.com>
976         * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
977         (AM_CCASFLAGS): New.
978         * configure.ac: Add AM_PROG_AS.  Use m4_rename_force for
979         saving/restoring _AC_ARG_VAR_PRECIOUS.
980         * Makefile.in, aclocal.m4, config.h.in, configure,
981         testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
983 2009-10-22  Richard Henderson  <rth@redhat.com>
985         * testsuite/*: Update for new compiler syntax.
987 2009-10-21  Richard Henderson  <rth@redhat.com>
989         * libitm.h (_ITM_abortReason): Add outerAbort.
991 2009-08-03  Richard Henderson  <rth@redhat.com>
993         * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
994         _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
995         * method-wbetl.c (struct w_entry): Remove mask.
996         (wbetl_write, wbetl_load): Return pointer to word containing the data;
997         adjust all callers.
999 2009-07-22  Richard Henderson  <rth@redhat.com>
1001         * eh_cpp.c: New file.
1002         * Makefile.am (libitm_la_SOURCES): Add it.
1003         * Makefile.in: Rebuild.
1004         * beginend.c (GTM_rollback_transaction): Undo exception state.
1005         (GTM_trycommit_transaction): Mark inline.
1006         (GTM_trycommit_and_finalize_transaction): Split out from ...
1007         (_ITM_commitTransaction): ... here.
1008         (_ITM_commitTransactionEH): New function.
1009         * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1010         cxa_unthrown, eh_in_flight; reorder.
1012         * testsuite/libitm.c++/c++.exp: New.
1013         * testsuite/libitm.c++/eh-1.C: New.
1015         * aatree.c (aa_free): Remove REGPARM.
1016         * aatree.h: Remove all REGPARM.
1018 2009-07-18  Richard Henderson  <rth@redhat.com>
1020         * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1021         * Makefile.am (libitm_la_SOURCES): Add them.
1022         * Makefile.in: Rebuild.
1023         * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1024         (GTM_trycommit_transaction): Likewise.
1025         * libitm.h: Include aatree.h
1026         (struct gtm_alloc_action): New.
1027         (struct gtm_transaction): Add alloc_actions.
1028         (GTM_record_allocation, GTM_forget_allocation): Declare.
1029         (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1030         * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1031         _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1032         _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1033         _ZGTtdaPvRKSt9nothrow_t): Export.
1035 2009-07-18  Richard Henderson  <rth@redhat.com>
1037         * target_tls.h: Move ...
1038         * config/posix/target_tls.h: ... here.
1040 2009-07-07  Richard Henderson  <rth@redhat.com>
1042         * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1044 2009-07-07  Richard Henderson  <rth@redhat.com>
1046         * Update to GPL3.
1048 2009-07-07  Richard Henderson  <rth@redhat.com>
1050         * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1051         * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1053         * configure.tgt: Don't use -ftls-model for x86 linux.
1054         * libitm.h: Include target.h after standard includes.
1055         (_gtm_thr): Rename from gtm_thr.
1056         (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1057         (gtm_disp, set_gtm_disp): New.
1058         * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1059         retry.c, serial.c, useraction.c: Use accessor functions throughout.
1060         * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1062 2009-07-07  Richard Henderson  <rth@redhat.com>
1064         * config/linux/rwlock.c (EZ): New define.  Use it throughout.
1066 2009-07-06  Richard Henderson  <rth@redhat.com>
1068         * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1069         (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1070         (_ITM_beginTransaction): Take variadic arguments.
1071         (_ITM_registerThrownObject): Declare.
1072         * beginend.c, serial.c: Update.
1073         * libitm.map: Add _ITM_registerThrownObject.
1075 2009-01-28  Richard Henderson  <rth@redhat.com>
1077         * Makefile.am (libitm_la_SOURCES): Add clone.c.
1078         * Makefile.in: Rebuild.
1079         * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1080         (GTM_restart_transaction): Fix uninstrumented code check.
1081         * retry.c (GTM_decide_retry_strategy): Add serial check.
1082         * serial.c (GTM_serialmode): Add irrevokable variable.  Don't
1083         automatically go irrevokable when in serial mode.
1084         * clone.c: New file.
1085         * libitm.h, libitm.map: Update.
1087 2009-01-27  Richard Henderson  <rth@redhat.com>
1089         * Makefile.am (LTCCASCOMPILE): Define.
1090         (libitm_la_SOURCES): Add methid-wbetl.c.
1091         * testsuite/Makefile.am: New
1092         * configure.ac: Add testsuite/Makefile.
1093         * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1094         * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1095         (_ITM_abortTransaction): Finalize implementation method; pass
1096         transaction properties to longjmp.
1097         (GTM_restart_transaction): Split out from ...
1098         (_ITM_commitTransaction): ... here.
1099         * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1100         Move to config/x86/target.h.
1101         * config/linux/alpha/futex_bits.h: New.
1102         * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1103         * config/x86/target.h: Disable target types for 32-bit.
1104         * config/alpha/sjlj.S, config/alpha/target.h: New.
1105         * libitm.h (struct gtm_dispatch): Add init, fini.
1106         (enum restart_reason): New.
1107         (struct gtm_transaction): Add method and restarts.
1108         * retry.c (GTM_decide_retry_strategy): Implement.
1109         * serial.c (serial_init, serial_fini): New.
1110         (GTM_serialmode): Finialize outgoing method.
1111         * method-wbetl.c: New.
1113 2008-12-09  Richard Henderson  <rth@redhat.com>
1115         * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1116         * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1117         * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1118         * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1119         (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1120         (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1121         * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1122         * serial.c (serial_R##T, serial_W##T): Likewise.
1124 2008-11-21  Richard Henderson  <rth@redhat.com>
1126         * Initial commit.