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