]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
libstdc++: Simplify constexpr checks in std::char_traits [PR 91488]
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
2f7f0d32
GA
12021-01-15 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/70454
4 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5 be added through preprocessor check on
6 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
7
651b8a50
GA
82021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9
10 * configure: Re-generate.
11
b6dd195a
GA
122021-01-01 Jakub Jelinek <jakub@redhat.com>
13
14 * libitm.texi: Bump @copying's copyright year.
15
6e1edf48
GA
162020-12-05 Iain Sandoe <iain@sandoe.co.uk>
17
18 PR target/97865
19 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
20 * configure: Regenerate.
21
a9625c50
GA
222020-11-29 John David Anglin <danglin@gcc.gnu.org>
23
24 * configure: Regenerate.
25
6c2675fa
GA
262020-10-01 Alan Modra <amodra@gmail.com>
27
28 * config/powerpc/sjlj.S: Support __PCREL__ code.
29
53256ee3
GA
302020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
31
32 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
33
3f8ca9cb
GA
342020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
35
36 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
37 and add BTI c to function entries.
38
392020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
40
41 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
42
885ef72f
GA
432020-05-29 H.J. Lu <hjl.tools@gmail.com>
44
45 PR bootstrap/95413
46 * configure: Regenerated.
47
4c1a5d8b
L
482020-05-15 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR bootstrap/95147
51 * configure: Regenerated.
52
8d286dd1
L
532020-05-14 H.J. Lu <hongjiu.lu@intel.com>
54
55 * configure: Regenerated.
56
f0de5d83
NS
572020-05-12 Nathan Sidwell <nathan@acm.org>
58
59 Fix throw specifiers on interface.
60 * libitm/libitm.h (_ITM_NOTHROW): Define.
61 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
62 (_ITM_cxa_begin_catch): Use it.
63 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
64 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
65 __cxa_get_globals.
66 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
67 (_ITM_cxa_begin_catch): Likewise.
68
1136ba01
NS
692020-05-05 Nathan Sidwell <nathan@acm.org>
70
71 * testsuite/lib/libitm.exp (libitm_init): Add
72 -fdiagnostics-color=never to options.
73
02ce382c
SL
742020-02-12 Sandra Loosemore <sandra@codesourcery.com>
75
76 PR libstdc++/79193
77 PR libstdc++/88999
78
79 * configure: Regenerated.
80
e8e66971
MR
812020-01-24 Maciej W. Rozycki <macro@wdc.com>
82
83 * configure.ac: Handle `--with-toolexeclibdir='.
84 * Makefile.in: Regenerate.
85 * aclocal.m4: Regenerate.
86 * configure: Regenerate.
87 * testsuite/Makefile.in: Regenerate.
88
7e7065b9
JJ
892020-01-01 Jakub Jelinek <jakub@redhat.com>
90
8d9254fc
JJ
91 Update copyright years.
92
7e7065b9
JJ
93 * libitm.texi: Bump @copying's copyright year.
94
00484365
SN
952019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
96
97 PR libgomp/91938
98 * configure.tgt: Avoid IE tls on *-*-musl*.
99
e9085da5
MR
1002019-09-27 Maciej W. Rozycki <macro@wdc.com>
101
102 * configure: Regenerate.
103
b1e21e5a
CL
1042019-09-10 Christophe Lyon <christophe.lyon@st.com>
105
a360a359
CL
106 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
107
1082019-09-10 Christophe Lyon <christophe.lyon@st.com>
109
110 * configure.tgt: Handle *-*-uclinux*.
111 * configure: Regenerate.
b1e21e5a 112
3c086f8d
FW
1132019-09-06 Florian Weimer <fweimer@redhat.com>
114
115 * configure: Regenerate.
116
c6c2d1bc
CLT
1172019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
118
119 PR other/79543
120 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
121 scanning to conform to the GNU Coding Standards.
122 * configure: Regenerate.
123
061a799b
JJ
1242019-05-03 Jakub Jelinek <jakub@redhat.com>
125
126 * Makefile.am (finclude): Remove.
127 * Makefile.in: Regenerated.
128
a5544970
JJ
1292019-01-01 Jakub Jelinek <jakub@redhat.com>
130
131 Update copyright years.
132
3f27508c
JJ
1332019-01-01 Jakub Jelinek <jakub@redhat.com>
134
135 * libitm.texi: Bump @copying's copyright year.
136
784417d1
JJ
1372018-12-16 Jakub Jelinek <jakub@redhat.com>
138
139 PR c++/88482
140 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
141 void * to void (*) (void *).
142 (_ITM_cxa_throw): Likewise.
143 * libitm.h (_ITM_cxa_throw): Likewise.
144 * libitm.texi (_ITM_cxa_throw): Likewise.
145
d1573fe0
PB
1462018-12-13 Peter Bergner <bergner@linux.ibm.com>
147
148 * config/powerpc/target.h (htm_available): Add support for
149 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
150
22e05272
JM
1512018-10-31 Joseph Myers <joseph@codesourcery.com>
152
153 PR bootstrap/82856
154 * Makefile.am: Include multilib.am.
155 (AUTOMAKE_OPTIONS): Add info-in-builddir.
156 (CLEANFILES): Remove libitm.info.
157 * configure.ac: Remove AC_PREREQ.
158 * testsuite/Makefile.am (RUNTEST): Remove quotes.
159 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
160 Regenerate.
161
1f82422a
NK
1622018-10-30 Nicholas Krause <xerofoify@gmail.com>
163
a2e0398a 164 PR libitm/86293
1f82422a
NK
165 * method-serial.cc: Mark varible as potentially unused
166 to silence warning.
167
f6a9dfd3
ST
1682018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
169
170 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
171 absolute relocation in a shared library.
172
97cad511
L
1732018-06-12 H.J. Lu <hongjiu.lu@intel.com>
174
175 PR libitm/85988
176 * config/linux/x86/tls.h (SEG_READ): Use the offset of
177 __private_tm as base.
178 (SEG_WRITE): Likewise.
179 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
180 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
181 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
182 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
183 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
184
b46b715d
JM
1852018-05-17 Jason Merrill <jason@redhat.com>
186
187 * beginend.cc (save): Disable -Werror=deprecated-copy.
188
9220b511
TV
1892018-05-02 Tom de Vries <tom@codesourcery.com>
190
191 PR testsuite/85106
192 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
193
6c3c13c1
TV
1942018-05-02 Tom de Vries <tom@codesourcery.com>
195
196 PR testsuite/85106
197 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
198
ffc2fc06
L
1992018-04-24 H.J. Lu <hongjiu.lu@intel.com>
200
201 * config/x86/sjlj.S (_ITM_beginTransaction): Add
202 (__CET__ & 2) != 0 check for shadow stack.
203 (GTM_longjmp): Likewise.
204
7b47ecf2
L
2052018-04-24 H.J. Lu <hongjiu.lu@intel.com>
206
207 * configure: Regenerated.
208
0ef9f21d
L
2092018-04-23 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR target/85489
212 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
213
a0e1df88
JJ
2142018-04-19 Jakub Jelinek <jakub@redhat.com>
215
216 * configure: Regenerated.
217
001ddaa8
DM
2182018-04-18 David Malcolm <dmalcolm@redhat.com>
219
220 PR jit/85384
221 * configure: Regenerate.
222
14e335ed
IT
2232018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
224
225 PR target/84148
226 * configure: Regenerate.
227
65e6aea3
JJ
2282018-01-03 Jakub Jelinek <jakub@redhat.com>
229
85ec4feb
JJ
230 Update copyright years.
231
65e6aea3
JJ
232 * libitm.texi: Bump @copying's copyright year.
233
c51081fc
IT
2342017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
235
236 * Makefile.in: Regenerate.
237 * acinclude.m4: Add enable.m4 and cet.m4.
238 * config/x86/sjlj.S: Include cet.h.
239 (_ITM_beginTransaction): Add _CET_ENDBR.
240 Save Shadow Stack pointer.
241 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
242 * config/x86/target.h (struct gtm_jmpbuf):
243 Add new field for Shadow Stack pointer.
244 * configure: Regenerate.
245 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
246 * configure.ac: Update libtool_VERSION for x86.
247 * testsuite/Makefile.in: Regenerate.
248
cc03e55b
IT
2492017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
250
251 * libitm/config/x86/target.h: Add new field (ssp).
252 * libitm/config/x86/sjlj.S: Change offsets.
253
62ffe920
RO
2542017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255
256 * testsuite/lib/libitm.exp: Load scanlang.exp.
257
5764ee3c
JW
2582017-04-03 Jonathan Wakely <jwakely@redhat.com>
259
260 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
261
73aa401e
JJ
2622017-01-21 Jakub Jelinek <jakub@redhat.com>
263
264 PR other/79046
265 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
266 of cat to get version from BASE-VER file.
267 * testsuite/Makefile.in: Regenerated.
268
16a34ca6
UB
2692017-01-19 Uros Bizjak <ubizjak@gmail.com>
270
271 * config/x86/target.h (htm_available): Determine vendor from
272 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
273
f8a94453
TR
2742017-01-18 Torvald Riegel <triegel@redhat.com>
275
276 * config/x86/target.h (htm_available): Add check for some processors
277 on which TSX is broken.
278
3c36aa6b
JJ
2792017-01-17 Jakub Jelinek <jakub@redhat.com>
280
281 PR other/79046
282 * configure.ac: Add GCC_BASE_VER.
283 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
284 get version from BASE-VER file.
285 * testsuite/Makefile.in: Regenerated.
286 * configure: Regenerated.
287 * Makefile.in: Regenerated.
288
8f56cb51
AM
2892017-01-04 Alan Modra <amodra@gmail.com>
290
291 * Makefile.in: Regenerate.
292 * testsuite/Makefile.in: Regenerate.
293
c1a9c369
JJ
2942017-01-01 Jakub Jelinek <jakub@redhat.com>
295
cbe34bb5
JJ
296 Update copyright years.
297
c1a9c369
JJ
298 * libitm.texi: Bump @copying's copyright year.
299
66dbcf2d
RO
3002016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
301
302 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
303 * aclocal.m4: Regenerate.
304 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
305 LIBITM_CHECK_LINKER_HWCAP.
306
84c1b9d3
MK
3072016-11-15 Matthias Klose <doko@ubuntu.com>
308
309 * configure: Regenerate.
310
831698b8
L
3112016-04-19 H.J. Lu <hongjiu.lu@intel.com>
312
313 PR libitm/70456
314 * util.cc (xmalloc): Use posix_memalign to allocate memory on
315 on cache line if requested.
316
edcbda7e
DV
3172016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
318
319 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
320 function attribute to disable floating point in begin_transaction() on
321 S/390.
322 * beginend.cc (begin_transaction): Use
323 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
324
6041f70a
TR
3252016-01-22 Torvald Riegel <triegel@redhat.com>
326
327 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
328 boundary.
329 (htm_fastpath): Remove.
330 (gtm_thread::begin_transaction): Fix HTM fastpath.
331 (_ITM_commitTransaction): Adapt.
332 (_ITM_commitTransactionEH): Adapt.
333 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
334 and accessors.
335 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
336 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
337 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
338 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
339 * libitm/method-serial.cc (htm_mg): Adapt.
340 (gtm_thread::serialirr_mode): Adapt.
341 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
342
0b96ffdb
TR
3432016-01-21 Torvald Riegel <triegel@redhat.com>
344
345 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
346 or AIX.
347
b1de98e3
RH
3482016-01-19 Richard Henderson <rth@redhat.com>
349
350 PR bootstrap/69343
351 PR bootstrap/69339
352 Revert:
353 2016-01-13 Richard Henderson <rth@redhat.com>
354
355 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
356 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
357 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
358 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
359 * configure.ac (ARCH_AARCH64): New conditional.
360 (ARCH_PPC, ARCH_S390): Likewise.
361 * Makefile.in, configure: Rebuild.
362
363 * libitm.h (_ITM_TYPE_M128): Always define.
364 * vect64.cc: Split ...
365 * vect128.cc: ... out of...
366 * config/x86/x86_sse.cc: ... here.
367 * config/arm/neon.cc: New file.
368
f57fc960
TR
3692016-01-19 Torvald Riegel <triegel@redhat.com>
370
371 * local_type_traits: Remove file.
372 * libitm_i.h: Don't include it anymore.
373 (sized_integral): Remove.
374
d2653984
TR
3752016-01-16 Torvald Riegel <triegel@redhat.com>
376
377 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
378 safety.
379 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
380 * libitm/testsuite/libitm.c/priv-1.c: New.
381
a04d5fc9
TR
3822015-01-15 Torvald Riegel <triegel@redhat.com>
383
384 testsuite/libitm.c++/libstdc++-safeexc.C: New.
385
e89137ce
TR
3862016-01-13 Torvald Riegel <triegel@redhat.com>
387
388 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
389 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
390 (gtm_rwlock::write_unlock): Likewise.
391
4c868789
RH
3922016-01-13 Richard Henderson <rth@redhat.com>
393
394 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
395 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
396 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
397 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
398 * configure.ac (ARCH_AARCH64): New conditional.
399 (ARCH_PPC, ARCH_S390): Likewise.
400 * Makefile.in, configure: Rebuild.
401
402 * libitm.h (_ITM_TYPE_M128): Always define.
403 * vect64.cc: Split ...
404 * vect128.cc: ... out of...
405 * config/x86/x86_sse.cc: ... here.
406 * config/arm/neon.cc: New file.
407
629e4729
TR
4082016-01-13 Torvald Riegel <triegel@redhat.com>
409
410 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
411 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
412 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
413 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
414 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
415 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
416 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
417 (serialirr_dispatch::snapshot_most_recent): New.
418 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
419
0d1ed412
TR
4202016-01-12 Torvald Riegel <triegel@redhat.com>
421
422 * libitm_i.h (gtm_mask_stack): Remove.
423 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
424 * stmlock.h: Remove file.
425 * config/alpha/cacheline.h: Likewise.
426 * config/generic/cacheline.h: Likewise.
427 * config/powerpc/cacheline.h: Likewise.
428 * config/sparc/cacheline.h: Likewise.
429 * config/x86/cacheline.h: Likewise.
430
21fa2a29
JJ
4312016-01-04 Jakub Jelinek <jakub@redhat.com>
432
818ab71a
JJ
433 Update copyright years.
434
21fa2a29
JJ
435 * libitm.texi: Bump @copying's copyright year.
436
e7f7330f
TR
4372015-11-26 Torvald Riegel <triegel@redhat.com>
438
439 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
440 (ml_wt_dispatch::pre_write): Adapt.
441 (ml_wt_dispatch::pre_load): Likewise.
442
4f8a3b87
TR
4432015-11-22 Torvald Riegel <triegel@redhat.com>
444
445 * libitm_i.h (gtm_alloc_action): Remove union.
446 * testsuite/libitm.c/alloc-1.c: New.
447
258c1d07
TR
4482015-11-19 Torvald Riegel <triegel@redhat.com>
449
450 * testsuite/libitm.c++/eh-5.C: New.
451 * libitm.h (_ITM_cxa_free_exception): New.
452 * libitm.map (_ITM_cxa_free_exception): Add it.
453 * libitm.texi: Update ABI docs.
454 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
455 (gtm_transaction_cp::cxa_uncaught_count): Add.
456 (gtm_thread::cxa_unthrown): Remove.
457 (gtm_thread::cxa_uncaught_count_ptr): Add.
458 (gtm_thread::cxa_uncaught_count): Add.
459 (gtm_thread::drop_references_allocations): Rename to...
460 (gtm_thread::discard_allocation): ... this and adapt.
461 (gtm_thread::init_cpp_exceptions): New.
462 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
463 (gtm_thread::begin_transaction): Likewise.
464 (gtm_transaction_cp::save): Likewise.
465 (gtm_thread::trycommit): Likewise.
466 * eh_cpp.cc: Add overview comments.
467 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
468 (free_any_exception, _ITM_cxa_free_exception): New.
469 (gtm_thread::init_cpp_exceptions): Define.
470 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
471 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
472 (gtm_thread::revert_cpp_exceptions): Likewise.
473
c518678b
TR
4742015-11-09 Torvald Riegel <triegel@redhat.com>
475
476 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
477 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
478 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
479 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
480 (gtm_thread::forget_allocations): New overload with size_t argument.
481 * alloc.c (gtm_thread::forget_allocation): Define new overload and
482 adapt existing one.
483 (gtm_thread::record_allocation): Adapt.
484 (gtm_thread::commit_allocations_1): Adapt.
485 (gtm_thread::commit_allocations_2): Adapt.
486 * testsuite/libitm.c++/newdelete.C: New.
487
1e44e857
DJ
4882015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
489 Joseph Myers <joseph@codesourcery.com>
490 Mark Shinwell <shinwell@codesourcery.com>
491 Andrew Stubbs <ams@codesourcery.com>
492 Rich Felker <dalias@libc.org>
493
494 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
495 GTM_begin_transaction for compatibility with FDPIC.
496
9e531d37
DM
4972015-10-09 David Malcolm <dmalcolm@redhat.com>
498
499 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
500 using load_gcc_lib.
501
c629c246
GFM
5022015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
503
504 PR libitm/61164
505 * local_atomic (__always_inline): Rename to...
506 (__libitm_always_inline): ... this.
507
cd5a9a74
CSLL
5082015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
509
510 PR target/52482
511 * config/powerpc/sjlj.S: Port to Xcode 2.5.
512
ea023bcf
UB
5132015-05-27 Uros Bizjak <ubizjak@gmail.com>
514
d778b5a0
UB
515 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
516 operands "op" and "val" to int.
517
5182015-05-27 Uros Bizjak <ubizjak@gmail.com>
519
520 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
521 "op" and "val" to int.
522
5232015-05-27 Uros Bizjak <ubizjak@gmail.com>
524
525 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
526 "op" and "val" to int.
527
5282015-05-27 Uros Bizjak <ubizjak@gmail.com>
529
530 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
531 Declare as static int.
532 (FUTEX_PRIVATE_FLAG): Remove L suffix.
533 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
534
5352015-05-27 Uros Bizjak <ubizjak@gmail.com>
536
537 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
538 sys_futex0 function.
ea023bcf 539
503902f9
MH
5402015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
541
542 * Makefile.in: Regenerated with automake-1.11.6.
543 * aclocal.m4: Likewise.
544 * configure: Likewise.
545 * testsuite/Makefile.in: Likewise.
546
96ce40cb
GR
5472015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
548
549 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
550 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
551
3a07b160
L
5522015-01-15 H.J. Lu <hongjiu.lu@intel.com>
553
554 PR libitm/64360
555 * libitm.c/stackundo.c (test2): Make it static.
556 (test1): Likewise.
557
5624e564
JJ
5582015-01-05 Jakub Jelinek <jakub@redhat.com>
559
560 Update copyright years.
561
b67cd4e3
JJ
5622015-01-05 Jakub Jelinek <jakub@redhat.com>
563
564 * libitm.texi: Bump @copying's copyright year.
565
69aef6dc
KT
5662014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
567
568 * testsuite/lib/libitm.exp: Load target-utils.exp.
569 Move load of target-supports.exp earlier.
570
68bc9270
UB
5712014-12-03 Uros Bizjak <ubizjak@gmail.com>
572
573 * configure.tgt (x86_64): Tune -m32 multilib to generic.
574
a699d672
L
5752014-11-21 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR bootstrap/63784
578 * configure: Regenerated.
579
ebf6d33b
FXC
5802014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
581
582 PR target/63610
583 * configure: Regenerate.
584
99183741
MP
5852014-10-06 Marek Polacek <polacek@redhat.com>
586
587 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
588 * testsuite/libitm.c/memset-1.c: Likewise.
589
b6334cf4
RH
5902014-07-24 Richard Henderson <rth@redhat.com>
591
592 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
593 addressing mode in epilogue.
594
3c698bf0
RO
5952014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
596
597 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
598 -mclear-hwcap instead.
599 * configure: Regenerate.
600 * clearcap.map: Remove.
601
dbed5a9b
JM
6022014-05-21 John Marino <gnugcc@marino.st>
603
604 * configure.tgt (*-*-dragonfly*): New target.
605
b17f08dd
RH
6062014-05-19 Richard Henderson <rth@redhat.com>
607
608 * config/aarch64/sjlj.S: New file.
609 * config/aarch64/target.h: New file.
610 * configure.tgt: Enable aarch64.
611
5e1f630a
RO
6122014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613
614 * config/generic/asmcfi.h: Also check for
615 __GCC_HAVE_DWARF2_CFI_ASM.
616
84c2f4b0
RH
6172013-04-02 Richard Henderson <rth@redhat.com>
618
619 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
620 * config/arm/target.h, config/sh/target.h: Likewise.
621 * config/sparc/target.h, config/x86/target.h: Likewise.
622
7cc51d64
JJ
6232014-03-26 Jakub Jelinek <jakub@redhat.com>
624
625 * config/linux/futex_bits.h: Include errno.h.
626 (sys_futex0): If syscall returns -1, return -errno rather than
627 -1.
628
c288ec8f
JM
6292014-03-26 Joseph Myers <joseph@codesourcery.com>
630
631 * libitm.texi (Index): Rename to Library Index.
632
ed100f5d
L
6332014-01-13 H.J. Lu <hongjiu.lu@intel.com>
634
635 PR libitm/53113
636 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
637 (x86_avx.lo): Append -mavx to CXXFLAGS.
638 * Makefile.in: Regenerate.
639
f93608e6
RS
6402014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
641
642 Update copyright years
643
98db73df
TB
6442014-01-02 Tobias Burnus <burnus@net-b.de>
645
646 * libitm.texi: Bump @copying's copyright year.
647
b54214fe
UW
6482013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
649
650 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
651 (FUNC): Define ELFv2 variant.
652 (END): Likewise.
653 (HIDDEN): Likewise.
654 (CALL): Likewise.
655 (BASE): Likewise.
656 (LR_SAVE): Likewise.
657
3cbe17f7
AM
6582013-09-20 Alan Modra <amodra@gmail.com>
659
660 * configure: Regenerate.
661
6fb471d8
TR
6622013-08-30 Torvald Riegel <triegel@redhat.com>
663
664 * config/posix/rwlock.cc: Fix initialization order.
665
bec9ec3f
TR
6662013-08-30 Torvald Riegel <triegel@redhat.com>
667
668 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
669 (htm_fastpath): Assign an asm name.
670 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
671 HTM fast paths.
672 (_ITM_actions): Likewise.
673 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
674 x86_64.
675 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
676 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
677 field to the start of the structure.
678 * config/linux/rwlock.h (gtm_rwlock): Update comments.
679 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
680 handling for custom HTM fast paths.
681
1869217f
AK
6822013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
683 Revert:
684 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
685
686 * configure.tgt: Add -msoft-float to XCFLAGS.
687
d62d5152
AK
6882013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
689
690 * configure.tgt: Add -msoft-float to XCFLAGS.
691
aaaffb2a
AK
6922013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
693
694 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
695 (htm_transaction_active): Enable zEC12 instructions in the
696 assembler.
697 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
698
167f68ed
AK
6992013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
700
701 * acinclude.m4: Add htm asm check for s390.
702 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
703 * configure: Regenerate.
704 * config/s390/target.h: Remove __HTM__ check.
705 (htm_available): Call getauxval to get hwcaps and check whether
706 HTM is available or not.
707
0258b6e4
PB
7082013-07-15 Peter Bergner <bergner@vnet.ibm.com>
709
710 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
711 * configure.ac: Use it.
712 (AC_CHECK_HEADERS): Check for sys/auxv.h.
713 (AC_CHECK_FUNCS): Check for getauxval.
714 * config.h.in, configure: Rebuild.
715 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
716 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
717 (USE_HTM_FASTPATH): Define.
718 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
719 _HTM_RETRIES) New macros.
720 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
721 htm_begin_success, htm_commit, htm_transaction_active): New functions.
722
5a3fe9b6
AK
7232013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
724
725 * config/s390/target.h: Include htmintrin.h.
726 (_HTM_ITM_RETRIES): New macro definition.
727 (htm_available, htm_init, htm_begin, htm_begin_success)
728 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
729
6c84d576
IS
7302013-06-20 Iain Sandoe <iain@codesourcery.com>
731 Cesar Philippidis <cesar@codesourcery.com>
732
733 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
734 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
735 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
736 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
737
480c696b
TR
7382013-06-20 Torvald Riegel <triegel@redhat.com>
739
740 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
741 (_ITM_getTransactionId): Same.
742 * config/x86/target.h (htm_transaction_active): New.
743
b1db457b
TR
7442013-06-20 Torvald Riegel <triegel@redhat.com>
745
746 PR libitm/57643
747 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
748 the HTM fastpath.
749
51249377
GP
7502013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
751
752 PR bootstrap/56714
753 * local_atomic (__always_inline): Always define our version.
754 (__calculate_memory_order): Mark inline.
755 (atomic_thread_fence): Ditto.
756 (atomic_signal_fence): Ditto.
757 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
758 (atomic_bool::atomic_flag_clear_explicit): Ditto.
759 (atomic_bool::atomic_flag_test_and_set): Ditto.
760 (atomic_bool::atomic_flag_clear): Ditto.
761
f818478b
JJ
7622013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
763
764 * config/s390/sjlj.S: New file.
765 * config/s390/target.h: New file.
766 * configure.tgt: Set options for S/390.
767
ab4425be
AK
7682013-03-23 Andi Kleen <ak@linux.intel.com>
769
770 * local_atomic (__always_inline): Add.
771 (__calculate_memory_order, atomic_thread_fence,
772 atomic_signal_fence, test_and_set, clear, store, load,
773 exchange, compare_exchange_weak, compare_exchange_strong,
774 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
775 Add __always_inline to force inlining.
776
6c59ffd1
IS
7772013-02-11 Iain Sandoe <iain@codesourcery.com>
778 Jack Howarth <howarth@bromo.med.uc.edu>
779 Patrick Marlier <patrick.marlier@gmail.com>
780
781 PR libitm/55693
782 * alloc_cpp.cc: Enable function declarations on darwin.
783 * eh_cpp.cc: Likewise.
784
75f9527c
RS
7852013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
786
787 Update copyright years.
788
64fbcc74
TR
7892012-11-09 Torvald Riegel <triegel@redhat.com>
790
791 * beginend.cc (htm_fastpath): New.
792 (gtm_thread::begin_transaction, _ITM_commitTransaction,
793 _ITM_commitTransactionEH): Add HTM fastpath handling.
794 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
795 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
796 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
797 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
798 * configure.tgt: Add -mrtm to XCFLAGS.
799 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
800 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
801 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
802 * retry.cc (parse_default_method): Add HTM method parsing.
803 (gtm_thread::number_of_threads_changed): Use HTM by default if
804 available.
805
b9efc877
TS
8062012-11-04 Thomas Schwinge <thomas@codesourcery.com>
807
808 * configure: Regenerate.
809
07d3b5c8
RH
8102012-10-31 Richard Henderson <rth@redhat.com>
811
812 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
813 * configure.ac: Use it.
814 * config.h.in, configure: Rebuild.
815 * testsuite/Makefile.in: Rebuild.
816
eb00e959
TR
8172012-10-24 Torvald Riegel <triegel@redhat.com>
818
819 * libitm.texi: Clarify ABI requirements for data-logging functions.
820
b679c813
TR
8212012-10-24 Torvald Riegel <triegel@redhat.com>
822
823 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
824 it requires serial mode instead of assuming that for certain
825 dispatchs.
826 * dispatch.h (abi_dispatch::requires_serial): New.
827 (abi_dispatch::abi_dispatch): Adapt.
828 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
829 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
830 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
831 serial_dispatch::serial_dispatch,
832 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
833
0c609a21
UB
8342012-10-02 Uros Bizjak <ubizjak@gmail.com>
835
836 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
837 and ia32 declarations some more.
838 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
839
c0758df9
JJ
8402012-09-20 Jakub Jelinek <jakub@redhat.com>
841
842 PR other/43620
843 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
844 * configure: Regenerate.
845 * Makefile.in: Regenerate.
846
690c45b8
DE
8472012-09-14 David Edelsohn <dje.gcc@gmail.com>
848
849 * configure: Regenerated.
850
68a12ef3
UB
8512012-07-31 Uros Bizjak <ubizjak@gmail.com>
852
853 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
854
f2f9a097
PM
8552012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
856
857 * eh_cpp.cc: Fix __cxa_end_catch declaration.
858
e6d5f8c9
L
8592012-05-16 H.J. Lu <hongjiu.lu@intel.com>
860
861 * configure: Regenerated.
862
0100e3b3
L
8632012-04-04 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR libitm/52854
866 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
867 for x86-64.
868
2f6935f4
TG
8692012-04-03 Tristan Gingold <gingold@adacore.com>
870
871 * configure: Regenerate.
872
b9c23a61
L
8732012-03-31 H.J. Lu <hongjiu.lu@intel.com>
874
875 PR bootstrap/52812
876 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
877
6a26a74d
BRF
8782012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
879
880 * testsuite/lib/libitm.exp: load fortran-modules.exp
881
b24513a1
RO
8822012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
883
884 * configure.tgt (*-*-irix6*): Remove.
885
0d23faac
TR
8862012-03-13 Torvald Riegel <triegel@redhat.com>
887
888 PR libitm/52526
889 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
890 wake-up.
891
5c30094f
RO
8922012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893
894 * configure.tgt (*-*-osf*): Remove.
895 * configure: Regenerate.
896
d28b0b08
TR
8972012-03-05 Torvald Riegel <triegel@redhat.com>
898
899 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
900 memtransfer/memset if size isn't larger than zero.
901
034209bc
TR
9022012-03-02 Torvald Riegel <triegel@redhat.com>
903
904 * libitm.texi: Link to specification and add a usage example.
905
bc8da6ba
TR
9062012-02-24 Torvald Riegel <triegel@redhat.com>
907
908 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
909 default dispatch for more than 1 thread to ml_wt.
910
63b08143
TR
9112012-02-20 Torvald Riegel <triegel@redhat.com>
912
913 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
914
4c9bd6ac
TR
9152012-02-20 Torvald Riegel <triegel@redhat.com>
916
917 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
918
651ff415
TR
9192012-02-20 Torvald Riegel <triegel@redhat.com>
920
921 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
922 serial mode corner cases made obsolete by prior gtm_rwlock changes.
923 (gl_wt_dispatch.rollback): Same.
924
efee0113
TR
9252012-02-20 Torvald Riegel <triegel@redhat.com>
926
927 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
928
33a03827
TR
9292012-02-20 Torvald Riegel <triegel@redhat.com>
930
931 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
932 for RfW src. Optimize number of calls to gtm_thr.
933
a19db3f2
TR
9342012-02-20 Torvald Riegel <triegel@redhat.com>
935
936 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
937 acquisition to ...
938 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
939 (default_dispatch): Make atomic.
940 (GTM::gtm_thread::set_default_dispatch): Access atomically.
941 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
942 use decide_begin_dispatch() if default_dispatch might have changed.
943 (GTM::gtm_thread::number_of_threads_changed): Initialize
944 default_dispatch here.
945
e948a1fb
IS
9462012-02-15 Iain Sandoe <iains@gcc.gnu.org>
947 Patrick Marlier <patrick.marlier@gmail.com>
948
949 PR libitm/52220
950 * alloc_cpp.cc: No dummy definitions for darwin.
951 * eh_cpp.cc: Likewise.
952
72824d5e
RH
9532012-02-14 Richard Henderson <rth@redhat.com>
954
955 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
956
1f319dba
UB
9572012-02-14 Uros Bizjak <ubizjak@gmail.com>
958
959 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
960
31772c95
TR
9612012-02-14 Torvald Riegel <triegel@redhat.com>
962
963 * libitm_i.h (GTM::gtm_rwlog_entry): New.
964 (GTM::gtm_thread): Add read and write logs.
965 (GTM::dispatch_ml_wt): Declare.
966 * retry.cc (parse_default_method): Support ml_wt.
967 * method-ml.cc: New file.
968 * Makefile.am: Add method-ml.cc.
969 * Makefile.in: Regenerate.
970
5b9cf5d2
TR
9712012-02-14 Torvald Riegel <triegel@redhat.com>
972
973 * dispatch.h (GTM::abi_dispatch::supports): New.
974 (GTM::method_group::reinit): New.
975 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
976 (GTM::gtm_thread::number_of_threads_changed): Check that the method
977 supports the current situation.
978
7d33bcb7
TR
9792012-02-14 Torvald Riegel <triegel@redhat.com>
980
981 * util.cc (GTM::xcalloc): New.
982 * common.h (GTM::xcalloc): Declare.
983
62513f7b
EB
9842012-02-14 Eric Botcazou <ebotcazou@adacore.com>
985
986 * config/sparc/target.h (cpu_relax): Read from CC register.
987 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
988
9892012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
990
991 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
992
f3f5e3c3
EB
9932012-02-13 Eric Botcazou <ebotcazou@adacore.com>
994
62513f7b 995 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
996 * config/sparc/cacheline.h: New file.
997 * config/sparc/target.h: Likewise.
998 * config/sparc/sjlj.S: Likewise.
999 * config/linux/sparc/futex_bits.h: Likewise.
1000
10012012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
1002
1003 * configure.ac (link_itm): Fix comment.
1004 * configure: Regenerate.
1005 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1006
681355e3
RO
10072012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008
fc985d2f 1009 PR libitm/51822
62513f7b 1010 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
1011 Correct libgomp references.
1012
999bcff5
TR
10132012-01-24 Torvald Riegel <triegel@redhat.com>
1014
1015 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1016 wake-up.
1017
9848887a
UB
10182012-01-24 Uros Bizjak <ubizjak@gmail.com>
1019
1020 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1021 end of structure.
1022 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1023 offset values. Do not copy return address. Decrement stack
1024 by 56 bytes only.
1025 (GTM_longjump) [__x86_64__]: Update offset values.
1026
5752c591
UB
10272012-01-23 Uros Bizjak <ubizjak@gmail.com>
1028
1029 PR libitm/51830
1030 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1031 the first function argument to %eax.
1032
61e72ca4
RO
10332012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1034
1035 * libitm.h (_ITM_getThreadnum): Remove.
1036 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1037
9ce91011
RO
10382012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1039
1040 * clearcap.map: New file.
1041 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1042 * configure.ac: Call it.
1043 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1044 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1045 * configure: Regenerate.
1046 * Makefile.in: Regenerate.
1047 * testsuite/Makefile.in: Regenerate.
1048
3b4f05ec
RO
10492012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050
1051 PR libitm/51173
1052 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1053 include, exclude options.
1054
aab74ee9
TR
10552012-01-14 Torvald Riegel <triegel@redhat.com>
1056
1057 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1058 rolling back.
1059 * containers.h (GTM::vector::set_size): New.
1060
07b6642b
TR
10612012-01-14 Torvald Riegel <triegel@redhat.com>
1062
1063 PR libitm/51855
1064 * config/generic/tls.h (GTM::mask_stack_top): New.
1065 (GTM::mask_stack_bottom): Declare.
1066 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1067 * local.cc (gtm_undolog::rollback): Filter out any updates that
1068 overlap the libitm stack. Add current transaction as parameter.
1069 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1070 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1071 * testsuite/libitm.c/stackundo.c: New test.
1072
8377e5e5
RH
10732012-01-10 Richard Henderson <rth@redhat.com>
1074
1075 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1076 * eh_cpp.cc (_Unwind_DeleteException): Define for
1077 !HAVE_ELF_STYLE_WEAKREF.
1078
11f30bb0
TR
10792012-01-08 Torvald Riegel <triegel@redhat.com>
1080
1081 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1082 (GTM::gtm_thread::drop_references_undolog): Remove.
1083 (GTM::gtm_thread::commit_undolog,
1084 GTM::gtm_thread::rollback_undolog): Move to ...
1085 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1086 (GTM::gtm_undolog_entry): Remove.
1087 (GTM::gtm_thread): Adapt.
1088 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1089 (GTM::gtm_thread::trycommit): Adapt.
1090 * method-serial.cc (serial_dispatch::log): Adapt.
1091 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1092 (gl_wt_dispatch::store): Fix likely/unlikely.
1093 * containers.h (GTM::vector::resize): Add additional_capacity
1094 parameter and handle it.
1095 (GTM::vector::resize_noinline): New/adapt.
1096 (GTM::vector::push): New.
1097
a32e5e93
RH
10982012-01-06 Richard Henderson <rth@redhat.com>
1099
1100 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1101 * config/linux/powerpc/futex_bits.h: New file.
1102 * config/powerpc/cacheline.h: New file.
1103 * config/powerpc/sjlj.S: New file.
1104 * config/powerpc/target.h: New file.
1105 * config/generic/asmcfi.h (cfi_offset): New.
1106 (cfi_restore, cfi_undefined): New.
1107
1f53a8e6
AH
11082012-01-05 Aldy Hernandez <aldyh@redhat.com>
1109
1110 PR other/51171
1111 * testsuite/libitm.c/reentrant.c: Remove xfail.
1112 (thread): Pass x to pure().
be223aaf 1113 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 1114
c898f7b8
TR
11152011-12-24 Torvald Riegel <triegel@redhat.com>
1116
1117 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1118 privatization safety if already in serial mode.
1119
610e3901
TR
11202011-12-24 Torvald Riegel <triegel@redhat.com>
1121
1122 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1123 finish_serial_upgrade parameter.
1124 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1125 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1126 Don't unset reader flag.
1127 (GTM::gtm_rwlock::write_upgrade_finish): New.
1128 * config/posix/rwlock.cc: Same.
1129 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1130 Declare.
1131 * config/posix/rwlock.h: Same.
1132 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1133 flag after commit or after rollback when restarting.
1134
799142bf
TR
11352011-12-24 Torvald Riegel <triegel@redhat.com>
1136
1137 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1138 (GTM::gtm_thread::try_commit): Changed memory order.
1139 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1140 as parameter.
1141 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1142 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1143 * config/linux/futex_bits.h (sys_futex0): Same.
1144 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1145 * config/linux/futex.h (futex_wait, futex_wake): Same.
1146 * config/linux/rwlock.h (gtm_rwlock::writers,
1147 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1148 ints.
1149 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1150 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1151 gtm_rwlock::write_unlock): Fix memory orders and fences.
1152 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1153 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1154 gtm_rwlock::write_unlock): Same.
1155 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1156 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1157 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1158 Add comments.
1159 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1160 gl_wt_dispatch::load, gl_wt_dispatch::store,
1161 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1162 orders and fences. Add comments.
1163
b0f96e35
JJ
11642011-12-21 Jakub Jelinek <jakub@redhat.com>
1165
1166 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1167 * Makefile.in: Regenerated.
1168
cc163247
KK
11692011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1170
1171 * configure.tgt: Add sh* case.
1172 * config/sh/target.h: New file.
1173 * config/sh/sjlj.S: New file.
1174 * config/linux/sh/futex_bits.h: New file.
1175
aebac0ca
RH
11762011-12-14 Richard Henderson <rth@redhat.com>
1177
1178 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1179 * config/arm/sjlj.S, config/arm/target.h: New files.
1180 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1181 (cfi_rel_offset): New.
1182 * config/linux/futex_bits.h: New file.
1183 * config/linux/futex.cc: Include futex_bits.h here...
1184 * config/linux/futex.h: ... not here.
1185 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1186 * configure.ac (ARCH_AM): New conditional.
1187 * Makefile.in, configure: Rebuild.
1188 * configure.tgt: Handle ARM.
1189
36cfbee1
RH
11902011-12-13 Richard Henderson <rth@redhat.com>
1191
5d9d05d3
RH
1192 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1193 signed/unsigned comparison werror.
1194
36cfbee1
RH
1195 * local_atomic: New file.
1196 * libitm_i.h: Include it.
1197 (gtm_thread::shared_state): Use atomic template.
1198 * beginend.cc (GTM::gtm_clock): Use atomic template.
1199 (global_tid): Use atomic template if 64-bit atomics available.
1200 (gtm_thread::gtm_thread): Update shared_state access.
1201 (gtm_thread::trycommit): Likewise.
1202 (choose_code_path): Update global_tid access.
1203 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1204 * stmlock.h (GTM::gtm_clock): Use atomic template.
1205 (gtm_get_clock, gtm_inc_clock): Update accesses.
1206 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1207 redundant __sync_synchronize after atomic shared_state access.
1208 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1209 (gtm_rwlock::write_lock_generic): Likewise.
1210 (gtm_rwlock::read_unlock): Likewise.
1211 * config/alpha/target.h (atomic_read_barrier): Remove.
1212 (atomic_write_barrier): Remove.
1213 * config/x86/target.h (atomic_read_barrier): Remove.
1214 (atomic_write_barrier): Remove.
1215
062f93f2
RH
12162011-11-30 Richard Henderson <rth@redhat.com>
1217
1218 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1219 * beginend.c (_ITM_abortTransaction): Update to match.
1220 (GTM::gtm_thread::restart): Likewise.
1221 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1222 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1223
bd8aaa86
IS
12242011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1225
1226 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1227 * Makefile.in: Regenerate.
1228
8cf36bb3
IS
12292011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1230
1231 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1232 * alloc_cpp.cc: Generate dummy functions if we don't
1233 HAVE_ELF_STYLE_WEAKREF.
1234 * eh_cpp.cc: Likewise.
1235 * configure: Regenerate.
1236 * aclocal.m4: Likewise.
1237 * config.h.in: Likewise.
1238 * Makefile.in: Likewise.
1239 * testsuite/Makefile.in: Likewise.
1240
0b41ebef
IS
12412011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1242
1243 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1244 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 1245 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
1246 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1247 in portability to non-elf targets.
8cf36bb3 1248 (GTM_longjmp): Likewise.
0b41ebef
IS
1249 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1250 where required.
1251
9c9d352a
IS
12522011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1253
1254 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1255 * testsuite/libitm.c/memset-1.c: Likewise.
1256
c6084f68
AT
12572011-11-21 Andreas Tobler <andreast@fgznet.ch>
1258
1259 * configure: Regenerate.
1260
adcd36bc
RO
12612011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1262
1263 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1264 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1265 * Makefile.am: Handle sun style versioning.
1266 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1267 * configure: Regenerate.
1268 * Makefile.in: Regenerate.
1269
59659b59
RO
12702011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1271
1272 * config/generic/asmcfi.h: Fix comment.
1273 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1274 sequence without .hidden support, error for non-ELF targets.
1275 (GTM_longjmp) [__ELF__]: Only use .hidden if
1276 HAVE_ATTRIBUTE_VISIBILITY.
1277
d846e425
RO
12782011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279
1280 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1281 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1282 Dummy functions.
1283 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1284 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1285
80713347
UB
12862011-11-16 Uros Bizjak <ubizjak@gmail.com>
1287
1288 PR bootstrap/51098
1289 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1290 * configure: Regenerate.
1291
2841f85e
L
12922011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1293
1294 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1295
8851b429
RO
12962011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1297
1298 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1299 .hidden.
1300 (.note.GNU-stack): Only use if __linux__.
1301 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1302 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1303 * testsuite/libitm.c/reentrant.c: Likewise.
1304 * testsuite/libitm.c/simple-2.c: Likewise.
1305 * testsuite/libitm.c/txrelease.c: Likewise.
1306 * testsuite/libitm.c++/static_ctor.C: Likewise.
1307
d4b17902
RH
13082011-11-10 Richard Henderson <rth@redhat.com>
1309
1310 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1311 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1312 * configure.ac (ARCH_X86_AVX): New conditional.
1313 * Makefile.in, configure: Rebuild.
1314
430616e7
RH
13152011-11-09 Richard Henderson <rth@redhat.com>
1316
1317 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1318 * configure.ac: Use it.
1319 * config.h.in, configure: Rebuild.
1320 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1321
79b1edb6
RH
13222011-11-09 Richard Henderson <rth@redhat.com>
1323
1324 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1325 * config/alpha/unaligned.h: Remove file.
1326 * config/generic/unaligned.h: Remove file.
1327 * config/x86/unaligned.h: Remove file.
1328 * config/generic/cachepage.h: Remove file.
1329 * config/posix/cachepage.cc: Remove file.
1330 * config/generic/cacheline.cc: Remove file.
1331 * config/x86/cacheline.cc: Remove file.
1332 * config/generic/cacheline.h (gtm_cacheline): Remove the
1333 store_mask, copy_mask, copy_mask_wb methods.
1334 * config/x86/cacheline.h: Likewise.
1335 * config/alpha/cacheline.h: Fall back to generic after setting size.
1336 * config/generic/tls.cc (gtm_mask_stack): Remove.
1337 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1338 (GTM_vpalignr_table): Remove.
1339 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1340 (GTM_pshift_table): Remove.
1341 * config/libitm_i.h: Don't include cachepage.h.
1342 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1343 * Makefile.in, testsuite/Makefile.in: Rebuild.
1344
4bdd090f
RH
13452011-11-09 Richard Henderson <rth@redhat.com>
1346
8ee9fac2
RH
1347 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1348 to emit branch prediction hint.
1349
9bdc6343
RH
1350 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1351 Protect .note.GNU-stack with __linux__.
1352
4bdd090f
RH
1353 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1354 * configure, aclocal.m4, config.h.in: Rebuild.
1355 * config/generic/asmcfi.h: New file.
1356 * config/x86/sjlj.S: Use it.
1357
4408b086
RH
13582011-11-08 Richard Henderson <rth@redhat.com>
1359
1360 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1361
01f3428c
RH
13622011-11-08 Richard Henderson <rth@redhat.com>
1363
3d3b05ff
RH
1364 * configure.tgt: Test correct directory for supported cpus.
1365
01f3428c
RH
1366 * configure.ac: Exit if unsupported.
1367 * configure: Rebuild.
1368 * configure.tgt: Delete boilerplate from libgomp for unsupported
1369 targets. Set UNSUPPORTED for unsupported targets.
1370
07f03cd3
RO
13712011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1372
1373 * configure.tgt: Handle i386 like i[456]86.
1374 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1375 take address.
1376 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1377 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1378
0a35513e
AH
13792011-11-05 Aldy Hernandez <aldyh@redhat.com>
1380
1381 * method-wbetl.cc: Update copyright notice.
1382 * aatree.cc: Same.
1383 * util.cc: Same.
1384 * libitm.h: Same.
1385 * memset.cc: Same.
1386 * eh_cpp.cc: Same.
1387 * barrier.tpl: Same.
1388 * useraction.cc: Same.
1389 * stmlock.h: Same.
1390 * memcpy.cc: Same.
1391 * common.h: Same.
1392 * config/generic/tls.cc: Same.
1393 * config/generic/cacheline.h: Same.
1394 * config/generic/cachepage.h: Same.
1395 * config/generic/cacheline.cc: Same.
1396 * config/generic/unaligned.h: Same.
1397 * config/x86/cacheline.h: Same.
1398 * config/x86/cacheline.cc: Same.
1399 * config/x86/unaligned.h: Same.
1400 * config/alpha/cacheline.h: Same.
1401 * config/alpha/unaligned.h: Same.
1402 * config/alpha/sjlj.S: Same.
1403 * config/posix/cachepage.cc: Same.
1404 * config/linux/futex.h: Same.
1405 * config/linux/alpha/futex_bits.h: Same.
1406
14072011-11-04 Torvald Riegel <triegel@redhat.com>
1408
1409 * libitm.texi: No cover text and invariant sections.
1410
14112011-11-03 Richard Henderson <rth@redhat.com>
1412
1413 * local_type_traits: New file.
1414 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1415
14162011-11-03 Richard Henderson <rth@redhat.com>
1417
1418 * configure.ac: Don't test for gfortran.
1419 * configure: Rebuild.
1420
1421 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1422 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1423
14242011-11-03 Aldy Hernandez <aldyh@redhat.com>
1425
1426 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1427 * testsuite/libitm.c/memset-1.c: Same.
1428 * testsuite/libitm.c/c.exp: Same.
1429 * testsuite/lib/libitm-dg.exp: Same.
1430 * testsuite/lib/libitm.exp: Same.
1431 * testsuite/libitm.c++/c++.exp: Same.
1432
14332011-11-03 Aldy Hernandez <aldyh@redhat.com>
1434
1435 * testsuite/config/default.exp: Update copyright date.
1436 * configure.ac: Add copyright info.
1437 * configure.tgt: Same.
1438
14392011-11-03 Aldy Hernandez <aldyh@redhat.com>
1440
1441 * testsuite/libitm.c/reentrant.c: XFAIL.
1442 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1443
14442011-10-29 Torvald Riegel <triegel@redhat.com>
1445
1446 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1447 handle aborts.
1448 (_ITM_abortTransaction): Handle aborts of outer transactions.
1449 * libitm_i.h: Same.
1450 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1451 * libitm.texi: Document aborts of outer transactions.
1452 * testsuite/libitm.c/cancel.c: New file.
1453
14542011-10-19 Torvald Riegel <triegel@redhat.com>
1455
1456 * testsuite/*: Change __transaction to __transaction_atomic or
1457 __transaction_relaxed.
1458
14592011-10-19 Torvald Riegel <triegel@redhat.com>
1460
1461 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1462 (gtm_thr): Same.
1463
14642011-10-19 Torvald Riegel <triegel@redhat.com>
1465
1466 * libitm_i.h: Add gl_wt dispatch.
1467 * retry.cc (parse_default_method): Same.
1468 * method-gl.cc: New file.
1469 * Makefile.am: Use method-gl.cc.
1470 * Makefile.in: Rebuild.
1471
14722011-10-19 Torvald Riegel <triegel@redhat.com>
1473
1474 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1475 safety if requested by a TM method.
1476 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1477 privatization safety.
1478 * method-serial.cc: Same.
1479
14802011-10-19 Torvald Riegel <triegel@redhat.com>
1481
1482 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1483 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1484 undolog-related member functions from *_local to *_undolog.
1485 * local.cc (gtm_thread::commit_undolog): Same.
1486 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1487 (GTM::gtm_thread::rollback): Roll back undolog before
1488 dispatch-specific rollback.
1489
14902011-10-19 Torvald Riegel <triegel@redhat.com>
1491
1492 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1493 re-initialization of the current method group.
1494 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1495
14962011-10-19 Torvald Riegel <triegel@redhat.com>
1497
1498 * alloc.cc (commit_allocations_2): Do not free transaction-local
1499 memory when committing a nested transaction.
1500
15012011-10-19 Torvald Riegel <triegel@redhat.com>
1502
1503 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1504 serial-irrevocable dispatch, not serial.
1505
15062011-10-19 Torvald Riegel <triegel@redhat.com>
1507
1508 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1509 declarations.
1510 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1511 * method-serial.cc: Implement begin_or_restart().
1512 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1513 dispatch-specific begin_or_restart().
1514 (GTM::gtm_thread::restart): Same.
1515
15162011-08-23 Torvald Riegel <triegel@redhat.com>
1517
1518 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1519 restarting without switching to serial mode.
1520 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1521 transaction state. Choose closed-nesting alternative if available.
1522 (GTM::gtm_thread::set_default_dispatch): New.
1523 (parse_default_method): New.
1524 (GTM::gtm_thread::number_of_threads_changed): New.
1525 * method-serial.cc (GTM::serial_mg): New method group class.
1526 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1527 fini.
1528 (GTM::serial_dispatch): Same.
1529 (GTM::serialirr_onwrite_dispatch): Same.
1530 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1531 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1532 registered threads.
1533 (GTM::gtm_thread::gtm_thread): Same.
1534 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1535 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1536 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1537 choose dispatch but set state according to dispatch here.
1538 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1539 (GTM::method_group): New class.
1540 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1541 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1542 * libitm.texi: Document TM methods, method groups, method life cycle.
1543 Rename method sets to method groups.
1544
15452011-08-23 Torvald Riegel <triegel@redhat.com>
1546
1547 * config/x86/tls.h: Moved to ...
1548 * config/linux/x86/tls.h: ... here.
1549
15502011-08-23 Torvald Riegel <triegel@redhat.com>
1551
1552 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1553 Add X32 support.
1554 * config/x86/sjlj.S: Same.
1555
15562011-08-19 Torvald Riegel <triegel@redhat.com>
1557
1558 * config/linux/rwlock.h: New file.
1559 * config/linux/rwlock.c: New file.
1560 * configure.ac: Reenable futex support (undo SVN rev 157758).
1561 * Makefile.am: Same.
1562 * configure.tgt: Same.
1563 * config/linux/alpha/futex_bits.h: Same.
1564 * config/linux/futex.h: Same. Return number of woken processes.
1565 * config/linux/futex.cc: Same.
1566 (futex_wait): Remove spinning.
1567 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1568 Use __x86_64__ instead of __LP64__.
1569 * aclocal.m4: Include generic futex checks.
1570 * configure: Rebuild.
1571 * Makefile.in: Rebuild.
1572 * testsuite/Makefile.in: Rebuild.
1573 * beginend.cc: Include pthread.h.
1574 * config/posix/cachepage.cc: Same.
1575
15762011-08-12 Torvald Riegel <triegel@redhat.com>
1577
1578 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1579 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1580 (set_gtm_thr): New.
1581 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1582 (set_gtm_thr): New.
1583 (GTM::gtm_thread::thread_num): Removed.
1584 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1585 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1586 tx-to-thread renaming.
1587 * beginend.cc: Adapted to tx-to-thread renaming.
1588 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1589 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1590 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1591 gtm_transaction to gtm_thread.
1592 (_ITM_getThreadnum): Removed. Not supported anymore.
1593 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1594 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1595 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1596 gtm_tx-to-gtm_thr renaming if necessary.
1597 * eh_cpp.cc: Same.
1598 * local.cc: Same.
1599 * retry.cc: Same.
1600 * clone.cc: Same.
1601 * alloc.cc: Same.
1602 * alloc_c.cc: Same.
1603 * alloc_cpp.cc: Same.
1604 * method-serial.cc: Same.
1605 * config/generic/tls.cc: Same.
1606 * config/posix/rwlock.h (gtm_rwlock): Same.
1607 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1608
16092011-08-12 Torvald Riegel <triegel@redhat.com>
1610
1611 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1612 implementation.
1613 (gtm_rwlock::read_unlock): Same.
1614 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1615 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1616 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1617 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1618 w_upgrade. Replaced by per-transaction flags (in shared_state).
1619 Added c_confirmed_writers.
1620 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1621 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1622 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1623 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1624 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1625 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1626 * libitm.texi: Document locking conventions and implementations in
1627 libitm.
1628
16292011-08-12 Torvald Riegel <triegel@redhat.com>
1630
1631 * libitm_i.h (next_tx): Add list of all threads' transaction.
1632 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1633 transaction with list of transactions and ...
1634 (thread_exit_handler): ... deregister here.
1635 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1636 * config/x86/target.h: Same.
1637
16382011-08-12 Torvald Riegel <triegel@redhat.com>
1639
1640 * testsuite/libitm.c++/static_ctor.C: New file.
1641
16422011-08-12 Torvald Riegel <triegel@redhat.com>
1643
1644 * testsuite/libitm.c/reentrant.c: New file.
1645
16462011-08-12 Torvald Riegel <triegel@redhat.com>
1647
1648 * config/generic/tls.h: Remove the free list for transactions and ...
1649 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1650 (GTM::gtm_transaction::operator delete): ... and release here.
1651 (thread_exit_handler): New. Delete tx when thread terminates.
1652 (thread_exit_init): New.
1653 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1654 * testsuite/libitm.c/txrelease.c: New file.
1655
16562011-08-12 Torvald Riegel <triegel@redhat.com>
1657
1658 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1659 * testsuite/libitm.c/notx.c: New file.
1660
16612011-08-12 Torvald Riegel <triegel@redhat.com>
1662
1663 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1664 * libitm_i.h (local_tid): ... to here.
1665 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1666 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1667
16682011-08-12 Torvald Riegel <triegel@redhat.com>
1669
1670 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1671 serialirr_onwrite_dispatch as new default for now.
1672 * method-serial.cc (serialirr_onwrite_dispatch): New.
1673 (GTM::dispatch_serialirr_onwrite): New.
1674 * libitm_i.h: Same.
1675
16762011-08-12 Torvald Riegel <triegel@redhat.com>
1677
1678 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1679 * query.cc (_ITM_getTransactionId): There is no active transaction if
1680 the current nesting level is zero.
1681
16822011-07-28 Torvald Riegel <triegel@redhat.com>
1683
1684 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1685 rollback.
1686
16872011-07-28 Torvald Riegel <triegel@redhat.com>
1688
1689 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1690 transaction properties from the caller instead of from the
1691 transaction object.
1692 * libitm_i.h: Same.
1693 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1694
16952011-07-28 Torvald Riegel <triegel@redhat.com>
1696
1697 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1698 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1699 * dispatch.h: Same.
1700 * method-serial.cc: Same.
1701 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1702 flat nesting as default, and closed nesting on demand.
1703 (GTM::gtm_transaction::rollback): Same.
1704 (_ITM_abortTransaction): Same.
1705 (GTM::gtm_transaction::restart): Same.
1706 (GTM::gtm_transaction::trycommit): Same.
1707 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1708 (choose_code_path): New.
1709 (GTM::gtm_transaction_cp::save): New.
1710 (GTM::gtm_transaction_cp::commit): New.
1711 * query.cc (_ITM_inTransaction): Support flat nesting.
1712 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1713 (GTM::gtm_transaction): Support flat and closed nesting.
1714 * alloc.cc (commit_allocations_2): New.
1715 (commit_cb_data): New helper struct.
1716 (GTM::gtm_transaction::commit_allocations): Handle nested
1717 commits/rollbacks.
1718 * libitm.texi: Update user action section, add description of nesting.
1719
17202011-07-28 Torvald Riegel <triegel@redhat.com>
1721
1722 * libitm_i.h: Add closed nesting as restart reason.
1723 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1724
17252011-07-28 Torvald Riegel <triegel@redhat.com>
1726
1727 * useraction.cc: Use vector instead of list to store actions.
1728 Also support partial rollbacks for closed nesting.
1729 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1730 * beginend.cc: Same.
1731
17322011-07-28 Torvald Riegel <triegel@redhat.com>
1733
1734 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1735 closed_nesting flags, as well as a closed nesting alternative.
1736 * method-serial.cc: Same.
1737 (serial_dispatch): Renamed to serialirr_dispatch.
1738 (GTM::dispatch_serialirr): Same.
1739 (serial_dispatch_ul): Renamed to serial_dispatch.
1740 (GTM::dispatch_serial): Same.
1741
17422011-07-28 Torvald Riegel <triegel@redhat.com>
1743
1744 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1745
17462011-07-28 Torvald Riegel <triegel@redhat.com>
1747
1748 * aatree.h (aa_tree::remove): New.
1749 (aa_tree::operator new): Add placement new.
1750
17512011-07-02 Torvald Riegel <triegel@redhat.com>
1752
1753 * containers.h: New file.
1754 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1755 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1756 * common.h: ... to here.
1757 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1758 * local.cc: Same.
1759
17602011-06-30 Torvald Riegel <triegel@redhat.com>
1761
1762 * libitm_i.h (STATE_ABORTING): Remove.
1763 * beginend.cc (_ITM_abortTransaction): Same.
1764 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1765 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1766 (_ITM_rollbackTransaction): Remove.
1767 * beginend.cc: Same.
1768 * libitm.map: Same.
1769 * libitm.texi: Document these ABI changes.
1770
17712011-06-30 Torvald Riegel <triegel@redhat.com>
1772
1773 * libitm.texi: New file.
1774 * Makefile.am: Add libitm.texi.
1775 * Makefile.in: Rebuild.
1776
17772011-06-30 Torvald Riegel <triegel@redhat.com>
1778
1779 * libitm_i.h: Move parts to common.h and dispatch.h.
1780 * common.h: New file.
1781 * dispatch.h: New file, new dispatch class.
1782 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1783 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1784 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1785 decision to retry.cc.
1786 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1787 only.
1788 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1789 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1790 logging.
1791 * barrier.cc: Use new barriers definitions.
1792 (abi_dispatch::memmove_overlap_check): New.
1793 * config/x86/x86_sse.cc: Same.
1794 * config/x86/x86_avx.cc: Same.
1795 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1796 memcpy.cc.
1797 * Makefile.in: Rebuild.
1798 * method-readonly.cc: Remove.
1799 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1800 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1801
18022011-06-30 Torvald Riegel <triegel@redhat.com>
1803
1804 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1805 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1806 * testsuite/libitm.c/dropref-2.c: Same.
1807 * testsuite/libitm.c/dropref.c: Same.
1808
18092011-06-30 Torvald Riegel <triegel@redhat.com>
1810
1811 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1812 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1813 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1814 * alloc_c.cc: Same.
1815 * barrier.tpl: Same.
1816 * beginend.c: Same.
1817 * config/generic/tls.h: Same.
1818 * config/x86/tls.h: Same.
1819 * libitm_i.h: Same.
1820 * memcpy.cc: Same.
1821 * memset.cc: Same.
1822 * method-readonly.cc: Same.
1823 * method-serial.cc: Same.
1824 * method-wbetl.cc: Same.
1825 * retry.cc: Same.
1826
18272011-03-03 Richard Henderson <rth@redhat.com>
1828
1829 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1830 From Patrik Marlier <patrick.marlier@unine.ch>.
1831
18322011-02-03 Richard Henderson <rth@redhat.com>
1833
1834 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1835 * configure.ac: Use it.
1836 * configure, config.h.in: Rebuild.
1837 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1838 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1839 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1840 * libitm.map: Use wildcards to match size_t mangling.
1841
18422010-12-14 Richard Henderson <rth@redhat.com>
1843
1844 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1845 blocks of TIDs per thread.
1846 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1847 (setup_gtm_thr): Return the thread structure.
1848 * config/x86/tls.h (setup_gtm_thr): Likewise.
1849
18502010-12-14 Richard Henderson <rth@redhat.com>
1851
1852 * clone.cc (table_lock): Remove.
1853 (find_clone): Don't take it.
1854 (ExcludeTransaction): New helper class.
1855 (_ITM_registerTMCloneTable): Use it.
1856 (_ITM_deregisterTMCloneTable): Likewise.
1857
18582010-12-14 Richard Henderson <rth@redhat.com>
1859
1860 * config/x86/tls.h: New file.
1861
18622010-07-15 Richard Henderson <rth@redhat.com>
1863
1864 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1865 * Makefile.in: Rebuild.
1866
18672010-07-13 Aldy Hernandez <aldyh@redhat.com>
1868
1869 * method-wbetl.cc (trydropreference): Fix source line.
1870
18712010-07-13 Aldy Hernandez <aldyh@redhat.com>
1872
1873 * libitm.h: Add comment.
1874 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1875
18762010-07-07 Aldy Hernandez <aldyh@redhat.com>
1877
1878 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1879 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1880 available, use pthread mutexes.
1881 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1882 * config.h.in: Regenerate.
1883 * configure: Regenerate.
1884
18852010-07-06 Aldy Hernandez <aldyh@redhat.com>
1886
1887 * libitm.h (ITM_PURE): Define.
1888 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1889
18902010-06-28 Aldy Hernandez <aldyh@redhat.com>
1891
1892 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1893 (validate): Add comment.
1894 (trydropreference): New.
1895 * method-readonly.cc (class readonly_dispatch): Add
1896 trydropreference.
1897 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1898 Call trydropreference().
1899 * libitm.h (_ITM_dropReferences): Remove const attribute.
1900 * method-serial.cc (class serial_dispatch): Add trydropreference.
1901 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1902
19032010-06-28 Aldy Hernandez <aldyh@redhat.com>
1904
1905 * memcpy.cc (do_memcpy): Comment.
1906
19072010-06-25 Aldy Hernandez <aldyh@redhat.com>
1908
1909 * barrier.tpl: Add comments throughout.
1910
19112010-06-24 Aldy Hernandez <aldyh@redhat.com>
1912
1913 * method-wbetl.cc (struct w_entry): Add comments.
1914 (trycommit): Same.
1915 (rollback): Same.
1916
19172010-06-24 Aldy Hernandez <aldyh@redhat.com>
1918
1919 * alloc_c.cc (_ITM_dropReferences): New.
1920 * libitm.map (_ITM_dropReferences): Add.
1921 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1922 * libitm_i.h (struct gtm_transaction): Declare
1923 drop_references_allocations and drop_references_local.
1924 * local.cc (rollback_local): Ignore memory when applicable.
1925 (drop_references_local): New.
1926
19272010-06-23 Richard Henderson <rth@redhat.com>
1928
1929 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1930 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1931 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1932 * config/alpha/target.h: Likewise.
1933 * config/generic/tls.cc (gtm_mask_stack): Use it.
1934
19352010-06-23 Richard Henderson <rth@redhat.com>
1936
1937 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1938 a mutex instead of trying a lock-free compare-and-swap on the list.
1939 (gtm_cacheline_page::operator delete): Likewise.
1940
19412010-06-16 Richard Henderson <rth@redhat.com>
1942
1943 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1944 that overlap the libitm stack.
1945 * barrier.tpl: Mark incoming stack.
1946 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1947 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1948 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1949 * memcpy.cc, memset.cc: Likewise.
1950 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1951 * config/generic/tls.h (gtm_thread): Add stack_top member.
1952 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1953 * libitm_i.h (gtm_mask_stack): Declare.
1954 * config/generic/tls.cc: New file.
1955 * Makefile.am (libitm_la_SOURCES): Add it.
1956 (AM_CXXFLAGS): Turn off exceptions.
1957 * Makefile.in: Rebuild.
1958
19592010-06-16 Richard Henderson <rth@redhat.com>
1960
1961 * alloc.cc (struct gtm_alloc_action): Move definition ...
1962 * libitm_i.h: ... here.
1963 (class gtm_transaction): Declare new and delete.
1964 * beginend.cc (alloc_tx): Reformulate as operator new.
1965 (free_tx): Reformulate as operator delete.
1966 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1967
19682010-06-11 Richard Henderson <rth@redhat.com>
1969
1970 * clone.cc (clone_entry_compare): Fix typo.
1971 From Patrik Marlier <patrick.marlier@unine.ch>.
1972
19732010-05-13 Richard Henderson <rth@redhat.com>
1974
1975 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1976 in extern "C".
1977
19782010-05-07 Aldy Hernandez <aldyh@redhat.com>
1979
1980 * libitm_i.h (struct gtm_transaction): Remove
1981 get_allocation_size.
1982 (record_allocation): Remove size parameter.
1983 * libitm.map (_ITM_realloc): Remove.
1984 * alloc_c.cc (_ITM_realloc): Remove.
1985 (_ITM_malloc): Remove size argument to record_allocation.
1986 (_ITM_calloc): Same.
1987 * alloc_cpp.cc (_ZGTtnwm): Same.
1988 (_ZGTtnwmRKSt9nothrow_t): Same.
1989 (_ZGTtnam): Same.
1990 (_ZGTtnamRKSt9nothrow_t): Same.
1991 * alloc.cc (struct gtm_alloc_action): Remove size.
1992 (get_allocation_size): Remove.
1993 (commit_allocations): Add comment.
1994 (record_allocation): Remove size parameter.
1995 (forget_allocation): Remove set of size.
1996
19972010-04-19 Aldy Hernandez <aldyh@redhat.com>
1998
1999 * Makefile.am (abi_version): New.
2000 (AM_CXXFLAGS): Pass abi_version.
2001 * Makefile.in: Regenerate.
2002 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2003
20042010-04-06 Aldy Hernandez <aldyh@redhat.com>
2005
2006 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2007 _ITM_getTMCloneOrIrrevokable.
2008 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2009 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2010
20112010-03-26 Aldy Hernandez <aldyh@redhat.com>
2012
2013 * configure.ac: Remove Linux futex support.
2014 * configure.tgt (config_path): Same.
2015 * Makefile.am: Same.
2016 * config/linux: Remove entire directory.
2017 * configure: Rebuild.
2018 * Makefile.in: Rebuild.
2019 * testsuite/Makefile.in: Rebuild.
2020
20212010-03-09 Aldy Hernandez <aldyh@redhat.com>
2022
2023 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2024 switching to serial mode.
2025 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2026
20272010-03-03 Aldy Hernandez <aldyh@redhat.com>
2028
2029 * configure.tgt: Add emacs -*- tags.
2030 * barrier.tpl: Same.
2031
20322010-02-23 Aldy Hernandez <aldyh@redhat.com>
2033
2034 * Makefile.am: Rename serial.cc to method-serial.cc.
2035 * Makefile.in: Regenerate with automake 1.11.1.
2036 * testsuite/Makefile.in: Same.
2037 * aclocal.m4: Regenerate with aclocal 1.11.1.
2038 * method-serial.cc: Rename from serial.cc.
2039 * libitm_i.h (struct gtm_transaction): Update comment on
2040 serialirr_mode.
2041
20422010-02-22 Aldy Hernandez <aldyh@redhat.com>
2043
2044 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2045 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2046
20472010-02-11 Aldy Hernandez <aldyh@redhat.com>
2048
2049 * configure: Rebuild.
2050
20512009-11-12 Richard Henderson <rth@redhat.com>
2052
2053 * Rewrite everything in C++.
2054
20552009-11-03 Richard Henderson <rth@redhat.com>
2056
2057 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2058 * Makefile.am (libitm_la_SOURCES): Add them.
2059 * configure.ac (ARCH_X86): New conditional.
2060 * Makefile.in, configure: Rebuild.
2061 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2062 Move futex setup into "other system configury" case.
2063 * local.c (rollback_local): Merge into ...
2064 (GTM_rollback_local): ... here.
2065 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2066 (_ITM_LB): Define as an alias to GTM_LB.
2067
20682009-11-03 Richard Henderson <rth@redhat.com>
2069
2070 * method-readonly.c: New file.
2071 * Makefile.am (libitm_la_SOURCES): Add it.
2072 * Makefile.in: Rebuild.
2073 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2074 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2075 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2076 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2077 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2078 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2079 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2080 gtm_get_clock, gtm_inc_clock): New.
2081 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2082 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2083 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2084 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2085 replace uses with new libitm_i.h symbols.
2086 (dispatch_wbetl): Rename from wbetl_dispatch.
2087 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2088 away from dispatch_readonly; abort if the beginTransaction call
2089 asserted that the transaction was readonly.
2090
20912009-11-03 Richard Henderson <rth@redhat.com>
2092
2093 * memset.c: New file.
2094 * Makefile.am (libitm_la_SOURCES): Add it.
2095 * Makefile.in: Rebuild.
2096 * testsuite/libitm.c/memset-1.c: New.
2097
20982009-11-03 Richard Henderson <rth@redhat.com>
2099
2100 * dispatch.c: Remove file.
2101 * useraction.c (struct gtm_user_action): Move from libitm.h.
2102 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2103 (serial_memset, serial_memmove, serial_memcpy): Remove.
2104 (serial_W*, serial_R*): Remove.
2105 (serial_dispatch): Update to match.
2106 * configure.ac: Move Werror down below configure checks. Don't
2107 check for sys/loadavg.h, do check for malloc.h. Don't check for
2108 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2109 Use GCC_AC_FUNC_MMAP_BLACKLIST
2110 * libitm.h: Split out all internal items to...
2111 * libitm_i.h: ... here. New file.
2112 * copymask.c: New file.
2113 * local.c (struct gtm_local_undo): Move from libitm.h.
2114 (GTM_alloc_local): Rename from alloc_local; export.
2115 * memcpy.c: New file.
2116 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2117 * config/posix/page.c: New file.
2118 * config/posix/target_tls.h: Remove file.
2119 * barrier.c: New file.
2120 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2121 copymask.c, page.c.
2122 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2123 * method-wbetl.c: Rewrite for new cacheline methods.
2124 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2125
2126 * config/alpha/sjlj.S: Fix typo.
2127 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2128 * config/alpha/copymask.c: New file.
2129 * config/alpha/target.h (CACHELINE_SIZE): New.
2130 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2131
2132 * config/x86/target_i.h: Copy functions from x86/target.h.
2133 * config/x86/copymask.c: New file.
2134 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2135 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2136 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2137 * config/x86/target_tls.h: Move contents to target_i.h.
2138
2139 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2140 * testsuite/libitm.c/memcpy-1.c: New.
2141
21422009-10-22 Richard Henderson <rth@redhat.com>
2143
2144 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2145 (AM_CCASFLAGS): New.
2146 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2147 saving/restoring _AC_ARG_VAR_PRECIOUS.
2148 * Makefile.in, aclocal.m4, config.h.in, configure,
2149 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2150
21512009-10-22 Richard Henderson <rth@redhat.com>
2152
2153 * testsuite/*: Update for new compiler syntax.
2154
21552009-10-21 Richard Henderson <rth@redhat.com>
2156
2157 * libitm.h (_ITM_abortReason): Add outerAbort.
2158
21592009-08-03 Richard Henderson <rth@redhat.com>
2160
2161 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2162 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2163 * method-wbetl.c (struct w_entry): Remove mask.
2164 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2165 adjust all callers.
2166
21672009-07-22 Richard Henderson <rth@redhat.com>
2168
2169 * eh_cpp.c: New file.
2170 * Makefile.am (libitm_la_SOURCES): Add it.
2171 * Makefile.in: Rebuild.
2172 * beginend.c (GTM_rollback_transaction): Undo exception state.
2173 (GTM_trycommit_transaction): Mark inline.
2174 (GTM_trycommit_and_finalize_transaction): Split out from ...
2175 (_ITM_commitTransaction): ... here.
2176 (_ITM_commitTransactionEH): New function.
2177 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2178 cxa_unthrown, eh_in_flight; reorder.
2179
2180 * testsuite/libitm.c++/c++.exp: New.
2181 * testsuite/libitm.c++/eh-1.C: New.
2182
2183 * aatree.c (aa_free): Remove REGPARM.
2184 * aatree.h: Remove all REGPARM.
2185
21862009-07-18 Richard Henderson <rth@redhat.com>
2187
2188 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2189 * Makefile.am (libitm_la_SOURCES): Add them.
2190 * Makefile.in: Rebuild.
2191 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2192 (GTM_trycommit_transaction): Likewise.
2193 * libitm.h: Include aatree.h
2194 (struct gtm_alloc_action): New.
2195 (struct gtm_transaction): Add alloc_actions.
2196 (GTM_record_allocation, GTM_forget_allocation): Declare.
2197 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2198 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2199 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2200 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2201 _ZGTtdaPvRKSt9nothrow_t): Export.
2202
22032009-07-18 Richard Henderson <rth@redhat.com>
2204
2205 * target_tls.h: Move ...
2206 * config/posix/target_tls.h: ... here.
2207
22082009-07-07 Richard Henderson <rth@redhat.com>
2209
2210 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2211
22122009-07-07 Richard Henderson <rth@redhat.com>
2213
2214 * Update to GPL3.
2215
22162009-07-07 Richard Henderson <rth@redhat.com>
2217
2218 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2219 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2220
2221 * configure.tgt: Don't use -ftls-model for x86 linux.
2222 * libitm.h: Include target.h after standard includes.
2223 (_gtm_thr): Rename from gtm_thr.
2224 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2225 (gtm_disp, set_gtm_disp): New.
2226 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2227 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2228 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2229
22302009-07-07 Richard Henderson <rth@redhat.com>
2231
2232 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2233
22342009-07-06 Richard Henderson <rth@redhat.com>
2235
2236 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2237 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2238 (_ITM_beginTransaction): Take variadic arguments.
2239 (_ITM_registerThrownObject): Declare.
2240 * beginend.c, serial.c: Update.
2241 * libitm.map: Add _ITM_registerThrownObject.
2242
22432009-01-28 Richard Henderson <rth@redhat.com>
2244
2245 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2246 * Makefile.in: Rebuild.
2247 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2248 (GTM_restart_transaction): Fix uninstrumented code check.
2249 * retry.c (GTM_decide_retry_strategy): Add serial check.
2250 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2251 automatically go irrevokable when in serial mode.
2252 * clone.c: New file.
2253 * libitm.h, libitm.map: Update.
2254
22552009-01-27 Richard Henderson <rth@redhat.com>
2256
2257 * Makefile.am (LTCCASCOMPILE): Define.
2258 (libitm_la_SOURCES): Add methid-wbetl.c.
2259 * testsuite/Makefile.am: New
2260 * configure.ac: Add testsuite/Makefile.
2261 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2262 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2263 (_ITM_abortTransaction): Finalize implementation method; pass
2264 transaction properties to longjmp.
2265 (GTM_restart_transaction): Split out from ...
2266 (_ITM_commitTransaction): ... here.
2267 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2268 Move to config/x86/target.h.
2269 * config/linux/alpha/futex_bits.h: New.
2270 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2271 * config/x86/target.h: Disable target types for 32-bit.
2272 * config/alpha/sjlj.S, config/alpha/target.h: New.
2273 * libitm.h (struct gtm_dispatch): Add init, fini.
2274 (enum restart_reason): New.
2275 (struct gtm_transaction): Add method and restarts.
2276 * retry.c (GTM_decide_retry_strategy): Implement.
2277 * serial.c (serial_init, serial_fini): New.
2278 (GTM_serialmode): Finialize outgoing method.
2279 * method-wbetl.c: New.
2280
22812008-12-09 Richard Henderson <rth@redhat.com>
2282
2283 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2284 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2285 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2286 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2287 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2288 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2289 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2290 * serial.c (serial_R##T, serial_W##T): Likewise.
2291
22922008-11-21 Richard Henderson <rth@redhat.com>
2293
2294 * Initial commit.
21fa2a29 2295\f
c48514be 2296Copyright (C) 2008-2021 Free Software Foundation, Inc.
21fa2a29
JJ
2297
2298Copying and distribution of this file, with or without modification,
2299are permitted in any medium without royalty provided the copyright
2300notice and this notice are preserved.