OSDN Git Service

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