OSDN Git Service

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