]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Regenerate .pot files.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
66dbcf2d
RO
12016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
4 * aclocal.m4: Regenerate.
5 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
6 LIBITM_CHECK_LINKER_HWCAP.
7
84c1b9d3
MK
82016-11-15 Matthias Klose <doko@ubuntu.com>
9
10 * configure: Regenerate.
11
831698b8
L
122016-04-19 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR libitm/70456
15 * util.cc (xmalloc): Use posix_memalign to allocate memory on
16 on cache line if requested.
17
edcbda7e
DV
182016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
19
20 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
21 function attribute to disable floating point in begin_transaction() on
22 S/390.
23 * beginend.cc (begin_transaction): Use
24 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
25
6041f70a
TR
262016-01-22 Torvald Riegel <triegel@redhat.com>
27
28 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
29 boundary.
30 (htm_fastpath): Remove.
31 (gtm_thread::begin_transaction): Fix HTM fastpath.
32 (_ITM_commitTransaction): Adapt.
33 (_ITM_commitTransactionEH): Adapt.
34 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
35 and accessors.
36 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
37 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
38 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
39 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
40 * libitm/method-serial.cc (htm_mg): Adapt.
41 (gtm_thread::serialirr_mode): Adapt.
42 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
43
0b96ffdb
TR
442016-01-21 Torvald Riegel <triegel@redhat.com>
45
46 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
47 or AIX.
48
b1de98e3
RH
492016-01-19 Richard Henderson <rth@redhat.com>
50
51 PR bootstrap/69343
52 PR bootstrap/69339
53 Revert:
54 2016-01-13 Richard Henderson <rth@redhat.com>
55
56 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
57 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
58 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
59 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
60 * configure.ac (ARCH_AARCH64): New conditional.
61 (ARCH_PPC, ARCH_S390): Likewise.
62 * Makefile.in, configure: Rebuild.
63
64 * libitm.h (_ITM_TYPE_M128): Always define.
65 * vect64.cc: Split ...
66 * vect128.cc: ... out of...
67 * config/x86/x86_sse.cc: ... here.
68 * config/arm/neon.cc: New file.
69
f57fc960
TR
702016-01-19 Torvald Riegel <triegel@redhat.com>
71
72 * local_type_traits: Remove file.
73 * libitm_i.h: Don't include it anymore.
74 (sized_integral): Remove.
75
d2653984
TR
762016-01-16 Torvald Riegel <triegel@redhat.com>
77
78 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
79 safety.
80 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
81 * libitm/testsuite/libitm.c/priv-1.c: New.
82
a04d5fc9
TR
832015-01-15 Torvald Riegel <triegel@redhat.com>
84
85 testsuite/libitm.c++/libstdc++-safeexc.C: New.
86
e89137ce
TR
872016-01-13 Torvald Riegel <triegel@redhat.com>
88
89 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
90 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
91 (gtm_rwlock::write_unlock): Likewise.
92
4c868789
RH
932016-01-13 Richard Henderson <rth@redhat.com>
94
95 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
96 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
97 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
98 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
99 * configure.ac (ARCH_AARCH64): New conditional.
100 (ARCH_PPC, ARCH_S390): Likewise.
101 * Makefile.in, configure: Rebuild.
102
103 * libitm.h (_ITM_TYPE_M128): Always define.
104 * vect64.cc: Split ...
105 * vect128.cc: ... out of...
106 * config/x86/x86_sse.cc: ... here.
107 * config/arm/neon.cc: New file.
108
629e4729
TR
1092016-01-13 Torvald Riegel <triegel@redhat.com>
110
111 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
112 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
113 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
114 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
115 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
116 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
117 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
118 (serialirr_dispatch::snapshot_most_recent): New.
119 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
120
0d1ed412
TR
1212016-01-12 Torvald Riegel <triegel@redhat.com>
122
123 * libitm_i.h (gtm_mask_stack): Remove.
124 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
125 * stmlock.h: Remove file.
126 * config/alpha/cacheline.h: Likewise.
127 * config/generic/cacheline.h: Likewise.
128 * config/powerpc/cacheline.h: Likewise.
129 * config/sparc/cacheline.h: Likewise.
130 * config/x86/cacheline.h: Likewise.
131
21fa2a29
JJ
1322016-01-04 Jakub Jelinek <jakub@redhat.com>
133
818ab71a
JJ
134 Update copyright years.
135
21fa2a29
JJ
136 * libitm.texi: Bump @copying's copyright year.
137
e7f7330f
TR
1382015-11-26 Torvald Riegel <triegel@redhat.com>
139
140 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
141 (ml_wt_dispatch::pre_write): Adapt.
142 (ml_wt_dispatch::pre_load): Likewise.
143
4f8a3b87
TR
1442015-11-22 Torvald Riegel <triegel@redhat.com>
145
146 * libitm_i.h (gtm_alloc_action): Remove union.
147 * testsuite/libitm.c/alloc-1.c: New.
148
258c1d07
TR
1492015-11-19 Torvald Riegel <triegel@redhat.com>
150
151 * testsuite/libitm.c++/eh-5.C: New.
152 * libitm.h (_ITM_cxa_free_exception): New.
153 * libitm.map (_ITM_cxa_free_exception): Add it.
154 * libitm.texi: Update ABI docs.
155 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
156 (gtm_transaction_cp::cxa_uncaught_count): Add.
157 (gtm_thread::cxa_unthrown): Remove.
158 (gtm_thread::cxa_uncaught_count_ptr): Add.
159 (gtm_thread::cxa_uncaught_count): Add.
160 (gtm_thread::drop_references_allocations): Rename to...
161 (gtm_thread::discard_allocation): ... this and adapt.
162 (gtm_thread::init_cpp_exceptions): New.
163 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
164 (gtm_thread::begin_transaction): Likewise.
165 (gtm_transaction_cp::save): Likewise.
166 (gtm_thread::trycommit): Likewise.
167 * eh_cpp.cc: Add overview comments.
168 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
169 (free_any_exception, _ITM_cxa_free_exception): New.
170 (gtm_thread::init_cpp_exceptions): Define.
171 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
172 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
173 (gtm_thread::revert_cpp_exceptions): Likewise.
174
c518678b
TR
1752015-11-09 Torvald Riegel <triegel@redhat.com>
176
177 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
178 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
179 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
180 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
181 (gtm_thread::forget_allocations): New overload with size_t argument.
182 * alloc.c (gtm_thread::forget_allocation): Define new overload and
183 adapt existing one.
184 (gtm_thread::record_allocation): Adapt.
185 (gtm_thread::commit_allocations_1): Adapt.
186 (gtm_thread::commit_allocations_2): Adapt.
187 * testsuite/libitm.c++/newdelete.C: New.
188
1e44e857
DJ
1892015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
190 Joseph Myers <joseph@codesourcery.com>
191 Mark Shinwell <shinwell@codesourcery.com>
192 Andrew Stubbs <ams@codesourcery.com>
193 Rich Felker <dalias@libc.org>
194
195 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
196 GTM_begin_transaction for compatibility with FDPIC.
197
9e531d37
DM
1982015-10-09 David Malcolm <dmalcolm@redhat.com>
199
200 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
201 using load_gcc_lib.
202
c629c246
GFM
2032015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
204
205 PR libitm/61164
206 * local_atomic (__always_inline): Rename to...
207 (__libitm_always_inline): ... this.
208
cd5a9a74
CSLL
2092015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
210
211 PR target/52482
212 * config/powerpc/sjlj.S: Port to Xcode 2.5.
213
ea023bcf
UB
2142015-05-27 Uros Bizjak <ubizjak@gmail.com>
215
d778b5a0
UB
216 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
217 operands "op" and "val" to int.
218
2192015-05-27 Uros Bizjak <ubizjak@gmail.com>
220
221 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
222 "op" and "val" to int.
223
2242015-05-27 Uros Bizjak <ubizjak@gmail.com>
225
226 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
227 "op" and "val" to int.
228
2292015-05-27 Uros Bizjak <ubizjak@gmail.com>
230
231 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
232 Declare as static int.
233 (FUTEX_PRIVATE_FLAG): Remove L suffix.
234 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
235
2362015-05-27 Uros Bizjak <ubizjak@gmail.com>
237
238 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
239 sys_futex0 function.
ea023bcf 240
503902f9
MH
2412015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
242
243 * Makefile.in: Regenerated with automake-1.11.6.
244 * aclocal.m4: Likewise.
245 * configure: Likewise.
246 * testsuite/Makefile.in: Likewise.
247
96ce40cb
GR
2482015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
249
250 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
251 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
252
3a07b160
L
2532015-01-15 H.J. Lu <hongjiu.lu@intel.com>
254
255 PR libitm/64360
256 * libitm.c/stackundo.c (test2): Make it static.
257 (test1): Likewise.
258
5624e564
JJ
2592015-01-05 Jakub Jelinek <jakub@redhat.com>
260
261 Update copyright years.
262
b67cd4e3
JJ
2632015-01-05 Jakub Jelinek <jakub@redhat.com>
264
265 * libitm.texi: Bump @copying's copyright year.
266
69aef6dc
KT
2672014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
268
269 * testsuite/lib/libitm.exp: Load target-utils.exp.
270 Move load of target-supports.exp earlier.
271
68bc9270
UB
2722014-12-03 Uros Bizjak <ubizjak@gmail.com>
273
274 * configure.tgt (x86_64): Tune -m32 multilib to generic.
275
a699d672
L
2762014-11-21 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR bootstrap/63784
279 * configure: Regenerated.
280
ebf6d33b
FXC
2812014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
282
283 PR target/63610
284 * configure: Regenerate.
285
99183741
MP
2862014-10-06 Marek Polacek <polacek@redhat.com>
287
288 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
289 * testsuite/libitm.c/memset-1.c: Likewise.
290
b6334cf4
RH
2912014-07-24 Richard Henderson <rth@redhat.com>
292
293 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
294 addressing mode in epilogue.
295
3c698bf0
RO
2962014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
297
298 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
299 -mclear-hwcap instead.
300 * configure: Regenerate.
301 * clearcap.map: Remove.
302
dbed5a9b
JM
3032014-05-21 John Marino <gnugcc@marino.st>
304
305 * configure.tgt (*-*-dragonfly*): New target.
306
b17f08dd
RH
3072014-05-19 Richard Henderson <rth@redhat.com>
308
309 * config/aarch64/sjlj.S: New file.
310 * config/aarch64/target.h: New file.
311 * configure.tgt: Enable aarch64.
312
5e1f630a
RO
3132014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314
315 * config/generic/asmcfi.h: Also check for
316 __GCC_HAVE_DWARF2_CFI_ASM.
317
84c2f4b0
RH
3182013-04-02 Richard Henderson <rth@redhat.com>
319
320 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
321 * config/arm/target.h, config/sh/target.h: Likewise.
322 * config/sparc/target.h, config/x86/target.h: Likewise.
323
7cc51d64
JJ
3242014-03-26 Jakub Jelinek <jakub@redhat.com>
325
326 * config/linux/futex_bits.h: Include errno.h.
327 (sys_futex0): If syscall returns -1, return -errno rather than
328 -1.
329
c288ec8f
JM
3302014-03-26 Joseph Myers <joseph@codesourcery.com>
331
332 * libitm.texi (Index): Rename to Library Index.
333
ed100f5d
L
3342014-01-13 H.J. Lu <hongjiu.lu@intel.com>
335
336 PR libitm/53113
337 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
338 (x86_avx.lo): Append -mavx to CXXFLAGS.
339 * Makefile.in: Regenerate.
340
f93608e6
RS
3412014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
342
343 Update copyright years
344
98db73df
TB
3452014-01-02 Tobias Burnus <burnus@net-b.de>
346
347 * libitm.texi: Bump @copying's copyright year.
348
b54214fe
UW
3492013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
350
351 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
352 (FUNC): Define ELFv2 variant.
353 (END): Likewise.
354 (HIDDEN): Likewise.
355 (CALL): Likewise.
356 (BASE): Likewise.
357 (LR_SAVE): Likewise.
358
3cbe17f7
AM
3592013-09-20 Alan Modra <amodra@gmail.com>
360
361 * configure: Regenerate.
362
6fb471d8
TR
3632013-08-30 Torvald Riegel <triegel@redhat.com>
364
365 * config/posix/rwlock.cc: Fix initialization order.
366
bec9ec3f
TR
3672013-08-30 Torvald Riegel <triegel@redhat.com>
368
369 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
370 (htm_fastpath): Assign an asm name.
371 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
372 HTM fast paths.
373 (_ITM_actions): Likewise.
374 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
375 x86_64.
376 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
377 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
378 field to the start of the structure.
379 * config/linux/rwlock.h (gtm_rwlock): Update comments.
380 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
381 handling for custom HTM fast paths.
382
1869217f
AK
3832013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
384 Revert:
385 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
386
387 * configure.tgt: Add -msoft-float to XCFLAGS.
388
d62d5152
AK
3892013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
390
391 * configure.tgt: Add -msoft-float to XCFLAGS.
392
aaaffb2a
AK
3932013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
394
395 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
396 (htm_transaction_active): Enable zEC12 instructions in the
397 assembler.
398 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
399
167f68ed
AK
4002013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
401
402 * acinclude.m4: Add htm asm check for s390.
403 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
404 * configure: Regenerate.
405 * config/s390/target.h: Remove __HTM__ check.
406 (htm_available): Call getauxval to get hwcaps and check whether
407 HTM is available or not.
408
0258b6e4
PB
4092013-07-15 Peter Bergner <bergner@vnet.ibm.com>
410
411 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
412 * configure.ac: Use it.
413 (AC_CHECK_HEADERS): Check for sys/auxv.h.
414 (AC_CHECK_FUNCS): Check for getauxval.
415 * config.h.in, configure: Rebuild.
416 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
417 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
418 (USE_HTM_FASTPATH): Define.
419 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
420 _HTM_RETRIES) New macros.
421 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
422 htm_begin_success, htm_commit, htm_transaction_active): New functions.
423
5a3fe9b6
AK
4242013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
425
426 * config/s390/target.h: Include htmintrin.h.
427 (_HTM_ITM_RETRIES): New macro definition.
428 (htm_available, htm_init, htm_begin, htm_begin_success)
429 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
430
6c84d576
IS
4312013-06-20 Iain Sandoe <iain@codesourcery.com>
432 Cesar Philippidis <cesar@codesourcery.com>
433
434 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
435 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
436 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
437 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
438
480c696b
TR
4392013-06-20 Torvald Riegel <triegel@redhat.com>
440
441 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
442 (_ITM_getTransactionId): Same.
443 * config/x86/target.h (htm_transaction_active): New.
444
b1db457b
TR
4452013-06-20 Torvald Riegel <triegel@redhat.com>
446
447 PR libitm/57643
448 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
449 the HTM fastpath.
450
51249377
GP
4512013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
452
453 PR bootstrap/56714
454 * local_atomic (__always_inline): Always define our version.
455 (__calculate_memory_order): Mark inline.
456 (atomic_thread_fence): Ditto.
457 (atomic_signal_fence): Ditto.
458 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
459 (atomic_bool::atomic_flag_clear_explicit): Ditto.
460 (atomic_bool::atomic_flag_test_and_set): Ditto.
461 (atomic_bool::atomic_flag_clear): Ditto.
462
f818478b
JJ
4632013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
464
465 * config/s390/sjlj.S: New file.
466 * config/s390/target.h: New file.
467 * configure.tgt: Set options for S/390.
468
ab4425be
AK
4692013-03-23 Andi Kleen <ak@linux.intel.com>
470
471 * local_atomic (__always_inline): Add.
472 (__calculate_memory_order, atomic_thread_fence,
473 atomic_signal_fence, test_and_set, clear, store, load,
474 exchange, compare_exchange_weak, compare_exchange_strong,
475 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
476 Add __always_inline to force inlining.
477
6c59ffd1
IS
4782013-02-11 Iain Sandoe <iain@codesourcery.com>
479 Jack Howarth <howarth@bromo.med.uc.edu>
480 Patrick Marlier <patrick.marlier@gmail.com>
481
482 PR libitm/55693
483 * alloc_cpp.cc: Enable function declarations on darwin.
484 * eh_cpp.cc: Likewise.
485
75f9527c
RS
4862013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
487
488 Update copyright years.
489
64fbcc74
TR
4902012-11-09 Torvald Riegel <triegel@redhat.com>
491
492 * beginend.cc (htm_fastpath): New.
493 (gtm_thread::begin_transaction, _ITM_commitTransaction,
494 _ITM_commitTransactionEH): Add HTM fastpath handling.
495 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
496 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
497 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
498 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
499 * configure.tgt: Add -mrtm to XCFLAGS.
500 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
501 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
502 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
503 * retry.cc (parse_default_method): Add HTM method parsing.
504 (gtm_thread::number_of_threads_changed): Use HTM by default if
505 available.
506
b9efc877
TS
5072012-11-04 Thomas Schwinge <thomas@codesourcery.com>
508
509 * configure: Regenerate.
510
07d3b5c8
RH
5112012-10-31 Richard Henderson <rth@redhat.com>
512
513 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
514 * configure.ac: Use it.
515 * config.h.in, configure: Rebuild.
516 * testsuite/Makefile.in: Rebuild.
517
eb00e959
TR
5182012-10-24 Torvald Riegel <triegel@redhat.com>
519
520 * libitm.texi: Clarify ABI requirements for data-logging functions.
521
b679c813
TR
5222012-10-24 Torvald Riegel <triegel@redhat.com>
523
524 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
525 it requires serial mode instead of assuming that for certain
526 dispatchs.
527 * dispatch.h (abi_dispatch::requires_serial): New.
528 (abi_dispatch::abi_dispatch): Adapt.
529 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
530 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
531 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
532 serial_dispatch::serial_dispatch,
533 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
534
0c609a21
UB
5352012-10-02 Uros Bizjak <ubizjak@gmail.com>
536
537 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
538 and ia32 declarations some more.
539 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
540
c0758df9
JJ
5412012-09-20 Jakub Jelinek <jakub@redhat.com>
542
543 PR other/43620
544 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
545 * configure: Regenerate.
546 * Makefile.in: Regenerate.
547
690c45b8
DE
5482012-09-14 David Edelsohn <dje.gcc@gmail.com>
549
550 * configure: Regenerated.
551
68a12ef3
UB
5522012-07-31 Uros Bizjak <ubizjak@gmail.com>
553
554 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
555
f2f9a097
PM
5562012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
557
558 * eh_cpp.cc: Fix __cxa_end_catch declaration.
559
e6d5f8c9
L
5602012-05-16 H.J. Lu <hongjiu.lu@intel.com>
561
562 * configure: Regenerated.
563
0100e3b3
L
5642012-04-04 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR libitm/52854
567 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
568 for x86-64.
569
2f6935f4
TG
5702012-04-03 Tristan Gingold <gingold@adacore.com>
571
572 * configure: Regenerate.
573
b9c23a61
L
5742012-03-31 H.J. Lu <hongjiu.lu@intel.com>
575
576 PR bootstrap/52812
577 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
578
6a26a74d
BRF
5792012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
580
581 * testsuite/lib/libitm.exp: load fortran-modules.exp
582
b24513a1
RO
5832012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
584
585 * configure.tgt (*-*-irix6*): Remove.
586
0d23faac
TR
5872012-03-13 Torvald Riegel <triegel@redhat.com>
588
589 PR libitm/52526
590 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
591 wake-up.
592
5c30094f
RO
5932012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
594
595 * configure.tgt (*-*-osf*): Remove.
596 * configure: Regenerate.
597
d28b0b08
TR
5982012-03-05 Torvald Riegel <triegel@redhat.com>
599
600 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
601 memtransfer/memset if size isn't larger than zero.
602
034209bc
TR
6032012-03-02 Torvald Riegel <triegel@redhat.com>
604
605 * libitm.texi: Link to specification and add a usage example.
606
bc8da6ba
TR
6072012-02-24 Torvald Riegel <triegel@redhat.com>
608
609 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
610 default dispatch for more than 1 thread to ml_wt.
611
63b08143
TR
6122012-02-20 Torvald Riegel <triegel@redhat.com>
613
614 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
615
4c9bd6ac
TR
6162012-02-20 Torvald Riegel <triegel@redhat.com>
617
618 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
619
651ff415
TR
6202012-02-20 Torvald Riegel <triegel@redhat.com>
621
622 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
623 serial mode corner cases made obsolete by prior gtm_rwlock changes.
624 (gl_wt_dispatch.rollback): Same.
625
efee0113
TR
6262012-02-20 Torvald Riegel <triegel@redhat.com>
627
628 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
629
33a03827
TR
6302012-02-20 Torvald Riegel <triegel@redhat.com>
631
632 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
633 for RfW src. Optimize number of calls to gtm_thr.
634
a19db3f2
TR
6352012-02-20 Torvald Riegel <triegel@redhat.com>
636
637 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
638 acquisition to ...
639 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
640 (default_dispatch): Make atomic.
641 (GTM::gtm_thread::set_default_dispatch): Access atomically.
642 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
643 use decide_begin_dispatch() if default_dispatch might have changed.
644 (GTM::gtm_thread::number_of_threads_changed): Initialize
645 default_dispatch here.
646
e948a1fb
IS
6472012-02-15 Iain Sandoe <iains@gcc.gnu.org>
648 Patrick Marlier <patrick.marlier@gmail.com>
649
650 PR libitm/52220
651 * alloc_cpp.cc: No dummy definitions for darwin.
652 * eh_cpp.cc: Likewise.
653
72824d5e
RH
6542012-02-14 Richard Henderson <rth@redhat.com>
655
656 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
657
1f319dba
UB
6582012-02-14 Uros Bizjak <ubizjak@gmail.com>
659
660 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
661
31772c95
TR
6622012-02-14 Torvald Riegel <triegel@redhat.com>
663
664 * libitm_i.h (GTM::gtm_rwlog_entry): New.
665 (GTM::gtm_thread): Add read and write logs.
666 (GTM::dispatch_ml_wt): Declare.
667 * retry.cc (parse_default_method): Support ml_wt.
668 * method-ml.cc: New file.
669 * Makefile.am: Add method-ml.cc.
670 * Makefile.in: Regenerate.
671
5b9cf5d2
TR
6722012-02-14 Torvald Riegel <triegel@redhat.com>
673
674 * dispatch.h (GTM::abi_dispatch::supports): New.
675 (GTM::method_group::reinit): New.
676 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
677 (GTM::gtm_thread::number_of_threads_changed): Check that the method
678 supports the current situation.
679
7d33bcb7
TR
6802012-02-14 Torvald Riegel <triegel@redhat.com>
681
682 * util.cc (GTM::xcalloc): New.
683 * common.h (GTM::xcalloc): Declare.
684
62513f7b
EB
6852012-02-14 Eric Botcazou <ebotcazou@adacore.com>
686
687 * config/sparc/target.h (cpu_relax): Read from CC register.
688 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
689
6902012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
691
692 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
693
f3f5e3c3
EB
6942012-02-13 Eric Botcazou <ebotcazou@adacore.com>
695
62513f7b 696 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
697 * config/sparc/cacheline.h: New file.
698 * config/sparc/target.h: Likewise.
699 * config/sparc/sjlj.S: Likewise.
700 * config/linux/sparc/futex_bits.h: Likewise.
701
7022012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
703
704 * configure.ac (link_itm): Fix comment.
705 * configure: Regenerate.
706 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
707
681355e3
RO
7082012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
709
fc985d2f 710 PR libitm/51822
62513f7b 711 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
712 Correct libgomp references.
713
999bcff5
TR
7142012-01-24 Torvald Riegel <triegel@redhat.com>
715
716 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
717 wake-up.
718
9848887a
UB
7192012-01-24 Uros Bizjak <ubizjak@gmail.com>
720
721 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
722 end of structure.
723 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
724 offset values. Do not copy return address. Decrement stack
725 by 56 bytes only.
726 (GTM_longjump) [__x86_64__]: Update offset values.
727
5752c591
UB
7282012-01-23 Uros Bizjak <ubizjak@gmail.com>
729
730 PR libitm/51830
731 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
732 the first function argument to %eax.
733
61e72ca4
RO
7342012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
735
736 * libitm.h (_ITM_getThreadnum): Remove.
737 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
738
9ce91011
RO
7392012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
740
741 * clearcap.map: New file.
742 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
743 * configure.ac: Call it.
744 Clear HWCAP_LDFLAGS if defaulting to -mavx.
745 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
746 * configure: Regenerate.
747 * Makefile.in: Regenerate.
748 * testsuite/Makefile.in: Regenerate.
749
3b4f05ec
RO
7502012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
751
752 PR libitm/51173
753 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
754 include, exclude options.
755
aab74ee9
TR
7562012-01-14 Torvald Riegel <triegel@redhat.com>
757
758 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
759 rolling back.
760 * containers.h (GTM::vector::set_size): New.
761
07b6642b
TR
7622012-01-14 Torvald Riegel <triegel@redhat.com>
763
764 PR libitm/51855
765 * config/generic/tls.h (GTM::mask_stack_top): New.
766 (GTM::mask_stack_bottom): Declare.
767 * config/generic/tls.c (GTM::mask_stack_bottom): New.
768 * local.cc (gtm_undolog::rollback): Filter out any updates that
769 overlap the libitm stack. Add current transaction as parameter.
770 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
771 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
772 * testsuite/libitm.c/stackundo.c: New test.
773
8377e5e5
RH
7742012-01-10 Richard Henderson <rth@redhat.com>
775
776 * libitm_i.h (_Unwind_DeleteException): Declare weak.
777 * eh_cpp.cc (_Unwind_DeleteException): Define for
778 !HAVE_ELF_STYLE_WEAKREF.
779
11f30bb0
TR
7802012-01-08 Torvald Riegel <triegel@redhat.com>
781
782 * local.cc (GTM_LB): Use GTM::gtm_undolog.
783 (GTM::gtm_thread::drop_references_undolog): Remove.
784 (GTM::gtm_thread::commit_undolog,
785 GTM::gtm_thread::rollback_undolog): Move to ...
786 * libitm_i.h (GTM::gtm_undolog): ...here. New.
787 (GTM::gtm_undolog_entry): Remove.
788 (GTM::gtm_thread): Adapt.
789 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
790 (GTM::gtm_thread::trycommit): Adapt.
791 * method-serial.cc (serial_dispatch::log): Adapt.
792 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
793 (gl_wt_dispatch::store): Fix likely/unlikely.
794 * containers.h (GTM::vector::resize): Add additional_capacity
795 parameter and handle it.
796 (GTM::vector::resize_noinline): New/adapt.
797 (GTM::vector::push): New.
798
a32e5e93
RH
7992012-01-06 Richard Henderson <rth@redhat.com>
800
801 * configure.tgt: Support powerpc-linux and powerpc-darwin.
802 * config/linux/powerpc/futex_bits.h: New file.
803 * config/powerpc/cacheline.h: New file.
804 * config/powerpc/sjlj.S: New file.
805 * config/powerpc/target.h: New file.
806 * config/generic/asmcfi.h (cfi_offset): New.
807 (cfi_restore, cfi_undefined): New.
808
1f53a8e6
AH
8092012-01-05 Aldy Hernandez <aldyh@redhat.com>
810
811 PR other/51171
812 * testsuite/libitm.c/reentrant.c: Remove xfail.
813 (thread): Pass x to pure().
be223aaf 814 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 815
c898f7b8
TR
8162011-12-24 Torvald Riegel <triegel@redhat.com>
817
818 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
819 privatization safety if already in serial mode.
820
610e3901
TR
8212011-12-24 Torvald Riegel <triegel@redhat.com>
822
823 * beginend.cc (GTM::gtm_thread::restart): Add and handle
824 finish_serial_upgrade parameter.
825 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
826 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
827 Don't unset reader flag.
828 (GTM::gtm_rwlock::write_upgrade_finish): New.
829 * config/posix/rwlock.cc: Same.
830 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
831 Declare.
832 * config/posix/rwlock.h: Same.
833 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
834 flag after commit or after rollback when restarting.
835
799142bf
TR
8362011-12-24 Torvald Riegel <triegel@redhat.com>
837
838 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
839 (GTM::gtm_thread::try_commit): Changed memory order.
840 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
841 as parameter.
842 * config/linux/x86/futex_bits.h (sys_futex0): Same.
843 * config/linux/sh/futex_bits.h (sys_futex0): Same.
844 * config/linux/futex_bits.h (sys_futex0): Same.
845 * config/linux/futex.cc (futex_wait, futex_wake): Same.
846 * config/linux/futex.h (futex_wait, futex_wake): Same.
847 * config/linux/rwlock.h (gtm_rwlock::writers,
848 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
849 ints.
850 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
851 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
852 gtm_rwlock::write_unlock): Fix memory orders and fences.
853 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
854 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
855 gtm_rwlock::write_unlock): Same.
856 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
857 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
858 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
859 Add comments.
860 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
861 gl_wt_dispatch::load, gl_wt_dispatch::store,
862 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
863 orders and fences. Add comments.
864
b0f96e35
JJ
8652011-12-21 Jakub Jelinek <jakub@redhat.com>
866
867 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
868 * Makefile.in: Regenerated.
869
cc163247
KK
8702011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
871
872 * configure.tgt: Add sh* case.
873 * config/sh/target.h: New file.
874 * config/sh/sjlj.S: New file.
875 * config/linux/sh/futex_bits.h: New file.
876
aebac0ca
RH
8772011-12-14 Richard Henderson <rth@redhat.com>
878
879 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
880 * config/arm/sjlj.S, config/arm/target.h: New files.
881 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
882 (cfi_rel_offset): New.
883 * config/linux/futex_bits.h: New file.
884 * config/linux/futex.cc: Include futex_bits.h here...
885 * config/linux/futex.h: ... not here.
886 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
887 * configure.ac (ARCH_AM): New conditional.
888 * Makefile.in, configure: Rebuild.
889 * configure.tgt: Handle ARM.
890
36cfbee1
RH
8912011-12-13 Richard Henderson <rth@redhat.com>
892
5d9d05d3
RH
893 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
894 signed/unsigned comparison werror.
895
36cfbee1
RH
896 * local_atomic: New file.
897 * libitm_i.h: Include it.
898 (gtm_thread::shared_state): Use atomic template.
899 * beginend.cc (GTM::gtm_clock): Use atomic template.
900 (global_tid): Use atomic template if 64-bit atomics available.
901 (gtm_thread::gtm_thread): Update shared_state access.
902 (gtm_thread::trycommit): Likewise.
903 (choose_code_path): Update global_tid access.
904 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
905 * stmlock.h (GTM::gtm_clock): Use atomic template.
906 (gtm_get_clock, gtm_inc_clock): Update accesses.
907 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
908 redundant __sync_synchronize after atomic shared_state access.
909 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
910 (gtm_rwlock::write_lock_generic): Likewise.
911 (gtm_rwlock::read_unlock): Likewise.
912 * config/alpha/target.h (atomic_read_barrier): Remove.
913 (atomic_write_barrier): Remove.
914 * config/x86/target.h (atomic_read_barrier): Remove.
915 (atomic_write_barrier): Remove.
916
062f93f2
RH
9172011-11-30 Richard Henderson <rth@redhat.com>
918
919 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
920 * beginend.c (_ITM_abortTransaction): Update to match.
921 (GTM::gtm_thread::restart): Likewise.
922 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
923 * config/x86/sjlj.S (GTM_longjmp): Likewise.
924
bd8aaa86
IS
9252011-11-23 Iain Sandoe <iains@gcc.gnu.org>
926
927 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
928 * Makefile.in: Regenerate.
929
8cf36bb3
IS
9302011-11-22 Iain Sandoe <iains@gcc.gnu.org>
931
932 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
933 * alloc_cpp.cc: Generate dummy functions if we don't
934 HAVE_ELF_STYLE_WEAKREF.
935 * eh_cpp.cc: Likewise.
936 * configure: Regenerate.
937 * aclocal.m4: Likewise.
938 * config.h.in: Likewise.
939 * Makefile.in: Likewise.
940 * testsuite/Makefile.in: Likewise.
941
0b41ebef
IS
9422011-11-22 Iain Sandoe <iains@gcc.gnu.org>
943
944 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
945 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 946 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
947 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
948 in portability to non-elf targets.
8cf36bb3 949 (GTM_longjmp): Likewise.
0b41ebef
IS
950 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
951 where required.
952
9c9d352a
IS
9532011-11-22 Iain Sandoe <iains@gcc.gnu.org>
954
955 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
956 * testsuite/libitm.c/memset-1.c: Likewise.
957
c6084f68
AT
9582011-11-21 Andreas Tobler <andreast@fgznet.ch>
959
960 * configure: Regenerate.
961
adcd36bc
RO
9622011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
963
964 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
965 (LIBITM_ENABLE_SYMVERS): Handle sun style.
966 * Makefile.am: Handle sun style versioning.
967 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
968 * configure: Regenerate.
969 * Makefile.in: Regenerate.
970
59659b59
RO
9712011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972
973 * config/generic/asmcfi.h: Fix comment.
974 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
975 sequence without .hidden support, error for non-ELF targets.
976 (GTM_longjmp) [__ELF__]: Only use .hidden if
977 HAVE_ATTRIBUTE_VISIBILITY.
978
d846e425
RO
9792011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
980
981 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
982 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
983 Dummy functions.
984 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
985 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
986
80713347
UB
9872011-11-16 Uros Bizjak <ubizjak@gmail.com>
988
989 PR bootstrap/51098
990 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
991 * configure: Regenerate.
992
2841f85e
L
9932011-11-14 H.J. Lu <hongjiu.lu@intel.com>
994
995 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
996
8851b429
RO
9972011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
998
999 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1000 .hidden.
1001 (.note.GNU-stack): Only use if __linux__.
1002 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1003 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1004 * testsuite/libitm.c/reentrant.c: Likewise.
1005 * testsuite/libitm.c/simple-2.c: Likewise.
1006 * testsuite/libitm.c/txrelease.c: Likewise.
1007 * testsuite/libitm.c++/static_ctor.C: Likewise.
1008
d4b17902
RH
10092011-11-10 Richard Henderson <rth@redhat.com>
1010
1011 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1012 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1013 * configure.ac (ARCH_X86_AVX): New conditional.
1014 * Makefile.in, configure: Rebuild.
1015
430616e7
RH
10162011-11-09 Richard Henderson <rth@redhat.com>
1017
1018 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1019 * configure.ac: Use it.
1020 * config.h.in, configure: Rebuild.
1021 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1022
79b1edb6
RH
10232011-11-09 Richard Henderson <rth@redhat.com>
1024
1025 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1026 * config/alpha/unaligned.h: Remove file.
1027 * config/generic/unaligned.h: Remove file.
1028 * config/x86/unaligned.h: Remove file.
1029 * config/generic/cachepage.h: Remove file.
1030 * config/posix/cachepage.cc: Remove file.
1031 * config/generic/cacheline.cc: Remove file.
1032 * config/x86/cacheline.cc: Remove file.
1033 * config/generic/cacheline.h (gtm_cacheline): Remove the
1034 store_mask, copy_mask, copy_mask_wb methods.
1035 * config/x86/cacheline.h: Likewise.
1036 * config/alpha/cacheline.h: Fall back to generic after setting size.
1037 * config/generic/tls.cc (gtm_mask_stack): Remove.
1038 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1039 (GTM_vpalignr_table): Remove.
1040 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1041 (GTM_pshift_table): Remove.
1042 * config/libitm_i.h: Don't include cachepage.h.
1043 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1044 * Makefile.in, testsuite/Makefile.in: Rebuild.
1045
4bdd090f
RH
10462011-11-09 Richard Henderson <rth@redhat.com>
1047
8ee9fac2
RH
1048 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1049 to emit branch prediction hint.
1050
9bdc6343
RH
1051 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1052 Protect .note.GNU-stack with __linux__.
1053
4bdd090f
RH
1054 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1055 * configure, aclocal.m4, config.h.in: Rebuild.
1056 * config/generic/asmcfi.h: New file.
1057 * config/x86/sjlj.S: Use it.
1058
4408b086
RH
10592011-11-08 Richard Henderson <rth@redhat.com>
1060
1061 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1062
01f3428c
RH
10632011-11-08 Richard Henderson <rth@redhat.com>
1064
3d3b05ff
RH
1065 * configure.tgt: Test correct directory for supported cpus.
1066
01f3428c
RH
1067 * configure.ac: Exit if unsupported.
1068 * configure: Rebuild.
1069 * configure.tgt: Delete boilerplate from libgomp for unsupported
1070 targets. Set UNSUPPORTED for unsupported targets.
1071
07f03cd3
RO
10722011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1073
1074 * configure.tgt: Handle i386 like i[456]86.
1075 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1076 take address.
1077 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1078 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1079
0a35513e
AH
10802011-11-05 Aldy Hernandez <aldyh@redhat.com>
1081
1082 * method-wbetl.cc: Update copyright notice.
1083 * aatree.cc: Same.
1084 * util.cc: Same.
1085 * libitm.h: Same.
1086 * memset.cc: Same.
1087 * eh_cpp.cc: Same.
1088 * barrier.tpl: Same.
1089 * useraction.cc: Same.
1090 * stmlock.h: Same.
1091 * memcpy.cc: Same.
1092 * common.h: Same.
1093 * config/generic/tls.cc: Same.
1094 * config/generic/cacheline.h: Same.
1095 * config/generic/cachepage.h: Same.
1096 * config/generic/cacheline.cc: Same.
1097 * config/generic/unaligned.h: Same.
1098 * config/x86/cacheline.h: Same.
1099 * config/x86/cacheline.cc: Same.
1100 * config/x86/unaligned.h: Same.
1101 * config/alpha/cacheline.h: Same.
1102 * config/alpha/unaligned.h: Same.
1103 * config/alpha/sjlj.S: Same.
1104 * config/posix/cachepage.cc: Same.
1105 * config/linux/futex.h: Same.
1106 * config/linux/alpha/futex_bits.h: Same.
1107
11082011-11-04 Torvald Riegel <triegel@redhat.com>
1109
1110 * libitm.texi: No cover text and invariant sections.
1111
11122011-11-03 Richard Henderson <rth@redhat.com>
1113
1114 * local_type_traits: New file.
1115 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1116
11172011-11-03 Richard Henderson <rth@redhat.com>
1118
1119 * configure.ac: Don't test for gfortran.
1120 * configure: Rebuild.
1121
1122 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1123 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1124
11252011-11-03 Aldy Hernandez <aldyh@redhat.com>
1126
1127 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1128 * testsuite/libitm.c/memset-1.c: Same.
1129 * testsuite/libitm.c/c.exp: Same.
1130 * testsuite/lib/libitm-dg.exp: Same.
1131 * testsuite/lib/libitm.exp: Same.
1132 * testsuite/libitm.c++/c++.exp: Same.
1133
11342011-11-03 Aldy Hernandez <aldyh@redhat.com>
1135
1136 * testsuite/config/default.exp: Update copyright date.
1137 * configure.ac: Add copyright info.
1138 * configure.tgt: Same.
1139
11402011-11-03 Aldy Hernandez <aldyh@redhat.com>
1141
1142 * testsuite/libitm.c/reentrant.c: XFAIL.
1143 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1144
11452011-10-29 Torvald Riegel <triegel@redhat.com>
1146
1147 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1148 handle aborts.
1149 (_ITM_abortTransaction): Handle aborts of outer transactions.
1150 * libitm_i.h: Same.
1151 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1152 * libitm.texi: Document aborts of outer transactions.
1153 * testsuite/libitm.c/cancel.c: New file.
1154
11552011-10-19 Torvald Riegel <triegel@redhat.com>
1156
1157 * testsuite/*: Change __transaction to __transaction_atomic or
1158 __transaction_relaxed.
1159
11602011-10-19 Torvald Riegel <triegel@redhat.com>
1161
1162 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1163 (gtm_thr): Same.
1164
11652011-10-19 Torvald Riegel <triegel@redhat.com>
1166
1167 * libitm_i.h: Add gl_wt dispatch.
1168 * retry.cc (parse_default_method): Same.
1169 * method-gl.cc: New file.
1170 * Makefile.am: Use method-gl.cc.
1171 * Makefile.in: Rebuild.
1172
11732011-10-19 Torvald Riegel <triegel@redhat.com>
1174
1175 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1176 safety if requested by a TM method.
1177 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1178 privatization safety.
1179 * method-serial.cc: Same.
1180
11812011-10-19 Torvald Riegel <triegel@redhat.com>
1182
1183 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1184 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1185 undolog-related member functions from *_local to *_undolog.
1186 * local.cc (gtm_thread::commit_undolog): Same.
1187 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1188 (GTM::gtm_thread::rollback): Roll back undolog before
1189 dispatch-specific rollback.
1190
11912011-10-19 Torvald Riegel <triegel@redhat.com>
1192
1193 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1194 re-initialization of the current method group.
1195 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1196
11972011-10-19 Torvald Riegel <triegel@redhat.com>
1198
1199 * alloc.cc (commit_allocations_2): Do not free transaction-local
1200 memory when committing a nested transaction.
1201
12022011-10-19 Torvald Riegel <triegel@redhat.com>
1203
1204 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1205 serial-irrevocable dispatch, not serial.
1206
12072011-10-19 Torvald Riegel <triegel@redhat.com>
1208
1209 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1210 declarations.
1211 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1212 * method-serial.cc: Implement begin_or_restart().
1213 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1214 dispatch-specific begin_or_restart().
1215 (GTM::gtm_thread::restart): Same.
1216
12172011-08-23 Torvald Riegel <triegel@redhat.com>
1218
1219 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1220 restarting without switching to serial mode.
1221 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1222 transaction state. Choose closed-nesting alternative if available.
1223 (GTM::gtm_thread::set_default_dispatch): New.
1224 (parse_default_method): New.
1225 (GTM::gtm_thread::number_of_threads_changed): New.
1226 * method-serial.cc (GTM::serial_mg): New method group class.
1227 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1228 fini.
1229 (GTM::serial_dispatch): Same.
1230 (GTM::serialirr_onwrite_dispatch): Same.
1231 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1232 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1233 registered threads.
1234 (GTM::gtm_thread::gtm_thread): Same.
1235 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1236 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1237 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1238 choose dispatch but set state according to dispatch here.
1239 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1240 (GTM::method_group): New class.
1241 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1242 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1243 * libitm.texi: Document TM methods, method groups, method life cycle.
1244 Rename method sets to method groups.
1245
12462011-08-23 Torvald Riegel <triegel@redhat.com>
1247
1248 * config/x86/tls.h: Moved to ...
1249 * config/linux/x86/tls.h: ... here.
1250
12512011-08-23 Torvald Riegel <triegel@redhat.com>
1252
1253 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1254 Add X32 support.
1255 * config/x86/sjlj.S: Same.
1256
12572011-08-19 Torvald Riegel <triegel@redhat.com>
1258
1259 * config/linux/rwlock.h: New file.
1260 * config/linux/rwlock.c: New file.
1261 * configure.ac: Reenable futex support (undo SVN rev 157758).
1262 * Makefile.am: Same.
1263 * configure.tgt: Same.
1264 * config/linux/alpha/futex_bits.h: Same.
1265 * config/linux/futex.h: Same. Return number of woken processes.
1266 * config/linux/futex.cc: Same.
1267 (futex_wait): Remove spinning.
1268 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1269 Use __x86_64__ instead of __LP64__.
1270 * aclocal.m4: Include generic futex checks.
1271 * configure: Rebuild.
1272 * Makefile.in: Rebuild.
1273 * testsuite/Makefile.in: Rebuild.
1274 * beginend.cc: Include pthread.h.
1275 * config/posix/cachepage.cc: Same.
1276
12772011-08-12 Torvald Riegel <triegel@redhat.com>
1278
1279 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1280 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1281 (set_gtm_thr): New.
1282 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1283 (set_gtm_thr): New.
1284 (GTM::gtm_thread::thread_num): Removed.
1285 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1286 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1287 tx-to-thread renaming.
1288 * beginend.cc: Adapted to tx-to-thread renaming.
1289 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1290 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1291 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1292 gtm_transaction to gtm_thread.
1293 (_ITM_getThreadnum): Removed. Not supported anymore.
1294 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1295 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1296 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1297 gtm_tx-to-gtm_thr renaming if necessary.
1298 * eh_cpp.cc: Same.
1299 * local.cc: Same.
1300 * retry.cc: Same.
1301 * clone.cc: Same.
1302 * alloc.cc: Same.
1303 * alloc_c.cc: Same.
1304 * alloc_cpp.cc: Same.
1305 * method-serial.cc: Same.
1306 * config/generic/tls.cc: Same.
1307 * config/posix/rwlock.h (gtm_rwlock): Same.
1308 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1309
13102011-08-12 Torvald Riegel <triegel@redhat.com>
1311
1312 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1313 implementation.
1314 (gtm_rwlock::read_unlock): Same.
1315 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1316 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1317 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1318 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1319 w_upgrade. Replaced by per-transaction flags (in shared_state).
1320 Added c_confirmed_writers.
1321 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1322 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1323 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1324 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1325 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1326 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1327 * libitm.texi: Document locking conventions and implementations in
1328 libitm.
1329
13302011-08-12 Torvald Riegel <triegel@redhat.com>
1331
1332 * libitm_i.h (next_tx): Add list of all threads' transaction.
1333 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1334 transaction with list of transactions and ...
1335 (thread_exit_handler): ... deregister here.
1336 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1337 * config/x86/target.h: Same.
1338
13392011-08-12 Torvald Riegel <triegel@redhat.com>
1340
1341 * testsuite/libitm.c++/static_ctor.C: New file.
1342
13432011-08-12 Torvald Riegel <triegel@redhat.com>
1344
1345 * testsuite/libitm.c/reentrant.c: New file.
1346
13472011-08-12 Torvald Riegel <triegel@redhat.com>
1348
1349 * config/generic/tls.h: Remove the free list for transactions and ...
1350 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1351 (GTM::gtm_transaction::operator delete): ... and release here.
1352 (thread_exit_handler): New. Delete tx when thread terminates.
1353 (thread_exit_init): New.
1354 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1355 * testsuite/libitm.c/txrelease.c: New file.
1356
13572011-08-12 Torvald Riegel <triegel@redhat.com>
1358
1359 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1360 * testsuite/libitm.c/notx.c: New file.
1361
13622011-08-12 Torvald Riegel <triegel@redhat.com>
1363
1364 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1365 * libitm_i.h (local_tid): ... to here.
1366 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1367 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1368
13692011-08-12 Torvald Riegel <triegel@redhat.com>
1370
1371 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1372 serialirr_onwrite_dispatch as new default for now.
1373 * method-serial.cc (serialirr_onwrite_dispatch): New.
1374 (GTM::dispatch_serialirr_onwrite): New.
1375 * libitm_i.h: Same.
1376
13772011-08-12 Torvald Riegel <triegel@redhat.com>
1378
1379 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1380 * query.cc (_ITM_getTransactionId): There is no active transaction if
1381 the current nesting level is zero.
1382
13832011-07-28 Torvald Riegel <triegel@redhat.com>
1384
1385 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1386 rollback.
1387
13882011-07-28 Torvald Riegel <triegel@redhat.com>
1389
1390 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1391 transaction properties from the caller instead of from the
1392 transaction object.
1393 * libitm_i.h: Same.
1394 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1395
13962011-07-28 Torvald Riegel <triegel@redhat.com>
1397
1398 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1399 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1400 * dispatch.h: Same.
1401 * method-serial.cc: Same.
1402 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1403 flat nesting as default, and closed nesting on demand.
1404 (GTM::gtm_transaction::rollback): Same.
1405 (_ITM_abortTransaction): Same.
1406 (GTM::gtm_transaction::restart): Same.
1407 (GTM::gtm_transaction::trycommit): Same.
1408 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1409 (choose_code_path): New.
1410 (GTM::gtm_transaction_cp::save): New.
1411 (GTM::gtm_transaction_cp::commit): New.
1412 * query.cc (_ITM_inTransaction): Support flat nesting.
1413 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1414 (GTM::gtm_transaction): Support flat and closed nesting.
1415 * alloc.cc (commit_allocations_2): New.
1416 (commit_cb_data): New helper struct.
1417 (GTM::gtm_transaction::commit_allocations): Handle nested
1418 commits/rollbacks.
1419 * libitm.texi: Update user action section, add description of nesting.
1420
14212011-07-28 Torvald Riegel <triegel@redhat.com>
1422
1423 * libitm_i.h: Add closed nesting as restart reason.
1424 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1425
14262011-07-28 Torvald Riegel <triegel@redhat.com>
1427
1428 * useraction.cc: Use vector instead of list to store actions.
1429 Also support partial rollbacks for closed nesting.
1430 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1431 * beginend.cc: Same.
1432
14332011-07-28 Torvald Riegel <triegel@redhat.com>
1434
1435 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1436 closed_nesting flags, as well as a closed nesting alternative.
1437 * method-serial.cc: Same.
1438 (serial_dispatch): Renamed to serialirr_dispatch.
1439 (GTM::dispatch_serialirr): Same.
1440 (serial_dispatch_ul): Renamed to serial_dispatch.
1441 (GTM::dispatch_serial): Same.
1442
14432011-07-28 Torvald Riegel <triegel@redhat.com>
1444
1445 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1446
14472011-07-28 Torvald Riegel <triegel@redhat.com>
1448
1449 * aatree.h (aa_tree::remove): New.
1450 (aa_tree::operator new): Add placement new.
1451
14522011-07-02 Torvald Riegel <triegel@redhat.com>
1453
1454 * containers.h: New file.
1455 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1456 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1457 * common.h: ... to here.
1458 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1459 * local.cc: Same.
1460
14612011-06-30 Torvald Riegel <triegel@redhat.com>
1462
1463 * libitm_i.h (STATE_ABORTING): Remove.
1464 * beginend.cc (_ITM_abortTransaction): Same.
1465 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1466 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1467 (_ITM_rollbackTransaction): Remove.
1468 * beginend.cc: Same.
1469 * libitm.map: Same.
1470 * libitm.texi: Document these ABI changes.
1471
14722011-06-30 Torvald Riegel <triegel@redhat.com>
1473
1474 * libitm.texi: New file.
1475 * Makefile.am: Add libitm.texi.
1476 * Makefile.in: Rebuild.
1477
14782011-06-30 Torvald Riegel <triegel@redhat.com>
1479
1480 * libitm_i.h: Move parts to common.h and dispatch.h.
1481 * common.h: New file.
1482 * dispatch.h: New file, new dispatch class.
1483 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1484 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1485 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1486 decision to retry.cc.
1487 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1488 only.
1489 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1490 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1491 logging.
1492 * barrier.cc: Use new barriers definitions.
1493 (abi_dispatch::memmove_overlap_check): New.
1494 * config/x86/x86_sse.cc: Same.
1495 * config/x86/x86_avx.cc: Same.
1496 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1497 memcpy.cc.
1498 * Makefile.in: Rebuild.
1499 * method-readonly.cc: Remove.
1500 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1501 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1502
15032011-06-30 Torvald Riegel <triegel@redhat.com>
1504
1505 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1506 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1507 * testsuite/libitm.c/dropref-2.c: Same.
1508 * testsuite/libitm.c/dropref.c: Same.
1509
15102011-06-30 Torvald Riegel <triegel@redhat.com>
1511
1512 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1513 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1514 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1515 * alloc_c.cc: Same.
1516 * barrier.tpl: Same.
1517 * beginend.c: Same.
1518 * config/generic/tls.h: Same.
1519 * config/x86/tls.h: Same.
1520 * libitm_i.h: Same.
1521 * memcpy.cc: Same.
1522 * memset.cc: Same.
1523 * method-readonly.cc: Same.
1524 * method-serial.cc: Same.
1525 * method-wbetl.cc: Same.
1526 * retry.cc: Same.
1527
15282011-03-03 Richard Henderson <rth@redhat.com>
1529
1530 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1531 From Patrik Marlier <patrick.marlier@unine.ch>.
1532
15332011-02-03 Richard Henderson <rth@redhat.com>
1534
1535 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1536 * configure.ac: Use it.
1537 * configure, config.h.in: Rebuild.
1538 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1539 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1540 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1541 * libitm.map: Use wildcards to match size_t mangling.
1542
15432010-12-14 Richard Henderson <rth@redhat.com>
1544
1545 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1546 blocks of TIDs per thread.
1547 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1548 (setup_gtm_thr): Return the thread structure.
1549 * config/x86/tls.h (setup_gtm_thr): Likewise.
1550
15512010-12-14 Richard Henderson <rth@redhat.com>
1552
1553 * clone.cc (table_lock): Remove.
1554 (find_clone): Don't take it.
1555 (ExcludeTransaction): New helper class.
1556 (_ITM_registerTMCloneTable): Use it.
1557 (_ITM_deregisterTMCloneTable): Likewise.
1558
15592010-12-14 Richard Henderson <rth@redhat.com>
1560
1561 * config/x86/tls.h: New file.
1562
15632010-07-15 Richard Henderson <rth@redhat.com>
1564
1565 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1566 * Makefile.in: Rebuild.
1567
15682010-07-13 Aldy Hernandez <aldyh@redhat.com>
1569
1570 * method-wbetl.cc (trydropreference): Fix source line.
1571
15722010-07-13 Aldy Hernandez <aldyh@redhat.com>
1573
1574 * libitm.h: Add comment.
1575 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1576
15772010-07-07 Aldy Hernandez <aldyh@redhat.com>
1578
1579 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1580 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1581 available, use pthread mutexes.
1582 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1583 * config.h.in: Regenerate.
1584 * configure: Regenerate.
1585
15862010-07-06 Aldy Hernandez <aldyh@redhat.com>
1587
1588 * libitm.h (ITM_PURE): Define.
1589 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1590
15912010-06-28 Aldy Hernandez <aldyh@redhat.com>
1592
1593 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1594 (validate): Add comment.
1595 (trydropreference): New.
1596 * method-readonly.cc (class readonly_dispatch): Add
1597 trydropreference.
1598 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1599 Call trydropreference().
1600 * libitm.h (_ITM_dropReferences): Remove const attribute.
1601 * method-serial.cc (class serial_dispatch): Add trydropreference.
1602 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1603
16042010-06-28 Aldy Hernandez <aldyh@redhat.com>
1605
1606 * memcpy.cc (do_memcpy): Comment.
1607
16082010-06-25 Aldy Hernandez <aldyh@redhat.com>
1609
1610 * barrier.tpl: Add comments throughout.
1611
16122010-06-24 Aldy Hernandez <aldyh@redhat.com>
1613
1614 * method-wbetl.cc (struct w_entry): Add comments.
1615 (trycommit): Same.
1616 (rollback): Same.
1617
16182010-06-24 Aldy Hernandez <aldyh@redhat.com>
1619
1620 * alloc_c.cc (_ITM_dropReferences): New.
1621 * libitm.map (_ITM_dropReferences): Add.
1622 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1623 * libitm_i.h (struct gtm_transaction): Declare
1624 drop_references_allocations and drop_references_local.
1625 * local.cc (rollback_local): Ignore memory when applicable.
1626 (drop_references_local): New.
1627
16282010-06-23 Richard Henderson <rth@redhat.com>
1629
1630 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1631 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1632 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1633 * config/alpha/target.h: Likewise.
1634 * config/generic/tls.cc (gtm_mask_stack): Use it.
1635
16362010-06-23 Richard Henderson <rth@redhat.com>
1637
1638 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1639 a mutex instead of trying a lock-free compare-and-swap on the list.
1640 (gtm_cacheline_page::operator delete): Likewise.
1641
16422010-06-16 Richard Henderson <rth@redhat.com>
1643
1644 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1645 that overlap the libitm stack.
1646 * barrier.tpl: Mark incoming stack.
1647 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1648 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1649 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1650 * memcpy.cc, memset.cc: Likewise.
1651 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1652 * config/generic/tls.h (gtm_thread): Add stack_top member.
1653 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1654 * libitm_i.h (gtm_mask_stack): Declare.
1655 * config/generic/tls.cc: New file.
1656 * Makefile.am (libitm_la_SOURCES): Add it.
1657 (AM_CXXFLAGS): Turn off exceptions.
1658 * Makefile.in: Rebuild.
1659
16602010-06-16 Richard Henderson <rth@redhat.com>
1661
1662 * alloc.cc (struct gtm_alloc_action): Move definition ...
1663 * libitm_i.h: ... here.
1664 (class gtm_transaction): Declare new and delete.
1665 * beginend.cc (alloc_tx): Reformulate as operator new.
1666 (free_tx): Reformulate as operator delete.
1667 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1668
16692010-06-11 Richard Henderson <rth@redhat.com>
1670
1671 * clone.cc (clone_entry_compare): Fix typo.
1672 From Patrik Marlier <patrick.marlier@unine.ch>.
1673
16742010-05-13 Richard Henderson <rth@redhat.com>
1675
1676 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1677 in extern "C".
1678
16792010-05-07 Aldy Hernandez <aldyh@redhat.com>
1680
1681 * libitm_i.h (struct gtm_transaction): Remove
1682 get_allocation_size.
1683 (record_allocation): Remove size parameter.
1684 * libitm.map (_ITM_realloc): Remove.
1685 * alloc_c.cc (_ITM_realloc): Remove.
1686 (_ITM_malloc): Remove size argument to record_allocation.
1687 (_ITM_calloc): Same.
1688 * alloc_cpp.cc (_ZGTtnwm): Same.
1689 (_ZGTtnwmRKSt9nothrow_t): Same.
1690 (_ZGTtnam): Same.
1691 (_ZGTtnamRKSt9nothrow_t): Same.
1692 * alloc.cc (struct gtm_alloc_action): Remove size.
1693 (get_allocation_size): Remove.
1694 (commit_allocations): Add comment.
1695 (record_allocation): Remove size parameter.
1696 (forget_allocation): Remove set of size.
1697
16982010-04-19 Aldy Hernandez <aldyh@redhat.com>
1699
1700 * Makefile.am (abi_version): New.
1701 (AM_CXXFLAGS): Pass abi_version.
1702 * Makefile.in: Regenerate.
1703 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1704
17052010-04-06 Aldy Hernandez <aldyh@redhat.com>
1706
1707 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1708 _ITM_getTMCloneOrIrrevokable.
1709 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1710 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1711
17122010-03-26 Aldy Hernandez <aldyh@redhat.com>
1713
1714 * configure.ac: Remove Linux futex support.
1715 * configure.tgt (config_path): Same.
1716 * Makefile.am: Same.
1717 * config/linux: Remove entire directory.
1718 * configure: Rebuild.
1719 * Makefile.in: Rebuild.
1720 * testsuite/Makefile.in: Rebuild.
1721
17222010-03-09 Aldy Hernandez <aldyh@redhat.com>
1723
1724 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1725 switching to serial mode.
1726 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1727
17282010-03-03 Aldy Hernandez <aldyh@redhat.com>
1729
1730 * configure.tgt: Add emacs -*- tags.
1731 * barrier.tpl: Same.
1732
17332010-02-23 Aldy Hernandez <aldyh@redhat.com>
1734
1735 * Makefile.am: Rename serial.cc to method-serial.cc.
1736 * Makefile.in: Regenerate with automake 1.11.1.
1737 * testsuite/Makefile.in: Same.
1738 * aclocal.m4: Regenerate with aclocal 1.11.1.
1739 * method-serial.cc: Rename from serial.cc.
1740 * libitm_i.h (struct gtm_transaction): Update comment on
1741 serialirr_mode.
1742
17432010-02-22 Aldy Hernandez <aldyh@redhat.com>
1744
1745 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1746 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1747
17482010-02-11 Aldy Hernandez <aldyh@redhat.com>
1749
1750 * configure: Rebuild.
1751
17522009-11-12 Richard Henderson <rth@redhat.com>
1753
1754 * Rewrite everything in C++.
1755
17562009-11-03 Richard Henderson <rth@redhat.com>
1757
1758 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1759 * Makefile.am (libitm_la_SOURCES): Add them.
1760 * configure.ac (ARCH_X86): New conditional.
1761 * Makefile.in, configure: Rebuild.
1762 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1763 Move futex setup into "other system configury" case.
1764 * local.c (rollback_local): Merge into ...
1765 (GTM_rollback_local): ... here.
1766 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1767 (_ITM_LB): Define as an alias to GTM_LB.
1768
17692009-11-03 Richard Henderson <rth@redhat.com>
1770
1771 * method-readonly.c: New file.
1772 * Makefile.am (libitm_la_SOURCES): Add it.
1773 * Makefile.in: Rebuild.
1774 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1775 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1776 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1777 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1778 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1779 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1780 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1781 gtm_get_clock, gtm_inc_clock): New.
1782 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1783 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1784 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1785 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1786 replace uses with new libitm_i.h symbols.
1787 (dispatch_wbetl): Rename from wbetl_dispatch.
1788 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1789 away from dispatch_readonly; abort if the beginTransaction call
1790 asserted that the transaction was readonly.
1791
17922009-11-03 Richard Henderson <rth@redhat.com>
1793
1794 * memset.c: New file.
1795 * Makefile.am (libitm_la_SOURCES): Add it.
1796 * Makefile.in: Rebuild.
1797 * testsuite/libitm.c/memset-1.c: New.
1798
17992009-11-03 Richard Henderson <rth@redhat.com>
1800
1801 * dispatch.c: Remove file.
1802 * useraction.c (struct gtm_user_action): Move from libitm.h.
1803 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1804 (serial_memset, serial_memmove, serial_memcpy): Remove.
1805 (serial_W*, serial_R*): Remove.
1806 (serial_dispatch): Update to match.
1807 * configure.ac: Move Werror down below configure checks. Don't
1808 check for sys/loadavg.h, do check for malloc.h. Don't check for
1809 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1810 Use GCC_AC_FUNC_MMAP_BLACKLIST
1811 * libitm.h: Split out all internal items to...
1812 * libitm_i.h: ... here. New file.
1813 * copymask.c: New file.
1814 * local.c (struct gtm_local_undo): Move from libitm.h.
1815 (GTM_alloc_local): Rename from alloc_local; export.
1816 * memcpy.c: New file.
1817 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1818 * config/posix/page.c: New file.
1819 * config/posix/target_tls.h: Remove file.
1820 * barrier.c: New file.
1821 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1822 copymask.c, page.c.
1823 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1824 * method-wbetl.c: Rewrite for new cacheline methods.
1825 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1826
1827 * config/alpha/sjlj.S: Fix typo.
1828 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1829 * config/alpha/copymask.c: New file.
1830 * config/alpha/target.h (CACHELINE_SIZE): New.
1831 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1832
1833 * config/x86/target_i.h: Copy functions from x86/target.h.
1834 * config/x86/copymask.c: New file.
1835 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1836 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1837 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1838 * config/x86/target_tls.h: Move contents to target_i.h.
1839
1840 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1841 * testsuite/libitm.c/memcpy-1.c: New.
1842
18432009-10-22 Richard Henderson <rth@redhat.com>
1844
1845 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1846 (AM_CCASFLAGS): New.
1847 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1848 saving/restoring _AC_ARG_VAR_PRECIOUS.
1849 * Makefile.in, aclocal.m4, config.h.in, configure,
1850 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1851
18522009-10-22 Richard Henderson <rth@redhat.com>
1853
1854 * testsuite/*: Update for new compiler syntax.
1855
18562009-10-21 Richard Henderson <rth@redhat.com>
1857
1858 * libitm.h (_ITM_abortReason): Add outerAbort.
1859
18602009-08-03 Richard Henderson <rth@redhat.com>
1861
1862 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1863 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1864 * method-wbetl.c (struct w_entry): Remove mask.
1865 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1866 adjust all callers.
1867
18682009-07-22 Richard Henderson <rth@redhat.com>
1869
1870 * eh_cpp.c: New file.
1871 * Makefile.am (libitm_la_SOURCES): Add it.
1872 * Makefile.in: Rebuild.
1873 * beginend.c (GTM_rollback_transaction): Undo exception state.
1874 (GTM_trycommit_transaction): Mark inline.
1875 (GTM_trycommit_and_finalize_transaction): Split out from ...
1876 (_ITM_commitTransaction): ... here.
1877 (_ITM_commitTransactionEH): New function.
1878 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1879 cxa_unthrown, eh_in_flight; reorder.
1880
1881 * testsuite/libitm.c++/c++.exp: New.
1882 * testsuite/libitm.c++/eh-1.C: New.
1883
1884 * aatree.c (aa_free): Remove REGPARM.
1885 * aatree.h: Remove all REGPARM.
1886
18872009-07-18 Richard Henderson <rth@redhat.com>
1888
1889 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1890 * Makefile.am (libitm_la_SOURCES): Add them.
1891 * Makefile.in: Rebuild.
1892 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1893 (GTM_trycommit_transaction): Likewise.
1894 * libitm.h: Include aatree.h
1895 (struct gtm_alloc_action): New.
1896 (struct gtm_transaction): Add alloc_actions.
1897 (GTM_record_allocation, GTM_forget_allocation): Declare.
1898 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1899 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1900 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1901 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1902 _ZGTtdaPvRKSt9nothrow_t): Export.
1903
19042009-07-18 Richard Henderson <rth@redhat.com>
1905
1906 * target_tls.h: Move ...
1907 * config/posix/target_tls.h: ... here.
1908
19092009-07-07 Richard Henderson <rth@redhat.com>
1910
1911 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1912
19132009-07-07 Richard Henderson <rth@redhat.com>
1914
1915 * Update to GPL3.
1916
19172009-07-07 Richard Henderson <rth@redhat.com>
1918
1919 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1920 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1921
1922 * configure.tgt: Don't use -ftls-model for x86 linux.
1923 * libitm.h: Include target.h after standard includes.
1924 (_gtm_thr): Rename from gtm_thr.
1925 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1926 (gtm_disp, set_gtm_disp): New.
1927 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1928 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1929 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1930
19312009-07-07 Richard Henderson <rth@redhat.com>
1932
1933 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1934
19352009-07-06 Richard Henderson <rth@redhat.com>
1936
1937 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1938 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1939 (_ITM_beginTransaction): Take variadic arguments.
1940 (_ITM_registerThrownObject): Declare.
1941 * beginend.c, serial.c: Update.
1942 * libitm.map: Add _ITM_registerThrownObject.
1943
19442009-01-28 Richard Henderson <rth@redhat.com>
1945
1946 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1947 * Makefile.in: Rebuild.
1948 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1949 (GTM_restart_transaction): Fix uninstrumented code check.
1950 * retry.c (GTM_decide_retry_strategy): Add serial check.
1951 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1952 automatically go irrevokable when in serial mode.
1953 * clone.c: New file.
1954 * libitm.h, libitm.map: Update.
1955
19562009-01-27 Richard Henderson <rth@redhat.com>
1957
1958 * Makefile.am (LTCCASCOMPILE): Define.
1959 (libitm_la_SOURCES): Add methid-wbetl.c.
1960 * testsuite/Makefile.am: New
1961 * configure.ac: Add testsuite/Makefile.
1962 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1963 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1964 (_ITM_abortTransaction): Finalize implementation method; pass
1965 transaction properties to longjmp.
1966 (GTM_restart_transaction): Split out from ...
1967 (_ITM_commitTransaction): ... here.
1968 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1969 Move to config/x86/target.h.
1970 * config/linux/alpha/futex_bits.h: New.
1971 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1972 * config/x86/target.h: Disable target types for 32-bit.
1973 * config/alpha/sjlj.S, config/alpha/target.h: New.
1974 * libitm.h (struct gtm_dispatch): Add init, fini.
1975 (enum restart_reason): New.
1976 (struct gtm_transaction): Add method and restarts.
1977 * retry.c (GTM_decide_retry_strategy): Implement.
1978 * serial.c (serial_init, serial_fini): New.
1979 (GTM_serialmode): Finialize outgoing method.
1980 * method-wbetl.c: New.
1981
19822008-12-09 Richard Henderson <rth@redhat.com>
1983
1984 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1985 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1986 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1987 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1988 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1989 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1990 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1991 * serial.c (serial_R##T, serial_W##T): Likewise.
1992
19932008-11-21 Richard Henderson <rth@redhat.com>
1994
1995 * Initial commit.
21fa2a29
JJ
1996\f
1997Copyright (C) 2008-2016 Free Software Foundation, Inc.
1998
1999Copying and distribution of this file, with or without modification,
2000are permitted in any medium without royalty provided the copyright
2001notice and this notice are preserved.