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