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