]> gcc.gnu.org Git - gcc.git/blame - libitm/ChangeLog
builtins: Add __builtin_nextafterf16b builtin
[gcc.git] / libitm / ChangeLog
CommitLineData
621a911d
GA
12022-10-13 Lulu Cheng <chenglulu@loongson.cn>
2
3 * config/loongarch/sjlj.S: Add a soft floating point condition to the
4 register recovery part of the code.
5
781f477a
GA
62022-10-12 Martin Liska <mliska@suse.cz>
7
8 * configure: Regenerate.
9
ab332cd7
GA
102022-10-11 Olivier Hainque <hainque@adacore.com>
11 Olivier Hainque <hainque@adacore.com>
12
13 * configure: Regenerate.
14
9e79a25b
GA
152022-09-28 Lulu Cheng <chenglulu@loongson.cn>
16 Yang Yujie <yangyujie@loongson.cn>
17
18 * configure.tgt: Add loongarch support.
19 * config/loongarch/asm.h: New file.
20 * config/loongarch/sjlj.S: New file.
21 * config/loongarch/target.h: New file.
22
542c60c4
GA
232022-08-31 Martin Liska <mliska@suse.cz>
24
25 * configure: Regenerate.
26
272022-08-31 Martin Liska <mliska@suse.cz>
28
29 * configure: Regenerate.
30
b168441c
GA
312022-06-02 David Malcolm <dmalcolm@redhat.com>
32
33 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
34
682ede39
GA
352022-02-03 David Seifert <soap@gentoo.org>
36 Jakub Jelinek <jakub@redhat.com>
37
38 * configure.ac: Support --disable-werror.
39 * configure: Regenerate.
40
1bb52662
GA
412022-01-31 Martin Liska <mliska@suse.cz>
42
43 * acinclude.m4: Detect *_ld_is_mold and use it.
44 * configure: Regenerate.
45
a4ae8c37
GA
462022-01-03 Jakub Jelinek <jakub@redhat.com>
47
48 * libitm.texi: Bump @copying's copyright year.
49
f4ed2e3a
GA
502021-11-26 Iain Sandoe <iain@sandoe.co.uk>
51
52 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
53 target does not support HAVE_ELF_STYLE_WEAKREF then do not
54 try to test the __cxa_get_globals against NULL.
55
688359a2
GA
562021-06-17 Jonathan Wakely <jwakely@redhat.com>
57
58 PR libstdc++/91488
59 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
60
2f7f0d32
GA
612021-01-15 Jakub Jelinek <jakub@redhat.com>
62
63 PR target/70454
64 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
65 be added through preprocessor check on
66 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
67
651b8a50
GA
682021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
69
70 * configure: Re-generate.
71
b6dd195a
GA
722021-01-01 Jakub Jelinek <jakub@redhat.com>
73
74 * libitm.texi: Bump @copying's copyright year.
75
6e1edf48
GA
762020-12-05 Iain Sandoe <iain@sandoe.co.uk>
77
78 PR target/97865
79 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
80 * configure: Regenerate.
81
a9625c50
GA
822020-11-29 John David Anglin <danglin@gcc.gnu.org>
83
84 * configure: Regenerate.
85
6c2675fa
GA
862020-10-01 Alan Modra <amodra@gmail.com>
87
88 * config/powerpc/sjlj.S: Support __PCREL__ code.
89
53256ee3
GA
902020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
91
92 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
93
3f8ca9cb
GA
942020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
95
96 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
97 and add BTI c to function entries.
98
992020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
100
101 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
102
885ef72f
GA
1032020-05-29 H.J. Lu <hjl.tools@gmail.com>
104
105 PR bootstrap/95413
106 * configure: Regenerated.
107
4c1a5d8b
L
1082020-05-15 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR bootstrap/95147
111 * configure: Regenerated.
112
8d286dd1
L
1132020-05-14 H.J. Lu <hongjiu.lu@intel.com>
114
115 * configure: Regenerated.
116
f0de5d83
NS
1172020-05-12 Nathan Sidwell <nathan@acm.org>
118
119 Fix throw specifiers on interface.
120 * libitm/libitm.h (_ITM_NOTHROW): Define.
121 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
122 (_ITM_cxa_begin_catch): Use it.
123 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
124 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
125 __cxa_get_globals.
126 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
127 (_ITM_cxa_begin_catch): Likewise.
128
1136ba01
NS
1292020-05-05 Nathan Sidwell <nathan@acm.org>
130
131 * testsuite/lib/libitm.exp (libitm_init): Add
132 -fdiagnostics-color=never to options.
133
02ce382c
SL
1342020-02-12 Sandra Loosemore <sandra@codesourcery.com>
135
136 PR libstdc++/79193
137 PR libstdc++/88999
138
139 * configure: Regenerated.
140
e8e66971
MR
1412020-01-24 Maciej W. Rozycki <macro@wdc.com>
142
143 * configure.ac: Handle `--with-toolexeclibdir='.
144 * Makefile.in: Regenerate.
145 * aclocal.m4: Regenerate.
146 * configure: Regenerate.
147 * testsuite/Makefile.in: Regenerate.
148
7e7065b9
JJ
1492020-01-01 Jakub Jelinek <jakub@redhat.com>
150
8d9254fc
JJ
151 Update copyright years.
152
7e7065b9
JJ
153 * libitm.texi: Bump @copying's copyright year.
154
00484365
SN
1552019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
156
157 PR libgomp/91938
158 * configure.tgt: Avoid IE tls on *-*-musl*.
159
e9085da5
MR
1602019-09-27 Maciej W. Rozycki <macro@wdc.com>
161
162 * configure: Regenerate.
163
b1e21e5a
CL
1642019-09-10 Christophe Lyon <christophe.lyon@st.com>
165
a360a359
CL
166 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
167
1682019-09-10 Christophe Lyon <christophe.lyon@st.com>
169
170 * configure.tgt: Handle *-*-uclinux*.
171 * configure: Regenerate.
b1e21e5a 172
3c086f8d
FW
1732019-09-06 Florian Weimer <fweimer@redhat.com>
174
175 * configure: Regenerate.
176
c6c2d1bc
CLT
1772019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
178
179 PR other/79543
180 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
181 scanning to conform to the GNU Coding Standards.
182 * configure: Regenerate.
183
061a799b
JJ
1842019-05-03 Jakub Jelinek <jakub@redhat.com>
185
186 * Makefile.am (finclude): Remove.
187 * Makefile.in: Regenerated.
188
a5544970
JJ
1892019-01-01 Jakub Jelinek <jakub@redhat.com>
190
191 Update copyright years.
192
3f27508c
JJ
1932019-01-01 Jakub Jelinek <jakub@redhat.com>
194
195 * libitm.texi: Bump @copying's copyright year.
196
784417d1
JJ
1972018-12-16 Jakub Jelinek <jakub@redhat.com>
198
199 PR c++/88482
200 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
201 void * to void (*) (void *).
202 (_ITM_cxa_throw): Likewise.
203 * libitm.h (_ITM_cxa_throw): Likewise.
204 * libitm.texi (_ITM_cxa_throw): Likewise.
205
d1573fe0
PB
2062018-12-13 Peter Bergner <bergner@linux.ibm.com>
207
208 * config/powerpc/target.h (htm_available): Add support for
209 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
210
22e05272
JM
2112018-10-31 Joseph Myers <joseph@codesourcery.com>
212
213 PR bootstrap/82856
214 * Makefile.am: Include multilib.am.
215 (AUTOMAKE_OPTIONS): Add info-in-builddir.
216 (CLEANFILES): Remove libitm.info.
217 * configure.ac: Remove AC_PREREQ.
218 * testsuite/Makefile.am (RUNTEST): Remove quotes.
219 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
220 Regenerate.
221
1f82422a
NK
2222018-10-30 Nicholas Krause <xerofoify@gmail.com>
223
a2e0398a 224 PR libitm/86293
1f82422a
NK
225 * method-serial.cc: Mark varible as potentially unused
226 to silence warning.
227
f6a9dfd3
ST
2282018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
229
230 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
231 absolute relocation in a shared library.
232
97cad511
L
2332018-06-12 H.J. Lu <hongjiu.lu@intel.com>
234
235 PR libitm/85988
236 * config/linux/x86/tls.h (SEG_READ): Use the offset of
237 __private_tm as base.
238 (SEG_WRITE): Likewise.
239 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
240 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
241 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
242 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
243 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
244
b46b715d
JM
2452018-05-17 Jason Merrill <jason@redhat.com>
246
247 * beginend.cc (save): Disable -Werror=deprecated-copy.
248
9220b511
TV
2492018-05-02 Tom de Vries <tom@codesourcery.com>
250
251 PR testsuite/85106
252 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
253
6c3c13c1
TV
2542018-05-02 Tom de Vries <tom@codesourcery.com>
255
256 PR testsuite/85106
257 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
258
ffc2fc06
L
2592018-04-24 H.J. Lu <hongjiu.lu@intel.com>
260
261 * config/x86/sjlj.S (_ITM_beginTransaction): Add
262 (__CET__ & 2) != 0 check for shadow stack.
263 (GTM_longjmp): Likewise.
264
7b47ecf2
L
2652018-04-24 H.J. Lu <hongjiu.lu@intel.com>
266
267 * configure: Regenerated.
268
0ef9f21d
L
2692018-04-23 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR target/85489
272 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
273
a0e1df88
JJ
2742018-04-19 Jakub Jelinek <jakub@redhat.com>
275
276 * configure: Regenerated.
277
001ddaa8
DM
2782018-04-18 David Malcolm <dmalcolm@redhat.com>
279
280 PR jit/85384
281 * configure: Regenerate.
282
14e335ed
IT
2832018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
284
285 PR target/84148
286 * configure: Regenerate.
287
65e6aea3
JJ
2882018-01-03 Jakub Jelinek <jakub@redhat.com>
289
85ec4feb
JJ
290 Update copyright years.
291
65e6aea3
JJ
292 * libitm.texi: Bump @copying's copyright year.
293
c51081fc
IT
2942017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
295
296 * Makefile.in: Regenerate.
297 * acinclude.m4: Add enable.m4 and cet.m4.
298 * config/x86/sjlj.S: Include cet.h.
299 (_ITM_beginTransaction): Add _CET_ENDBR.
300 Save Shadow Stack pointer.
301 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
302 * config/x86/target.h (struct gtm_jmpbuf):
303 Add new field for Shadow Stack pointer.
304 * configure: Regenerate.
305 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
306 * configure.ac: Update libtool_VERSION for x86.
307 * testsuite/Makefile.in: Regenerate.
308
cc03e55b
IT
3092017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
310
311 * libitm/config/x86/target.h: Add new field (ssp).
312 * libitm/config/x86/sjlj.S: Change offsets.
313
62ffe920
RO
3142017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315
316 * testsuite/lib/libitm.exp: Load scanlang.exp.
317
5764ee3c
JW
3182017-04-03 Jonathan Wakely <jwakely@redhat.com>
319
320 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
321
73aa401e
JJ
3222017-01-21 Jakub Jelinek <jakub@redhat.com>
323
324 PR other/79046
325 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
326 of cat to get version from BASE-VER file.
327 * testsuite/Makefile.in: Regenerated.
328
16a34ca6
UB
3292017-01-19 Uros Bizjak <ubizjak@gmail.com>
330
331 * config/x86/target.h (htm_available): Determine vendor from
332 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
333
f8a94453
TR
3342017-01-18 Torvald Riegel <triegel@redhat.com>
335
336 * config/x86/target.h (htm_available): Add check for some processors
337 on which TSX is broken.
338
3c36aa6b
JJ
3392017-01-17 Jakub Jelinek <jakub@redhat.com>
340
341 PR other/79046
342 * configure.ac: Add GCC_BASE_VER.
343 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
344 get version from BASE-VER file.
345 * testsuite/Makefile.in: Regenerated.
346 * configure: Regenerated.
347 * Makefile.in: Regenerated.
348
8f56cb51
AM
3492017-01-04 Alan Modra <amodra@gmail.com>
350
351 * Makefile.in: Regenerate.
352 * testsuite/Makefile.in: Regenerate.
353
c1a9c369
JJ
3542017-01-01 Jakub Jelinek <jakub@redhat.com>
355
cbe34bb5
JJ
356 Update copyright years.
357
c1a9c369
JJ
358 * libitm.texi: Bump @copying's copyright year.
359
66dbcf2d
RO
3602016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361
362 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
363 * aclocal.m4: Regenerate.
364 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
365 LIBITM_CHECK_LINKER_HWCAP.
366
84c1b9d3
MK
3672016-11-15 Matthias Klose <doko@ubuntu.com>
368
369 * configure: Regenerate.
370
831698b8
L
3712016-04-19 H.J. Lu <hongjiu.lu@intel.com>
372
373 PR libitm/70456
374 * util.cc (xmalloc): Use posix_memalign to allocate memory on
375 on cache line if requested.
376
edcbda7e
DV
3772016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
378
379 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
380 function attribute to disable floating point in begin_transaction() on
381 S/390.
382 * beginend.cc (begin_transaction): Use
383 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
384
6041f70a
TR
3852016-01-22 Torvald Riegel <triegel@redhat.com>
386
387 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
388 boundary.
389 (htm_fastpath): Remove.
390 (gtm_thread::begin_transaction): Fix HTM fastpath.
391 (_ITM_commitTransaction): Adapt.
392 (_ITM_commitTransactionEH): Adapt.
393 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
394 and accessors.
395 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
396 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
397 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
398 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
399 * libitm/method-serial.cc (htm_mg): Adapt.
400 (gtm_thread::serialirr_mode): Adapt.
401 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
402
0b96ffdb
TR
4032016-01-21 Torvald Riegel <triegel@redhat.com>
404
405 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
406 or AIX.
407
b1de98e3
RH
4082016-01-19 Richard Henderson <rth@redhat.com>
409
410 PR bootstrap/69343
411 PR bootstrap/69339
412 Revert:
413 2016-01-13 Richard Henderson <rth@redhat.com>
414
415 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
416 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
417 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
418 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
419 * configure.ac (ARCH_AARCH64): New conditional.
420 (ARCH_PPC, ARCH_S390): Likewise.
421 * Makefile.in, configure: Rebuild.
422
423 * libitm.h (_ITM_TYPE_M128): Always define.
424 * vect64.cc: Split ...
425 * vect128.cc: ... out of...
426 * config/x86/x86_sse.cc: ... here.
427 * config/arm/neon.cc: New file.
428
f57fc960
TR
4292016-01-19 Torvald Riegel <triegel@redhat.com>
430
431 * local_type_traits: Remove file.
432 * libitm_i.h: Don't include it anymore.
433 (sized_integral): Remove.
434
d2653984
TR
4352016-01-16 Torvald Riegel <triegel@redhat.com>
436
437 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
438 safety.
439 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
440 * libitm/testsuite/libitm.c/priv-1.c: New.
441
a04d5fc9
TR
4422015-01-15 Torvald Riegel <triegel@redhat.com>
443
444 testsuite/libitm.c++/libstdc++-safeexc.C: New.
445
e89137ce
TR
4462016-01-13 Torvald Riegel <triegel@redhat.com>
447
448 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
449 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
450 (gtm_rwlock::write_unlock): Likewise.
451
4c868789
RH
4522016-01-13 Richard Henderson <rth@redhat.com>
453
454 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
455 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
456 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
457 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
458 * configure.ac (ARCH_AARCH64): New conditional.
459 (ARCH_PPC, ARCH_S390): Likewise.
460 * Makefile.in, configure: Rebuild.
461
462 * libitm.h (_ITM_TYPE_M128): Always define.
463 * vect64.cc: Split ...
464 * vect128.cc: ... out of...
465 * config/x86/x86_sse.cc: ... here.
466 * config/arm/neon.cc: New file.
467
629e4729
TR
4682016-01-13 Torvald Riegel <triegel@redhat.com>
469
470 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
471 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
472 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
473 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
474 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
475 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
476 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
477 (serialirr_dispatch::snapshot_most_recent): New.
478 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
479
0d1ed412
TR
4802016-01-12 Torvald Riegel <triegel@redhat.com>
481
482 * libitm_i.h (gtm_mask_stack): Remove.
483 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
484 * stmlock.h: Remove file.
485 * config/alpha/cacheline.h: Likewise.
486 * config/generic/cacheline.h: Likewise.
487 * config/powerpc/cacheline.h: Likewise.
488 * config/sparc/cacheline.h: Likewise.
489 * config/x86/cacheline.h: Likewise.
490
21fa2a29
JJ
4912016-01-04 Jakub Jelinek <jakub@redhat.com>
492
818ab71a
JJ
493 Update copyright years.
494
21fa2a29
JJ
495 * libitm.texi: Bump @copying's copyright year.
496
e7f7330f
TR
4972015-11-26 Torvald Riegel <triegel@redhat.com>
498
499 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
500 (ml_wt_dispatch::pre_write): Adapt.
501 (ml_wt_dispatch::pre_load): Likewise.
502
4f8a3b87
TR
5032015-11-22 Torvald Riegel <triegel@redhat.com>
504
505 * libitm_i.h (gtm_alloc_action): Remove union.
506 * testsuite/libitm.c/alloc-1.c: New.
507
258c1d07
TR
5082015-11-19 Torvald Riegel <triegel@redhat.com>
509
510 * testsuite/libitm.c++/eh-5.C: New.
511 * libitm.h (_ITM_cxa_free_exception): New.
512 * libitm.map (_ITM_cxa_free_exception): Add it.
513 * libitm.texi: Update ABI docs.
514 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
515 (gtm_transaction_cp::cxa_uncaught_count): Add.
516 (gtm_thread::cxa_unthrown): Remove.
517 (gtm_thread::cxa_uncaught_count_ptr): Add.
518 (gtm_thread::cxa_uncaught_count): Add.
519 (gtm_thread::drop_references_allocations): Rename to...
520 (gtm_thread::discard_allocation): ... this and adapt.
521 (gtm_thread::init_cpp_exceptions): New.
522 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
523 (gtm_thread::begin_transaction): Likewise.
524 (gtm_transaction_cp::save): Likewise.
525 (gtm_thread::trycommit): Likewise.
526 * eh_cpp.cc: Add overview comments.
527 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
528 (free_any_exception, _ITM_cxa_free_exception): New.
529 (gtm_thread::init_cpp_exceptions): Define.
530 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
531 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
532 (gtm_thread::revert_cpp_exceptions): Likewise.
533
c518678b
TR
5342015-11-09 Torvald Riegel <triegel@redhat.com>
535
536 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
537 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
538 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
539 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
540 (gtm_thread::forget_allocations): New overload with size_t argument.
541 * alloc.c (gtm_thread::forget_allocation): Define new overload and
542 adapt existing one.
543 (gtm_thread::record_allocation): Adapt.
544 (gtm_thread::commit_allocations_1): Adapt.
545 (gtm_thread::commit_allocations_2): Adapt.
546 * testsuite/libitm.c++/newdelete.C: New.
547
1e44e857
DJ
5482015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
549 Joseph Myers <joseph@codesourcery.com>
550 Mark Shinwell <shinwell@codesourcery.com>
551 Andrew Stubbs <ams@codesourcery.com>
552 Rich Felker <dalias@libc.org>
553
554 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
555 GTM_begin_transaction for compatibility with FDPIC.
556
9e531d37
DM
5572015-10-09 David Malcolm <dmalcolm@redhat.com>
558
559 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
560 using load_gcc_lib.
561
c629c246
GFM
5622015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
563
564 PR libitm/61164
565 * local_atomic (__always_inline): Rename to...
566 (__libitm_always_inline): ... this.
567
cd5a9a74
CSLL
5682015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
569
570 PR target/52482
571 * config/powerpc/sjlj.S: Port to Xcode 2.5.
572
ea023bcf
UB
5732015-05-27 Uros Bizjak <ubizjak@gmail.com>
574
d778b5a0
UB
575 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
576 operands "op" and "val" to int.
577
5782015-05-27 Uros Bizjak <ubizjak@gmail.com>
579
580 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
581 "op" and "val" to int.
582
5832015-05-27 Uros Bizjak <ubizjak@gmail.com>
584
585 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
586 "op" and "val" to int.
587
5882015-05-27 Uros Bizjak <ubizjak@gmail.com>
589
590 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
591 Declare as static int.
592 (FUTEX_PRIVATE_FLAG): Remove L suffix.
593 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
594
5952015-05-27 Uros Bizjak <ubizjak@gmail.com>
596
597 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
598 sys_futex0 function.
ea023bcf 599
503902f9
MH
6002015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
601
602 * Makefile.in: Regenerated with automake-1.11.6.
603 * aclocal.m4: Likewise.
604 * configure: Likewise.
605 * testsuite/Makefile.in: Likewise.
606
96ce40cb
GR
6072015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
608
609 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
610 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
611
3a07b160
L
6122015-01-15 H.J. Lu <hongjiu.lu@intel.com>
613
614 PR libitm/64360
615 * libitm.c/stackundo.c (test2): Make it static.
616 (test1): Likewise.
617
5624e564
JJ
6182015-01-05 Jakub Jelinek <jakub@redhat.com>
619
620 Update copyright years.
621
b67cd4e3
JJ
6222015-01-05 Jakub Jelinek <jakub@redhat.com>
623
624 * libitm.texi: Bump @copying's copyright year.
625
69aef6dc
KT
6262014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
627
628 * testsuite/lib/libitm.exp: Load target-utils.exp.
629 Move load of target-supports.exp earlier.
630
68bc9270
UB
6312014-12-03 Uros Bizjak <ubizjak@gmail.com>
632
633 * configure.tgt (x86_64): Tune -m32 multilib to generic.
634
a699d672
L
6352014-11-21 H.J. Lu <hongjiu.lu@intel.com>
636
637 PR bootstrap/63784
638 * configure: Regenerated.
639
ebf6d33b
FXC
6402014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
641
642 PR target/63610
643 * configure: Regenerate.
644
99183741
MP
6452014-10-06 Marek Polacek <polacek@redhat.com>
646
647 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
648 * testsuite/libitm.c/memset-1.c: Likewise.
649
b6334cf4
RH
6502014-07-24 Richard Henderson <rth@redhat.com>
651
652 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
653 addressing mode in epilogue.
654
3c698bf0
RO
6552014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
656
657 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
658 -mclear-hwcap instead.
659 * configure: Regenerate.
660 * clearcap.map: Remove.
661
dbed5a9b
JM
6622014-05-21 John Marino <gnugcc@marino.st>
663
664 * configure.tgt (*-*-dragonfly*): New target.
665
b17f08dd
RH
6662014-05-19 Richard Henderson <rth@redhat.com>
667
668 * config/aarch64/sjlj.S: New file.
669 * config/aarch64/target.h: New file.
670 * configure.tgt: Enable aarch64.
671
5e1f630a
RO
6722014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673
674 * config/generic/asmcfi.h: Also check for
675 __GCC_HAVE_DWARF2_CFI_ASM.
676
84c2f4b0
RH
6772013-04-02 Richard Henderson <rth@redhat.com>
678
679 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
680 * config/arm/target.h, config/sh/target.h: Likewise.
681 * config/sparc/target.h, config/x86/target.h: Likewise.
682
7cc51d64
JJ
6832014-03-26 Jakub Jelinek <jakub@redhat.com>
684
685 * config/linux/futex_bits.h: Include errno.h.
686 (sys_futex0): If syscall returns -1, return -errno rather than
687 -1.
688
c288ec8f
JM
6892014-03-26 Joseph Myers <joseph@codesourcery.com>
690
691 * libitm.texi (Index): Rename to Library Index.
692
ed100f5d
L
6932014-01-13 H.J. Lu <hongjiu.lu@intel.com>
694
695 PR libitm/53113
696 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
697 (x86_avx.lo): Append -mavx to CXXFLAGS.
698 * Makefile.in: Regenerate.
699
f93608e6
RS
7002014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
701
702 Update copyright years
703
98db73df
TB
7042014-01-02 Tobias Burnus <burnus@net-b.de>
705
706 * libitm.texi: Bump @copying's copyright year.
707
b54214fe
UW
7082013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
709
710 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
711 (FUNC): Define ELFv2 variant.
712 (END): Likewise.
713 (HIDDEN): Likewise.
714 (CALL): Likewise.
715 (BASE): Likewise.
716 (LR_SAVE): Likewise.
717
3cbe17f7
AM
7182013-09-20 Alan Modra <amodra@gmail.com>
719
720 * configure: Regenerate.
721
6fb471d8
TR
7222013-08-30 Torvald Riegel <triegel@redhat.com>
723
724 * config/posix/rwlock.cc: Fix initialization order.
725
bec9ec3f
TR
7262013-08-30 Torvald Riegel <triegel@redhat.com>
727
728 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
729 (htm_fastpath): Assign an asm name.
730 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
731 HTM fast paths.
732 (_ITM_actions): Likewise.
733 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
734 x86_64.
735 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
736 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
737 field to the start of the structure.
738 * config/linux/rwlock.h (gtm_rwlock): Update comments.
739 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
740 handling for custom HTM fast paths.
741
1869217f
AK
7422013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
743 Revert:
744 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
745
746 * configure.tgt: Add -msoft-float to XCFLAGS.
747
d62d5152
AK
7482013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
749
750 * configure.tgt: Add -msoft-float to XCFLAGS.
751
aaaffb2a
AK
7522013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
753
754 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
755 (htm_transaction_active): Enable zEC12 instructions in the
756 assembler.
757 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
758
167f68ed
AK
7592013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
760
761 * acinclude.m4: Add htm asm check for s390.
762 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
763 * configure: Regenerate.
764 * config/s390/target.h: Remove __HTM__ check.
765 (htm_available): Call getauxval to get hwcaps and check whether
766 HTM is available or not.
767
0258b6e4
PB
7682013-07-15 Peter Bergner <bergner@vnet.ibm.com>
769
770 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
771 * configure.ac: Use it.
772 (AC_CHECK_HEADERS): Check for sys/auxv.h.
773 (AC_CHECK_FUNCS): Check for getauxval.
774 * config.h.in, configure: Rebuild.
775 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
776 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
777 (USE_HTM_FASTPATH): Define.
778 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
779 _HTM_RETRIES) New macros.
780 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
781 htm_begin_success, htm_commit, htm_transaction_active): New functions.
782
5a3fe9b6
AK
7832013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
784
785 * config/s390/target.h: Include htmintrin.h.
786 (_HTM_ITM_RETRIES): New macro definition.
787 (htm_available, htm_init, htm_begin, htm_begin_success)
788 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
789
6c84d576
IS
7902013-06-20 Iain Sandoe <iain@codesourcery.com>
791 Cesar Philippidis <cesar@codesourcery.com>
792
793 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
794 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
795 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
796 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
797
480c696b
TR
7982013-06-20 Torvald Riegel <triegel@redhat.com>
799
800 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
801 (_ITM_getTransactionId): Same.
802 * config/x86/target.h (htm_transaction_active): New.
803
b1db457b
TR
8042013-06-20 Torvald Riegel <triegel@redhat.com>
805
806 PR libitm/57643
807 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
808 the HTM fastpath.
809
51249377
GP
8102013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
811
812 PR bootstrap/56714
813 * local_atomic (__always_inline): Always define our version.
814 (__calculate_memory_order): Mark inline.
815 (atomic_thread_fence): Ditto.
816 (atomic_signal_fence): Ditto.
817 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
818 (atomic_bool::atomic_flag_clear_explicit): Ditto.
819 (atomic_bool::atomic_flag_test_and_set): Ditto.
820 (atomic_bool::atomic_flag_clear): Ditto.
821
f818478b
JJ
8222013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
823
824 * config/s390/sjlj.S: New file.
825 * config/s390/target.h: New file.
826 * configure.tgt: Set options for S/390.
827
ab4425be
AK
8282013-03-23 Andi Kleen <ak@linux.intel.com>
829
830 * local_atomic (__always_inline): Add.
831 (__calculate_memory_order, atomic_thread_fence,
832 atomic_signal_fence, test_and_set, clear, store, load,
833 exchange, compare_exchange_weak, compare_exchange_strong,
834 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
835 Add __always_inline to force inlining.
836
6c59ffd1
IS
8372013-02-11 Iain Sandoe <iain@codesourcery.com>
838 Jack Howarth <howarth@bromo.med.uc.edu>
839 Patrick Marlier <patrick.marlier@gmail.com>
840
841 PR libitm/55693
842 * alloc_cpp.cc: Enable function declarations on darwin.
843 * eh_cpp.cc: Likewise.
844
75f9527c
RS
8452013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
846
847 Update copyright years.
848
64fbcc74
TR
8492012-11-09 Torvald Riegel <triegel@redhat.com>
850
851 * beginend.cc (htm_fastpath): New.
852 (gtm_thread::begin_transaction, _ITM_commitTransaction,
853 _ITM_commitTransactionEH): Add HTM fastpath handling.
854 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
855 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
856 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
857 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
858 * configure.tgt: Add -mrtm to XCFLAGS.
859 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
860 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
861 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
862 * retry.cc (parse_default_method): Add HTM method parsing.
863 (gtm_thread::number_of_threads_changed): Use HTM by default if
864 available.
865
b9efc877
TS
8662012-11-04 Thomas Schwinge <thomas@codesourcery.com>
867
868 * configure: Regenerate.
869
07d3b5c8
RH
8702012-10-31 Richard Henderson <rth@redhat.com>
871
872 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
873 * configure.ac: Use it.
874 * config.h.in, configure: Rebuild.
875 * testsuite/Makefile.in: Rebuild.
876
eb00e959
TR
8772012-10-24 Torvald Riegel <triegel@redhat.com>
878
879 * libitm.texi: Clarify ABI requirements for data-logging functions.
880
b679c813
TR
8812012-10-24 Torvald Riegel <triegel@redhat.com>
882
883 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
884 it requires serial mode instead of assuming that for certain
885 dispatchs.
886 * dispatch.h (abi_dispatch::requires_serial): New.
887 (abi_dispatch::abi_dispatch): Adapt.
888 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
889 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
890 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
891 serial_dispatch::serial_dispatch,
892 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
893
0c609a21
UB
8942012-10-02 Uros Bizjak <ubizjak@gmail.com>
895
896 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
897 and ia32 declarations some more.
898 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
899
c0758df9
JJ
9002012-09-20 Jakub Jelinek <jakub@redhat.com>
901
902 PR other/43620
903 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
904 * configure: Regenerate.
905 * Makefile.in: Regenerate.
906
690c45b8
DE
9072012-09-14 David Edelsohn <dje.gcc@gmail.com>
908
909 * configure: Regenerated.
910
68a12ef3
UB
9112012-07-31 Uros Bizjak <ubizjak@gmail.com>
912
913 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
914
f2f9a097
PM
9152012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
916
917 * eh_cpp.cc: Fix __cxa_end_catch declaration.
918
e6d5f8c9
L
9192012-05-16 H.J. Lu <hongjiu.lu@intel.com>
920
921 * configure: Regenerated.
922
0100e3b3
L
9232012-04-04 H.J. Lu <hongjiu.lu@intel.com>
924
925 PR libitm/52854
926 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
927 for x86-64.
928
2f6935f4
TG
9292012-04-03 Tristan Gingold <gingold@adacore.com>
930
931 * configure: Regenerate.
932
b9c23a61
L
9332012-03-31 H.J. Lu <hongjiu.lu@intel.com>
934
935 PR bootstrap/52812
936 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
937
6a26a74d
BRF
9382012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
939
940 * testsuite/lib/libitm.exp: load fortran-modules.exp
941
b24513a1
RO
9422012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
943
944 * configure.tgt (*-*-irix6*): Remove.
945
0d23faac
TR
9462012-03-13 Torvald Riegel <triegel@redhat.com>
947
948 PR libitm/52526
949 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
950 wake-up.
951
5c30094f
RO
9522012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
953
954 * configure.tgt (*-*-osf*): Remove.
955 * configure: Regenerate.
956
d28b0b08
TR
9572012-03-05 Torvald Riegel <triegel@redhat.com>
958
959 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
960 memtransfer/memset if size isn't larger than zero.
961
034209bc
TR
9622012-03-02 Torvald Riegel <triegel@redhat.com>
963
964 * libitm.texi: Link to specification and add a usage example.
965
bc8da6ba
TR
9662012-02-24 Torvald Riegel <triegel@redhat.com>
967
968 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
969 default dispatch for more than 1 thread to ml_wt.
970
63b08143
TR
9712012-02-20 Torvald Riegel <triegel@redhat.com>
972
973 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
974
4c9bd6ac
TR
9752012-02-20 Torvald Riegel <triegel@redhat.com>
976
977 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
978
651ff415
TR
9792012-02-20 Torvald Riegel <triegel@redhat.com>
980
981 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
982 serial mode corner cases made obsolete by prior gtm_rwlock changes.
983 (gl_wt_dispatch.rollback): Same.
984
efee0113
TR
9852012-02-20 Torvald Riegel <triegel@redhat.com>
986
987 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
988
33a03827
TR
9892012-02-20 Torvald Riegel <triegel@redhat.com>
990
991 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
992 for RfW src. Optimize number of calls to gtm_thr.
993
a19db3f2
TR
9942012-02-20 Torvald Riegel <triegel@redhat.com>
995
996 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
997 acquisition to ...
998 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
999 (default_dispatch): Make atomic.
1000 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1001 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1002 use decide_begin_dispatch() if default_dispatch might have changed.
1003 (GTM::gtm_thread::number_of_threads_changed): Initialize
1004 default_dispatch here.
1005
e948a1fb
IS
10062012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1007 Patrick Marlier <patrick.marlier@gmail.com>
1008
1009 PR libitm/52220
1010 * alloc_cpp.cc: No dummy definitions for darwin.
1011 * eh_cpp.cc: Likewise.
1012
72824d5e
RH
10132012-02-14 Richard Henderson <rth@redhat.com>
1014
1015 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1016
1f319dba
UB
10172012-02-14 Uros Bizjak <ubizjak@gmail.com>
1018
1019 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1020
31772c95
TR
10212012-02-14 Torvald Riegel <triegel@redhat.com>
1022
1023 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1024 (GTM::gtm_thread): Add read and write logs.
1025 (GTM::dispatch_ml_wt): Declare.
1026 * retry.cc (parse_default_method): Support ml_wt.
1027 * method-ml.cc: New file.
1028 * Makefile.am: Add method-ml.cc.
1029 * Makefile.in: Regenerate.
1030
5b9cf5d2
TR
10312012-02-14 Torvald Riegel <triegel@redhat.com>
1032
1033 * dispatch.h (GTM::abi_dispatch::supports): New.
1034 (GTM::method_group::reinit): New.
1035 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1036 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1037 supports the current situation.
1038
7d33bcb7
TR
10392012-02-14 Torvald Riegel <triegel@redhat.com>
1040
1041 * util.cc (GTM::xcalloc): New.
1042 * common.h (GTM::xcalloc): Declare.
1043
62513f7b
EB
10442012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1045
1046 * config/sparc/target.h (cpu_relax): Read from CC register.
1047 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1048
10492012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
1050
1051 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1052
f3f5e3c3
EB
10532012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1054
62513f7b 1055 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
1056 * config/sparc/cacheline.h: New file.
1057 * config/sparc/target.h: Likewise.
1058 * config/sparc/sjlj.S: Likewise.
1059 * config/linux/sparc/futex_bits.h: Likewise.
1060
10612012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
1062
1063 * configure.ac (link_itm): Fix comment.
1064 * configure: Regenerate.
1065 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1066
681355e3
RO
10672012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1068
fc985d2f 1069 PR libitm/51822
62513f7b 1070 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
1071 Correct libgomp references.
1072
999bcff5
TR
10732012-01-24 Torvald Riegel <triegel@redhat.com>
1074
1075 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1076 wake-up.
1077
9848887a
UB
10782012-01-24 Uros Bizjak <ubizjak@gmail.com>
1079
1080 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1081 end of structure.
1082 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1083 offset values. Do not copy return address. Decrement stack
1084 by 56 bytes only.
1085 (GTM_longjump) [__x86_64__]: Update offset values.
1086
5752c591
UB
10872012-01-23 Uros Bizjak <ubizjak@gmail.com>
1088
1089 PR libitm/51830
1090 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1091 the first function argument to %eax.
1092
61e72ca4
RO
10932012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1094
1095 * libitm.h (_ITM_getThreadnum): Remove.
1096 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1097
9ce91011
RO
10982012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1099
1100 * clearcap.map: New file.
1101 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1102 * configure.ac: Call it.
1103 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1104 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1105 * configure: Regenerate.
1106 * Makefile.in: Regenerate.
1107 * testsuite/Makefile.in: Regenerate.
1108
3b4f05ec
RO
11092012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1110
1111 PR libitm/51173
1112 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1113 include, exclude options.
1114
aab74ee9
TR
11152012-01-14 Torvald Riegel <triegel@redhat.com>
1116
1117 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1118 rolling back.
1119 * containers.h (GTM::vector::set_size): New.
1120
07b6642b
TR
11212012-01-14 Torvald Riegel <triegel@redhat.com>
1122
1123 PR libitm/51855
1124 * config/generic/tls.h (GTM::mask_stack_top): New.
1125 (GTM::mask_stack_bottom): Declare.
1126 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1127 * local.cc (gtm_undolog::rollback): Filter out any updates that
1128 overlap the libitm stack. Add current transaction as parameter.
1129 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1130 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1131 * testsuite/libitm.c/stackundo.c: New test.
1132
8377e5e5
RH
11332012-01-10 Richard Henderson <rth@redhat.com>
1134
1135 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1136 * eh_cpp.cc (_Unwind_DeleteException): Define for
1137 !HAVE_ELF_STYLE_WEAKREF.
1138
11f30bb0
TR
11392012-01-08 Torvald Riegel <triegel@redhat.com>
1140
1141 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1142 (GTM::gtm_thread::drop_references_undolog): Remove.
1143 (GTM::gtm_thread::commit_undolog,
1144 GTM::gtm_thread::rollback_undolog): Move to ...
1145 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1146 (GTM::gtm_undolog_entry): Remove.
1147 (GTM::gtm_thread): Adapt.
1148 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1149 (GTM::gtm_thread::trycommit): Adapt.
1150 * method-serial.cc (serial_dispatch::log): Adapt.
1151 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1152 (gl_wt_dispatch::store): Fix likely/unlikely.
1153 * containers.h (GTM::vector::resize): Add additional_capacity
1154 parameter and handle it.
1155 (GTM::vector::resize_noinline): New/adapt.
1156 (GTM::vector::push): New.
1157
a32e5e93
RH
11582012-01-06 Richard Henderson <rth@redhat.com>
1159
1160 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1161 * config/linux/powerpc/futex_bits.h: New file.
1162 * config/powerpc/cacheline.h: New file.
1163 * config/powerpc/sjlj.S: New file.
1164 * config/powerpc/target.h: New file.
1165 * config/generic/asmcfi.h (cfi_offset): New.
1166 (cfi_restore, cfi_undefined): New.
1167
1f53a8e6
AH
11682012-01-05 Aldy Hernandez <aldyh@redhat.com>
1169
1170 PR other/51171
1171 * testsuite/libitm.c/reentrant.c: Remove xfail.
1172 (thread): Pass x to pure().
be223aaf 1173 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 1174
c898f7b8
TR
11752011-12-24 Torvald Riegel <triegel@redhat.com>
1176
1177 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1178 privatization safety if already in serial mode.
1179
610e3901
TR
11802011-12-24 Torvald Riegel <triegel@redhat.com>
1181
1182 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1183 finish_serial_upgrade parameter.
1184 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1185 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1186 Don't unset reader flag.
1187 (GTM::gtm_rwlock::write_upgrade_finish): New.
1188 * config/posix/rwlock.cc: Same.
1189 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1190 Declare.
1191 * config/posix/rwlock.h: Same.
1192 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1193 flag after commit or after rollback when restarting.
1194
799142bf
TR
11952011-12-24 Torvald Riegel <triegel@redhat.com>
1196
1197 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1198 (GTM::gtm_thread::try_commit): Changed memory order.
1199 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1200 as parameter.
1201 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1202 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1203 * config/linux/futex_bits.h (sys_futex0): Same.
1204 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1205 * config/linux/futex.h (futex_wait, futex_wake): Same.
1206 * config/linux/rwlock.h (gtm_rwlock::writers,
1207 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1208 ints.
1209 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1210 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1211 gtm_rwlock::write_unlock): Fix memory orders and fences.
1212 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1213 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1214 gtm_rwlock::write_unlock): Same.
1215 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1216 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1217 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1218 Add comments.
1219 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1220 gl_wt_dispatch::load, gl_wt_dispatch::store,
1221 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1222 orders and fences. Add comments.
1223
b0f96e35
JJ
12242011-12-21 Jakub Jelinek <jakub@redhat.com>
1225
1226 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1227 * Makefile.in: Regenerated.
1228
cc163247
KK
12292011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1230
1231 * configure.tgt: Add sh* case.
1232 * config/sh/target.h: New file.
1233 * config/sh/sjlj.S: New file.
1234 * config/linux/sh/futex_bits.h: New file.
1235
aebac0ca
RH
12362011-12-14 Richard Henderson <rth@redhat.com>
1237
1238 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1239 * config/arm/sjlj.S, config/arm/target.h: New files.
1240 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1241 (cfi_rel_offset): New.
1242 * config/linux/futex_bits.h: New file.
1243 * config/linux/futex.cc: Include futex_bits.h here...
1244 * config/linux/futex.h: ... not here.
1245 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1246 * configure.ac (ARCH_AM): New conditional.
1247 * Makefile.in, configure: Rebuild.
1248 * configure.tgt: Handle ARM.
1249
36cfbee1
RH
12502011-12-13 Richard Henderson <rth@redhat.com>
1251
5d9d05d3
RH
1252 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1253 signed/unsigned comparison werror.
1254
36cfbee1
RH
1255 * local_atomic: New file.
1256 * libitm_i.h: Include it.
1257 (gtm_thread::shared_state): Use atomic template.
1258 * beginend.cc (GTM::gtm_clock): Use atomic template.
1259 (global_tid): Use atomic template if 64-bit atomics available.
1260 (gtm_thread::gtm_thread): Update shared_state access.
1261 (gtm_thread::trycommit): Likewise.
1262 (choose_code_path): Update global_tid access.
1263 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1264 * stmlock.h (GTM::gtm_clock): Use atomic template.
1265 (gtm_get_clock, gtm_inc_clock): Update accesses.
1266 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1267 redundant __sync_synchronize after atomic shared_state access.
1268 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1269 (gtm_rwlock::write_lock_generic): Likewise.
1270 (gtm_rwlock::read_unlock): Likewise.
1271 * config/alpha/target.h (atomic_read_barrier): Remove.
1272 (atomic_write_barrier): Remove.
1273 * config/x86/target.h (atomic_read_barrier): Remove.
1274 (atomic_write_barrier): Remove.
1275
062f93f2
RH
12762011-11-30 Richard Henderson <rth@redhat.com>
1277
1278 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1279 * beginend.c (_ITM_abortTransaction): Update to match.
1280 (GTM::gtm_thread::restart): Likewise.
1281 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1282 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1283
bd8aaa86
IS
12842011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1285
1286 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1287 * Makefile.in: Regenerate.
1288
8cf36bb3
IS
12892011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1290
1291 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1292 * alloc_cpp.cc: Generate dummy functions if we don't
1293 HAVE_ELF_STYLE_WEAKREF.
1294 * eh_cpp.cc: Likewise.
1295 * configure: Regenerate.
1296 * aclocal.m4: Likewise.
1297 * config.h.in: Likewise.
1298 * Makefile.in: Likewise.
1299 * testsuite/Makefile.in: Likewise.
1300
0b41ebef
IS
13012011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1302
1303 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1304 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 1305 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
1306 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1307 in portability to non-elf targets.
8cf36bb3 1308 (GTM_longjmp): Likewise.
0b41ebef
IS
1309 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1310 where required.
1311
9c9d352a
IS
13122011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1313
1314 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1315 * testsuite/libitm.c/memset-1.c: Likewise.
1316
c6084f68
AT
13172011-11-21 Andreas Tobler <andreast@fgznet.ch>
1318
1319 * configure: Regenerate.
1320
adcd36bc
RO
13212011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1322
1323 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1324 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1325 * Makefile.am: Handle sun style versioning.
1326 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1327 * configure: Regenerate.
1328 * Makefile.in: Regenerate.
1329
59659b59
RO
13302011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1331
1332 * config/generic/asmcfi.h: Fix comment.
1333 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1334 sequence without .hidden support, error for non-ELF targets.
1335 (GTM_longjmp) [__ELF__]: Only use .hidden if
1336 HAVE_ATTRIBUTE_VISIBILITY.
1337
d846e425
RO
13382011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1339
1340 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1341 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1342 Dummy functions.
1343 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1344 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1345
80713347
UB
13462011-11-16 Uros Bizjak <ubizjak@gmail.com>
1347
1348 PR bootstrap/51098
1349 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1350 * configure: Regenerate.
1351
2841f85e
L
13522011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1353
1354 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1355
8851b429
RO
13562011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1357
1358 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1359 .hidden.
1360 (.note.GNU-stack): Only use if __linux__.
1361 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1362 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1363 * testsuite/libitm.c/reentrant.c: Likewise.
1364 * testsuite/libitm.c/simple-2.c: Likewise.
1365 * testsuite/libitm.c/txrelease.c: Likewise.
1366 * testsuite/libitm.c++/static_ctor.C: Likewise.
1367
d4b17902
RH
13682011-11-10 Richard Henderson <rth@redhat.com>
1369
1370 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1371 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1372 * configure.ac (ARCH_X86_AVX): New conditional.
1373 * Makefile.in, configure: Rebuild.
1374
430616e7
RH
13752011-11-09 Richard Henderson <rth@redhat.com>
1376
1377 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1378 * configure.ac: Use it.
1379 * config.h.in, configure: Rebuild.
1380 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1381
79b1edb6
RH
13822011-11-09 Richard Henderson <rth@redhat.com>
1383
1384 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1385 * config/alpha/unaligned.h: Remove file.
1386 * config/generic/unaligned.h: Remove file.
1387 * config/x86/unaligned.h: Remove file.
1388 * config/generic/cachepage.h: Remove file.
1389 * config/posix/cachepage.cc: Remove file.
1390 * config/generic/cacheline.cc: Remove file.
1391 * config/x86/cacheline.cc: Remove file.
1392 * config/generic/cacheline.h (gtm_cacheline): Remove the
1393 store_mask, copy_mask, copy_mask_wb methods.
1394 * config/x86/cacheline.h: Likewise.
1395 * config/alpha/cacheline.h: Fall back to generic after setting size.
1396 * config/generic/tls.cc (gtm_mask_stack): Remove.
1397 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1398 (GTM_vpalignr_table): Remove.
1399 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1400 (GTM_pshift_table): Remove.
1401 * config/libitm_i.h: Don't include cachepage.h.
1402 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1403 * Makefile.in, testsuite/Makefile.in: Rebuild.
1404
4bdd090f
RH
14052011-11-09 Richard Henderson <rth@redhat.com>
1406
8ee9fac2
RH
1407 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1408 to emit branch prediction hint.
1409
9bdc6343
RH
1410 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1411 Protect .note.GNU-stack with __linux__.
1412
4bdd090f
RH
1413 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1414 * configure, aclocal.m4, config.h.in: Rebuild.
1415 * config/generic/asmcfi.h: New file.
1416 * config/x86/sjlj.S: Use it.
1417
4408b086
RH
14182011-11-08 Richard Henderson <rth@redhat.com>
1419
1420 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1421
01f3428c
RH
14222011-11-08 Richard Henderson <rth@redhat.com>
1423
3d3b05ff
RH
1424 * configure.tgt: Test correct directory for supported cpus.
1425
01f3428c
RH
1426 * configure.ac: Exit if unsupported.
1427 * configure: Rebuild.
1428 * configure.tgt: Delete boilerplate from libgomp for unsupported
1429 targets. Set UNSUPPORTED for unsupported targets.
1430
07f03cd3
RO
14312011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1432
1433 * configure.tgt: Handle i386 like i[456]86.
1434 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1435 take address.
1436 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1437 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1438
0a35513e
AH
14392011-11-05 Aldy Hernandez <aldyh@redhat.com>
1440
1441 * method-wbetl.cc: Update copyright notice.
1442 * aatree.cc: Same.
1443 * util.cc: Same.
1444 * libitm.h: Same.
1445 * memset.cc: Same.
1446 * eh_cpp.cc: Same.
1447 * barrier.tpl: Same.
1448 * useraction.cc: Same.
1449 * stmlock.h: Same.
1450 * memcpy.cc: Same.
1451 * common.h: Same.
1452 * config/generic/tls.cc: Same.
1453 * config/generic/cacheline.h: Same.
1454 * config/generic/cachepage.h: Same.
1455 * config/generic/cacheline.cc: Same.
1456 * config/generic/unaligned.h: Same.
1457 * config/x86/cacheline.h: Same.
1458 * config/x86/cacheline.cc: Same.
1459 * config/x86/unaligned.h: Same.
1460 * config/alpha/cacheline.h: Same.
1461 * config/alpha/unaligned.h: Same.
1462 * config/alpha/sjlj.S: Same.
1463 * config/posix/cachepage.cc: Same.
1464 * config/linux/futex.h: Same.
1465 * config/linux/alpha/futex_bits.h: Same.
1466
14672011-11-04 Torvald Riegel <triegel@redhat.com>
1468
1469 * libitm.texi: No cover text and invariant sections.
1470
14712011-11-03 Richard Henderson <rth@redhat.com>
1472
1473 * local_type_traits: New file.
1474 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1475
14762011-11-03 Richard Henderson <rth@redhat.com>
1477
1478 * configure.ac: Don't test for gfortran.
1479 * configure: Rebuild.
1480
1481 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1482 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1483
14842011-11-03 Aldy Hernandez <aldyh@redhat.com>
1485
1486 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1487 * testsuite/libitm.c/memset-1.c: Same.
1488 * testsuite/libitm.c/c.exp: Same.
1489 * testsuite/lib/libitm-dg.exp: Same.
1490 * testsuite/lib/libitm.exp: Same.
1491 * testsuite/libitm.c++/c++.exp: Same.
1492
14932011-11-03 Aldy Hernandez <aldyh@redhat.com>
1494
1495 * testsuite/config/default.exp: Update copyright date.
1496 * configure.ac: Add copyright info.
1497 * configure.tgt: Same.
1498
14992011-11-03 Aldy Hernandez <aldyh@redhat.com>
1500
1501 * testsuite/libitm.c/reentrant.c: XFAIL.
1502 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1503
15042011-10-29 Torvald Riegel <triegel@redhat.com>
1505
1506 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1507 handle aborts.
1508 (_ITM_abortTransaction): Handle aborts of outer transactions.
1509 * libitm_i.h: Same.
1510 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1511 * libitm.texi: Document aborts of outer transactions.
1512 * testsuite/libitm.c/cancel.c: New file.
1513
15142011-10-19 Torvald Riegel <triegel@redhat.com>
1515
1516 * testsuite/*: Change __transaction to __transaction_atomic or
1517 __transaction_relaxed.
1518
15192011-10-19 Torvald Riegel <triegel@redhat.com>
1520
1521 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1522 (gtm_thr): Same.
1523
15242011-10-19 Torvald Riegel <triegel@redhat.com>
1525
1526 * libitm_i.h: Add gl_wt dispatch.
1527 * retry.cc (parse_default_method): Same.
1528 * method-gl.cc: New file.
1529 * Makefile.am: Use method-gl.cc.
1530 * Makefile.in: Rebuild.
1531
15322011-10-19 Torvald Riegel <triegel@redhat.com>
1533
1534 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1535 safety if requested by a TM method.
1536 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1537 privatization safety.
1538 * method-serial.cc: Same.
1539
15402011-10-19 Torvald Riegel <triegel@redhat.com>
1541
1542 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1543 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1544 undolog-related member functions from *_local to *_undolog.
1545 * local.cc (gtm_thread::commit_undolog): Same.
1546 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1547 (GTM::gtm_thread::rollback): Roll back undolog before
1548 dispatch-specific rollback.
1549
15502011-10-19 Torvald Riegel <triegel@redhat.com>
1551
1552 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1553 re-initialization of the current method group.
1554 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1555
15562011-10-19 Torvald Riegel <triegel@redhat.com>
1557
1558 * alloc.cc (commit_allocations_2): Do not free transaction-local
1559 memory when committing a nested transaction.
1560
15612011-10-19 Torvald Riegel <triegel@redhat.com>
1562
1563 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1564 serial-irrevocable dispatch, not serial.
1565
15662011-10-19 Torvald Riegel <triegel@redhat.com>
1567
1568 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1569 declarations.
1570 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1571 * method-serial.cc: Implement begin_or_restart().
1572 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1573 dispatch-specific begin_or_restart().
1574 (GTM::gtm_thread::restart): Same.
1575
15762011-08-23 Torvald Riegel <triegel@redhat.com>
1577
1578 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1579 restarting without switching to serial mode.
1580 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1581 transaction state. Choose closed-nesting alternative if available.
1582 (GTM::gtm_thread::set_default_dispatch): New.
1583 (parse_default_method): New.
1584 (GTM::gtm_thread::number_of_threads_changed): New.
1585 * method-serial.cc (GTM::serial_mg): New method group class.
1586 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1587 fini.
1588 (GTM::serial_dispatch): Same.
1589 (GTM::serialirr_onwrite_dispatch): Same.
1590 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1591 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1592 registered threads.
1593 (GTM::gtm_thread::gtm_thread): Same.
1594 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1595 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1596 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1597 choose dispatch but set state according to dispatch here.
1598 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1599 (GTM::method_group): New class.
1600 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1601 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1602 * libitm.texi: Document TM methods, method groups, method life cycle.
1603 Rename method sets to method groups.
1604
16052011-08-23 Torvald Riegel <triegel@redhat.com>
1606
1607 * config/x86/tls.h: Moved to ...
1608 * config/linux/x86/tls.h: ... here.
1609
16102011-08-23 Torvald Riegel <triegel@redhat.com>
1611
1612 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1613 Add X32 support.
1614 * config/x86/sjlj.S: Same.
1615
16162011-08-19 Torvald Riegel <triegel@redhat.com>
1617
1618 * config/linux/rwlock.h: New file.
1619 * config/linux/rwlock.c: New file.
1620 * configure.ac: Reenable futex support (undo SVN rev 157758).
1621 * Makefile.am: Same.
1622 * configure.tgt: Same.
1623 * config/linux/alpha/futex_bits.h: Same.
1624 * config/linux/futex.h: Same. Return number of woken processes.
1625 * config/linux/futex.cc: Same.
1626 (futex_wait): Remove spinning.
1627 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1628 Use __x86_64__ instead of __LP64__.
1629 * aclocal.m4: Include generic futex checks.
1630 * configure: Rebuild.
1631 * Makefile.in: Rebuild.
1632 * testsuite/Makefile.in: Rebuild.
1633 * beginend.cc: Include pthread.h.
1634 * config/posix/cachepage.cc: Same.
1635
16362011-08-12 Torvald Riegel <triegel@redhat.com>
1637
1638 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1639 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1640 (set_gtm_thr): New.
1641 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1642 (set_gtm_thr): New.
1643 (GTM::gtm_thread::thread_num): Removed.
1644 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1645 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1646 tx-to-thread renaming.
1647 * beginend.cc: Adapted to tx-to-thread renaming.
1648 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1649 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1650 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1651 gtm_transaction to gtm_thread.
1652 (_ITM_getThreadnum): Removed. Not supported anymore.
1653 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1654 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1655 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1656 gtm_tx-to-gtm_thr renaming if necessary.
1657 * eh_cpp.cc: Same.
1658 * local.cc: Same.
1659 * retry.cc: Same.
1660 * clone.cc: Same.
1661 * alloc.cc: Same.
1662 * alloc_c.cc: Same.
1663 * alloc_cpp.cc: Same.
1664 * method-serial.cc: Same.
1665 * config/generic/tls.cc: Same.
1666 * config/posix/rwlock.h (gtm_rwlock): Same.
1667 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1668
16692011-08-12 Torvald Riegel <triegel@redhat.com>
1670
1671 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1672 implementation.
1673 (gtm_rwlock::read_unlock): Same.
1674 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1675 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1676 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1677 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1678 w_upgrade. Replaced by per-transaction flags (in shared_state).
1679 Added c_confirmed_writers.
1680 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1681 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1682 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1683 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1684 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1685 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1686 * libitm.texi: Document locking conventions and implementations in
1687 libitm.
1688
16892011-08-12 Torvald Riegel <triegel@redhat.com>
1690
1691 * libitm_i.h (next_tx): Add list of all threads' transaction.
1692 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1693 transaction with list of transactions and ...
1694 (thread_exit_handler): ... deregister here.
1695 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1696 * config/x86/target.h: Same.
1697
16982011-08-12 Torvald Riegel <triegel@redhat.com>
1699
1700 * testsuite/libitm.c++/static_ctor.C: New file.
1701
17022011-08-12 Torvald Riegel <triegel@redhat.com>
1703
1704 * testsuite/libitm.c/reentrant.c: New file.
1705
17062011-08-12 Torvald Riegel <triegel@redhat.com>
1707
1708 * config/generic/tls.h: Remove the free list for transactions and ...
1709 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1710 (GTM::gtm_transaction::operator delete): ... and release here.
1711 (thread_exit_handler): New. Delete tx when thread terminates.
1712 (thread_exit_init): New.
1713 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1714 * testsuite/libitm.c/txrelease.c: New file.
1715
17162011-08-12 Torvald Riegel <triegel@redhat.com>
1717
1718 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1719 * testsuite/libitm.c/notx.c: New file.
1720
17212011-08-12 Torvald Riegel <triegel@redhat.com>
1722
1723 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1724 * libitm_i.h (local_tid): ... to here.
1725 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1726 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1727
17282011-08-12 Torvald Riegel <triegel@redhat.com>
1729
1730 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1731 serialirr_onwrite_dispatch as new default for now.
1732 * method-serial.cc (serialirr_onwrite_dispatch): New.
1733 (GTM::dispatch_serialirr_onwrite): New.
1734 * libitm_i.h: Same.
1735
17362011-08-12 Torvald Riegel <triegel@redhat.com>
1737
1738 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1739 * query.cc (_ITM_getTransactionId): There is no active transaction if
1740 the current nesting level is zero.
1741
17422011-07-28 Torvald Riegel <triegel@redhat.com>
1743
1744 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1745 rollback.
1746
17472011-07-28 Torvald Riegel <triegel@redhat.com>
1748
1749 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1750 transaction properties from the caller instead of from the
1751 transaction object.
1752 * libitm_i.h: Same.
1753 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1754
17552011-07-28 Torvald Riegel <triegel@redhat.com>
1756
1757 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1758 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1759 * dispatch.h: Same.
1760 * method-serial.cc: Same.
1761 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1762 flat nesting as default, and closed nesting on demand.
1763 (GTM::gtm_transaction::rollback): Same.
1764 (_ITM_abortTransaction): Same.
1765 (GTM::gtm_transaction::restart): Same.
1766 (GTM::gtm_transaction::trycommit): Same.
1767 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1768 (choose_code_path): New.
1769 (GTM::gtm_transaction_cp::save): New.
1770 (GTM::gtm_transaction_cp::commit): New.
1771 * query.cc (_ITM_inTransaction): Support flat nesting.
1772 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1773 (GTM::gtm_transaction): Support flat and closed nesting.
1774 * alloc.cc (commit_allocations_2): New.
1775 (commit_cb_data): New helper struct.
1776 (GTM::gtm_transaction::commit_allocations): Handle nested
1777 commits/rollbacks.
1778 * libitm.texi: Update user action section, add description of nesting.
1779
17802011-07-28 Torvald Riegel <triegel@redhat.com>
1781
1782 * libitm_i.h: Add closed nesting as restart reason.
1783 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1784
17852011-07-28 Torvald Riegel <triegel@redhat.com>
1786
1787 * useraction.cc: Use vector instead of list to store actions.
1788 Also support partial rollbacks for closed nesting.
1789 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1790 * beginend.cc: Same.
1791
17922011-07-28 Torvald Riegel <triegel@redhat.com>
1793
1794 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1795 closed_nesting flags, as well as a closed nesting alternative.
1796 * method-serial.cc: Same.
1797 (serial_dispatch): Renamed to serialirr_dispatch.
1798 (GTM::dispatch_serialirr): Same.
1799 (serial_dispatch_ul): Renamed to serial_dispatch.
1800 (GTM::dispatch_serial): Same.
1801
18022011-07-28 Torvald Riegel <triegel@redhat.com>
1803
1804 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1805
18062011-07-28 Torvald Riegel <triegel@redhat.com>
1807
1808 * aatree.h (aa_tree::remove): New.
1809 (aa_tree::operator new): Add placement new.
1810
18112011-07-02 Torvald Riegel <triegel@redhat.com>
1812
1813 * containers.h: New file.
1814 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1815 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1816 * common.h: ... to here.
1817 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1818 * local.cc: Same.
1819
18202011-06-30 Torvald Riegel <triegel@redhat.com>
1821
1822 * libitm_i.h (STATE_ABORTING): Remove.
1823 * beginend.cc (_ITM_abortTransaction): Same.
1824 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1825 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1826 (_ITM_rollbackTransaction): Remove.
1827 * beginend.cc: Same.
1828 * libitm.map: Same.
1829 * libitm.texi: Document these ABI changes.
1830
18312011-06-30 Torvald Riegel <triegel@redhat.com>
1832
1833 * libitm.texi: New file.
1834 * Makefile.am: Add libitm.texi.
1835 * Makefile.in: Rebuild.
1836
18372011-06-30 Torvald Riegel <triegel@redhat.com>
1838
1839 * libitm_i.h: Move parts to common.h and dispatch.h.
1840 * common.h: New file.
1841 * dispatch.h: New file, new dispatch class.
1842 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1843 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1844 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1845 decision to retry.cc.
1846 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1847 only.
1848 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1849 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1850 logging.
1851 * barrier.cc: Use new barriers definitions.
1852 (abi_dispatch::memmove_overlap_check): New.
1853 * config/x86/x86_sse.cc: Same.
1854 * config/x86/x86_avx.cc: Same.
1855 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1856 memcpy.cc.
1857 * Makefile.in: Rebuild.
1858 * method-readonly.cc: Remove.
1859 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1860 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1861
18622011-06-30 Torvald Riegel <triegel@redhat.com>
1863
1864 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1865 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1866 * testsuite/libitm.c/dropref-2.c: Same.
1867 * testsuite/libitm.c/dropref.c: Same.
1868
18692011-06-30 Torvald Riegel <triegel@redhat.com>
1870
1871 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1872 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1873 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1874 * alloc_c.cc: Same.
1875 * barrier.tpl: Same.
1876 * beginend.c: Same.
1877 * config/generic/tls.h: Same.
1878 * config/x86/tls.h: Same.
1879 * libitm_i.h: Same.
1880 * memcpy.cc: Same.
1881 * memset.cc: Same.
1882 * method-readonly.cc: Same.
1883 * method-serial.cc: Same.
1884 * method-wbetl.cc: Same.
1885 * retry.cc: Same.
1886
18872011-03-03 Richard Henderson <rth@redhat.com>
1888
1889 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1890 From Patrik Marlier <patrick.marlier@unine.ch>.
1891
18922011-02-03 Richard Henderson <rth@redhat.com>
1893
1894 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1895 * configure.ac: Use it.
1896 * configure, config.h.in: Rebuild.
1897 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1898 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1899 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1900 * libitm.map: Use wildcards to match size_t mangling.
1901
19022010-12-14 Richard Henderson <rth@redhat.com>
1903
1904 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1905 blocks of TIDs per thread.
1906 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1907 (setup_gtm_thr): Return the thread structure.
1908 * config/x86/tls.h (setup_gtm_thr): Likewise.
1909
19102010-12-14 Richard Henderson <rth@redhat.com>
1911
1912 * clone.cc (table_lock): Remove.
1913 (find_clone): Don't take it.
1914 (ExcludeTransaction): New helper class.
1915 (_ITM_registerTMCloneTable): Use it.
1916 (_ITM_deregisterTMCloneTable): Likewise.
1917
19182010-12-14 Richard Henderson <rth@redhat.com>
1919
1920 * config/x86/tls.h: New file.
1921
19222010-07-15 Richard Henderson <rth@redhat.com>
1923
1924 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1925 * Makefile.in: Rebuild.
1926
19272010-07-13 Aldy Hernandez <aldyh@redhat.com>
1928
1929 * method-wbetl.cc (trydropreference): Fix source line.
1930
19312010-07-13 Aldy Hernandez <aldyh@redhat.com>
1932
1933 * libitm.h: Add comment.
1934 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1935
19362010-07-07 Aldy Hernandez <aldyh@redhat.com>
1937
1938 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1939 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1940 available, use pthread mutexes.
1941 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1942 * config.h.in: Regenerate.
1943 * configure: Regenerate.
1944
19452010-07-06 Aldy Hernandez <aldyh@redhat.com>
1946
1947 * libitm.h (ITM_PURE): Define.
1948 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1949
19502010-06-28 Aldy Hernandez <aldyh@redhat.com>
1951
1952 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1953 (validate): Add comment.
1954 (trydropreference): New.
1955 * method-readonly.cc (class readonly_dispatch): Add
1956 trydropreference.
1957 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1958 Call trydropreference().
1959 * libitm.h (_ITM_dropReferences): Remove const attribute.
1960 * method-serial.cc (class serial_dispatch): Add trydropreference.
1961 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1962
19632010-06-28 Aldy Hernandez <aldyh@redhat.com>
1964
1965 * memcpy.cc (do_memcpy): Comment.
1966
19672010-06-25 Aldy Hernandez <aldyh@redhat.com>
1968
1969 * barrier.tpl: Add comments throughout.
1970
19712010-06-24 Aldy Hernandez <aldyh@redhat.com>
1972
1973 * method-wbetl.cc (struct w_entry): Add comments.
1974 (trycommit): Same.
1975 (rollback): Same.
1976
19772010-06-24 Aldy Hernandez <aldyh@redhat.com>
1978
1979 * alloc_c.cc (_ITM_dropReferences): New.
1980 * libitm.map (_ITM_dropReferences): Add.
1981 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1982 * libitm_i.h (struct gtm_transaction): Declare
1983 drop_references_allocations and drop_references_local.
1984 * local.cc (rollback_local): Ignore memory when applicable.
1985 (drop_references_local): New.
1986
19872010-06-23 Richard Henderson <rth@redhat.com>
1988
1989 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1990 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1991 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1992 * config/alpha/target.h: Likewise.
1993 * config/generic/tls.cc (gtm_mask_stack): Use it.
1994
19952010-06-23 Richard Henderson <rth@redhat.com>
1996
1997 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1998 a mutex instead of trying a lock-free compare-and-swap on the list.
1999 (gtm_cacheline_page::operator delete): Likewise.
2000
20012010-06-16 Richard Henderson <rth@redhat.com>
2002
2003 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2004 that overlap the libitm stack.
2005 * barrier.tpl: Mark incoming stack.
2006 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2007 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2008 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2009 * memcpy.cc, memset.cc: Likewise.
2010 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2011 * config/generic/tls.h (gtm_thread): Add stack_top member.
2012 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2013 * libitm_i.h (gtm_mask_stack): Declare.
2014 * config/generic/tls.cc: New file.
2015 * Makefile.am (libitm_la_SOURCES): Add it.
2016 (AM_CXXFLAGS): Turn off exceptions.
2017 * Makefile.in: Rebuild.
2018
20192010-06-16 Richard Henderson <rth@redhat.com>
2020
2021 * alloc.cc (struct gtm_alloc_action): Move definition ...
2022 * libitm_i.h: ... here.
2023 (class gtm_transaction): Declare new and delete.
2024 * beginend.cc (alloc_tx): Reformulate as operator new.
2025 (free_tx): Reformulate as operator delete.
2026 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2027
20282010-06-11 Richard Henderson <rth@redhat.com>
2029
2030 * clone.cc (clone_entry_compare): Fix typo.
2031 From Patrik Marlier <patrick.marlier@unine.ch>.
2032
20332010-05-13 Richard Henderson <rth@redhat.com>
2034
2035 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2036 in extern "C".
2037
20382010-05-07 Aldy Hernandez <aldyh@redhat.com>
2039
2040 * libitm_i.h (struct gtm_transaction): Remove
2041 get_allocation_size.
2042 (record_allocation): Remove size parameter.
2043 * libitm.map (_ITM_realloc): Remove.
2044 * alloc_c.cc (_ITM_realloc): Remove.
2045 (_ITM_malloc): Remove size argument to record_allocation.
2046 (_ITM_calloc): Same.
2047 * alloc_cpp.cc (_ZGTtnwm): Same.
2048 (_ZGTtnwmRKSt9nothrow_t): Same.
2049 (_ZGTtnam): Same.
2050 (_ZGTtnamRKSt9nothrow_t): Same.
2051 * alloc.cc (struct gtm_alloc_action): Remove size.
2052 (get_allocation_size): Remove.
2053 (commit_allocations): Add comment.
2054 (record_allocation): Remove size parameter.
2055 (forget_allocation): Remove set of size.
2056
20572010-04-19 Aldy Hernandez <aldyh@redhat.com>
2058
2059 * Makefile.am (abi_version): New.
2060 (AM_CXXFLAGS): Pass abi_version.
2061 * Makefile.in: Regenerate.
2062 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2063
20642010-04-06 Aldy Hernandez <aldyh@redhat.com>
2065
2066 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2067 _ITM_getTMCloneOrIrrevokable.
2068 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2069 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2070
20712010-03-26 Aldy Hernandez <aldyh@redhat.com>
2072
2073 * configure.ac: Remove Linux futex support.
2074 * configure.tgt (config_path): Same.
2075 * Makefile.am: Same.
2076 * config/linux: Remove entire directory.
2077 * configure: Rebuild.
2078 * Makefile.in: Rebuild.
2079 * testsuite/Makefile.in: Rebuild.
2080
20812010-03-09 Aldy Hernandez <aldyh@redhat.com>
2082
2083 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2084 switching to serial mode.
2085 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2086
20872010-03-03 Aldy Hernandez <aldyh@redhat.com>
2088
2089 * configure.tgt: Add emacs -*- tags.
2090 * barrier.tpl: Same.
2091
20922010-02-23 Aldy Hernandez <aldyh@redhat.com>
2093
2094 * Makefile.am: Rename serial.cc to method-serial.cc.
2095 * Makefile.in: Regenerate with automake 1.11.1.
2096 * testsuite/Makefile.in: Same.
2097 * aclocal.m4: Regenerate with aclocal 1.11.1.
2098 * method-serial.cc: Rename from serial.cc.
2099 * libitm_i.h (struct gtm_transaction): Update comment on
2100 serialirr_mode.
2101
21022010-02-22 Aldy Hernandez <aldyh@redhat.com>
2103
2104 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2105 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2106
21072010-02-11 Aldy Hernandez <aldyh@redhat.com>
2108
2109 * configure: Rebuild.
2110
21112009-11-12 Richard Henderson <rth@redhat.com>
2112
2113 * Rewrite everything in C++.
2114
21152009-11-03 Richard Henderson <rth@redhat.com>
2116
2117 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2118 * Makefile.am (libitm_la_SOURCES): Add them.
2119 * configure.ac (ARCH_X86): New conditional.
2120 * Makefile.in, configure: Rebuild.
2121 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2122 Move futex setup into "other system configury" case.
2123 * local.c (rollback_local): Merge into ...
2124 (GTM_rollback_local): ... here.
2125 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2126 (_ITM_LB): Define as an alias to GTM_LB.
2127
21282009-11-03 Richard Henderson <rth@redhat.com>
2129
2130 * method-readonly.c: New file.
2131 * Makefile.am (libitm_la_SOURCES): Add it.
2132 * Makefile.in: Rebuild.
2133 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2134 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2135 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2136 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2137 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2138 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2139 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2140 gtm_get_clock, gtm_inc_clock): New.
2141 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2142 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2143 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2144 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2145 replace uses with new libitm_i.h symbols.
2146 (dispatch_wbetl): Rename from wbetl_dispatch.
2147 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2148 away from dispatch_readonly; abort if the beginTransaction call
2149 asserted that the transaction was readonly.
2150
21512009-11-03 Richard Henderson <rth@redhat.com>
2152
2153 * memset.c: New file.
2154 * Makefile.am (libitm_la_SOURCES): Add it.
2155 * Makefile.in: Rebuild.
2156 * testsuite/libitm.c/memset-1.c: New.
2157
21582009-11-03 Richard Henderson <rth@redhat.com>
2159
2160 * dispatch.c: Remove file.
2161 * useraction.c (struct gtm_user_action): Move from libitm.h.
2162 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2163 (serial_memset, serial_memmove, serial_memcpy): Remove.
2164 (serial_W*, serial_R*): Remove.
2165 (serial_dispatch): Update to match.
2166 * configure.ac: Move Werror down below configure checks. Don't
2167 check for sys/loadavg.h, do check for malloc.h. Don't check for
2168 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2169 Use GCC_AC_FUNC_MMAP_BLACKLIST
2170 * libitm.h: Split out all internal items to...
2171 * libitm_i.h: ... here. New file.
2172 * copymask.c: New file.
2173 * local.c (struct gtm_local_undo): Move from libitm.h.
2174 (GTM_alloc_local): Rename from alloc_local; export.
2175 * memcpy.c: New file.
2176 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2177 * config/posix/page.c: New file.
2178 * config/posix/target_tls.h: Remove file.
2179 * barrier.c: New file.
2180 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2181 copymask.c, page.c.
2182 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2183 * method-wbetl.c: Rewrite for new cacheline methods.
2184 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2185
2186 * config/alpha/sjlj.S: Fix typo.
2187 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2188 * config/alpha/copymask.c: New file.
2189 * config/alpha/target.h (CACHELINE_SIZE): New.
2190 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2191
2192 * config/x86/target_i.h: Copy functions from x86/target.h.
2193 * config/x86/copymask.c: New file.
2194 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2195 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2196 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2197 * config/x86/target_tls.h: Move contents to target_i.h.
2198
2199 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2200 * testsuite/libitm.c/memcpy-1.c: New.
2201
22022009-10-22 Richard Henderson <rth@redhat.com>
2203
2204 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2205 (AM_CCASFLAGS): New.
2206 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2207 saving/restoring _AC_ARG_VAR_PRECIOUS.
2208 * Makefile.in, aclocal.m4, config.h.in, configure,
2209 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2210
22112009-10-22 Richard Henderson <rth@redhat.com>
2212
2213 * testsuite/*: Update for new compiler syntax.
2214
22152009-10-21 Richard Henderson <rth@redhat.com>
2216
2217 * libitm.h (_ITM_abortReason): Add outerAbort.
2218
22192009-08-03 Richard Henderson <rth@redhat.com>
2220
2221 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2222 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2223 * method-wbetl.c (struct w_entry): Remove mask.
2224 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2225 adjust all callers.
2226
22272009-07-22 Richard Henderson <rth@redhat.com>
2228
2229 * eh_cpp.c: New file.
2230 * Makefile.am (libitm_la_SOURCES): Add it.
2231 * Makefile.in: Rebuild.
2232 * beginend.c (GTM_rollback_transaction): Undo exception state.
2233 (GTM_trycommit_transaction): Mark inline.
2234 (GTM_trycommit_and_finalize_transaction): Split out from ...
2235 (_ITM_commitTransaction): ... here.
2236 (_ITM_commitTransactionEH): New function.
2237 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2238 cxa_unthrown, eh_in_flight; reorder.
2239
2240 * testsuite/libitm.c++/c++.exp: New.
2241 * testsuite/libitm.c++/eh-1.C: New.
2242
2243 * aatree.c (aa_free): Remove REGPARM.
2244 * aatree.h: Remove all REGPARM.
2245
22462009-07-18 Richard Henderson <rth@redhat.com>
2247
2248 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2249 * Makefile.am (libitm_la_SOURCES): Add them.
2250 * Makefile.in: Rebuild.
2251 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2252 (GTM_trycommit_transaction): Likewise.
2253 * libitm.h: Include aatree.h
2254 (struct gtm_alloc_action): New.
2255 (struct gtm_transaction): Add alloc_actions.
2256 (GTM_record_allocation, GTM_forget_allocation): Declare.
2257 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2258 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2259 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2260 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2261 _ZGTtdaPvRKSt9nothrow_t): Export.
2262
22632009-07-18 Richard Henderson <rth@redhat.com>
2264
2265 * target_tls.h: Move ...
2266 * config/posix/target_tls.h: ... here.
2267
22682009-07-07 Richard Henderson <rth@redhat.com>
2269
2270 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2271
22722009-07-07 Richard Henderson <rth@redhat.com>
2273
2274 * Update to GPL3.
2275
22762009-07-07 Richard Henderson <rth@redhat.com>
2277
2278 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2279 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2280
2281 * configure.tgt: Don't use -ftls-model for x86 linux.
2282 * libitm.h: Include target.h after standard includes.
2283 (_gtm_thr): Rename from gtm_thr.
2284 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2285 (gtm_disp, set_gtm_disp): New.
2286 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2287 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2288 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2289
22902009-07-07 Richard Henderson <rth@redhat.com>
2291
2292 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2293
22942009-07-06 Richard Henderson <rth@redhat.com>
2295
2296 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2297 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2298 (_ITM_beginTransaction): Take variadic arguments.
2299 (_ITM_registerThrownObject): Declare.
2300 * beginend.c, serial.c: Update.
2301 * libitm.map: Add _ITM_registerThrownObject.
2302
23032009-01-28 Richard Henderson <rth@redhat.com>
2304
2305 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2306 * Makefile.in: Rebuild.
2307 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2308 (GTM_restart_transaction): Fix uninstrumented code check.
2309 * retry.c (GTM_decide_retry_strategy): Add serial check.
2310 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2311 automatically go irrevokable when in serial mode.
2312 * clone.c: New file.
2313 * libitm.h, libitm.map: Update.
2314
23152009-01-27 Richard Henderson <rth@redhat.com>
2316
2317 * Makefile.am (LTCCASCOMPILE): Define.
2318 (libitm_la_SOURCES): Add methid-wbetl.c.
2319 * testsuite/Makefile.am: New
2320 * configure.ac: Add testsuite/Makefile.
2321 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2322 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2323 (_ITM_abortTransaction): Finalize implementation method; pass
2324 transaction properties to longjmp.
2325 (GTM_restart_transaction): Split out from ...
2326 (_ITM_commitTransaction): ... here.
2327 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2328 Move to config/x86/target.h.
2329 * config/linux/alpha/futex_bits.h: New.
2330 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2331 * config/x86/target.h: Disable target types for 32-bit.
2332 * config/alpha/sjlj.S, config/alpha/target.h: New.
2333 * libitm.h (struct gtm_dispatch): Add init, fini.
2334 (enum restart_reason): New.
2335 (struct gtm_transaction): Add method and restarts.
2336 * retry.c (GTM_decide_retry_strategy): Implement.
2337 * serial.c (serial_init, serial_fini): New.
2338 (GTM_serialmode): Finialize outgoing method.
2339 * method-wbetl.c: New.
2340
23412008-12-09 Richard Henderson <rth@redhat.com>
2342
2343 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2344 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2345 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2346 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2347 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2348 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2349 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2350 * serial.c (serial_R##T, serial_W##T): Likewise.
2351
23522008-11-21 Richard Henderson <rth@redhat.com>
2353
2354 * Initial commit.
21fa2a29 2355\f
877e3c2a 2356Copyright (C) 2008-2022 Free Software Foundation, Inc.
21fa2a29
JJ
2357
2358Copying and distribution of this file, with or without modification,
2359are permitted in any medium without royalty provided the copyright
2360notice and this notice are preserved.
This page took 1.291817 seconds and 5 git commands to generate.