OSDN Git Service

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