]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR go/48501 (64bit-out.go, select5-out.go, tmp.go compilation times out)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
31772c95
TR
12012-02-14 Torvald Riegel <triegel@redhat.com>
2
3 * libitm_i.h (GTM::gtm_rwlog_entry): New.
4 (GTM::gtm_thread): Add read and write logs.
5 (GTM::dispatch_ml_wt): Declare.
6 * retry.cc (parse_default_method): Support ml_wt.
7 * method-ml.cc: New file.
8 * Makefile.am: Add method-ml.cc.
9 * Makefile.in: Regenerate.
10
5b9cf5d2
TR
112012-02-14 Torvald Riegel <triegel@redhat.com>
12
13 * dispatch.h (GTM::abi_dispatch::supports): New.
14 (GTM::method_group::reinit): New.
15 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
16 (GTM::gtm_thread::number_of_threads_changed): Check that the method
17 supports the current situation.
18
7d33bcb7
TR
192012-02-14 Torvald Riegel <triegel@redhat.com>
20
21 * util.cc (GTM::xcalloc): New.
22 * common.h (GTM::xcalloc): Declare.
23
62513f7b
EB
242012-02-14 Eric Botcazou <ebotcazou@adacore.com>
25
26 * config/sparc/target.h (cpu_relax): Read from CC register.
27 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
28
292012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
30
31 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
32
f3f5e3c3
EB
332012-02-13 Eric Botcazou <ebotcazou@adacore.com>
34
62513f7b 35 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
36 * config/sparc/cacheline.h: New file.
37 * config/sparc/target.h: Likewise.
38 * config/sparc/sjlj.S: Likewise.
39 * config/linux/sparc/futex_bits.h: Likewise.
40
412012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
42
43 * configure.ac (link_itm): Fix comment.
44 * configure: Regenerate.
45 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
46
681355e3
RO
472012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48
fc985d2f 49 PR libitm/51822
62513f7b 50 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
51 Correct libgomp references.
52
999bcff5
TR
532012-01-24 Torvald Riegel <triegel@redhat.com>
54
55 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
56 wake-up.
57
9848887a
UB
582012-01-24 Uros Bizjak <ubizjak@gmail.com>
59
60 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
61 end of structure.
62 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
63 offset values. Do not copy return address. Decrement stack
64 by 56 bytes only.
65 (GTM_longjump) [__x86_64__]: Update offset values.
66
5752c591
UB
672012-01-23 Uros Bizjak <ubizjak@gmail.com>
68
69 PR libitm/51830
70 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
71 the first function argument to %eax.
72
61e72ca4
RO
732012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74
75 * libitm.h (_ITM_getThreadnum): Remove.
76 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
77
9ce91011
RO
782012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79
80 * clearcap.map: New file.
81 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
82 * configure.ac: Call it.
83 Clear HWCAP_LDFLAGS if defaulting to -mavx.
84 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
85 * configure: Regenerate.
86 * Makefile.in: Regenerate.
87 * testsuite/Makefile.in: Regenerate.
88
3b4f05ec
RO
892012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90
91 PR libitm/51173
92 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
93 include, exclude options.
94
aab74ee9
TR
952012-01-14 Torvald Riegel <triegel@redhat.com>
96
97 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
98 rolling back.
99 * containers.h (GTM::vector::set_size): New.
100
07b6642b
TR
1012012-01-14 Torvald Riegel <triegel@redhat.com>
102
103 PR libitm/51855
104 * config/generic/tls.h (GTM::mask_stack_top): New.
105 (GTM::mask_stack_bottom): Declare.
106 * config/generic/tls.c (GTM::mask_stack_bottom): New.
107 * local.cc (gtm_undolog::rollback): Filter out any updates that
108 overlap the libitm stack. Add current transaction as parameter.
109 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
110 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
111 * testsuite/libitm.c/stackundo.c: New test.
112
8377e5e5
RH
1132012-01-10 Richard Henderson <rth@redhat.com>
114
115 * libitm_i.h (_Unwind_DeleteException): Declare weak.
116 * eh_cpp.cc (_Unwind_DeleteException): Define for
117 !HAVE_ELF_STYLE_WEAKREF.
118
11f30bb0
TR
1192012-01-08 Torvald Riegel <triegel@redhat.com>
120
121 * local.cc (GTM_LB): Use GTM::gtm_undolog.
122 (GTM::gtm_thread::drop_references_undolog): Remove.
123 (GTM::gtm_thread::commit_undolog,
124 GTM::gtm_thread::rollback_undolog): Move to ...
125 * libitm_i.h (GTM::gtm_undolog): ...here. New.
126 (GTM::gtm_undolog_entry): Remove.
127 (GTM::gtm_thread): Adapt.
128 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
129 (GTM::gtm_thread::trycommit): Adapt.
130 * method-serial.cc (serial_dispatch::log): Adapt.
131 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
132 (gl_wt_dispatch::store): Fix likely/unlikely.
133 * containers.h (GTM::vector::resize): Add additional_capacity
134 parameter and handle it.
135 (GTM::vector::resize_noinline): New/adapt.
136 (GTM::vector::push): New.
137
a32e5e93
RH
1382012-01-06 Richard Henderson <rth@redhat.com>
139
140 * configure.tgt: Support powerpc-linux and powerpc-darwin.
141 * config/linux/powerpc/futex_bits.h: New file.
142 * config/powerpc/cacheline.h: New file.
143 * config/powerpc/sjlj.S: New file.
144 * config/powerpc/target.h: New file.
145 * config/generic/asmcfi.h (cfi_offset): New.
146 (cfi_restore, cfi_undefined): New.
147
1f53a8e6
AH
1482012-01-05 Aldy Hernandez <aldyh@redhat.com>
149
150 PR other/51171
151 * testsuite/libitm.c/reentrant.c: Remove xfail.
152 (thread): Pass x to pure().
be223aaf 153 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 154
c898f7b8
TR
1552011-12-24 Torvald Riegel <triegel@redhat.com>
156
157 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
158 privatization safety if already in serial mode.
159
610e3901
TR
1602011-12-24 Torvald Riegel <triegel@redhat.com>
161
162 * beginend.cc (GTM::gtm_thread::restart): Add and handle
163 finish_serial_upgrade parameter.
164 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
165 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
166 Don't unset reader flag.
167 (GTM::gtm_rwlock::write_upgrade_finish): New.
168 * config/posix/rwlock.cc: Same.
169 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
170 Declare.
171 * config/posix/rwlock.h: Same.
172 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
173 flag after commit or after rollback when restarting.
174
799142bf
TR
1752011-12-24 Torvald Riegel <triegel@redhat.com>
176
177 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
178 (GTM::gtm_thread::try_commit): Changed memory order.
179 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
180 as parameter.
181 * config/linux/x86/futex_bits.h (sys_futex0): Same.
182 * config/linux/sh/futex_bits.h (sys_futex0): Same.
183 * config/linux/futex_bits.h (sys_futex0): Same.
184 * config/linux/futex.cc (futex_wait, futex_wake): Same.
185 * config/linux/futex.h (futex_wait, futex_wake): Same.
186 * config/linux/rwlock.h (gtm_rwlock::writers,
187 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
188 ints.
189 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
190 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
191 gtm_rwlock::write_unlock): Fix memory orders and fences.
192 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
193 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
194 gtm_rwlock::write_unlock): Same.
195 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
196 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
197 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
198 Add comments.
199 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
200 gl_wt_dispatch::load, gl_wt_dispatch::store,
201 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
202 orders and fences. Add comments.
203
b0f96e35
JJ
2042011-12-21 Jakub Jelinek <jakub@redhat.com>
205
206 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
207 * Makefile.in: Regenerated.
208
cc163247
KK
2092011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
210
211 * configure.tgt: Add sh* case.
212 * config/sh/target.h: New file.
213 * config/sh/sjlj.S: New file.
214 * config/linux/sh/futex_bits.h: New file.
215
aebac0ca
RH
2162011-12-14 Richard Henderson <rth@redhat.com>
217
218 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
219 * config/arm/sjlj.S, config/arm/target.h: New files.
220 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
221 (cfi_rel_offset): New.
222 * config/linux/futex_bits.h: New file.
223 * config/linux/futex.cc: Include futex_bits.h here...
224 * config/linux/futex.h: ... not here.
225 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
226 * configure.ac (ARCH_AM): New conditional.
227 * Makefile.in, configure: Rebuild.
228 * configure.tgt: Handle ARM.
229
36cfbee1
RH
2302011-12-13 Richard Henderson <rth@redhat.com>
231
5d9d05d3
RH
232 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
233 signed/unsigned comparison werror.
234
36cfbee1
RH
235 * local_atomic: New file.
236 * libitm_i.h: Include it.
237 (gtm_thread::shared_state): Use atomic template.
238 * beginend.cc (GTM::gtm_clock): Use atomic template.
239 (global_tid): Use atomic template if 64-bit atomics available.
240 (gtm_thread::gtm_thread): Update shared_state access.
241 (gtm_thread::trycommit): Likewise.
242 (choose_code_path): Update global_tid access.
243 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
244 * stmlock.h (GTM::gtm_clock): Use atomic template.
245 (gtm_get_clock, gtm_inc_clock): Update accesses.
246 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
247 redundant __sync_synchronize after atomic shared_state access.
248 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
249 (gtm_rwlock::write_lock_generic): Likewise.
250 (gtm_rwlock::read_unlock): Likewise.
251 * config/alpha/target.h (atomic_read_barrier): Remove.
252 (atomic_write_barrier): Remove.
253 * config/x86/target.h (atomic_read_barrier): Remove.
254 (atomic_write_barrier): Remove.
255
062f93f2
RH
2562011-11-30 Richard Henderson <rth@redhat.com>
257
258 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
259 * beginend.c (_ITM_abortTransaction): Update to match.
260 (GTM::gtm_thread::restart): Likewise.
261 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
262 * config/x86/sjlj.S (GTM_longjmp): Likewise.
263
bd8aaa86
IS
2642011-11-23 Iain Sandoe <iains@gcc.gnu.org>
265
266 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
267 * Makefile.in: Regenerate.
268
8cf36bb3
IS
2692011-11-22 Iain Sandoe <iains@gcc.gnu.org>
270
271 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
272 * alloc_cpp.cc: Generate dummy functions if we don't
273 HAVE_ELF_STYLE_WEAKREF.
274 * eh_cpp.cc: Likewise.
275 * configure: Regenerate.
276 * aclocal.m4: Likewise.
277 * config.h.in: Likewise.
278 * Makefile.in: Likewise.
279 * testsuite/Makefile.in: Likewise.
280
0b41ebef
IS
2812011-11-22 Iain Sandoe <iains@gcc.gnu.org>
282
283 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
284 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 285 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
286 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
287 in portability to non-elf targets.
8cf36bb3 288 (GTM_longjmp): Likewise.
0b41ebef
IS
289 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
290 where required.
291
9c9d352a
IS
2922011-11-22 Iain Sandoe <iains@gcc.gnu.org>
293
294 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
295 * testsuite/libitm.c/memset-1.c: Likewise.
296
c6084f68
AT
2972011-11-21 Andreas Tobler <andreast@fgznet.ch>
298
299 * configure: Regenerate.
300
adcd36bc
RO
3012011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302
303 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
304 (LIBITM_ENABLE_SYMVERS): Handle sun style.
305 * Makefile.am: Handle sun style versioning.
306 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
307 * configure: Regenerate.
308 * Makefile.in: Regenerate.
309
59659b59
RO
3102011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
311
312 * config/generic/asmcfi.h: Fix comment.
313 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
314 sequence without .hidden support, error for non-ELF targets.
315 (GTM_longjmp) [__ELF__]: Only use .hidden if
316 HAVE_ATTRIBUTE_VISIBILITY.
317
d846e425
RO
3182011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319
320 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
321 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
322 Dummy functions.
323 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
324 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
325
80713347
UB
3262011-11-16 Uros Bizjak <ubizjak@gmail.com>
327
328 PR bootstrap/51098
329 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
330 * configure: Regenerate.
331
2841f85e
L
3322011-11-14 H.J. Lu <hongjiu.lu@intel.com>
333
334 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
335
8851b429
RO
3362011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337
338 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
339 .hidden.
340 (.note.GNU-stack): Only use if __linux__.
341 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
342 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
343 * testsuite/libitm.c/reentrant.c: Likewise.
344 * testsuite/libitm.c/simple-2.c: Likewise.
345 * testsuite/libitm.c/txrelease.c: Likewise.
346 * testsuite/libitm.c++/static_ctor.C: Likewise.
347
d4b17902
RH
3482011-11-10 Richard Henderson <rth@redhat.com>
349
350 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
351 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
352 * configure.ac (ARCH_X86_AVX): New conditional.
353 * Makefile.in, configure: Rebuild.
354
430616e7
RH
3552011-11-09 Richard Henderson <rth@redhat.com>
356
357 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
358 * configure.ac: Use it.
359 * config.h.in, configure: Rebuild.
360 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
361
79b1edb6
RH
3622011-11-09 Richard Henderson <rth@redhat.com>
363
364 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
365 * config/alpha/unaligned.h: Remove file.
366 * config/generic/unaligned.h: Remove file.
367 * config/x86/unaligned.h: Remove file.
368 * config/generic/cachepage.h: Remove file.
369 * config/posix/cachepage.cc: Remove file.
370 * config/generic/cacheline.cc: Remove file.
371 * config/x86/cacheline.cc: Remove file.
372 * config/generic/cacheline.h (gtm_cacheline): Remove the
373 store_mask, copy_mask, copy_mask_wb methods.
374 * config/x86/cacheline.h: Likewise.
375 * config/alpha/cacheline.h: Fall back to generic after setting size.
376 * config/generic/tls.cc (gtm_mask_stack): Remove.
377 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
378 (GTM_vpalignr_table): Remove.
379 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
380 (GTM_pshift_table): Remove.
381 * config/libitm_i.h: Don't include cachepage.h.
382 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
383 * Makefile.in, testsuite/Makefile.in: Rebuild.
384
4bdd090f
RH
3852011-11-09 Richard Henderson <rth@redhat.com>
386
8ee9fac2
RH
387 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
388 to emit branch prediction hint.
389
9bdc6343
RH
390 * config/x86/sjlj.S: Protect elf directives with __ELF__.
391 Protect .note.GNU-stack with __linux__.
392
4bdd090f
RH
393 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
394 * configure, aclocal.m4, config.h.in: Rebuild.
395 * config/generic/asmcfi.h: New file.
396 * config/x86/sjlj.S: Use it.
397
4408b086
RH
3982011-11-08 Richard Henderson <rth@redhat.com>
399
400 * local.cc (_ITM_LB): Use a normal call, not a function alias.
401
01f3428c
RH
4022011-11-08 Richard Henderson <rth@redhat.com>
403
3d3b05ff
RH
404 * configure.tgt: Test correct directory for supported cpus.
405
01f3428c
RH
406 * configure.ac: Exit if unsupported.
407 * configure: Rebuild.
408 * configure.tgt: Delete boilerplate from libgomp for unsupported
409 targets. Set UNSUPPORTED for unsupported targets.
410
07f03cd3
RO
4112011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
412
413 * configure.tgt: Handle i386 like i[456]86.
414 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
415 take address.
416 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
417 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
418
0a35513e
AH
4192011-11-05 Aldy Hernandez <aldyh@redhat.com>
420
421 * method-wbetl.cc: Update copyright notice.
422 * aatree.cc: Same.
423 * util.cc: Same.
424 * libitm.h: Same.
425 * memset.cc: Same.
426 * eh_cpp.cc: Same.
427 * barrier.tpl: Same.
428 * useraction.cc: Same.
429 * stmlock.h: Same.
430 * memcpy.cc: Same.
431 * common.h: Same.
432 * config/generic/tls.cc: Same.
433 * config/generic/cacheline.h: Same.
434 * config/generic/cachepage.h: Same.
435 * config/generic/cacheline.cc: Same.
436 * config/generic/unaligned.h: Same.
437 * config/x86/cacheline.h: Same.
438 * config/x86/cacheline.cc: Same.
439 * config/x86/unaligned.h: Same.
440 * config/alpha/cacheline.h: Same.
441 * config/alpha/unaligned.h: Same.
442 * config/alpha/sjlj.S: Same.
443 * config/posix/cachepage.cc: Same.
444 * config/linux/futex.h: Same.
445 * config/linux/alpha/futex_bits.h: Same.
446
4472011-11-04 Torvald Riegel <triegel@redhat.com>
448
449 * libitm.texi: No cover text and invariant sections.
450
4512011-11-03 Richard Henderson <rth@redhat.com>
452
453 * local_type_traits: New file.
454 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
455
4562011-11-03 Richard Henderson <rth@redhat.com>
457
458 * configure.ac: Don't test for gfortran.
459 * configure: Rebuild.
460
461 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
462 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
463
4642011-11-03 Aldy Hernandez <aldyh@redhat.com>
465
466 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
467 * testsuite/libitm.c/memset-1.c: Same.
468 * testsuite/libitm.c/c.exp: Same.
469 * testsuite/lib/libitm-dg.exp: Same.
470 * testsuite/lib/libitm.exp: Same.
471 * testsuite/libitm.c++/c++.exp: Same.
472
4732011-11-03 Aldy Hernandez <aldyh@redhat.com>
474
475 * testsuite/config/default.exp: Update copyright date.
476 * configure.ac: Add copyright info.
477 * configure.tgt: Same.
478
4792011-11-03 Aldy Hernandez <aldyh@redhat.com>
480
481 * testsuite/libitm.c/reentrant.c: XFAIL.
482 * testsuite/libitm.c++/static_ctor.C: XFAIL.
483
4842011-10-29 Torvald Riegel <triegel@redhat.com>
485
486 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
487 handle aborts.
488 (_ITM_abortTransaction): Handle aborts of outer transactions.
489 * libitm_i.h: Same.
490 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
491 * libitm.texi: Document aborts of outer transactions.
492 * testsuite/libitm.c/cancel.c: New file.
493
4942011-10-19 Torvald Riegel <triegel@redhat.com>
495
496 * testsuite/*: Change __transaction to __transaction_atomic or
497 __transaction_relaxed.
498
4992011-10-19 Torvald Riegel <triegel@redhat.com>
500
501 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
502 (gtm_thr): Same.
503
5042011-10-19 Torvald Riegel <triegel@redhat.com>
505
506 * libitm_i.h: Add gl_wt dispatch.
507 * retry.cc (parse_default_method): Same.
508 * method-gl.cc: New file.
509 * Makefile.am: Use method-gl.cc.
510 * Makefile.in: Rebuild.
511
5122011-10-19 Torvald Riegel <triegel@redhat.com>
513
514 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
515 safety if requested by a TM method.
516 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
517 privatization safety.
518 * method-serial.cc: Same.
519
5202011-10-19 Torvald Riegel <triegel@redhat.com>
521
522 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
523 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
524 undolog-related member functions from *_local to *_undolog.
525 * local.cc (gtm_thread::commit_undolog): Same.
526 * beginend.cc (GTM::gtm_thread::trycommit): Same.
527 (GTM::gtm_thread::rollback): Roll back undolog before
528 dispatch-specific rollback.
529
5302011-10-19 Torvald Riegel <triegel@redhat.com>
531
532 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
533 re-initialization of the current method group.
534 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
535
5362011-10-19 Torvald Riegel <triegel@redhat.com>
537
538 * alloc.cc (commit_allocations_2): Do not free transaction-local
539 memory when committing a nested transaction.
540
5412011-10-19 Torvald Riegel <triegel@redhat.com>
542
543 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
544 serial-irrevocable dispatch, not serial.
545
5462011-10-19 Torvald Riegel <triegel@redhat.com>
547
548 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
549 declarations.
550 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
551 * method-serial.cc: Implement begin_or_restart().
552 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
553 dispatch-specific begin_or_restart().
554 (GTM::gtm_thread::restart): Same.
555
5562011-08-23 Torvald Riegel <triegel@redhat.com>
557
558 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
559 restarting without switching to serial mode.
560 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
561 transaction state. Choose closed-nesting alternative if available.
562 (GTM::gtm_thread::set_default_dispatch): New.
563 (parse_default_method): New.
564 (GTM::gtm_thread::number_of_threads_changed): New.
565 * method-serial.cc (GTM::serial_mg): New method group class.
566 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
567 fini.
568 (GTM::serial_dispatch): Same.
569 (GTM::serialirr_onwrite_dispatch): Same.
570 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
571 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
572 registered threads.
573 (GTM::gtm_thread::gtm_thread): Same.
574 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
575 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
576 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
577 choose dispatch but set state according to dispatch here.
578 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
579 (GTM::method_group): New class.
580 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
581 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
582 * libitm.texi: Document TM methods, method groups, method life cycle.
583 Rename method sets to method groups.
584
5852011-08-23 Torvald Riegel <triegel@redhat.com>
586
587 * config/x86/tls.h: Moved to ...
588 * config/linux/x86/tls.h: ... here.
589
5902011-08-23 Torvald Riegel <triegel@redhat.com>
591
592 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
593 Add X32 support.
594 * config/x86/sjlj.S: Same.
595
5962011-08-19 Torvald Riegel <triegel@redhat.com>
597
598 * config/linux/rwlock.h: New file.
599 * config/linux/rwlock.c: New file.
600 * configure.ac: Reenable futex support (undo SVN rev 157758).
601 * Makefile.am: Same.
602 * configure.tgt: Same.
603 * config/linux/alpha/futex_bits.h: Same.
604 * config/linux/futex.h: Same. Return number of woken processes.
605 * config/linux/futex.cc: Same.
606 (futex_wait): Remove spinning.
607 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
608 Use __x86_64__ instead of __LP64__.
609 * aclocal.m4: Include generic futex checks.
610 * configure: Rebuild.
611 * Makefile.in: Rebuild.
612 * testsuite/Makefile.in: Rebuild.
613 * beginend.cc: Include pthread.h.
614 * config/posix/cachepage.cc: Same.
615
6162011-08-12 Torvald Riegel <triegel@redhat.com>
617
618 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
619 (abi_disp, set_abi_disp): Move to tx's TLS slot.
620 (set_gtm_thr): New.
621 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
622 (set_gtm_thr): New.
623 (GTM::gtm_thread::thread_num): Removed.
624 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
625 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
626 tx-to-thread renaming.
627 * beginend.cc: Adapted to tx-to-thread renaming.
628 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
629 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
630 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
631 gtm_transaction to gtm_thread.
632 (_ITM_getThreadnum): Removed. Not supported anymore.
633 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
634 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
635 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
636 gtm_tx-to-gtm_thr renaming if necessary.
637 * eh_cpp.cc: Same.
638 * local.cc: Same.
639 * retry.cc: Same.
640 * clone.cc: Same.
641 * alloc.cc: Same.
642 * alloc_c.cc: Same.
643 * alloc_cpp.cc: Same.
644 * method-serial.cc: Same.
645 * config/generic/tls.cc: Same.
646 * config/posix/rwlock.h (gtm_rwlock): Same.
647 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
648
6492011-08-12 Torvald Riegel <triegel@redhat.com>
650
651 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
652 implementation.
653 (gtm_rwlock::read_unlock): Same.
654 (gtm_rwlock::write_lock_generic): New. Generalized from ...
655 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
656 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
657 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
658 w_upgrade. Replaced by per-transaction flags (in shared_state).
659 Added c_confirmed_writers.
660 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
661 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
662 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
663 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
664 * beginend.cc (GTM::gtm_transaction::begin_transaction,
665 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
666 * libitm.texi: Document locking conventions and implementations in
667 libitm.
668
6692011-08-12 Torvald Riegel <triegel@redhat.com>
670
671 * libitm_i.h (next_tx): Add list of all threads' transaction.
672 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
673 transaction with list of transactions and ...
674 (thread_exit_handler): ... deregister here.
675 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
676 * config/x86/target.h: Same.
677
6782011-08-12 Torvald Riegel <triegel@redhat.com>
679
680 * testsuite/libitm.c++/static_ctor.C: New file.
681
6822011-08-12 Torvald Riegel <triegel@redhat.com>
683
684 * testsuite/libitm.c/reentrant.c: New file.
685
6862011-08-12 Torvald Riegel <triegel@redhat.com>
687
688 * config/generic/tls.h: Remove the free list for transactions and ...
689 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
690 (GTM::gtm_transaction::operator delete): ... and release here.
691 (thread_exit_handler): New. Delete tx when thread terminates.
692 (thread_exit_init): New.
693 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
694 * testsuite/libitm.c/txrelease.c: New file.
695
6962011-08-12 Torvald Riegel <triegel@redhat.com>
697
698 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
699 * testsuite/libitm.c/notx.c: New file.
700
7012011-08-12 Torvald Riegel <triegel@redhat.com>
702
703 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
704 * libitm_i.h (local_tid): ... to here.
705 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
706 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
707
7082011-08-12 Torvald Riegel <triegel@redhat.com>
709
710 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
711 serialirr_onwrite_dispatch as new default for now.
712 * method-serial.cc (serialirr_onwrite_dispatch): New.
713 (GTM::dispatch_serialirr_onwrite): New.
714 * libitm_i.h: Same.
715
7162011-08-12 Torvald Riegel <triegel@redhat.com>
717
718 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
719 * query.cc (_ITM_getTransactionId): There is no active transaction if
720 the current nesting level is zero.
721
7222011-07-28 Torvald Riegel <triegel@redhat.com>
723
724 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
725 rollback.
726
7272011-07-28 Torvald Riegel <triegel@redhat.com>
728
729 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
730 transaction properties from the caller instead of from the
731 transaction object.
732 * libitm_i.h: Same.
733 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
734
7352011-07-28 Torvald Riegel <triegel@redhat.com>
736
737 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
738 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
739 * dispatch.h: Same.
740 * method-serial.cc: Same.
741 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
742 flat nesting as default, and closed nesting on demand.
743 (GTM::gtm_transaction::rollback): Same.
744 (_ITM_abortTransaction): Same.
745 (GTM::gtm_transaction::restart): Same.
746 (GTM::gtm_transaction::trycommit): Same.
747 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
748 (choose_code_path): New.
749 (GTM::gtm_transaction_cp::save): New.
750 (GTM::gtm_transaction_cp::commit): New.
751 * query.cc (_ITM_inTransaction): Support flat nesting.
752 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
753 (GTM::gtm_transaction): Support flat and closed nesting.
754 * alloc.cc (commit_allocations_2): New.
755 (commit_cb_data): New helper struct.
756 (GTM::gtm_transaction::commit_allocations): Handle nested
757 commits/rollbacks.
758 * libitm.texi: Update user action section, add description of nesting.
759
7602011-07-28 Torvald Riegel <triegel@redhat.com>
761
762 * libitm_i.h: Add closed nesting as restart reason.
763 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
764
7652011-07-28 Torvald Riegel <triegel@redhat.com>
766
767 * useraction.cc: Use vector instead of list to store actions.
768 Also support partial rollbacks for closed nesting.
769 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
770 * beginend.cc: Same.
771
7722011-07-28 Torvald Riegel <triegel@redhat.com>
773
774 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
775 closed_nesting flags, as well as a closed nesting alternative.
776 * method-serial.cc: Same.
777 (serial_dispatch): Renamed to serialirr_dispatch.
778 (GTM::dispatch_serialirr): Same.
779 (serial_dispatch_ul): Renamed to serial_dispatch.
780 (GTM::dispatch_serial): Same.
781
7822011-07-28 Torvald Riegel <triegel@redhat.com>
783
784 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
785
7862011-07-28 Torvald Riegel <triegel@redhat.com>
787
788 * aatree.h (aa_tree::remove): New.
789 (aa_tree::operator new): Add placement new.
790
7912011-07-02 Torvald Riegel <triegel@redhat.com>
792
793 * containers.h: New file.
794 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
795 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
796 * common.h: ... to here.
797 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
798 * local.cc: Same.
799
8002011-06-30 Torvald Riegel <triegel@redhat.com>
801
802 * libitm_i.h (STATE_ABORTING): Remove.
803 * beginend.cc (_ITM_abortTransaction): Same.
804 (GTM::gtm_transaction::trycommit_and_finalize): Same.
805 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
806 (_ITM_rollbackTransaction): Remove.
807 * beginend.cc: Same.
808 * libitm.map: Same.
809 * libitm.texi: Document these ABI changes.
810
8112011-06-30 Torvald Riegel <triegel@redhat.com>
812
813 * libitm.texi: New file.
814 * Makefile.am: Add libitm.texi.
815 * Makefile.in: Rebuild.
816
8172011-06-30 Torvald Riegel <triegel@redhat.com>
818
819 * libitm_i.h: Move parts to common.h and dispatch.h.
820 * common.h: New file.
821 * dispatch.h: New file, new dispatch class.
822 Rename GTM::abi_dispatch::lock_type to ls_modifier.
823 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
824 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
825 decision to retry.cc.
826 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
827 only.
828 (GTM::gtm_transaction::decide_begin_dispatch): Same.
829 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
830 logging.
831 * barrier.cc: Use new barriers definitions.
832 (abi_dispatch::memmove_overlap_check): New.
833 * config/x86/x86_sse.cc: Same.
834 * config/x86/x86_avx.cc: Same.
835 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
836 memcpy.cc.
837 * Makefile.in: Rebuild.
838 * method-readonly.cc: Remove.
839 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
840 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
841
8422011-06-30 Torvald Riegel <triegel@redhat.com>
843
844 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
845 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
846 * testsuite/libitm.c/dropref-2.c: Same.
847 * testsuite/libitm.c/dropref.c: Same.
848
8492011-06-30 Torvald Riegel <triegel@redhat.com>
850
851 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
852 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
853 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
854 * alloc_c.cc: Same.
855 * barrier.tpl: Same.
856 * beginend.c: Same.
857 * config/generic/tls.h: Same.
858 * config/x86/tls.h: Same.
859 * libitm_i.h: Same.
860 * memcpy.cc: Same.
861 * memset.cc: Same.
862 * method-readonly.cc: Same.
863 * method-serial.cc: Same.
864 * method-wbetl.cc: Same.
865 * retry.cc: Same.
866
8672011-03-03 Richard Henderson <rth@redhat.com>
868
869 * config/posix/rwlock.cc (write_upgrade): Add missing case.
870 From Patrik Marlier <patrick.marlier@unine.ch>.
871
8722011-02-03 Richard Henderson <rth@redhat.com>
873
874 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
875 * configure.ac: Use it.
876 * configure, config.h.in: Rebuild.
877 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
878 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
879 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
880 * libitm.map: Use wildcards to match size_t mangling.
881
8822010-12-14 Richard Henderson <rth@redhat.com>
883
884 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
885 blocks of TIDs per thread.
886 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
887 (setup_gtm_thr): Return the thread structure.
888 * config/x86/tls.h (setup_gtm_thr): Likewise.
889
8902010-12-14 Richard Henderson <rth@redhat.com>
891
892 * clone.cc (table_lock): Remove.
893 (find_clone): Don't take it.
894 (ExcludeTransaction): New helper class.
895 (_ITM_registerTMCloneTable): Use it.
896 (_ITM_deregisterTMCloneTable): Likewise.
897
8982010-12-14 Richard Henderson <rth@redhat.com>
899
900 * config/x86/tls.h: New file.
901
9022010-07-15 Richard Henderson <rth@redhat.com>
903
904 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
905 * Makefile.in: Rebuild.
906
9072010-07-13 Aldy Hernandez <aldyh@redhat.com>
908
909 * method-wbetl.cc (trydropreference): Fix source line.
910
9112010-07-13 Aldy Hernandez <aldyh@redhat.com>
912
913 * libitm.h: Add comment.
914 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
915
9162010-07-07 Aldy Hernandez <aldyh@redhat.com>
917
918 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
919 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
920 available, use pthread mutexes.
921 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
922 * config.h.in: Regenerate.
923 * configure: Regenerate.
924
9252010-07-06 Aldy Hernandez <aldyh@redhat.com>
926
927 * libitm.h (ITM_PURE): Define.
928 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
929
9302010-06-28 Aldy Hernandez <aldyh@redhat.com>
931
932 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
933 (validate): Add comment.
934 (trydropreference): New.
935 * method-readonly.cc (class readonly_dispatch): Add
936 trydropreference.
937 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
938 Call trydropreference().
939 * libitm.h (_ITM_dropReferences): Remove const attribute.
940 * method-serial.cc (class serial_dispatch): Add trydropreference.
941 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
942
9432010-06-28 Aldy Hernandez <aldyh@redhat.com>
944
945 * memcpy.cc (do_memcpy): Comment.
946
9472010-06-25 Aldy Hernandez <aldyh@redhat.com>
948
949 * barrier.tpl: Add comments throughout.
950
9512010-06-24 Aldy Hernandez <aldyh@redhat.com>
952
953 * method-wbetl.cc (struct w_entry): Add comments.
954 (trycommit): Same.
955 (rollback): Same.
956
9572010-06-24 Aldy Hernandez <aldyh@redhat.com>
958
959 * alloc_c.cc (_ITM_dropReferences): New.
960 * libitm.map (_ITM_dropReferences): Add.
961 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
962 * libitm_i.h (struct gtm_transaction): Declare
963 drop_references_allocations and drop_references_local.
964 * local.cc (rollback_local): Ignore memory when applicable.
965 (drop_references_local): New.
966
9672010-06-23 Richard Henderson <rth@redhat.com>
968
969 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
970 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
971 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
972 * config/alpha/target.h: Likewise.
973 * config/generic/tls.cc (gtm_mask_stack): Use it.
974
9752010-06-23 Richard Henderson <rth@redhat.com>
976
977 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
978 a mutex instead of trying a lock-free compare-and-swap on the list.
979 (gtm_cacheline_page::operator delete): Likewise.
980
9812010-06-16 Richard Henderson <rth@redhat.com>
982
983 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
984 that overlap the libitm stack.
985 * barrier.tpl: Mark incoming stack.
986 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
987 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
988 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
989 * memcpy.cc, memset.cc: Likewise.
990 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
991 * config/generic/tls.h (gtm_thread): Add stack_top member.
992 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
993 * libitm_i.h (gtm_mask_stack): Declare.
994 * config/generic/tls.cc: New file.
995 * Makefile.am (libitm_la_SOURCES): Add it.
996 (AM_CXXFLAGS): Turn off exceptions.
997 * Makefile.in: Rebuild.
998
9992010-06-16 Richard Henderson <rth@redhat.com>
1000
1001 * alloc.cc (struct gtm_alloc_action): Move definition ...
1002 * libitm_i.h: ... here.
1003 (class gtm_transaction): Declare new and delete.
1004 * beginend.cc (alloc_tx): Reformulate as operator new.
1005 (free_tx): Reformulate as operator delete.
1006 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1007
10082010-06-11 Richard Henderson <rth@redhat.com>
1009
1010 * clone.cc (clone_entry_compare): Fix typo.
1011 From Patrik Marlier <patrick.marlier@unine.ch>.
1012
10132010-05-13 Richard Henderson <rth@redhat.com>
1014
1015 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1016 in extern "C".
1017
10182010-05-07 Aldy Hernandez <aldyh@redhat.com>
1019
1020 * libitm_i.h (struct gtm_transaction): Remove
1021 get_allocation_size.
1022 (record_allocation): Remove size parameter.
1023 * libitm.map (_ITM_realloc): Remove.
1024 * alloc_c.cc (_ITM_realloc): Remove.
1025 (_ITM_malloc): Remove size argument to record_allocation.
1026 (_ITM_calloc): Same.
1027 * alloc_cpp.cc (_ZGTtnwm): Same.
1028 (_ZGTtnwmRKSt9nothrow_t): Same.
1029 (_ZGTtnam): Same.
1030 (_ZGTtnamRKSt9nothrow_t): Same.
1031 * alloc.cc (struct gtm_alloc_action): Remove size.
1032 (get_allocation_size): Remove.
1033 (commit_allocations): Add comment.
1034 (record_allocation): Remove size parameter.
1035 (forget_allocation): Remove set of size.
1036
10372010-04-19 Aldy Hernandez <aldyh@redhat.com>
1038
1039 * Makefile.am (abi_version): New.
1040 (AM_CXXFLAGS): Pass abi_version.
1041 * Makefile.in: Regenerate.
1042 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1043
10442010-04-06 Aldy Hernandez <aldyh@redhat.com>
1045
1046 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1047 _ITM_getTMCloneOrIrrevokable.
1048 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1049 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1050
10512010-03-26 Aldy Hernandez <aldyh@redhat.com>
1052
1053 * configure.ac: Remove Linux futex support.
1054 * configure.tgt (config_path): Same.
1055 * Makefile.am: Same.
1056 * config/linux: Remove entire directory.
1057 * configure: Rebuild.
1058 * Makefile.in: Rebuild.
1059 * testsuite/Makefile.in: Rebuild.
1060
10612010-03-09 Aldy Hernandez <aldyh@redhat.com>
1062
1063 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1064 switching to serial mode.
1065 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1066
10672010-03-03 Aldy Hernandez <aldyh@redhat.com>
1068
1069 * configure.tgt: Add emacs -*- tags.
1070 * barrier.tpl: Same.
1071
10722010-02-23 Aldy Hernandez <aldyh@redhat.com>
1073
1074 * Makefile.am: Rename serial.cc to method-serial.cc.
1075 * Makefile.in: Regenerate with automake 1.11.1.
1076 * testsuite/Makefile.in: Same.
1077 * aclocal.m4: Regenerate with aclocal 1.11.1.
1078 * method-serial.cc: Rename from serial.cc.
1079 * libitm_i.h (struct gtm_transaction): Update comment on
1080 serialirr_mode.
1081
10822010-02-22 Aldy Hernandez <aldyh@redhat.com>
1083
1084 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1085 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1086
10872010-02-11 Aldy Hernandez <aldyh@redhat.com>
1088
1089 * configure: Rebuild.
1090
10912009-11-12 Richard Henderson <rth@redhat.com>
1092
1093 * Rewrite everything in C++.
1094
10952009-11-03 Richard Henderson <rth@redhat.com>
1096
1097 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1098 * Makefile.am (libitm_la_SOURCES): Add them.
1099 * configure.ac (ARCH_X86): New conditional.
1100 * Makefile.in, configure: Rebuild.
1101 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1102 Move futex setup into "other system configury" case.
1103 * local.c (rollback_local): Merge into ...
1104 (GTM_rollback_local): ... here.
1105 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1106 (_ITM_LB): Define as an alias to GTM_LB.
1107
11082009-11-03 Richard Henderson <rth@redhat.com>
1109
1110 * method-readonly.c: New file.
1111 * Makefile.am (libitm_la_SOURCES): Add it.
1112 * Makefile.in: Rebuild.
1113 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1114 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1115 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1116 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1117 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1118 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1119 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1120 gtm_get_clock, gtm_inc_clock): New.
1121 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1122 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1123 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1124 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1125 replace uses with new libitm_i.h symbols.
1126 (dispatch_wbetl): Rename from wbetl_dispatch.
1127 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1128 away from dispatch_readonly; abort if the beginTransaction call
1129 asserted that the transaction was readonly.
1130
11312009-11-03 Richard Henderson <rth@redhat.com>
1132
1133 * memset.c: New file.
1134 * Makefile.am (libitm_la_SOURCES): Add it.
1135 * Makefile.in: Rebuild.
1136 * testsuite/libitm.c/memset-1.c: New.
1137
11382009-11-03 Richard Henderson <rth@redhat.com>
1139
1140 * dispatch.c: Remove file.
1141 * useraction.c (struct gtm_user_action): Move from libitm.h.
1142 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1143 (serial_memset, serial_memmove, serial_memcpy): Remove.
1144 (serial_W*, serial_R*): Remove.
1145 (serial_dispatch): Update to match.
1146 * configure.ac: Move Werror down below configure checks. Don't
1147 check for sys/loadavg.h, do check for malloc.h. Don't check for
1148 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1149 Use GCC_AC_FUNC_MMAP_BLACKLIST
1150 * libitm.h: Split out all internal items to...
1151 * libitm_i.h: ... here. New file.
1152 * copymask.c: New file.
1153 * local.c (struct gtm_local_undo): Move from libitm.h.
1154 (GTM_alloc_local): Rename from alloc_local; export.
1155 * memcpy.c: New file.
1156 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1157 * config/posix/page.c: New file.
1158 * config/posix/target_tls.h: Remove file.
1159 * barrier.c: New file.
1160 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1161 copymask.c, page.c.
1162 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1163 * method-wbetl.c: Rewrite for new cacheline methods.
1164 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1165
1166 * config/alpha/sjlj.S: Fix typo.
1167 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1168 * config/alpha/copymask.c: New file.
1169 * config/alpha/target.h (CACHELINE_SIZE): New.
1170 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1171
1172 * config/x86/target_i.h: Copy functions from x86/target.h.
1173 * config/x86/copymask.c: New file.
1174 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1175 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1176 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1177 * config/x86/target_tls.h: Move contents to target_i.h.
1178
1179 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1180 * testsuite/libitm.c/memcpy-1.c: New.
1181
11822009-10-22 Richard Henderson <rth@redhat.com>
1183
1184 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1185 (AM_CCASFLAGS): New.
1186 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1187 saving/restoring _AC_ARG_VAR_PRECIOUS.
1188 * Makefile.in, aclocal.m4, config.h.in, configure,
1189 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1190
11912009-10-22 Richard Henderson <rth@redhat.com>
1192
1193 * testsuite/*: Update for new compiler syntax.
1194
11952009-10-21 Richard Henderson <rth@redhat.com>
1196
1197 * libitm.h (_ITM_abortReason): Add outerAbort.
1198
11992009-08-03 Richard Henderson <rth@redhat.com>
1200
1201 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1202 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1203 * method-wbetl.c (struct w_entry): Remove mask.
1204 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1205 adjust all callers.
1206
12072009-07-22 Richard Henderson <rth@redhat.com>
1208
1209 * eh_cpp.c: New file.
1210 * Makefile.am (libitm_la_SOURCES): Add it.
1211 * Makefile.in: Rebuild.
1212 * beginend.c (GTM_rollback_transaction): Undo exception state.
1213 (GTM_trycommit_transaction): Mark inline.
1214 (GTM_trycommit_and_finalize_transaction): Split out from ...
1215 (_ITM_commitTransaction): ... here.
1216 (_ITM_commitTransactionEH): New function.
1217 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1218 cxa_unthrown, eh_in_flight; reorder.
1219
1220 * testsuite/libitm.c++/c++.exp: New.
1221 * testsuite/libitm.c++/eh-1.C: New.
1222
1223 * aatree.c (aa_free): Remove REGPARM.
1224 * aatree.h: Remove all REGPARM.
1225
12262009-07-18 Richard Henderson <rth@redhat.com>
1227
1228 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1229 * Makefile.am (libitm_la_SOURCES): Add them.
1230 * Makefile.in: Rebuild.
1231 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1232 (GTM_trycommit_transaction): Likewise.
1233 * libitm.h: Include aatree.h
1234 (struct gtm_alloc_action): New.
1235 (struct gtm_transaction): Add alloc_actions.
1236 (GTM_record_allocation, GTM_forget_allocation): Declare.
1237 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1238 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1239 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1240 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1241 _ZGTtdaPvRKSt9nothrow_t): Export.
1242
12432009-07-18 Richard Henderson <rth@redhat.com>
1244
1245 * target_tls.h: Move ...
1246 * config/posix/target_tls.h: ... here.
1247
12482009-07-07 Richard Henderson <rth@redhat.com>
1249
1250 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1251
12522009-07-07 Richard Henderson <rth@redhat.com>
1253
1254 * Update to GPL3.
1255
12562009-07-07 Richard Henderson <rth@redhat.com>
1257
1258 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1259 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1260
1261 * configure.tgt: Don't use -ftls-model for x86 linux.
1262 * libitm.h: Include target.h after standard includes.
1263 (_gtm_thr): Rename from gtm_thr.
1264 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1265 (gtm_disp, set_gtm_disp): New.
1266 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1267 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1268 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1269
12702009-07-07 Richard Henderson <rth@redhat.com>
1271
1272 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1273
12742009-07-06 Richard Henderson <rth@redhat.com>
1275
1276 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1277 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1278 (_ITM_beginTransaction): Take variadic arguments.
1279 (_ITM_registerThrownObject): Declare.
1280 * beginend.c, serial.c: Update.
1281 * libitm.map: Add _ITM_registerThrownObject.
1282
12832009-01-28 Richard Henderson <rth@redhat.com>
1284
1285 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1286 * Makefile.in: Rebuild.
1287 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1288 (GTM_restart_transaction): Fix uninstrumented code check.
1289 * retry.c (GTM_decide_retry_strategy): Add serial check.
1290 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1291 automatically go irrevokable when in serial mode.
1292 * clone.c: New file.
1293 * libitm.h, libitm.map: Update.
1294
12952009-01-27 Richard Henderson <rth@redhat.com>
1296
1297 * Makefile.am (LTCCASCOMPILE): Define.
1298 (libitm_la_SOURCES): Add methid-wbetl.c.
1299 * testsuite/Makefile.am: New
1300 * configure.ac: Add testsuite/Makefile.
1301 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1302 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1303 (_ITM_abortTransaction): Finalize implementation method; pass
1304 transaction properties to longjmp.
1305 (GTM_restart_transaction): Split out from ...
1306 (_ITM_commitTransaction): ... here.
1307 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1308 Move to config/x86/target.h.
1309 * config/linux/alpha/futex_bits.h: New.
1310 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1311 * config/x86/target.h: Disable target types for 32-bit.
1312 * config/alpha/sjlj.S, config/alpha/target.h: New.
1313 * libitm.h (struct gtm_dispatch): Add init, fini.
1314 (enum restart_reason): New.
1315 (struct gtm_transaction): Add method and restarts.
1316 * retry.c (GTM_decide_retry_strategy): Implement.
1317 * serial.c (serial_init, serial_fini): New.
1318 (GTM_serialmode): Finialize outgoing method.
1319 * method-wbetl.c: New.
1320
13212008-12-09 Richard Henderson <rth@redhat.com>
1322
1323 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1324 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1325 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1326 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1327 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1328 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1329 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1330 * serial.c (serial_R##T, serial_W##T): Likewise.
1331
13322008-11-21 Richard Henderson <rth@redhat.com>
1333
1334 * Initial commit.