OSDN Git Service

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