]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
invoke.texi (Code Gen Options): Move section up in file, before target-specific options.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
4c868789
RH
12016-01-13 Richard Henderson <rth@redhat.com>
2
3 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
4 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
5 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
6 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
7 * configure.ac (ARCH_AARCH64): New conditional.
8 (ARCH_PPC, ARCH_S390): Likewise.
9 * Makefile.in, configure: Rebuild.
10
11 * libitm.h (_ITM_TYPE_M128): Always define.
12 * vect64.cc: Split ...
13 * vect128.cc: ... out of...
14 * config/x86/x86_sse.cc: ... here.
15 * config/arm/neon.cc: New file.
16
629e4729
TR
172016-01-13 Torvald Riegel <triegel@redhat.com>
18
19 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
20 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
21 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
22 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
23 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
24 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
25 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
26 (serialirr_dispatch::snapshot_most_recent): New.
27 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
28
0d1ed412
TR
292016-01-12 Torvald Riegel <triegel@redhat.com>
30
31 * libitm_i.h (gtm_mask_stack): Remove.
32 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
33 * stmlock.h: Remove file.
34 * config/alpha/cacheline.h: Likewise.
35 * config/generic/cacheline.h: Likewise.
36 * config/powerpc/cacheline.h: Likewise.
37 * config/sparc/cacheline.h: Likewise.
38 * config/x86/cacheline.h: Likewise.
39
21fa2a29
JJ
402016-01-04 Jakub Jelinek <jakub@redhat.com>
41
818ab71a
JJ
42 Update copyright years.
43
21fa2a29
JJ
44 * libitm.texi: Bump @copying's copyright year.
45
e7f7330f
TR
462015-11-26 Torvald Riegel <triegel@redhat.com>
47
48 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
49 (ml_wt_dispatch::pre_write): Adapt.
50 (ml_wt_dispatch::pre_load): Likewise.
51
4f8a3b87
TR
522015-11-22 Torvald Riegel <triegel@redhat.com>
53
54 * libitm_i.h (gtm_alloc_action): Remove union.
55 * testsuite/libitm.c/alloc-1.c: New.
56
258c1d07
TR
572015-11-19 Torvald Riegel <triegel@redhat.com>
58
59 * testsuite/libitm.c++/eh-5.C: New.
60 * libitm.h (_ITM_cxa_free_exception): New.
61 * libitm.map (_ITM_cxa_free_exception): Add it.
62 * libitm.texi: Update ABI docs.
63 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
64 (gtm_transaction_cp::cxa_uncaught_count): Add.
65 (gtm_thread::cxa_unthrown): Remove.
66 (gtm_thread::cxa_uncaught_count_ptr): Add.
67 (gtm_thread::cxa_uncaught_count): Add.
68 (gtm_thread::drop_references_allocations): Rename to...
69 (gtm_thread::discard_allocation): ... this and adapt.
70 (gtm_thread::init_cpp_exceptions): New.
71 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
72 (gtm_thread::begin_transaction): Likewise.
73 (gtm_transaction_cp::save): Likewise.
74 (gtm_thread::trycommit): Likewise.
75 * eh_cpp.cc: Add overview comments.
76 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
77 (free_any_exception, _ITM_cxa_free_exception): New.
78 (gtm_thread::init_cpp_exceptions): Define.
79 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
80 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
81 (gtm_thread::revert_cpp_exceptions): Likewise.
82
c518678b
TR
832015-11-09 Torvald Riegel <triegel@redhat.com>
84
85 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
86 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
87 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
88 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
89 (gtm_thread::forget_allocations): New overload with size_t argument.
90 * alloc.c (gtm_thread::forget_allocation): Define new overload and
91 adapt existing one.
92 (gtm_thread::record_allocation): Adapt.
93 (gtm_thread::commit_allocations_1): Adapt.
94 (gtm_thread::commit_allocations_2): Adapt.
95 * testsuite/libitm.c++/newdelete.C: New.
96
1e44e857
DJ
972015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
98 Joseph Myers <joseph@codesourcery.com>
99 Mark Shinwell <shinwell@codesourcery.com>
100 Andrew Stubbs <ams@codesourcery.com>
101 Rich Felker <dalias@libc.org>
102
103 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
104 GTM_begin_transaction for compatibility with FDPIC.
105
9e531d37
DM
1062015-10-09 David Malcolm <dmalcolm@redhat.com>
107
108 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
109 using load_gcc_lib.
110
c629c246
GFM
1112015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
112
113 PR libitm/61164
114 * local_atomic (__always_inline): Rename to...
115 (__libitm_always_inline): ... this.
116
cd5a9a74
CSLL
1172015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
118
119 PR target/52482
120 * config/powerpc/sjlj.S: Port to Xcode 2.5.
121
ea023bcf
UB
1222015-05-27 Uros Bizjak <ubizjak@gmail.com>
123
d778b5a0
UB
124 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
125 operands "op" and "val" to int.
126
1272015-05-27 Uros Bizjak <ubizjak@gmail.com>
128
129 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
130 "op" and "val" to int.
131
1322015-05-27 Uros Bizjak <ubizjak@gmail.com>
133
134 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
135 "op" and "val" to int.
136
1372015-05-27 Uros Bizjak <ubizjak@gmail.com>
138
139 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
140 Declare as static int.
141 (FUTEX_PRIVATE_FLAG): Remove L suffix.
142 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
143
1442015-05-27 Uros Bizjak <ubizjak@gmail.com>
145
146 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
147 sys_futex0 function.
ea023bcf 148
503902f9
MH
1492015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
150
151 * Makefile.in: Regenerated with automake-1.11.6.
152 * aclocal.m4: Likewise.
153 * configure: Likewise.
154 * testsuite/Makefile.in: Likewise.
155
96ce40cb
GR
1562015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
157
158 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
159 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
160
3a07b160
L
1612015-01-15 H.J. Lu <hongjiu.lu@intel.com>
162
163 PR libitm/64360
164 * libitm.c/stackundo.c (test2): Make it static.
165 (test1): Likewise.
166
5624e564
JJ
1672015-01-05 Jakub Jelinek <jakub@redhat.com>
168
169 Update copyright years.
170
b67cd4e3
JJ
1712015-01-05 Jakub Jelinek <jakub@redhat.com>
172
173 * libitm.texi: Bump @copying's copyright year.
174
69aef6dc
KT
1752014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
176
177 * testsuite/lib/libitm.exp: Load target-utils.exp.
178 Move load of target-supports.exp earlier.
179
68bc9270
UB
1802014-12-03 Uros Bizjak <ubizjak@gmail.com>
181
182 * configure.tgt (x86_64): Tune -m32 multilib to generic.
183
a699d672
L
1842014-11-21 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR bootstrap/63784
187 * configure: Regenerated.
188
ebf6d33b
FXC
1892014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
190
191 PR target/63610
192 * configure: Regenerate.
193
99183741
MP
1942014-10-06 Marek Polacek <polacek@redhat.com>
195
196 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
197 * testsuite/libitm.c/memset-1.c: Likewise.
198
b6334cf4
RH
1992014-07-24 Richard Henderson <rth@redhat.com>
200
201 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
202 addressing mode in epilogue.
203
3c698bf0
RO
2042014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
205
206 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
207 -mclear-hwcap instead.
208 * configure: Regenerate.
209 * clearcap.map: Remove.
210
dbed5a9b
JM
2112014-05-21 John Marino <gnugcc@marino.st>
212
213 * configure.tgt (*-*-dragonfly*): New target.
214
b17f08dd
RH
2152014-05-19 Richard Henderson <rth@redhat.com>
216
217 * config/aarch64/sjlj.S: New file.
218 * config/aarch64/target.h: New file.
219 * configure.tgt: Enable aarch64.
220
5e1f630a
RO
2212014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222
223 * config/generic/asmcfi.h: Also check for
224 __GCC_HAVE_DWARF2_CFI_ASM.
225
84c2f4b0
RH
2262013-04-02 Richard Henderson <rth@redhat.com>
227
228 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
229 * config/arm/target.h, config/sh/target.h: Likewise.
230 * config/sparc/target.h, config/x86/target.h: Likewise.
231
7cc51d64
JJ
2322014-03-26 Jakub Jelinek <jakub@redhat.com>
233
234 * config/linux/futex_bits.h: Include errno.h.
235 (sys_futex0): If syscall returns -1, return -errno rather than
236 -1.
237
c288ec8f
JM
2382014-03-26 Joseph Myers <joseph@codesourcery.com>
239
240 * libitm.texi (Index): Rename to Library Index.
241
ed100f5d
L
2422014-01-13 H.J. Lu <hongjiu.lu@intel.com>
243
244 PR libitm/53113
245 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
246 (x86_avx.lo): Append -mavx to CXXFLAGS.
247 * Makefile.in: Regenerate.
248
f93608e6
RS
2492014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
250
251 Update copyright years
252
98db73df
TB
2532014-01-02 Tobias Burnus <burnus@net-b.de>
254
255 * libitm.texi: Bump @copying's copyright year.
256
b54214fe
UW
2572013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
258
259 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
260 (FUNC): Define ELFv2 variant.
261 (END): Likewise.
262 (HIDDEN): Likewise.
263 (CALL): Likewise.
264 (BASE): Likewise.
265 (LR_SAVE): Likewise.
266
3cbe17f7
AM
2672013-09-20 Alan Modra <amodra@gmail.com>
268
269 * configure: Regenerate.
270
6fb471d8
TR
2712013-08-30 Torvald Riegel <triegel@redhat.com>
272
273 * config/posix/rwlock.cc: Fix initialization order.
274
bec9ec3f
TR
2752013-08-30 Torvald Riegel <triegel@redhat.com>
276
277 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
278 (htm_fastpath): Assign an asm name.
279 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
280 HTM fast paths.
281 (_ITM_actions): Likewise.
282 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
283 x86_64.
284 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
285 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
286 field to the start of the structure.
287 * config/linux/rwlock.h (gtm_rwlock): Update comments.
288 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
289 handling for custom HTM fast paths.
290
1869217f
AK
2912013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
292 Revert:
293 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
294
295 * configure.tgt: Add -msoft-float to XCFLAGS.
296
d62d5152
AK
2972013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
298
299 * configure.tgt: Add -msoft-float to XCFLAGS.
300
aaaffb2a
AK
3012013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
302
303 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
304 (htm_transaction_active): Enable zEC12 instructions in the
305 assembler.
306 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
307
167f68ed
AK
3082013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
309
310 * acinclude.m4: Add htm asm check for s390.
311 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
312 * configure: Regenerate.
313 * config/s390/target.h: Remove __HTM__ check.
314 (htm_available): Call getauxval to get hwcaps and check whether
315 HTM is available or not.
316
0258b6e4
PB
3172013-07-15 Peter Bergner <bergner@vnet.ibm.com>
318
319 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
320 * configure.ac: Use it.
321 (AC_CHECK_HEADERS): Check for sys/auxv.h.
322 (AC_CHECK_FUNCS): Check for getauxval.
323 * config.h.in, configure: Rebuild.
324 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
325 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
326 (USE_HTM_FASTPATH): Define.
327 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
328 _HTM_RETRIES) New macros.
329 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
330 htm_begin_success, htm_commit, htm_transaction_active): New functions.
331
5a3fe9b6
AK
3322013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
333
334 * config/s390/target.h: Include htmintrin.h.
335 (_HTM_ITM_RETRIES): New macro definition.
336 (htm_available, htm_init, htm_begin, htm_begin_success)
337 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
338
6c84d576
IS
3392013-06-20 Iain Sandoe <iain@codesourcery.com>
340 Cesar Philippidis <cesar@codesourcery.com>
341
342 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
343 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
344 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
345 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
346
480c696b
TR
3472013-06-20 Torvald Riegel <triegel@redhat.com>
348
349 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
350 (_ITM_getTransactionId): Same.
351 * config/x86/target.h (htm_transaction_active): New.
352
b1db457b
TR
3532013-06-20 Torvald Riegel <triegel@redhat.com>
354
355 PR libitm/57643
356 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
357 the HTM fastpath.
358
51249377
GP
3592013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
360
361 PR bootstrap/56714
362 * local_atomic (__always_inline): Always define our version.
363 (__calculate_memory_order): Mark inline.
364 (atomic_thread_fence): Ditto.
365 (atomic_signal_fence): Ditto.
366 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
367 (atomic_bool::atomic_flag_clear_explicit): Ditto.
368 (atomic_bool::atomic_flag_test_and_set): Ditto.
369 (atomic_bool::atomic_flag_clear): Ditto.
370
f818478b
JJ
3712013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
372
373 * config/s390/sjlj.S: New file.
374 * config/s390/target.h: New file.
375 * configure.tgt: Set options for S/390.
376
ab4425be
AK
3772013-03-23 Andi Kleen <ak@linux.intel.com>
378
379 * local_atomic (__always_inline): Add.
380 (__calculate_memory_order, atomic_thread_fence,
381 atomic_signal_fence, test_and_set, clear, store, load,
382 exchange, compare_exchange_weak, compare_exchange_strong,
383 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
384 Add __always_inline to force inlining.
385
6c59ffd1
IS
3862013-02-11 Iain Sandoe <iain@codesourcery.com>
387 Jack Howarth <howarth@bromo.med.uc.edu>
388 Patrick Marlier <patrick.marlier@gmail.com>
389
390 PR libitm/55693
391 * alloc_cpp.cc: Enable function declarations on darwin.
392 * eh_cpp.cc: Likewise.
393
75f9527c
RS
3942013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
395
396 Update copyright years.
397
64fbcc74
TR
3982012-11-09 Torvald Riegel <triegel@redhat.com>
399
400 * beginend.cc (htm_fastpath): New.
401 (gtm_thread::begin_transaction, _ITM_commitTransaction,
402 _ITM_commitTransactionEH): Add HTM fastpath handling.
403 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
404 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
405 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
406 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
407 * configure.tgt: Add -mrtm to XCFLAGS.
408 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
409 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
410 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
411 * retry.cc (parse_default_method): Add HTM method parsing.
412 (gtm_thread::number_of_threads_changed): Use HTM by default if
413 available.
414
b9efc877
TS
4152012-11-04 Thomas Schwinge <thomas@codesourcery.com>
416
417 * configure: Regenerate.
418
07d3b5c8
RH
4192012-10-31 Richard Henderson <rth@redhat.com>
420
421 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
422 * configure.ac: Use it.
423 * config.h.in, configure: Rebuild.
424 * testsuite/Makefile.in: Rebuild.
425
eb00e959
TR
4262012-10-24 Torvald Riegel <triegel@redhat.com>
427
428 * libitm.texi: Clarify ABI requirements for data-logging functions.
429
b679c813
TR
4302012-10-24 Torvald Riegel <triegel@redhat.com>
431
432 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
433 it requires serial mode instead of assuming that for certain
434 dispatchs.
435 * dispatch.h (abi_dispatch::requires_serial): New.
436 (abi_dispatch::abi_dispatch): Adapt.
437 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
438 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
439 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
440 serial_dispatch::serial_dispatch,
441 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
442
0c609a21
UB
4432012-10-02 Uros Bizjak <ubizjak@gmail.com>
444
445 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
446 and ia32 declarations some more.
447 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
448
c0758df9
JJ
4492012-09-20 Jakub Jelinek <jakub@redhat.com>
450
451 PR other/43620
452 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
453 * configure: Regenerate.
454 * Makefile.in: Regenerate.
455
690c45b8
DE
4562012-09-14 David Edelsohn <dje.gcc@gmail.com>
457
458 * configure: Regenerated.
459
68a12ef3
UB
4602012-07-31 Uros Bizjak <ubizjak@gmail.com>
461
462 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
463
f2f9a097
PM
4642012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
465
466 * eh_cpp.cc: Fix __cxa_end_catch declaration.
467
e6d5f8c9
L
4682012-05-16 H.J. Lu <hongjiu.lu@intel.com>
469
470 * configure: Regenerated.
471
0100e3b3
L
4722012-04-04 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR libitm/52854
475 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
476 for x86-64.
477
2f6935f4
TG
4782012-04-03 Tristan Gingold <gingold@adacore.com>
479
480 * configure: Regenerate.
481
b9c23a61
L
4822012-03-31 H.J. Lu <hongjiu.lu@intel.com>
483
484 PR bootstrap/52812
485 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
486
6a26a74d
BRF
4872012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
488
489 * testsuite/lib/libitm.exp: load fortran-modules.exp
490
b24513a1
RO
4912012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
492
493 * configure.tgt (*-*-irix6*): Remove.
494
0d23faac
TR
4952012-03-13 Torvald Riegel <triegel@redhat.com>
496
497 PR libitm/52526
498 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
499 wake-up.
500
5c30094f
RO
5012012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502
503 * configure.tgt (*-*-osf*): Remove.
504 * configure: Regenerate.
505
d28b0b08
TR
5062012-03-05 Torvald Riegel <triegel@redhat.com>
507
508 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
509 memtransfer/memset if size isn't larger than zero.
510
034209bc
TR
5112012-03-02 Torvald Riegel <triegel@redhat.com>
512
513 * libitm.texi: Link to specification and add a usage example.
514
bc8da6ba
TR
5152012-02-24 Torvald Riegel <triegel@redhat.com>
516
517 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
518 default dispatch for more than 1 thread to ml_wt.
519
63b08143
TR
5202012-02-20 Torvald Riegel <triegel@redhat.com>
521
522 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
523
4c9bd6ac
TR
5242012-02-20 Torvald Riegel <triegel@redhat.com>
525
526 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
527
651ff415
TR
5282012-02-20 Torvald Riegel <triegel@redhat.com>
529
530 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
531 serial mode corner cases made obsolete by prior gtm_rwlock changes.
532 (gl_wt_dispatch.rollback): Same.
533
efee0113
TR
5342012-02-20 Torvald Riegel <triegel@redhat.com>
535
536 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
537
33a03827
TR
5382012-02-20 Torvald Riegel <triegel@redhat.com>
539
540 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
541 for RfW src. Optimize number of calls to gtm_thr.
542
a19db3f2
TR
5432012-02-20 Torvald Riegel <triegel@redhat.com>
544
545 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
546 acquisition to ...
547 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
548 (default_dispatch): Make atomic.
549 (GTM::gtm_thread::set_default_dispatch): Access atomically.
550 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
551 use decide_begin_dispatch() if default_dispatch might have changed.
552 (GTM::gtm_thread::number_of_threads_changed): Initialize
553 default_dispatch here.
554
e948a1fb
IS
5552012-02-15 Iain Sandoe <iains@gcc.gnu.org>
556 Patrick Marlier <patrick.marlier@gmail.com>
557
558 PR libitm/52220
559 * alloc_cpp.cc: No dummy definitions for darwin.
560 * eh_cpp.cc: Likewise.
561
72824d5e
RH
5622012-02-14 Richard Henderson <rth@redhat.com>
563
564 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
565
1f319dba
UB
5662012-02-14 Uros Bizjak <ubizjak@gmail.com>
567
568 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
569
31772c95
TR
5702012-02-14 Torvald Riegel <triegel@redhat.com>
571
572 * libitm_i.h (GTM::gtm_rwlog_entry): New.
573 (GTM::gtm_thread): Add read and write logs.
574 (GTM::dispatch_ml_wt): Declare.
575 * retry.cc (parse_default_method): Support ml_wt.
576 * method-ml.cc: New file.
577 * Makefile.am: Add method-ml.cc.
578 * Makefile.in: Regenerate.
579
5b9cf5d2
TR
5802012-02-14 Torvald Riegel <triegel@redhat.com>
581
582 * dispatch.h (GTM::abi_dispatch::supports): New.
583 (GTM::method_group::reinit): New.
584 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
585 (GTM::gtm_thread::number_of_threads_changed): Check that the method
586 supports the current situation.
587
7d33bcb7
TR
5882012-02-14 Torvald Riegel <triegel@redhat.com>
589
590 * util.cc (GTM::xcalloc): New.
591 * common.h (GTM::xcalloc): Declare.
592
62513f7b
EB
5932012-02-14 Eric Botcazou <ebotcazou@adacore.com>
594
595 * config/sparc/target.h (cpu_relax): Read from CC register.
596 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
597
5982012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
599
600 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
601
f3f5e3c3
EB
6022012-02-13 Eric Botcazou <ebotcazou@adacore.com>
603
62513f7b 604 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
605 * config/sparc/cacheline.h: New file.
606 * config/sparc/target.h: Likewise.
607 * config/sparc/sjlj.S: Likewise.
608 * config/linux/sparc/futex_bits.h: Likewise.
609
6102012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
611
612 * configure.ac (link_itm): Fix comment.
613 * configure: Regenerate.
614 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
615
681355e3
RO
6162012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
617
fc985d2f 618 PR libitm/51822
62513f7b 619 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
620 Correct libgomp references.
621
999bcff5
TR
6222012-01-24 Torvald Riegel <triegel@redhat.com>
623
624 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
625 wake-up.
626
9848887a
UB
6272012-01-24 Uros Bizjak <ubizjak@gmail.com>
628
629 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
630 end of structure.
631 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
632 offset values. Do not copy return address. Decrement stack
633 by 56 bytes only.
634 (GTM_longjump) [__x86_64__]: Update offset values.
635
5752c591
UB
6362012-01-23 Uros Bizjak <ubizjak@gmail.com>
637
638 PR libitm/51830
639 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
640 the first function argument to %eax.
641
61e72ca4
RO
6422012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
643
644 * libitm.h (_ITM_getThreadnum): Remove.
645 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
646
9ce91011
RO
6472012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
648
649 * clearcap.map: New file.
650 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
651 * configure.ac: Call it.
652 Clear HWCAP_LDFLAGS if defaulting to -mavx.
653 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
654 * configure: Regenerate.
655 * Makefile.in: Regenerate.
656 * testsuite/Makefile.in: Regenerate.
657
3b4f05ec
RO
6582012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
659
660 PR libitm/51173
661 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
662 include, exclude options.
663
aab74ee9
TR
6642012-01-14 Torvald Riegel <triegel@redhat.com>
665
666 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
667 rolling back.
668 * containers.h (GTM::vector::set_size): New.
669
07b6642b
TR
6702012-01-14 Torvald Riegel <triegel@redhat.com>
671
672 PR libitm/51855
673 * config/generic/tls.h (GTM::mask_stack_top): New.
674 (GTM::mask_stack_bottom): Declare.
675 * config/generic/tls.c (GTM::mask_stack_bottom): New.
676 * local.cc (gtm_undolog::rollback): Filter out any updates that
677 overlap the libitm stack. Add current transaction as parameter.
678 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
679 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
680 * testsuite/libitm.c/stackundo.c: New test.
681
8377e5e5
RH
6822012-01-10 Richard Henderson <rth@redhat.com>
683
684 * libitm_i.h (_Unwind_DeleteException): Declare weak.
685 * eh_cpp.cc (_Unwind_DeleteException): Define for
686 !HAVE_ELF_STYLE_WEAKREF.
687
11f30bb0
TR
6882012-01-08 Torvald Riegel <triegel@redhat.com>
689
690 * local.cc (GTM_LB): Use GTM::gtm_undolog.
691 (GTM::gtm_thread::drop_references_undolog): Remove.
692 (GTM::gtm_thread::commit_undolog,
693 GTM::gtm_thread::rollback_undolog): Move to ...
694 * libitm_i.h (GTM::gtm_undolog): ...here. New.
695 (GTM::gtm_undolog_entry): Remove.
696 (GTM::gtm_thread): Adapt.
697 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
698 (GTM::gtm_thread::trycommit): Adapt.
699 * method-serial.cc (serial_dispatch::log): Adapt.
700 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
701 (gl_wt_dispatch::store): Fix likely/unlikely.
702 * containers.h (GTM::vector::resize): Add additional_capacity
703 parameter and handle it.
704 (GTM::vector::resize_noinline): New/adapt.
705 (GTM::vector::push): New.
706
a32e5e93
RH
7072012-01-06 Richard Henderson <rth@redhat.com>
708
709 * configure.tgt: Support powerpc-linux and powerpc-darwin.
710 * config/linux/powerpc/futex_bits.h: New file.
711 * config/powerpc/cacheline.h: New file.
712 * config/powerpc/sjlj.S: New file.
713 * config/powerpc/target.h: New file.
714 * config/generic/asmcfi.h (cfi_offset): New.
715 (cfi_restore, cfi_undefined): New.
716
1f53a8e6
AH
7172012-01-05 Aldy Hernandez <aldyh@redhat.com>
718
719 PR other/51171
720 * testsuite/libitm.c/reentrant.c: Remove xfail.
721 (thread): Pass x to pure().
be223aaf 722 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 723
c898f7b8
TR
7242011-12-24 Torvald Riegel <triegel@redhat.com>
725
726 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
727 privatization safety if already in serial mode.
728
610e3901
TR
7292011-12-24 Torvald Riegel <triegel@redhat.com>
730
731 * beginend.cc (GTM::gtm_thread::restart): Add and handle
732 finish_serial_upgrade parameter.
733 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
734 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
735 Don't unset reader flag.
736 (GTM::gtm_rwlock::write_upgrade_finish): New.
737 * config/posix/rwlock.cc: Same.
738 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
739 Declare.
740 * config/posix/rwlock.h: Same.
741 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
742 flag after commit or after rollback when restarting.
743
799142bf
TR
7442011-12-24 Torvald Riegel <triegel@redhat.com>
745
746 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
747 (GTM::gtm_thread::try_commit): Changed memory order.
748 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
749 as parameter.
750 * config/linux/x86/futex_bits.h (sys_futex0): Same.
751 * config/linux/sh/futex_bits.h (sys_futex0): Same.
752 * config/linux/futex_bits.h (sys_futex0): Same.
753 * config/linux/futex.cc (futex_wait, futex_wake): Same.
754 * config/linux/futex.h (futex_wait, futex_wake): Same.
755 * config/linux/rwlock.h (gtm_rwlock::writers,
756 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
757 ints.
758 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
759 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
760 gtm_rwlock::write_unlock): Fix memory orders and fences.
761 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
762 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
763 gtm_rwlock::write_unlock): Same.
764 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
765 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
766 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
767 Add comments.
768 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
769 gl_wt_dispatch::load, gl_wt_dispatch::store,
770 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
771 orders and fences. Add comments.
772
b0f96e35
JJ
7732011-12-21 Jakub Jelinek <jakub@redhat.com>
774
775 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
776 * Makefile.in: Regenerated.
777
cc163247
KK
7782011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
779
780 * configure.tgt: Add sh* case.
781 * config/sh/target.h: New file.
782 * config/sh/sjlj.S: New file.
783 * config/linux/sh/futex_bits.h: New file.
784
aebac0ca
RH
7852011-12-14 Richard Henderson <rth@redhat.com>
786
787 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
788 * config/arm/sjlj.S, config/arm/target.h: New files.
789 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
790 (cfi_rel_offset): New.
791 * config/linux/futex_bits.h: New file.
792 * config/linux/futex.cc: Include futex_bits.h here...
793 * config/linux/futex.h: ... not here.
794 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
795 * configure.ac (ARCH_AM): New conditional.
796 * Makefile.in, configure: Rebuild.
797 * configure.tgt: Handle ARM.
798
36cfbee1
RH
7992011-12-13 Richard Henderson <rth@redhat.com>
800
5d9d05d3
RH
801 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
802 signed/unsigned comparison werror.
803
36cfbee1
RH
804 * local_atomic: New file.
805 * libitm_i.h: Include it.
806 (gtm_thread::shared_state): Use atomic template.
807 * beginend.cc (GTM::gtm_clock): Use atomic template.
808 (global_tid): Use atomic template if 64-bit atomics available.
809 (gtm_thread::gtm_thread): Update shared_state access.
810 (gtm_thread::trycommit): Likewise.
811 (choose_code_path): Update global_tid access.
812 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
813 * stmlock.h (GTM::gtm_clock): Use atomic template.
814 (gtm_get_clock, gtm_inc_clock): Update accesses.
815 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
816 redundant __sync_synchronize after atomic shared_state access.
817 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
818 (gtm_rwlock::write_lock_generic): Likewise.
819 (gtm_rwlock::read_unlock): Likewise.
820 * config/alpha/target.h (atomic_read_barrier): Remove.
821 (atomic_write_barrier): Remove.
822 * config/x86/target.h (atomic_read_barrier): Remove.
823 (atomic_write_barrier): Remove.
824
062f93f2
RH
8252011-11-30 Richard Henderson <rth@redhat.com>
826
827 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
828 * beginend.c (_ITM_abortTransaction): Update to match.
829 (GTM::gtm_thread::restart): Likewise.
830 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
831 * config/x86/sjlj.S (GTM_longjmp): Likewise.
832
bd8aaa86
IS
8332011-11-23 Iain Sandoe <iains@gcc.gnu.org>
834
835 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
836 * Makefile.in: Regenerate.
837
8cf36bb3
IS
8382011-11-22 Iain Sandoe <iains@gcc.gnu.org>
839
840 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
841 * alloc_cpp.cc: Generate dummy functions if we don't
842 HAVE_ELF_STYLE_WEAKREF.
843 * eh_cpp.cc: Likewise.
844 * configure: Regenerate.
845 * aclocal.m4: Likewise.
846 * config.h.in: Likewise.
847 * Makefile.in: Likewise.
848 * testsuite/Makefile.in: Likewise.
849
0b41ebef
IS
8502011-11-22 Iain Sandoe <iains@gcc.gnu.org>
851
852 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
853 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 854 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
855 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
856 in portability to non-elf targets.
8cf36bb3 857 (GTM_longjmp): Likewise.
0b41ebef
IS
858 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
859 where required.
860
9c9d352a
IS
8612011-11-22 Iain Sandoe <iains@gcc.gnu.org>
862
863 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
864 * testsuite/libitm.c/memset-1.c: Likewise.
865
c6084f68
AT
8662011-11-21 Andreas Tobler <andreast@fgznet.ch>
867
868 * configure: Regenerate.
869
adcd36bc
RO
8702011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
871
872 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
873 (LIBITM_ENABLE_SYMVERS): Handle sun style.
874 * Makefile.am: Handle sun style versioning.
875 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
876 * configure: Regenerate.
877 * Makefile.in: Regenerate.
878
59659b59
RO
8792011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
880
881 * config/generic/asmcfi.h: Fix comment.
882 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
883 sequence without .hidden support, error for non-ELF targets.
884 (GTM_longjmp) [__ELF__]: Only use .hidden if
885 HAVE_ATTRIBUTE_VISIBILITY.
886
d846e425
RO
8872011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
888
889 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
890 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
891 Dummy functions.
892 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
893 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
894
80713347
UB
8952011-11-16 Uros Bizjak <ubizjak@gmail.com>
896
897 PR bootstrap/51098
898 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
899 * configure: Regenerate.
900
2841f85e
L
9012011-11-14 H.J. Lu <hongjiu.lu@intel.com>
902
903 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
904
8851b429
RO
9052011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
906
907 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
908 .hidden.
909 (.note.GNU-stack): Only use if __linux__.
910 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
911 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
912 * testsuite/libitm.c/reentrant.c: Likewise.
913 * testsuite/libitm.c/simple-2.c: Likewise.
914 * testsuite/libitm.c/txrelease.c: Likewise.
915 * testsuite/libitm.c++/static_ctor.C: Likewise.
916
d4b17902
RH
9172011-11-10 Richard Henderson <rth@redhat.com>
918
919 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
920 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
921 * configure.ac (ARCH_X86_AVX): New conditional.
922 * Makefile.in, configure: Rebuild.
923
430616e7
RH
9242011-11-09 Richard Henderson <rth@redhat.com>
925
926 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
927 * configure.ac: Use it.
928 * config.h.in, configure: Rebuild.
929 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
930
79b1edb6
RH
9312011-11-09 Richard Henderson <rth@redhat.com>
932
933 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
934 * config/alpha/unaligned.h: Remove file.
935 * config/generic/unaligned.h: Remove file.
936 * config/x86/unaligned.h: Remove file.
937 * config/generic/cachepage.h: Remove file.
938 * config/posix/cachepage.cc: Remove file.
939 * config/generic/cacheline.cc: Remove file.
940 * config/x86/cacheline.cc: Remove file.
941 * config/generic/cacheline.h (gtm_cacheline): Remove the
942 store_mask, copy_mask, copy_mask_wb methods.
943 * config/x86/cacheline.h: Likewise.
944 * config/alpha/cacheline.h: Fall back to generic after setting size.
945 * config/generic/tls.cc (gtm_mask_stack): Remove.
946 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
947 (GTM_vpalignr_table): Remove.
948 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
949 (GTM_pshift_table): Remove.
950 * config/libitm_i.h: Don't include cachepage.h.
951 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
952 * Makefile.in, testsuite/Makefile.in: Rebuild.
953
4bdd090f
RH
9542011-11-09 Richard Henderson <rth@redhat.com>
955
8ee9fac2
RH
956 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
957 to emit branch prediction hint.
958
9bdc6343
RH
959 * config/x86/sjlj.S: Protect elf directives with __ELF__.
960 Protect .note.GNU-stack with __linux__.
961
4bdd090f
RH
962 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
963 * configure, aclocal.m4, config.h.in: Rebuild.
964 * config/generic/asmcfi.h: New file.
965 * config/x86/sjlj.S: Use it.
966
4408b086
RH
9672011-11-08 Richard Henderson <rth@redhat.com>
968
969 * local.cc (_ITM_LB): Use a normal call, not a function alias.
970
01f3428c
RH
9712011-11-08 Richard Henderson <rth@redhat.com>
972
3d3b05ff
RH
973 * configure.tgt: Test correct directory for supported cpus.
974
01f3428c
RH
975 * configure.ac: Exit if unsupported.
976 * configure: Rebuild.
977 * configure.tgt: Delete boilerplate from libgomp for unsupported
978 targets. Set UNSUPPORTED for unsupported targets.
979
07f03cd3
RO
9802011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
981
982 * configure.tgt: Handle i386 like i[456]86.
983 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
984 take address.
985 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
986 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
987
0a35513e
AH
9882011-11-05 Aldy Hernandez <aldyh@redhat.com>
989
990 * method-wbetl.cc: Update copyright notice.
991 * aatree.cc: Same.
992 * util.cc: Same.
993 * libitm.h: Same.
994 * memset.cc: Same.
995 * eh_cpp.cc: Same.
996 * barrier.tpl: Same.
997 * useraction.cc: Same.
998 * stmlock.h: Same.
999 * memcpy.cc: Same.
1000 * common.h: Same.
1001 * config/generic/tls.cc: Same.
1002 * config/generic/cacheline.h: Same.
1003 * config/generic/cachepage.h: Same.
1004 * config/generic/cacheline.cc: Same.
1005 * config/generic/unaligned.h: Same.
1006 * config/x86/cacheline.h: Same.
1007 * config/x86/cacheline.cc: Same.
1008 * config/x86/unaligned.h: Same.
1009 * config/alpha/cacheline.h: Same.
1010 * config/alpha/unaligned.h: Same.
1011 * config/alpha/sjlj.S: Same.
1012 * config/posix/cachepage.cc: Same.
1013 * config/linux/futex.h: Same.
1014 * config/linux/alpha/futex_bits.h: Same.
1015
10162011-11-04 Torvald Riegel <triegel@redhat.com>
1017
1018 * libitm.texi: No cover text and invariant sections.
1019
10202011-11-03 Richard Henderson <rth@redhat.com>
1021
1022 * local_type_traits: New file.
1023 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1024
10252011-11-03 Richard Henderson <rth@redhat.com>
1026
1027 * configure.ac: Don't test for gfortran.
1028 * configure: Rebuild.
1029
1030 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1031 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1032
10332011-11-03 Aldy Hernandez <aldyh@redhat.com>
1034
1035 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1036 * testsuite/libitm.c/memset-1.c: Same.
1037 * testsuite/libitm.c/c.exp: Same.
1038 * testsuite/lib/libitm-dg.exp: Same.
1039 * testsuite/lib/libitm.exp: Same.
1040 * testsuite/libitm.c++/c++.exp: Same.
1041
10422011-11-03 Aldy Hernandez <aldyh@redhat.com>
1043
1044 * testsuite/config/default.exp: Update copyright date.
1045 * configure.ac: Add copyright info.
1046 * configure.tgt: Same.
1047
10482011-11-03 Aldy Hernandez <aldyh@redhat.com>
1049
1050 * testsuite/libitm.c/reentrant.c: XFAIL.
1051 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1052
10532011-10-29 Torvald Riegel <triegel@redhat.com>
1054
1055 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1056 handle aborts.
1057 (_ITM_abortTransaction): Handle aborts of outer transactions.
1058 * libitm_i.h: Same.
1059 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1060 * libitm.texi: Document aborts of outer transactions.
1061 * testsuite/libitm.c/cancel.c: New file.
1062
10632011-10-19 Torvald Riegel <triegel@redhat.com>
1064
1065 * testsuite/*: Change __transaction to __transaction_atomic or
1066 __transaction_relaxed.
1067
10682011-10-19 Torvald Riegel <triegel@redhat.com>
1069
1070 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1071 (gtm_thr): Same.
1072
10732011-10-19 Torvald Riegel <triegel@redhat.com>
1074
1075 * libitm_i.h: Add gl_wt dispatch.
1076 * retry.cc (parse_default_method): Same.
1077 * method-gl.cc: New file.
1078 * Makefile.am: Use method-gl.cc.
1079 * Makefile.in: Rebuild.
1080
10812011-10-19 Torvald Riegel <triegel@redhat.com>
1082
1083 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1084 safety if requested by a TM method.
1085 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1086 privatization safety.
1087 * method-serial.cc: Same.
1088
10892011-10-19 Torvald Riegel <triegel@redhat.com>
1090
1091 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1092 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1093 undolog-related member functions from *_local to *_undolog.
1094 * local.cc (gtm_thread::commit_undolog): Same.
1095 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1096 (GTM::gtm_thread::rollback): Roll back undolog before
1097 dispatch-specific rollback.
1098
10992011-10-19 Torvald Riegel <triegel@redhat.com>
1100
1101 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1102 re-initialization of the current method group.
1103 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1104
11052011-10-19 Torvald Riegel <triegel@redhat.com>
1106
1107 * alloc.cc (commit_allocations_2): Do not free transaction-local
1108 memory when committing a nested transaction.
1109
11102011-10-19 Torvald Riegel <triegel@redhat.com>
1111
1112 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1113 serial-irrevocable dispatch, not serial.
1114
11152011-10-19 Torvald Riegel <triegel@redhat.com>
1116
1117 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1118 declarations.
1119 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1120 * method-serial.cc: Implement begin_or_restart().
1121 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1122 dispatch-specific begin_or_restart().
1123 (GTM::gtm_thread::restart): Same.
1124
11252011-08-23 Torvald Riegel <triegel@redhat.com>
1126
1127 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1128 restarting without switching to serial mode.
1129 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1130 transaction state. Choose closed-nesting alternative if available.
1131 (GTM::gtm_thread::set_default_dispatch): New.
1132 (parse_default_method): New.
1133 (GTM::gtm_thread::number_of_threads_changed): New.
1134 * method-serial.cc (GTM::serial_mg): New method group class.
1135 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1136 fini.
1137 (GTM::serial_dispatch): Same.
1138 (GTM::serialirr_onwrite_dispatch): Same.
1139 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1140 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1141 registered threads.
1142 (GTM::gtm_thread::gtm_thread): Same.
1143 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1144 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1145 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1146 choose dispatch but set state according to dispatch here.
1147 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1148 (GTM::method_group): New class.
1149 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1150 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1151 * libitm.texi: Document TM methods, method groups, method life cycle.
1152 Rename method sets to method groups.
1153
11542011-08-23 Torvald Riegel <triegel@redhat.com>
1155
1156 * config/x86/tls.h: Moved to ...
1157 * config/linux/x86/tls.h: ... here.
1158
11592011-08-23 Torvald Riegel <triegel@redhat.com>
1160
1161 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1162 Add X32 support.
1163 * config/x86/sjlj.S: Same.
1164
11652011-08-19 Torvald Riegel <triegel@redhat.com>
1166
1167 * config/linux/rwlock.h: New file.
1168 * config/linux/rwlock.c: New file.
1169 * configure.ac: Reenable futex support (undo SVN rev 157758).
1170 * Makefile.am: Same.
1171 * configure.tgt: Same.
1172 * config/linux/alpha/futex_bits.h: Same.
1173 * config/linux/futex.h: Same. Return number of woken processes.
1174 * config/linux/futex.cc: Same.
1175 (futex_wait): Remove spinning.
1176 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1177 Use __x86_64__ instead of __LP64__.
1178 * aclocal.m4: Include generic futex checks.
1179 * configure: Rebuild.
1180 * Makefile.in: Rebuild.
1181 * testsuite/Makefile.in: Rebuild.
1182 * beginend.cc: Include pthread.h.
1183 * config/posix/cachepage.cc: Same.
1184
11852011-08-12 Torvald Riegel <triegel@redhat.com>
1186
1187 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1188 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1189 (set_gtm_thr): New.
1190 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1191 (set_gtm_thr): New.
1192 (GTM::gtm_thread::thread_num): Removed.
1193 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1194 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1195 tx-to-thread renaming.
1196 * beginend.cc: Adapted to tx-to-thread renaming.
1197 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1198 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1199 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1200 gtm_transaction to gtm_thread.
1201 (_ITM_getThreadnum): Removed. Not supported anymore.
1202 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1203 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1204 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1205 gtm_tx-to-gtm_thr renaming if necessary.
1206 * eh_cpp.cc: Same.
1207 * local.cc: Same.
1208 * retry.cc: Same.
1209 * clone.cc: Same.
1210 * alloc.cc: Same.
1211 * alloc_c.cc: Same.
1212 * alloc_cpp.cc: Same.
1213 * method-serial.cc: Same.
1214 * config/generic/tls.cc: Same.
1215 * config/posix/rwlock.h (gtm_rwlock): Same.
1216 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1217
12182011-08-12 Torvald Riegel <triegel@redhat.com>
1219
1220 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1221 implementation.
1222 (gtm_rwlock::read_unlock): Same.
1223 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1224 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1225 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1226 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1227 w_upgrade. Replaced by per-transaction flags (in shared_state).
1228 Added c_confirmed_writers.
1229 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1230 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1231 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1232 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1233 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1234 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1235 * libitm.texi: Document locking conventions and implementations in
1236 libitm.
1237
12382011-08-12 Torvald Riegel <triegel@redhat.com>
1239
1240 * libitm_i.h (next_tx): Add list of all threads' transaction.
1241 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1242 transaction with list of transactions and ...
1243 (thread_exit_handler): ... deregister here.
1244 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1245 * config/x86/target.h: Same.
1246
12472011-08-12 Torvald Riegel <triegel@redhat.com>
1248
1249 * testsuite/libitm.c++/static_ctor.C: New file.
1250
12512011-08-12 Torvald Riegel <triegel@redhat.com>
1252
1253 * testsuite/libitm.c/reentrant.c: New file.
1254
12552011-08-12 Torvald Riegel <triegel@redhat.com>
1256
1257 * config/generic/tls.h: Remove the free list for transactions and ...
1258 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1259 (GTM::gtm_transaction::operator delete): ... and release here.
1260 (thread_exit_handler): New. Delete tx when thread terminates.
1261 (thread_exit_init): New.
1262 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1263 * testsuite/libitm.c/txrelease.c: New file.
1264
12652011-08-12 Torvald Riegel <triegel@redhat.com>
1266
1267 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1268 * testsuite/libitm.c/notx.c: New file.
1269
12702011-08-12 Torvald Riegel <triegel@redhat.com>
1271
1272 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1273 * libitm_i.h (local_tid): ... to here.
1274 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1275 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1276
12772011-08-12 Torvald Riegel <triegel@redhat.com>
1278
1279 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1280 serialirr_onwrite_dispatch as new default for now.
1281 * method-serial.cc (serialirr_onwrite_dispatch): New.
1282 (GTM::dispatch_serialirr_onwrite): New.
1283 * libitm_i.h: Same.
1284
12852011-08-12 Torvald Riegel <triegel@redhat.com>
1286
1287 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1288 * query.cc (_ITM_getTransactionId): There is no active transaction if
1289 the current nesting level is zero.
1290
12912011-07-28 Torvald Riegel <triegel@redhat.com>
1292
1293 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1294 rollback.
1295
12962011-07-28 Torvald Riegel <triegel@redhat.com>
1297
1298 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1299 transaction properties from the caller instead of from the
1300 transaction object.
1301 * libitm_i.h: Same.
1302 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1303
13042011-07-28 Torvald Riegel <triegel@redhat.com>
1305
1306 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1307 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1308 * dispatch.h: Same.
1309 * method-serial.cc: Same.
1310 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1311 flat nesting as default, and closed nesting on demand.
1312 (GTM::gtm_transaction::rollback): Same.
1313 (_ITM_abortTransaction): Same.
1314 (GTM::gtm_transaction::restart): Same.
1315 (GTM::gtm_transaction::trycommit): Same.
1316 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1317 (choose_code_path): New.
1318 (GTM::gtm_transaction_cp::save): New.
1319 (GTM::gtm_transaction_cp::commit): New.
1320 * query.cc (_ITM_inTransaction): Support flat nesting.
1321 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1322 (GTM::gtm_transaction): Support flat and closed nesting.
1323 * alloc.cc (commit_allocations_2): New.
1324 (commit_cb_data): New helper struct.
1325 (GTM::gtm_transaction::commit_allocations): Handle nested
1326 commits/rollbacks.
1327 * libitm.texi: Update user action section, add description of nesting.
1328
13292011-07-28 Torvald Riegel <triegel@redhat.com>
1330
1331 * libitm_i.h: Add closed nesting as restart reason.
1332 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1333
13342011-07-28 Torvald Riegel <triegel@redhat.com>
1335
1336 * useraction.cc: Use vector instead of list to store actions.
1337 Also support partial rollbacks for closed nesting.
1338 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1339 * beginend.cc: Same.
1340
13412011-07-28 Torvald Riegel <triegel@redhat.com>
1342
1343 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1344 closed_nesting flags, as well as a closed nesting alternative.
1345 * method-serial.cc: Same.
1346 (serial_dispatch): Renamed to serialirr_dispatch.
1347 (GTM::dispatch_serialirr): Same.
1348 (serial_dispatch_ul): Renamed to serial_dispatch.
1349 (GTM::dispatch_serial): Same.
1350
13512011-07-28 Torvald Riegel <triegel@redhat.com>
1352
1353 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1354
13552011-07-28 Torvald Riegel <triegel@redhat.com>
1356
1357 * aatree.h (aa_tree::remove): New.
1358 (aa_tree::operator new): Add placement new.
1359
13602011-07-02 Torvald Riegel <triegel@redhat.com>
1361
1362 * containers.h: New file.
1363 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1364 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1365 * common.h: ... to here.
1366 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1367 * local.cc: Same.
1368
13692011-06-30 Torvald Riegel <triegel@redhat.com>
1370
1371 * libitm_i.h (STATE_ABORTING): Remove.
1372 * beginend.cc (_ITM_abortTransaction): Same.
1373 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1374 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1375 (_ITM_rollbackTransaction): Remove.
1376 * beginend.cc: Same.
1377 * libitm.map: Same.
1378 * libitm.texi: Document these ABI changes.
1379
13802011-06-30 Torvald Riegel <triegel@redhat.com>
1381
1382 * libitm.texi: New file.
1383 * Makefile.am: Add libitm.texi.
1384 * Makefile.in: Rebuild.
1385
13862011-06-30 Torvald Riegel <triegel@redhat.com>
1387
1388 * libitm_i.h: Move parts to common.h and dispatch.h.
1389 * common.h: New file.
1390 * dispatch.h: New file, new dispatch class.
1391 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1392 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1393 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1394 decision to retry.cc.
1395 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1396 only.
1397 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1398 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1399 logging.
1400 * barrier.cc: Use new barriers definitions.
1401 (abi_dispatch::memmove_overlap_check): New.
1402 * config/x86/x86_sse.cc: Same.
1403 * config/x86/x86_avx.cc: Same.
1404 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1405 memcpy.cc.
1406 * Makefile.in: Rebuild.
1407 * method-readonly.cc: Remove.
1408 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1409 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1410
14112011-06-30 Torvald Riegel <triegel@redhat.com>
1412
1413 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1414 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1415 * testsuite/libitm.c/dropref-2.c: Same.
1416 * testsuite/libitm.c/dropref.c: Same.
1417
14182011-06-30 Torvald Riegel <triegel@redhat.com>
1419
1420 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1421 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1422 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1423 * alloc_c.cc: Same.
1424 * barrier.tpl: Same.
1425 * beginend.c: Same.
1426 * config/generic/tls.h: Same.
1427 * config/x86/tls.h: Same.
1428 * libitm_i.h: Same.
1429 * memcpy.cc: Same.
1430 * memset.cc: Same.
1431 * method-readonly.cc: Same.
1432 * method-serial.cc: Same.
1433 * method-wbetl.cc: Same.
1434 * retry.cc: Same.
1435
14362011-03-03 Richard Henderson <rth@redhat.com>
1437
1438 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1439 From Patrik Marlier <patrick.marlier@unine.ch>.
1440
14412011-02-03 Richard Henderson <rth@redhat.com>
1442
1443 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1444 * configure.ac: Use it.
1445 * configure, config.h.in: Rebuild.
1446 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1447 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1448 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1449 * libitm.map: Use wildcards to match size_t mangling.
1450
14512010-12-14 Richard Henderson <rth@redhat.com>
1452
1453 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1454 blocks of TIDs per thread.
1455 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1456 (setup_gtm_thr): Return the thread structure.
1457 * config/x86/tls.h (setup_gtm_thr): Likewise.
1458
14592010-12-14 Richard Henderson <rth@redhat.com>
1460
1461 * clone.cc (table_lock): Remove.
1462 (find_clone): Don't take it.
1463 (ExcludeTransaction): New helper class.
1464 (_ITM_registerTMCloneTable): Use it.
1465 (_ITM_deregisterTMCloneTable): Likewise.
1466
14672010-12-14 Richard Henderson <rth@redhat.com>
1468
1469 * config/x86/tls.h: New file.
1470
14712010-07-15 Richard Henderson <rth@redhat.com>
1472
1473 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1474 * Makefile.in: Rebuild.
1475
14762010-07-13 Aldy Hernandez <aldyh@redhat.com>
1477
1478 * method-wbetl.cc (trydropreference): Fix source line.
1479
14802010-07-13 Aldy Hernandez <aldyh@redhat.com>
1481
1482 * libitm.h: Add comment.
1483 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1484
14852010-07-07 Aldy Hernandez <aldyh@redhat.com>
1486
1487 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1488 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1489 available, use pthread mutexes.
1490 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1491 * config.h.in: Regenerate.
1492 * configure: Regenerate.
1493
14942010-07-06 Aldy Hernandez <aldyh@redhat.com>
1495
1496 * libitm.h (ITM_PURE): Define.
1497 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1498
14992010-06-28 Aldy Hernandez <aldyh@redhat.com>
1500
1501 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1502 (validate): Add comment.
1503 (trydropreference): New.
1504 * method-readonly.cc (class readonly_dispatch): Add
1505 trydropreference.
1506 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1507 Call trydropreference().
1508 * libitm.h (_ITM_dropReferences): Remove const attribute.
1509 * method-serial.cc (class serial_dispatch): Add trydropreference.
1510 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1511
15122010-06-28 Aldy Hernandez <aldyh@redhat.com>
1513
1514 * memcpy.cc (do_memcpy): Comment.
1515
15162010-06-25 Aldy Hernandez <aldyh@redhat.com>
1517
1518 * barrier.tpl: Add comments throughout.
1519
15202010-06-24 Aldy Hernandez <aldyh@redhat.com>
1521
1522 * method-wbetl.cc (struct w_entry): Add comments.
1523 (trycommit): Same.
1524 (rollback): Same.
1525
15262010-06-24 Aldy Hernandez <aldyh@redhat.com>
1527
1528 * alloc_c.cc (_ITM_dropReferences): New.
1529 * libitm.map (_ITM_dropReferences): Add.
1530 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1531 * libitm_i.h (struct gtm_transaction): Declare
1532 drop_references_allocations and drop_references_local.
1533 * local.cc (rollback_local): Ignore memory when applicable.
1534 (drop_references_local): New.
1535
15362010-06-23 Richard Henderson <rth@redhat.com>
1537
1538 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1539 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1540 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1541 * config/alpha/target.h: Likewise.
1542 * config/generic/tls.cc (gtm_mask_stack): Use it.
1543
15442010-06-23 Richard Henderson <rth@redhat.com>
1545
1546 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1547 a mutex instead of trying a lock-free compare-and-swap on the list.
1548 (gtm_cacheline_page::operator delete): Likewise.
1549
15502010-06-16 Richard Henderson <rth@redhat.com>
1551
1552 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1553 that overlap the libitm stack.
1554 * barrier.tpl: Mark incoming stack.
1555 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1556 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1557 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1558 * memcpy.cc, memset.cc: Likewise.
1559 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1560 * config/generic/tls.h (gtm_thread): Add stack_top member.
1561 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1562 * libitm_i.h (gtm_mask_stack): Declare.
1563 * config/generic/tls.cc: New file.
1564 * Makefile.am (libitm_la_SOURCES): Add it.
1565 (AM_CXXFLAGS): Turn off exceptions.
1566 * Makefile.in: Rebuild.
1567
15682010-06-16 Richard Henderson <rth@redhat.com>
1569
1570 * alloc.cc (struct gtm_alloc_action): Move definition ...
1571 * libitm_i.h: ... here.
1572 (class gtm_transaction): Declare new and delete.
1573 * beginend.cc (alloc_tx): Reformulate as operator new.
1574 (free_tx): Reformulate as operator delete.
1575 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1576
15772010-06-11 Richard Henderson <rth@redhat.com>
1578
1579 * clone.cc (clone_entry_compare): Fix typo.
1580 From Patrik Marlier <patrick.marlier@unine.ch>.
1581
15822010-05-13 Richard Henderson <rth@redhat.com>
1583
1584 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1585 in extern "C".
1586
15872010-05-07 Aldy Hernandez <aldyh@redhat.com>
1588
1589 * libitm_i.h (struct gtm_transaction): Remove
1590 get_allocation_size.
1591 (record_allocation): Remove size parameter.
1592 * libitm.map (_ITM_realloc): Remove.
1593 * alloc_c.cc (_ITM_realloc): Remove.
1594 (_ITM_malloc): Remove size argument to record_allocation.
1595 (_ITM_calloc): Same.
1596 * alloc_cpp.cc (_ZGTtnwm): Same.
1597 (_ZGTtnwmRKSt9nothrow_t): Same.
1598 (_ZGTtnam): Same.
1599 (_ZGTtnamRKSt9nothrow_t): Same.
1600 * alloc.cc (struct gtm_alloc_action): Remove size.
1601 (get_allocation_size): Remove.
1602 (commit_allocations): Add comment.
1603 (record_allocation): Remove size parameter.
1604 (forget_allocation): Remove set of size.
1605
16062010-04-19 Aldy Hernandez <aldyh@redhat.com>
1607
1608 * Makefile.am (abi_version): New.
1609 (AM_CXXFLAGS): Pass abi_version.
1610 * Makefile.in: Regenerate.
1611 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1612
16132010-04-06 Aldy Hernandez <aldyh@redhat.com>
1614
1615 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1616 _ITM_getTMCloneOrIrrevokable.
1617 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1618 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1619
16202010-03-26 Aldy Hernandez <aldyh@redhat.com>
1621
1622 * configure.ac: Remove Linux futex support.
1623 * configure.tgt (config_path): Same.
1624 * Makefile.am: Same.
1625 * config/linux: Remove entire directory.
1626 * configure: Rebuild.
1627 * Makefile.in: Rebuild.
1628 * testsuite/Makefile.in: Rebuild.
1629
16302010-03-09 Aldy Hernandez <aldyh@redhat.com>
1631
1632 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1633 switching to serial mode.
1634 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1635
16362010-03-03 Aldy Hernandez <aldyh@redhat.com>
1637
1638 * configure.tgt: Add emacs -*- tags.
1639 * barrier.tpl: Same.
1640
16412010-02-23 Aldy Hernandez <aldyh@redhat.com>
1642
1643 * Makefile.am: Rename serial.cc to method-serial.cc.
1644 * Makefile.in: Regenerate with automake 1.11.1.
1645 * testsuite/Makefile.in: Same.
1646 * aclocal.m4: Regenerate with aclocal 1.11.1.
1647 * method-serial.cc: Rename from serial.cc.
1648 * libitm_i.h (struct gtm_transaction): Update comment on
1649 serialirr_mode.
1650
16512010-02-22 Aldy Hernandez <aldyh@redhat.com>
1652
1653 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1654 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1655
16562010-02-11 Aldy Hernandez <aldyh@redhat.com>
1657
1658 * configure: Rebuild.
1659
16602009-11-12 Richard Henderson <rth@redhat.com>
1661
1662 * Rewrite everything in C++.
1663
16642009-11-03 Richard Henderson <rth@redhat.com>
1665
1666 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1667 * Makefile.am (libitm_la_SOURCES): Add them.
1668 * configure.ac (ARCH_X86): New conditional.
1669 * Makefile.in, configure: Rebuild.
1670 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1671 Move futex setup into "other system configury" case.
1672 * local.c (rollback_local): Merge into ...
1673 (GTM_rollback_local): ... here.
1674 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1675 (_ITM_LB): Define as an alias to GTM_LB.
1676
16772009-11-03 Richard Henderson <rth@redhat.com>
1678
1679 * method-readonly.c: New file.
1680 * Makefile.am (libitm_la_SOURCES): Add it.
1681 * Makefile.in: Rebuild.
1682 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1683 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1684 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1685 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1686 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1687 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1688 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1689 gtm_get_clock, gtm_inc_clock): New.
1690 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1691 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1692 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1693 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1694 replace uses with new libitm_i.h symbols.
1695 (dispatch_wbetl): Rename from wbetl_dispatch.
1696 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1697 away from dispatch_readonly; abort if the beginTransaction call
1698 asserted that the transaction was readonly.
1699
17002009-11-03 Richard Henderson <rth@redhat.com>
1701
1702 * memset.c: New file.
1703 * Makefile.am (libitm_la_SOURCES): Add it.
1704 * Makefile.in: Rebuild.
1705 * testsuite/libitm.c/memset-1.c: New.
1706
17072009-11-03 Richard Henderson <rth@redhat.com>
1708
1709 * dispatch.c: Remove file.
1710 * useraction.c (struct gtm_user_action): Move from libitm.h.
1711 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1712 (serial_memset, serial_memmove, serial_memcpy): Remove.
1713 (serial_W*, serial_R*): Remove.
1714 (serial_dispatch): Update to match.
1715 * configure.ac: Move Werror down below configure checks. Don't
1716 check for sys/loadavg.h, do check for malloc.h. Don't check for
1717 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1718 Use GCC_AC_FUNC_MMAP_BLACKLIST
1719 * libitm.h: Split out all internal items to...
1720 * libitm_i.h: ... here. New file.
1721 * copymask.c: New file.
1722 * local.c (struct gtm_local_undo): Move from libitm.h.
1723 (GTM_alloc_local): Rename from alloc_local; export.
1724 * memcpy.c: New file.
1725 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1726 * config/posix/page.c: New file.
1727 * config/posix/target_tls.h: Remove file.
1728 * barrier.c: New file.
1729 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1730 copymask.c, page.c.
1731 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1732 * method-wbetl.c: Rewrite for new cacheline methods.
1733 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1734
1735 * config/alpha/sjlj.S: Fix typo.
1736 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1737 * config/alpha/copymask.c: New file.
1738 * config/alpha/target.h (CACHELINE_SIZE): New.
1739 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1740
1741 * config/x86/target_i.h: Copy functions from x86/target.h.
1742 * config/x86/copymask.c: New file.
1743 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1744 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1745 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1746 * config/x86/target_tls.h: Move contents to target_i.h.
1747
1748 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1749 * testsuite/libitm.c/memcpy-1.c: New.
1750
17512009-10-22 Richard Henderson <rth@redhat.com>
1752
1753 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1754 (AM_CCASFLAGS): New.
1755 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1756 saving/restoring _AC_ARG_VAR_PRECIOUS.
1757 * Makefile.in, aclocal.m4, config.h.in, configure,
1758 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1759
17602009-10-22 Richard Henderson <rth@redhat.com>
1761
1762 * testsuite/*: Update for new compiler syntax.
1763
17642009-10-21 Richard Henderson <rth@redhat.com>
1765
1766 * libitm.h (_ITM_abortReason): Add outerAbort.
1767
17682009-08-03 Richard Henderson <rth@redhat.com>
1769
1770 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1771 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1772 * method-wbetl.c (struct w_entry): Remove mask.
1773 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1774 adjust all callers.
1775
17762009-07-22 Richard Henderson <rth@redhat.com>
1777
1778 * eh_cpp.c: New file.
1779 * Makefile.am (libitm_la_SOURCES): Add it.
1780 * Makefile.in: Rebuild.
1781 * beginend.c (GTM_rollback_transaction): Undo exception state.
1782 (GTM_trycommit_transaction): Mark inline.
1783 (GTM_trycommit_and_finalize_transaction): Split out from ...
1784 (_ITM_commitTransaction): ... here.
1785 (_ITM_commitTransactionEH): New function.
1786 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1787 cxa_unthrown, eh_in_flight; reorder.
1788
1789 * testsuite/libitm.c++/c++.exp: New.
1790 * testsuite/libitm.c++/eh-1.C: New.
1791
1792 * aatree.c (aa_free): Remove REGPARM.
1793 * aatree.h: Remove all REGPARM.
1794
17952009-07-18 Richard Henderson <rth@redhat.com>
1796
1797 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1798 * Makefile.am (libitm_la_SOURCES): Add them.
1799 * Makefile.in: Rebuild.
1800 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1801 (GTM_trycommit_transaction): Likewise.
1802 * libitm.h: Include aatree.h
1803 (struct gtm_alloc_action): New.
1804 (struct gtm_transaction): Add alloc_actions.
1805 (GTM_record_allocation, GTM_forget_allocation): Declare.
1806 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1807 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1808 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1809 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1810 _ZGTtdaPvRKSt9nothrow_t): Export.
1811
18122009-07-18 Richard Henderson <rth@redhat.com>
1813
1814 * target_tls.h: Move ...
1815 * config/posix/target_tls.h: ... here.
1816
18172009-07-07 Richard Henderson <rth@redhat.com>
1818
1819 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1820
18212009-07-07 Richard Henderson <rth@redhat.com>
1822
1823 * Update to GPL3.
1824
18252009-07-07 Richard Henderson <rth@redhat.com>
1826
1827 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1828 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1829
1830 * configure.tgt: Don't use -ftls-model for x86 linux.
1831 * libitm.h: Include target.h after standard includes.
1832 (_gtm_thr): Rename from gtm_thr.
1833 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1834 (gtm_disp, set_gtm_disp): New.
1835 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1836 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1837 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1838
18392009-07-07 Richard Henderson <rth@redhat.com>
1840
1841 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1842
18432009-07-06 Richard Henderson <rth@redhat.com>
1844
1845 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1846 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1847 (_ITM_beginTransaction): Take variadic arguments.
1848 (_ITM_registerThrownObject): Declare.
1849 * beginend.c, serial.c: Update.
1850 * libitm.map: Add _ITM_registerThrownObject.
1851
18522009-01-28 Richard Henderson <rth@redhat.com>
1853
1854 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1855 * Makefile.in: Rebuild.
1856 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1857 (GTM_restart_transaction): Fix uninstrumented code check.
1858 * retry.c (GTM_decide_retry_strategy): Add serial check.
1859 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1860 automatically go irrevokable when in serial mode.
1861 * clone.c: New file.
1862 * libitm.h, libitm.map: Update.
1863
18642009-01-27 Richard Henderson <rth@redhat.com>
1865
1866 * Makefile.am (LTCCASCOMPILE): Define.
1867 (libitm_la_SOURCES): Add methid-wbetl.c.
1868 * testsuite/Makefile.am: New
1869 * configure.ac: Add testsuite/Makefile.
1870 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1871 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1872 (_ITM_abortTransaction): Finalize implementation method; pass
1873 transaction properties to longjmp.
1874 (GTM_restart_transaction): Split out from ...
1875 (_ITM_commitTransaction): ... here.
1876 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1877 Move to config/x86/target.h.
1878 * config/linux/alpha/futex_bits.h: New.
1879 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1880 * config/x86/target.h: Disable target types for 32-bit.
1881 * config/alpha/sjlj.S, config/alpha/target.h: New.
1882 * libitm.h (struct gtm_dispatch): Add init, fini.
1883 (enum restart_reason): New.
1884 (struct gtm_transaction): Add method and restarts.
1885 * retry.c (GTM_decide_retry_strategy): Implement.
1886 * serial.c (serial_init, serial_fini): New.
1887 (GTM_serialmode): Finialize outgoing method.
1888 * method-wbetl.c: New.
1889
18902008-12-09 Richard Henderson <rth@redhat.com>
1891
1892 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1893 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1894 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1895 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1896 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1897 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1898 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1899 * serial.c (serial_R##T, serial_W##T): Likewise.
1900
19012008-11-21 Richard Henderson <rth@redhat.com>
1902
1903 * Initial commit.
21fa2a29
JJ
1904\f
1905Copyright (C) 2008-2016 Free Software Foundation, Inc.
1906
1907Copying and distribution of this file, with or without modification,
1908are permitted in any medium without royalty provided the copyright
1909notice and this notice are preserved.