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