]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR tree-optimization/55936 (Missed VRP optimization)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
6041f70a
TR
12016-01-22 Torvald Riegel <triegel@redhat.com>
2
3 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
4 boundary.
5 (htm_fastpath): Remove.
6 (gtm_thread::begin_transaction): Fix HTM fastpath.
7 (_ITM_commitTransaction): Adapt.
8 (_ITM_commitTransactionEH): Adapt.
9 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
10 and accessors.
11 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
12 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
13 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
14 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
15 * libitm/method-serial.cc (htm_mg): Adapt.
16 (gtm_thread::serialirr_mode): Adapt.
17 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
18
0b96ffdb
TR
192016-01-21 Torvald Riegel <triegel@redhat.com>
20
21 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
22 or AIX.
23
b1de98e3
RH
242016-01-19 Richard Henderson <rth@redhat.com>
25
26 PR bootstrap/69343
27 PR bootstrap/69339
28 Revert:
29 2016-01-13 Richard Henderson <rth@redhat.com>
30
31 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
32 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
33 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
34 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
35 * configure.ac (ARCH_AARCH64): New conditional.
36 (ARCH_PPC, ARCH_S390): Likewise.
37 * Makefile.in, configure: Rebuild.
38
39 * libitm.h (_ITM_TYPE_M128): Always define.
40 * vect64.cc: Split ...
41 * vect128.cc: ... out of...
42 * config/x86/x86_sse.cc: ... here.
43 * config/arm/neon.cc: New file.
44
f57fc960
TR
452016-01-19 Torvald Riegel <triegel@redhat.com>
46
47 * local_type_traits: Remove file.
48 * libitm_i.h: Don't include it anymore.
49 (sized_integral): Remove.
50
d2653984
TR
512016-01-16 Torvald Riegel <triegel@redhat.com>
52
53 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
54 safety.
55 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
56 * libitm/testsuite/libitm.c/priv-1.c: New.
57
a04d5fc9
TR
582015-01-15 Torvald Riegel <triegel@redhat.com>
59
60 testsuite/libitm.c++/libstdc++-safeexc.C: New.
61
e89137ce
TR
622016-01-13 Torvald Riegel <triegel@redhat.com>
63
64 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
65 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
66 (gtm_rwlock::write_unlock): Likewise.
67
4c868789
RH
682016-01-13 Richard Henderson <rth@redhat.com>
69
70 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
71 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
72 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
73 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
74 * configure.ac (ARCH_AARCH64): New conditional.
75 (ARCH_PPC, ARCH_S390): Likewise.
76 * Makefile.in, configure: Rebuild.
77
78 * libitm.h (_ITM_TYPE_M128): Always define.
79 * vect64.cc: Split ...
80 * vect128.cc: ... out of...
81 * config/x86/x86_sse.cc: ... here.
82 * config/arm/neon.cc: New file.
83
629e4729
TR
842016-01-13 Torvald Riegel <triegel@redhat.com>
85
86 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
87 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
88 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
89 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
90 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
91 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
92 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
93 (serialirr_dispatch::snapshot_most_recent): New.
94 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
95
0d1ed412
TR
962016-01-12 Torvald Riegel <triegel@redhat.com>
97
98 * libitm_i.h (gtm_mask_stack): Remove.
99 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
100 * stmlock.h: Remove file.
101 * config/alpha/cacheline.h: Likewise.
102 * config/generic/cacheline.h: Likewise.
103 * config/powerpc/cacheline.h: Likewise.
104 * config/sparc/cacheline.h: Likewise.
105 * config/x86/cacheline.h: Likewise.
106
21fa2a29
JJ
1072016-01-04 Jakub Jelinek <jakub@redhat.com>
108
818ab71a
JJ
109 Update copyright years.
110
21fa2a29
JJ
111 * libitm.texi: Bump @copying's copyright year.
112
e7f7330f
TR
1132015-11-26 Torvald Riegel <triegel@redhat.com>
114
115 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
116 (ml_wt_dispatch::pre_write): Adapt.
117 (ml_wt_dispatch::pre_load): Likewise.
118
4f8a3b87
TR
1192015-11-22 Torvald Riegel <triegel@redhat.com>
120
121 * libitm_i.h (gtm_alloc_action): Remove union.
122 * testsuite/libitm.c/alloc-1.c: New.
123
258c1d07
TR
1242015-11-19 Torvald Riegel <triegel@redhat.com>
125
126 * testsuite/libitm.c++/eh-5.C: New.
127 * libitm.h (_ITM_cxa_free_exception): New.
128 * libitm.map (_ITM_cxa_free_exception): Add it.
129 * libitm.texi: Update ABI docs.
130 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
131 (gtm_transaction_cp::cxa_uncaught_count): Add.
132 (gtm_thread::cxa_unthrown): Remove.
133 (gtm_thread::cxa_uncaught_count_ptr): Add.
134 (gtm_thread::cxa_uncaught_count): Add.
135 (gtm_thread::drop_references_allocations): Rename to...
136 (gtm_thread::discard_allocation): ... this and adapt.
137 (gtm_thread::init_cpp_exceptions): New.
138 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
139 (gtm_thread::begin_transaction): Likewise.
140 (gtm_transaction_cp::save): Likewise.
141 (gtm_thread::trycommit): Likewise.
142 * eh_cpp.cc: Add overview comments.
143 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
144 (free_any_exception, _ITM_cxa_free_exception): New.
145 (gtm_thread::init_cpp_exceptions): Define.
146 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
147 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
148 (gtm_thread::revert_cpp_exceptions): Likewise.
149
c518678b
TR
1502015-11-09 Torvald Riegel <triegel@redhat.com>
151
152 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
153 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
154 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
155 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
156 (gtm_thread::forget_allocations): New overload with size_t argument.
157 * alloc.c (gtm_thread::forget_allocation): Define new overload and
158 adapt existing one.
159 (gtm_thread::record_allocation): Adapt.
160 (gtm_thread::commit_allocations_1): Adapt.
161 (gtm_thread::commit_allocations_2): Adapt.
162 * testsuite/libitm.c++/newdelete.C: New.
163
1e44e857
DJ
1642015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
165 Joseph Myers <joseph@codesourcery.com>
166 Mark Shinwell <shinwell@codesourcery.com>
167 Andrew Stubbs <ams@codesourcery.com>
168 Rich Felker <dalias@libc.org>
169
170 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
171 GTM_begin_transaction for compatibility with FDPIC.
172
9e531d37
DM
1732015-10-09 David Malcolm <dmalcolm@redhat.com>
174
175 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
176 using load_gcc_lib.
177
c629c246
GFM
1782015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
179
180 PR libitm/61164
181 * local_atomic (__always_inline): Rename to...
182 (__libitm_always_inline): ... this.
183
cd5a9a74
CSLL
1842015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
185
186 PR target/52482
187 * config/powerpc/sjlj.S: Port to Xcode 2.5.
188
ea023bcf
UB
1892015-05-27 Uros Bizjak <ubizjak@gmail.com>
190
d778b5a0
UB
191 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
192 operands "op" and "val" to int.
193
1942015-05-27 Uros Bizjak <ubizjak@gmail.com>
195
196 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
197 "op" and "val" to int.
198
1992015-05-27 Uros Bizjak <ubizjak@gmail.com>
200
201 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
202 "op" and "val" to int.
203
2042015-05-27 Uros Bizjak <ubizjak@gmail.com>
205
206 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
207 Declare as static int.
208 (FUTEX_PRIVATE_FLAG): Remove L suffix.
209 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
210
2112015-05-27 Uros Bizjak <ubizjak@gmail.com>
212
213 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
214 sys_futex0 function.
ea023bcf 215
503902f9
MH
2162015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
217
218 * Makefile.in: Regenerated with automake-1.11.6.
219 * aclocal.m4: Likewise.
220 * configure: Likewise.
221 * testsuite/Makefile.in: Likewise.
222
96ce40cb
GR
2232015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
224
225 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
226 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
227
3a07b160
L
2282015-01-15 H.J. Lu <hongjiu.lu@intel.com>
229
230 PR libitm/64360
231 * libitm.c/stackundo.c (test2): Make it static.
232 (test1): Likewise.
233
5624e564
JJ
2342015-01-05 Jakub Jelinek <jakub@redhat.com>
235
236 Update copyright years.
237
b67cd4e3
JJ
2382015-01-05 Jakub Jelinek <jakub@redhat.com>
239
240 * libitm.texi: Bump @copying's copyright year.
241
69aef6dc
KT
2422014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
243
244 * testsuite/lib/libitm.exp: Load target-utils.exp.
245 Move load of target-supports.exp earlier.
246
68bc9270
UB
2472014-12-03 Uros Bizjak <ubizjak@gmail.com>
248
249 * configure.tgt (x86_64): Tune -m32 multilib to generic.
250
a699d672
L
2512014-11-21 H.J. Lu <hongjiu.lu@intel.com>
252
253 PR bootstrap/63784
254 * configure: Regenerated.
255
ebf6d33b
FXC
2562014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
257
258 PR target/63610
259 * configure: Regenerate.
260
99183741
MP
2612014-10-06 Marek Polacek <polacek@redhat.com>
262
263 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
264 * testsuite/libitm.c/memset-1.c: Likewise.
265
b6334cf4
RH
2662014-07-24 Richard Henderson <rth@redhat.com>
267
268 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
269 addressing mode in epilogue.
270
3c698bf0
RO
2712014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272
273 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
274 -mclear-hwcap instead.
275 * configure: Regenerate.
276 * clearcap.map: Remove.
277
dbed5a9b
JM
2782014-05-21 John Marino <gnugcc@marino.st>
279
280 * configure.tgt (*-*-dragonfly*): New target.
281
b17f08dd
RH
2822014-05-19 Richard Henderson <rth@redhat.com>
283
284 * config/aarch64/sjlj.S: New file.
285 * config/aarch64/target.h: New file.
286 * configure.tgt: Enable aarch64.
287
5e1f630a
RO
2882014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
289
290 * config/generic/asmcfi.h: Also check for
291 __GCC_HAVE_DWARF2_CFI_ASM.
292
84c2f4b0
RH
2932013-04-02 Richard Henderson <rth@redhat.com>
294
295 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
296 * config/arm/target.h, config/sh/target.h: Likewise.
297 * config/sparc/target.h, config/x86/target.h: Likewise.
298
7cc51d64
JJ
2992014-03-26 Jakub Jelinek <jakub@redhat.com>
300
301 * config/linux/futex_bits.h: Include errno.h.
302 (sys_futex0): If syscall returns -1, return -errno rather than
303 -1.
304
c288ec8f
JM
3052014-03-26 Joseph Myers <joseph@codesourcery.com>
306
307 * libitm.texi (Index): Rename to Library Index.
308
ed100f5d
L
3092014-01-13 H.J. Lu <hongjiu.lu@intel.com>
310
311 PR libitm/53113
312 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
313 (x86_avx.lo): Append -mavx to CXXFLAGS.
314 * Makefile.in: Regenerate.
315
f93608e6
RS
3162014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
317
318 Update copyright years
319
98db73df
TB
3202014-01-02 Tobias Burnus <burnus@net-b.de>
321
322 * libitm.texi: Bump @copying's copyright year.
323
b54214fe
UW
3242013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
325
326 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
327 (FUNC): Define ELFv2 variant.
328 (END): Likewise.
329 (HIDDEN): Likewise.
330 (CALL): Likewise.
331 (BASE): Likewise.
332 (LR_SAVE): Likewise.
333
3cbe17f7
AM
3342013-09-20 Alan Modra <amodra@gmail.com>
335
336 * configure: Regenerate.
337
6fb471d8
TR
3382013-08-30 Torvald Riegel <triegel@redhat.com>
339
340 * config/posix/rwlock.cc: Fix initialization order.
341
bec9ec3f
TR
3422013-08-30 Torvald Riegel <triegel@redhat.com>
343
344 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
345 (htm_fastpath): Assign an asm name.
346 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
347 HTM fast paths.
348 (_ITM_actions): Likewise.
349 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
350 x86_64.
351 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
352 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
353 field to the start of the structure.
354 * config/linux/rwlock.h (gtm_rwlock): Update comments.
355 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
356 handling for custom HTM fast paths.
357
1869217f
AK
3582013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
359 Revert:
360 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
361
362 * configure.tgt: Add -msoft-float to XCFLAGS.
363
d62d5152
AK
3642013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
365
366 * configure.tgt: Add -msoft-float to XCFLAGS.
367
aaaffb2a
AK
3682013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
369
370 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
371 (htm_transaction_active): Enable zEC12 instructions in the
372 assembler.
373 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
374
167f68ed
AK
3752013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
376
377 * acinclude.m4: Add htm asm check for s390.
378 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
379 * configure: Regenerate.
380 * config/s390/target.h: Remove __HTM__ check.
381 (htm_available): Call getauxval to get hwcaps and check whether
382 HTM is available or not.
383
0258b6e4
PB
3842013-07-15 Peter Bergner <bergner@vnet.ibm.com>
385
386 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
387 * configure.ac: Use it.
388 (AC_CHECK_HEADERS): Check for sys/auxv.h.
389 (AC_CHECK_FUNCS): Check for getauxval.
390 * config.h.in, configure: Rebuild.
391 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
392 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
393 (USE_HTM_FASTPATH): Define.
394 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
395 _HTM_RETRIES) New macros.
396 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
397 htm_begin_success, htm_commit, htm_transaction_active): New functions.
398
5a3fe9b6
AK
3992013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
400
401 * config/s390/target.h: Include htmintrin.h.
402 (_HTM_ITM_RETRIES): New macro definition.
403 (htm_available, htm_init, htm_begin, htm_begin_success)
404 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
405
6c84d576
IS
4062013-06-20 Iain Sandoe <iain@codesourcery.com>
407 Cesar Philippidis <cesar@codesourcery.com>
408
409 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
410 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
411 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
412 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
413
480c696b
TR
4142013-06-20 Torvald Riegel <triegel@redhat.com>
415
416 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
417 (_ITM_getTransactionId): Same.
418 * config/x86/target.h (htm_transaction_active): New.
419
b1db457b
TR
4202013-06-20 Torvald Riegel <triegel@redhat.com>
421
422 PR libitm/57643
423 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
424 the HTM fastpath.
425
51249377
GP
4262013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
427
428 PR bootstrap/56714
429 * local_atomic (__always_inline): Always define our version.
430 (__calculate_memory_order): Mark inline.
431 (atomic_thread_fence): Ditto.
432 (atomic_signal_fence): Ditto.
433 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
434 (atomic_bool::atomic_flag_clear_explicit): Ditto.
435 (atomic_bool::atomic_flag_test_and_set): Ditto.
436 (atomic_bool::atomic_flag_clear): Ditto.
437
f818478b
JJ
4382013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
439
440 * config/s390/sjlj.S: New file.
441 * config/s390/target.h: New file.
442 * configure.tgt: Set options for S/390.
443
ab4425be
AK
4442013-03-23 Andi Kleen <ak@linux.intel.com>
445
446 * local_atomic (__always_inline): Add.
447 (__calculate_memory_order, atomic_thread_fence,
448 atomic_signal_fence, test_and_set, clear, store, load,
449 exchange, compare_exchange_weak, compare_exchange_strong,
450 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
451 Add __always_inline to force inlining.
452
6c59ffd1
IS
4532013-02-11 Iain Sandoe <iain@codesourcery.com>
454 Jack Howarth <howarth@bromo.med.uc.edu>
455 Patrick Marlier <patrick.marlier@gmail.com>
456
457 PR libitm/55693
458 * alloc_cpp.cc: Enable function declarations on darwin.
459 * eh_cpp.cc: Likewise.
460
75f9527c
RS
4612013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
462
463 Update copyright years.
464
64fbcc74
TR
4652012-11-09 Torvald Riegel <triegel@redhat.com>
466
467 * beginend.cc (htm_fastpath): New.
468 (gtm_thread::begin_transaction, _ITM_commitTransaction,
469 _ITM_commitTransactionEH): Add HTM fastpath handling.
470 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
471 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
472 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
473 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
474 * configure.tgt: Add -mrtm to XCFLAGS.
475 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
476 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
477 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
478 * retry.cc (parse_default_method): Add HTM method parsing.
479 (gtm_thread::number_of_threads_changed): Use HTM by default if
480 available.
481
b9efc877
TS
4822012-11-04 Thomas Schwinge <thomas@codesourcery.com>
483
484 * configure: Regenerate.
485
07d3b5c8
RH
4862012-10-31 Richard Henderson <rth@redhat.com>
487
488 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
489 * configure.ac: Use it.
490 * config.h.in, configure: Rebuild.
491 * testsuite/Makefile.in: Rebuild.
492
eb00e959
TR
4932012-10-24 Torvald Riegel <triegel@redhat.com>
494
495 * libitm.texi: Clarify ABI requirements for data-logging functions.
496
b679c813
TR
4972012-10-24 Torvald Riegel <triegel@redhat.com>
498
499 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
500 it requires serial mode instead of assuming that for certain
501 dispatchs.
502 * dispatch.h (abi_dispatch::requires_serial): New.
503 (abi_dispatch::abi_dispatch): Adapt.
504 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
505 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
506 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
507 serial_dispatch::serial_dispatch,
508 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
509
0c609a21
UB
5102012-10-02 Uros Bizjak <ubizjak@gmail.com>
511
512 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
513 and ia32 declarations some more.
514 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
515
c0758df9
JJ
5162012-09-20 Jakub Jelinek <jakub@redhat.com>
517
518 PR other/43620
519 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
520 * configure: Regenerate.
521 * Makefile.in: Regenerate.
522
690c45b8
DE
5232012-09-14 David Edelsohn <dje.gcc@gmail.com>
524
525 * configure: Regenerated.
526
68a12ef3
UB
5272012-07-31 Uros Bizjak <ubizjak@gmail.com>
528
529 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
530
f2f9a097
PM
5312012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
532
533 * eh_cpp.cc: Fix __cxa_end_catch declaration.
534
e6d5f8c9
L
5352012-05-16 H.J. Lu <hongjiu.lu@intel.com>
536
537 * configure: Regenerated.
538
0100e3b3
L
5392012-04-04 H.J. Lu <hongjiu.lu@intel.com>
540
541 PR libitm/52854
542 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
543 for x86-64.
544
2f6935f4
TG
5452012-04-03 Tristan Gingold <gingold@adacore.com>
546
547 * configure: Regenerate.
548
b9c23a61
L
5492012-03-31 H.J. Lu <hongjiu.lu@intel.com>
550
551 PR bootstrap/52812
552 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
553
6a26a74d
BRF
5542012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
555
556 * testsuite/lib/libitm.exp: load fortran-modules.exp
557
b24513a1
RO
5582012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
559
560 * configure.tgt (*-*-irix6*): Remove.
561
0d23faac
TR
5622012-03-13 Torvald Riegel <triegel@redhat.com>
563
564 PR libitm/52526
565 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
566 wake-up.
567
5c30094f
RO
5682012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
569
570 * configure.tgt (*-*-osf*): Remove.
571 * configure: Regenerate.
572
d28b0b08
TR
5732012-03-05 Torvald Riegel <triegel@redhat.com>
574
575 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
576 memtransfer/memset if size isn't larger than zero.
577
034209bc
TR
5782012-03-02 Torvald Riegel <triegel@redhat.com>
579
580 * libitm.texi: Link to specification and add a usage example.
581
bc8da6ba
TR
5822012-02-24 Torvald Riegel <triegel@redhat.com>
583
584 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
585 default dispatch for more than 1 thread to ml_wt.
586
63b08143
TR
5872012-02-20 Torvald Riegel <triegel@redhat.com>
588
589 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
590
4c9bd6ac
TR
5912012-02-20 Torvald Riegel <triegel@redhat.com>
592
593 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
594
651ff415
TR
5952012-02-20 Torvald Riegel <triegel@redhat.com>
596
597 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
598 serial mode corner cases made obsolete by prior gtm_rwlock changes.
599 (gl_wt_dispatch.rollback): Same.
600
efee0113
TR
6012012-02-20 Torvald Riegel <triegel@redhat.com>
602
603 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
604
33a03827
TR
6052012-02-20 Torvald Riegel <triegel@redhat.com>
606
607 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
608 for RfW src. Optimize number of calls to gtm_thr.
609
a19db3f2
TR
6102012-02-20 Torvald Riegel <triegel@redhat.com>
611
612 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
613 acquisition to ...
614 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
615 (default_dispatch): Make atomic.
616 (GTM::gtm_thread::set_default_dispatch): Access atomically.
617 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
618 use decide_begin_dispatch() if default_dispatch might have changed.
619 (GTM::gtm_thread::number_of_threads_changed): Initialize
620 default_dispatch here.
621
e948a1fb
IS
6222012-02-15 Iain Sandoe <iains@gcc.gnu.org>
623 Patrick Marlier <patrick.marlier@gmail.com>
624
625 PR libitm/52220
626 * alloc_cpp.cc: No dummy definitions for darwin.
627 * eh_cpp.cc: Likewise.
628
72824d5e
RH
6292012-02-14 Richard Henderson <rth@redhat.com>
630
631 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
632
1f319dba
UB
6332012-02-14 Uros Bizjak <ubizjak@gmail.com>
634
635 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
636
31772c95
TR
6372012-02-14 Torvald Riegel <triegel@redhat.com>
638
639 * libitm_i.h (GTM::gtm_rwlog_entry): New.
640 (GTM::gtm_thread): Add read and write logs.
641 (GTM::dispatch_ml_wt): Declare.
642 * retry.cc (parse_default_method): Support ml_wt.
643 * method-ml.cc: New file.
644 * Makefile.am: Add method-ml.cc.
645 * Makefile.in: Regenerate.
646
5b9cf5d2
TR
6472012-02-14 Torvald Riegel <triegel@redhat.com>
648
649 * dispatch.h (GTM::abi_dispatch::supports): New.
650 (GTM::method_group::reinit): New.
651 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
652 (GTM::gtm_thread::number_of_threads_changed): Check that the method
653 supports the current situation.
654
7d33bcb7
TR
6552012-02-14 Torvald Riegel <triegel@redhat.com>
656
657 * util.cc (GTM::xcalloc): New.
658 * common.h (GTM::xcalloc): Declare.
659
62513f7b
EB
6602012-02-14 Eric Botcazou <ebotcazou@adacore.com>
661
662 * config/sparc/target.h (cpu_relax): Read from CC register.
663 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
664
6652012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
666
667 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
668
f3f5e3c3
EB
6692012-02-13 Eric Botcazou <ebotcazou@adacore.com>
670
62513f7b 671 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
672 * config/sparc/cacheline.h: New file.
673 * config/sparc/target.h: Likewise.
674 * config/sparc/sjlj.S: Likewise.
675 * config/linux/sparc/futex_bits.h: Likewise.
676
6772012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
678
679 * configure.ac (link_itm): Fix comment.
680 * configure: Regenerate.
681 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
682
681355e3
RO
6832012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684
fc985d2f 685 PR libitm/51822
62513f7b 686 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
687 Correct libgomp references.
688
999bcff5
TR
6892012-01-24 Torvald Riegel <triegel@redhat.com>
690
691 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
692 wake-up.
693
9848887a
UB
6942012-01-24 Uros Bizjak <ubizjak@gmail.com>
695
696 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
697 end of structure.
698 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
699 offset values. Do not copy return address. Decrement stack
700 by 56 bytes only.
701 (GTM_longjump) [__x86_64__]: Update offset values.
702
5752c591
UB
7032012-01-23 Uros Bizjak <ubizjak@gmail.com>
704
705 PR libitm/51830
706 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
707 the first function argument to %eax.
708
61e72ca4
RO
7092012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
710
711 * libitm.h (_ITM_getThreadnum): Remove.
712 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
713
9ce91011
RO
7142012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
715
716 * clearcap.map: New file.
717 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
718 * configure.ac: Call it.
719 Clear HWCAP_LDFLAGS if defaulting to -mavx.
720 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
721 * configure: Regenerate.
722 * Makefile.in: Regenerate.
723 * testsuite/Makefile.in: Regenerate.
724
3b4f05ec
RO
7252012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
726
727 PR libitm/51173
728 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
729 include, exclude options.
730
aab74ee9
TR
7312012-01-14 Torvald Riegel <triegel@redhat.com>
732
733 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
734 rolling back.
735 * containers.h (GTM::vector::set_size): New.
736
07b6642b
TR
7372012-01-14 Torvald Riegel <triegel@redhat.com>
738
739 PR libitm/51855
740 * config/generic/tls.h (GTM::mask_stack_top): New.
741 (GTM::mask_stack_bottom): Declare.
742 * config/generic/tls.c (GTM::mask_stack_bottom): New.
743 * local.cc (gtm_undolog::rollback): Filter out any updates that
744 overlap the libitm stack. Add current transaction as parameter.
745 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
746 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
747 * testsuite/libitm.c/stackundo.c: New test.
748
8377e5e5
RH
7492012-01-10 Richard Henderson <rth@redhat.com>
750
751 * libitm_i.h (_Unwind_DeleteException): Declare weak.
752 * eh_cpp.cc (_Unwind_DeleteException): Define for
753 !HAVE_ELF_STYLE_WEAKREF.
754
11f30bb0
TR
7552012-01-08 Torvald Riegel <triegel@redhat.com>
756
757 * local.cc (GTM_LB): Use GTM::gtm_undolog.
758 (GTM::gtm_thread::drop_references_undolog): Remove.
759 (GTM::gtm_thread::commit_undolog,
760 GTM::gtm_thread::rollback_undolog): Move to ...
761 * libitm_i.h (GTM::gtm_undolog): ...here. New.
762 (GTM::gtm_undolog_entry): Remove.
763 (GTM::gtm_thread): Adapt.
764 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
765 (GTM::gtm_thread::trycommit): Adapt.
766 * method-serial.cc (serial_dispatch::log): Adapt.
767 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
768 (gl_wt_dispatch::store): Fix likely/unlikely.
769 * containers.h (GTM::vector::resize): Add additional_capacity
770 parameter and handle it.
771 (GTM::vector::resize_noinline): New/adapt.
772 (GTM::vector::push): New.
773
a32e5e93
RH
7742012-01-06 Richard Henderson <rth@redhat.com>
775
776 * configure.tgt: Support powerpc-linux and powerpc-darwin.
777 * config/linux/powerpc/futex_bits.h: New file.
778 * config/powerpc/cacheline.h: New file.
779 * config/powerpc/sjlj.S: New file.
780 * config/powerpc/target.h: New file.
781 * config/generic/asmcfi.h (cfi_offset): New.
782 (cfi_restore, cfi_undefined): New.
783
1f53a8e6
AH
7842012-01-05 Aldy Hernandez <aldyh@redhat.com>
785
786 PR other/51171
787 * testsuite/libitm.c/reentrant.c: Remove xfail.
788 (thread): Pass x to pure().
be223aaf 789 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 790
c898f7b8
TR
7912011-12-24 Torvald Riegel <triegel@redhat.com>
792
793 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
794 privatization safety if already in serial mode.
795
610e3901
TR
7962011-12-24 Torvald Riegel <triegel@redhat.com>
797
798 * beginend.cc (GTM::gtm_thread::restart): Add and handle
799 finish_serial_upgrade parameter.
800 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
801 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
802 Don't unset reader flag.
803 (GTM::gtm_rwlock::write_upgrade_finish): New.
804 * config/posix/rwlock.cc: Same.
805 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
806 Declare.
807 * config/posix/rwlock.h: Same.
808 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
809 flag after commit or after rollback when restarting.
810
799142bf
TR
8112011-12-24 Torvald Riegel <triegel@redhat.com>
812
813 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
814 (GTM::gtm_thread::try_commit): Changed memory order.
815 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
816 as parameter.
817 * config/linux/x86/futex_bits.h (sys_futex0): Same.
818 * config/linux/sh/futex_bits.h (sys_futex0): Same.
819 * config/linux/futex_bits.h (sys_futex0): Same.
820 * config/linux/futex.cc (futex_wait, futex_wake): Same.
821 * config/linux/futex.h (futex_wait, futex_wake): Same.
822 * config/linux/rwlock.h (gtm_rwlock::writers,
823 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
824 ints.
825 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
826 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
827 gtm_rwlock::write_unlock): Fix memory orders and fences.
828 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
829 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
830 gtm_rwlock::write_unlock): Same.
831 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
832 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
833 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
834 Add comments.
835 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
836 gl_wt_dispatch::load, gl_wt_dispatch::store,
837 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
838 orders and fences. Add comments.
839
b0f96e35
JJ
8402011-12-21 Jakub Jelinek <jakub@redhat.com>
841
842 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
843 * Makefile.in: Regenerated.
844
cc163247
KK
8452011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
846
847 * configure.tgt: Add sh* case.
848 * config/sh/target.h: New file.
849 * config/sh/sjlj.S: New file.
850 * config/linux/sh/futex_bits.h: New file.
851
aebac0ca
RH
8522011-12-14 Richard Henderson <rth@redhat.com>
853
854 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
855 * config/arm/sjlj.S, config/arm/target.h: New files.
856 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
857 (cfi_rel_offset): New.
858 * config/linux/futex_bits.h: New file.
859 * config/linux/futex.cc: Include futex_bits.h here...
860 * config/linux/futex.h: ... not here.
861 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
862 * configure.ac (ARCH_AM): New conditional.
863 * Makefile.in, configure: Rebuild.
864 * configure.tgt: Handle ARM.
865
36cfbee1
RH
8662011-12-13 Richard Henderson <rth@redhat.com>
867
5d9d05d3
RH
868 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
869 signed/unsigned comparison werror.
870
36cfbee1
RH
871 * local_atomic: New file.
872 * libitm_i.h: Include it.
873 (gtm_thread::shared_state): Use atomic template.
874 * beginend.cc (GTM::gtm_clock): Use atomic template.
875 (global_tid): Use atomic template if 64-bit atomics available.
876 (gtm_thread::gtm_thread): Update shared_state access.
877 (gtm_thread::trycommit): Likewise.
878 (choose_code_path): Update global_tid access.
879 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
880 * stmlock.h (GTM::gtm_clock): Use atomic template.
881 (gtm_get_clock, gtm_inc_clock): Update accesses.
882 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
883 redundant __sync_synchronize after atomic shared_state access.
884 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
885 (gtm_rwlock::write_lock_generic): Likewise.
886 (gtm_rwlock::read_unlock): Likewise.
887 * config/alpha/target.h (atomic_read_barrier): Remove.
888 (atomic_write_barrier): Remove.
889 * config/x86/target.h (atomic_read_barrier): Remove.
890 (atomic_write_barrier): Remove.
891
062f93f2
RH
8922011-11-30 Richard Henderson <rth@redhat.com>
893
894 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
895 * beginend.c (_ITM_abortTransaction): Update to match.
896 (GTM::gtm_thread::restart): Likewise.
897 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
898 * config/x86/sjlj.S (GTM_longjmp): Likewise.
899
bd8aaa86
IS
9002011-11-23 Iain Sandoe <iains@gcc.gnu.org>
901
902 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
903 * Makefile.in: Regenerate.
904
8cf36bb3
IS
9052011-11-22 Iain Sandoe <iains@gcc.gnu.org>
906
907 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
908 * alloc_cpp.cc: Generate dummy functions if we don't
909 HAVE_ELF_STYLE_WEAKREF.
910 * eh_cpp.cc: Likewise.
911 * configure: Regenerate.
912 * aclocal.m4: Likewise.
913 * config.h.in: Likewise.
914 * Makefile.in: Likewise.
915 * testsuite/Makefile.in: Likewise.
916
0b41ebef
IS
9172011-11-22 Iain Sandoe <iains@gcc.gnu.org>
918
919 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
920 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 921 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
922 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
923 in portability to non-elf targets.
8cf36bb3 924 (GTM_longjmp): Likewise.
0b41ebef
IS
925 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
926 where required.
927
9c9d352a
IS
9282011-11-22 Iain Sandoe <iains@gcc.gnu.org>
929
930 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
931 * testsuite/libitm.c/memset-1.c: Likewise.
932
c6084f68
AT
9332011-11-21 Andreas Tobler <andreast@fgznet.ch>
934
935 * configure: Regenerate.
936
adcd36bc
RO
9372011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
938
939 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
940 (LIBITM_ENABLE_SYMVERS): Handle sun style.
941 * Makefile.am: Handle sun style versioning.
942 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
943 * configure: Regenerate.
944 * Makefile.in: Regenerate.
945
59659b59
RO
9462011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
947
948 * config/generic/asmcfi.h: Fix comment.
949 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
950 sequence without .hidden support, error for non-ELF targets.
951 (GTM_longjmp) [__ELF__]: Only use .hidden if
952 HAVE_ATTRIBUTE_VISIBILITY.
953
d846e425
RO
9542011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
955
956 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
957 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
958 Dummy functions.
959 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
960 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
961
80713347
UB
9622011-11-16 Uros Bizjak <ubizjak@gmail.com>
963
964 PR bootstrap/51098
965 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
966 * configure: Regenerate.
967
2841f85e
L
9682011-11-14 H.J. Lu <hongjiu.lu@intel.com>
969
970 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
971
8851b429
RO
9722011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
973
974 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
975 .hidden.
976 (.note.GNU-stack): Only use if __linux__.
977 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
978 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
979 * testsuite/libitm.c/reentrant.c: Likewise.
980 * testsuite/libitm.c/simple-2.c: Likewise.
981 * testsuite/libitm.c/txrelease.c: Likewise.
982 * testsuite/libitm.c++/static_ctor.C: Likewise.
983
d4b17902
RH
9842011-11-10 Richard Henderson <rth@redhat.com>
985
986 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
987 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
988 * configure.ac (ARCH_X86_AVX): New conditional.
989 * Makefile.in, configure: Rebuild.
990
430616e7
RH
9912011-11-09 Richard Henderson <rth@redhat.com>
992
993 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
994 * configure.ac: Use it.
995 * config.h.in, configure: Rebuild.
996 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
997
79b1edb6
RH
9982011-11-09 Richard Henderson <rth@redhat.com>
999
1000 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1001 * config/alpha/unaligned.h: Remove file.
1002 * config/generic/unaligned.h: Remove file.
1003 * config/x86/unaligned.h: Remove file.
1004 * config/generic/cachepage.h: Remove file.
1005 * config/posix/cachepage.cc: Remove file.
1006 * config/generic/cacheline.cc: Remove file.
1007 * config/x86/cacheline.cc: Remove file.
1008 * config/generic/cacheline.h (gtm_cacheline): Remove the
1009 store_mask, copy_mask, copy_mask_wb methods.
1010 * config/x86/cacheline.h: Likewise.
1011 * config/alpha/cacheline.h: Fall back to generic after setting size.
1012 * config/generic/tls.cc (gtm_mask_stack): Remove.
1013 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1014 (GTM_vpalignr_table): Remove.
1015 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1016 (GTM_pshift_table): Remove.
1017 * config/libitm_i.h: Don't include cachepage.h.
1018 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1019 * Makefile.in, testsuite/Makefile.in: Rebuild.
1020
4bdd090f
RH
10212011-11-09 Richard Henderson <rth@redhat.com>
1022
8ee9fac2
RH
1023 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1024 to emit branch prediction hint.
1025
9bdc6343
RH
1026 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1027 Protect .note.GNU-stack with __linux__.
1028
4bdd090f
RH
1029 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1030 * configure, aclocal.m4, config.h.in: Rebuild.
1031 * config/generic/asmcfi.h: New file.
1032 * config/x86/sjlj.S: Use it.
1033
4408b086
RH
10342011-11-08 Richard Henderson <rth@redhat.com>
1035
1036 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1037
01f3428c
RH
10382011-11-08 Richard Henderson <rth@redhat.com>
1039
3d3b05ff
RH
1040 * configure.tgt: Test correct directory for supported cpus.
1041
01f3428c
RH
1042 * configure.ac: Exit if unsupported.
1043 * configure: Rebuild.
1044 * configure.tgt: Delete boilerplate from libgomp for unsupported
1045 targets. Set UNSUPPORTED for unsupported targets.
1046
07f03cd3
RO
10472011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1048
1049 * configure.tgt: Handle i386 like i[456]86.
1050 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1051 take address.
1052 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1053 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1054
0a35513e
AH
10552011-11-05 Aldy Hernandez <aldyh@redhat.com>
1056
1057 * method-wbetl.cc: Update copyright notice.
1058 * aatree.cc: Same.
1059 * util.cc: Same.
1060 * libitm.h: Same.
1061 * memset.cc: Same.
1062 * eh_cpp.cc: Same.
1063 * barrier.tpl: Same.
1064 * useraction.cc: Same.
1065 * stmlock.h: Same.
1066 * memcpy.cc: Same.
1067 * common.h: Same.
1068 * config/generic/tls.cc: Same.
1069 * config/generic/cacheline.h: Same.
1070 * config/generic/cachepage.h: Same.
1071 * config/generic/cacheline.cc: Same.
1072 * config/generic/unaligned.h: Same.
1073 * config/x86/cacheline.h: Same.
1074 * config/x86/cacheline.cc: Same.
1075 * config/x86/unaligned.h: Same.
1076 * config/alpha/cacheline.h: Same.
1077 * config/alpha/unaligned.h: Same.
1078 * config/alpha/sjlj.S: Same.
1079 * config/posix/cachepage.cc: Same.
1080 * config/linux/futex.h: Same.
1081 * config/linux/alpha/futex_bits.h: Same.
1082
10832011-11-04 Torvald Riegel <triegel@redhat.com>
1084
1085 * libitm.texi: No cover text and invariant sections.
1086
10872011-11-03 Richard Henderson <rth@redhat.com>
1088
1089 * local_type_traits: New file.
1090 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1091
10922011-11-03 Richard Henderson <rth@redhat.com>
1093
1094 * configure.ac: Don't test for gfortran.
1095 * configure: Rebuild.
1096
1097 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1098 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1099
11002011-11-03 Aldy Hernandez <aldyh@redhat.com>
1101
1102 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1103 * testsuite/libitm.c/memset-1.c: Same.
1104 * testsuite/libitm.c/c.exp: Same.
1105 * testsuite/lib/libitm-dg.exp: Same.
1106 * testsuite/lib/libitm.exp: Same.
1107 * testsuite/libitm.c++/c++.exp: Same.
1108
11092011-11-03 Aldy Hernandez <aldyh@redhat.com>
1110
1111 * testsuite/config/default.exp: Update copyright date.
1112 * configure.ac: Add copyright info.
1113 * configure.tgt: Same.
1114
11152011-11-03 Aldy Hernandez <aldyh@redhat.com>
1116
1117 * testsuite/libitm.c/reentrant.c: XFAIL.
1118 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1119
11202011-10-29 Torvald Riegel <triegel@redhat.com>
1121
1122 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1123 handle aborts.
1124 (_ITM_abortTransaction): Handle aborts of outer transactions.
1125 * libitm_i.h: Same.
1126 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1127 * libitm.texi: Document aborts of outer transactions.
1128 * testsuite/libitm.c/cancel.c: New file.
1129
11302011-10-19 Torvald Riegel <triegel@redhat.com>
1131
1132 * testsuite/*: Change __transaction to __transaction_atomic or
1133 __transaction_relaxed.
1134
11352011-10-19 Torvald Riegel <triegel@redhat.com>
1136
1137 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1138 (gtm_thr): Same.
1139
11402011-10-19 Torvald Riegel <triegel@redhat.com>
1141
1142 * libitm_i.h: Add gl_wt dispatch.
1143 * retry.cc (parse_default_method): Same.
1144 * method-gl.cc: New file.
1145 * Makefile.am: Use method-gl.cc.
1146 * Makefile.in: Rebuild.
1147
11482011-10-19 Torvald Riegel <triegel@redhat.com>
1149
1150 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1151 safety if requested by a TM method.
1152 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1153 privatization safety.
1154 * method-serial.cc: Same.
1155
11562011-10-19 Torvald Riegel <triegel@redhat.com>
1157
1158 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1159 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1160 undolog-related member functions from *_local to *_undolog.
1161 * local.cc (gtm_thread::commit_undolog): Same.
1162 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1163 (GTM::gtm_thread::rollback): Roll back undolog before
1164 dispatch-specific rollback.
1165
11662011-10-19 Torvald Riegel <triegel@redhat.com>
1167
1168 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1169 re-initialization of the current method group.
1170 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1171
11722011-10-19 Torvald Riegel <triegel@redhat.com>
1173
1174 * alloc.cc (commit_allocations_2): Do not free transaction-local
1175 memory when committing a nested transaction.
1176
11772011-10-19 Torvald Riegel <triegel@redhat.com>
1178
1179 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1180 serial-irrevocable dispatch, not serial.
1181
11822011-10-19 Torvald Riegel <triegel@redhat.com>
1183
1184 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1185 declarations.
1186 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1187 * method-serial.cc: Implement begin_or_restart().
1188 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1189 dispatch-specific begin_or_restart().
1190 (GTM::gtm_thread::restart): Same.
1191
11922011-08-23 Torvald Riegel <triegel@redhat.com>
1193
1194 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1195 restarting without switching to serial mode.
1196 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1197 transaction state. Choose closed-nesting alternative if available.
1198 (GTM::gtm_thread::set_default_dispatch): New.
1199 (parse_default_method): New.
1200 (GTM::gtm_thread::number_of_threads_changed): New.
1201 * method-serial.cc (GTM::serial_mg): New method group class.
1202 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1203 fini.
1204 (GTM::serial_dispatch): Same.
1205 (GTM::serialirr_onwrite_dispatch): Same.
1206 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1207 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1208 registered threads.
1209 (GTM::gtm_thread::gtm_thread): Same.
1210 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1211 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1212 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1213 choose dispatch but set state according to dispatch here.
1214 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1215 (GTM::method_group): New class.
1216 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1217 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1218 * libitm.texi: Document TM methods, method groups, method life cycle.
1219 Rename method sets to method groups.
1220
12212011-08-23 Torvald Riegel <triegel@redhat.com>
1222
1223 * config/x86/tls.h: Moved to ...
1224 * config/linux/x86/tls.h: ... here.
1225
12262011-08-23 Torvald Riegel <triegel@redhat.com>
1227
1228 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1229 Add X32 support.
1230 * config/x86/sjlj.S: Same.
1231
12322011-08-19 Torvald Riegel <triegel@redhat.com>
1233
1234 * config/linux/rwlock.h: New file.
1235 * config/linux/rwlock.c: New file.
1236 * configure.ac: Reenable futex support (undo SVN rev 157758).
1237 * Makefile.am: Same.
1238 * configure.tgt: Same.
1239 * config/linux/alpha/futex_bits.h: Same.
1240 * config/linux/futex.h: Same. Return number of woken processes.
1241 * config/linux/futex.cc: Same.
1242 (futex_wait): Remove spinning.
1243 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1244 Use __x86_64__ instead of __LP64__.
1245 * aclocal.m4: Include generic futex checks.
1246 * configure: Rebuild.
1247 * Makefile.in: Rebuild.
1248 * testsuite/Makefile.in: Rebuild.
1249 * beginend.cc: Include pthread.h.
1250 * config/posix/cachepage.cc: Same.
1251
12522011-08-12 Torvald Riegel <triegel@redhat.com>
1253
1254 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1255 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1256 (set_gtm_thr): New.
1257 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1258 (set_gtm_thr): New.
1259 (GTM::gtm_thread::thread_num): Removed.
1260 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1261 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1262 tx-to-thread renaming.
1263 * beginend.cc: Adapted to tx-to-thread renaming.
1264 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1265 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1266 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1267 gtm_transaction to gtm_thread.
1268 (_ITM_getThreadnum): Removed. Not supported anymore.
1269 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1270 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1271 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1272 gtm_tx-to-gtm_thr renaming if necessary.
1273 * eh_cpp.cc: Same.
1274 * local.cc: Same.
1275 * retry.cc: Same.
1276 * clone.cc: Same.
1277 * alloc.cc: Same.
1278 * alloc_c.cc: Same.
1279 * alloc_cpp.cc: Same.
1280 * method-serial.cc: Same.
1281 * config/generic/tls.cc: Same.
1282 * config/posix/rwlock.h (gtm_rwlock): Same.
1283 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1284
12852011-08-12 Torvald Riegel <triegel@redhat.com>
1286
1287 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1288 implementation.
1289 (gtm_rwlock::read_unlock): Same.
1290 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1291 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1292 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1293 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1294 w_upgrade. Replaced by per-transaction flags (in shared_state).
1295 Added c_confirmed_writers.
1296 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1297 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1298 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1299 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1300 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1301 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1302 * libitm.texi: Document locking conventions and implementations in
1303 libitm.
1304
13052011-08-12 Torvald Riegel <triegel@redhat.com>
1306
1307 * libitm_i.h (next_tx): Add list of all threads' transaction.
1308 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1309 transaction with list of transactions and ...
1310 (thread_exit_handler): ... deregister here.
1311 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1312 * config/x86/target.h: Same.
1313
13142011-08-12 Torvald Riegel <triegel@redhat.com>
1315
1316 * testsuite/libitm.c++/static_ctor.C: New file.
1317
13182011-08-12 Torvald Riegel <triegel@redhat.com>
1319
1320 * testsuite/libitm.c/reentrant.c: New file.
1321
13222011-08-12 Torvald Riegel <triegel@redhat.com>
1323
1324 * config/generic/tls.h: Remove the free list for transactions and ...
1325 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1326 (GTM::gtm_transaction::operator delete): ... and release here.
1327 (thread_exit_handler): New. Delete tx when thread terminates.
1328 (thread_exit_init): New.
1329 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1330 * testsuite/libitm.c/txrelease.c: New file.
1331
13322011-08-12 Torvald Riegel <triegel@redhat.com>
1333
1334 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1335 * testsuite/libitm.c/notx.c: New file.
1336
13372011-08-12 Torvald Riegel <triegel@redhat.com>
1338
1339 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1340 * libitm_i.h (local_tid): ... to here.
1341 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1342 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1343
13442011-08-12 Torvald Riegel <triegel@redhat.com>
1345
1346 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1347 serialirr_onwrite_dispatch as new default for now.
1348 * method-serial.cc (serialirr_onwrite_dispatch): New.
1349 (GTM::dispatch_serialirr_onwrite): New.
1350 * libitm_i.h: Same.
1351
13522011-08-12 Torvald Riegel <triegel@redhat.com>
1353
1354 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1355 * query.cc (_ITM_getTransactionId): There is no active transaction if
1356 the current nesting level is zero.
1357
13582011-07-28 Torvald Riegel <triegel@redhat.com>
1359
1360 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1361 rollback.
1362
13632011-07-28 Torvald Riegel <triegel@redhat.com>
1364
1365 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1366 transaction properties from the caller instead of from the
1367 transaction object.
1368 * libitm_i.h: Same.
1369 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1370
13712011-07-28 Torvald Riegel <triegel@redhat.com>
1372
1373 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1374 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1375 * dispatch.h: Same.
1376 * method-serial.cc: Same.
1377 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1378 flat nesting as default, and closed nesting on demand.
1379 (GTM::gtm_transaction::rollback): Same.
1380 (_ITM_abortTransaction): Same.
1381 (GTM::gtm_transaction::restart): Same.
1382 (GTM::gtm_transaction::trycommit): Same.
1383 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1384 (choose_code_path): New.
1385 (GTM::gtm_transaction_cp::save): New.
1386 (GTM::gtm_transaction_cp::commit): New.
1387 * query.cc (_ITM_inTransaction): Support flat nesting.
1388 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1389 (GTM::gtm_transaction): Support flat and closed nesting.
1390 * alloc.cc (commit_allocations_2): New.
1391 (commit_cb_data): New helper struct.
1392 (GTM::gtm_transaction::commit_allocations): Handle nested
1393 commits/rollbacks.
1394 * libitm.texi: Update user action section, add description of nesting.
1395
13962011-07-28 Torvald Riegel <triegel@redhat.com>
1397
1398 * libitm_i.h: Add closed nesting as restart reason.
1399 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1400
14012011-07-28 Torvald Riegel <triegel@redhat.com>
1402
1403 * useraction.cc: Use vector instead of list to store actions.
1404 Also support partial rollbacks for closed nesting.
1405 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1406 * beginend.cc: Same.
1407
14082011-07-28 Torvald Riegel <triegel@redhat.com>
1409
1410 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1411 closed_nesting flags, as well as a closed nesting alternative.
1412 * method-serial.cc: Same.
1413 (serial_dispatch): Renamed to serialirr_dispatch.
1414 (GTM::dispatch_serialirr): Same.
1415 (serial_dispatch_ul): Renamed to serial_dispatch.
1416 (GTM::dispatch_serial): Same.
1417
14182011-07-28 Torvald Riegel <triegel@redhat.com>
1419
1420 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1421
14222011-07-28 Torvald Riegel <triegel@redhat.com>
1423
1424 * aatree.h (aa_tree::remove): New.
1425 (aa_tree::operator new): Add placement new.
1426
14272011-07-02 Torvald Riegel <triegel@redhat.com>
1428
1429 * containers.h: New file.
1430 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1431 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1432 * common.h: ... to here.
1433 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1434 * local.cc: Same.
1435
14362011-06-30 Torvald Riegel <triegel@redhat.com>
1437
1438 * libitm_i.h (STATE_ABORTING): Remove.
1439 * beginend.cc (_ITM_abortTransaction): Same.
1440 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1441 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1442 (_ITM_rollbackTransaction): Remove.
1443 * beginend.cc: Same.
1444 * libitm.map: Same.
1445 * libitm.texi: Document these ABI changes.
1446
14472011-06-30 Torvald Riegel <triegel@redhat.com>
1448
1449 * libitm.texi: New file.
1450 * Makefile.am: Add libitm.texi.
1451 * Makefile.in: Rebuild.
1452
14532011-06-30 Torvald Riegel <triegel@redhat.com>
1454
1455 * libitm_i.h: Move parts to common.h and dispatch.h.
1456 * common.h: New file.
1457 * dispatch.h: New file, new dispatch class.
1458 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1459 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1460 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1461 decision to retry.cc.
1462 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1463 only.
1464 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1465 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1466 logging.
1467 * barrier.cc: Use new barriers definitions.
1468 (abi_dispatch::memmove_overlap_check): New.
1469 * config/x86/x86_sse.cc: Same.
1470 * config/x86/x86_avx.cc: Same.
1471 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1472 memcpy.cc.
1473 * Makefile.in: Rebuild.
1474 * method-readonly.cc: Remove.
1475 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1476 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1477
14782011-06-30 Torvald Riegel <triegel@redhat.com>
1479
1480 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1481 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1482 * testsuite/libitm.c/dropref-2.c: Same.
1483 * testsuite/libitm.c/dropref.c: Same.
1484
14852011-06-30 Torvald Riegel <triegel@redhat.com>
1486
1487 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1488 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1489 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1490 * alloc_c.cc: Same.
1491 * barrier.tpl: Same.
1492 * beginend.c: Same.
1493 * config/generic/tls.h: Same.
1494 * config/x86/tls.h: Same.
1495 * libitm_i.h: Same.
1496 * memcpy.cc: Same.
1497 * memset.cc: Same.
1498 * method-readonly.cc: Same.
1499 * method-serial.cc: Same.
1500 * method-wbetl.cc: Same.
1501 * retry.cc: Same.
1502
15032011-03-03 Richard Henderson <rth@redhat.com>
1504
1505 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1506 From Patrik Marlier <patrick.marlier@unine.ch>.
1507
15082011-02-03 Richard Henderson <rth@redhat.com>
1509
1510 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1511 * configure.ac: Use it.
1512 * configure, config.h.in: Rebuild.
1513 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1514 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1515 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1516 * libitm.map: Use wildcards to match size_t mangling.
1517
15182010-12-14 Richard Henderson <rth@redhat.com>
1519
1520 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1521 blocks of TIDs per thread.
1522 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1523 (setup_gtm_thr): Return the thread structure.
1524 * config/x86/tls.h (setup_gtm_thr): Likewise.
1525
15262010-12-14 Richard Henderson <rth@redhat.com>
1527
1528 * clone.cc (table_lock): Remove.
1529 (find_clone): Don't take it.
1530 (ExcludeTransaction): New helper class.
1531 (_ITM_registerTMCloneTable): Use it.
1532 (_ITM_deregisterTMCloneTable): Likewise.
1533
15342010-12-14 Richard Henderson <rth@redhat.com>
1535
1536 * config/x86/tls.h: New file.
1537
15382010-07-15 Richard Henderson <rth@redhat.com>
1539
1540 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1541 * Makefile.in: Rebuild.
1542
15432010-07-13 Aldy Hernandez <aldyh@redhat.com>
1544
1545 * method-wbetl.cc (trydropreference): Fix source line.
1546
15472010-07-13 Aldy Hernandez <aldyh@redhat.com>
1548
1549 * libitm.h: Add comment.
1550 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1551
15522010-07-07 Aldy Hernandez <aldyh@redhat.com>
1553
1554 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1555 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1556 available, use pthread mutexes.
1557 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1558 * config.h.in: Regenerate.
1559 * configure: Regenerate.
1560
15612010-07-06 Aldy Hernandez <aldyh@redhat.com>
1562
1563 * libitm.h (ITM_PURE): Define.
1564 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1565
15662010-06-28 Aldy Hernandez <aldyh@redhat.com>
1567
1568 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1569 (validate): Add comment.
1570 (trydropreference): New.
1571 * method-readonly.cc (class readonly_dispatch): Add
1572 trydropreference.
1573 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1574 Call trydropreference().
1575 * libitm.h (_ITM_dropReferences): Remove const attribute.
1576 * method-serial.cc (class serial_dispatch): Add trydropreference.
1577 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1578
15792010-06-28 Aldy Hernandez <aldyh@redhat.com>
1580
1581 * memcpy.cc (do_memcpy): Comment.
1582
15832010-06-25 Aldy Hernandez <aldyh@redhat.com>
1584
1585 * barrier.tpl: Add comments throughout.
1586
15872010-06-24 Aldy Hernandez <aldyh@redhat.com>
1588
1589 * method-wbetl.cc (struct w_entry): Add comments.
1590 (trycommit): Same.
1591 (rollback): Same.
1592
15932010-06-24 Aldy Hernandez <aldyh@redhat.com>
1594
1595 * alloc_c.cc (_ITM_dropReferences): New.
1596 * libitm.map (_ITM_dropReferences): Add.
1597 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1598 * libitm_i.h (struct gtm_transaction): Declare
1599 drop_references_allocations and drop_references_local.
1600 * local.cc (rollback_local): Ignore memory when applicable.
1601 (drop_references_local): New.
1602
16032010-06-23 Richard Henderson <rth@redhat.com>
1604
1605 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1606 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1607 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1608 * config/alpha/target.h: Likewise.
1609 * config/generic/tls.cc (gtm_mask_stack): Use it.
1610
16112010-06-23 Richard Henderson <rth@redhat.com>
1612
1613 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1614 a mutex instead of trying a lock-free compare-and-swap on the list.
1615 (gtm_cacheline_page::operator delete): Likewise.
1616
16172010-06-16 Richard Henderson <rth@redhat.com>
1618
1619 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1620 that overlap the libitm stack.
1621 * barrier.tpl: Mark incoming stack.
1622 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1623 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1624 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1625 * memcpy.cc, memset.cc: Likewise.
1626 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1627 * config/generic/tls.h (gtm_thread): Add stack_top member.
1628 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1629 * libitm_i.h (gtm_mask_stack): Declare.
1630 * config/generic/tls.cc: New file.
1631 * Makefile.am (libitm_la_SOURCES): Add it.
1632 (AM_CXXFLAGS): Turn off exceptions.
1633 * Makefile.in: Rebuild.
1634
16352010-06-16 Richard Henderson <rth@redhat.com>
1636
1637 * alloc.cc (struct gtm_alloc_action): Move definition ...
1638 * libitm_i.h: ... here.
1639 (class gtm_transaction): Declare new and delete.
1640 * beginend.cc (alloc_tx): Reformulate as operator new.
1641 (free_tx): Reformulate as operator delete.
1642 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1643
16442010-06-11 Richard Henderson <rth@redhat.com>
1645
1646 * clone.cc (clone_entry_compare): Fix typo.
1647 From Patrik Marlier <patrick.marlier@unine.ch>.
1648
16492010-05-13 Richard Henderson <rth@redhat.com>
1650
1651 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1652 in extern "C".
1653
16542010-05-07 Aldy Hernandez <aldyh@redhat.com>
1655
1656 * libitm_i.h (struct gtm_transaction): Remove
1657 get_allocation_size.
1658 (record_allocation): Remove size parameter.
1659 * libitm.map (_ITM_realloc): Remove.
1660 * alloc_c.cc (_ITM_realloc): Remove.
1661 (_ITM_malloc): Remove size argument to record_allocation.
1662 (_ITM_calloc): Same.
1663 * alloc_cpp.cc (_ZGTtnwm): Same.
1664 (_ZGTtnwmRKSt9nothrow_t): Same.
1665 (_ZGTtnam): Same.
1666 (_ZGTtnamRKSt9nothrow_t): Same.
1667 * alloc.cc (struct gtm_alloc_action): Remove size.
1668 (get_allocation_size): Remove.
1669 (commit_allocations): Add comment.
1670 (record_allocation): Remove size parameter.
1671 (forget_allocation): Remove set of size.
1672
16732010-04-19 Aldy Hernandez <aldyh@redhat.com>
1674
1675 * Makefile.am (abi_version): New.
1676 (AM_CXXFLAGS): Pass abi_version.
1677 * Makefile.in: Regenerate.
1678 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1679
16802010-04-06 Aldy Hernandez <aldyh@redhat.com>
1681
1682 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1683 _ITM_getTMCloneOrIrrevokable.
1684 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1685 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1686
16872010-03-26 Aldy Hernandez <aldyh@redhat.com>
1688
1689 * configure.ac: Remove Linux futex support.
1690 * configure.tgt (config_path): Same.
1691 * Makefile.am: Same.
1692 * config/linux: Remove entire directory.
1693 * configure: Rebuild.
1694 * Makefile.in: Rebuild.
1695 * testsuite/Makefile.in: Rebuild.
1696
16972010-03-09 Aldy Hernandez <aldyh@redhat.com>
1698
1699 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1700 switching to serial mode.
1701 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1702
17032010-03-03 Aldy Hernandez <aldyh@redhat.com>
1704
1705 * configure.tgt: Add emacs -*- tags.
1706 * barrier.tpl: Same.
1707
17082010-02-23 Aldy Hernandez <aldyh@redhat.com>
1709
1710 * Makefile.am: Rename serial.cc to method-serial.cc.
1711 * Makefile.in: Regenerate with automake 1.11.1.
1712 * testsuite/Makefile.in: Same.
1713 * aclocal.m4: Regenerate with aclocal 1.11.1.
1714 * method-serial.cc: Rename from serial.cc.
1715 * libitm_i.h (struct gtm_transaction): Update comment on
1716 serialirr_mode.
1717
17182010-02-22 Aldy Hernandez <aldyh@redhat.com>
1719
1720 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1721 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1722
17232010-02-11 Aldy Hernandez <aldyh@redhat.com>
1724
1725 * configure: Rebuild.
1726
17272009-11-12 Richard Henderson <rth@redhat.com>
1728
1729 * Rewrite everything in C++.
1730
17312009-11-03 Richard Henderson <rth@redhat.com>
1732
1733 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1734 * Makefile.am (libitm_la_SOURCES): Add them.
1735 * configure.ac (ARCH_X86): New conditional.
1736 * Makefile.in, configure: Rebuild.
1737 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1738 Move futex setup into "other system configury" case.
1739 * local.c (rollback_local): Merge into ...
1740 (GTM_rollback_local): ... here.
1741 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1742 (_ITM_LB): Define as an alias to GTM_LB.
1743
17442009-11-03 Richard Henderson <rth@redhat.com>
1745
1746 * method-readonly.c: New file.
1747 * Makefile.am (libitm_la_SOURCES): Add it.
1748 * Makefile.in: Rebuild.
1749 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1750 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1751 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1752 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1753 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1754 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1755 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1756 gtm_get_clock, gtm_inc_clock): New.
1757 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1758 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1759 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1760 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1761 replace uses with new libitm_i.h symbols.
1762 (dispatch_wbetl): Rename from wbetl_dispatch.
1763 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1764 away from dispatch_readonly; abort if the beginTransaction call
1765 asserted that the transaction was readonly.
1766
17672009-11-03 Richard Henderson <rth@redhat.com>
1768
1769 * memset.c: New file.
1770 * Makefile.am (libitm_la_SOURCES): Add it.
1771 * Makefile.in: Rebuild.
1772 * testsuite/libitm.c/memset-1.c: New.
1773
17742009-11-03 Richard Henderson <rth@redhat.com>
1775
1776 * dispatch.c: Remove file.
1777 * useraction.c (struct gtm_user_action): Move from libitm.h.
1778 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1779 (serial_memset, serial_memmove, serial_memcpy): Remove.
1780 (serial_W*, serial_R*): Remove.
1781 (serial_dispatch): Update to match.
1782 * configure.ac: Move Werror down below configure checks. Don't
1783 check for sys/loadavg.h, do check for malloc.h. Don't check for
1784 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1785 Use GCC_AC_FUNC_MMAP_BLACKLIST
1786 * libitm.h: Split out all internal items to...
1787 * libitm_i.h: ... here. New file.
1788 * copymask.c: New file.
1789 * local.c (struct gtm_local_undo): Move from libitm.h.
1790 (GTM_alloc_local): Rename from alloc_local; export.
1791 * memcpy.c: New file.
1792 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1793 * config/posix/page.c: New file.
1794 * config/posix/target_tls.h: Remove file.
1795 * barrier.c: New file.
1796 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1797 copymask.c, page.c.
1798 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1799 * method-wbetl.c: Rewrite for new cacheline methods.
1800 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1801
1802 * config/alpha/sjlj.S: Fix typo.
1803 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1804 * config/alpha/copymask.c: New file.
1805 * config/alpha/target.h (CACHELINE_SIZE): New.
1806 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1807
1808 * config/x86/target_i.h: Copy functions from x86/target.h.
1809 * config/x86/copymask.c: New file.
1810 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1811 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1812 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1813 * config/x86/target_tls.h: Move contents to target_i.h.
1814
1815 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1816 * testsuite/libitm.c/memcpy-1.c: New.
1817
18182009-10-22 Richard Henderson <rth@redhat.com>
1819
1820 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1821 (AM_CCASFLAGS): New.
1822 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1823 saving/restoring _AC_ARG_VAR_PRECIOUS.
1824 * Makefile.in, aclocal.m4, config.h.in, configure,
1825 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1826
18272009-10-22 Richard Henderson <rth@redhat.com>
1828
1829 * testsuite/*: Update for new compiler syntax.
1830
18312009-10-21 Richard Henderson <rth@redhat.com>
1832
1833 * libitm.h (_ITM_abortReason): Add outerAbort.
1834
18352009-08-03 Richard Henderson <rth@redhat.com>
1836
1837 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1838 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1839 * method-wbetl.c (struct w_entry): Remove mask.
1840 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1841 adjust all callers.
1842
18432009-07-22 Richard Henderson <rth@redhat.com>
1844
1845 * eh_cpp.c: New file.
1846 * Makefile.am (libitm_la_SOURCES): Add it.
1847 * Makefile.in: Rebuild.
1848 * beginend.c (GTM_rollback_transaction): Undo exception state.
1849 (GTM_trycommit_transaction): Mark inline.
1850 (GTM_trycommit_and_finalize_transaction): Split out from ...
1851 (_ITM_commitTransaction): ... here.
1852 (_ITM_commitTransactionEH): New function.
1853 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1854 cxa_unthrown, eh_in_flight; reorder.
1855
1856 * testsuite/libitm.c++/c++.exp: New.
1857 * testsuite/libitm.c++/eh-1.C: New.
1858
1859 * aatree.c (aa_free): Remove REGPARM.
1860 * aatree.h: Remove all REGPARM.
1861
18622009-07-18 Richard Henderson <rth@redhat.com>
1863
1864 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1865 * Makefile.am (libitm_la_SOURCES): Add them.
1866 * Makefile.in: Rebuild.
1867 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1868 (GTM_trycommit_transaction): Likewise.
1869 * libitm.h: Include aatree.h
1870 (struct gtm_alloc_action): New.
1871 (struct gtm_transaction): Add alloc_actions.
1872 (GTM_record_allocation, GTM_forget_allocation): Declare.
1873 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1874 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1875 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1876 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1877 _ZGTtdaPvRKSt9nothrow_t): Export.
1878
18792009-07-18 Richard Henderson <rth@redhat.com>
1880
1881 * target_tls.h: Move ...
1882 * config/posix/target_tls.h: ... here.
1883
18842009-07-07 Richard Henderson <rth@redhat.com>
1885
1886 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1887
18882009-07-07 Richard Henderson <rth@redhat.com>
1889
1890 * Update to GPL3.
1891
18922009-07-07 Richard Henderson <rth@redhat.com>
1893
1894 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1895 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1896
1897 * configure.tgt: Don't use -ftls-model for x86 linux.
1898 * libitm.h: Include target.h after standard includes.
1899 (_gtm_thr): Rename from gtm_thr.
1900 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1901 (gtm_disp, set_gtm_disp): New.
1902 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1903 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1904 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1905
19062009-07-07 Richard Henderson <rth@redhat.com>
1907
1908 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1909
19102009-07-06 Richard Henderson <rth@redhat.com>
1911
1912 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1913 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1914 (_ITM_beginTransaction): Take variadic arguments.
1915 (_ITM_registerThrownObject): Declare.
1916 * beginend.c, serial.c: Update.
1917 * libitm.map: Add _ITM_registerThrownObject.
1918
19192009-01-28 Richard Henderson <rth@redhat.com>
1920
1921 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1922 * Makefile.in: Rebuild.
1923 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1924 (GTM_restart_transaction): Fix uninstrumented code check.
1925 * retry.c (GTM_decide_retry_strategy): Add serial check.
1926 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1927 automatically go irrevokable when in serial mode.
1928 * clone.c: New file.
1929 * libitm.h, libitm.map: Update.
1930
19312009-01-27 Richard Henderson <rth@redhat.com>
1932
1933 * Makefile.am (LTCCASCOMPILE): Define.
1934 (libitm_la_SOURCES): Add methid-wbetl.c.
1935 * testsuite/Makefile.am: New
1936 * configure.ac: Add testsuite/Makefile.
1937 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1938 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1939 (_ITM_abortTransaction): Finalize implementation method; pass
1940 transaction properties to longjmp.
1941 (GTM_restart_transaction): Split out from ...
1942 (_ITM_commitTransaction): ... here.
1943 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1944 Move to config/x86/target.h.
1945 * config/linux/alpha/futex_bits.h: New.
1946 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1947 * config/x86/target.h: Disable target types for 32-bit.
1948 * config/alpha/sjlj.S, config/alpha/target.h: New.
1949 * libitm.h (struct gtm_dispatch): Add init, fini.
1950 (enum restart_reason): New.
1951 (struct gtm_transaction): Add method and restarts.
1952 * retry.c (GTM_decide_retry_strategy): Implement.
1953 * serial.c (serial_init, serial_fini): New.
1954 (GTM_serialmode): Finialize outgoing method.
1955 * method-wbetl.c: New.
1956
19572008-12-09 Richard Henderson <rth@redhat.com>
1958
1959 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1960 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1961 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1962 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1963 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1964 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1965 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1966 * serial.c (serial_R##T, serial_W##T): Likewise.
1967
19682008-11-21 Richard Henderson <rth@redhat.com>
1969
1970 * Initial commit.
21fa2a29
JJ
1971\f
1972Copyright (C) 2008-2016 Free Software Foundation, Inc.
1973
1974Copying and distribution of this file, with or without modification,
1975are permitted in any medium without royalty provided the copyright
1976notice and this notice are preserved.