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