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