OSDN Git Service

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