]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Don't try bswap + rotate when TYPE_PRECISION(n->type) > n->range.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
fee53a31
GA
12023-01-02 Jakub Jelinek <jakub@redhat.com>
2
3 * libitm.texi: Bump @copying's copyright year.
4
83d400bd
GA
52022-11-14 Martin Liska <mliska@suse.cz>
6
7 Revert:
8 2022-11-14 Martin Liska <mliska@suse.cz>
9
10 * doc/c-c++-language-constructs-for-tm.rst: New file.
11 * doc/conf.py: New file.
12 * doc/copyright.rst: New file.
13 * doc/enabling-libitm.rst: New file.
14 * doc/gnu-free-documentation-license.rst: New file.
15 * doc/index.rst: New file.
16 * doc/indices-and-tables.rst: New file.
17 * doc/internals.rst: New file.
18 * doc/locking-conventions.rst: New file.
19 * doc/nesting-flat-vs-closed.rst: New file.
20 * doc/the-libitm-abi.rst: New file.
21 * doc/the-libitm-abi/function-list.rst: New file.
22 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
23 * doc/the-libitm-abi/library-design-principles.rst: New file.
24 * doc/the-libitm-abi/memory-model.rst: New file.
25 * doc/the-libitm-abi/non-objectives.rst: New file.
26 * doc/the-libitm-abi/objectives.rst: New file.
27 * doc/the-libitm-abi/sample-code.rst: New file.
28 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
29 * doc/tm-methods-and-method-groups.rst: New file.
30
312022-11-14 Martin Liska <mliska@suse.cz>
32
33 Revert:
34 2022-11-14 Martin Liska <mliska@suse.cz>
35
36 * Makefile.in: Support Sphinx based documentation.
37
382022-11-14 Martin Liska <mliska@suse.cz>
39
40 Revert:
41 2022-11-14 Martin Liska <mliska@suse.cz>
42
43 * libitm.texi: Removed.
44
452022-11-14 Martin Liska <mliska@suse.cz>
46
47 Revert:
48 2022-11-14 Martin Liska <mliska@suse.cz>
49
50 * Makefile.in: Support --with-sphinx-build.
51 * configure.ac: Likewise.
52 * configure: Regenerate.
53
542022-11-14 Martin Liska <mliska@suse.cz>
55
56 Revert:
57 2022-11-14 Martin Liska <mliska@suse.cz>
58
59 * Makefile.in: Build info pages conditionally.
60
612022-11-14 Martin Liska <mliska@suse.cz>
62
63 Revert:
64 2022-11-14 Martin Liska <mliska@suse.cz>
65
66 * doc/c-c++-language-constructs-for-tm.rst:
3d3b561f 67 Add trailing newline.
83d400bd 68 * doc/copyright.rst:
3d3b561f 69 Add trailing newline.
83d400bd 70 * doc/enabling-libitm.rst:
3d3b561f 71 Add trailing newline.
83d400bd 72 * doc/gnu-free-documentation-license.rst:
3d3b561f 73 Add trailing newline.
83d400bd 74 * doc/index.rst:
3d3b561f 75 Add trailing newline.
83d400bd 76 * doc/indices-and-tables.rst:
3d3b561f 77 Add trailing newline.
83d400bd 78 * doc/internals.rst:
3d3b561f 79 Add trailing newline.
83d400bd 80 * doc/locking-conventions.rst:
3d3b561f 81 Add trailing newline.
83d400bd 82 * doc/nesting-flat-vs-closed.rst:
3d3b561f 83 Add trailing newline.
83d400bd 84 * doc/the-libitm-abi.rst:
3d3b561f 85 Add trailing newline.
83d400bd 86 * doc/the-libitm-abi/function-list.rst:
3d3b561f 87 Add trailing newline.
83d400bd 88 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
3d3b561f 89 Add trailing newline.
83d400bd 90 * doc/the-libitm-abi/library-design-principles.rst:
3d3b561f 91 Add trailing newline.
83d400bd 92 * doc/the-libitm-abi/memory-model.rst:
3d3b561f 93 Add trailing newline.
83d400bd 94 * doc/the-libitm-abi/non-objectives.rst:
3d3b561f 95 Add trailing newline.
83d400bd 96 * doc/the-libitm-abi/objectives.rst:
3d3b561f 97 Add trailing newline.
83d400bd 98 * doc/the-libitm-abi/sample-code.rst:
3d3b561f 99 Add trailing newline.
83d400bd 100 * doc/the-libitm-abi/types-and-macros-list.rst:
3d3b561f 101 Add trailing newline.
83d400bd 102 * doc/tm-methods-and-method-groups.rst:
3d3b561f 103 Add trailing newline.
83d400bd
GA
104
1052022-11-14 Martin Liska <mliska@suse.cz>
106
107 Revert:
108 2022-11-14 Martin Liska <mliska@suse.cz>
109
110 * Makefile.in: Add missing HAS_SPHINX_BUILD.
111
1122022-11-14 Martin Liska <mliska@suse.cz>
113
114 Revert:
115 2022-11-14 Martin Liska <mliska@suse.cz>
116
117 * doc/conf.py: Add newline at last line.
118
1192022-11-14 Martin Liska <mliska@suse.cz>
120
121 Revert:
122 2022-11-14 Martin Liska <mliska@suse.cz>
123
124 PR other/107620
125 * configure: Regenerate.
126 * configure.ac: Always set sphinx-build.
127
eefbfbc7
GA
1282022-11-13 Martin Liska <mliska@suse.cz>
129
130 PR other/107620
131 * configure: Regenerate.
132 * configure.ac: Always set sphinx-build.
133
f225b813
GA
1342022-11-10 Martin Liska <mliska@suse.cz>
135
136 * doc/conf.py: Add newline at last line.
137
1cdfd0e5
GA
1382022-11-09 Martin Liska <mliska@suse.cz>
139
140 * Makefile.in: Add missing HAS_SPHINX_BUILD.
141
1422022-11-09 Martin Liska <mliska@suse.cz>
143
144 * doc/c-c++-language-constructs-for-tm.rst:
3d3b561f 145 Add trailing newline.
1cdfd0e5 146 * doc/copyright.rst:
3d3b561f 147 Add trailing newline.
1cdfd0e5 148 * doc/enabling-libitm.rst:
3d3b561f 149 Add trailing newline.
1cdfd0e5 150 * doc/gnu-free-documentation-license.rst:
3d3b561f 151 Add trailing newline.
1cdfd0e5 152 * doc/index.rst:
3d3b561f 153 Add trailing newline.
1cdfd0e5 154 * doc/indices-and-tables.rst:
3d3b561f 155 Add trailing newline.
1cdfd0e5 156 * doc/internals.rst:
3d3b561f 157 Add trailing newline.
1cdfd0e5 158 * doc/locking-conventions.rst:
3d3b561f 159 Add trailing newline.
1cdfd0e5 160 * doc/nesting-flat-vs-closed.rst:
3d3b561f 161 Add trailing newline.
1cdfd0e5 162 * doc/the-libitm-abi.rst:
3d3b561f 163 Add trailing newline.
1cdfd0e5 164 * doc/the-libitm-abi/function-list.rst:
3d3b561f 165 Add trailing newline.
1cdfd0e5 166 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
3d3b561f 167 Add trailing newline.
1cdfd0e5 168 * doc/the-libitm-abi/library-design-principles.rst:
3d3b561f 169 Add trailing newline.
1cdfd0e5 170 * doc/the-libitm-abi/memory-model.rst:
3d3b561f 171 Add trailing newline.
1cdfd0e5 172 * doc/the-libitm-abi/non-objectives.rst:
3d3b561f 173 Add trailing newline.
1cdfd0e5 174 * doc/the-libitm-abi/objectives.rst:
3d3b561f 175 Add trailing newline.
1cdfd0e5 176 * doc/the-libitm-abi/sample-code.rst:
3d3b561f 177 Add trailing newline.
1cdfd0e5 178 * doc/the-libitm-abi/types-and-macros-list.rst:
3d3b561f 179 Add trailing newline.
1cdfd0e5 180 * doc/tm-methods-and-method-groups.rst:
3d3b561f 181 Add trailing newline.
1cdfd0e5
GA
182
1832022-11-09 Martin Liska <mliska@suse.cz>
184
185 * Makefile.in: Build info pages conditionally.
186
1872022-11-09 Martin Liska <mliska@suse.cz>
188
189 * Makefile.in: Support --with-sphinx-build.
190 * configure.ac: Likewise.
191 * configure: Regenerate.
192
1932022-11-09 Martin Liska <mliska@suse.cz>
194
195 * libitm.texi: Removed.
196
1972022-11-09 Martin Liska <mliska@suse.cz>
198
199 * Makefile.in: Support Sphinx based documentation.
200
2012022-11-09 Martin Liska <mliska@suse.cz>
202
203 * doc/c-c++-language-constructs-for-tm.rst: New file.
204 * doc/conf.py: New file.
205 * doc/copyright.rst: New file.
206 * doc/enabling-libitm.rst: New file.
207 * doc/gnu-free-documentation-license.rst: New file.
208 * doc/index.rst: New file.
209 * doc/indices-and-tables.rst: New file.
210 * doc/internals.rst: New file.
211 * doc/locking-conventions.rst: New file.
212 * doc/nesting-flat-vs-closed.rst: New file.
213 * doc/the-libitm-abi.rst: New file.
214 * doc/the-libitm-abi/function-list.rst: New file.
215 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
216 * doc/the-libitm-abi/library-design-principles.rst: New file.
217 * doc/the-libitm-abi/memory-model.rst: New file.
218 * doc/the-libitm-abi/non-objectives.rst: New file.
219 * doc/the-libitm-abi/objectives.rst: New file.
220 * doc/the-libitm-abi/sample-code.rst: New file.
221 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
222 * doc/tm-methods-and-method-groups.rst: New file.
223
9a8b868d
GA
2242022-10-31 Xiongchuan Tan <xc-tan@outlook.com>
225
226 * configure.tgt: Add riscv support.
227 * config/riscv/asm.h: New file.
228 * config/riscv/sjlj.S: New file.
229 * config/riscv/target.h: New file.
230
621a911d
GA
2312022-10-13 Lulu Cheng <chenglulu@loongson.cn>
232
233 * config/loongarch/sjlj.S: Add a soft floating point condition to the
234 register recovery part of the code.
235
781f477a
GA
2362022-10-12 Martin Liska <mliska@suse.cz>
237
238 * configure: Regenerate.
239
ab332cd7
GA
2402022-10-11 Olivier Hainque <hainque@adacore.com>
241 Olivier Hainque <hainque@adacore.com>
242
243 * configure: Regenerate.
244
9e79a25b
GA
2452022-09-28 Lulu Cheng <chenglulu@loongson.cn>
246 Yang Yujie <yangyujie@loongson.cn>
247
248 * configure.tgt: Add loongarch support.
249 * config/loongarch/asm.h: New file.
250 * config/loongarch/sjlj.S: New file.
251 * config/loongarch/target.h: New file.
252
542c60c4
GA
2532022-08-31 Martin Liska <mliska@suse.cz>
254
255 * configure: Regenerate.
256
2572022-08-31 Martin Liska <mliska@suse.cz>
258
259 * configure: Regenerate.
260
b168441c
GA
2612022-06-02 David Malcolm <dmalcolm@redhat.com>
262
263 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
264
682ede39
GA
2652022-02-03 David Seifert <soap@gentoo.org>
266 Jakub Jelinek <jakub@redhat.com>
267
268 * configure.ac: Support --disable-werror.
269 * configure: Regenerate.
270
1bb52662
GA
2712022-01-31 Martin Liska <mliska@suse.cz>
272
273 * acinclude.m4: Detect *_ld_is_mold and use it.
274 * configure: Regenerate.
275
a4ae8c37
GA
2762022-01-03 Jakub Jelinek <jakub@redhat.com>
277
278 * libitm.texi: Bump @copying's copyright year.
279
f4ed2e3a
GA
2802021-11-26 Iain Sandoe <iain@sandoe.co.uk>
281
282 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
283 target does not support HAVE_ELF_STYLE_WEAKREF then do not
284 try to test the __cxa_get_globals against NULL.
285
688359a2
GA
2862021-06-17 Jonathan Wakely <jwakely@redhat.com>
287
288 PR libstdc++/91488
289 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
290
2f7f0d32
GA
2912021-01-15 Jakub Jelinek <jakub@redhat.com>
292
293 PR target/70454
294 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
295 be added through preprocessor check on
296 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
297
651b8a50
GA
2982021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
299
300 * configure: Re-generate.
301
b6dd195a
GA
3022021-01-01 Jakub Jelinek <jakub@redhat.com>
303
304 * libitm.texi: Bump @copying's copyright year.
305
6e1edf48
GA
3062020-12-05 Iain Sandoe <iain@sandoe.co.uk>
307
308 PR target/97865
309 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
310 * configure: Regenerate.
311
a9625c50
GA
3122020-11-29 John David Anglin <danglin@gcc.gnu.org>
313
314 * configure: Regenerate.
315
6c2675fa
GA
3162020-10-01 Alan Modra <amodra@gmail.com>
317
318 * config/powerpc/sjlj.S: Support __PCREL__ code.
319
53256ee3
GA
3202020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
321
322 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
323
3f8ca9cb
GA
3242020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
325
326 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
327 and add BTI c to function entries.
328
3292020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
330
331 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
332
885ef72f
GA
3332020-05-29 H.J. Lu <hjl.tools@gmail.com>
334
335 PR bootstrap/95413
336 * configure: Regenerated.
337
4c1a5d8b
L
3382020-05-15 H.J. Lu <hongjiu.lu@intel.com>
339
340 PR bootstrap/95147
341 * configure: Regenerated.
342
8d286dd1
L
3432020-05-14 H.J. Lu <hongjiu.lu@intel.com>
344
345 * configure: Regenerated.
346
f0de5d83
NS
3472020-05-12 Nathan Sidwell <nathan@acm.org>
348
349 Fix throw specifiers on interface.
350 * libitm/libitm.h (_ITM_NOTHROW): Define.
351 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
352 (_ITM_cxa_begin_catch): Use it.
353 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
354 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
355 __cxa_get_globals.
356 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
357 (_ITM_cxa_begin_catch): Likewise.
358
1136ba01
NS
3592020-05-05 Nathan Sidwell <nathan@acm.org>
360
361 * testsuite/lib/libitm.exp (libitm_init): Add
362 -fdiagnostics-color=never to options.
363
02ce382c
SL
3642020-02-12 Sandra Loosemore <sandra@codesourcery.com>
365
366 PR libstdc++/79193
367 PR libstdc++/88999
368
369 * configure: Regenerated.
370
e8e66971
MR
3712020-01-24 Maciej W. Rozycki <macro@wdc.com>
372
373 * configure.ac: Handle `--with-toolexeclibdir='.
374 * Makefile.in: Regenerate.
375 * aclocal.m4: Regenerate.
376 * configure: Regenerate.
377 * testsuite/Makefile.in: Regenerate.
378
7e7065b9
JJ
3792020-01-01 Jakub Jelinek <jakub@redhat.com>
380
8d9254fc
JJ
381 Update copyright years.
382
7e7065b9
JJ
383 * libitm.texi: Bump @copying's copyright year.
384
00484365
SN
3852019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
386
387 PR libgomp/91938
388 * configure.tgt: Avoid IE tls on *-*-musl*.
389
e9085da5
MR
3902019-09-27 Maciej W. Rozycki <macro@wdc.com>
391
392 * configure: Regenerate.
393
b1e21e5a
CL
3942019-09-10 Christophe Lyon <christophe.lyon@st.com>
395
a360a359
CL
396 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
397
3982019-09-10 Christophe Lyon <christophe.lyon@st.com>
399
400 * configure.tgt: Handle *-*-uclinux*.
401 * configure: Regenerate.
b1e21e5a 402
3c086f8d
FW
4032019-09-06 Florian Weimer <fweimer@redhat.com>
404
405 * configure: Regenerate.
406
c6c2d1bc
CLT
4072019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
408
409 PR other/79543
410 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
411 scanning to conform to the GNU Coding Standards.
412 * configure: Regenerate.
413
061a799b
JJ
4142019-05-03 Jakub Jelinek <jakub@redhat.com>
415
416 * Makefile.am (finclude): Remove.
417 * Makefile.in: Regenerated.
418
a5544970
JJ
4192019-01-01 Jakub Jelinek <jakub@redhat.com>
420
421 Update copyright years.
422
3f27508c
JJ
4232019-01-01 Jakub Jelinek <jakub@redhat.com>
424
425 * libitm.texi: Bump @copying's copyright year.
426
784417d1
JJ
4272018-12-16 Jakub Jelinek <jakub@redhat.com>
428
429 PR c++/88482
430 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
431 void * to void (*) (void *).
432 (_ITM_cxa_throw): Likewise.
433 * libitm.h (_ITM_cxa_throw): Likewise.
434 * libitm.texi (_ITM_cxa_throw): Likewise.
435
d1573fe0
PB
4362018-12-13 Peter Bergner <bergner@linux.ibm.com>
437
438 * config/powerpc/target.h (htm_available): Add support for
439 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
440
22e05272
JM
4412018-10-31 Joseph Myers <joseph@codesourcery.com>
442
443 PR bootstrap/82856
444 * Makefile.am: Include multilib.am.
445 (AUTOMAKE_OPTIONS): Add info-in-builddir.
446 (CLEANFILES): Remove libitm.info.
447 * configure.ac: Remove AC_PREREQ.
448 * testsuite/Makefile.am (RUNTEST): Remove quotes.
449 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
450 Regenerate.
451
1f82422a
NK
4522018-10-30 Nicholas Krause <xerofoify@gmail.com>
453
a2e0398a 454 PR libitm/86293
1f82422a
NK
455 * method-serial.cc: Mark varible as potentially unused
456 to silence warning.
457
f6a9dfd3
ST
4582018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
459
460 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
461 absolute relocation in a shared library.
462
97cad511
L
4632018-06-12 H.J. Lu <hongjiu.lu@intel.com>
464
465 PR libitm/85988
466 * config/linux/x86/tls.h (SEG_READ): Use the offset of
467 __private_tm as base.
468 (SEG_WRITE): Likewise.
469 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
470 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
471 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
472 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
473 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
474
b46b715d
JM
4752018-05-17 Jason Merrill <jason@redhat.com>
476
477 * beginend.cc (save): Disable -Werror=deprecated-copy.
478
9220b511
TV
4792018-05-02 Tom de Vries <tom@codesourcery.com>
480
481 PR testsuite/85106
482 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
483
6c3c13c1
TV
4842018-05-02 Tom de Vries <tom@codesourcery.com>
485
486 PR testsuite/85106
487 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
488
ffc2fc06
L
4892018-04-24 H.J. Lu <hongjiu.lu@intel.com>
490
491 * config/x86/sjlj.S (_ITM_beginTransaction): Add
492 (__CET__ & 2) != 0 check for shadow stack.
493 (GTM_longjmp): Likewise.
494
7b47ecf2
L
4952018-04-24 H.J. Lu <hongjiu.lu@intel.com>
496
497 * configure: Regenerated.
498
0ef9f21d
L
4992018-04-23 H.J. Lu <hongjiu.lu@intel.com>
500
501 PR target/85489
502 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
503
a0e1df88
JJ
5042018-04-19 Jakub Jelinek <jakub@redhat.com>
505
506 * configure: Regenerated.
507
001ddaa8
DM
5082018-04-18 David Malcolm <dmalcolm@redhat.com>
509
510 PR jit/85384
511 * configure: Regenerate.
512
14e335ed
IT
5132018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
514
515 PR target/84148
516 * configure: Regenerate.
517
65e6aea3
JJ
5182018-01-03 Jakub Jelinek <jakub@redhat.com>
519
85ec4feb
JJ
520 Update copyright years.
521
65e6aea3
JJ
522 * libitm.texi: Bump @copying's copyright year.
523
c51081fc
IT
5242017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
525
526 * Makefile.in: Regenerate.
527 * acinclude.m4: Add enable.m4 and cet.m4.
528 * config/x86/sjlj.S: Include cet.h.
529 (_ITM_beginTransaction): Add _CET_ENDBR.
530 Save Shadow Stack pointer.
531 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
532 * config/x86/target.h (struct gtm_jmpbuf):
533 Add new field for Shadow Stack pointer.
534 * configure: Regenerate.
535 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
536 * configure.ac: Update libtool_VERSION for x86.
537 * testsuite/Makefile.in: Regenerate.
538
cc03e55b
IT
5392017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
540
541 * libitm/config/x86/target.h: Add new field (ssp).
542 * libitm/config/x86/sjlj.S: Change offsets.
543
62ffe920
RO
5442017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
545
546 * testsuite/lib/libitm.exp: Load scanlang.exp.
547
5764ee3c
JW
5482017-04-03 Jonathan Wakely <jwakely@redhat.com>
549
550 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
551
73aa401e
JJ
5522017-01-21 Jakub Jelinek <jakub@redhat.com>
553
554 PR other/79046
555 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
556 of cat to get version from BASE-VER file.
557 * testsuite/Makefile.in: Regenerated.
558
16a34ca6
UB
5592017-01-19 Uros Bizjak <ubizjak@gmail.com>
560
561 * config/x86/target.h (htm_available): Determine vendor from
562 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
563
f8a94453
TR
5642017-01-18 Torvald Riegel <triegel@redhat.com>
565
566 * config/x86/target.h (htm_available): Add check for some processors
567 on which TSX is broken.
568
3c36aa6b
JJ
5692017-01-17 Jakub Jelinek <jakub@redhat.com>
570
571 PR other/79046
572 * configure.ac: Add GCC_BASE_VER.
573 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
574 get version from BASE-VER file.
575 * testsuite/Makefile.in: Regenerated.
576 * configure: Regenerated.
577 * Makefile.in: Regenerated.
578
8f56cb51
AM
5792017-01-04 Alan Modra <amodra@gmail.com>
580
581 * Makefile.in: Regenerate.
582 * testsuite/Makefile.in: Regenerate.
583
c1a9c369
JJ
5842017-01-01 Jakub Jelinek <jakub@redhat.com>
585
cbe34bb5
JJ
586 Update copyright years.
587
c1a9c369
JJ
588 * libitm.texi: Bump @copying's copyright year.
589
66dbcf2d
RO
5902016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
591
592 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
593 * aclocal.m4: Regenerate.
594 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
595 LIBITM_CHECK_LINKER_HWCAP.
596
84c1b9d3
MK
5972016-11-15 Matthias Klose <doko@ubuntu.com>
598
599 * configure: Regenerate.
600
831698b8
L
6012016-04-19 H.J. Lu <hongjiu.lu@intel.com>
602
603 PR libitm/70456
604 * util.cc (xmalloc): Use posix_memalign to allocate memory on
605 on cache line if requested.
606
edcbda7e
DV
6072016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
608
609 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
610 function attribute to disable floating point in begin_transaction() on
611 S/390.
612 * beginend.cc (begin_transaction): Use
613 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
614
6041f70a
TR
6152016-01-22 Torvald Riegel <triegel@redhat.com>
616
617 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
618 boundary.
619 (htm_fastpath): Remove.
620 (gtm_thread::begin_transaction): Fix HTM fastpath.
621 (_ITM_commitTransaction): Adapt.
622 (_ITM_commitTransactionEH): Adapt.
623 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
624 and accessors.
625 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
626 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
627 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
628 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
629 * libitm/method-serial.cc (htm_mg): Adapt.
630 (gtm_thread::serialirr_mode): Adapt.
631 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
632
0b96ffdb
TR
6332016-01-21 Torvald Riegel <triegel@redhat.com>
634
635 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
636 or AIX.
637
b1de98e3
RH
6382016-01-19 Richard Henderson <rth@redhat.com>
639
640 PR bootstrap/69343
641 PR bootstrap/69339
642 Revert:
643 2016-01-13 Richard Henderson <rth@redhat.com>
644
645 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
646 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
647 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
648 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
649 * configure.ac (ARCH_AARCH64): New conditional.
650 (ARCH_PPC, ARCH_S390): Likewise.
651 * Makefile.in, configure: Rebuild.
652
653 * libitm.h (_ITM_TYPE_M128): Always define.
654 * vect64.cc: Split ...
655 * vect128.cc: ... out of...
656 * config/x86/x86_sse.cc: ... here.
657 * config/arm/neon.cc: New file.
658
f57fc960
TR
6592016-01-19 Torvald Riegel <triegel@redhat.com>
660
661 * local_type_traits: Remove file.
662 * libitm_i.h: Don't include it anymore.
663 (sized_integral): Remove.
664
d2653984
TR
6652016-01-16 Torvald Riegel <triegel@redhat.com>
666
667 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
668 safety.
669 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
670 * libitm/testsuite/libitm.c/priv-1.c: New.
671
a04d5fc9
TR
6722015-01-15 Torvald Riegel <triegel@redhat.com>
673
674 testsuite/libitm.c++/libstdc++-safeexc.C: New.
675
e89137ce
TR
6762016-01-13 Torvald Riegel <triegel@redhat.com>
677
678 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
679 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
680 (gtm_rwlock::write_unlock): Likewise.
681
4c868789
RH
6822016-01-13 Richard Henderson <rth@redhat.com>
683
684 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
685 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
686 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
687 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
688 * configure.ac (ARCH_AARCH64): New conditional.
689 (ARCH_PPC, ARCH_S390): Likewise.
690 * Makefile.in, configure: Rebuild.
691
692 * libitm.h (_ITM_TYPE_M128): Always define.
693 * vect64.cc: Split ...
694 * vect128.cc: ... out of...
695 * config/x86/x86_sse.cc: ... here.
696 * config/arm/neon.cc: New file.
697
629e4729
TR
6982016-01-13 Torvald Riegel <triegel@redhat.com>
699
700 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
701 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
702 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
703 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
704 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
705 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
706 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
707 (serialirr_dispatch::snapshot_most_recent): New.
708 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
709
0d1ed412
TR
7102016-01-12 Torvald Riegel <triegel@redhat.com>
711
712 * libitm_i.h (gtm_mask_stack): Remove.
713 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
714 * stmlock.h: Remove file.
715 * config/alpha/cacheline.h: Likewise.
716 * config/generic/cacheline.h: Likewise.
717 * config/powerpc/cacheline.h: Likewise.
718 * config/sparc/cacheline.h: Likewise.
719 * config/x86/cacheline.h: Likewise.
720
21fa2a29
JJ
7212016-01-04 Jakub Jelinek <jakub@redhat.com>
722
818ab71a
JJ
723 Update copyright years.
724
21fa2a29
JJ
725 * libitm.texi: Bump @copying's copyright year.
726
e7f7330f
TR
7272015-11-26 Torvald Riegel <triegel@redhat.com>
728
729 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
730 (ml_wt_dispatch::pre_write): Adapt.
731 (ml_wt_dispatch::pre_load): Likewise.
732
4f8a3b87
TR
7332015-11-22 Torvald Riegel <triegel@redhat.com>
734
735 * libitm_i.h (gtm_alloc_action): Remove union.
736 * testsuite/libitm.c/alloc-1.c: New.
737
258c1d07
TR
7382015-11-19 Torvald Riegel <triegel@redhat.com>
739
740 * testsuite/libitm.c++/eh-5.C: New.
741 * libitm.h (_ITM_cxa_free_exception): New.
742 * libitm.map (_ITM_cxa_free_exception): Add it.
743 * libitm.texi: Update ABI docs.
744 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
745 (gtm_transaction_cp::cxa_uncaught_count): Add.
746 (gtm_thread::cxa_unthrown): Remove.
747 (gtm_thread::cxa_uncaught_count_ptr): Add.
748 (gtm_thread::cxa_uncaught_count): Add.
749 (gtm_thread::drop_references_allocations): Rename to...
750 (gtm_thread::discard_allocation): ... this and adapt.
751 (gtm_thread::init_cpp_exceptions): New.
752 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
753 (gtm_thread::begin_transaction): Likewise.
754 (gtm_transaction_cp::save): Likewise.
755 (gtm_thread::trycommit): Likewise.
756 * eh_cpp.cc: Add overview comments.
757 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
758 (free_any_exception, _ITM_cxa_free_exception): New.
759 (gtm_thread::init_cpp_exceptions): Define.
760 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
761 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
762 (gtm_thread::revert_cpp_exceptions): Likewise.
763
c518678b
TR
7642015-11-09 Torvald Riegel <triegel@redhat.com>
765
766 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
767 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
768 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
769 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
770 (gtm_thread::forget_allocations): New overload with size_t argument.
771 * alloc.c (gtm_thread::forget_allocation): Define new overload and
772 adapt existing one.
773 (gtm_thread::record_allocation): Adapt.
774 (gtm_thread::commit_allocations_1): Adapt.
775 (gtm_thread::commit_allocations_2): Adapt.
776 * testsuite/libitm.c++/newdelete.C: New.
777
1e44e857
DJ
7782015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
779 Joseph Myers <joseph@codesourcery.com>
780 Mark Shinwell <shinwell@codesourcery.com>
781 Andrew Stubbs <ams@codesourcery.com>
782 Rich Felker <dalias@libc.org>
783
784 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
785 GTM_begin_transaction for compatibility with FDPIC.
786
9e531d37
DM
7872015-10-09 David Malcolm <dmalcolm@redhat.com>
788
789 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
790 using load_gcc_lib.
791
c629c246
GFM
7922015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
793
794 PR libitm/61164
795 * local_atomic (__always_inline): Rename to...
796 (__libitm_always_inline): ... this.
797
cd5a9a74
CSLL
7982015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
799
800 PR target/52482
801 * config/powerpc/sjlj.S: Port to Xcode 2.5.
802
ea023bcf
UB
8032015-05-27 Uros Bizjak <ubizjak@gmail.com>
804
d778b5a0
UB
805 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
806 operands "op" and "val" to int.
807
8082015-05-27 Uros Bizjak <ubizjak@gmail.com>
809
810 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
811 "op" and "val" to int.
812
8132015-05-27 Uros Bizjak <ubizjak@gmail.com>
814
815 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
816 "op" and "val" to int.
817
8182015-05-27 Uros Bizjak <ubizjak@gmail.com>
819
820 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
821 Declare as static int.
822 (FUTEX_PRIVATE_FLAG): Remove L suffix.
823 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
824
8252015-05-27 Uros Bizjak <ubizjak@gmail.com>
826
827 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
828 sys_futex0 function.
ea023bcf 829
503902f9
MH
8302015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
831
832 * Makefile.in: Regenerated with automake-1.11.6.
833 * aclocal.m4: Likewise.
834 * configure: Likewise.
835 * testsuite/Makefile.in: Likewise.
836
96ce40cb
GR
8372015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
838
839 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
840 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
841
3a07b160
L
8422015-01-15 H.J. Lu <hongjiu.lu@intel.com>
843
844 PR libitm/64360
845 * libitm.c/stackundo.c (test2): Make it static.
846 (test1): Likewise.
847
5624e564
JJ
8482015-01-05 Jakub Jelinek <jakub@redhat.com>
849
850 Update copyright years.
851
b67cd4e3
JJ
8522015-01-05 Jakub Jelinek <jakub@redhat.com>
853
854 * libitm.texi: Bump @copying's copyright year.
855
69aef6dc
KT
8562014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
857
858 * testsuite/lib/libitm.exp: Load target-utils.exp.
859 Move load of target-supports.exp earlier.
860
68bc9270
UB
8612014-12-03 Uros Bizjak <ubizjak@gmail.com>
862
863 * configure.tgt (x86_64): Tune -m32 multilib to generic.
864
a699d672
L
8652014-11-21 H.J. Lu <hongjiu.lu@intel.com>
866
867 PR bootstrap/63784
868 * configure: Regenerated.
869
ebf6d33b
FXC
8702014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
871
872 PR target/63610
873 * configure: Regenerate.
874
99183741
MP
8752014-10-06 Marek Polacek <polacek@redhat.com>
876
877 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
878 * testsuite/libitm.c/memset-1.c: Likewise.
879
b6334cf4
RH
8802014-07-24 Richard Henderson <rth@redhat.com>
881
882 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
883 addressing mode in epilogue.
884
3c698bf0
RO
8852014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
886
887 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
888 -mclear-hwcap instead.
889 * configure: Regenerate.
890 * clearcap.map: Remove.
891
dbed5a9b
JM
8922014-05-21 John Marino <gnugcc@marino.st>
893
894 * configure.tgt (*-*-dragonfly*): New target.
895
b17f08dd
RH
8962014-05-19 Richard Henderson <rth@redhat.com>
897
898 * config/aarch64/sjlj.S: New file.
899 * config/aarch64/target.h: New file.
900 * configure.tgt: Enable aarch64.
901
5e1f630a
RO
9022014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
903
904 * config/generic/asmcfi.h: Also check for
905 __GCC_HAVE_DWARF2_CFI_ASM.
906
84c2f4b0
RH
9072013-04-02 Richard Henderson <rth@redhat.com>
908
909 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
910 * config/arm/target.h, config/sh/target.h: Likewise.
911 * config/sparc/target.h, config/x86/target.h: Likewise.
912
7cc51d64
JJ
9132014-03-26 Jakub Jelinek <jakub@redhat.com>
914
915 * config/linux/futex_bits.h: Include errno.h.
916 (sys_futex0): If syscall returns -1, return -errno rather than
917 -1.
918
c288ec8f
JM
9192014-03-26 Joseph Myers <joseph@codesourcery.com>
920
921 * libitm.texi (Index): Rename to Library Index.
922
ed100f5d
L
9232014-01-13 H.J. Lu <hongjiu.lu@intel.com>
924
925 PR libitm/53113
926 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
927 (x86_avx.lo): Append -mavx to CXXFLAGS.
928 * Makefile.in: Regenerate.
929
f93608e6
RS
9302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
931
932 Update copyright years
933
98db73df
TB
9342014-01-02 Tobias Burnus <burnus@net-b.de>
935
936 * libitm.texi: Bump @copying's copyright year.
937
b54214fe
UW
9382013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
939
940 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
941 (FUNC): Define ELFv2 variant.
942 (END): Likewise.
943 (HIDDEN): Likewise.
944 (CALL): Likewise.
945 (BASE): Likewise.
946 (LR_SAVE): Likewise.
947
3cbe17f7
AM
9482013-09-20 Alan Modra <amodra@gmail.com>
949
950 * configure: Regenerate.
951
6fb471d8
TR
9522013-08-30 Torvald Riegel <triegel@redhat.com>
953
954 * config/posix/rwlock.cc: Fix initialization order.
955
bec9ec3f
TR
9562013-08-30 Torvald Riegel <triegel@redhat.com>
957
958 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
959 (htm_fastpath): Assign an asm name.
960 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
961 HTM fast paths.
962 (_ITM_actions): Likewise.
963 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
964 x86_64.
965 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
966 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
967 field to the start of the structure.
968 * config/linux/rwlock.h (gtm_rwlock): Update comments.
969 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
970 handling for custom HTM fast paths.
971
1869217f
AK
9722013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
973 Revert:
974 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
975
976 * configure.tgt: Add -msoft-float to XCFLAGS.
977
d62d5152
AK
9782013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
979
980 * configure.tgt: Add -msoft-float to XCFLAGS.
981
aaaffb2a
AK
9822013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
983
984 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
985 (htm_transaction_active): Enable zEC12 instructions in the
986 assembler.
987 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
988
167f68ed
AK
9892013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
990
991 * acinclude.m4: Add htm asm check for s390.
992 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
993 * configure: Regenerate.
994 * config/s390/target.h: Remove __HTM__ check.
995 (htm_available): Call getauxval to get hwcaps and check whether
996 HTM is available or not.
997
0258b6e4
PB
9982013-07-15 Peter Bergner <bergner@vnet.ibm.com>
999
1000 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1001 * configure.ac: Use it.
1002 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1003 (AC_CHECK_FUNCS): Check for getauxval.
1004 * config.h.in, configure: Rebuild.
1005 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1006 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1007 (USE_HTM_FASTPATH): Define.
1008 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1009 _HTM_RETRIES) New macros.
1010 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1011 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1012
5a3fe9b6
AK
10132013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1014
1015 * config/s390/target.h: Include htmintrin.h.
1016 (_HTM_ITM_RETRIES): New macro definition.
1017 (htm_available, htm_init, htm_begin, htm_begin_success)
1018 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1019
6c84d576
IS
10202013-06-20 Iain Sandoe <iain@codesourcery.com>
1021 Cesar Philippidis <cesar@codesourcery.com>
1022
1023 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1024 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1025 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1026 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1027
480c696b
TR
10282013-06-20 Torvald Riegel <triegel@redhat.com>
1029
1030 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1031 (_ITM_getTransactionId): Same.
1032 * config/x86/target.h (htm_transaction_active): New.
1033
b1db457b
TR
10342013-06-20 Torvald Riegel <triegel@redhat.com>
1035
1036 PR libitm/57643
1037 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1038 the HTM fastpath.
1039
51249377
GP
10402013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
1041
1042 PR bootstrap/56714
1043 * local_atomic (__always_inline): Always define our version.
1044 (__calculate_memory_order): Mark inline.
1045 (atomic_thread_fence): Ditto.
1046 (atomic_signal_fence): Ditto.
1047 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1048 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1049 (atomic_bool::atomic_flag_test_and_set): Ditto.
1050 (atomic_bool::atomic_flag_clear): Ditto.
1051
f818478b
JJ
10522013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1053
1054 * config/s390/sjlj.S: New file.
1055 * config/s390/target.h: New file.
1056 * configure.tgt: Set options for S/390.
1057
ab4425be
AK
10582013-03-23 Andi Kleen <ak@linux.intel.com>
1059
1060 * local_atomic (__always_inline): Add.
1061 (__calculate_memory_order, atomic_thread_fence,
3d3b561f
ML
1062 atomic_signal_fence, test_and_set, clear, store, load,
1063 exchange, compare_exchange_weak, compare_exchange_strong,
1064 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
ab4425be
AK
1065 Add __always_inline to force inlining.
1066
6c59ffd1
IS
10672013-02-11 Iain Sandoe <iain@codesourcery.com>
1068 Jack Howarth <howarth@bromo.med.uc.edu>
1069 Patrick Marlier <patrick.marlier@gmail.com>
1070
1071 PR libitm/55693
1072 * alloc_cpp.cc: Enable function declarations on darwin.
1073 * eh_cpp.cc: Likewise.
1074
75f9527c
RS
10752013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1076
1077 Update copyright years.
1078
64fbcc74
TR
10792012-11-09 Torvald Riegel <triegel@redhat.com>
1080
1081 * beginend.cc (htm_fastpath): New.
1082 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1083 _ITM_commitTransactionEH): Add HTM fastpath handling.
1084 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1085 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1086 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1087 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1088 * configure.tgt: Add -mrtm to XCFLAGS.
1089 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1090 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1091 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1092 * retry.cc (parse_default_method): Add HTM method parsing.
1093 (gtm_thread::number_of_threads_changed): Use HTM by default if
1094 available.
1095
b9efc877
TS
10962012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1097
1098 * configure: Regenerate.
1099
07d3b5c8
RH
11002012-10-31 Richard Henderson <rth@redhat.com>
1101
1102 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1103 * configure.ac: Use it.
1104 * config.h.in, configure: Rebuild.
1105 * testsuite/Makefile.in: Rebuild.
1106
eb00e959
TR
11072012-10-24 Torvald Riegel <triegel@redhat.com>
1108
1109 * libitm.texi: Clarify ABI requirements for data-logging functions.
1110
b679c813
TR
11112012-10-24 Torvald Riegel <triegel@redhat.com>
1112
1113 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1114 it requires serial mode instead of assuming that for certain
1115 dispatchs.
1116 * dispatch.h (abi_dispatch::requires_serial): New.
1117 (abi_dispatch::abi_dispatch): Adapt.
1118 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1119 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1120 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1121 serial_dispatch::serial_dispatch,
1122 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1123
0c609a21
UB
11242012-10-02 Uros Bizjak <ubizjak@gmail.com>
1125
1126 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1127 and ia32 declarations some more.
1128 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1129
c0758df9
JJ
11302012-09-20 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR other/43620
1133 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1134 * configure: Regenerate.
1135 * Makefile.in: Regenerate.
1136
690c45b8
DE
11372012-09-14 David Edelsohn <dje.gcc@gmail.com>
1138
1139 * configure: Regenerated.
1140
68a12ef3
UB
11412012-07-31 Uros Bizjak <ubizjak@gmail.com>
1142
1143 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1144
f2f9a097
PM
11452012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
1146
1147 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1148
e6d5f8c9
L
11492012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1150
1151 * configure: Regenerated.
1152
0100e3b3
L
11532012-04-04 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 PR libitm/52854
1156 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1157 for x86-64.
1158
2f6935f4
TG
11592012-04-03 Tristan Gingold <gingold@adacore.com>
1160
1161 * configure: Regenerate.
1162
b9c23a61
L
11632012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1164
1165 PR bootstrap/52812
1166 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1167
6a26a74d
BRF
11682012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1169
1170 * testsuite/lib/libitm.exp: load fortran-modules.exp
1171
b24513a1
RO
11722012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1173
1174 * configure.tgt (*-*-irix6*): Remove.
1175
0d23faac
TR
11762012-03-13 Torvald Riegel <triegel@redhat.com>
1177
1178 PR libitm/52526
1179 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1180 wake-up.
1181
5c30094f
RO
11822012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183
1184 * configure.tgt (*-*-osf*): Remove.
1185 * configure: Regenerate.
1186
d28b0b08
TR
11872012-03-05 Torvald Riegel <triegel@redhat.com>
1188
1189 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1190 memtransfer/memset if size isn't larger than zero.
1191
034209bc
TR
11922012-03-02 Torvald Riegel <triegel@redhat.com>
1193
1194 * libitm.texi: Link to specification and add a usage example.
1195
bc8da6ba
TR
11962012-02-24 Torvald Riegel <triegel@redhat.com>
1197
1198 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1199 default dispatch for more than 1 thread to ml_wt.
1200
63b08143
TR
12012012-02-20 Torvald Riegel <triegel@redhat.com>
1202
1203 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1204
4c9bd6ac
TR
12052012-02-20 Torvald Riegel <triegel@redhat.com>
1206
1207 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1208
651ff415
TR
12092012-02-20 Torvald Riegel <triegel@redhat.com>
1210
1211 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1212 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1213 (gl_wt_dispatch.rollback): Same.
1214
efee0113
TR
12152012-02-20 Torvald Riegel <triegel@redhat.com>
1216
1217 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1218
33a03827
TR
12192012-02-20 Torvald Riegel <triegel@redhat.com>
1220
1221 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1222 for RfW src. Optimize number of calls to gtm_thr.
1223
a19db3f2
TR
12242012-02-20 Torvald Riegel <triegel@redhat.com>
1225
1226 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1227 acquisition to ...
1228 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1229 (default_dispatch): Make atomic.
1230 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1231 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1232 use decide_begin_dispatch() if default_dispatch might have changed.
1233 (GTM::gtm_thread::number_of_threads_changed): Initialize
1234 default_dispatch here.
1235
e948a1fb
IS
12362012-02-15 Iain Sandoe <iains@gcc.gnu.org>
1237 Patrick Marlier <patrick.marlier@gmail.com>
1238
1239 PR libitm/52220
1240 * alloc_cpp.cc: No dummy definitions for darwin.
1241 * eh_cpp.cc: Likewise.
1242
72824d5e
RH
12432012-02-14 Richard Henderson <rth@redhat.com>
1244
1245 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1246
1f319dba
UB
12472012-02-14 Uros Bizjak <ubizjak@gmail.com>
1248
1249 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1250
31772c95
TR
12512012-02-14 Torvald Riegel <triegel@redhat.com>
1252
1253 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1254 (GTM::gtm_thread): Add read and write logs.
1255 (GTM::dispatch_ml_wt): Declare.
1256 * retry.cc (parse_default_method): Support ml_wt.
1257 * method-ml.cc: New file.
1258 * Makefile.am: Add method-ml.cc.
1259 * Makefile.in: Regenerate.
1260
5b9cf5d2
TR
12612012-02-14 Torvald Riegel <triegel@redhat.com>
1262
1263 * dispatch.h (GTM::abi_dispatch::supports): New.
1264 (GTM::method_group::reinit): New.
1265 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1266 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1267 supports the current situation.
1268
7d33bcb7
TR
12692012-02-14 Torvald Riegel <triegel@redhat.com>
1270
1271 * util.cc (GTM::xcalloc): New.
1272 * common.h (GTM::xcalloc): Declare.
1273
62513f7b
EB
12742012-02-14 Eric Botcazou <ebotcazou@adacore.com>
1275
1276 * config/sparc/target.h (cpu_relax): Read from CC register.
1277 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1278
12792012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
1280
1281 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1282
f3f5e3c3
EB
12832012-02-13 Eric Botcazou <ebotcazou@adacore.com>
1284
62513f7b 1285 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
1286 * config/sparc/cacheline.h: New file.
1287 * config/sparc/target.h: Likewise.
1288 * config/sparc/sjlj.S: Likewise.
1289 * config/linux/sparc/futex_bits.h: Likewise.
1290
12912012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
1292
1293 * configure.ac (link_itm): Fix comment.
1294 * configure: Regenerate.
1295 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1296
681355e3
RO
12972012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1298
fc985d2f 1299 PR libitm/51822
62513f7b 1300 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
1301 Correct libgomp references.
1302
999bcff5
TR
13032012-01-24 Torvald Riegel <triegel@redhat.com>
1304
1305 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1306 wake-up.
1307
9848887a
UB
13082012-01-24 Uros Bizjak <ubizjak@gmail.com>
1309
1310 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1311 end of structure.
1312 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1313 offset values. Do not copy return address. Decrement stack
1314 by 56 bytes only.
1315 (GTM_longjump) [__x86_64__]: Update offset values.
1316
5752c591
UB
13172012-01-23 Uros Bizjak <ubizjak@gmail.com>
1318
1319 PR libitm/51830
1320 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1321 the first function argument to %eax.
1322
61e72ca4
RO
13232012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1324
1325 * libitm.h (_ITM_getThreadnum): Remove.
1326 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1327
9ce91011
RO
13282012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1329
1330 * clearcap.map: New file.
1331 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1332 * configure.ac: Call it.
1333 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1334 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1335 * configure: Regenerate.
1336 * Makefile.in: Regenerate.
1337 * testsuite/Makefile.in: Regenerate.
1338
3b4f05ec
RO
13392012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1340
1341 PR libitm/51173
1342 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1343 include, exclude options.
1344
aab74ee9
TR
13452012-01-14 Torvald Riegel <triegel@redhat.com>
1346
1347 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1348 rolling back.
1349 * containers.h (GTM::vector::set_size): New.
1350
07b6642b
TR
13512012-01-14 Torvald Riegel <triegel@redhat.com>
1352
1353 PR libitm/51855
1354 * config/generic/tls.h (GTM::mask_stack_top): New.
1355 (GTM::mask_stack_bottom): Declare.
1356 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1357 * local.cc (gtm_undolog::rollback): Filter out any updates that
1358 overlap the libitm stack. Add current transaction as parameter.
1359 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1360 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1361 * testsuite/libitm.c/stackundo.c: New test.
1362
8377e5e5
RH
13632012-01-10 Richard Henderson <rth@redhat.com>
1364
1365 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1366 * eh_cpp.cc (_Unwind_DeleteException): Define for
1367 !HAVE_ELF_STYLE_WEAKREF.
1368
11f30bb0
TR
13692012-01-08 Torvald Riegel <triegel@redhat.com>
1370
1371 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1372 (GTM::gtm_thread::drop_references_undolog): Remove.
1373 (GTM::gtm_thread::commit_undolog,
1374 GTM::gtm_thread::rollback_undolog): Move to ...
1375 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1376 (GTM::gtm_undolog_entry): Remove.
1377 (GTM::gtm_thread): Adapt.
1378 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1379 (GTM::gtm_thread::trycommit): Adapt.
1380 * method-serial.cc (serial_dispatch::log): Adapt.
1381 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1382 (gl_wt_dispatch::store): Fix likely/unlikely.
1383 * containers.h (GTM::vector::resize): Add additional_capacity
1384 parameter and handle it.
1385 (GTM::vector::resize_noinline): New/adapt.
1386 (GTM::vector::push): New.
1387
a32e5e93
RH
13882012-01-06 Richard Henderson <rth@redhat.com>
1389
1390 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1391 * config/linux/powerpc/futex_bits.h: New file.
1392 * config/powerpc/cacheline.h: New file.
1393 * config/powerpc/sjlj.S: New file.
1394 * config/powerpc/target.h: New file.
1395 * config/generic/asmcfi.h (cfi_offset): New.
1396 (cfi_restore, cfi_undefined): New.
1397
1f53a8e6
AH
13982012-01-05 Aldy Hernandez <aldyh@redhat.com>
1399
1400 PR other/51171
1401 * testsuite/libitm.c/reentrant.c: Remove xfail.
1402 (thread): Pass x to pure().
be223aaf 1403 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 1404
c898f7b8
TR
14052011-12-24 Torvald Riegel <triegel@redhat.com>
1406
1407 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1408 privatization safety if already in serial mode.
1409
610e3901
TR
14102011-12-24 Torvald Riegel <triegel@redhat.com>
1411
1412 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1413 finish_serial_upgrade parameter.
1414 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1415 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1416 Don't unset reader flag.
1417 (GTM::gtm_rwlock::write_upgrade_finish): New.
1418 * config/posix/rwlock.cc: Same.
1419 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1420 Declare.
1421 * config/posix/rwlock.h: Same.
1422 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1423 flag after commit or after rollback when restarting.
1424
799142bf
TR
14252011-12-24 Torvald Riegel <triegel@redhat.com>
1426
1427 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1428 (GTM::gtm_thread::try_commit): Changed memory order.
1429 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1430 as parameter.
1431 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1432 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1433 * config/linux/futex_bits.h (sys_futex0): Same.
1434 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1435 * config/linux/futex.h (futex_wait, futex_wake): Same.
1436 * config/linux/rwlock.h (gtm_rwlock::writers,
1437 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1438 ints.
1439 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1440 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1441 gtm_rwlock::write_unlock): Fix memory orders and fences.
1442 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1443 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1444 gtm_rwlock::write_unlock): Same.
1445 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1446 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1447 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1448 Add comments.
1449 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1450 gl_wt_dispatch::load, gl_wt_dispatch::store,
1451 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1452 orders and fences. Add comments.
1453
b0f96e35
JJ
14542011-12-21 Jakub Jelinek <jakub@redhat.com>
1455
1456 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1457 * Makefile.in: Regenerated.
1458
cc163247
KK
14592011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1460
1461 * configure.tgt: Add sh* case.
1462 * config/sh/target.h: New file.
1463 * config/sh/sjlj.S: New file.
1464 * config/linux/sh/futex_bits.h: New file.
1465
aebac0ca
RH
14662011-12-14 Richard Henderson <rth@redhat.com>
1467
1468 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1469 * config/arm/sjlj.S, config/arm/target.h: New files.
1470 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1471 (cfi_rel_offset): New.
1472 * config/linux/futex_bits.h: New file.
1473 * config/linux/futex.cc: Include futex_bits.h here...
1474 * config/linux/futex.h: ... not here.
1475 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1476 * configure.ac (ARCH_AM): New conditional.
1477 * Makefile.in, configure: Rebuild.
1478 * configure.tgt: Handle ARM.
1479
36cfbee1
RH
14802011-12-13 Richard Henderson <rth@redhat.com>
1481
5d9d05d3
RH
1482 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1483 signed/unsigned comparison werror.
1484
36cfbee1
RH
1485 * local_atomic: New file.
1486 * libitm_i.h: Include it.
1487 (gtm_thread::shared_state): Use atomic template.
1488 * beginend.cc (GTM::gtm_clock): Use atomic template.
1489 (global_tid): Use atomic template if 64-bit atomics available.
1490 (gtm_thread::gtm_thread): Update shared_state access.
1491 (gtm_thread::trycommit): Likewise.
1492 (choose_code_path): Update global_tid access.
1493 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1494 * stmlock.h (GTM::gtm_clock): Use atomic template.
1495 (gtm_get_clock, gtm_inc_clock): Update accesses.
1496 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1497 redundant __sync_synchronize after atomic shared_state access.
1498 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1499 (gtm_rwlock::write_lock_generic): Likewise.
1500 (gtm_rwlock::read_unlock): Likewise.
1501 * config/alpha/target.h (atomic_read_barrier): Remove.
1502 (atomic_write_barrier): Remove.
1503 * config/x86/target.h (atomic_read_barrier): Remove.
1504 (atomic_write_barrier): Remove.
1505
062f93f2
RH
15062011-11-30 Richard Henderson <rth@redhat.com>
1507
1508 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1509 * beginend.c (_ITM_abortTransaction): Update to match.
1510 (GTM::gtm_thread::restart): Likewise.
1511 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1512 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1513
bd8aaa86
IS
15142011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1515
1516 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1517 * Makefile.in: Regenerate.
1518
8cf36bb3
IS
15192011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1520
1521 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1522 * alloc_cpp.cc: Generate dummy functions if we don't
1523 HAVE_ELF_STYLE_WEAKREF.
1524 * eh_cpp.cc: Likewise.
1525 * configure: Regenerate.
1526 * aclocal.m4: Likewise.
1527 * config.h.in: Likewise.
1528 * Makefile.in: Likewise.
1529 * testsuite/Makefile.in: Likewise.
1530
0b41ebef
IS
15312011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1532
1533 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1534 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 1535 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
1536 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1537 in portability to non-elf targets.
8cf36bb3 1538 (GTM_longjmp): Likewise.
0b41ebef
IS
1539 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1540 where required.
1541
9c9d352a
IS
15422011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1543
1544 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1545 * testsuite/libitm.c/memset-1.c: Likewise.
1546
c6084f68
AT
15472011-11-21 Andreas Tobler <andreast@fgznet.ch>
1548
1549 * configure: Regenerate.
1550
adcd36bc
RO
15512011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1552
1553 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1554 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1555 * Makefile.am: Handle sun style versioning.
1556 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1557 * configure: Regenerate.
1558 * Makefile.in: Regenerate.
1559
59659b59
RO
15602011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 * config/generic/asmcfi.h: Fix comment.
1563 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1564 sequence without .hidden support, error for non-ELF targets.
1565 (GTM_longjmp) [__ELF__]: Only use .hidden if
1566 HAVE_ATTRIBUTE_VISIBILITY.
1567
d846e425
RO
15682011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1569
1570 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1571 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1572 Dummy functions.
1573 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1574 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1575
80713347
UB
15762011-11-16 Uros Bizjak <ubizjak@gmail.com>
1577
1578 PR bootstrap/51098
1579 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1580 * configure: Regenerate.
1581
2841f85e
L
15822011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1583
1584 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1585
8851b429
RO
15862011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1587
1588 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1589 .hidden.
1590 (.note.GNU-stack): Only use if __linux__.
1591 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1592 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1593 * testsuite/libitm.c/reentrant.c: Likewise.
1594 * testsuite/libitm.c/simple-2.c: Likewise.
1595 * testsuite/libitm.c/txrelease.c: Likewise.
1596 * testsuite/libitm.c++/static_ctor.C: Likewise.
1597
d4b17902
RH
15982011-11-10 Richard Henderson <rth@redhat.com>
1599
1600 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1601 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1602 * configure.ac (ARCH_X86_AVX): New conditional.
1603 * Makefile.in, configure: Rebuild.
1604
430616e7
RH
16052011-11-09 Richard Henderson <rth@redhat.com>
1606
1607 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1608 * configure.ac: Use it.
1609 * config.h.in, configure: Rebuild.
1610 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1611
79b1edb6
RH
16122011-11-09 Richard Henderson <rth@redhat.com>
1613
1614 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1615 * config/alpha/unaligned.h: Remove file.
1616 * config/generic/unaligned.h: Remove file.
1617 * config/x86/unaligned.h: Remove file.
1618 * config/generic/cachepage.h: Remove file.
1619 * config/posix/cachepage.cc: Remove file.
1620 * config/generic/cacheline.cc: Remove file.
1621 * config/x86/cacheline.cc: Remove file.
1622 * config/generic/cacheline.h (gtm_cacheline): Remove the
1623 store_mask, copy_mask, copy_mask_wb methods.
1624 * config/x86/cacheline.h: Likewise.
1625 * config/alpha/cacheline.h: Fall back to generic after setting size.
1626 * config/generic/tls.cc (gtm_mask_stack): Remove.
1627 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1628 (GTM_vpalignr_table): Remove.
1629 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1630 (GTM_pshift_table): Remove.
1631 * config/libitm_i.h: Don't include cachepage.h.
1632 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1633 * Makefile.in, testsuite/Makefile.in: Rebuild.
1634
4bdd090f
RH
16352011-11-09 Richard Henderson <rth@redhat.com>
1636
8ee9fac2
RH
1637 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1638 to emit branch prediction hint.
1639
9bdc6343
RH
1640 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1641 Protect .note.GNU-stack with __linux__.
1642
4bdd090f
RH
1643 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1644 * configure, aclocal.m4, config.h.in: Rebuild.
1645 * config/generic/asmcfi.h: New file.
1646 * config/x86/sjlj.S: Use it.
1647
4408b086
RH
16482011-11-08 Richard Henderson <rth@redhat.com>
1649
1650 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1651
01f3428c
RH
16522011-11-08 Richard Henderson <rth@redhat.com>
1653
3d3b05ff
RH
1654 * configure.tgt: Test correct directory for supported cpus.
1655
01f3428c
RH
1656 * configure.ac: Exit if unsupported.
1657 * configure: Rebuild.
1658 * configure.tgt: Delete boilerplate from libgomp for unsupported
1659 targets. Set UNSUPPORTED for unsupported targets.
1660
07f03cd3
RO
16612011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1662
1663 * configure.tgt: Handle i386 like i[456]86.
1664 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1665 take address.
1666 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1667 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1668
0a35513e
AH
16692011-11-05 Aldy Hernandez <aldyh@redhat.com>
1670
1671 * method-wbetl.cc: Update copyright notice.
1672 * aatree.cc: Same.
1673 * util.cc: Same.
1674 * libitm.h: Same.
1675 * memset.cc: Same.
1676 * eh_cpp.cc: Same.
1677 * barrier.tpl: Same.
1678 * useraction.cc: Same.
1679 * stmlock.h: Same.
1680 * memcpy.cc: Same.
1681 * common.h: Same.
1682 * config/generic/tls.cc: Same.
1683 * config/generic/cacheline.h: Same.
1684 * config/generic/cachepage.h: Same.
1685 * config/generic/cacheline.cc: Same.
1686 * config/generic/unaligned.h: Same.
1687 * config/x86/cacheline.h: Same.
1688 * config/x86/cacheline.cc: Same.
1689 * config/x86/unaligned.h: Same.
1690 * config/alpha/cacheline.h: Same.
1691 * config/alpha/unaligned.h: Same.
1692 * config/alpha/sjlj.S: Same.
1693 * config/posix/cachepage.cc: Same.
1694 * config/linux/futex.h: Same.
1695 * config/linux/alpha/futex_bits.h: Same.
1696
16972011-11-04 Torvald Riegel <triegel@redhat.com>
1698
1699 * libitm.texi: No cover text and invariant sections.
1700
17012011-11-03 Richard Henderson <rth@redhat.com>
1702
1703 * local_type_traits: New file.
1704 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1705
17062011-11-03 Richard Henderson <rth@redhat.com>
1707
1708 * configure.ac: Don't test for gfortran.
1709 * configure: Rebuild.
1710
1711 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1712 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1713
17142011-11-03 Aldy Hernandez <aldyh@redhat.com>
1715
1716 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1717 * testsuite/libitm.c/memset-1.c: Same.
1718 * testsuite/libitm.c/c.exp: Same.
1719 * testsuite/lib/libitm-dg.exp: Same.
1720 * testsuite/lib/libitm.exp: Same.
1721 * testsuite/libitm.c++/c++.exp: Same.
1722
17232011-11-03 Aldy Hernandez <aldyh@redhat.com>
1724
1725 * testsuite/config/default.exp: Update copyright date.
1726 * configure.ac: Add copyright info.
1727 * configure.tgt: Same.
1728
17292011-11-03 Aldy Hernandez <aldyh@redhat.com>
1730
1731 * testsuite/libitm.c/reentrant.c: XFAIL.
1732 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1733
17342011-10-29 Torvald Riegel <triegel@redhat.com>
1735
1736 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1737 handle aborts.
1738 (_ITM_abortTransaction): Handle aborts of outer transactions.
1739 * libitm_i.h: Same.
1740 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1741 * libitm.texi: Document aborts of outer transactions.
1742 * testsuite/libitm.c/cancel.c: New file.
1743
17442011-10-19 Torvald Riegel <triegel@redhat.com>
1745
1746 * testsuite/*: Change __transaction to __transaction_atomic or
1747 __transaction_relaxed.
1748
17492011-10-19 Torvald Riegel <triegel@redhat.com>
1750
1751 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1752 (gtm_thr): Same.
1753
17542011-10-19 Torvald Riegel <triegel@redhat.com>
1755
1756 * libitm_i.h: Add gl_wt dispatch.
1757 * retry.cc (parse_default_method): Same.
1758 * method-gl.cc: New file.
1759 * Makefile.am: Use method-gl.cc.
1760 * Makefile.in: Rebuild.
1761
17622011-10-19 Torvald Riegel <triegel@redhat.com>
1763
1764 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1765 safety if requested by a TM method.
1766 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1767 privatization safety.
1768 * method-serial.cc: Same.
1769
17702011-10-19 Torvald Riegel <triegel@redhat.com>
1771
1772 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1773 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1774 undolog-related member functions from *_local to *_undolog.
1775 * local.cc (gtm_thread::commit_undolog): Same.
1776 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1777 (GTM::gtm_thread::rollback): Roll back undolog before
1778 dispatch-specific rollback.
1779
17802011-10-19 Torvald Riegel <triegel@redhat.com>
1781
1782 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1783 re-initialization of the current method group.
1784 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1785
17862011-10-19 Torvald Riegel <triegel@redhat.com>
1787
1788 * alloc.cc (commit_allocations_2): Do not free transaction-local
1789 memory when committing a nested transaction.
1790
17912011-10-19 Torvald Riegel <triegel@redhat.com>
1792
1793 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1794 serial-irrevocable dispatch, not serial.
1795
17962011-10-19 Torvald Riegel <triegel@redhat.com>
1797
1798 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1799 declarations.
1800 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1801 * method-serial.cc: Implement begin_or_restart().
1802 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1803 dispatch-specific begin_or_restart().
1804 (GTM::gtm_thread::restart): Same.
1805
18062011-08-23 Torvald Riegel <triegel@redhat.com>
1807
1808 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1809 restarting without switching to serial mode.
1810 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1811 transaction state. Choose closed-nesting alternative if available.
1812 (GTM::gtm_thread::set_default_dispatch): New.
1813 (parse_default_method): New.
1814 (GTM::gtm_thread::number_of_threads_changed): New.
1815 * method-serial.cc (GTM::serial_mg): New method group class.
1816 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1817 fini.
1818 (GTM::serial_dispatch): Same.
1819 (GTM::serialirr_onwrite_dispatch): Same.
1820 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1821 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1822 registered threads.
1823 (GTM::gtm_thread::gtm_thread): Same.
1824 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1825 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1826 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1827 choose dispatch but set state according to dispatch here.
1828 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1829 (GTM::method_group): New class.
1830 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1831 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1832 * libitm.texi: Document TM methods, method groups, method life cycle.
1833 Rename method sets to method groups.
1834
18352011-08-23 Torvald Riegel <triegel@redhat.com>
1836
1837 * config/x86/tls.h: Moved to ...
1838 * config/linux/x86/tls.h: ... here.
1839
18402011-08-23 Torvald Riegel <triegel@redhat.com>
1841
1842 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1843 Add X32 support.
1844 * config/x86/sjlj.S: Same.
1845
18462011-08-19 Torvald Riegel <triegel@redhat.com>
1847
1848 * config/linux/rwlock.h: New file.
1849 * config/linux/rwlock.c: New file.
1850 * configure.ac: Reenable futex support (undo SVN rev 157758).
1851 * Makefile.am: Same.
1852 * configure.tgt: Same.
1853 * config/linux/alpha/futex_bits.h: Same.
1854 * config/linux/futex.h: Same. Return number of woken processes.
1855 * config/linux/futex.cc: Same.
1856 (futex_wait): Remove spinning.
1857 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1858 Use __x86_64__ instead of __LP64__.
1859 * aclocal.m4: Include generic futex checks.
1860 * configure: Rebuild.
1861 * Makefile.in: Rebuild.
1862 * testsuite/Makefile.in: Rebuild.
1863 * beginend.cc: Include pthread.h.
1864 * config/posix/cachepage.cc: Same.
1865
18662011-08-12 Torvald Riegel <triegel@redhat.com>
1867
1868 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1869 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1870 (set_gtm_thr): New.
1871 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1872 (set_gtm_thr): New.
1873 (GTM::gtm_thread::thread_num): Removed.
1874 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1875 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1876 tx-to-thread renaming.
1877 * beginend.cc: Adapted to tx-to-thread renaming.
1878 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1879 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1880 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1881 gtm_transaction to gtm_thread.
1882 (_ITM_getThreadnum): Removed. Not supported anymore.
1883 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1884 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1885 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1886 gtm_tx-to-gtm_thr renaming if necessary.
1887 * eh_cpp.cc: Same.
1888 * local.cc: Same.
1889 * retry.cc: Same.
1890 * clone.cc: Same.
1891 * alloc.cc: Same.
1892 * alloc_c.cc: Same.
1893 * alloc_cpp.cc: Same.
1894 * method-serial.cc: Same.
1895 * config/generic/tls.cc: Same.
1896 * config/posix/rwlock.h (gtm_rwlock): Same.
1897 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1898
18992011-08-12 Torvald Riegel <triegel@redhat.com>
1900
1901 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1902 implementation.
1903 (gtm_rwlock::read_unlock): Same.
1904 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1905 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1906 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1907 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1908 w_upgrade. Replaced by per-transaction flags (in shared_state).
1909 Added c_confirmed_writers.
1910 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1911 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1912 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1913 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1914 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1915 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1916 * libitm.texi: Document locking conventions and implementations in
1917 libitm.
1918
19192011-08-12 Torvald Riegel <triegel@redhat.com>
1920
1921 * libitm_i.h (next_tx): Add list of all threads' transaction.
1922 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1923 transaction with list of transactions and ...
1924 (thread_exit_handler): ... deregister here.
1925 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1926 * config/x86/target.h: Same.
1927
19282011-08-12 Torvald Riegel <triegel@redhat.com>
1929
1930 * testsuite/libitm.c++/static_ctor.C: New file.
1931
19322011-08-12 Torvald Riegel <triegel@redhat.com>
1933
1934 * testsuite/libitm.c/reentrant.c: New file.
1935
19362011-08-12 Torvald Riegel <triegel@redhat.com>
1937
1938 * config/generic/tls.h: Remove the free list for transactions and ...
1939 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1940 (GTM::gtm_transaction::operator delete): ... and release here.
1941 (thread_exit_handler): New. Delete tx when thread terminates.
1942 (thread_exit_init): New.
1943 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1944 * testsuite/libitm.c/txrelease.c: New file.
1945
19462011-08-12 Torvald Riegel <triegel@redhat.com>
1947
1948 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1949 * testsuite/libitm.c/notx.c: New file.
1950
19512011-08-12 Torvald Riegel <triegel@redhat.com>
1952
1953 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1954 * libitm_i.h (local_tid): ... to here.
1955 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1956 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1957
19582011-08-12 Torvald Riegel <triegel@redhat.com>
1959
1960 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1961 serialirr_onwrite_dispatch as new default for now.
1962 * method-serial.cc (serialirr_onwrite_dispatch): New.
1963 (GTM::dispatch_serialirr_onwrite): New.
1964 * libitm_i.h: Same.
1965
19662011-08-12 Torvald Riegel <triegel@redhat.com>
1967
1968 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1969 * query.cc (_ITM_getTransactionId): There is no active transaction if
1970 the current nesting level is zero.
1971
19722011-07-28 Torvald Riegel <triegel@redhat.com>
1973
1974 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1975 rollback.
1976
19772011-07-28 Torvald Riegel <triegel@redhat.com>
1978
1979 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1980 transaction properties from the caller instead of from the
1981 transaction object.
1982 * libitm_i.h: Same.
1983 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1984
19852011-07-28 Torvald Riegel <triegel@redhat.com>
1986
1987 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1988 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1989 * dispatch.h: Same.
1990 * method-serial.cc: Same.
1991 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1992 flat nesting as default, and closed nesting on demand.
1993 (GTM::gtm_transaction::rollback): Same.
1994 (_ITM_abortTransaction): Same.
1995 (GTM::gtm_transaction::restart): Same.
1996 (GTM::gtm_transaction::trycommit): Same.
1997 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1998 (choose_code_path): New.
1999 (GTM::gtm_transaction_cp::save): New.
2000 (GTM::gtm_transaction_cp::commit): New.
2001 * query.cc (_ITM_inTransaction): Support flat nesting.
2002 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2003 (GTM::gtm_transaction): Support flat and closed nesting.
2004 * alloc.cc (commit_allocations_2): New.
2005 (commit_cb_data): New helper struct.
2006 (GTM::gtm_transaction::commit_allocations): Handle nested
2007 commits/rollbacks.
2008 * libitm.texi: Update user action section, add description of nesting.
2009
20102011-07-28 Torvald Riegel <triegel@redhat.com>
2011
2012 * libitm_i.h: Add closed nesting as restart reason.
2013 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2014
20152011-07-28 Torvald Riegel <triegel@redhat.com>
2016
2017 * useraction.cc: Use vector instead of list to store actions.
2018 Also support partial rollbacks for closed nesting.
2019 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2020 * beginend.cc: Same.
2021
20222011-07-28 Torvald Riegel <triegel@redhat.com>
2023
2024 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2025 closed_nesting flags, as well as a closed nesting alternative.
2026 * method-serial.cc: Same.
2027 (serial_dispatch): Renamed to serialirr_dispatch.
2028 (GTM::dispatch_serialirr): Same.
2029 (serial_dispatch_ul): Renamed to serial_dispatch.
2030 (GTM::dispatch_serial): Same.
2031
20322011-07-28 Torvald Riegel <triegel@redhat.com>
2033
2034 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2035
20362011-07-28 Torvald Riegel <triegel@redhat.com>
2037
2038 * aatree.h (aa_tree::remove): New.
2039 (aa_tree::operator new): Add placement new.
2040
20412011-07-02 Torvald Riegel <triegel@redhat.com>
2042
2043 * containers.h: New file.
2044 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2045 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2046 * common.h: ... to here.
2047 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2048 * local.cc: Same.
2049
20502011-06-30 Torvald Riegel <triegel@redhat.com>
2051
2052 * libitm_i.h (STATE_ABORTING): Remove.
2053 * beginend.cc (_ITM_abortTransaction): Same.
2054 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2055 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2056 (_ITM_rollbackTransaction): Remove.
2057 * beginend.cc: Same.
2058 * libitm.map: Same.
2059 * libitm.texi: Document these ABI changes.
2060
20612011-06-30 Torvald Riegel <triegel@redhat.com>
2062
2063 * libitm.texi: New file.
2064 * Makefile.am: Add libitm.texi.
2065 * Makefile.in: Rebuild.
2066
20672011-06-30 Torvald Riegel <triegel@redhat.com>
2068
2069 * libitm_i.h: Move parts to common.h and dispatch.h.
2070 * common.h: New file.
2071 * dispatch.h: New file, new dispatch class.
2072 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2073 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2074 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2075 decision to retry.cc.
2076 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2077 only.
2078 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2079 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2080 logging.
2081 * barrier.cc: Use new barriers definitions.
2082 (abi_dispatch::memmove_overlap_check): New.
2083 * config/x86/x86_sse.cc: Same.
2084 * config/x86/x86_avx.cc: Same.
2085 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2086 memcpy.cc.
2087 * Makefile.in: Rebuild.
2088 * method-readonly.cc: Remove.
2089 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2090 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2091
20922011-06-30 Torvald Riegel <triegel@redhat.com>
2093
2094 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2095 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2096 * testsuite/libitm.c/dropref-2.c: Same.
2097 * testsuite/libitm.c/dropref.c: Same.
2098
20992011-06-30 Torvald Riegel <triegel@redhat.com>
2100
2101 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2102 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2103 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2104 * alloc_c.cc: Same.
2105 * barrier.tpl: Same.
2106 * beginend.c: Same.
2107 * config/generic/tls.h: Same.
2108 * config/x86/tls.h: Same.
2109 * libitm_i.h: Same.
2110 * memcpy.cc: Same.
2111 * memset.cc: Same.
2112 * method-readonly.cc: Same.
2113 * method-serial.cc: Same.
2114 * method-wbetl.cc: Same.
2115 * retry.cc: Same.
2116
21172011-03-03 Richard Henderson <rth@redhat.com>
2118
2119 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2120 From Patrik Marlier <patrick.marlier@unine.ch>.
2121
21222011-02-03 Richard Henderson <rth@redhat.com>
2123
2124 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2125 * configure.ac: Use it.
2126 * configure, config.h.in: Rebuild.
2127 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2128 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2129 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2130 * libitm.map: Use wildcards to match size_t mangling.
2131
21322010-12-14 Richard Henderson <rth@redhat.com>
2133
2134 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2135 blocks of TIDs per thread.
2136 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2137 (setup_gtm_thr): Return the thread structure.
2138 * config/x86/tls.h (setup_gtm_thr): Likewise.
2139
21402010-12-14 Richard Henderson <rth@redhat.com>
2141
2142 * clone.cc (table_lock): Remove.
2143 (find_clone): Don't take it.
2144 (ExcludeTransaction): New helper class.
2145 (_ITM_registerTMCloneTable): Use it.
2146 (_ITM_deregisterTMCloneTable): Likewise.
2147
21482010-12-14 Richard Henderson <rth@redhat.com>
2149
2150 * config/x86/tls.h: New file.
2151
21522010-07-15 Richard Henderson <rth@redhat.com>
2153
2154 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2155 * Makefile.in: Rebuild.
2156
21572010-07-13 Aldy Hernandez <aldyh@redhat.com>
2158
2159 * method-wbetl.cc (trydropreference): Fix source line.
2160
21612010-07-13 Aldy Hernandez <aldyh@redhat.com>
2162
2163 * libitm.h: Add comment.
2164 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2165
21662010-07-07 Aldy Hernandez <aldyh@redhat.com>
2167
2168 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2169 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2170 available, use pthread mutexes.
2171 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2172 * config.h.in: Regenerate.
2173 * configure: Regenerate.
2174
21752010-07-06 Aldy Hernandez <aldyh@redhat.com>
2176
2177 * libitm.h (ITM_PURE): Define.
2178 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2179
21802010-06-28 Aldy Hernandez <aldyh@redhat.com>
2181
2182 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2183 (validate): Add comment.
2184 (trydropreference): New.
2185 * method-readonly.cc (class readonly_dispatch): Add
2186 trydropreference.
2187 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2188 Call trydropreference().
2189 * libitm.h (_ITM_dropReferences): Remove const attribute.
2190 * method-serial.cc (class serial_dispatch): Add trydropreference.
2191 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2192
21932010-06-28 Aldy Hernandez <aldyh@redhat.com>
2194
2195 * memcpy.cc (do_memcpy): Comment.
2196
21972010-06-25 Aldy Hernandez <aldyh@redhat.com>
2198
2199 * barrier.tpl: Add comments throughout.
2200
22012010-06-24 Aldy Hernandez <aldyh@redhat.com>
2202
2203 * method-wbetl.cc (struct w_entry): Add comments.
2204 (trycommit): Same.
2205 (rollback): Same.
2206
22072010-06-24 Aldy Hernandez <aldyh@redhat.com>
2208
2209 * alloc_c.cc (_ITM_dropReferences): New.
2210 * libitm.map (_ITM_dropReferences): Add.
2211 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2212 * libitm_i.h (struct gtm_transaction): Declare
2213 drop_references_allocations and drop_references_local.
2214 * local.cc (rollback_local): Ignore memory when applicable.
2215 (drop_references_local): New.
2216
22172010-06-23 Richard Henderson <rth@redhat.com>
2218
2219 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2220 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2221 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2222 * config/alpha/target.h: Likewise.
2223 * config/generic/tls.cc (gtm_mask_stack): Use it.
2224
22252010-06-23 Richard Henderson <rth@redhat.com>
2226
2227 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2228 a mutex instead of trying a lock-free compare-and-swap on the list.
2229 (gtm_cacheline_page::operator delete): Likewise.
2230
22312010-06-16 Richard Henderson <rth@redhat.com>
2232
2233 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2234 that overlap the libitm stack.
2235 * barrier.tpl: Mark incoming stack.
2236 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2237 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2238 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2239 * memcpy.cc, memset.cc: Likewise.
2240 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2241 * config/generic/tls.h (gtm_thread): Add stack_top member.
2242 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2243 * libitm_i.h (gtm_mask_stack): Declare.
2244 * config/generic/tls.cc: New file.
2245 * Makefile.am (libitm_la_SOURCES): Add it.
2246 (AM_CXXFLAGS): Turn off exceptions.
2247 * Makefile.in: Rebuild.
2248
22492010-06-16 Richard Henderson <rth@redhat.com>
2250
2251 * alloc.cc (struct gtm_alloc_action): Move definition ...
2252 * libitm_i.h: ... here.
2253 (class gtm_transaction): Declare new and delete.
2254 * beginend.cc (alloc_tx): Reformulate as operator new.
2255 (free_tx): Reformulate as operator delete.
2256 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2257
22582010-06-11 Richard Henderson <rth@redhat.com>
2259
2260 * clone.cc (clone_entry_compare): Fix typo.
2261 From Patrik Marlier <patrick.marlier@unine.ch>.
2262
22632010-05-13 Richard Henderson <rth@redhat.com>
2264
2265 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2266 in extern "C".
2267
22682010-05-07 Aldy Hernandez <aldyh@redhat.com>
2269
2270 * libitm_i.h (struct gtm_transaction): Remove
2271 get_allocation_size.
2272 (record_allocation): Remove size parameter.
2273 * libitm.map (_ITM_realloc): Remove.
2274 * alloc_c.cc (_ITM_realloc): Remove.
2275 (_ITM_malloc): Remove size argument to record_allocation.
2276 (_ITM_calloc): Same.
2277 * alloc_cpp.cc (_ZGTtnwm): Same.
2278 (_ZGTtnwmRKSt9nothrow_t): Same.
2279 (_ZGTtnam): Same.
2280 (_ZGTtnamRKSt9nothrow_t): Same.
2281 * alloc.cc (struct gtm_alloc_action): Remove size.
2282 (get_allocation_size): Remove.
2283 (commit_allocations): Add comment.
2284 (record_allocation): Remove size parameter.
2285 (forget_allocation): Remove set of size.
2286
22872010-04-19 Aldy Hernandez <aldyh@redhat.com>
2288
2289 * Makefile.am (abi_version): New.
2290 (AM_CXXFLAGS): Pass abi_version.
2291 * Makefile.in: Regenerate.
2292 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2293
22942010-04-06 Aldy Hernandez <aldyh@redhat.com>
2295
2296 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2297 _ITM_getTMCloneOrIrrevokable.
2298 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2299 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2300
23012010-03-26 Aldy Hernandez <aldyh@redhat.com>
2302
2303 * configure.ac: Remove Linux futex support.
2304 * configure.tgt (config_path): Same.
2305 * Makefile.am: Same.
2306 * config/linux: Remove entire directory.
2307 * configure: Rebuild.
2308 * Makefile.in: Rebuild.
2309 * testsuite/Makefile.in: Rebuild.
2310
23112010-03-09 Aldy Hernandez <aldyh@redhat.com>
2312
2313 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2314 switching to serial mode.
2315 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2316
23172010-03-03 Aldy Hernandez <aldyh@redhat.com>
2318
2319 * configure.tgt: Add emacs -*- tags.
2320 * barrier.tpl: Same.
2321
23222010-02-23 Aldy Hernandez <aldyh@redhat.com>
2323
2324 * Makefile.am: Rename serial.cc to method-serial.cc.
2325 * Makefile.in: Regenerate with automake 1.11.1.
2326 * testsuite/Makefile.in: Same.
2327 * aclocal.m4: Regenerate with aclocal 1.11.1.
2328 * method-serial.cc: Rename from serial.cc.
2329 * libitm_i.h (struct gtm_transaction): Update comment on
2330 serialirr_mode.
2331
23322010-02-22 Aldy Hernandez <aldyh@redhat.com>
2333
2334 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2335 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2336
23372010-02-11 Aldy Hernandez <aldyh@redhat.com>
2338
2339 * configure: Rebuild.
2340
23412009-11-12 Richard Henderson <rth@redhat.com>
2342
2343 * Rewrite everything in C++.
2344
23452009-11-03 Richard Henderson <rth@redhat.com>
2346
2347 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2348 * Makefile.am (libitm_la_SOURCES): Add them.
2349 * configure.ac (ARCH_X86): New conditional.
2350 * Makefile.in, configure: Rebuild.
2351 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2352 Move futex setup into "other system configury" case.
2353 * local.c (rollback_local): Merge into ...
2354 (GTM_rollback_local): ... here.
2355 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2356 (_ITM_LB): Define as an alias to GTM_LB.
2357
23582009-11-03 Richard Henderson <rth@redhat.com>
2359
2360 * method-readonly.c: New file.
2361 * Makefile.am (libitm_la_SOURCES): Add it.
2362 * Makefile.in: Rebuild.
2363 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2364 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2365 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2366 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2367 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2368 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2369 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2370 gtm_get_clock, gtm_inc_clock): New.
2371 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2372 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2373 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2374 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2375 replace uses with new libitm_i.h symbols.
2376 (dispatch_wbetl): Rename from wbetl_dispatch.
2377 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2378 away from dispatch_readonly; abort if the beginTransaction call
2379 asserted that the transaction was readonly.
2380
23812009-11-03 Richard Henderson <rth@redhat.com>
2382
2383 * memset.c: New file.
2384 * Makefile.am (libitm_la_SOURCES): Add it.
2385 * Makefile.in: Rebuild.
2386 * testsuite/libitm.c/memset-1.c: New.
2387
23882009-11-03 Richard Henderson <rth@redhat.com>
2389
2390 * dispatch.c: Remove file.
2391 * useraction.c (struct gtm_user_action): Move from libitm.h.
2392 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2393 (serial_memset, serial_memmove, serial_memcpy): Remove.
2394 (serial_W*, serial_R*): Remove.
2395 (serial_dispatch): Update to match.
2396 * configure.ac: Move Werror down below configure checks. Don't
2397 check for sys/loadavg.h, do check for malloc.h. Don't check for
2398 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2399 Use GCC_AC_FUNC_MMAP_BLACKLIST
2400 * libitm.h: Split out all internal items to...
2401 * libitm_i.h: ... here. New file.
2402 * copymask.c: New file.
2403 * local.c (struct gtm_local_undo): Move from libitm.h.
2404 (GTM_alloc_local): Rename from alloc_local; export.
2405 * memcpy.c: New file.
2406 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2407 * config/posix/page.c: New file.
2408 * config/posix/target_tls.h: Remove file.
2409 * barrier.c: New file.
2410 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2411 copymask.c, page.c.
2412 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2413 * method-wbetl.c: Rewrite for new cacheline methods.
2414 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2415
2416 * config/alpha/sjlj.S: Fix typo.
2417 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2418 * config/alpha/copymask.c: New file.
2419 * config/alpha/target.h (CACHELINE_SIZE): New.
2420 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2421
2422 * config/x86/target_i.h: Copy functions from x86/target.h.
2423 * config/x86/copymask.c: New file.
2424 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2425 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2426 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2427 * config/x86/target_tls.h: Move contents to target_i.h.
2428
2429 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2430 * testsuite/libitm.c/memcpy-1.c: New.
2431
24322009-10-22 Richard Henderson <rth@redhat.com>
2433
2434 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2435 (AM_CCASFLAGS): New.
2436 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2437 saving/restoring _AC_ARG_VAR_PRECIOUS.
2438 * Makefile.in, aclocal.m4, config.h.in, configure,
2439 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2440
24412009-10-22 Richard Henderson <rth@redhat.com>
2442
2443 * testsuite/*: Update for new compiler syntax.
2444
24452009-10-21 Richard Henderson <rth@redhat.com>
2446
2447 * libitm.h (_ITM_abortReason): Add outerAbort.
2448
24492009-08-03 Richard Henderson <rth@redhat.com>
2450
2451 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2452 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2453 * method-wbetl.c (struct w_entry): Remove mask.
2454 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2455 adjust all callers.
2456
24572009-07-22 Richard Henderson <rth@redhat.com>
2458
2459 * eh_cpp.c: New file.
2460 * Makefile.am (libitm_la_SOURCES): Add it.
2461 * Makefile.in: Rebuild.
2462 * beginend.c (GTM_rollback_transaction): Undo exception state.
2463 (GTM_trycommit_transaction): Mark inline.
2464 (GTM_trycommit_and_finalize_transaction): Split out from ...
2465 (_ITM_commitTransaction): ... here.
2466 (_ITM_commitTransactionEH): New function.
2467 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2468 cxa_unthrown, eh_in_flight; reorder.
2469
2470 * testsuite/libitm.c++/c++.exp: New.
2471 * testsuite/libitm.c++/eh-1.C: New.
2472
2473 * aatree.c (aa_free): Remove REGPARM.
2474 * aatree.h: Remove all REGPARM.
2475
24762009-07-18 Richard Henderson <rth@redhat.com>
2477
2478 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2479 * Makefile.am (libitm_la_SOURCES): Add them.
2480 * Makefile.in: Rebuild.
2481 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2482 (GTM_trycommit_transaction): Likewise.
2483 * libitm.h: Include aatree.h
2484 (struct gtm_alloc_action): New.
2485 (struct gtm_transaction): Add alloc_actions.
2486 (GTM_record_allocation, GTM_forget_allocation): Declare.
2487 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2488 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2489 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2490 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2491 _ZGTtdaPvRKSt9nothrow_t): Export.
2492
24932009-07-18 Richard Henderson <rth@redhat.com>
2494
2495 * target_tls.h: Move ...
2496 * config/posix/target_tls.h: ... here.
2497
24982009-07-07 Richard Henderson <rth@redhat.com>
2499
2500 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2501
25022009-07-07 Richard Henderson <rth@redhat.com>
2503
2504 * Update to GPL3.
2505
25062009-07-07 Richard Henderson <rth@redhat.com>
2507
2508 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2509 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2510
2511 * configure.tgt: Don't use -ftls-model for x86 linux.
2512 * libitm.h: Include target.h after standard includes.
2513 (_gtm_thr): Rename from gtm_thr.
2514 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2515 (gtm_disp, set_gtm_disp): New.
2516 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2517 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2518 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2519
25202009-07-07 Richard Henderson <rth@redhat.com>
2521
2522 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2523
25242009-07-06 Richard Henderson <rth@redhat.com>
2525
2526 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2527 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2528 (_ITM_beginTransaction): Take variadic arguments.
2529 (_ITM_registerThrownObject): Declare.
2530 * beginend.c, serial.c: Update.
2531 * libitm.map: Add _ITM_registerThrownObject.
2532
25332009-01-28 Richard Henderson <rth@redhat.com>
2534
2535 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2536 * Makefile.in: Rebuild.
2537 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2538 (GTM_restart_transaction): Fix uninstrumented code check.
2539 * retry.c (GTM_decide_retry_strategy): Add serial check.
2540 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2541 automatically go irrevokable when in serial mode.
2542 * clone.c: New file.
2543 * libitm.h, libitm.map: Update.
2544
25452009-01-27 Richard Henderson <rth@redhat.com>
2546
2547 * Makefile.am (LTCCASCOMPILE): Define.
2548 (libitm_la_SOURCES): Add methid-wbetl.c.
2549 * testsuite/Makefile.am: New
2550 * configure.ac: Add testsuite/Makefile.
2551 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2552 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2553 (_ITM_abortTransaction): Finalize implementation method; pass
2554 transaction properties to longjmp.
2555 (GTM_restart_transaction): Split out from ...
2556 (_ITM_commitTransaction): ... here.
2557 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2558 Move to config/x86/target.h.
2559 * config/linux/alpha/futex_bits.h: New.
2560 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2561 * config/x86/target.h: Disable target types for 32-bit.
2562 * config/alpha/sjlj.S, config/alpha/target.h: New.
2563 * libitm.h (struct gtm_dispatch): Add init, fini.
2564 (enum restart_reason): New.
2565 (struct gtm_transaction): Add method and restarts.
2566 * retry.c (GTM_decide_retry_strategy): Implement.
2567 * serial.c (serial_init, serial_fini): New.
2568 (GTM_serialmode): Finialize outgoing method.
2569 * method-wbetl.c: New.
2570
25712008-12-09 Richard Henderson <rth@redhat.com>
2572
2573 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2574 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2575 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2576 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2577 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2578 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2579 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2580 * serial.c (serial_R##T, serial_W##T): Likewise.
2581
25822008-11-21 Richard Henderson <rth@redhat.com>
2583
2584 * Initial commit.
21fa2a29 2585\f
68127a8e 2586Copyright (C) 2008-2023 Free Software Foundation, Inc.
21fa2a29
JJ
2587
2588Copying and distribution of this file, with or without modification,
2589are permitted in any medium without royalty provided the copyright
2590notice and this notice are preserved.