]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR tree-optimization/92751 (VN partial def support confused about clobbers)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
e9085da5
MR
12019-09-27 Maciej W. Rozycki <macro@wdc.com>
2
3 * configure: Regenerate.
4
b1e21e5a
CL
52019-09-10 Christophe Lyon <christophe.lyon@st.com>
6
a360a359
CL
7 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
8
92019-09-10 Christophe Lyon <christophe.lyon@st.com>
10
11 * configure.tgt: Handle *-*-uclinux*.
12 * configure: Regenerate.
b1e21e5a 13
3c086f8d
FW
142019-09-06 Florian Weimer <fweimer@redhat.com>
15
16 * configure: Regenerate.
17
c6c2d1bc
CLT
182019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
19
20 PR other/79543
21 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
22 scanning to conform to the GNU Coding Standards.
23 * configure: Regenerate.
24
061a799b
JJ
252019-05-03 Jakub Jelinek <jakub@redhat.com>
26
27 * Makefile.am (finclude): Remove.
28 * Makefile.in: Regenerated.
29
a5544970
JJ
302019-01-01 Jakub Jelinek <jakub@redhat.com>
31
32 Update copyright years.
33
3f27508c
JJ
342019-01-01 Jakub Jelinek <jakub@redhat.com>
35
36 * libitm.texi: Bump @copying's copyright year.
37
784417d1
JJ
382018-12-16 Jakub Jelinek <jakub@redhat.com>
39
40 PR c++/88482
41 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
42 void * to void (*) (void *).
43 (_ITM_cxa_throw): Likewise.
44 * libitm.h (_ITM_cxa_throw): Likewise.
45 * libitm.texi (_ITM_cxa_throw): Likewise.
46
d1573fe0
PB
472018-12-13 Peter Bergner <bergner@linux.ibm.com>
48
49 * config/powerpc/target.h (htm_available): Add support for
50 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
51
22e05272
JM
522018-10-31 Joseph Myers <joseph@codesourcery.com>
53
54 PR bootstrap/82856
55 * Makefile.am: Include multilib.am.
56 (AUTOMAKE_OPTIONS): Add info-in-builddir.
57 (CLEANFILES): Remove libitm.info.
58 * configure.ac: Remove AC_PREREQ.
59 * testsuite/Makefile.am (RUNTEST): Remove quotes.
60 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
61 Regenerate.
62
1f82422a
NK
632018-10-30 Nicholas Krause <xerofoify@gmail.com>
64
a2e0398a 65 PR libitm/86293
1f82422a
NK
66 * method-serial.cc: Mark varible as potentially unused
67 to silence warning.
68
f6a9dfd3
ST
692018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
70
71 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
72 absolute relocation in a shared library.
73
97cad511
L
742018-06-12 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR libitm/85988
77 * config/linux/x86/tls.h (SEG_READ): Use the offset of
78 __private_tm as base.
79 (SEG_WRITE): Likewise.
80 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
81 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
82 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
83 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
84 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
85
b46b715d
JM
862018-05-17 Jason Merrill <jason@redhat.com>
87
88 * beginend.cc (save): Disable -Werror=deprecated-copy.
89
9220b511
TV
902018-05-02 Tom de Vries <tom@codesourcery.com>
91
92 PR testsuite/85106
93 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
94
6c3c13c1
TV
952018-05-02 Tom de Vries <tom@codesourcery.com>
96
97 PR testsuite/85106
98 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
99
ffc2fc06
L
1002018-04-24 H.J. Lu <hongjiu.lu@intel.com>
101
102 * config/x86/sjlj.S (_ITM_beginTransaction): Add
103 (__CET__ & 2) != 0 check for shadow stack.
104 (GTM_longjmp): Likewise.
105
7b47ecf2
L
1062018-04-24 H.J. Lu <hongjiu.lu@intel.com>
107
108 * configure: Regenerated.
109
0ef9f21d
L
1102018-04-23 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR target/85489
113 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
114
a0e1df88
JJ
1152018-04-19 Jakub Jelinek <jakub@redhat.com>
116
117 * configure: Regenerated.
118
001ddaa8
DM
1192018-04-18 David Malcolm <dmalcolm@redhat.com>
120
121 PR jit/85384
122 * configure: Regenerate.
123
14e335ed
IT
1242018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
125
126 PR target/84148
127 * configure: Regenerate.
128
65e6aea3
JJ
1292018-01-03 Jakub Jelinek <jakub@redhat.com>
130
85ec4feb
JJ
131 Update copyright years.
132
65e6aea3
JJ
133 * libitm.texi: Bump @copying's copyright year.
134
c51081fc
IT
1352017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
136
137 * Makefile.in: Regenerate.
138 * acinclude.m4: Add enable.m4 and cet.m4.
139 * config/x86/sjlj.S: Include cet.h.
140 (_ITM_beginTransaction): Add _CET_ENDBR.
141 Save Shadow Stack pointer.
142 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
143 * config/x86/target.h (struct gtm_jmpbuf):
144 Add new field for Shadow Stack pointer.
145 * configure: Regenerate.
146 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
147 * configure.ac: Update libtool_VERSION for x86.
148 * testsuite/Makefile.in: Regenerate.
149
cc03e55b
IT
1502017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
151
152 * libitm/config/x86/target.h: Add new field (ssp).
153 * libitm/config/x86/sjlj.S: Change offsets.
154
62ffe920
RO
1552017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
156
157 * testsuite/lib/libitm.exp: Load scanlang.exp.
158
5764ee3c
JW
1592017-04-03 Jonathan Wakely <jwakely@redhat.com>
160
161 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
162
73aa401e
JJ
1632017-01-21 Jakub Jelinek <jakub@redhat.com>
164
165 PR other/79046
166 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
167 of cat to get version from BASE-VER file.
168 * testsuite/Makefile.in: Regenerated.
169
16a34ca6
UB
1702017-01-19 Uros Bizjak <ubizjak@gmail.com>
171
172 * config/x86/target.h (htm_available): Determine vendor from
173 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
174
f8a94453
TR
1752017-01-18 Torvald Riegel <triegel@redhat.com>
176
177 * config/x86/target.h (htm_available): Add check for some processors
178 on which TSX is broken.
179
3c36aa6b
JJ
1802017-01-17 Jakub Jelinek <jakub@redhat.com>
181
182 PR other/79046
183 * configure.ac: Add GCC_BASE_VER.
184 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
185 get version from BASE-VER file.
186 * testsuite/Makefile.in: Regenerated.
187 * configure: Regenerated.
188 * Makefile.in: Regenerated.
189
8f56cb51
AM
1902017-01-04 Alan Modra <amodra@gmail.com>
191
192 * Makefile.in: Regenerate.
193 * testsuite/Makefile.in: Regenerate.
194
c1a9c369
JJ
1952017-01-01 Jakub Jelinek <jakub@redhat.com>
196
cbe34bb5
JJ
197 Update copyright years.
198
c1a9c369
JJ
199 * libitm.texi: Bump @copying's copyright year.
200
66dbcf2d
RO
2012016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
202
203 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
204 * aclocal.m4: Regenerate.
205 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
206 LIBITM_CHECK_LINKER_HWCAP.
207
84c1b9d3
MK
2082016-11-15 Matthias Klose <doko@ubuntu.com>
209
210 * configure: Regenerate.
211
831698b8
L
2122016-04-19 H.J. Lu <hongjiu.lu@intel.com>
213
214 PR libitm/70456
215 * util.cc (xmalloc): Use posix_memalign to allocate memory on
216 on cache line if requested.
217
edcbda7e
DV
2182016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
219
220 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
221 function attribute to disable floating point in begin_transaction() on
222 S/390.
223 * beginend.cc (begin_transaction): Use
224 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
225
6041f70a
TR
2262016-01-22 Torvald Riegel <triegel@redhat.com>
227
228 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
229 boundary.
230 (htm_fastpath): Remove.
231 (gtm_thread::begin_transaction): Fix HTM fastpath.
232 (_ITM_commitTransaction): Adapt.
233 (_ITM_commitTransactionEH): Adapt.
234 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
235 and accessors.
236 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
237 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
238 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
239 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
240 * libitm/method-serial.cc (htm_mg): Adapt.
241 (gtm_thread::serialirr_mode): Adapt.
242 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
243
0b96ffdb
TR
2442016-01-21 Torvald Riegel <triegel@redhat.com>
245
246 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
247 or AIX.
248
b1de98e3
RH
2492016-01-19 Richard Henderson <rth@redhat.com>
250
251 PR bootstrap/69343
252 PR bootstrap/69339
253 Revert:
254 2016-01-13 Richard Henderson <rth@redhat.com>
255
256 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
257 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
258 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
259 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
260 * configure.ac (ARCH_AARCH64): New conditional.
261 (ARCH_PPC, ARCH_S390): Likewise.
262 * Makefile.in, configure: Rebuild.
263
264 * libitm.h (_ITM_TYPE_M128): Always define.
265 * vect64.cc: Split ...
266 * vect128.cc: ... out of...
267 * config/x86/x86_sse.cc: ... here.
268 * config/arm/neon.cc: New file.
269
f57fc960
TR
2702016-01-19 Torvald Riegel <triegel@redhat.com>
271
272 * local_type_traits: Remove file.
273 * libitm_i.h: Don't include it anymore.
274 (sized_integral): Remove.
275
d2653984
TR
2762016-01-16 Torvald Riegel <triegel@redhat.com>
277
278 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
279 safety.
280 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
281 * libitm/testsuite/libitm.c/priv-1.c: New.
282
a04d5fc9
TR
2832015-01-15 Torvald Riegel <triegel@redhat.com>
284
285 testsuite/libitm.c++/libstdc++-safeexc.C: New.
286
e89137ce
TR
2872016-01-13 Torvald Riegel <triegel@redhat.com>
288
289 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
290 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
291 (gtm_rwlock::write_unlock): Likewise.
292
4c868789
RH
2932016-01-13 Richard Henderson <rth@redhat.com>
294
295 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
296 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
297 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
298 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
299 * configure.ac (ARCH_AARCH64): New conditional.
300 (ARCH_PPC, ARCH_S390): Likewise.
301 * Makefile.in, configure: Rebuild.
302
303 * libitm.h (_ITM_TYPE_M128): Always define.
304 * vect64.cc: Split ...
305 * vect128.cc: ... out of...
306 * config/x86/x86_sse.cc: ... here.
307 * config/arm/neon.cc: New file.
308
629e4729
TR
3092016-01-13 Torvald Riegel <triegel@redhat.com>
310
311 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
312 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
313 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
314 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
315 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
316 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
317 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
318 (serialirr_dispatch::snapshot_most_recent): New.
319 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
320
0d1ed412
TR
3212016-01-12 Torvald Riegel <triegel@redhat.com>
322
323 * libitm_i.h (gtm_mask_stack): Remove.
324 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
325 * stmlock.h: Remove file.
326 * config/alpha/cacheline.h: Likewise.
327 * config/generic/cacheline.h: Likewise.
328 * config/powerpc/cacheline.h: Likewise.
329 * config/sparc/cacheline.h: Likewise.
330 * config/x86/cacheline.h: Likewise.
331
21fa2a29
JJ
3322016-01-04 Jakub Jelinek <jakub@redhat.com>
333
818ab71a
JJ
334 Update copyright years.
335
21fa2a29
JJ
336 * libitm.texi: Bump @copying's copyright year.
337
e7f7330f
TR
3382015-11-26 Torvald Riegel <triegel@redhat.com>
339
340 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
341 (ml_wt_dispatch::pre_write): Adapt.
342 (ml_wt_dispatch::pre_load): Likewise.
343
4f8a3b87
TR
3442015-11-22 Torvald Riegel <triegel@redhat.com>
345
346 * libitm_i.h (gtm_alloc_action): Remove union.
347 * testsuite/libitm.c/alloc-1.c: New.
348
258c1d07
TR
3492015-11-19 Torvald Riegel <triegel@redhat.com>
350
351 * testsuite/libitm.c++/eh-5.C: New.
352 * libitm.h (_ITM_cxa_free_exception): New.
353 * libitm.map (_ITM_cxa_free_exception): Add it.
354 * libitm.texi: Update ABI docs.
355 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
356 (gtm_transaction_cp::cxa_uncaught_count): Add.
357 (gtm_thread::cxa_unthrown): Remove.
358 (gtm_thread::cxa_uncaught_count_ptr): Add.
359 (gtm_thread::cxa_uncaught_count): Add.
360 (gtm_thread::drop_references_allocations): Rename to...
361 (gtm_thread::discard_allocation): ... this and adapt.
362 (gtm_thread::init_cpp_exceptions): New.
363 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
364 (gtm_thread::begin_transaction): Likewise.
365 (gtm_transaction_cp::save): Likewise.
366 (gtm_thread::trycommit): Likewise.
367 * eh_cpp.cc: Add overview comments.
368 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
369 (free_any_exception, _ITM_cxa_free_exception): New.
370 (gtm_thread::init_cpp_exceptions): Define.
371 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
372 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
373 (gtm_thread::revert_cpp_exceptions): Likewise.
374
c518678b
TR
3752015-11-09 Torvald Riegel <triegel@redhat.com>
376
377 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
378 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
379 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
380 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
381 (gtm_thread::forget_allocations): New overload with size_t argument.
382 * alloc.c (gtm_thread::forget_allocation): Define new overload and
383 adapt existing one.
384 (gtm_thread::record_allocation): Adapt.
385 (gtm_thread::commit_allocations_1): Adapt.
386 (gtm_thread::commit_allocations_2): Adapt.
387 * testsuite/libitm.c++/newdelete.C: New.
388
1e44e857
DJ
3892015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
390 Joseph Myers <joseph@codesourcery.com>
391 Mark Shinwell <shinwell@codesourcery.com>
392 Andrew Stubbs <ams@codesourcery.com>
393 Rich Felker <dalias@libc.org>
394
395 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
396 GTM_begin_transaction for compatibility with FDPIC.
397
9e531d37
DM
3982015-10-09 David Malcolm <dmalcolm@redhat.com>
399
400 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
401 using load_gcc_lib.
402
c629c246
GFM
4032015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
404
405 PR libitm/61164
406 * local_atomic (__always_inline): Rename to...
407 (__libitm_always_inline): ... this.
408
cd5a9a74
CSLL
4092015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
410
411 PR target/52482
412 * config/powerpc/sjlj.S: Port to Xcode 2.5.
413
ea023bcf
UB
4142015-05-27 Uros Bizjak <ubizjak@gmail.com>
415
d778b5a0
UB
416 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
417 operands "op" and "val" to int.
418
4192015-05-27 Uros Bizjak <ubizjak@gmail.com>
420
421 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
422 "op" and "val" to int.
423
4242015-05-27 Uros Bizjak <ubizjak@gmail.com>
425
426 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
427 "op" and "val" to int.
428
4292015-05-27 Uros Bizjak <ubizjak@gmail.com>
430
431 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
432 Declare as static int.
433 (FUTEX_PRIVATE_FLAG): Remove L suffix.
434 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
435
4362015-05-27 Uros Bizjak <ubizjak@gmail.com>
437
438 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
439 sys_futex0 function.
ea023bcf 440
503902f9
MH
4412015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
442
443 * Makefile.in: Regenerated with automake-1.11.6.
444 * aclocal.m4: Likewise.
445 * configure: Likewise.
446 * testsuite/Makefile.in: Likewise.
447
96ce40cb
GR
4482015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
449
450 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
451 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
452
3a07b160
L
4532015-01-15 H.J. Lu <hongjiu.lu@intel.com>
454
455 PR libitm/64360
456 * libitm.c/stackundo.c (test2): Make it static.
457 (test1): Likewise.
458
5624e564
JJ
4592015-01-05 Jakub Jelinek <jakub@redhat.com>
460
461 Update copyright years.
462
b67cd4e3
JJ
4632015-01-05 Jakub Jelinek <jakub@redhat.com>
464
465 * libitm.texi: Bump @copying's copyright year.
466
69aef6dc
KT
4672014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
468
469 * testsuite/lib/libitm.exp: Load target-utils.exp.
470 Move load of target-supports.exp earlier.
471
68bc9270
UB
4722014-12-03 Uros Bizjak <ubizjak@gmail.com>
473
474 * configure.tgt (x86_64): Tune -m32 multilib to generic.
475
a699d672
L
4762014-11-21 H.J. Lu <hongjiu.lu@intel.com>
477
478 PR bootstrap/63784
479 * configure: Regenerated.
480
ebf6d33b
FXC
4812014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
482
483 PR target/63610
484 * configure: Regenerate.
485
99183741
MP
4862014-10-06 Marek Polacek <polacek@redhat.com>
487
488 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
489 * testsuite/libitm.c/memset-1.c: Likewise.
490
b6334cf4
RH
4912014-07-24 Richard Henderson <rth@redhat.com>
492
493 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
494 addressing mode in epilogue.
495
3c698bf0
RO
4962014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497
498 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
499 -mclear-hwcap instead.
500 * configure: Regenerate.
501 * clearcap.map: Remove.
502
dbed5a9b
JM
5032014-05-21 John Marino <gnugcc@marino.st>
504
505 * configure.tgt (*-*-dragonfly*): New target.
506
b17f08dd
RH
5072014-05-19 Richard Henderson <rth@redhat.com>
508
509 * config/aarch64/sjlj.S: New file.
510 * config/aarch64/target.h: New file.
511 * configure.tgt: Enable aarch64.
512
5e1f630a
RO
5132014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514
515 * config/generic/asmcfi.h: Also check for
516 __GCC_HAVE_DWARF2_CFI_ASM.
517
84c2f4b0
RH
5182013-04-02 Richard Henderson <rth@redhat.com>
519
520 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
521 * config/arm/target.h, config/sh/target.h: Likewise.
522 * config/sparc/target.h, config/x86/target.h: Likewise.
523
7cc51d64
JJ
5242014-03-26 Jakub Jelinek <jakub@redhat.com>
525
526 * config/linux/futex_bits.h: Include errno.h.
527 (sys_futex0): If syscall returns -1, return -errno rather than
528 -1.
529
c288ec8f
JM
5302014-03-26 Joseph Myers <joseph@codesourcery.com>
531
532 * libitm.texi (Index): Rename to Library Index.
533
ed100f5d
L
5342014-01-13 H.J. Lu <hongjiu.lu@intel.com>
535
536 PR libitm/53113
537 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
538 (x86_avx.lo): Append -mavx to CXXFLAGS.
539 * Makefile.in: Regenerate.
540
f93608e6
RS
5412014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
542
543 Update copyright years
544
98db73df
TB
5452014-01-02 Tobias Burnus <burnus@net-b.de>
546
547 * libitm.texi: Bump @copying's copyright year.
548
b54214fe
UW
5492013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
550
551 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
552 (FUNC): Define ELFv2 variant.
553 (END): Likewise.
554 (HIDDEN): Likewise.
555 (CALL): Likewise.
556 (BASE): Likewise.
557 (LR_SAVE): Likewise.
558
3cbe17f7
AM
5592013-09-20 Alan Modra <amodra@gmail.com>
560
561 * configure: Regenerate.
562
6fb471d8
TR
5632013-08-30 Torvald Riegel <triegel@redhat.com>
564
565 * config/posix/rwlock.cc: Fix initialization order.
566
bec9ec3f
TR
5672013-08-30 Torvald Riegel <triegel@redhat.com>
568
569 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
570 (htm_fastpath): Assign an asm name.
571 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
572 HTM fast paths.
573 (_ITM_actions): Likewise.
574 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
575 x86_64.
576 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
577 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
578 field to the start of the structure.
579 * config/linux/rwlock.h (gtm_rwlock): Update comments.
580 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
581 handling for custom HTM fast paths.
582
1869217f
AK
5832013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
584 Revert:
585 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
586
587 * configure.tgt: Add -msoft-float to XCFLAGS.
588
d62d5152
AK
5892013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
590
591 * configure.tgt: Add -msoft-float to XCFLAGS.
592
aaaffb2a
AK
5932013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
594
595 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
596 (htm_transaction_active): Enable zEC12 instructions in the
597 assembler.
598 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
599
167f68ed
AK
6002013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
601
602 * acinclude.m4: Add htm asm check for s390.
603 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
604 * configure: Regenerate.
605 * config/s390/target.h: Remove __HTM__ check.
606 (htm_available): Call getauxval to get hwcaps and check whether
607 HTM is available or not.
608
0258b6e4
PB
6092013-07-15 Peter Bergner <bergner@vnet.ibm.com>
610
611 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
612 * configure.ac: Use it.
613 (AC_CHECK_HEADERS): Check for sys/auxv.h.
614 (AC_CHECK_FUNCS): Check for getauxval.
615 * config.h.in, configure: Rebuild.
616 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
617 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
618 (USE_HTM_FASTPATH): Define.
619 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
620 _HTM_RETRIES) New macros.
621 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
622 htm_begin_success, htm_commit, htm_transaction_active): New functions.
623
5a3fe9b6
AK
6242013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
625
626 * config/s390/target.h: Include htmintrin.h.
627 (_HTM_ITM_RETRIES): New macro definition.
628 (htm_available, htm_init, htm_begin, htm_begin_success)
629 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
630
6c84d576
IS
6312013-06-20 Iain Sandoe <iain@codesourcery.com>
632 Cesar Philippidis <cesar@codesourcery.com>
633
634 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
635 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
636 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
637 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
638
480c696b
TR
6392013-06-20 Torvald Riegel <triegel@redhat.com>
640
641 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
642 (_ITM_getTransactionId): Same.
643 * config/x86/target.h (htm_transaction_active): New.
644
b1db457b
TR
6452013-06-20 Torvald Riegel <triegel@redhat.com>
646
647 PR libitm/57643
648 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
649 the HTM fastpath.
650
51249377
GP
6512013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
652
653 PR bootstrap/56714
654 * local_atomic (__always_inline): Always define our version.
655 (__calculate_memory_order): Mark inline.
656 (atomic_thread_fence): Ditto.
657 (atomic_signal_fence): Ditto.
658 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
659 (atomic_bool::atomic_flag_clear_explicit): Ditto.
660 (atomic_bool::atomic_flag_test_and_set): Ditto.
661 (atomic_bool::atomic_flag_clear): Ditto.
662
f818478b
JJ
6632013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
664
665 * config/s390/sjlj.S: New file.
666 * config/s390/target.h: New file.
667 * configure.tgt: Set options for S/390.
668
ab4425be
AK
6692013-03-23 Andi Kleen <ak@linux.intel.com>
670
671 * local_atomic (__always_inline): Add.
672 (__calculate_memory_order, atomic_thread_fence,
673 atomic_signal_fence, test_and_set, clear, store, load,
674 exchange, compare_exchange_weak, compare_exchange_strong,
675 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
676 Add __always_inline to force inlining.
677
6c59ffd1
IS
6782013-02-11 Iain Sandoe <iain@codesourcery.com>
679 Jack Howarth <howarth@bromo.med.uc.edu>
680 Patrick Marlier <patrick.marlier@gmail.com>
681
682 PR libitm/55693
683 * alloc_cpp.cc: Enable function declarations on darwin.
684 * eh_cpp.cc: Likewise.
685
75f9527c
RS
6862013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
687
688 Update copyright years.
689
64fbcc74
TR
6902012-11-09 Torvald Riegel <triegel@redhat.com>
691
692 * beginend.cc (htm_fastpath): New.
693 (gtm_thread::begin_transaction, _ITM_commitTransaction,
694 _ITM_commitTransactionEH): Add HTM fastpath handling.
695 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
696 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
697 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
698 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
699 * configure.tgt: Add -mrtm to XCFLAGS.
700 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
701 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
702 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
703 * retry.cc (parse_default_method): Add HTM method parsing.
704 (gtm_thread::number_of_threads_changed): Use HTM by default if
705 available.
706
b9efc877
TS
7072012-11-04 Thomas Schwinge <thomas@codesourcery.com>
708
709 * configure: Regenerate.
710
07d3b5c8
RH
7112012-10-31 Richard Henderson <rth@redhat.com>
712
713 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
714 * configure.ac: Use it.
715 * config.h.in, configure: Rebuild.
716 * testsuite/Makefile.in: Rebuild.
717
eb00e959
TR
7182012-10-24 Torvald Riegel <triegel@redhat.com>
719
720 * libitm.texi: Clarify ABI requirements for data-logging functions.
721
b679c813
TR
7222012-10-24 Torvald Riegel <triegel@redhat.com>
723
724 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
725 it requires serial mode instead of assuming that for certain
726 dispatchs.
727 * dispatch.h (abi_dispatch::requires_serial): New.
728 (abi_dispatch::abi_dispatch): Adapt.
729 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
730 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
731 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
732 serial_dispatch::serial_dispatch,
733 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
734
0c609a21
UB
7352012-10-02 Uros Bizjak <ubizjak@gmail.com>
736
737 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
738 and ia32 declarations some more.
739 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
740
c0758df9
JJ
7412012-09-20 Jakub Jelinek <jakub@redhat.com>
742
743 PR other/43620
744 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
745 * configure: Regenerate.
746 * Makefile.in: Regenerate.
747
690c45b8
DE
7482012-09-14 David Edelsohn <dje.gcc@gmail.com>
749
750 * configure: Regenerated.
751
68a12ef3
UB
7522012-07-31 Uros Bizjak <ubizjak@gmail.com>
753
754 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
755
f2f9a097
PM
7562012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
757
758 * eh_cpp.cc: Fix __cxa_end_catch declaration.
759
e6d5f8c9
L
7602012-05-16 H.J. Lu <hongjiu.lu@intel.com>
761
762 * configure: Regenerated.
763
0100e3b3
L
7642012-04-04 H.J. Lu <hongjiu.lu@intel.com>
765
766 PR libitm/52854
767 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
768 for x86-64.
769
2f6935f4
TG
7702012-04-03 Tristan Gingold <gingold@adacore.com>
771
772 * configure: Regenerate.
773
b9c23a61
L
7742012-03-31 H.J. Lu <hongjiu.lu@intel.com>
775
776 PR bootstrap/52812
777 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
778
6a26a74d
BRF
7792012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
780
781 * testsuite/lib/libitm.exp: load fortran-modules.exp
782
b24513a1
RO
7832012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784
785 * configure.tgt (*-*-irix6*): Remove.
786
0d23faac
TR
7872012-03-13 Torvald Riegel <triegel@redhat.com>
788
789 PR libitm/52526
790 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
791 wake-up.
792
5c30094f
RO
7932012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
794
795 * configure.tgt (*-*-osf*): Remove.
796 * configure: Regenerate.
797
d28b0b08
TR
7982012-03-05 Torvald Riegel <triegel@redhat.com>
799
800 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
801 memtransfer/memset if size isn't larger than zero.
802
034209bc
TR
8032012-03-02 Torvald Riegel <triegel@redhat.com>
804
805 * libitm.texi: Link to specification and add a usage example.
806
bc8da6ba
TR
8072012-02-24 Torvald Riegel <triegel@redhat.com>
808
809 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
810 default dispatch for more than 1 thread to ml_wt.
811
63b08143
TR
8122012-02-20 Torvald Riegel <triegel@redhat.com>
813
814 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
815
4c9bd6ac
TR
8162012-02-20 Torvald Riegel <triegel@redhat.com>
817
818 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
819
651ff415
TR
8202012-02-20 Torvald Riegel <triegel@redhat.com>
821
822 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
823 serial mode corner cases made obsolete by prior gtm_rwlock changes.
824 (gl_wt_dispatch.rollback): Same.
825
efee0113
TR
8262012-02-20 Torvald Riegel <triegel@redhat.com>
827
828 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
829
33a03827
TR
8302012-02-20 Torvald Riegel <triegel@redhat.com>
831
832 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
833 for RfW src. Optimize number of calls to gtm_thr.
834
a19db3f2
TR
8352012-02-20 Torvald Riegel <triegel@redhat.com>
836
837 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
838 acquisition to ...
839 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
840 (default_dispatch): Make atomic.
841 (GTM::gtm_thread::set_default_dispatch): Access atomically.
842 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
843 use decide_begin_dispatch() if default_dispatch might have changed.
844 (GTM::gtm_thread::number_of_threads_changed): Initialize
845 default_dispatch here.
846
e948a1fb
IS
8472012-02-15 Iain Sandoe <iains@gcc.gnu.org>
848 Patrick Marlier <patrick.marlier@gmail.com>
849
850 PR libitm/52220
851 * alloc_cpp.cc: No dummy definitions for darwin.
852 * eh_cpp.cc: Likewise.
853
72824d5e
RH
8542012-02-14 Richard Henderson <rth@redhat.com>
855
856 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
857
1f319dba
UB
8582012-02-14 Uros Bizjak <ubizjak@gmail.com>
859
860 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
861
31772c95
TR
8622012-02-14 Torvald Riegel <triegel@redhat.com>
863
864 * libitm_i.h (GTM::gtm_rwlog_entry): New.
865 (GTM::gtm_thread): Add read and write logs.
866 (GTM::dispatch_ml_wt): Declare.
867 * retry.cc (parse_default_method): Support ml_wt.
868 * method-ml.cc: New file.
869 * Makefile.am: Add method-ml.cc.
870 * Makefile.in: Regenerate.
871
5b9cf5d2
TR
8722012-02-14 Torvald Riegel <triegel@redhat.com>
873
874 * dispatch.h (GTM::abi_dispatch::supports): New.
875 (GTM::method_group::reinit): New.
876 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
877 (GTM::gtm_thread::number_of_threads_changed): Check that the method
878 supports the current situation.
879
7d33bcb7
TR
8802012-02-14 Torvald Riegel <triegel@redhat.com>
881
882 * util.cc (GTM::xcalloc): New.
883 * common.h (GTM::xcalloc): Declare.
884
62513f7b
EB
8852012-02-14 Eric Botcazou <ebotcazou@adacore.com>
886
887 * config/sparc/target.h (cpu_relax): Read from CC register.
888 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
889
8902012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
891
892 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
893
f3f5e3c3
EB
8942012-02-13 Eric Botcazou <ebotcazou@adacore.com>
895
62513f7b 896 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
897 * config/sparc/cacheline.h: New file.
898 * config/sparc/target.h: Likewise.
899 * config/sparc/sjlj.S: Likewise.
900 * config/linux/sparc/futex_bits.h: Likewise.
901
9022012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
903
904 * configure.ac (link_itm): Fix comment.
905 * configure: Regenerate.
906 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
907
681355e3
RO
9082012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
909
fc985d2f 910 PR libitm/51822
62513f7b 911 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
912 Correct libgomp references.
913
999bcff5
TR
9142012-01-24 Torvald Riegel <triegel@redhat.com>
915
916 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
917 wake-up.
918
9848887a
UB
9192012-01-24 Uros Bizjak <ubizjak@gmail.com>
920
921 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
922 end of structure.
923 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
924 offset values. Do not copy return address. Decrement stack
925 by 56 bytes only.
926 (GTM_longjump) [__x86_64__]: Update offset values.
927
5752c591
UB
9282012-01-23 Uros Bizjak <ubizjak@gmail.com>
929
930 PR libitm/51830
931 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
932 the first function argument to %eax.
933
61e72ca4
RO
9342012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
935
936 * libitm.h (_ITM_getThreadnum): Remove.
937 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
938
9ce91011
RO
9392012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
940
941 * clearcap.map: New file.
942 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
943 * configure.ac: Call it.
944 Clear HWCAP_LDFLAGS if defaulting to -mavx.
945 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
946 * configure: Regenerate.
947 * Makefile.in: Regenerate.
948 * testsuite/Makefile.in: Regenerate.
949
3b4f05ec
RO
9502012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
951
952 PR libitm/51173
953 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
954 include, exclude options.
955
aab74ee9
TR
9562012-01-14 Torvald Riegel <triegel@redhat.com>
957
958 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
959 rolling back.
960 * containers.h (GTM::vector::set_size): New.
961
07b6642b
TR
9622012-01-14 Torvald Riegel <triegel@redhat.com>
963
964 PR libitm/51855
965 * config/generic/tls.h (GTM::mask_stack_top): New.
966 (GTM::mask_stack_bottom): Declare.
967 * config/generic/tls.c (GTM::mask_stack_bottom): New.
968 * local.cc (gtm_undolog::rollback): Filter out any updates that
969 overlap the libitm stack. Add current transaction as parameter.
970 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
971 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
972 * testsuite/libitm.c/stackundo.c: New test.
973
8377e5e5
RH
9742012-01-10 Richard Henderson <rth@redhat.com>
975
976 * libitm_i.h (_Unwind_DeleteException): Declare weak.
977 * eh_cpp.cc (_Unwind_DeleteException): Define for
978 !HAVE_ELF_STYLE_WEAKREF.
979
11f30bb0
TR
9802012-01-08 Torvald Riegel <triegel@redhat.com>
981
982 * local.cc (GTM_LB): Use GTM::gtm_undolog.
983 (GTM::gtm_thread::drop_references_undolog): Remove.
984 (GTM::gtm_thread::commit_undolog,
985 GTM::gtm_thread::rollback_undolog): Move to ...
986 * libitm_i.h (GTM::gtm_undolog): ...here. New.
987 (GTM::gtm_undolog_entry): Remove.
988 (GTM::gtm_thread): Adapt.
989 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
990 (GTM::gtm_thread::trycommit): Adapt.
991 * method-serial.cc (serial_dispatch::log): Adapt.
992 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
993 (gl_wt_dispatch::store): Fix likely/unlikely.
994 * containers.h (GTM::vector::resize): Add additional_capacity
995 parameter and handle it.
996 (GTM::vector::resize_noinline): New/adapt.
997 (GTM::vector::push): New.
998
a32e5e93
RH
9992012-01-06 Richard Henderson <rth@redhat.com>
1000
1001 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1002 * config/linux/powerpc/futex_bits.h: New file.
1003 * config/powerpc/cacheline.h: New file.
1004 * config/powerpc/sjlj.S: New file.
1005 * config/powerpc/target.h: New file.
1006 * config/generic/asmcfi.h (cfi_offset): New.
1007 (cfi_restore, cfi_undefined): New.
1008
1f53a8e6
AH
10092012-01-05 Aldy Hernandez <aldyh@redhat.com>
1010
1011 PR other/51171
1012 * testsuite/libitm.c/reentrant.c: Remove xfail.
1013 (thread): Pass x to pure().
be223aaf 1014 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 1015
c898f7b8
TR
10162011-12-24 Torvald Riegel <triegel@redhat.com>
1017
1018 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1019 privatization safety if already in serial mode.
1020
610e3901
TR
10212011-12-24 Torvald Riegel <triegel@redhat.com>
1022
1023 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1024 finish_serial_upgrade parameter.
1025 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1026 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1027 Don't unset reader flag.
1028 (GTM::gtm_rwlock::write_upgrade_finish): New.
1029 * config/posix/rwlock.cc: Same.
1030 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1031 Declare.
1032 * config/posix/rwlock.h: Same.
1033 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1034 flag after commit or after rollback when restarting.
1035
799142bf
TR
10362011-12-24 Torvald Riegel <triegel@redhat.com>
1037
1038 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1039 (GTM::gtm_thread::try_commit): Changed memory order.
1040 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1041 as parameter.
1042 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1043 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1044 * config/linux/futex_bits.h (sys_futex0): Same.
1045 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1046 * config/linux/futex.h (futex_wait, futex_wake): Same.
1047 * config/linux/rwlock.h (gtm_rwlock::writers,
1048 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1049 ints.
1050 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1051 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1052 gtm_rwlock::write_unlock): Fix memory orders and fences.
1053 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1054 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1055 gtm_rwlock::write_unlock): Same.
1056 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1057 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1058 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1059 Add comments.
1060 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1061 gl_wt_dispatch::load, gl_wt_dispatch::store,
1062 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1063 orders and fences. Add comments.
1064
b0f96e35
JJ
10652011-12-21 Jakub Jelinek <jakub@redhat.com>
1066
1067 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1068 * Makefile.in: Regenerated.
1069
cc163247
KK
10702011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1071
1072 * configure.tgt: Add sh* case.
1073 * config/sh/target.h: New file.
1074 * config/sh/sjlj.S: New file.
1075 * config/linux/sh/futex_bits.h: New file.
1076
aebac0ca
RH
10772011-12-14 Richard Henderson <rth@redhat.com>
1078
1079 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1080 * config/arm/sjlj.S, config/arm/target.h: New files.
1081 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1082 (cfi_rel_offset): New.
1083 * config/linux/futex_bits.h: New file.
1084 * config/linux/futex.cc: Include futex_bits.h here...
1085 * config/linux/futex.h: ... not here.
1086 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1087 * configure.ac (ARCH_AM): New conditional.
1088 * Makefile.in, configure: Rebuild.
1089 * configure.tgt: Handle ARM.
1090
36cfbee1
RH
10912011-12-13 Richard Henderson <rth@redhat.com>
1092
5d9d05d3
RH
1093 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1094 signed/unsigned comparison werror.
1095
36cfbee1
RH
1096 * local_atomic: New file.
1097 * libitm_i.h: Include it.
1098 (gtm_thread::shared_state): Use atomic template.
1099 * beginend.cc (GTM::gtm_clock): Use atomic template.
1100 (global_tid): Use atomic template if 64-bit atomics available.
1101 (gtm_thread::gtm_thread): Update shared_state access.
1102 (gtm_thread::trycommit): Likewise.
1103 (choose_code_path): Update global_tid access.
1104 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1105 * stmlock.h (GTM::gtm_clock): Use atomic template.
1106 (gtm_get_clock, gtm_inc_clock): Update accesses.
1107 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1108 redundant __sync_synchronize after atomic shared_state access.
1109 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1110 (gtm_rwlock::write_lock_generic): Likewise.
1111 (gtm_rwlock::read_unlock): Likewise.
1112 * config/alpha/target.h (atomic_read_barrier): Remove.
1113 (atomic_write_barrier): Remove.
1114 * config/x86/target.h (atomic_read_barrier): Remove.
1115 (atomic_write_barrier): Remove.
1116
062f93f2
RH
11172011-11-30 Richard Henderson <rth@redhat.com>
1118
1119 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1120 * beginend.c (_ITM_abortTransaction): Update to match.
1121 (GTM::gtm_thread::restart): Likewise.
1122 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1123 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1124
bd8aaa86
IS
11252011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1126
1127 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1128 * Makefile.in: Regenerate.
1129
8cf36bb3
IS
11302011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1131
1132 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1133 * alloc_cpp.cc: Generate dummy functions if we don't
1134 HAVE_ELF_STYLE_WEAKREF.
1135 * eh_cpp.cc: Likewise.
1136 * configure: Regenerate.
1137 * aclocal.m4: Likewise.
1138 * config.h.in: Likewise.
1139 * Makefile.in: Likewise.
1140 * testsuite/Makefile.in: Likewise.
1141
0b41ebef
IS
11422011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1143
1144 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1145 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 1146 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
1147 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1148 in portability to non-elf targets.
8cf36bb3 1149 (GTM_longjmp): Likewise.
0b41ebef
IS
1150 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1151 where required.
1152
9c9d352a
IS
11532011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1154
1155 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1156 * testsuite/libitm.c/memset-1.c: Likewise.
1157
c6084f68
AT
11582011-11-21 Andreas Tobler <andreast@fgznet.ch>
1159
1160 * configure: Regenerate.
1161
adcd36bc
RO
11622011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1163
1164 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1165 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1166 * Makefile.am: Handle sun style versioning.
1167 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1168 * configure: Regenerate.
1169 * Makefile.in: Regenerate.
1170
59659b59
RO
11712011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172
1173 * config/generic/asmcfi.h: Fix comment.
1174 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1175 sequence without .hidden support, error for non-ELF targets.
1176 (GTM_longjmp) [__ELF__]: Only use .hidden if
1177 HAVE_ATTRIBUTE_VISIBILITY.
1178
d846e425
RO
11792011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1182 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1183 Dummy functions.
1184 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1185 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1186
80713347
UB
11872011-11-16 Uros Bizjak <ubizjak@gmail.com>
1188
1189 PR bootstrap/51098
1190 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1191 * configure: Regenerate.
1192
2841f85e
L
11932011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1194
1195 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1196
8851b429
RO
11972011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1198
1199 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1200 .hidden.
1201 (.note.GNU-stack): Only use if __linux__.
1202 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1203 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1204 * testsuite/libitm.c/reentrant.c: Likewise.
1205 * testsuite/libitm.c/simple-2.c: Likewise.
1206 * testsuite/libitm.c/txrelease.c: Likewise.
1207 * testsuite/libitm.c++/static_ctor.C: Likewise.
1208
d4b17902
RH
12092011-11-10 Richard Henderson <rth@redhat.com>
1210
1211 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1212 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1213 * configure.ac (ARCH_X86_AVX): New conditional.
1214 * Makefile.in, configure: Rebuild.
1215
430616e7
RH
12162011-11-09 Richard Henderson <rth@redhat.com>
1217
1218 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1219 * configure.ac: Use it.
1220 * config.h.in, configure: Rebuild.
1221 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1222
79b1edb6
RH
12232011-11-09 Richard Henderson <rth@redhat.com>
1224
1225 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1226 * config/alpha/unaligned.h: Remove file.
1227 * config/generic/unaligned.h: Remove file.
1228 * config/x86/unaligned.h: Remove file.
1229 * config/generic/cachepage.h: Remove file.
1230 * config/posix/cachepage.cc: Remove file.
1231 * config/generic/cacheline.cc: Remove file.
1232 * config/x86/cacheline.cc: Remove file.
1233 * config/generic/cacheline.h (gtm_cacheline): Remove the
1234 store_mask, copy_mask, copy_mask_wb methods.
1235 * config/x86/cacheline.h: Likewise.
1236 * config/alpha/cacheline.h: Fall back to generic after setting size.
1237 * config/generic/tls.cc (gtm_mask_stack): Remove.
1238 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1239 (GTM_vpalignr_table): Remove.
1240 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1241 (GTM_pshift_table): Remove.
1242 * config/libitm_i.h: Don't include cachepage.h.
1243 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1244 * Makefile.in, testsuite/Makefile.in: Rebuild.
1245
4bdd090f
RH
12462011-11-09 Richard Henderson <rth@redhat.com>
1247
8ee9fac2
RH
1248 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1249 to emit branch prediction hint.
1250
9bdc6343
RH
1251 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1252 Protect .note.GNU-stack with __linux__.
1253
4bdd090f
RH
1254 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1255 * configure, aclocal.m4, config.h.in: Rebuild.
1256 * config/generic/asmcfi.h: New file.
1257 * config/x86/sjlj.S: Use it.
1258
4408b086
RH
12592011-11-08 Richard Henderson <rth@redhat.com>
1260
1261 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1262
01f3428c
RH
12632011-11-08 Richard Henderson <rth@redhat.com>
1264
3d3b05ff
RH
1265 * configure.tgt: Test correct directory for supported cpus.
1266
01f3428c
RH
1267 * configure.ac: Exit if unsupported.
1268 * configure: Rebuild.
1269 * configure.tgt: Delete boilerplate from libgomp for unsupported
1270 targets. Set UNSUPPORTED for unsupported targets.
1271
07f03cd3
RO
12722011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1273
1274 * configure.tgt: Handle i386 like i[456]86.
1275 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1276 take address.
1277 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1278 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1279
0a35513e
AH
12802011-11-05 Aldy Hernandez <aldyh@redhat.com>
1281
1282 * method-wbetl.cc: Update copyright notice.
1283 * aatree.cc: Same.
1284 * util.cc: Same.
1285 * libitm.h: Same.
1286 * memset.cc: Same.
1287 * eh_cpp.cc: Same.
1288 * barrier.tpl: Same.
1289 * useraction.cc: Same.
1290 * stmlock.h: Same.
1291 * memcpy.cc: Same.
1292 * common.h: Same.
1293 * config/generic/tls.cc: Same.
1294 * config/generic/cacheline.h: Same.
1295 * config/generic/cachepage.h: Same.
1296 * config/generic/cacheline.cc: Same.
1297 * config/generic/unaligned.h: Same.
1298 * config/x86/cacheline.h: Same.
1299 * config/x86/cacheline.cc: Same.
1300 * config/x86/unaligned.h: Same.
1301 * config/alpha/cacheline.h: Same.
1302 * config/alpha/unaligned.h: Same.
1303 * config/alpha/sjlj.S: Same.
1304 * config/posix/cachepage.cc: Same.
1305 * config/linux/futex.h: Same.
1306 * config/linux/alpha/futex_bits.h: Same.
1307
13082011-11-04 Torvald Riegel <triegel@redhat.com>
1309
1310 * libitm.texi: No cover text and invariant sections.
1311
13122011-11-03 Richard Henderson <rth@redhat.com>
1313
1314 * local_type_traits: New file.
1315 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1316
13172011-11-03 Richard Henderson <rth@redhat.com>
1318
1319 * configure.ac: Don't test for gfortran.
1320 * configure: Rebuild.
1321
1322 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1323 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1324
13252011-11-03 Aldy Hernandez <aldyh@redhat.com>
1326
1327 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1328 * testsuite/libitm.c/memset-1.c: Same.
1329 * testsuite/libitm.c/c.exp: Same.
1330 * testsuite/lib/libitm-dg.exp: Same.
1331 * testsuite/lib/libitm.exp: Same.
1332 * testsuite/libitm.c++/c++.exp: Same.
1333
13342011-11-03 Aldy Hernandez <aldyh@redhat.com>
1335
1336 * testsuite/config/default.exp: Update copyright date.
1337 * configure.ac: Add copyright info.
1338 * configure.tgt: Same.
1339
13402011-11-03 Aldy Hernandez <aldyh@redhat.com>
1341
1342 * testsuite/libitm.c/reentrant.c: XFAIL.
1343 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1344
13452011-10-29 Torvald Riegel <triegel@redhat.com>
1346
1347 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1348 handle aborts.
1349 (_ITM_abortTransaction): Handle aborts of outer transactions.
1350 * libitm_i.h: Same.
1351 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1352 * libitm.texi: Document aborts of outer transactions.
1353 * testsuite/libitm.c/cancel.c: New file.
1354
13552011-10-19 Torvald Riegel <triegel@redhat.com>
1356
1357 * testsuite/*: Change __transaction to __transaction_atomic or
1358 __transaction_relaxed.
1359
13602011-10-19 Torvald Riegel <triegel@redhat.com>
1361
1362 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1363 (gtm_thr): Same.
1364
13652011-10-19 Torvald Riegel <triegel@redhat.com>
1366
1367 * libitm_i.h: Add gl_wt dispatch.
1368 * retry.cc (parse_default_method): Same.
1369 * method-gl.cc: New file.
1370 * Makefile.am: Use method-gl.cc.
1371 * Makefile.in: Rebuild.
1372
13732011-10-19 Torvald Riegel <triegel@redhat.com>
1374
1375 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1376 safety if requested by a TM method.
1377 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1378 privatization safety.
1379 * method-serial.cc: Same.
1380
13812011-10-19 Torvald Riegel <triegel@redhat.com>
1382
1383 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1384 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1385 undolog-related member functions from *_local to *_undolog.
1386 * local.cc (gtm_thread::commit_undolog): Same.
1387 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1388 (GTM::gtm_thread::rollback): Roll back undolog before
1389 dispatch-specific rollback.
1390
13912011-10-19 Torvald Riegel <triegel@redhat.com>
1392
1393 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1394 re-initialization of the current method group.
1395 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1396
13972011-10-19 Torvald Riegel <triegel@redhat.com>
1398
1399 * alloc.cc (commit_allocations_2): Do not free transaction-local
1400 memory when committing a nested transaction.
1401
14022011-10-19 Torvald Riegel <triegel@redhat.com>
1403
1404 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1405 serial-irrevocable dispatch, not serial.
1406
14072011-10-19 Torvald Riegel <triegel@redhat.com>
1408
1409 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1410 declarations.
1411 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1412 * method-serial.cc: Implement begin_or_restart().
1413 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1414 dispatch-specific begin_or_restart().
1415 (GTM::gtm_thread::restart): Same.
1416
14172011-08-23 Torvald Riegel <triegel@redhat.com>
1418
1419 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1420 restarting without switching to serial mode.
1421 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1422 transaction state. Choose closed-nesting alternative if available.
1423 (GTM::gtm_thread::set_default_dispatch): New.
1424 (parse_default_method): New.
1425 (GTM::gtm_thread::number_of_threads_changed): New.
1426 * method-serial.cc (GTM::serial_mg): New method group class.
1427 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1428 fini.
1429 (GTM::serial_dispatch): Same.
1430 (GTM::serialirr_onwrite_dispatch): Same.
1431 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1432 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1433 registered threads.
1434 (GTM::gtm_thread::gtm_thread): Same.
1435 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1436 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1437 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1438 choose dispatch but set state according to dispatch here.
1439 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1440 (GTM::method_group): New class.
1441 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1442 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1443 * libitm.texi: Document TM methods, method groups, method life cycle.
1444 Rename method sets to method groups.
1445
14462011-08-23 Torvald Riegel <triegel@redhat.com>
1447
1448 * config/x86/tls.h: Moved to ...
1449 * config/linux/x86/tls.h: ... here.
1450
14512011-08-23 Torvald Riegel <triegel@redhat.com>
1452
1453 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1454 Add X32 support.
1455 * config/x86/sjlj.S: Same.
1456
14572011-08-19 Torvald Riegel <triegel@redhat.com>
1458
1459 * config/linux/rwlock.h: New file.
1460 * config/linux/rwlock.c: New file.
1461 * configure.ac: Reenable futex support (undo SVN rev 157758).
1462 * Makefile.am: Same.
1463 * configure.tgt: Same.
1464 * config/linux/alpha/futex_bits.h: Same.
1465 * config/linux/futex.h: Same. Return number of woken processes.
1466 * config/linux/futex.cc: Same.
1467 (futex_wait): Remove spinning.
1468 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1469 Use __x86_64__ instead of __LP64__.
1470 * aclocal.m4: Include generic futex checks.
1471 * configure: Rebuild.
1472 * Makefile.in: Rebuild.
1473 * testsuite/Makefile.in: Rebuild.
1474 * beginend.cc: Include pthread.h.
1475 * config/posix/cachepage.cc: Same.
1476
14772011-08-12 Torvald Riegel <triegel@redhat.com>
1478
1479 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1480 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1481 (set_gtm_thr): New.
1482 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1483 (set_gtm_thr): New.
1484 (GTM::gtm_thread::thread_num): Removed.
1485 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1486 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1487 tx-to-thread renaming.
1488 * beginend.cc: Adapted to tx-to-thread renaming.
1489 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1490 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1491 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1492 gtm_transaction to gtm_thread.
1493 (_ITM_getThreadnum): Removed. Not supported anymore.
1494 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1495 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1496 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1497 gtm_tx-to-gtm_thr renaming if necessary.
1498 * eh_cpp.cc: Same.
1499 * local.cc: Same.
1500 * retry.cc: Same.
1501 * clone.cc: Same.
1502 * alloc.cc: Same.
1503 * alloc_c.cc: Same.
1504 * alloc_cpp.cc: Same.
1505 * method-serial.cc: Same.
1506 * config/generic/tls.cc: Same.
1507 * config/posix/rwlock.h (gtm_rwlock): Same.
1508 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1509
15102011-08-12 Torvald Riegel <triegel@redhat.com>
1511
1512 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1513 implementation.
1514 (gtm_rwlock::read_unlock): Same.
1515 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1516 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1517 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1518 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1519 w_upgrade. Replaced by per-transaction flags (in shared_state).
1520 Added c_confirmed_writers.
1521 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1522 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1523 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1524 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1525 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1526 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1527 * libitm.texi: Document locking conventions and implementations in
1528 libitm.
1529
15302011-08-12 Torvald Riegel <triegel@redhat.com>
1531
1532 * libitm_i.h (next_tx): Add list of all threads' transaction.
1533 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1534 transaction with list of transactions and ...
1535 (thread_exit_handler): ... deregister here.
1536 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1537 * config/x86/target.h: Same.
1538
15392011-08-12 Torvald Riegel <triegel@redhat.com>
1540
1541 * testsuite/libitm.c++/static_ctor.C: New file.
1542
15432011-08-12 Torvald Riegel <triegel@redhat.com>
1544
1545 * testsuite/libitm.c/reentrant.c: New file.
1546
15472011-08-12 Torvald Riegel <triegel@redhat.com>
1548
1549 * config/generic/tls.h: Remove the free list for transactions and ...
1550 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1551 (GTM::gtm_transaction::operator delete): ... and release here.
1552 (thread_exit_handler): New. Delete tx when thread terminates.
1553 (thread_exit_init): New.
1554 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1555 * testsuite/libitm.c/txrelease.c: New file.
1556
15572011-08-12 Torvald Riegel <triegel@redhat.com>
1558
1559 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1560 * testsuite/libitm.c/notx.c: New file.
1561
15622011-08-12 Torvald Riegel <triegel@redhat.com>
1563
1564 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1565 * libitm_i.h (local_tid): ... to here.
1566 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1567 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1568
15692011-08-12 Torvald Riegel <triegel@redhat.com>
1570
1571 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1572 serialirr_onwrite_dispatch as new default for now.
1573 * method-serial.cc (serialirr_onwrite_dispatch): New.
1574 (GTM::dispatch_serialirr_onwrite): New.
1575 * libitm_i.h: Same.
1576
15772011-08-12 Torvald Riegel <triegel@redhat.com>
1578
1579 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1580 * query.cc (_ITM_getTransactionId): There is no active transaction if
1581 the current nesting level is zero.
1582
15832011-07-28 Torvald Riegel <triegel@redhat.com>
1584
1585 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1586 rollback.
1587
15882011-07-28 Torvald Riegel <triegel@redhat.com>
1589
1590 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1591 transaction properties from the caller instead of from the
1592 transaction object.
1593 * libitm_i.h: Same.
1594 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1595
15962011-07-28 Torvald Riegel <triegel@redhat.com>
1597
1598 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1599 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1600 * dispatch.h: Same.
1601 * method-serial.cc: Same.
1602 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1603 flat nesting as default, and closed nesting on demand.
1604 (GTM::gtm_transaction::rollback): Same.
1605 (_ITM_abortTransaction): Same.
1606 (GTM::gtm_transaction::restart): Same.
1607 (GTM::gtm_transaction::trycommit): Same.
1608 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1609 (choose_code_path): New.
1610 (GTM::gtm_transaction_cp::save): New.
1611 (GTM::gtm_transaction_cp::commit): New.
1612 * query.cc (_ITM_inTransaction): Support flat nesting.
1613 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1614 (GTM::gtm_transaction): Support flat and closed nesting.
1615 * alloc.cc (commit_allocations_2): New.
1616 (commit_cb_data): New helper struct.
1617 (GTM::gtm_transaction::commit_allocations): Handle nested
1618 commits/rollbacks.
1619 * libitm.texi: Update user action section, add description of nesting.
1620
16212011-07-28 Torvald Riegel <triegel@redhat.com>
1622
1623 * libitm_i.h: Add closed nesting as restart reason.
1624 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1625
16262011-07-28 Torvald Riegel <triegel@redhat.com>
1627
1628 * useraction.cc: Use vector instead of list to store actions.
1629 Also support partial rollbacks for closed nesting.
1630 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1631 * beginend.cc: Same.
1632
16332011-07-28 Torvald Riegel <triegel@redhat.com>
1634
1635 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1636 closed_nesting flags, as well as a closed nesting alternative.
1637 * method-serial.cc: Same.
1638 (serial_dispatch): Renamed to serialirr_dispatch.
1639 (GTM::dispatch_serialirr): Same.
1640 (serial_dispatch_ul): Renamed to serial_dispatch.
1641 (GTM::dispatch_serial): Same.
1642
16432011-07-28 Torvald Riegel <triegel@redhat.com>
1644
1645 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1646
16472011-07-28 Torvald Riegel <triegel@redhat.com>
1648
1649 * aatree.h (aa_tree::remove): New.
1650 (aa_tree::operator new): Add placement new.
1651
16522011-07-02 Torvald Riegel <triegel@redhat.com>
1653
1654 * containers.h: New file.
1655 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1656 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1657 * common.h: ... to here.
1658 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1659 * local.cc: Same.
1660
16612011-06-30 Torvald Riegel <triegel@redhat.com>
1662
1663 * libitm_i.h (STATE_ABORTING): Remove.
1664 * beginend.cc (_ITM_abortTransaction): Same.
1665 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1666 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1667 (_ITM_rollbackTransaction): Remove.
1668 * beginend.cc: Same.
1669 * libitm.map: Same.
1670 * libitm.texi: Document these ABI changes.
1671
16722011-06-30 Torvald Riegel <triegel@redhat.com>
1673
1674 * libitm.texi: New file.
1675 * Makefile.am: Add libitm.texi.
1676 * Makefile.in: Rebuild.
1677
16782011-06-30 Torvald Riegel <triegel@redhat.com>
1679
1680 * libitm_i.h: Move parts to common.h and dispatch.h.
1681 * common.h: New file.
1682 * dispatch.h: New file, new dispatch class.
1683 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1684 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1685 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1686 decision to retry.cc.
1687 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1688 only.
1689 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1690 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1691 logging.
1692 * barrier.cc: Use new barriers definitions.
1693 (abi_dispatch::memmove_overlap_check): New.
1694 * config/x86/x86_sse.cc: Same.
1695 * config/x86/x86_avx.cc: Same.
1696 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1697 memcpy.cc.
1698 * Makefile.in: Rebuild.
1699 * method-readonly.cc: Remove.
1700 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1701 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1702
17032011-06-30 Torvald Riegel <triegel@redhat.com>
1704
1705 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1706 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1707 * testsuite/libitm.c/dropref-2.c: Same.
1708 * testsuite/libitm.c/dropref.c: Same.
1709
17102011-06-30 Torvald Riegel <triegel@redhat.com>
1711
1712 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1713 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1714 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1715 * alloc_c.cc: Same.
1716 * barrier.tpl: Same.
1717 * beginend.c: Same.
1718 * config/generic/tls.h: Same.
1719 * config/x86/tls.h: Same.
1720 * libitm_i.h: Same.
1721 * memcpy.cc: Same.
1722 * memset.cc: Same.
1723 * method-readonly.cc: Same.
1724 * method-serial.cc: Same.
1725 * method-wbetl.cc: Same.
1726 * retry.cc: Same.
1727
17282011-03-03 Richard Henderson <rth@redhat.com>
1729
1730 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1731 From Patrik Marlier <patrick.marlier@unine.ch>.
1732
17332011-02-03 Richard Henderson <rth@redhat.com>
1734
1735 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1736 * configure.ac: Use it.
1737 * configure, config.h.in: Rebuild.
1738 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1739 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1740 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1741 * libitm.map: Use wildcards to match size_t mangling.
1742
17432010-12-14 Richard Henderson <rth@redhat.com>
1744
1745 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1746 blocks of TIDs per thread.
1747 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1748 (setup_gtm_thr): Return the thread structure.
1749 * config/x86/tls.h (setup_gtm_thr): Likewise.
1750
17512010-12-14 Richard Henderson <rth@redhat.com>
1752
1753 * clone.cc (table_lock): Remove.
1754 (find_clone): Don't take it.
1755 (ExcludeTransaction): New helper class.
1756 (_ITM_registerTMCloneTable): Use it.
1757 (_ITM_deregisterTMCloneTable): Likewise.
1758
17592010-12-14 Richard Henderson <rth@redhat.com>
1760
1761 * config/x86/tls.h: New file.
1762
17632010-07-15 Richard Henderson <rth@redhat.com>
1764
1765 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1766 * Makefile.in: Rebuild.
1767
17682010-07-13 Aldy Hernandez <aldyh@redhat.com>
1769
1770 * method-wbetl.cc (trydropreference): Fix source line.
1771
17722010-07-13 Aldy Hernandez <aldyh@redhat.com>
1773
1774 * libitm.h: Add comment.
1775 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1776
17772010-07-07 Aldy Hernandez <aldyh@redhat.com>
1778
1779 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1780 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1781 available, use pthread mutexes.
1782 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1783 * config.h.in: Regenerate.
1784 * configure: Regenerate.
1785
17862010-07-06 Aldy Hernandez <aldyh@redhat.com>
1787
1788 * libitm.h (ITM_PURE): Define.
1789 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1790
17912010-06-28 Aldy Hernandez <aldyh@redhat.com>
1792
1793 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1794 (validate): Add comment.
1795 (trydropreference): New.
1796 * method-readonly.cc (class readonly_dispatch): Add
1797 trydropreference.
1798 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1799 Call trydropreference().
1800 * libitm.h (_ITM_dropReferences): Remove const attribute.
1801 * method-serial.cc (class serial_dispatch): Add trydropreference.
1802 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1803
18042010-06-28 Aldy Hernandez <aldyh@redhat.com>
1805
1806 * memcpy.cc (do_memcpy): Comment.
1807
18082010-06-25 Aldy Hernandez <aldyh@redhat.com>
1809
1810 * barrier.tpl: Add comments throughout.
1811
18122010-06-24 Aldy Hernandez <aldyh@redhat.com>
1813
1814 * method-wbetl.cc (struct w_entry): Add comments.
1815 (trycommit): Same.
1816 (rollback): Same.
1817
18182010-06-24 Aldy Hernandez <aldyh@redhat.com>
1819
1820 * alloc_c.cc (_ITM_dropReferences): New.
1821 * libitm.map (_ITM_dropReferences): Add.
1822 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1823 * libitm_i.h (struct gtm_transaction): Declare
1824 drop_references_allocations and drop_references_local.
1825 * local.cc (rollback_local): Ignore memory when applicable.
1826 (drop_references_local): New.
1827
18282010-06-23 Richard Henderson <rth@redhat.com>
1829
1830 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1831 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1832 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1833 * config/alpha/target.h: Likewise.
1834 * config/generic/tls.cc (gtm_mask_stack): Use it.
1835
18362010-06-23 Richard Henderson <rth@redhat.com>
1837
1838 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1839 a mutex instead of trying a lock-free compare-and-swap on the list.
1840 (gtm_cacheline_page::operator delete): Likewise.
1841
18422010-06-16 Richard Henderson <rth@redhat.com>
1843
1844 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1845 that overlap the libitm stack.
1846 * barrier.tpl: Mark incoming stack.
1847 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1848 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1849 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1850 * memcpy.cc, memset.cc: Likewise.
1851 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1852 * config/generic/tls.h (gtm_thread): Add stack_top member.
1853 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1854 * libitm_i.h (gtm_mask_stack): Declare.
1855 * config/generic/tls.cc: New file.
1856 * Makefile.am (libitm_la_SOURCES): Add it.
1857 (AM_CXXFLAGS): Turn off exceptions.
1858 * Makefile.in: Rebuild.
1859
18602010-06-16 Richard Henderson <rth@redhat.com>
1861
1862 * alloc.cc (struct gtm_alloc_action): Move definition ...
1863 * libitm_i.h: ... here.
1864 (class gtm_transaction): Declare new and delete.
1865 * beginend.cc (alloc_tx): Reformulate as operator new.
1866 (free_tx): Reformulate as operator delete.
1867 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1868
18692010-06-11 Richard Henderson <rth@redhat.com>
1870
1871 * clone.cc (clone_entry_compare): Fix typo.
1872 From Patrik Marlier <patrick.marlier@unine.ch>.
1873
18742010-05-13 Richard Henderson <rth@redhat.com>
1875
1876 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1877 in extern "C".
1878
18792010-05-07 Aldy Hernandez <aldyh@redhat.com>
1880
1881 * libitm_i.h (struct gtm_transaction): Remove
1882 get_allocation_size.
1883 (record_allocation): Remove size parameter.
1884 * libitm.map (_ITM_realloc): Remove.
1885 * alloc_c.cc (_ITM_realloc): Remove.
1886 (_ITM_malloc): Remove size argument to record_allocation.
1887 (_ITM_calloc): Same.
1888 * alloc_cpp.cc (_ZGTtnwm): Same.
1889 (_ZGTtnwmRKSt9nothrow_t): Same.
1890 (_ZGTtnam): Same.
1891 (_ZGTtnamRKSt9nothrow_t): Same.
1892 * alloc.cc (struct gtm_alloc_action): Remove size.
1893 (get_allocation_size): Remove.
1894 (commit_allocations): Add comment.
1895 (record_allocation): Remove size parameter.
1896 (forget_allocation): Remove set of size.
1897
18982010-04-19 Aldy Hernandez <aldyh@redhat.com>
1899
1900 * Makefile.am (abi_version): New.
1901 (AM_CXXFLAGS): Pass abi_version.
1902 * Makefile.in: Regenerate.
1903 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1904
19052010-04-06 Aldy Hernandez <aldyh@redhat.com>
1906
1907 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1908 _ITM_getTMCloneOrIrrevokable.
1909 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1910 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1911
19122010-03-26 Aldy Hernandez <aldyh@redhat.com>
1913
1914 * configure.ac: Remove Linux futex support.
1915 * configure.tgt (config_path): Same.
1916 * Makefile.am: Same.
1917 * config/linux: Remove entire directory.
1918 * configure: Rebuild.
1919 * Makefile.in: Rebuild.
1920 * testsuite/Makefile.in: Rebuild.
1921
19222010-03-09 Aldy Hernandez <aldyh@redhat.com>
1923
1924 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1925 switching to serial mode.
1926 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1927
19282010-03-03 Aldy Hernandez <aldyh@redhat.com>
1929
1930 * configure.tgt: Add emacs -*- tags.
1931 * barrier.tpl: Same.
1932
19332010-02-23 Aldy Hernandez <aldyh@redhat.com>
1934
1935 * Makefile.am: Rename serial.cc to method-serial.cc.
1936 * Makefile.in: Regenerate with automake 1.11.1.
1937 * testsuite/Makefile.in: Same.
1938 * aclocal.m4: Regenerate with aclocal 1.11.1.
1939 * method-serial.cc: Rename from serial.cc.
1940 * libitm_i.h (struct gtm_transaction): Update comment on
1941 serialirr_mode.
1942
19432010-02-22 Aldy Hernandez <aldyh@redhat.com>
1944
1945 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1946 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1947
19482010-02-11 Aldy Hernandez <aldyh@redhat.com>
1949
1950 * configure: Rebuild.
1951
19522009-11-12 Richard Henderson <rth@redhat.com>
1953
1954 * Rewrite everything in C++.
1955
19562009-11-03 Richard Henderson <rth@redhat.com>
1957
1958 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1959 * Makefile.am (libitm_la_SOURCES): Add them.
1960 * configure.ac (ARCH_X86): New conditional.
1961 * Makefile.in, configure: Rebuild.
1962 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1963 Move futex setup into "other system configury" case.
1964 * local.c (rollback_local): Merge into ...
1965 (GTM_rollback_local): ... here.
1966 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1967 (_ITM_LB): Define as an alias to GTM_LB.
1968
19692009-11-03 Richard Henderson <rth@redhat.com>
1970
1971 * method-readonly.c: New file.
1972 * Makefile.am (libitm_la_SOURCES): Add it.
1973 * Makefile.in: Rebuild.
1974 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1975 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1976 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1977 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1978 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1979 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1980 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1981 gtm_get_clock, gtm_inc_clock): New.
1982 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1983 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1984 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1985 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1986 replace uses with new libitm_i.h symbols.
1987 (dispatch_wbetl): Rename from wbetl_dispatch.
1988 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1989 away from dispatch_readonly; abort if the beginTransaction call
1990 asserted that the transaction was readonly.
1991
19922009-11-03 Richard Henderson <rth@redhat.com>
1993
1994 * memset.c: New file.
1995 * Makefile.am (libitm_la_SOURCES): Add it.
1996 * Makefile.in: Rebuild.
1997 * testsuite/libitm.c/memset-1.c: New.
1998
19992009-11-03 Richard Henderson <rth@redhat.com>
2000
2001 * dispatch.c: Remove file.
2002 * useraction.c (struct gtm_user_action): Move from libitm.h.
2003 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2004 (serial_memset, serial_memmove, serial_memcpy): Remove.
2005 (serial_W*, serial_R*): Remove.
2006 (serial_dispatch): Update to match.
2007 * configure.ac: Move Werror down below configure checks. Don't
2008 check for sys/loadavg.h, do check for malloc.h. Don't check for
2009 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2010 Use GCC_AC_FUNC_MMAP_BLACKLIST
2011 * libitm.h: Split out all internal items to...
2012 * libitm_i.h: ... here. New file.
2013 * copymask.c: New file.
2014 * local.c (struct gtm_local_undo): Move from libitm.h.
2015 (GTM_alloc_local): Rename from alloc_local; export.
2016 * memcpy.c: New file.
2017 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2018 * config/posix/page.c: New file.
2019 * config/posix/target_tls.h: Remove file.
2020 * barrier.c: New file.
2021 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2022 copymask.c, page.c.
2023 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2024 * method-wbetl.c: Rewrite for new cacheline methods.
2025 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2026
2027 * config/alpha/sjlj.S: Fix typo.
2028 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2029 * config/alpha/copymask.c: New file.
2030 * config/alpha/target.h (CACHELINE_SIZE): New.
2031 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2032
2033 * config/x86/target_i.h: Copy functions from x86/target.h.
2034 * config/x86/copymask.c: New file.
2035 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2036 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2037 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2038 * config/x86/target_tls.h: Move contents to target_i.h.
2039
2040 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2041 * testsuite/libitm.c/memcpy-1.c: New.
2042
20432009-10-22 Richard Henderson <rth@redhat.com>
2044
2045 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2046 (AM_CCASFLAGS): New.
2047 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2048 saving/restoring _AC_ARG_VAR_PRECIOUS.
2049 * Makefile.in, aclocal.m4, config.h.in, configure,
2050 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2051
20522009-10-22 Richard Henderson <rth@redhat.com>
2053
2054 * testsuite/*: Update for new compiler syntax.
2055
20562009-10-21 Richard Henderson <rth@redhat.com>
2057
2058 * libitm.h (_ITM_abortReason): Add outerAbort.
2059
20602009-08-03 Richard Henderson <rth@redhat.com>
2061
2062 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2063 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2064 * method-wbetl.c (struct w_entry): Remove mask.
2065 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2066 adjust all callers.
2067
20682009-07-22 Richard Henderson <rth@redhat.com>
2069
2070 * eh_cpp.c: New file.
2071 * Makefile.am (libitm_la_SOURCES): Add it.
2072 * Makefile.in: Rebuild.
2073 * beginend.c (GTM_rollback_transaction): Undo exception state.
2074 (GTM_trycommit_transaction): Mark inline.
2075 (GTM_trycommit_and_finalize_transaction): Split out from ...
2076 (_ITM_commitTransaction): ... here.
2077 (_ITM_commitTransactionEH): New function.
2078 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2079 cxa_unthrown, eh_in_flight; reorder.
2080
2081 * testsuite/libitm.c++/c++.exp: New.
2082 * testsuite/libitm.c++/eh-1.C: New.
2083
2084 * aatree.c (aa_free): Remove REGPARM.
2085 * aatree.h: Remove all REGPARM.
2086
20872009-07-18 Richard Henderson <rth@redhat.com>
2088
2089 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2090 * Makefile.am (libitm_la_SOURCES): Add them.
2091 * Makefile.in: Rebuild.
2092 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2093 (GTM_trycommit_transaction): Likewise.
2094 * libitm.h: Include aatree.h
2095 (struct gtm_alloc_action): New.
2096 (struct gtm_transaction): Add alloc_actions.
2097 (GTM_record_allocation, GTM_forget_allocation): Declare.
2098 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2099 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2100 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2101 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2102 _ZGTtdaPvRKSt9nothrow_t): Export.
2103
21042009-07-18 Richard Henderson <rth@redhat.com>
2105
2106 * target_tls.h: Move ...
2107 * config/posix/target_tls.h: ... here.
2108
21092009-07-07 Richard Henderson <rth@redhat.com>
2110
2111 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2112
21132009-07-07 Richard Henderson <rth@redhat.com>
2114
2115 * Update to GPL3.
2116
21172009-07-07 Richard Henderson <rth@redhat.com>
2118
2119 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2120 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2121
2122 * configure.tgt: Don't use -ftls-model for x86 linux.
2123 * libitm.h: Include target.h after standard includes.
2124 (_gtm_thr): Rename from gtm_thr.
2125 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2126 (gtm_disp, set_gtm_disp): New.
2127 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2128 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2129 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2130
21312009-07-07 Richard Henderson <rth@redhat.com>
2132
2133 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2134
21352009-07-06 Richard Henderson <rth@redhat.com>
2136
2137 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2138 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2139 (_ITM_beginTransaction): Take variadic arguments.
2140 (_ITM_registerThrownObject): Declare.
2141 * beginend.c, serial.c: Update.
2142 * libitm.map: Add _ITM_registerThrownObject.
2143
21442009-01-28 Richard Henderson <rth@redhat.com>
2145
2146 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2147 * Makefile.in: Rebuild.
2148 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2149 (GTM_restart_transaction): Fix uninstrumented code check.
2150 * retry.c (GTM_decide_retry_strategy): Add serial check.
2151 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2152 automatically go irrevokable when in serial mode.
2153 * clone.c: New file.
2154 * libitm.h, libitm.map: Update.
2155
21562009-01-27 Richard Henderson <rth@redhat.com>
2157
2158 * Makefile.am (LTCCASCOMPILE): Define.
2159 (libitm_la_SOURCES): Add methid-wbetl.c.
2160 * testsuite/Makefile.am: New
2161 * configure.ac: Add testsuite/Makefile.
2162 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2163 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2164 (_ITM_abortTransaction): Finalize implementation method; pass
2165 transaction properties to longjmp.
2166 (GTM_restart_transaction): Split out from ...
2167 (_ITM_commitTransaction): ... here.
2168 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2169 Move to config/x86/target.h.
2170 * config/linux/alpha/futex_bits.h: New.
2171 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2172 * config/x86/target.h: Disable target types for 32-bit.
2173 * config/alpha/sjlj.S, config/alpha/target.h: New.
2174 * libitm.h (struct gtm_dispatch): Add init, fini.
2175 (enum restart_reason): New.
2176 (struct gtm_transaction): Add method and restarts.
2177 * retry.c (GTM_decide_retry_strategy): Implement.
2178 * serial.c (serial_init, serial_fini): New.
2179 (GTM_serialmode): Finialize outgoing method.
2180 * method-wbetl.c: New.
2181
21822008-12-09 Richard Henderson <rth@redhat.com>
2183
2184 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2185 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2186 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2187 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2188 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2189 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2190 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2191 * serial.c (serial_R##T, serial_W##T): Likewise.
2192
21932008-11-21 Richard Henderson <rth@redhat.com>
2194
2195 * Initial commit.
21fa2a29 2196\f
a5544970 2197Copyright (C) 2008-2019 Free Software Foundation, Inc.
21fa2a29
JJ
2198
2199Copying and distribution of this file, with or without modification,
2200are permitted in any medium without royalty provided the copyright
2201notice and this notice are preserved.