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