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