]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR other/79046 (g++ -print-file-name=plugin uses full version number in path)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
3c36aa6b
JJ
12017-01-17 Jakub Jelinek <jakub@redhat.com>
2
3 PR other/79046
4 * configure.ac: Add GCC_BASE_VER.
5 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
6 get version from BASE-VER file.
7 * testsuite/Makefile.in: Regenerated.
8 * configure: Regenerated.
9 * Makefile.in: Regenerated.
10
8f56cb51
AM
112017-01-04 Alan Modra <amodra@gmail.com>
12
13 * Makefile.in: Regenerate.
14 * testsuite/Makefile.in: Regenerate.
15
c1a9c369
JJ
162017-01-01 Jakub Jelinek <jakub@redhat.com>
17
cbe34bb5
JJ
18 Update copyright years.
19
c1a9c369
JJ
20 * libitm.texi: Bump @copying's copyright year.
21
66dbcf2d
RO
222016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
25 * aclocal.m4: Regenerate.
26 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
27 LIBITM_CHECK_LINKER_HWCAP.
28
84c1b9d3
MK
292016-11-15 Matthias Klose <doko@ubuntu.com>
30
31 * configure: Regenerate.
32
831698b8
L
332016-04-19 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR libitm/70456
36 * util.cc (xmalloc): Use posix_memalign to allocate memory on
37 on cache line if requested.
38
edcbda7e
DV
392016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
40
41 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
42 function attribute to disable floating point in begin_transaction() on
43 S/390.
44 * beginend.cc (begin_transaction): Use
45 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
46
6041f70a
TR
472016-01-22 Torvald Riegel <triegel@redhat.com>
48
49 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
50 boundary.
51 (htm_fastpath): Remove.
52 (gtm_thread::begin_transaction): Fix HTM fastpath.
53 (_ITM_commitTransaction): Adapt.
54 (_ITM_commitTransactionEH): Adapt.
55 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
56 and accessors.
57 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
58 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
59 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
60 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
61 * libitm/method-serial.cc (htm_mg): Adapt.
62 (gtm_thread::serialirr_mode): Adapt.
63 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
64
0b96ffdb
TR
652016-01-21 Torvald Riegel <triegel@redhat.com>
66
67 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
68 or AIX.
69
b1de98e3
RH
702016-01-19 Richard Henderson <rth@redhat.com>
71
72 PR bootstrap/69343
73 PR bootstrap/69339
74 Revert:
75 2016-01-13 Richard Henderson <rth@redhat.com>
76
77 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
78 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
79 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
80 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
81 * configure.ac (ARCH_AARCH64): New conditional.
82 (ARCH_PPC, ARCH_S390): Likewise.
83 * Makefile.in, configure: Rebuild.
84
85 * libitm.h (_ITM_TYPE_M128): Always define.
86 * vect64.cc: Split ...
87 * vect128.cc: ... out of...
88 * config/x86/x86_sse.cc: ... here.
89 * config/arm/neon.cc: New file.
90
f57fc960
TR
912016-01-19 Torvald Riegel <triegel@redhat.com>
92
93 * local_type_traits: Remove file.
94 * libitm_i.h: Don't include it anymore.
95 (sized_integral): Remove.
96
d2653984
TR
972016-01-16 Torvald Riegel <triegel@redhat.com>
98
99 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
100 safety.
101 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
102 * libitm/testsuite/libitm.c/priv-1.c: New.
103
a04d5fc9
TR
1042015-01-15 Torvald Riegel <triegel@redhat.com>
105
106 testsuite/libitm.c++/libstdc++-safeexc.C: New.
107
e89137ce
TR
1082016-01-13 Torvald Riegel <triegel@redhat.com>
109
110 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
111 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
112 (gtm_rwlock::write_unlock): Likewise.
113
4c868789
RH
1142016-01-13 Richard Henderson <rth@redhat.com>
115
116 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
117 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
118 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
119 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
120 * configure.ac (ARCH_AARCH64): New conditional.
121 (ARCH_PPC, ARCH_S390): Likewise.
122 * Makefile.in, configure: Rebuild.
123
124 * libitm.h (_ITM_TYPE_M128): Always define.
125 * vect64.cc: Split ...
126 * vect128.cc: ... out of...
127 * config/x86/x86_sse.cc: ... here.
128 * config/arm/neon.cc: New file.
129
629e4729
TR
1302016-01-13 Torvald Riegel <triegel@redhat.com>
131
132 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
133 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
134 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
135 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
136 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
137 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
138 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
139 (serialirr_dispatch::snapshot_most_recent): New.
140 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
141
0d1ed412
TR
1422016-01-12 Torvald Riegel <triegel@redhat.com>
143
144 * libitm_i.h (gtm_mask_stack): Remove.
145 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
146 * stmlock.h: Remove file.
147 * config/alpha/cacheline.h: Likewise.
148 * config/generic/cacheline.h: Likewise.
149 * config/powerpc/cacheline.h: Likewise.
150 * config/sparc/cacheline.h: Likewise.
151 * config/x86/cacheline.h: Likewise.
152
21fa2a29
JJ
1532016-01-04 Jakub Jelinek <jakub@redhat.com>
154
818ab71a
JJ
155 Update copyright years.
156
21fa2a29
JJ
157 * libitm.texi: Bump @copying's copyright year.
158
e7f7330f
TR
1592015-11-26 Torvald Riegel <triegel@redhat.com>
160
161 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
162 (ml_wt_dispatch::pre_write): Adapt.
163 (ml_wt_dispatch::pre_load): Likewise.
164
4f8a3b87
TR
1652015-11-22 Torvald Riegel <triegel@redhat.com>
166
167 * libitm_i.h (gtm_alloc_action): Remove union.
168 * testsuite/libitm.c/alloc-1.c: New.
169
258c1d07
TR
1702015-11-19 Torvald Riegel <triegel@redhat.com>
171
172 * testsuite/libitm.c++/eh-5.C: New.
173 * libitm.h (_ITM_cxa_free_exception): New.
174 * libitm.map (_ITM_cxa_free_exception): Add it.
175 * libitm.texi: Update ABI docs.
176 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
177 (gtm_transaction_cp::cxa_uncaught_count): Add.
178 (gtm_thread::cxa_unthrown): Remove.
179 (gtm_thread::cxa_uncaught_count_ptr): Add.
180 (gtm_thread::cxa_uncaught_count): Add.
181 (gtm_thread::drop_references_allocations): Rename to...
182 (gtm_thread::discard_allocation): ... this and adapt.
183 (gtm_thread::init_cpp_exceptions): New.
184 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
185 (gtm_thread::begin_transaction): Likewise.
186 (gtm_transaction_cp::save): Likewise.
187 (gtm_thread::trycommit): Likewise.
188 * eh_cpp.cc: Add overview comments.
189 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
190 (free_any_exception, _ITM_cxa_free_exception): New.
191 (gtm_thread::init_cpp_exceptions): Define.
192 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
193 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
194 (gtm_thread::revert_cpp_exceptions): Likewise.
195
c518678b
TR
1962015-11-09 Torvald Riegel <triegel@redhat.com>
197
198 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
199 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
200 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
201 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
202 (gtm_thread::forget_allocations): New overload with size_t argument.
203 * alloc.c (gtm_thread::forget_allocation): Define new overload and
204 adapt existing one.
205 (gtm_thread::record_allocation): Adapt.
206 (gtm_thread::commit_allocations_1): Adapt.
207 (gtm_thread::commit_allocations_2): Adapt.
208 * testsuite/libitm.c++/newdelete.C: New.
209
1e44e857
DJ
2102015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
211 Joseph Myers <joseph@codesourcery.com>
212 Mark Shinwell <shinwell@codesourcery.com>
213 Andrew Stubbs <ams@codesourcery.com>
214 Rich Felker <dalias@libc.org>
215
216 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
217 GTM_begin_transaction for compatibility with FDPIC.
218
9e531d37
DM
2192015-10-09 David Malcolm <dmalcolm@redhat.com>
220
221 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
222 using load_gcc_lib.
223
c629c246
GFM
2242015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
225
226 PR libitm/61164
227 * local_atomic (__always_inline): Rename to...
228 (__libitm_always_inline): ... this.
229
cd5a9a74
CSLL
2302015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
231
232 PR target/52482
233 * config/powerpc/sjlj.S: Port to Xcode 2.5.
234
ea023bcf
UB
2352015-05-27 Uros Bizjak <ubizjak@gmail.com>
236
d778b5a0
UB
237 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
238 operands "op" and "val" to int.
239
2402015-05-27 Uros Bizjak <ubizjak@gmail.com>
241
242 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
243 "op" and "val" to int.
244
2452015-05-27 Uros Bizjak <ubizjak@gmail.com>
246
247 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
248 "op" and "val" to int.
249
2502015-05-27 Uros Bizjak <ubizjak@gmail.com>
251
252 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
253 Declare as static int.
254 (FUTEX_PRIVATE_FLAG): Remove L suffix.
255 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
256
2572015-05-27 Uros Bizjak <ubizjak@gmail.com>
258
259 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
260 sys_futex0 function.
ea023bcf 261
503902f9
MH
2622015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
263
264 * Makefile.in: Regenerated with automake-1.11.6.
265 * aclocal.m4: Likewise.
266 * configure: Likewise.
267 * testsuite/Makefile.in: Likewise.
268
96ce40cb
GR
2692015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
270
271 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
272 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
273
3a07b160
L
2742015-01-15 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR libitm/64360
277 * libitm.c/stackundo.c (test2): Make it static.
278 (test1): Likewise.
279
5624e564
JJ
2802015-01-05 Jakub Jelinek <jakub@redhat.com>
281
282 Update copyright years.
283
b67cd4e3
JJ
2842015-01-05 Jakub Jelinek <jakub@redhat.com>
285
286 * libitm.texi: Bump @copying's copyright year.
287
69aef6dc
KT
2882014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
289
290 * testsuite/lib/libitm.exp: Load target-utils.exp.
291 Move load of target-supports.exp earlier.
292
68bc9270
UB
2932014-12-03 Uros Bizjak <ubizjak@gmail.com>
294
295 * configure.tgt (x86_64): Tune -m32 multilib to generic.
296
a699d672
L
2972014-11-21 H.J. Lu <hongjiu.lu@intel.com>
298
299 PR bootstrap/63784
300 * configure: Regenerated.
301
ebf6d33b
FXC
3022014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
303
304 PR target/63610
305 * configure: Regenerate.
306
99183741
MP
3072014-10-06 Marek Polacek <polacek@redhat.com>
308
309 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
310 * testsuite/libitm.c/memset-1.c: Likewise.
311
b6334cf4
RH
3122014-07-24 Richard Henderson <rth@redhat.com>
313
314 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
315 addressing mode in epilogue.
316
3c698bf0
RO
3172014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
318
319 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
320 -mclear-hwcap instead.
321 * configure: Regenerate.
322 * clearcap.map: Remove.
323
dbed5a9b
JM
3242014-05-21 John Marino <gnugcc@marino.st>
325
326 * configure.tgt (*-*-dragonfly*): New target.
327
b17f08dd
RH
3282014-05-19 Richard Henderson <rth@redhat.com>
329
330 * config/aarch64/sjlj.S: New file.
331 * config/aarch64/target.h: New file.
332 * configure.tgt: Enable aarch64.
333
5e1f630a
RO
3342014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335
336 * config/generic/asmcfi.h: Also check for
337 __GCC_HAVE_DWARF2_CFI_ASM.
338
84c2f4b0
RH
3392013-04-02 Richard Henderson <rth@redhat.com>
340
341 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
342 * config/arm/target.h, config/sh/target.h: Likewise.
343 * config/sparc/target.h, config/x86/target.h: Likewise.
344
7cc51d64
JJ
3452014-03-26 Jakub Jelinek <jakub@redhat.com>
346
347 * config/linux/futex_bits.h: Include errno.h.
348 (sys_futex0): If syscall returns -1, return -errno rather than
349 -1.
350
c288ec8f
JM
3512014-03-26 Joseph Myers <joseph@codesourcery.com>
352
353 * libitm.texi (Index): Rename to Library Index.
354
ed100f5d
L
3552014-01-13 H.J. Lu <hongjiu.lu@intel.com>
356
357 PR libitm/53113
358 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
359 (x86_avx.lo): Append -mavx to CXXFLAGS.
360 * Makefile.in: Regenerate.
361
f93608e6
RS
3622014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
363
364 Update copyright years
365
98db73df
TB
3662014-01-02 Tobias Burnus <burnus@net-b.de>
367
368 * libitm.texi: Bump @copying's copyright year.
369
b54214fe
UW
3702013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
371
372 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
373 (FUNC): Define ELFv2 variant.
374 (END): Likewise.
375 (HIDDEN): Likewise.
376 (CALL): Likewise.
377 (BASE): Likewise.
378 (LR_SAVE): Likewise.
379
3cbe17f7
AM
3802013-09-20 Alan Modra <amodra@gmail.com>
381
382 * configure: Regenerate.
383
6fb471d8
TR
3842013-08-30 Torvald Riegel <triegel@redhat.com>
385
386 * config/posix/rwlock.cc: Fix initialization order.
387
bec9ec3f
TR
3882013-08-30 Torvald Riegel <triegel@redhat.com>
389
390 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
391 (htm_fastpath): Assign an asm name.
392 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
393 HTM fast paths.
394 (_ITM_actions): Likewise.
395 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
396 x86_64.
397 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
398 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
399 field to the start of the structure.
400 * config/linux/rwlock.h (gtm_rwlock): Update comments.
401 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
402 handling for custom HTM fast paths.
403
1869217f
AK
4042013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
405 Revert:
406 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
407
408 * configure.tgt: Add -msoft-float to XCFLAGS.
409
d62d5152
AK
4102013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
411
412 * configure.tgt: Add -msoft-float to XCFLAGS.
413
aaaffb2a
AK
4142013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
415
416 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
417 (htm_transaction_active): Enable zEC12 instructions in the
418 assembler.
419 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
420
167f68ed
AK
4212013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
422
423 * acinclude.m4: Add htm asm check for s390.
424 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
425 * configure: Regenerate.
426 * config/s390/target.h: Remove __HTM__ check.
427 (htm_available): Call getauxval to get hwcaps and check whether
428 HTM is available or not.
429
0258b6e4
PB
4302013-07-15 Peter Bergner <bergner@vnet.ibm.com>
431
432 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
433 * configure.ac: Use it.
434 (AC_CHECK_HEADERS): Check for sys/auxv.h.
435 (AC_CHECK_FUNCS): Check for getauxval.
436 * config.h.in, configure: Rebuild.
437 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
438 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
439 (USE_HTM_FASTPATH): Define.
440 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
441 _HTM_RETRIES) New macros.
442 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
443 htm_begin_success, htm_commit, htm_transaction_active): New functions.
444
5a3fe9b6
AK
4452013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
446
447 * config/s390/target.h: Include htmintrin.h.
448 (_HTM_ITM_RETRIES): New macro definition.
449 (htm_available, htm_init, htm_begin, htm_begin_success)
450 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
451
6c84d576
IS
4522013-06-20 Iain Sandoe <iain@codesourcery.com>
453 Cesar Philippidis <cesar@codesourcery.com>
454
455 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
456 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
457 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
458 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
459
480c696b
TR
4602013-06-20 Torvald Riegel <triegel@redhat.com>
461
462 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
463 (_ITM_getTransactionId): Same.
464 * config/x86/target.h (htm_transaction_active): New.
465
b1db457b
TR
4662013-06-20 Torvald Riegel <triegel@redhat.com>
467
468 PR libitm/57643
469 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
470 the HTM fastpath.
471
51249377
GP
4722013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
473
474 PR bootstrap/56714
475 * local_atomic (__always_inline): Always define our version.
476 (__calculate_memory_order): Mark inline.
477 (atomic_thread_fence): Ditto.
478 (atomic_signal_fence): Ditto.
479 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
480 (atomic_bool::atomic_flag_clear_explicit): Ditto.
481 (atomic_bool::atomic_flag_test_and_set): Ditto.
482 (atomic_bool::atomic_flag_clear): Ditto.
483
f818478b
JJ
4842013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
485
486 * config/s390/sjlj.S: New file.
487 * config/s390/target.h: New file.
488 * configure.tgt: Set options for S/390.
489
ab4425be
AK
4902013-03-23 Andi Kleen <ak@linux.intel.com>
491
492 * local_atomic (__always_inline): Add.
493 (__calculate_memory_order, atomic_thread_fence,
494 atomic_signal_fence, test_and_set, clear, store, load,
495 exchange, compare_exchange_weak, compare_exchange_strong,
496 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
497 Add __always_inline to force inlining.
498
6c59ffd1
IS
4992013-02-11 Iain Sandoe <iain@codesourcery.com>
500 Jack Howarth <howarth@bromo.med.uc.edu>
501 Patrick Marlier <patrick.marlier@gmail.com>
502
503 PR libitm/55693
504 * alloc_cpp.cc: Enable function declarations on darwin.
505 * eh_cpp.cc: Likewise.
506
75f9527c
RS
5072013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
508
509 Update copyright years.
510
64fbcc74
TR
5112012-11-09 Torvald Riegel <triegel@redhat.com>
512
513 * beginend.cc (htm_fastpath): New.
514 (gtm_thread::begin_transaction, _ITM_commitTransaction,
515 _ITM_commitTransactionEH): Add HTM fastpath handling.
516 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
517 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
518 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
519 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
520 * configure.tgt: Add -mrtm to XCFLAGS.
521 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
522 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
523 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
524 * retry.cc (parse_default_method): Add HTM method parsing.
525 (gtm_thread::number_of_threads_changed): Use HTM by default if
526 available.
527
b9efc877
TS
5282012-11-04 Thomas Schwinge <thomas@codesourcery.com>
529
530 * configure: Regenerate.
531
07d3b5c8
RH
5322012-10-31 Richard Henderson <rth@redhat.com>
533
534 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
535 * configure.ac: Use it.
536 * config.h.in, configure: Rebuild.
537 * testsuite/Makefile.in: Rebuild.
538
eb00e959
TR
5392012-10-24 Torvald Riegel <triegel@redhat.com>
540
541 * libitm.texi: Clarify ABI requirements for data-logging functions.
542
b679c813
TR
5432012-10-24 Torvald Riegel <triegel@redhat.com>
544
545 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
546 it requires serial mode instead of assuming that for certain
547 dispatchs.
548 * dispatch.h (abi_dispatch::requires_serial): New.
549 (abi_dispatch::abi_dispatch): Adapt.
550 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
551 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
552 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
553 serial_dispatch::serial_dispatch,
554 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
555
0c609a21
UB
5562012-10-02 Uros Bizjak <ubizjak@gmail.com>
557
558 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
559 and ia32 declarations some more.
560 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
561
c0758df9
JJ
5622012-09-20 Jakub Jelinek <jakub@redhat.com>
563
564 PR other/43620
565 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
566 * configure: Regenerate.
567 * Makefile.in: Regenerate.
568
690c45b8
DE
5692012-09-14 David Edelsohn <dje.gcc@gmail.com>
570
571 * configure: Regenerated.
572
68a12ef3
UB
5732012-07-31 Uros Bizjak <ubizjak@gmail.com>
574
575 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
576
f2f9a097
PM
5772012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
578
579 * eh_cpp.cc: Fix __cxa_end_catch declaration.
580
e6d5f8c9
L
5812012-05-16 H.J. Lu <hongjiu.lu@intel.com>
582
583 * configure: Regenerated.
584
0100e3b3
L
5852012-04-04 H.J. Lu <hongjiu.lu@intel.com>
586
587 PR libitm/52854
588 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
589 for x86-64.
590
2f6935f4
TG
5912012-04-03 Tristan Gingold <gingold@adacore.com>
592
593 * configure: Regenerate.
594
b9c23a61
L
5952012-03-31 H.J. Lu <hongjiu.lu@intel.com>
596
597 PR bootstrap/52812
598 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
599
6a26a74d
BRF
6002012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
601
602 * testsuite/lib/libitm.exp: load fortran-modules.exp
603
b24513a1
RO
6042012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
605
606 * configure.tgt (*-*-irix6*): Remove.
607
0d23faac
TR
6082012-03-13 Torvald Riegel <triegel@redhat.com>
609
610 PR libitm/52526
611 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
612 wake-up.
613
5c30094f
RO
6142012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
615
616 * configure.tgt (*-*-osf*): Remove.
617 * configure: Regenerate.
618
d28b0b08
TR
6192012-03-05 Torvald Riegel <triegel@redhat.com>
620
621 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
622 memtransfer/memset if size isn't larger than zero.
623
034209bc
TR
6242012-03-02 Torvald Riegel <triegel@redhat.com>
625
626 * libitm.texi: Link to specification and add a usage example.
627
bc8da6ba
TR
6282012-02-24 Torvald Riegel <triegel@redhat.com>
629
630 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
631 default dispatch for more than 1 thread to ml_wt.
632
63b08143
TR
6332012-02-20 Torvald Riegel <triegel@redhat.com>
634
635 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
636
4c9bd6ac
TR
6372012-02-20 Torvald Riegel <triegel@redhat.com>
638
639 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
640
651ff415
TR
6412012-02-20 Torvald Riegel <triegel@redhat.com>
642
643 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
644 serial mode corner cases made obsolete by prior gtm_rwlock changes.
645 (gl_wt_dispatch.rollback): Same.
646
efee0113
TR
6472012-02-20 Torvald Riegel <triegel@redhat.com>
648
649 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
650
33a03827
TR
6512012-02-20 Torvald Riegel <triegel@redhat.com>
652
653 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
654 for RfW src. Optimize number of calls to gtm_thr.
655
a19db3f2
TR
6562012-02-20 Torvald Riegel <triegel@redhat.com>
657
658 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
659 acquisition to ...
660 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
661 (default_dispatch): Make atomic.
662 (GTM::gtm_thread::set_default_dispatch): Access atomically.
663 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
664 use decide_begin_dispatch() if default_dispatch might have changed.
665 (GTM::gtm_thread::number_of_threads_changed): Initialize
666 default_dispatch here.
667
e948a1fb
IS
6682012-02-15 Iain Sandoe <iains@gcc.gnu.org>
669 Patrick Marlier <patrick.marlier@gmail.com>
670
671 PR libitm/52220
672 * alloc_cpp.cc: No dummy definitions for darwin.
673 * eh_cpp.cc: Likewise.
674
72824d5e
RH
6752012-02-14 Richard Henderson <rth@redhat.com>
676
677 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
678
1f319dba
UB
6792012-02-14 Uros Bizjak <ubizjak@gmail.com>
680
681 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
682
31772c95
TR
6832012-02-14 Torvald Riegel <triegel@redhat.com>
684
685 * libitm_i.h (GTM::gtm_rwlog_entry): New.
686 (GTM::gtm_thread): Add read and write logs.
687 (GTM::dispatch_ml_wt): Declare.
688 * retry.cc (parse_default_method): Support ml_wt.
689 * method-ml.cc: New file.
690 * Makefile.am: Add method-ml.cc.
691 * Makefile.in: Regenerate.
692
5b9cf5d2
TR
6932012-02-14 Torvald Riegel <triegel@redhat.com>
694
695 * dispatch.h (GTM::abi_dispatch::supports): New.
696 (GTM::method_group::reinit): New.
697 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
698 (GTM::gtm_thread::number_of_threads_changed): Check that the method
699 supports the current situation.
700
7d33bcb7
TR
7012012-02-14 Torvald Riegel <triegel@redhat.com>
702
703 * util.cc (GTM::xcalloc): New.
704 * common.h (GTM::xcalloc): Declare.
705
62513f7b
EB
7062012-02-14 Eric Botcazou <ebotcazou@adacore.com>
707
708 * config/sparc/target.h (cpu_relax): Read from CC register.
709 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
710
7112012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
712
713 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
714
f3f5e3c3
EB
7152012-02-13 Eric Botcazou <ebotcazou@adacore.com>
716
62513f7b 717 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
718 * config/sparc/cacheline.h: New file.
719 * config/sparc/target.h: Likewise.
720 * config/sparc/sjlj.S: Likewise.
721 * config/linux/sparc/futex_bits.h: Likewise.
722
7232012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
724
725 * configure.ac (link_itm): Fix comment.
726 * configure: Regenerate.
727 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
728
681355e3
RO
7292012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
730
fc985d2f 731 PR libitm/51822
62513f7b 732 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
733 Correct libgomp references.
734
999bcff5
TR
7352012-01-24 Torvald Riegel <triegel@redhat.com>
736
737 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
738 wake-up.
739
9848887a
UB
7402012-01-24 Uros Bizjak <ubizjak@gmail.com>
741
742 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
743 end of structure.
744 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
745 offset values. Do not copy return address. Decrement stack
746 by 56 bytes only.
747 (GTM_longjump) [__x86_64__]: Update offset values.
748
5752c591
UB
7492012-01-23 Uros Bizjak <ubizjak@gmail.com>
750
751 PR libitm/51830
752 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
753 the first function argument to %eax.
754
61e72ca4
RO
7552012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
756
757 * libitm.h (_ITM_getThreadnum): Remove.
758 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
759
9ce91011
RO
7602012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
761
762 * clearcap.map: New file.
763 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
764 * configure.ac: Call it.
765 Clear HWCAP_LDFLAGS if defaulting to -mavx.
766 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
767 * configure: Regenerate.
768 * Makefile.in: Regenerate.
769 * testsuite/Makefile.in: Regenerate.
770
3b4f05ec
RO
7712012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
772
773 PR libitm/51173
774 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
775 include, exclude options.
776
aab74ee9
TR
7772012-01-14 Torvald Riegel <triegel@redhat.com>
778
779 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
780 rolling back.
781 * containers.h (GTM::vector::set_size): New.
782
07b6642b
TR
7832012-01-14 Torvald Riegel <triegel@redhat.com>
784
785 PR libitm/51855
786 * config/generic/tls.h (GTM::mask_stack_top): New.
787 (GTM::mask_stack_bottom): Declare.
788 * config/generic/tls.c (GTM::mask_stack_bottom): New.
789 * local.cc (gtm_undolog::rollback): Filter out any updates that
790 overlap the libitm stack. Add current transaction as parameter.
791 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
792 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
793 * testsuite/libitm.c/stackundo.c: New test.
794
8377e5e5
RH
7952012-01-10 Richard Henderson <rth@redhat.com>
796
797 * libitm_i.h (_Unwind_DeleteException): Declare weak.
798 * eh_cpp.cc (_Unwind_DeleteException): Define for
799 !HAVE_ELF_STYLE_WEAKREF.
800
11f30bb0
TR
8012012-01-08 Torvald Riegel <triegel@redhat.com>
802
803 * local.cc (GTM_LB): Use GTM::gtm_undolog.
804 (GTM::gtm_thread::drop_references_undolog): Remove.
805 (GTM::gtm_thread::commit_undolog,
806 GTM::gtm_thread::rollback_undolog): Move to ...
807 * libitm_i.h (GTM::gtm_undolog): ...here. New.
808 (GTM::gtm_undolog_entry): Remove.
809 (GTM::gtm_thread): Adapt.
810 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
811 (GTM::gtm_thread::trycommit): Adapt.
812 * method-serial.cc (serial_dispatch::log): Adapt.
813 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
814 (gl_wt_dispatch::store): Fix likely/unlikely.
815 * containers.h (GTM::vector::resize): Add additional_capacity
816 parameter and handle it.
817 (GTM::vector::resize_noinline): New/adapt.
818 (GTM::vector::push): New.
819
a32e5e93
RH
8202012-01-06 Richard Henderson <rth@redhat.com>
821
822 * configure.tgt: Support powerpc-linux and powerpc-darwin.
823 * config/linux/powerpc/futex_bits.h: New file.
824 * config/powerpc/cacheline.h: New file.
825 * config/powerpc/sjlj.S: New file.
826 * config/powerpc/target.h: New file.
827 * config/generic/asmcfi.h (cfi_offset): New.
828 (cfi_restore, cfi_undefined): New.
829
1f53a8e6
AH
8302012-01-05 Aldy Hernandez <aldyh@redhat.com>
831
832 PR other/51171
833 * testsuite/libitm.c/reentrant.c: Remove xfail.
834 (thread): Pass x to pure().
be223aaf 835 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 836
c898f7b8
TR
8372011-12-24 Torvald Riegel <triegel@redhat.com>
838
839 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
840 privatization safety if already in serial mode.
841
610e3901
TR
8422011-12-24 Torvald Riegel <triegel@redhat.com>
843
844 * beginend.cc (GTM::gtm_thread::restart): Add and handle
845 finish_serial_upgrade parameter.
846 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
847 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
848 Don't unset reader flag.
849 (GTM::gtm_rwlock::write_upgrade_finish): New.
850 * config/posix/rwlock.cc: Same.
851 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
852 Declare.
853 * config/posix/rwlock.h: Same.
854 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
855 flag after commit or after rollback when restarting.
856
799142bf
TR
8572011-12-24 Torvald Riegel <triegel@redhat.com>
858
859 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
860 (GTM::gtm_thread::try_commit): Changed memory order.
861 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
862 as parameter.
863 * config/linux/x86/futex_bits.h (sys_futex0): Same.
864 * config/linux/sh/futex_bits.h (sys_futex0): Same.
865 * config/linux/futex_bits.h (sys_futex0): Same.
866 * config/linux/futex.cc (futex_wait, futex_wake): Same.
867 * config/linux/futex.h (futex_wait, futex_wake): Same.
868 * config/linux/rwlock.h (gtm_rwlock::writers,
869 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
870 ints.
871 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
872 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
873 gtm_rwlock::write_unlock): Fix memory orders and fences.
874 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
875 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
876 gtm_rwlock::write_unlock): Same.
877 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
878 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
879 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
880 Add comments.
881 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
882 gl_wt_dispatch::load, gl_wt_dispatch::store,
883 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
884 orders and fences. Add comments.
885
b0f96e35
JJ
8862011-12-21 Jakub Jelinek <jakub@redhat.com>
887
888 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
889 * Makefile.in: Regenerated.
890
cc163247
KK
8912011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
892
893 * configure.tgt: Add sh* case.
894 * config/sh/target.h: New file.
895 * config/sh/sjlj.S: New file.
896 * config/linux/sh/futex_bits.h: New file.
897
aebac0ca
RH
8982011-12-14 Richard Henderson <rth@redhat.com>
899
900 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
901 * config/arm/sjlj.S, config/arm/target.h: New files.
902 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
903 (cfi_rel_offset): New.
904 * config/linux/futex_bits.h: New file.
905 * config/linux/futex.cc: Include futex_bits.h here...
906 * config/linux/futex.h: ... not here.
907 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
908 * configure.ac (ARCH_AM): New conditional.
909 * Makefile.in, configure: Rebuild.
910 * configure.tgt: Handle ARM.
911
36cfbee1
RH
9122011-12-13 Richard Henderson <rth@redhat.com>
913
5d9d05d3
RH
914 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
915 signed/unsigned comparison werror.
916
36cfbee1
RH
917 * local_atomic: New file.
918 * libitm_i.h: Include it.
919 (gtm_thread::shared_state): Use atomic template.
920 * beginend.cc (GTM::gtm_clock): Use atomic template.
921 (global_tid): Use atomic template if 64-bit atomics available.
922 (gtm_thread::gtm_thread): Update shared_state access.
923 (gtm_thread::trycommit): Likewise.
924 (choose_code_path): Update global_tid access.
925 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
926 * stmlock.h (GTM::gtm_clock): Use atomic template.
927 (gtm_get_clock, gtm_inc_clock): Update accesses.
928 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
929 redundant __sync_synchronize after atomic shared_state access.
930 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
931 (gtm_rwlock::write_lock_generic): Likewise.
932 (gtm_rwlock::read_unlock): Likewise.
933 * config/alpha/target.h (atomic_read_barrier): Remove.
934 (atomic_write_barrier): Remove.
935 * config/x86/target.h (atomic_read_barrier): Remove.
936 (atomic_write_barrier): Remove.
937
062f93f2
RH
9382011-11-30 Richard Henderson <rth@redhat.com>
939
940 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
941 * beginend.c (_ITM_abortTransaction): Update to match.
942 (GTM::gtm_thread::restart): Likewise.
943 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
944 * config/x86/sjlj.S (GTM_longjmp): Likewise.
945
bd8aaa86
IS
9462011-11-23 Iain Sandoe <iains@gcc.gnu.org>
947
948 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
949 * Makefile.in: Regenerate.
950
8cf36bb3
IS
9512011-11-22 Iain Sandoe <iains@gcc.gnu.org>
952
953 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
954 * alloc_cpp.cc: Generate dummy functions if we don't
955 HAVE_ELF_STYLE_WEAKREF.
956 * eh_cpp.cc: Likewise.
957 * configure: Regenerate.
958 * aclocal.m4: Likewise.
959 * config.h.in: Likewise.
960 * Makefile.in: Likewise.
961 * testsuite/Makefile.in: Likewise.
962
0b41ebef
IS
9632011-11-22 Iain Sandoe <iains@gcc.gnu.org>
964
965 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
966 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 967 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
968 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
969 in portability to non-elf targets.
8cf36bb3 970 (GTM_longjmp): Likewise.
0b41ebef
IS
971 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
972 where required.
973
9c9d352a
IS
9742011-11-22 Iain Sandoe <iains@gcc.gnu.org>
975
976 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
977 * testsuite/libitm.c/memset-1.c: Likewise.
978
c6084f68
AT
9792011-11-21 Andreas Tobler <andreast@fgznet.ch>
980
981 * configure: Regenerate.
982
adcd36bc
RO
9832011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
984
985 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
986 (LIBITM_ENABLE_SYMVERS): Handle sun style.
987 * Makefile.am: Handle sun style versioning.
988 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
989 * configure: Regenerate.
990 * Makefile.in: Regenerate.
991
59659b59
RO
9922011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
993
994 * config/generic/asmcfi.h: Fix comment.
995 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
996 sequence without .hidden support, error for non-ELF targets.
997 (GTM_longjmp) [__ELF__]: Only use .hidden if
998 HAVE_ATTRIBUTE_VISIBILITY.
999
d846e425
RO
10002011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1001
1002 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1003 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1004 Dummy functions.
1005 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1006 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1007
80713347
UB
10082011-11-16 Uros Bizjak <ubizjak@gmail.com>
1009
1010 PR bootstrap/51098
1011 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1012 * configure: Regenerate.
1013
2841f85e
L
10142011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1017
8851b429
RO
10182011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019
1020 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1021 .hidden.
1022 (.note.GNU-stack): Only use if __linux__.
1023 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1024 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1025 * testsuite/libitm.c/reentrant.c: Likewise.
1026 * testsuite/libitm.c/simple-2.c: Likewise.
1027 * testsuite/libitm.c/txrelease.c: Likewise.
1028 * testsuite/libitm.c++/static_ctor.C: Likewise.
1029
d4b17902
RH
10302011-11-10 Richard Henderson <rth@redhat.com>
1031
1032 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1033 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1034 * configure.ac (ARCH_X86_AVX): New conditional.
1035 * Makefile.in, configure: Rebuild.
1036
430616e7
RH
10372011-11-09 Richard Henderson <rth@redhat.com>
1038
1039 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1040 * configure.ac: Use it.
1041 * config.h.in, configure: Rebuild.
1042 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1043
79b1edb6
RH
10442011-11-09 Richard Henderson <rth@redhat.com>
1045
1046 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1047 * config/alpha/unaligned.h: Remove file.
1048 * config/generic/unaligned.h: Remove file.
1049 * config/x86/unaligned.h: Remove file.
1050 * config/generic/cachepage.h: Remove file.
1051 * config/posix/cachepage.cc: Remove file.
1052 * config/generic/cacheline.cc: Remove file.
1053 * config/x86/cacheline.cc: Remove file.
1054 * config/generic/cacheline.h (gtm_cacheline): Remove the
1055 store_mask, copy_mask, copy_mask_wb methods.
1056 * config/x86/cacheline.h: Likewise.
1057 * config/alpha/cacheline.h: Fall back to generic after setting size.
1058 * config/generic/tls.cc (gtm_mask_stack): Remove.
1059 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1060 (GTM_vpalignr_table): Remove.
1061 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1062 (GTM_pshift_table): Remove.
1063 * config/libitm_i.h: Don't include cachepage.h.
1064 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1065 * Makefile.in, testsuite/Makefile.in: Rebuild.
1066
4bdd090f
RH
10672011-11-09 Richard Henderson <rth@redhat.com>
1068
8ee9fac2
RH
1069 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1070 to emit branch prediction hint.
1071
9bdc6343
RH
1072 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1073 Protect .note.GNU-stack with __linux__.
1074
4bdd090f
RH
1075 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1076 * configure, aclocal.m4, config.h.in: Rebuild.
1077 * config/generic/asmcfi.h: New file.
1078 * config/x86/sjlj.S: Use it.
1079
4408b086
RH
10802011-11-08 Richard Henderson <rth@redhat.com>
1081
1082 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1083
01f3428c
RH
10842011-11-08 Richard Henderson <rth@redhat.com>
1085
3d3b05ff
RH
1086 * configure.tgt: Test correct directory for supported cpus.
1087
01f3428c
RH
1088 * configure.ac: Exit if unsupported.
1089 * configure: Rebuild.
1090 * configure.tgt: Delete boilerplate from libgomp for unsupported
1091 targets. Set UNSUPPORTED for unsupported targets.
1092
07f03cd3
RO
10932011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1094
1095 * configure.tgt: Handle i386 like i[456]86.
1096 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1097 take address.
1098 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1099 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1100
0a35513e
AH
11012011-11-05 Aldy Hernandez <aldyh@redhat.com>
1102
1103 * method-wbetl.cc: Update copyright notice.
1104 * aatree.cc: Same.
1105 * util.cc: Same.
1106 * libitm.h: Same.
1107 * memset.cc: Same.
1108 * eh_cpp.cc: Same.
1109 * barrier.tpl: Same.
1110 * useraction.cc: Same.
1111 * stmlock.h: Same.
1112 * memcpy.cc: Same.
1113 * common.h: Same.
1114 * config/generic/tls.cc: Same.
1115 * config/generic/cacheline.h: Same.
1116 * config/generic/cachepage.h: Same.
1117 * config/generic/cacheline.cc: Same.
1118 * config/generic/unaligned.h: Same.
1119 * config/x86/cacheline.h: Same.
1120 * config/x86/cacheline.cc: Same.
1121 * config/x86/unaligned.h: Same.
1122 * config/alpha/cacheline.h: Same.
1123 * config/alpha/unaligned.h: Same.
1124 * config/alpha/sjlj.S: Same.
1125 * config/posix/cachepage.cc: Same.
1126 * config/linux/futex.h: Same.
1127 * config/linux/alpha/futex_bits.h: Same.
1128
11292011-11-04 Torvald Riegel <triegel@redhat.com>
1130
1131 * libitm.texi: No cover text and invariant sections.
1132
11332011-11-03 Richard Henderson <rth@redhat.com>
1134
1135 * local_type_traits: New file.
1136 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1137
11382011-11-03 Richard Henderson <rth@redhat.com>
1139
1140 * configure.ac: Don't test for gfortran.
1141 * configure: Rebuild.
1142
1143 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1144 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1145
11462011-11-03 Aldy Hernandez <aldyh@redhat.com>
1147
1148 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1149 * testsuite/libitm.c/memset-1.c: Same.
1150 * testsuite/libitm.c/c.exp: Same.
1151 * testsuite/lib/libitm-dg.exp: Same.
1152 * testsuite/lib/libitm.exp: Same.
1153 * testsuite/libitm.c++/c++.exp: Same.
1154
11552011-11-03 Aldy Hernandez <aldyh@redhat.com>
1156
1157 * testsuite/config/default.exp: Update copyright date.
1158 * configure.ac: Add copyright info.
1159 * configure.tgt: Same.
1160
11612011-11-03 Aldy Hernandez <aldyh@redhat.com>
1162
1163 * testsuite/libitm.c/reentrant.c: XFAIL.
1164 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1165
11662011-10-29 Torvald Riegel <triegel@redhat.com>
1167
1168 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1169 handle aborts.
1170 (_ITM_abortTransaction): Handle aborts of outer transactions.
1171 * libitm_i.h: Same.
1172 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1173 * libitm.texi: Document aborts of outer transactions.
1174 * testsuite/libitm.c/cancel.c: New file.
1175
11762011-10-19 Torvald Riegel <triegel@redhat.com>
1177
1178 * testsuite/*: Change __transaction to __transaction_atomic or
1179 __transaction_relaxed.
1180
11812011-10-19 Torvald Riegel <triegel@redhat.com>
1182
1183 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1184 (gtm_thr): Same.
1185
11862011-10-19 Torvald Riegel <triegel@redhat.com>
1187
1188 * libitm_i.h: Add gl_wt dispatch.
1189 * retry.cc (parse_default_method): Same.
1190 * method-gl.cc: New file.
1191 * Makefile.am: Use method-gl.cc.
1192 * Makefile.in: Rebuild.
1193
11942011-10-19 Torvald Riegel <triegel@redhat.com>
1195
1196 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1197 safety if requested by a TM method.
1198 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1199 privatization safety.
1200 * method-serial.cc: Same.
1201
12022011-10-19 Torvald Riegel <triegel@redhat.com>
1203
1204 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1205 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1206 undolog-related member functions from *_local to *_undolog.
1207 * local.cc (gtm_thread::commit_undolog): Same.
1208 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1209 (GTM::gtm_thread::rollback): Roll back undolog before
1210 dispatch-specific rollback.
1211
12122011-10-19 Torvald Riegel <triegel@redhat.com>
1213
1214 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1215 re-initialization of the current method group.
1216 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1217
12182011-10-19 Torvald Riegel <triegel@redhat.com>
1219
1220 * alloc.cc (commit_allocations_2): Do not free transaction-local
1221 memory when committing a nested transaction.
1222
12232011-10-19 Torvald Riegel <triegel@redhat.com>
1224
1225 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1226 serial-irrevocable dispatch, not serial.
1227
12282011-10-19 Torvald Riegel <triegel@redhat.com>
1229
1230 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1231 declarations.
1232 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1233 * method-serial.cc: Implement begin_or_restart().
1234 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1235 dispatch-specific begin_or_restart().
1236 (GTM::gtm_thread::restart): Same.
1237
12382011-08-23 Torvald Riegel <triegel@redhat.com>
1239
1240 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1241 restarting without switching to serial mode.
1242 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1243 transaction state. Choose closed-nesting alternative if available.
1244 (GTM::gtm_thread::set_default_dispatch): New.
1245 (parse_default_method): New.
1246 (GTM::gtm_thread::number_of_threads_changed): New.
1247 * method-serial.cc (GTM::serial_mg): New method group class.
1248 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1249 fini.
1250 (GTM::serial_dispatch): Same.
1251 (GTM::serialirr_onwrite_dispatch): Same.
1252 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1253 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1254 registered threads.
1255 (GTM::gtm_thread::gtm_thread): Same.
1256 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1257 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1258 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1259 choose dispatch but set state according to dispatch here.
1260 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1261 (GTM::method_group): New class.
1262 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1263 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1264 * libitm.texi: Document TM methods, method groups, method life cycle.
1265 Rename method sets to method groups.
1266
12672011-08-23 Torvald Riegel <triegel@redhat.com>
1268
1269 * config/x86/tls.h: Moved to ...
1270 * config/linux/x86/tls.h: ... here.
1271
12722011-08-23 Torvald Riegel <triegel@redhat.com>
1273
1274 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1275 Add X32 support.
1276 * config/x86/sjlj.S: Same.
1277
12782011-08-19 Torvald Riegel <triegel@redhat.com>
1279
1280 * config/linux/rwlock.h: New file.
1281 * config/linux/rwlock.c: New file.
1282 * configure.ac: Reenable futex support (undo SVN rev 157758).
1283 * Makefile.am: Same.
1284 * configure.tgt: Same.
1285 * config/linux/alpha/futex_bits.h: Same.
1286 * config/linux/futex.h: Same. Return number of woken processes.
1287 * config/linux/futex.cc: Same.
1288 (futex_wait): Remove spinning.
1289 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1290 Use __x86_64__ instead of __LP64__.
1291 * aclocal.m4: Include generic futex checks.
1292 * configure: Rebuild.
1293 * Makefile.in: Rebuild.
1294 * testsuite/Makefile.in: Rebuild.
1295 * beginend.cc: Include pthread.h.
1296 * config/posix/cachepage.cc: Same.
1297
12982011-08-12 Torvald Riegel <triegel@redhat.com>
1299
1300 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1301 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1302 (set_gtm_thr): New.
1303 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1304 (set_gtm_thr): New.
1305 (GTM::gtm_thread::thread_num): Removed.
1306 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1307 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1308 tx-to-thread renaming.
1309 * beginend.cc: Adapted to tx-to-thread renaming.
1310 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1311 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1312 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1313 gtm_transaction to gtm_thread.
1314 (_ITM_getThreadnum): Removed. Not supported anymore.
1315 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1316 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1317 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1318 gtm_tx-to-gtm_thr renaming if necessary.
1319 * eh_cpp.cc: Same.
1320 * local.cc: Same.
1321 * retry.cc: Same.
1322 * clone.cc: Same.
1323 * alloc.cc: Same.
1324 * alloc_c.cc: Same.
1325 * alloc_cpp.cc: Same.
1326 * method-serial.cc: Same.
1327 * config/generic/tls.cc: Same.
1328 * config/posix/rwlock.h (gtm_rwlock): Same.
1329 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1330
13312011-08-12 Torvald Riegel <triegel@redhat.com>
1332
1333 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1334 implementation.
1335 (gtm_rwlock::read_unlock): Same.
1336 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1337 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1338 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1339 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1340 w_upgrade. Replaced by per-transaction flags (in shared_state).
1341 Added c_confirmed_writers.
1342 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1343 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1344 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1345 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1346 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1347 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1348 * libitm.texi: Document locking conventions and implementations in
1349 libitm.
1350
13512011-08-12 Torvald Riegel <triegel@redhat.com>
1352
1353 * libitm_i.h (next_tx): Add list of all threads' transaction.
1354 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1355 transaction with list of transactions and ...
1356 (thread_exit_handler): ... deregister here.
1357 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1358 * config/x86/target.h: Same.
1359
13602011-08-12 Torvald Riegel <triegel@redhat.com>
1361
1362 * testsuite/libitm.c++/static_ctor.C: New file.
1363
13642011-08-12 Torvald Riegel <triegel@redhat.com>
1365
1366 * testsuite/libitm.c/reentrant.c: New file.
1367
13682011-08-12 Torvald Riegel <triegel@redhat.com>
1369
1370 * config/generic/tls.h: Remove the free list for transactions and ...
1371 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1372 (GTM::gtm_transaction::operator delete): ... and release here.
1373 (thread_exit_handler): New. Delete tx when thread terminates.
1374 (thread_exit_init): New.
1375 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1376 * testsuite/libitm.c/txrelease.c: New file.
1377
13782011-08-12 Torvald Riegel <triegel@redhat.com>
1379
1380 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1381 * testsuite/libitm.c/notx.c: New file.
1382
13832011-08-12 Torvald Riegel <triegel@redhat.com>
1384
1385 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1386 * libitm_i.h (local_tid): ... to here.
1387 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1388 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1389
13902011-08-12 Torvald Riegel <triegel@redhat.com>
1391
1392 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1393 serialirr_onwrite_dispatch as new default for now.
1394 * method-serial.cc (serialirr_onwrite_dispatch): New.
1395 (GTM::dispatch_serialirr_onwrite): New.
1396 * libitm_i.h: Same.
1397
13982011-08-12 Torvald Riegel <triegel@redhat.com>
1399
1400 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1401 * query.cc (_ITM_getTransactionId): There is no active transaction if
1402 the current nesting level is zero.
1403
14042011-07-28 Torvald Riegel <triegel@redhat.com>
1405
1406 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1407 rollback.
1408
14092011-07-28 Torvald Riegel <triegel@redhat.com>
1410
1411 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1412 transaction properties from the caller instead of from the
1413 transaction object.
1414 * libitm_i.h: Same.
1415 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1416
14172011-07-28 Torvald Riegel <triegel@redhat.com>
1418
1419 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1420 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1421 * dispatch.h: Same.
1422 * method-serial.cc: Same.
1423 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1424 flat nesting as default, and closed nesting on demand.
1425 (GTM::gtm_transaction::rollback): Same.
1426 (_ITM_abortTransaction): Same.
1427 (GTM::gtm_transaction::restart): Same.
1428 (GTM::gtm_transaction::trycommit): Same.
1429 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1430 (choose_code_path): New.
1431 (GTM::gtm_transaction_cp::save): New.
1432 (GTM::gtm_transaction_cp::commit): New.
1433 * query.cc (_ITM_inTransaction): Support flat nesting.
1434 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1435 (GTM::gtm_transaction): Support flat and closed nesting.
1436 * alloc.cc (commit_allocations_2): New.
1437 (commit_cb_data): New helper struct.
1438 (GTM::gtm_transaction::commit_allocations): Handle nested
1439 commits/rollbacks.
1440 * libitm.texi: Update user action section, add description of nesting.
1441
14422011-07-28 Torvald Riegel <triegel@redhat.com>
1443
1444 * libitm_i.h: Add closed nesting as restart reason.
1445 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1446
14472011-07-28 Torvald Riegel <triegel@redhat.com>
1448
1449 * useraction.cc: Use vector instead of list to store actions.
1450 Also support partial rollbacks for closed nesting.
1451 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1452 * beginend.cc: Same.
1453
14542011-07-28 Torvald Riegel <triegel@redhat.com>
1455
1456 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1457 closed_nesting flags, as well as a closed nesting alternative.
1458 * method-serial.cc: Same.
1459 (serial_dispatch): Renamed to serialirr_dispatch.
1460 (GTM::dispatch_serialirr): Same.
1461 (serial_dispatch_ul): Renamed to serial_dispatch.
1462 (GTM::dispatch_serial): Same.
1463
14642011-07-28 Torvald Riegel <triegel@redhat.com>
1465
1466 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1467
14682011-07-28 Torvald Riegel <triegel@redhat.com>
1469
1470 * aatree.h (aa_tree::remove): New.
1471 (aa_tree::operator new): Add placement new.
1472
14732011-07-02 Torvald Riegel <triegel@redhat.com>
1474
1475 * containers.h: New file.
1476 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1477 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1478 * common.h: ... to here.
1479 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1480 * local.cc: Same.
1481
14822011-06-30 Torvald Riegel <triegel@redhat.com>
1483
1484 * libitm_i.h (STATE_ABORTING): Remove.
1485 * beginend.cc (_ITM_abortTransaction): Same.
1486 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1487 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1488 (_ITM_rollbackTransaction): Remove.
1489 * beginend.cc: Same.
1490 * libitm.map: Same.
1491 * libitm.texi: Document these ABI changes.
1492
14932011-06-30 Torvald Riegel <triegel@redhat.com>
1494
1495 * libitm.texi: New file.
1496 * Makefile.am: Add libitm.texi.
1497 * Makefile.in: Rebuild.
1498
14992011-06-30 Torvald Riegel <triegel@redhat.com>
1500
1501 * libitm_i.h: Move parts to common.h and dispatch.h.
1502 * common.h: New file.
1503 * dispatch.h: New file, new dispatch class.
1504 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1505 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1506 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1507 decision to retry.cc.
1508 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1509 only.
1510 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1511 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1512 logging.
1513 * barrier.cc: Use new barriers definitions.
1514 (abi_dispatch::memmove_overlap_check): New.
1515 * config/x86/x86_sse.cc: Same.
1516 * config/x86/x86_avx.cc: Same.
1517 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1518 memcpy.cc.
1519 * Makefile.in: Rebuild.
1520 * method-readonly.cc: Remove.
1521 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1522 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1523
15242011-06-30 Torvald Riegel <triegel@redhat.com>
1525
1526 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1527 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1528 * testsuite/libitm.c/dropref-2.c: Same.
1529 * testsuite/libitm.c/dropref.c: Same.
1530
15312011-06-30 Torvald Riegel <triegel@redhat.com>
1532
1533 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1534 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1535 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1536 * alloc_c.cc: Same.
1537 * barrier.tpl: Same.
1538 * beginend.c: Same.
1539 * config/generic/tls.h: Same.
1540 * config/x86/tls.h: Same.
1541 * libitm_i.h: Same.
1542 * memcpy.cc: Same.
1543 * memset.cc: Same.
1544 * method-readonly.cc: Same.
1545 * method-serial.cc: Same.
1546 * method-wbetl.cc: Same.
1547 * retry.cc: Same.
1548
15492011-03-03 Richard Henderson <rth@redhat.com>
1550
1551 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1552 From Patrik Marlier <patrick.marlier@unine.ch>.
1553
15542011-02-03 Richard Henderson <rth@redhat.com>
1555
1556 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1557 * configure.ac: Use it.
1558 * configure, config.h.in: Rebuild.
1559 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1560 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1561 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1562 * libitm.map: Use wildcards to match size_t mangling.
1563
15642010-12-14 Richard Henderson <rth@redhat.com>
1565
1566 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1567 blocks of TIDs per thread.
1568 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1569 (setup_gtm_thr): Return the thread structure.
1570 * config/x86/tls.h (setup_gtm_thr): Likewise.
1571
15722010-12-14 Richard Henderson <rth@redhat.com>
1573
1574 * clone.cc (table_lock): Remove.
1575 (find_clone): Don't take it.
1576 (ExcludeTransaction): New helper class.
1577 (_ITM_registerTMCloneTable): Use it.
1578 (_ITM_deregisterTMCloneTable): Likewise.
1579
15802010-12-14 Richard Henderson <rth@redhat.com>
1581
1582 * config/x86/tls.h: New file.
1583
15842010-07-15 Richard Henderson <rth@redhat.com>
1585
1586 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1587 * Makefile.in: Rebuild.
1588
15892010-07-13 Aldy Hernandez <aldyh@redhat.com>
1590
1591 * method-wbetl.cc (trydropreference): Fix source line.
1592
15932010-07-13 Aldy Hernandez <aldyh@redhat.com>
1594
1595 * libitm.h: Add comment.
1596 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1597
15982010-07-07 Aldy Hernandez <aldyh@redhat.com>
1599
1600 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1601 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1602 available, use pthread mutexes.
1603 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1604 * config.h.in: Regenerate.
1605 * configure: Regenerate.
1606
16072010-07-06 Aldy Hernandez <aldyh@redhat.com>
1608
1609 * libitm.h (ITM_PURE): Define.
1610 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1611
16122010-06-28 Aldy Hernandez <aldyh@redhat.com>
1613
1614 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1615 (validate): Add comment.
1616 (trydropreference): New.
1617 * method-readonly.cc (class readonly_dispatch): Add
1618 trydropreference.
1619 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1620 Call trydropreference().
1621 * libitm.h (_ITM_dropReferences): Remove const attribute.
1622 * method-serial.cc (class serial_dispatch): Add trydropreference.
1623 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1624
16252010-06-28 Aldy Hernandez <aldyh@redhat.com>
1626
1627 * memcpy.cc (do_memcpy): Comment.
1628
16292010-06-25 Aldy Hernandez <aldyh@redhat.com>
1630
1631 * barrier.tpl: Add comments throughout.
1632
16332010-06-24 Aldy Hernandez <aldyh@redhat.com>
1634
1635 * method-wbetl.cc (struct w_entry): Add comments.
1636 (trycommit): Same.
1637 (rollback): Same.
1638
16392010-06-24 Aldy Hernandez <aldyh@redhat.com>
1640
1641 * alloc_c.cc (_ITM_dropReferences): New.
1642 * libitm.map (_ITM_dropReferences): Add.
1643 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1644 * libitm_i.h (struct gtm_transaction): Declare
1645 drop_references_allocations and drop_references_local.
1646 * local.cc (rollback_local): Ignore memory when applicable.
1647 (drop_references_local): New.
1648
16492010-06-23 Richard Henderson <rth@redhat.com>
1650
1651 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1652 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1653 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1654 * config/alpha/target.h: Likewise.
1655 * config/generic/tls.cc (gtm_mask_stack): Use it.
1656
16572010-06-23 Richard Henderson <rth@redhat.com>
1658
1659 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1660 a mutex instead of trying a lock-free compare-and-swap on the list.
1661 (gtm_cacheline_page::operator delete): Likewise.
1662
16632010-06-16 Richard Henderson <rth@redhat.com>
1664
1665 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1666 that overlap the libitm stack.
1667 * barrier.tpl: Mark incoming stack.
1668 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1669 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1670 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1671 * memcpy.cc, memset.cc: Likewise.
1672 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1673 * config/generic/tls.h (gtm_thread): Add stack_top member.
1674 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1675 * libitm_i.h (gtm_mask_stack): Declare.
1676 * config/generic/tls.cc: New file.
1677 * Makefile.am (libitm_la_SOURCES): Add it.
1678 (AM_CXXFLAGS): Turn off exceptions.
1679 * Makefile.in: Rebuild.
1680
16812010-06-16 Richard Henderson <rth@redhat.com>
1682
1683 * alloc.cc (struct gtm_alloc_action): Move definition ...
1684 * libitm_i.h: ... here.
1685 (class gtm_transaction): Declare new and delete.
1686 * beginend.cc (alloc_tx): Reformulate as operator new.
1687 (free_tx): Reformulate as operator delete.
1688 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1689
16902010-06-11 Richard Henderson <rth@redhat.com>
1691
1692 * clone.cc (clone_entry_compare): Fix typo.
1693 From Patrik Marlier <patrick.marlier@unine.ch>.
1694
16952010-05-13 Richard Henderson <rth@redhat.com>
1696
1697 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1698 in extern "C".
1699
17002010-05-07 Aldy Hernandez <aldyh@redhat.com>
1701
1702 * libitm_i.h (struct gtm_transaction): Remove
1703 get_allocation_size.
1704 (record_allocation): Remove size parameter.
1705 * libitm.map (_ITM_realloc): Remove.
1706 * alloc_c.cc (_ITM_realloc): Remove.
1707 (_ITM_malloc): Remove size argument to record_allocation.
1708 (_ITM_calloc): Same.
1709 * alloc_cpp.cc (_ZGTtnwm): Same.
1710 (_ZGTtnwmRKSt9nothrow_t): Same.
1711 (_ZGTtnam): Same.
1712 (_ZGTtnamRKSt9nothrow_t): Same.
1713 * alloc.cc (struct gtm_alloc_action): Remove size.
1714 (get_allocation_size): Remove.
1715 (commit_allocations): Add comment.
1716 (record_allocation): Remove size parameter.
1717 (forget_allocation): Remove set of size.
1718
17192010-04-19 Aldy Hernandez <aldyh@redhat.com>
1720
1721 * Makefile.am (abi_version): New.
1722 (AM_CXXFLAGS): Pass abi_version.
1723 * Makefile.in: Regenerate.
1724 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1725
17262010-04-06 Aldy Hernandez <aldyh@redhat.com>
1727
1728 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1729 _ITM_getTMCloneOrIrrevokable.
1730 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1731 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1732
17332010-03-26 Aldy Hernandez <aldyh@redhat.com>
1734
1735 * configure.ac: Remove Linux futex support.
1736 * configure.tgt (config_path): Same.
1737 * Makefile.am: Same.
1738 * config/linux: Remove entire directory.
1739 * configure: Rebuild.
1740 * Makefile.in: Rebuild.
1741 * testsuite/Makefile.in: Rebuild.
1742
17432010-03-09 Aldy Hernandez <aldyh@redhat.com>
1744
1745 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1746 switching to serial mode.
1747 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1748
17492010-03-03 Aldy Hernandez <aldyh@redhat.com>
1750
1751 * configure.tgt: Add emacs -*- tags.
1752 * barrier.tpl: Same.
1753
17542010-02-23 Aldy Hernandez <aldyh@redhat.com>
1755
1756 * Makefile.am: Rename serial.cc to method-serial.cc.
1757 * Makefile.in: Regenerate with automake 1.11.1.
1758 * testsuite/Makefile.in: Same.
1759 * aclocal.m4: Regenerate with aclocal 1.11.1.
1760 * method-serial.cc: Rename from serial.cc.
1761 * libitm_i.h (struct gtm_transaction): Update comment on
1762 serialirr_mode.
1763
17642010-02-22 Aldy Hernandez <aldyh@redhat.com>
1765
1766 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1767 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1768
17692010-02-11 Aldy Hernandez <aldyh@redhat.com>
1770
1771 * configure: Rebuild.
1772
17732009-11-12 Richard Henderson <rth@redhat.com>
1774
1775 * Rewrite everything in C++.
1776
17772009-11-03 Richard Henderson <rth@redhat.com>
1778
1779 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1780 * Makefile.am (libitm_la_SOURCES): Add them.
1781 * configure.ac (ARCH_X86): New conditional.
1782 * Makefile.in, configure: Rebuild.
1783 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1784 Move futex setup into "other system configury" case.
1785 * local.c (rollback_local): Merge into ...
1786 (GTM_rollback_local): ... here.
1787 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1788 (_ITM_LB): Define as an alias to GTM_LB.
1789
17902009-11-03 Richard Henderson <rth@redhat.com>
1791
1792 * method-readonly.c: New file.
1793 * Makefile.am (libitm_la_SOURCES): Add it.
1794 * Makefile.in: Rebuild.
1795 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1796 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1797 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1798 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1799 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1800 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1801 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1802 gtm_get_clock, gtm_inc_clock): New.
1803 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1804 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1805 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1806 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1807 replace uses with new libitm_i.h symbols.
1808 (dispatch_wbetl): Rename from wbetl_dispatch.
1809 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1810 away from dispatch_readonly; abort if the beginTransaction call
1811 asserted that the transaction was readonly.
1812
18132009-11-03 Richard Henderson <rth@redhat.com>
1814
1815 * memset.c: New file.
1816 * Makefile.am (libitm_la_SOURCES): Add it.
1817 * Makefile.in: Rebuild.
1818 * testsuite/libitm.c/memset-1.c: New.
1819
18202009-11-03 Richard Henderson <rth@redhat.com>
1821
1822 * dispatch.c: Remove file.
1823 * useraction.c (struct gtm_user_action): Move from libitm.h.
1824 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1825 (serial_memset, serial_memmove, serial_memcpy): Remove.
1826 (serial_W*, serial_R*): Remove.
1827 (serial_dispatch): Update to match.
1828 * configure.ac: Move Werror down below configure checks. Don't
1829 check for sys/loadavg.h, do check for malloc.h. Don't check for
1830 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1831 Use GCC_AC_FUNC_MMAP_BLACKLIST
1832 * libitm.h: Split out all internal items to...
1833 * libitm_i.h: ... here. New file.
1834 * copymask.c: New file.
1835 * local.c (struct gtm_local_undo): Move from libitm.h.
1836 (GTM_alloc_local): Rename from alloc_local; export.
1837 * memcpy.c: New file.
1838 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1839 * config/posix/page.c: New file.
1840 * config/posix/target_tls.h: Remove file.
1841 * barrier.c: New file.
1842 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1843 copymask.c, page.c.
1844 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1845 * method-wbetl.c: Rewrite for new cacheline methods.
1846 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1847
1848 * config/alpha/sjlj.S: Fix typo.
1849 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1850 * config/alpha/copymask.c: New file.
1851 * config/alpha/target.h (CACHELINE_SIZE): New.
1852 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1853
1854 * config/x86/target_i.h: Copy functions from x86/target.h.
1855 * config/x86/copymask.c: New file.
1856 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1857 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1858 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1859 * config/x86/target_tls.h: Move contents to target_i.h.
1860
1861 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1862 * testsuite/libitm.c/memcpy-1.c: New.
1863
18642009-10-22 Richard Henderson <rth@redhat.com>
1865
1866 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1867 (AM_CCASFLAGS): New.
1868 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1869 saving/restoring _AC_ARG_VAR_PRECIOUS.
1870 * Makefile.in, aclocal.m4, config.h.in, configure,
1871 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1872
18732009-10-22 Richard Henderson <rth@redhat.com>
1874
1875 * testsuite/*: Update for new compiler syntax.
1876
18772009-10-21 Richard Henderson <rth@redhat.com>
1878
1879 * libitm.h (_ITM_abortReason): Add outerAbort.
1880
18812009-08-03 Richard Henderson <rth@redhat.com>
1882
1883 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1884 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1885 * method-wbetl.c (struct w_entry): Remove mask.
1886 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1887 adjust all callers.
1888
18892009-07-22 Richard Henderson <rth@redhat.com>
1890
1891 * eh_cpp.c: New file.
1892 * Makefile.am (libitm_la_SOURCES): Add it.
1893 * Makefile.in: Rebuild.
1894 * beginend.c (GTM_rollback_transaction): Undo exception state.
1895 (GTM_trycommit_transaction): Mark inline.
1896 (GTM_trycommit_and_finalize_transaction): Split out from ...
1897 (_ITM_commitTransaction): ... here.
1898 (_ITM_commitTransactionEH): New function.
1899 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1900 cxa_unthrown, eh_in_flight; reorder.
1901
1902 * testsuite/libitm.c++/c++.exp: New.
1903 * testsuite/libitm.c++/eh-1.C: New.
1904
1905 * aatree.c (aa_free): Remove REGPARM.
1906 * aatree.h: Remove all REGPARM.
1907
19082009-07-18 Richard Henderson <rth@redhat.com>
1909
1910 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1911 * Makefile.am (libitm_la_SOURCES): Add them.
1912 * Makefile.in: Rebuild.
1913 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1914 (GTM_trycommit_transaction): Likewise.
1915 * libitm.h: Include aatree.h
1916 (struct gtm_alloc_action): New.
1917 (struct gtm_transaction): Add alloc_actions.
1918 (GTM_record_allocation, GTM_forget_allocation): Declare.
1919 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1920 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1921 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1922 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1923 _ZGTtdaPvRKSt9nothrow_t): Export.
1924
19252009-07-18 Richard Henderson <rth@redhat.com>
1926
1927 * target_tls.h: Move ...
1928 * config/posix/target_tls.h: ... here.
1929
19302009-07-07 Richard Henderson <rth@redhat.com>
1931
1932 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1933
19342009-07-07 Richard Henderson <rth@redhat.com>
1935
1936 * Update to GPL3.
1937
19382009-07-07 Richard Henderson <rth@redhat.com>
1939
1940 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1941 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1942
1943 * configure.tgt: Don't use -ftls-model for x86 linux.
1944 * libitm.h: Include target.h after standard includes.
1945 (_gtm_thr): Rename from gtm_thr.
1946 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1947 (gtm_disp, set_gtm_disp): New.
1948 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1949 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1950 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1951
19522009-07-07 Richard Henderson <rth@redhat.com>
1953
1954 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1955
19562009-07-06 Richard Henderson <rth@redhat.com>
1957
1958 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1959 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1960 (_ITM_beginTransaction): Take variadic arguments.
1961 (_ITM_registerThrownObject): Declare.
1962 * beginend.c, serial.c: Update.
1963 * libitm.map: Add _ITM_registerThrownObject.
1964
19652009-01-28 Richard Henderson <rth@redhat.com>
1966
1967 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1968 * Makefile.in: Rebuild.
1969 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1970 (GTM_restart_transaction): Fix uninstrumented code check.
1971 * retry.c (GTM_decide_retry_strategy): Add serial check.
1972 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1973 automatically go irrevokable when in serial mode.
1974 * clone.c: New file.
1975 * libitm.h, libitm.map: Update.
1976
19772009-01-27 Richard Henderson <rth@redhat.com>
1978
1979 * Makefile.am (LTCCASCOMPILE): Define.
1980 (libitm_la_SOURCES): Add methid-wbetl.c.
1981 * testsuite/Makefile.am: New
1982 * configure.ac: Add testsuite/Makefile.
1983 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1984 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1985 (_ITM_abortTransaction): Finalize implementation method; pass
1986 transaction properties to longjmp.
1987 (GTM_restart_transaction): Split out from ...
1988 (_ITM_commitTransaction): ... here.
1989 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1990 Move to config/x86/target.h.
1991 * config/linux/alpha/futex_bits.h: New.
1992 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1993 * config/x86/target.h: Disable target types for 32-bit.
1994 * config/alpha/sjlj.S, config/alpha/target.h: New.
1995 * libitm.h (struct gtm_dispatch): Add init, fini.
1996 (enum restart_reason): New.
1997 (struct gtm_transaction): Add method and restarts.
1998 * retry.c (GTM_decide_retry_strategy): Implement.
1999 * serial.c (serial_init, serial_fini): New.
2000 (GTM_serialmode): Finialize outgoing method.
2001 * method-wbetl.c: New.
2002
20032008-12-09 Richard Henderson <rth@redhat.com>
2004
2005 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2006 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2007 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2008 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2009 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2010 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2011 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2012 * serial.c (serial_R##T, serial_W##T): Likewise.
2013
20142008-11-21 Richard Henderson <rth@redhat.com>
2015
2016 * Initial commit.
21fa2a29 2017\f
c1a9c369 2018Copyright (C) 2008-2017 Free Software Foundation, Inc.
21fa2a29
JJ
2019
2020Copying and distribution of this file, with or without modification,
2021are permitted in any medium without royalty provided the copyright
2022notice and this notice are preserved.