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