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