]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
libitm: Update texinfo docs.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
034209bc
TR
12012-03-02 Torvald Riegel <triegel@redhat.com>
2
3 * libitm.texi: Link to specification and add a usage example.
4
bc8da6ba
TR
52012-02-24 Torvald Riegel <triegel@redhat.com>
6
7 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
8 default dispatch for more than 1 thread to ml_wt.
9
63b08143
TR
102012-02-20 Torvald Riegel <triegel@redhat.com>
11
12 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
13
4c9bd6ac
TR
142012-02-20 Torvald Riegel <triegel@redhat.com>
15
16 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
17
651ff415
TR
182012-02-20 Torvald Riegel <triegel@redhat.com>
19
20 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
21 serial mode corner cases made obsolete by prior gtm_rwlock changes.
22 (gl_wt_dispatch.rollback): Same.
23
efee0113
TR
242012-02-20 Torvald Riegel <triegel@redhat.com>
25
26 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
27
33a03827
TR
282012-02-20 Torvald Riegel <triegel@redhat.com>
29
30 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
31 for RfW src. Optimize number of calls to gtm_thr.
32
a19db3f2
TR
332012-02-20 Torvald Riegel <triegel@redhat.com>
34
35 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
36 acquisition to ...
37 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
38 (default_dispatch): Make atomic.
39 (GTM::gtm_thread::set_default_dispatch): Access atomically.
40 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
41 use decide_begin_dispatch() if default_dispatch might have changed.
42 (GTM::gtm_thread::number_of_threads_changed): Initialize
43 default_dispatch here.
44
e948a1fb
IS
452012-02-15 Iain Sandoe <iains@gcc.gnu.org>
46 Patrick Marlier <patrick.marlier@gmail.com>
47
48 PR libitm/52220
49 * alloc_cpp.cc: No dummy definitions for darwin.
50 * eh_cpp.cc: Likewise.
51
72824d5e
RH
522012-02-14 Richard Henderson <rth@redhat.com>
53
54 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
55
1f319dba
UB
562012-02-14 Uros Bizjak <ubizjak@gmail.com>
57
58 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
59
31772c95
TR
602012-02-14 Torvald Riegel <triegel@redhat.com>
61
62 * libitm_i.h (GTM::gtm_rwlog_entry): New.
63 (GTM::gtm_thread): Add read and write logs.
64 (GTM::dispatch_ml_wt): Declare.
65 * retry.cc (parse_default_method): Support ml_wt.
66 * method-ml.cc: New file.
67 * Makefile.am: Add method-ml.cc.
68 * Makefile.in: Regenerate.
69
5b9cf5d2
TR
702012-02-14 Torvald Riegel <triegel@redhat.com>
71
72 * dispatch.h (GTM::abi_dispatch::supports): New.
73 (GTM::method_group::reinit): New.
74 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
75 (GTM::gtm_thread::number_of_threads_changed): Check that the method
76 supports the current situation.
77
7d33bcb7
TR
782012-02-14 Torvald Riegel <triegel@redhat.com>
79
80 * util.cc (GTM::xcalloc): New.
81 * common.h (GTM::xcalloc): Declare.
82
62513f7b
EB
832012-02-14 Eric Botcazou <ebotcazou@adacore.com>
84
85 * config/sparc/target.h (cpu_relax): Read from CC register.
86 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
87
882012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
89
90 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
91
f3f5e3c3
EB
922012-02-13 Eric Botcazou <ebotcazou@adacore.com>
93
62513f7b 94 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
95 * config/sparc/cacheline.h: New file.
96 * config/sparc/target.h: Likewise.
97 * config/sparc/sjlj.S: Likewise.
98 * config/linux/sparc/futex_bits.h: Likewise.
99
1002012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
101
102 * configure.ac (link_itm): Fix comment.
103 * configure: Regenerate.
104 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
105
681355e3
RO
1062012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
107
fc985d2f 108 PR libitm/51822
62513f7b 109 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
110 Correct libgomp references.
111
999bcff5
TR
1122012-01-24 Torvald Riegel <triegel@redhat.com>
113
114 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
115 wake-up.
116
9848887a
UB
1172012-01-24 Uros Bizjak <ubizjak@gmail.com>
118
119 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
120 end of structure.
121 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
122 offset values. Do not copy return address. Decrement stack
123 by 56 bytes only.
124 (GTM_longjump) [__x86_64__]: Update offset values.
125
5752c591
UB
1262012-01-23 Uros Bizjak <ubizjak@gmail.com>
127
128 PR libitm/51830
129 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
130 the first function argument to %eax.
131
61e72ca4
RO
1322012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133
134 * libitm.h (_ITM_getThreadnum): Remove.
135 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
136
9ce91011
RO
1372012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
138
139 * clearcap.map: New file.
140 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
141 * configure.ac: Call it.
142 Clear HWCAP_LDFLAGS if defaulting to -mavx.
143 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
144 * configure: Regenerate.
145 * Makefile.in: Regenerate.
146 * testsuite/Makefile.in: Regenerate.
147
3b4f05ec
RO
1482012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
149
150 PR libitm/51173
151 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
152 include, exclude options.
153
aab74ee9
TR
1542012-01-14 Torvald Riegel <triegel@redhat.com>
155
156 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
157 rolling back.
158 * containers.h (GTM::vector::set_size): New.
159
07b6642b
TR
1602012-01-14 Torvald Riegel <triegel@redhat.com>
161
162 PR libitm/51855
163 * config/generic/tls.h (GTM::mask_stack_top): New.
164 (GTM::mask_stack_bottom): Declare.
165 * config/generic/tls.c (GTM::mask_stack_bottom): New.
166 * local.cc (gtm_undolog::rollback): Filter out any updates that
167 overlap the libitm stack. Add current transaction as parameter.
168 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
169 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
170 * testsuite/libitm.c/stackundo.c: New test.
171
8377e5e5
RH
1722012-01-10 Richard Henderson <rth@redhat.com>
173
174 * libitm_i.h (_Unwind_DeleteException): Declare weak.
175 * eh_cpp.cc (_Unwind_DeleteException): Define for
176 !HAVE_ELF_STYLE_WEAKREF.
177
11f30bb0
TR
1782012-01-08 Torvald Riegel <triegel@redhat.com>
179
180 * local.cc (GTM_LB): Use GTM::gtm_undolog.
181 (GTM::gtm_thread::drop_references_undolog): Remove.
182 (GTM::gtm_thread::commit_undolog,
183 GTM::gtm_thread::rollback_undolog): Move to ...
184 * libitm_i.h (GTM::gtm_undolog): ...here. New.
185 (GTM::gtm_undolog_entry): Remove.
186 (GTM::gtm_thread): Adapt.
187 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
188 (GTM::gtm_thread::trycommit): Adapt.
189 * method-serial.cc (serial_dispatch::log): Adapt.
190 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
191 (gl_wt_dispatch::store): Fix likely/unlikely.
192 * containers.h (GTM::vector::resize): Add additional_capacity
193 parameter and handle it.
194 (GTM::vector::resize_noinline): New/adapt.
195 (GTM::vector::push): New.
196
a32e5e93
RH
1972012-01-06 Richard Henderson <rth@redhat.com>
198
199 * configure.tgt: Support powerpc-linux and powerpc-darwin.
200 * config/linux/powerpc/futex_bits.h: New file.
201 * config/powerpc/cacheline.h: New file.
202 * config/powerpc/sjlj.S: New file.
203 * config/powerpc/target.h: New file.
204 * config/generic/asmcfi.h (cfi_offset): New.
205 (cfi_restore, cfi_undefined): New.
206
1f53a8e6
AH
2072012-01-05 Aldy Hernandez <aldyh@redhat.com>
208
209 PR other/51171
210 * testsuite/libitm.c/reentrant.c: Remove xfail.
211 (thread): Pass x to pure().
be223aaf 212 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 213
c898f7b8
TR
2142011-12-24 Torvald Riegel <triegel@redhat.com>
215
216 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
217 privatization safety if already in serial mode.
218
610e3901
TR
2192011-12-24 Torvald Riegel <triegel@redhat.com>
220
221 * beginend.cc (GTM::gtm_thread::restart): Add and handle
222 finish_serial_upgrade parameter.
223 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
224 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
225 Don't unset reader flag.
226 (GTM::gtm_rwlock::write_upgrade_finish): New.
227 * config/posix/rwlock.cc: Same.
228 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
229 Declare.
230 * config/posix/rwlock.h: Same.
231 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
232 flag after commit or after rollback when restarting.
233
799142bf
TR
2342011-12-24 Torvald Riegel <triegel@redhat.com>
235
236 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
237 (GTM::gtm_thread::try_commit): Changed memory order.
238 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
239 as parameter.
240 * config/linux/x86/futex_bits.h (sys_futex0): Same.
241 * config/linux/sh/futex_bits.h (sys_futex0): Same.
242 * config/linux/futex_bits.h (sys_futex0): Same.
243 * config/linux/futex.cc (futex_wait, futex_wake): Same.
244 * config/linux/futex.h (futex_wait, futex_wake): Same.
245 * config/linux/rwlock.h (gtm_rwlock::writers,
246 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
247 ints.
248 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
249 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
250 gtm_rwlock::write_unlock): Fix memory orders and fences.
251 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
252 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
253 gtm_rwlock::write_unlock): Same.
254 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
255 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
256 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
257 Add comments.
258 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
259 gl_wt_dispatch::load, gl_wt_dispatch::store,
260 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
261 orders and fences. Add comments.
262
b0f96e35
JJ
2632011-12-21 Jakub Jelinek <jakub@redhat.com>
264
265 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
266 * Makefile.in: Regenerated.
267
cc163247
KK
2682011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
269
270 * configure.tgt: Add sh* case.
271 * config/sh/target.h: New file.
272 * config/sh/sjlj.S: New file.
273 * config/linux/sh/futex_bits.h: New file.
274
aebac0ca
RH
2752011-12-14 Richard Henderson <rth@redhat.com>
276
277 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
278 * config/arm/sjlj.S, config/arm/target.h: New files.
279 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
280 (cfi_rel_offset): New.
281 * config/linux/futex_bits.h: New file.
282 * config/linux/futex.cc: Include futex_bits.h here...
283 * config/linux/futex.h: ... not here.
284 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
285 * configure.ac (ARCH_AM): New conditional.
286 * Makefile.in, configure: Rebuild.
287 * configure.tgt: Handle ARM.
288
36cfbee1
RH
2892011-12-13 Richard Henderson <rth@redhat.com>
290
5d9d05d3
RH
291 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
292 signed/unsigned comparison werror.
293
36cfbee1
RH
294 * local_atomic: New file.
295 * libitm_i.h: Include it.
296 (gtm_thread::shared_state): Use atomic template.
297 * beginend.cc (GTM::gtm_clock): Use atomic template.
298 (global_tid): Use atomic template if 64-bit atomics available.
299 (gtm_thread::gtm_thread): Update shared_state access.
300 (gtm_thread::trycommit): Likewise.
301 (choose_code_path): Update global_tid access.
302 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
303 * stmlock.h (GTM::gtm_clock): Use atomic template.
304 (gtm_get_clock, gtm_inc_clock): Update accesses.
305 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
306 redundant __sync_synchronize after atomic shared_state access.
307 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
308 (gtm_rwlock::write_lock_generic): Likewise.
309 (gtm_rwlock::read_unlock): Likewise.
310 * config/alpha/target.h (atomic_read_barrier): Remove.
311 (atomic_write_barrier): Remove.
312 * config/x86/target.h (atomic_read_barrier): Remove.
313 (atomic_write_barrier): Remove.
314
062f93f2
RH
3152011-11-30 Richard Henderson <rth@redhat.com>
316
317 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
318 * beginend.c (_ITM_abortTransaction): Update to match.
319 (GTM::gtm_thread::restart): Likewise.
320 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
321 * config/x86/sjlj.S (GTM_longjmp): Likewise.
322
bd8aaa86
IS
3232011-11-23 Iain Sandoe <iains@gcc.gnu.org>
324
325 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
326 * Makefile.in: Regenerate.
327
8cf36bb3
IS
3282011-11-22 Iain Sandoe <iains@gcc.gnu.org>
329
330 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
331 * alloc_cpp.cc: Generate dummy functions if we don't
332 HAVE_ELF_STYLE_WEAKREF.
333 * eh_cpp.cc: Likewise.
334 * configure: Regenerate.
335 * aclocal.m4: Likewise.
336 * config.h.in: Likewise.
337 * Makefile.in: Likewise.
338 * testsuite/Makefile.in: Likewise.
339
0b41ebef
IS
3402011-11-22 Iain Sandoe <iains@gcc.gnu.org>
341
342 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
343 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 344 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
345 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
346 in portability to non-elf targets.
8cf36bb3 347 (GTM_longjmp): Likewise.
0b41ebef
IS
348 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
349 where required.
350
9c9d352a
IS
3512011-11-22 Iain Sandoe <iains@gcc.gnu.org>
352
353 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
354 * testsuite/libitm.c/memset-1.c: Likewise.
355
c6084f68
AT
3562011-11-21 Andreas Tobler <andreast@fgznet.ch>
357
358 * configure: Regenerate.
359
adcd36bc
RO
3602011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361
362 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
363 (LIBITM_ENABLE_SYMVERS): Handle sun style.
364 * Makefile.am: Handle sun style versioning.
365 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
366 * configure: Regenerate.
367 * Makefile.in: Regenerate.
368
59659b59
RO
3692011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
370
371 * config/generic/asmcfi.h: Fix comment.
372 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
373 sequence without .hidden support, error for non-ELF targets.
374 (GTM_longjmp) [__ELF__]: Only use .hidden if
375 HAVE_ATTRIBUTE_VISIBILITY.
376
d846e425
RO
3772011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
378
379 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
380 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
381 Dummy functions.
382 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
383 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
384
80713347
UB
3852011-11-16 Uros Bizjak <ubizjak@gmail.com>
386
387 PR bootstrap/51098
388 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
389 * configure: Regenerate.
390
2841f85e
L
3912011-11-14 H.J. Lu <hongjiu.lu@intel.com>
392
393 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
394
8851b429
RO
3952011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
396
397 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
398 .hidden.
399 (.note.GNU-stack): Only use if __linux__.
400 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
401 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
402 * testsuite/libitm.c/reentrant.c: Likewise.
403 * testsuite/libitm.c/simple-2.c: Likewise.
404 * testsuite/libitm.c/txrelease.c: Likewise.
405 * testsuite/libitm.c++/static_ctor.C: Likewise.
406
d4b17902
RH
4072011-11-10 Richard Henderson <rth@redhat.com>
408
409 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
410 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
411 * configure.ac (ARCH_X86_AVX): New conditional.
412 * Makefile.in, configure: Rebuild.
413
430616e7
RH
4142011-11-09 Richard Henderson <rth@redhat.com>
415
416 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
417 * configure.ac: Use it.
418 * config.h.in, configure: Rebuild.
419 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
420
79b1edb6
RH
4212011-11-09 Richard Henderson <rth@redhat.com>
422
423 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
424 * config/alpha/unaligned.h: Remove file.
425 * config/generic/unaligned.h: Remove file.
426 * config/x86/unaligned.h: Remove file.
427 * config/generic/cachepage.h: Remove file.
428 * config/posix/cachepage.cc: Remove file.
429 * config/generic/cacheline.cc: Remove file.
430 * config/x86/cacheline.cc: Remove file.
431 * config/generic/cacheline.h (gtm_cacheline): Remove the
432 store_mask, copy_mask, copy_mask_wb methods.
433 * config/x86/cacheline.h: Likewise.
434 * config/alpha/cacheline.h: Fall back to generic after setting size.
435 * config/generic/tls.cc (gtm_mask_stack): Remove.
436 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
437 (GTM_vpalignr_table): Remove.
438 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
439 (GTM_pshift_table): Remove.
440 * config/libitm_i.h: Don't include cachepage.h.
441 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
442 * Makefile.in, testsuite/Makefile.in: Rebuild.
443
4bdd090f
RH
4442011-11-09 Richard Henderson <rth@redhat.com>
445
8ee9fac2
RH
446 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
447 to emit branch prediction hint.
448
9bdc6343
RH
449 * config/x86/sjlj.S: Protect elf directives with __ELF__.
450 Protect .note.GNU-stack with __linux__.
451
4bdd090f
RH
452 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
453 * configure, aclocal.m4, config.h.in: Rebuild.
454 * config/generic/asmcfi.h: New file.
455 * config/x86/sjlj.S: Use it.
456
4408b086
RH
4572011-11-08 Richard Henderson <rth@redhat.com>
458
459 * local.cc (_ITM_LB): Use a normal call, not a function alias.
460
01f3428c
RH
4612011-11-08 Richard Henderson <rth@redhat.com>
462
3d3b05ff
RH
463 * configure.tgt: Test correct directory for supported cpus.
464
01f3428c
RH
465 * configure.ac: Exit if unsupported.
466 * configure: Rebuild.
467 * configure.tgt: Delete boilerplate from libgomp for unsupported
468 targets. Set UNSUPPORTED for unsupported targets.
469
07f03cd3
RO
4702011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 * configure.tgt: Handle i386 like i[456]86.
473 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
474 take address.
475 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
476 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
477
0a35513e
AH
4782011-11-05 Aldy Hernandez <aldyh@redhat.com>
479
480 * method-wbetl.cc: Update copyright notice.
481 * aatree.cc: Same.
482 * util.cc: Same.
483 * libitm.h: Same.
484 * memset.cc: Same.
485 * eh_cpp.cc: Same.
486 * barrier.tpl: Same.
487 * useraction.cc: Same.
488 * stmlock.h: Same.
489 * memcpy.cc: Same.
490 * common.h: Same.
491 * config/generic/tls.cc: Same.
492 * config/generic/cacheline.h: Same.
493 * config/generic/cachepage.h: Same.
494 * config/generic/cacheline.cc: Same.
495 * config/generic/unaligned.h: Same.
496 * config/x86/cacheline.h: Same.
497 * config/x86/cacheline.cc: Same.
498 * config/x86/unaligned.h: Same.
499 * config/alpha/cacheline.h: Same.
500 * config/alpha/unaligned.h: Same.
501 * config/alpha/sjlj.S: Same.
502 * config/posix/cachepage.cc: Same.
503 * config/linux/futex.h: Same.
504 * config/linux/alpha/futex_bits.h: Same.
505
5062011-11-04 Torvald Riegel <triegel@redhat.com>
507
508 * libitm.texi: No cover text and invariant sections.
509
5102011-11-03 Richard Henderson <rth@redhat.com>
511
512 * local_type_traits: New file.
513 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
514
5152011-11-03 Richard Henderson <rth@redhat.com>
516
517 * configure.ac: Don't test for gfortran.
518 * configure: Rebuild.
519
520 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
521 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
522
5232011-11-03 Aldy Hernandez <aldyh@redhat.com>
524
525 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
526 * testsuite/libitm.c/memset-1.c: Same.
527 * testsuite/libitm.c/c.exp: Same.
528 * testsuite/lib/libitm-dg.exp: Same.
529 * testsuite/lib/libitm.exp: Same.
530 * testsuite/libitm.c++/c++.exp: Same.
531
5322011-11-03 Aldy Hernandez <aldyh@redhat.com>
533
534 * testsuite/config/default.exp: Update copyright date.
535 * configure.ac: Add copyright info.
536 * configure.tgt: Same.
537
5382011-11-03 Aldy Hernandez <aldyh@redhat.com>
539
540 * testsuite/libitm.c/reentrant.c: XFAIL.
541 * testsuite/libitm.c++/static_ctor.C: XFAIL.
542
5432011-10-29 Torvald Riegel <triegel@redhat.com>
544
545 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
546 handle aborts.
547 (_ITM_abortTransaction): Handle aborts of outer transactions.
548 * libitm_i.h: Same.
549 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
550 * libitm.texi: Document aborts of outer transactions.
551 * testsuite/libitm.c/cancel.c: New file.
552
5532011-10-19 Torvald Riegel <triegel@redhat.com>
554
555 * testsuite/*: Change __transaction to __transaction_atomic or
556 __transaction_relaxed.
557
5582011-10-19 Torvald Riegel <triegel@redhat.com>
559
560 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
561 (gtm_thr): Same.
562
5632011-10-19 Torvald Riegel <triegel@redhat.com>
564
565 * libitm_i.h: Add gl_wt dispatch.
566 * retry.cc (parse_default_method): Same.
567 * method-gl.cc: New file.
568 * Makefile.am: Use method-gl.cc.
569 * Makefile.in: Rebuild.
570
5712011-10-19 Torvald Riegel <triegel@redhat.com>
572
573 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
574 safety if requested by a TM method.
575 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
576 privatization safety.
577 * method-serial.cc: Same.
578
5792011-10-19 Torvald Riegel <triegel@redhat.com>
580
581 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
582 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
583 undolog-related member functions from *_local to *_undolog.
584 * local.cc (gtm_thread::commit_undolog): Same.
585 * beginend.cc (GTM::gtm_thread::trycommit): Same.
586 (GTM::gtm_thread::rollback): Roll back undolog before
587 dispatch-specific rollback.
588
5892011-10-19 Torvald Riegel <triegel@redhat.com>
590
591 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
592 re-initialization of the current method group.
593 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
594
5952011-10-19 Torvald Riegel <triegel@redhat.com>
596
597 * alloc.cc (commit_allocations_2): Do not free transaction-local
598 memory when committing a nested transaction.
599
6002011-10-19 Torvald Riegel <triegel@redhat.com>
601
602 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
603 serial-irrevocable dispatch, not serial.
604
6052011-10-19 Torvald Riegel <triegel@redhat.com>
606
607 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
608 declarations.
609 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
610 * method-serial.cc: Implement begin_or_restart().
611 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
612 dispatch-specific begin_or_restart().
613 (GTM::gtm_thread::restart): Same.
614
6152011-08-23 Torvald Riegel <triegel@redhat.com>
616
617 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
618 restarting without switching to serial mode.
619 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
620 transaction state. Choose closed-nesting alternative if available.
621 (GTM::gtm_thread::set_default_dispatch): New.
622 (parse_default_method): New.
623 (GTM::gtm_thread::number_of_threads_changed): New.
624 * method-serial.cc (GTM::serial_mg): New method group class.
625 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
626 fini.
627 (GTM::serial_dispatch): Same.
628 (GTM::serialirr_onwrite_dispatch): Same.
629 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
630 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
631 registered threads.
632 (GTM::gtm_thread::gtm_thread): Same.
633 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
634 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
635 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
636 choose dispatch but set state according to dispatch here.
637 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
638 (GTM::method_group): New class.
639 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
640 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
641 * libitm.texi: Document TM methods, method groups, method life cycle.
642 Rename method sets to method groups.
643
6442011-08-23 Torvald Riegel <triegel@redhat.com>
645
646 * config/x86/tls.h: Moved to ...
647 * config/linux/x86/tls.h: ... here.
648
6492011-08-23 Torvald Riegel <triegel@redhat.com>
650
651 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
652 Add X32 support.
653 * config/x86/sjlj.S: Same.
654
6552011-08-19 Torvald Riegel <triegel@redhat.com>
656
657 * config/linux/rwlock.h: New file.
658 * config/linux/rwlock.c: New file.
659 * configure.ac: Reenable futex support (undo SVN rev 157758).
660 * Makefile.am: Same.
661 * configure.tgt: Same.
662 * config/linux/alpha/futex_bits.h: Same.
663 * config/linux/futex.h: Same. Return number of woken processes.
664 * config/linux/futex.cc: Same.
665 (futex_wait): Remove spinning.
666 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
667 Use __x86_64__ instead of __LP64__.
668 * aclocal.m4: Include generic futex checks.
669 * configure: Rebuild.
670 * Makefile.in: Rebuild.
671 * testsuite/Makefile.in: Rebuild.
672 * beginend.cc: Include pthread.h.
673 * config/posix/cachepage.cc: Same.
674
6752011-08-12 Torvald Riegel <triegel@redhat.com>
676
677 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
678 (abi_disp, set_abi_disp): Move to tx's TLS slot.
679 (set_gtm_thr): New.
680 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
681 (set_gtm_thr): New.
682 (GTM::gtm_thread::thread_num): Removed.
683 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
684 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
685 tx-to-thread renaming.
686 * beginend.cc: Adapted to tx-to-thread renaming.
687 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
688 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
689 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
690 gtm_transaction to gtm_thread.
691 (_ITM_getThreadnum): Removed. Not supported anymore.
692 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
693 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
694 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
695 gtm_tx-to-gtm_thr renaming if necessary.
696 * eh_cpp.cc: Same.
697 * local.cc: Same.
698 * retry.cc: Same.
699 * clone.cc: Same.
700 * alloc.cc: Same.
701 * alloc_c.cc: Same.
702 * alloc_cpp.cc: Same.
703 * method-serial.cc: Same.
704 * config/generic/tls.cc: Same.
705 * config/posix/rwlock.h (gtm_rwlock): Same.
706 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
707
7082011-08-12 Torvald Riegel <triegel@redhat.com>
709
710 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
711 implementation.
712 (gtm_rwlock::read_unlock): Same.
713 (gtm_rwlock::write_lock_generic): New. Generalized from ...
714 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
715 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
716 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
717 w_upgrade. Replaced by per-transaction flags (in shared_state).
718 Added c_confirmed_writers.
719 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
720 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
721 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
722 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
723 * beginend.cc (GTM::gtm_transaction::begin_transaction,
724 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
725 * libitm.texi: Document locking conventions and implementations in
726 libitm.
727
7282011-08-12 Torvald Riegel <triegel@redhat.com>
729
730 * libitm_i.h (next_tx): Add list of all threads' transaction.
731 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
732 transaction with list of transactions and ...
733 (thread_exit_handler): ... deregister here.
734 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
735 * config/x86/target.h: Same.
736
7372011-08-12 Torvald Riegel <triegel@redhat.com>
738
739 * testsuite/libitm.c++/static_ctor.C: New file.
740
7412011-08-12 Torvald Riegel <triegel@redhat.com>
742
743 * testsuite/libitm.c/reentrant.c: New file.
744
7452011-08-12 Torvald Riegel <triegel@redhat.com>
746
747 * config/generic/tls.h: Remove the free list for transactions and ...
748 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
749 (GTM::gtm_transaction::operator delete): ... and release here.
750 (thread_exit_handler): New. Delete tx when thread terminates.
751 (thread_exit_init): New.
752 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
753 * testsuite/libitm.c/txrelease.c: New file.
754
7552011-08-12 Torvald Riegel <triegel@redhat.com>
756
757 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
758 * testsuite/libitm.c/notx.c: New file.
759
7602011-08-12 Torvald Riegel <triegel@redhat.com>
761
762 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
763 * libitm_i.h (local_tid): ... to here.
764 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
765 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
766
7672011-08-12 Torvald Riegel <triegel@redhat.com>
768
769 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
770 serialirr_onwrite_dispatch as new default for now.
771 * method-serial.cc (serialirr_onwrite_dispatch): New.
772 (GTM::dispatch_serialirr_onwrite): New.
773 * libitm_i.h: Same.
774
7752011-08-12 Torvald Riegel <triegel@redhat.com>
776
777 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
778 * query.cc (_ITM_getTransactionId): There is no active transaction if
779 the current nesting level is zero.
780
7812011-07-28 Torvald Riegel <triegel@redhat.com>
782
783 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
784 rollback.
785
7862011-07-28 Torvald Riegel <triegel@redhat.com>
787
788 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
789 transaction properties from the caller instead of from the
790 transaction object.
791 * libitm_i.h: Same.
792 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
793
7942011-07-28 Torvald Riegel <triegel@redhat.com>
795
796 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
797 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
798 * dispatch.h: Same.
799 * method-serial.cc: Same.
800 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
801 flat nesting as default, and closed nesting on demand.
802 (GTM::gtm_transaction::rollback): Same.
803 (_ITM_abortTransaction): Same.
804 (GTM::gtm_transaction::restart): Same.
805 (GTM::gtm_transaction::trycommit): Same.
806 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
807 (choose_code_path): New.
808 (GTM::gtm_transaction_cp::save): New.
809 (GTM::gtm_transaction_cp::commit): New.
810 * query.cc (_ITM_inTransaction): Support flat nesting.
811 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
812 (GTM::gtm_transaction): Support flat and closed nesting.
813 * alloc.cc (commit_allocations_2): New.
814 (commit_cb_data): New helper struct.
815 (GTM::gtm_transaction::commit_allocations): Handle nested
816 commits/rollbacks.
817 * libitm.texi: Update user action section, add description of nesting.
818
8192011-07-28 Torvald Riegel <triegel@redhat.com>
820
821 * libitm_i.h: Add closed nesting as restart reason.
822 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
823
8242011-07-28 Torvald Riegel <triegel@redhat.com>
825
826 * useraction.cc: Use vector instead of list to store actions.
827 Also support partial rollbacks for closed nesting.
828 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
829 * beginend.cc: Same.
830
8312011-07-28 Torvald Riegel <triegel@redhat.com>
832
833 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
834 closed_nesting flags, as well as a closed nesting alternative.
835 * method-serial.cc: Same.
836 (serial_dispatch): Renamed to serialirr_dispatch.
837 (GTM::dispatch_serialirr): Same.
838 (serial_dispatch_ul): Renamed to serial_dispatch.
839 (GTM::dispatch_serial): Same.
840
8412011-07-28 Torvald Riegel <triegel@redhat.com>
842
843 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
844
8452011-07-28 Torvald Riegel <triegel@redhat.com>
846
847 * aatree.h (aa_tree::remove): New.
848 (aa_tree::operator new): Add placement new.
849
8502011-07-02 Torvald Riegel <triegel@redhat.com>
851
852 * containers.h: New file.
853 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
854 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
855 * common.h: ... to here.
856 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
857 * local.cc: Same.
858
8592011-06-30 Torvald Riegel <triegel@redhat.com>
860
861 * libitm_i.h (STATE_ABORTING): Remove.
862 * beginend.cc (_ITM_abortTransaction): Same.
863 (GTM::gtm_transaction::trycommit_and_finalize): Same.
864 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
865 (_ITM_rollbackTransaction): Remove.
866 * beginend.cc: Same.
867 * libitm.map: Same.
868 * libitm.texi: Document these ABI changes.
869
8702011-06-30 Torvald Riegel <triegel@redhat.com>
871
872 * libitm.texi: New file.
873 * Makefile.am: Add libitm.texi.
874 * Makefile.in: Rebuild.
875
8762011-06-30 Torvald Riegel <triegel@redhat.com>
877
878 * libitm_i.h: Move parts to common.h and dispatch.h.
879 * common.h: New file.
880 * dispatch.h: New file, new dispatch class.
881 Rename GTM::abi_dispatch::lock_type to ls_modifier.
882 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
883 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
884 decision to retry.cc.
885 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
886 only.
887 (GTM::gtm_transaction::decide_begin_dispatch): Same.
888 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
889 logging.
890 * barrier.cc: Use new barriers definitions.
891 (abi_dispatch::memmove_overlap_check): New.
892 * config/x86/x86_sse.cc: Same.
893 * config/x86/x86_avx.cc: Same.
894 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
895 memcpy.cc.
896 * Makefile.in: Rebuild.
897 * method-readonly.cc: Remove.
898 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
899 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
900
9012011-06-30 Torvald Riegel <triegel@redhat.com>
902
903 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
904 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
905 * testsuite/libitm.c/dropref-2.c: Same.
906 * testsuite/libitm.c/dropref.c: Same.
907
9082011-06-30 Torvald Riegel <triegel@redhat.com>
909
910 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
911 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
912 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
913 * alloc_c.cc: Same.
914 * barrier.tpl: Same.
915 * beginend.c: Same.
916 * config/generic/tls.h: Same.
917 * config/x86/tls.h: Same.
918 * libitm_i.h: Same.
919 * memcpy.cc: Same.
920 * memset.cc: Same.
921 * method-readonly.cc: Same.
922 * method-serial.cc: Same.
923 * method-wbetl.cc: Same.
924 * retry.cc: Same.
925
9262011-03-03 Richard Henderson <rth@redhat.com>
927
928 * config/posix/rwlock.cc (write_upgrade): Add missing case.
929 From Patrik Marlier <patrick.marlier@unine.ch>.
930
9312011-02-03 Richard Henderson <rth@redhat.com>
932
933 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
934 * configure.ac: Use it.
935 * configure, config.h.in: Rebuild.
936 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
937 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
938 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
939 * libitm.map: Use wildcards to match size_t mangling.
940
9412010-12-14 Richard Henderson <rth@redhat.com>
942
943 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
944 blocks of TIDs per thread.
945 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
946 (setup_gtm_thr): Return the thread structure.
947 * config/x86/tls.h (setup_gtm_thr): Likewise.
948
9492010-12-14 Richard Henderson <rth@redhat.com>
950
951 * clone.cc (table_lock): Remove.
952 (find_clone): Don't take it.
953 (ExcludeTransaction): New helper class.
954 (_ITM_registerTMCloneTable): Use it.
955 (_ITM_deregisterTMCloneTable): Likewise.
956
9572010-12-14 Richard Henderson <rth@redhat.com>
958
959 * config/x86/tls.h: New file.
960
9612010-07-15 Richard Henderson <rth@redhat.com>
962
963 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
964 * Makefile.in: Rebuild.
965
9662010-07-13 Aldy Hernandez <aldyh@redhat.com>
967
968 * method-wbetl.cc (trydropreference): Fix source line.
969
9702010-07-13 Aldy Hernandez <aldyh@redhat.com>
971
972 * libitm.h: Add comment.
973 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
974
9752010-07-07 Aldy Hernandez <aldyh@redhat.com>
976
977 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
978 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
979 available, use pthread mutexes.
980 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
981 * config.h.in: Regenerate.
982 * configure: Regenerate.
983
9842010-07-06 Aldy Hernandez <aldyh@redhat.com>
985
986 * libitm.h (ITM_PURE): Define.
987 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
988
9892010-06-28 Aldy Hernandez <aldyh@redhat.com>
990
991 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
992 (validate): Add comment.
993 (trydropreference): New.
994 * method-readonly.cc (class readonly_dispatch): Add
995 trydropreference.
996 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
997 Call trydropreference().
998 * libitm.h (_ITM_dropReferences): Remove const attribute.
999 * method-serial.cc (class serial_dispatch): Add trydropreference.
1000 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1001
10022010-06-28 Aldy Hernandez <aldyh@redhat.com>
1003
1004 * memcpy.cc (do_memcpy): Comment.
1005
10062010-06-25 Aldy Hernandez <aldyh@redhat.com>
1007
1008 * barrier.tpl: Add comments throughout.
1009
10102010-06-24 Aldy Hernandez <aldyh@redhat.com>
1011
1012 * method-wbetl.cc (struct w_entry): Add comments.
1013 (trycommit): Same.
1014 (rollback): Same.
1015
10162010-06-24 Aldy Hernandez <aldyh@redhat.com>
1017
1018 * alloc_c.cc (_ITM_dropReferences): New.
1019 * libitm.map (_ITM_dropReferences): Add.
1020 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1021 * libitm_i.h (struct gtm_transaction): Declare
1022 drop_references_allocations and drop_references_local.
1023 * local.cc (rollback_local): Ignore memory when applicable.
1024 (drop_references_local): New.
1025
10262010-06-23 Richard Henderson <rth@redhat.com>
1027
1028 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1029 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1030 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1031 * config/alpha/target.h: Likewise.
1032 * config/generic/tls.cc (gtm_mask_stack): Use it.
1033
10342010-06-23 Richard Henderson <rth@redhat.com>
1035
1036 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1037 a mutex instead of trying a lock-free compare-and-swap on the list.
1038 (gtm_cacheline_page::operator delete): Likewise.
1039
10402010-06-16 Richard Henderson <rth@redhat.com>
1041
1042 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1043 that overlap the libitm stack.
1044 * barrier.tpl: Mark incoming stack.
1045 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1046 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1047 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1048 * memcpy.cc, memset.cc: Likewise.
1049 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1050 * config/generic/tls.h (gtm_thread): Add stack_top member.
1051 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1052 * libitm_i.h (gtm_mask_stack): Declare.
1053 * config/generic/tls.cc: New file.
1054 * Makefile.am (libitm_la_SOURCES): Add it.
1055 (AM_CXXFLAGS): Turn off exceptions.
1056 * Makefile.in: Rebuild.
1057
10582010-06-16 Richard Henderson <rth@redhat.com>
1059
1060 * alloc.cc (struct gtm_alloc_action): Move definition ...
1061 * libitm_i.h: ... here.
1062 (class gtm_transaction): Declare new and delete.
1063 * beginend.cc (alloc_tx): Reformulate as operator new.
1064 (free_tx): Reformulate as operator delete.
1065 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1066
10672010-06-11 Richard Henderson <rth@redhat.com>
1068
1069 * clone.cc (clone_entry_compare): Fix typo.
1070 From Patrik Marlier <patrick.marlier@unine.ch>.
1071
10722010-05-13 Richard Henderson <rth@redhat.com>
1073
1074 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1075 in extern "C".
1076
10772010-05-07 Aldy Hernandez <aldyh@redhat.com>
1078
1079 * libitm_i.h (struct gtm_transaction): Remove
1080 get_allocation_size.
1081 (record_allocation): Remove size parameter.
1082 * libitm.map (_ITM_realloc): Remove.
1083 * alloc_c.cc (_ITM_realloc): Remove.
1084 (_ITM_malloc): Remove size argument to record_allocation.
1085 (_ITM_calloc): Same.
1086 * alloc_cpp.cc (_ZGTtnwm): Same.
1087 (_ZGTtnwmRKSt9nothrow_t): Same.
1088 (_ZGTtnam): Same.
1089 (_ZGTtnamRKSt9nothrow_t): Same.
1090 * alloc.cc (struct gtm_alloc_action): Remove size.
1091 (get_allocation_size): Remove.
1092 (commit_allocations): Add comment.
1093 (record_allocation): Remove size parameter.
1094 (forget_allocation): Remove set of size.
1095
10962010-04-19 Aldy Hernandez <aldyh@redhat.com>
1097
1098 * Makefile.am (abi_version): New.
1099 (AM_CXXFLAGS): Pass abi_version.
1100 * Makefile.in: Regenerate.
1101 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1102
11032010-04-06 Aldy Hernandez <aldyh@redhat.com>
1104
1105 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1106 _ITM_getTMCloneOrIrrevokable.
1107 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1108 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1109
11102010-03-26 Aldy Hernandez <aldyh@redhat.com>
1111
1112 * configure.ac: Remove Linux futex support.
1113 * configure.tgt (config_path): Same.
1114 * Makefile.am: Same.
1115 * config/linux: Remove entire directory.
1116 * configure: Rebuild.
1117 * Makefile.in: Rebuild.
1118 * testsuite/Makefile.in: Rebuild.
1119
11202010-03-09 Aldy Hernandez <aldyh@redhat.com>
1121
1122 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1123 switching to serial mode.
1124 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1125
11262010-03-03 Aldy Hernandez <aldyh@redhat.com>
1127
1128 * configure.tgt: Add emacs -*- tags.
1129 * barrier.tpl: Same.
1130
11312010-02-23 Aldy Hernandez <aldyh@redhat.com>
1132
1133 * Makefile.am: Rename serial.cc to method-serial.cc.
1134 * Makefile.in: Regenerate with automake 1.11.1.
1135 * testsuite/Makefile.in: Same.
1136 * aclocal.m4: Regenerate with aclocal 1.11.1.
1137 * method-serial.cc: Rename from serial.cc.
1138 * libitm_i.h (struct gtm_transaction): Update comment on
1139 serialirr_mode.
1140
11412010-02-22 Aldy Hernandez <aldyh@redhat.com>
1142
1143 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1144 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1145
11462010-02-11 Aldy Hernandez <aldyh@redhat.com>
1147
1148 * configure: Rebuild.
1149
11502009-11-12 Richard Henderson <rth@redhat.com>
1151
1152 * Rewrite everything in C++.
1153
11542009-11-03 Richard Henderson <rth@redhat.com>
1155
1156 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1157 * Makefile.am (libitm_la_SOURCES): Add them.
1158 * configure.ac (ARCH_X86): New conditional.
1159 * Makefile.in, configure: Rebuild.
1160 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1161 Move futex setup into "other system configury" case.
1162 * local.c (rollback_local): Merge into ...
1163 (GTM_rollback_local): ... here.
1164 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1165 (_ITM_LB): Define as an alias to GTM_LB.
1166
11672009-11-03 Richard Henderson <rth@redhat.com>
1168
1169 * method-readonly.c: New file.
1170 * Makefile.am (libitm_la_SOURCES): Add it.
1171 * Makefile.in: Rebuild.
1172 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1173 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1174 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1175 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1176 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1177 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1178 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1179 gtm_get_clock, gtm_inc_clock): New.
1180 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1181 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1182 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1183 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1184 replace uses with new libitm_i.h symbols.
1185 (dispatch_wbetl): Rename from wbetl_dispatch.
1186 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1187 away from dispatch_readonly; abort if the beginTransaction call
1188 asserted that the transaction was readonly.
1189
11902009-11-03 Richard Henderson <rth@redhat.com>
1191
1192 * memset.c: New file.
1193 * Makefile.am (libitm_la_SOURCES): Add it.
1194 * Makefile.in: Rebuild.
1195 * testsuite/libitm.c/memset-1.c: New.
1196
11972009-11-03 Richard Henderson <rth@redhat.com>
1198
1199 * dispatch.c: Remove file.
1200 * useraction.c (struct gtm_user_action): Move from libitm.h.
1201 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1202 (serial_memset, serial_memmove, serial_memcpy): Remove.
1203 (serial_W*, serial_R*): Remove.
1204 (serial_dispatch): Update to match.
1205 * configure.ac: Move Werror down below configure checks. Don't
1206 check for sys/loadavg.h, do check for malloc.h. Don't check for
1207 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1208 Use GCC_AC_FUNC_MMAP_BLACKLIST
1209 * libitm.h: Split out all internal items to...
1210 * libitm_i.h: ... here. New file.
1211 * copymask.c: New file.
1212 * local.c (struct gtm_local_undo): Move from libitm.h.
1213 (GTM_alloc_local): Rename from alloc_local; export.
1214 * memcpy.c: New file.
1215 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1216 * config/posix/page.c: New file.
1217 * config/posix/target_tls.h: Remove file.
1218 * barrier.c: New file.
1219 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1220 copymask.c, page.c.
1221 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1222 * method-wbetl.c: Rewrite for new cacheline methods.
1223 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1224
1225 * config/alpha/sjlj.S: Fix typo.
1226 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1227 * config/alpha/copymask.c: New file.
1228 * config/alpha/target.h (CACHELINE_SIZE): New.
1229 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1230
1231 * config/x86/target_i.h: Copy functions from x86/target.h.
1232 * config/x86/copymask.c: New file.
1233 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1234 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1235 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1236 * config/x86/target_tls.h: Move contents to target_i.h.
1237
1238 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1239 * testsuite/libitm.c/memcpy-1.c: New.
1240
12412009-10-22 Richard Henderson <rth@redhat.com>
1242
1243 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1244 (AM_CCASFLAGS): New.
1245 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1246 saving/restoring _AC_ARG_VAR_PRECIOUS.
1247 * Makefile.in, aclocal.m4, config.h.in, configure,
1248 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1249
12502009-10-22 Richard Henderson <rth@redhat.com>
1251
1252 * testsuite/*: Update for new compiler syntax.
1253
12542009-10-21 Richard Henderson <rth@redhat.com>
1255
1256 * libitm.h (_ITM_abortReason): Add outerAbort.
1257
12582009-08-03 Richard Henderson <rth@redhat.com>
1259
1260 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1261 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1262 * method-wbetl.c (struct w_entry): Remove mask.
1263 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1264 adjust all callers.
1265
12662009-07-22 Richard Henderson <rth@redhat.com>
1267
1268 * eh_cpp.c: New file.
1269 * Makefile.am (libitm_la_SOURCES): Add it.
1270 * Makefile.in: Rebuild.
1271 * beginend.c (GTM_rollback_transaction): Undo exception state.
1272 (GTM_trycommit_transaction): Mark inline.
1273 (GTM_trycommit_and_finalize_transaction): Split out from ...
1274 (_ITM_commitTransaction): ... here.
1275 (_ITM_commitTransactionEH): New function.
1276 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1277 cxa_unthrown, eh_in_flight; reorder.
1278
1279 * testsuite/libitm.c++/c++.exp: New.
1280 * testsuite/libitm.c++/eh-1.C: New.
1281
1282 * aatree.c (aa_free): Remove REGPARM.
1283 * aatree.h: Remove all REGPARM.
1284
12852009-07-18 Richard Henderson <rth@redhat.com>
1286
1287 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1288 * Makefile.am (libitm_la_SOURCES): Add them.
1289 * Makefile.in: Rebuild.
1290 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1291 (GTM_trycommit_transaction): Likewise.
1292 * libitm.h: Include aatree.h
1293 (struct gtm_alloc_action): New.
1294 (struct gtm_transaction): Add alloc_actions.
1295 (GTM_record_allocation, GTM_forget_allocation): Declare.
1296 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1297 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1298 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1299 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1300 _ZGTtdaPvRKSt9nothrow_t): Export.
1301
13022009-07-18 Richard Henderson <rth@redhat.com>
1303
1304 * target_tls.h: Move ...
1305 * config/posix/target_tls.h: ... here.
1306
13072009-07-07 Richard Henderson <rth@redhat.com>
1308
1309 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1310
13112009-07-07 Richard Henderson <rth@redhat.com>
1312
1313 * Update to GPL3.
1314
13152009-07-07 Richard Henderson <rth@redhat.com>
1316
1317 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1318 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1319
1320 * configure.tgt: Don't use -ftls-model for x86 linux.
1321 * libitm.h: Include target.h after standard includes.
1322 (_gtm_thr): Rename from gtm_thr.
1323 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1324 (gtm_disp, set_gtm_disp): New.
1325 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1326 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1327 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1328
13292009-07-07 Richard Henderson <rth@redhat.com>
1330
1331 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1332
13332009-07-06 Richard Henderson <rth@redhat.com>
1334
1335 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1336 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1337 (_ITM_beginTransaction): Take variadic arguments.
1338 (_ITM_registerThrownObject): Declare.
1339 * beginend.c, serial.c: Update.
1340 * libitm.map: Add _ITM_registerThrownObject.
1341
13422009-01-28 Richard Henderson <rth@redhat.com>
1343
1344 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1345 * Makefile.in: Rebuild.
1346 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1347 (GTM_restart_transaction): Fix uninstrumented code check.
1348 * retry.c (GTM_decide_retry_strategy): Add serial check.
1349 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1350 automatically go irrevokable when in serial mode.
1351 * clone.c: New file.
1352 * libitm.h, libitm.map: Update.
1353
13542009-01-27 Richard Henderson <rth@redhat.com>
1355
1356 * Makefile.am (LTCCASCOMPILE): Define.
1357 (libitm_la_SOURCES): Add methid-wbetl.c.
1358 * testsuite/Makefile.am: New
1359 * configure.ac: Add testsuite/Makefile.
1360 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1361 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1362 (_ITM_abortTransaction): Finalize implementation method; pass
1363 transaction properties to longjmp.
1364 (GTM_restart_transaction): Split out from ...
1365 (_ITM_commitTransaction): ... here.
1366 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1367 Move to config/x86/target.h.
1368 * config/linux/alpha/futex_bits.h: New.
1369 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1370 * config/x86/target.h: Disable target types for 32-bit.
1371 * config/alpha/sjlj.S, config/alpha/target.h: New.
1372 * libitm.h (struct gtm_dispatch): Add init, fini.
1373 (enum restart_reason): New.
1374 (struct gtm_transaction): Add method and restarts.
1375 * retry.c (GTM_decide_retry_strategy): Implement.
1376 * serial.c (serial_init, serial_fini): New.
1377 (GTM_serialmode): Finialize outgoing method.
1378 * method-wbetl.c: New.
1379
13802008-12-09 Richard Henderson <rth@redhat.com>
1381
1382 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1383 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1384 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1385 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1386 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1387 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1388 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1389 * serial.c (serial_R##T, serial_W##T): Likewise.
1390
13912008-11-21 Richard Henderson <rth@redhat.com>
1392
1393 * Initial commit.