Debian Codegraph @

libitm/ChangeLog

raw
1 2026-06-12 Release Manager
2
3 * GCC 15.3.0 released.
4
5 2025-08-08 Release Manager
6
7 * GCC 15.2.0 released.
8
9 2025-04-25 Release Manager
10
11 * GCC 15.1.0 released.
12
13 2025-01-02 Jakub Jelinek <[email protected]>
14
15 * libitm.texi: Bump @copying's copyright year.
16
17 2024-11-18 David Malcolm <[email protected]>
18
19 * testsuite/lib/libitm.exp: Add
20 "load_gcc_lib dg-test-cleanup.exp".
21
22 2024-09-23 Matthieu Longo <[email protected]>
23
24 * config/aarch64/sjlj.S: Replace SPARC CFI directive by
25 AArch64 one.
26
27 2024-09-02 Alex Coplan <[email protected]>
28
29 * testsuite/lib/libitm.exp: Load scanltrans.exp instead of
30 scanltranstree.exp.
31
32 2024-05-31 Rainer Orth <[email protected]>
33
34 PR testsuite/115294
35 * testsuite/lib/libitm.exp (libitm_target_compile): Pass new
36 dg-additional-files-options args.
37
38 2024-05-07 Rainer Orth <[email protected]>
39
40 * Makefile.am [LIBITM_BUILD_VERSIONED_SHLIB_SUN] (libitm.map-sun):
41 Pass $(libitm_la_OBJECTS), $(libitm_la_LIBADD) to make_sunver.pl
42 unmodified.
43 * Makefile.in: Regenerate.
44
45 2024-04-02 Jakub Jelinek <[email protected]>
46
47 * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
48 words in comment; not not -> not to.
49
50 2024-02-05 Marek Polacek <[email protected]>
51
52 * containers.h (vector): Remove the template-id in constructors.
53
54 2024-01-03 Jakub Jelinek <[email protected]>
55
56 * libitm.texi: Bump @copying's copyright year.
57
58 2023-10-22 Iain Sandoe <[email protected]>
59
60 * testsuite/lib/libitm.exp: Likewise.
61 * testsuite/libitm.c++/c++.exp: Likewise.
62
63 2023-10-22 Iain Sandoe <[email protected]>
64
65 * Makefile.am: Handle Darwin rpaths.
66 * Makefile.in: Regenerate.
67 * configure: Regenerate.
68 * configure.ac: Handle Darwin rpaths.
69
70 2023-08-07 Nick Alcock <[email protected]>
71
72 * configure: Regenerate.
73
74 2023-08-07 Alexander von Gluck IV <[email protected]>
75
76 * configure: Regenerate.
77
78 2023-08-07 Nick Alcock <[email protected]>
79
80 * configure: Regenerate.
81
82 2023-08-07 Nick Alcock <[email protected]>
83
84 * configure: Regenerate.
85
86 2023-08-07 H.J. Lu <[email protected]>
87
88 * configure: Regenerate.
89
90 2023-08-07 H.J. Lu <[email protected]>
91
92 * configure: Regenerate.
93
94 2023-06-02 Thomas Schwinge <[email protected]>
95
96 * configure.ac (PERL): Remove.
97 * configure: Regenerate.
98 * Makefile.in: Likewise.
99 * testsuite/Makefile.in: Likewise.
100
101 2023-01-02 Jakub Jelinek <[email protected]>
102
103 * libitm.texi: Bump @copying's copyright year.
104
105 2022-11-14 Martin Liska <[email protected]>
106
107 Revert:
108 2022-11-14 Martin Liska <[email protected]>
109
110 * doc/c-c++-language-constructs-for-tm.rst: New file.
111 * doc/conf.py: New file.
112 * doc/copyright.rst: New file.
113 * doc/enabling-libitm.rst: New file.
114 * doc/gnu-free-documentation-license.rst: New file.
115 * doc/index.rst: New file.
116 * doc/indices-and-tables.rst: New file.
117 * doc/internals.rst: New file.
118 * doc/locking-conventions.rst: New file.
119 * doc/nesting-flat-vs-closed.rst: New file.
120 * doc/the-libitm-abi.rst: New file.
121 * doc/the-libitm-abi/function-list.rst: New file.
122 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
123 * doc/the-libitm-abi/library-design-principles.rst: New file.
124 * doc/the-libitm-abi/memory-model.rst: New file.
125 * doc/the-libitm-abi/non-objectives.rst: New file.
126 * doc/the-libitm-abi/objectives.rst: New file.
127 * doc/the-libitm-abi/sample-code.rst: New file.
128 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
129 * doc/tm-methods-and-method-groups.rst: New file.
130
131 2022-11-14 Martin Liska <[email protected]>
132
133 Revert:
134 2022-11-14 Martin Liska <[email protected]>
135
136 * Makefile.in: Support Sphinx based documentation.
137
138 2022-11-14 Martin Liska <[email protected]>
139
140 Revert:
141 2022-11-14 Martin Liska <[email protected]>
142
143 * libitm.texi: Removed.
144
145 2022-11-14 Martin Liska <[email protected]>
146
147 Revert:
148 2022-11-14 Martin Liska <[email protected]>
149
150 * Makefile.in: Support --with-sphinx-build.
151 * configure.ac: Likewise.
152 * configure: Regenerate.
153
154 2022-11-14 Martin Liska <[email protected]>
155
156 Revert:
157 2022-11-14 Martin Liska <[email protected]>
158
159 * Makefile.in: Build info pages conditionally.
160
161 2022-11-14 Martin Liska <[email protected]>
162
163 Revert:
164 2022-11-14 Martin Liska <[email protected]>
165
166 * doc/c-c++-language-constructs-for-tm.rst:
167 Add trailing newline.
168 * doc/copyright.rst:
169 Add trailing newline.
170 * doc/enabling-libitm.rst:
171 Add trailing newline.
172 * doc/gnu-free-documentation-license.rst:
173 Add trailing newline.
174 * doc/index.rst:
175 Add trailing newline.
176 * doc/indices-and-tables.rst:
177 Add trailing newline.
178 * doc/internals.rst:
179 Add trailing newline.
180 * doc/locking-conventions.rst:
181 Add trailing newline.
182 * doc/nesting-flat-vs-closed.rst:
183 Add trailing newline.
184 * doc/the-libitm-abi.rst:
185 Add trailing newline.
186 * doc/the-libitm-abi/function-list.rst:
187 Add trailing newline.
188 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
189 Add trailing newline.
190 * doc/the-libitm-abi/library-design-principles.rst:
191 Add trailing newline.
192 * doc/the-libitm-abi/memory-model.rst:
193 Add trailing newline.
194 * doc/the-libitm-abi/non-objectives.rst:
195 Add trailing newline.
196 * doc/the-libitm-abi/objectives.rst:
197 Add trailing newline.
198 * doc/the-libitm-abi/sample-code.rst:
199 Add trailing newline.
200 * doc/the-libitm-abi/types-and-macros-list.rst:
201 Add trailing newline.
202 * doc/tm-methods-and-method-groups.rst:
203 Add trailing newline.
204
205 2022-11-14 Martin Liska <[email protected]>
206
207 Revert:
208 2022-11-14 Martin Liska <[email protected]>
209
210 * Makefile.in: Add missing HAS_SPHINX_BUILD.
211
212 2022-11-14 Martin Liska <[email protected]>
213
214 Revert:
215 2022-11-14 Martin Liska <[email protected]>
216
217 * doc/conf.py: Add newline at last line.
218
219 2022-11-14 Martin Liska <[email protected]>
220
221 Revert:
222 2022-11-14 Martin Liska <[email protected]>
223
224 PR other/107620
225 * configure: Regenerate.
226 * configure.ac: Always set sphinx-build.
227
228 2022-11-13 Martin Liska <[email protected]>
229
230 PR other/107620
231 * configure: Regenerate.
232 * configure.ac: Always set sphinx-build.
233
234 2022-11-10 Martin Liska <[email protected]>
235
236 * doc/conf.py: Add newline at last line.
237
238 2022-11-09 Martin Liska <[email protected]>
239
240 * Makefile.in: Add missing HAS_SPHINX_BUILD.
241
242 2022-11-09 Martin Liska <[email protected]>
243
244 * doc/c-c++-language-constructs-for-tm.rst:
245 Add trailing newline.
246 * doc/copyright.rst:
247 Add trailing newline.
248 * doc/enabling-libitm.rst:
249 Add trailing newline.
250 * doc/gnu-free-documentation-license.rst:
251 Add trailing newline.
252 * doc/index.rst:
253 Add trailing newline.
254 * doc/indices-and-tables.rst:
255 Add trailing newline.
256 * doc/internals.rst:
257 Add trailing newline.
258 * doc/locking-conventions.rst:
259 Add trailing newline.
260 * doc/nesting-flat-vs-closed.rst:
261 Add trailing newline.
262 * doc/the-libitm-abi.rst:
263 Add trailing newline.
264 * doc/the-libitm-abi/function-list.rst:
265 Add trailing newline.
266 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst:
267 Add trailing newline.
268 * doc/the-libitm-abi/library-design-principles.rst:
269 Add trailing newline.
270 * doc/the-libitm-abi/memory-model.rst:
271 Add trailing newline.
272 * doc/the-libitm-abi/non-objectives.rst:
273 Add trailing newline.
274 * doc/the-libitm-abi/objectives.rst:
275 Add trailing newline.
276 * doc/the-libitm-abi/sample-code.rst:
277 Add trailing newline.
278 * doc/the-libitm-abi/types-and-macros-list.rst:
279 Add trailing newline.
280 * doc/tm-methods-and-method-groups.rst:
281 Add trailing newline.
282
283 2022-11-09 Martin Liska <[email protected]>
284
285 * Makefile.in: Build info pages conditionally.
286
287 2022-11-09 Martin Liska <[email protected]>
288
289 * Makefile.in: Support --with-sphinx-build.
290 * configure.ac: Likewise.
291 * configure: Regenerate.
292
293 2022-11-09 Martin Liska <[email protected]>
294
295 * libitm.texi: Removed.
296
297 2022-11-09 Martin Liska <[email protected]>
298
299 * Makefile.in: Support Sphinx based documentation.
300
301 2022-11-09 Martin Liska <[email protected]>
302
303 * doc/c-c++-language-constructs-for-tm.rst: New file.
304 * doc/conf.py: New file.
305 * doc/copyright.rst: New file.
306 * doc/enabling-libitm.rst: New file.
307 * doc/gnu-free-documentation-license.rst: New file.
308 * doc/index.rst: New file.
309 * doc/indices-and-tables.rst: New file.
310 * doc/internals.rst: New file.
311 * doc/locking-conventions.rst: New file.
312 * doc/nesting-flat-vs-closed.rst: New file.
313 * doc/the-libitm-abi.rst: New file.
314 * doc/the-libitm-abi/function-list.rst: New file.
315 * doc/the-libitm-abi/future-enhancements-to-the-abi.rst: New file.
316 * doc/the-libitm-abi/library-design-principles.rst: New file.
317 * doc/the-libitm-abi/memory-model.rst: New file.
318 * doc/the-libitm-abi/non-objectives.rst: New file.
319 * doc/the-libitm-abi/objectives.rst: New file.
320 * doc/the-libitm-abi/sample-code.rst: New file.
321 * doc/the-libitm-abi/types-and-macros-list.rst: New file.
322 * doc/tm-methods-and-method-groups.rst: New file.
323
324 2022-10-31 Xiongchuan Tan <[email protected]>
325
326 * configure.tgt: Add riscv support.
327 * config/riscv/asm.h: New file.
328 * config/riscv/sjlj.S: New file.
329 * config/riscv/target.h: New file.
330
331 2022-10-13 Lulu Cheng <[email protected]>
332
333 * config/loongarch/sjlj.S: Add a soft floating point condition to the
334 register recovery part of the code.
335
336 2022-10-12 Martin Liska <[email protected]>
337
338 * configure: Regenerate.
339
340 2022-10-11 Olivier Hainque <[email protected]>
341 Olivier Hainque <[email protected]>
342
343 * configure: Regenerate.
344
345 2022-09-28 Lulu Cheng <[email protected]>
346 Yang Yujie <[email protected]>
347
348 * configure.tgt: Add loongarch support.
349 * config/loongarch/asm.h: New file.
350 * config/loongarch/sjlj.S: New file.
351 * config/loongarch/target.h: New file.
352
353 2022-08-31 Martin Liska <[email protected]>
354
355 * configure: Regenerate.
356
357 2022-08-31 Martin Liska <[email protected]>
358
359 * configure: Regenerate.
360
361 2022-06-02 David Malcolm <[email protected]>
362
363 * testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
364
365 2022-02-03 David Seifert <[email protected]>
366 Jakub Jelinek <[email protected]>
367
368 * configure.ac: Support --disable-werror.
369 * configure: Regenerate.
370
371 2022-01-31 Martin Liska <[email protected]>
372
373 * acinclude.m4: Detect *_ld_is_mold and use it.
374 * configure: Regenerate.
375
376 2022-01-03 Jakub Jelinek <[email protected]>
377
378 * libitm.texi: Bump @copying's copyright year.
379
380 2021-11-26 Iain Sandoe <[email protected]>
381
382 * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
383 target does not support HAVE_ELF_STYLE_WEAKREF then do not
384 try to test the __cxa_get_globals against NULL.
385
386 2021-06-17 Jonathan Wakely <[email protected]>
387
388 PR libstdc++/91488
389 * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
390
391 2021-01-15 Jakub Jelinek <[email protected]>
392
393 PR target/70454
394 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
395 be added through preprocessor check on
396 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
397
398 2021-01-05 Samuel Thibault <[email protected]>
399
400 * configure: Re-generate.
401
402 2021-01-01 Jakub Jelinek <[email protected]>
403
404 * libitm.texi: Bump @copying's copyright year.
405
406 2020-12-05 Iain Sandoe <[email protected]>
407
408 PR target/97865
409 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
410 * configure: Regenerate.
411
412 2020-11-29 John David Anglin <[email protected]>
413
414 * configure: Regenerate.
415
416 2020-10-01 Alan Modra <[email protected]>
417
418 * config/powerpc/sjlj.S: Support __PCREL__ code.
419
420 2020-07-24 Szabolcs Nagy <[email protected]>
421
422 * config/aarch64/sjlj.S: Add conditional pac-ret protection.
423
424 2020-07-09 Szabolcs Nagy <[email protected]>
425
426 * config/aarch64/sjlj.S: Add BTI marking and related definitions,
427 and add BTI c to function entries.
428
429 2020-07-09 Szabolcs Nagy <[email protected]>
430
431 * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
432
433 2020-05-29 H.J. Lu <[email protected]>
434
435 PR bootstrap/95413
436 * configure: Regenerated.
437
438 2020-05-15 H.J. Lu <[email protected]>
439
440 PR bootstrap/95147
441 * configure: Regenerated.
442
443 2020-05-14 H.J. Lu <[email protected]>
444
445 * configure: Regenerated.
446
447 2020-05-12 Nathan Sidwell <[email protected]>
448
449 Fix throw specifiers on interface.
450 * libitm/libitm.h (_ITM_NOTHROW): Define.
451 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
452 (_ITM_cxa_begin_catch): Use it.
453 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
454 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
455 __cxa_get_globals.
456 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
457 (_ITM_cxa_begin_catch): Likewise.
458
459 2020-05-05 Nathan Sidwell <[email protected]>
460
461 * testsuite/lib/libitm.exp (libitm_init): Add
462 -fdiagnostics-color=never to options.
463
464 2020-02-12 Sandra Loosemore <[email protected]>
465
466 PR libstdc++/79193
467 PR libstdc++/88999
468
469 * configure: Regenerated.
470
471 2020-01-24 Maciej W. Rozycki <[email protected]>
472
473 * configure.ac: Handle `--with-toolexeclibdir='.
474 * Makefile.in: Regenerate.
475 * aclocal.m4: Regenerate.
476 * configure: Regenerate.
477 * testsuite/Makefile.in: Regenerate.
478
479 2020-01-01 Jakub Jelinek <[email protected]>
480
481 Update copyright years.
482
483 * libitm.texi: Bump @copying's copyright year.
484
485 2019-12-03 Szabolcs Nagy <[email protected]>
486
487 PR libgomp/91938
488 * configure.tgt: Avoid IE tls on *-*-musl*.
489
490 2019-09-27 Maciej W. Rozycki <[email protected]>
491
492 * configure: Regenerate.
493
494 2019-09-10 Christophe Lyon <[email protected]>
495
496 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
497
498 2019-09-10 Christophe Lyon <[email protected]>
499
500 * configure.tgt: Handle *-*-uclinux*.
501 * configure: Regenerate.
502
503 2019-09-06 Florian Weimer <[email protected]>
504
505 * configure: Regenerate.
506
507 2019-09-03 Chung-Lin Tang <[email protected]>
508
509 PR other/79543
510 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
511 scanning to conform to the GNU Coding Standards.
512 * configure: Regenerate.
513
514 2019-05-03 Jakub Jelinek <[email protected]>
515
516 * Makefile.am (finclude): Remove.
517 * Makefile.in: Regenerated.
518
519 2019-01-01 Jakub Jelinek <[email protected]>
520
521 Update copyright years.
522
523 2019-01-01 Jakub Jelinek <[email protected]>
524
525 * libitm.texi: Bump @copying's copyright year.
526
527 2018-12-16 Jakub Jelinek <[email protected]>
528
529 PR c++/88482
530 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
531 void * to void (*) (void *).
532 (_ITM_cxa_throw): Likewise.
533 * libitm.h (_ITM_cxa_throw): Likewise.
534 * libitm.texi (_ITM_cxa_throw): Likewise.
535
536 2018-12-13 Peter Bergner <[email protected]>
537
538 * config/powerpc/target.h (htm_available): Add support for
539 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
540
541 2018-10-31 Joseph Myers <[email protected]>
542
543 PR bootstrap/82856
544 * Makefile.am: Include multilib.am.
545 (AUTOMAKE_OPTIONS): Add info-in-builddir.
546 (CLEANFILES): Remove libitm.info.
547 * configure.ac: Remove AC_PREREQ.
548 * testsuite/Makefile.am (RUNTEST): Remove quotes.
549 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
550 Regenerate.
551
552 2018-10-30 Nicholas Krause <[email protected]>
553
554 PR libitm/86293
555 * method-serial.cc: Mark varible as potentially unused
556 to silence warning.
557
558 2018-08-03 Sergei Trofimovich <[email protected]>
559
560 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
561 absolute relocation in a shared library.
562
563 2018-06-12 H.J. Lu <[email protected]>
564
565 PR libitm/85988
566 * config/linux/x86/tls.h (SEG_READ): Use the offset of
567 __private_tm as base.
568 (SEG_WRITE): Likewise.
569 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
570 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
571 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
572 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
573 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
574
575 2018-05-17 Jason Merrill <[email protected]>
576
577 * beginend.cc (save): Disable -Werror=deprecated-copy.
578
579 2018-05-02 Tom de Vries <[email protected]>
580
581 PR testsuite/85106
582 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
583
584 2018-05-02 Tom de Vries <[email protected]>
585
586 PR testsuite/85106
587 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
588
589 2018-04-24 H.J. Lu <[email protected]>
590
591 * config/x86/sjlj.S (_ITM_beginTransaction): Add
592 (__CET__ & 2) != 0 check for shadow stack.
593 (GTM_longjmp): Likewise.
594
595 2018-04-24 H.J. Lu <[email protected]>
596
597 * configure: Regenerated.
598
599 2018-04-23 H.J. Lu <[email protected]>
600
601 PR target/85489
602 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
603
604 2018-04-19 Jakub Jelinek <[email protected]>
605
606 * configure: Regenerated.
607
608 2018-04-18 David Malcolm <[email protected]>
609
610 PR jit/85384
611 * configure: Regenerate.
612
613 2018-02-14 Igor Tsimbalist <[email protected]>
614
615 PR target/84148
616 * configure: Regenerate.
617
618 2018-01-03 Jakub Jelinek <[email protected]>
619
620 Update copyright years.
621
622 * libitm.texi: Bump @copying's copyright year.
623
624 2017-11-17 Igor Tsimbalist <[email protected]>
625
626 * Makefile.in: Regenerate.
627 * acinclude.m4: Add enable.m4 and cet.m4.
628 * config/x86/sjlj.S: Include cet.h.
629 (_ITM_beginTransaction): Add _CET_ENDBR.
630 Save Shadow Stack pointer.
631 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
632 * config/x86/target.h (struct gtm_jmpbuf):
633 Add new field for Shadow Stack pointer.
634 * configure: Regenerate.
635 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
636 * configure.ac: Update libtool_VERSION for x86.
637 * testsuite/Makefile.in: Regenerate.
638
639 2017-11-17 Igor Tsimbalist <[email protected]>
640
641 * libitm/config/x86/target.h: Add new field (ssp).
642 * libitm/config/x86/sjlj.S: Change offsets.
643
644 2017-05-12 Rainer Orth <[email protected]>
645
646 * testsuite/lib/libitm.exp: Load scanlang.exp.
647
648 2017-04-03 Jonathan Wakely <[email protected]>
649
650 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
651
652 2017-01-21 Jakub Jelinek <[email protected]>
653
654 PR other/79046
655 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
656 of cat to get version from BASE-VER file.
657 * testsuite/Makefile.in: Regenerated.
658
659 2017-01-19 Uros Bizjak <[email protected]>
660
661 * config/x86/target.h (htm_available): Determine vendor from
662 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
663
664 2017-01-18 Torvald Riegel <[email protected]>
665
666 * config/x86/target.h (htm_available): Add check for some processors
667 on which TSX is broken.
668
669 2017-01-17 Jakub Jelinek <[email protected]>
670
671 PR other/79046
672 * configure.ac: Add GCC_BASE_VER.
673 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
674 get version from BASE-VER file.
675 * testsuite/Makefile.in: Regenerated.
676 * configure: Regenerated.
677 * Makefile.in: Regenerated.
678
679 2017-01-04 Alan Modra <[email protected]>
680
681 * Makefile.in: Regenerate.
682 * testsuite/Makefile.in: Regenerate.
683
684 2017-01-01 Jakub Jelinek <[email protected]>
685
686 Update copyright years.
687
688 * libitm.texi: Bump @copying's copyright year.
689
690 2016-12-12 Rainer Orth <[email protected]>
691
692 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
693 * aclocal.m4: Regenerate.
694 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
695 LIBITM_CHECK_LINKER_HWCAP.
696
697 2016-11-15 Matthias Klose <[email protected]>
698
699 * configure: Regenerate.
700
701 2016-04-19 H.J. Lu <[email protected]>
702
703 PR libitm/70456
704 * util.cc (xmalloc): Use posix_memalign to allocate memory on
705 on cache line if requested.
706
707 2016-03-03 Dominik Vogt <[email protected]>
708
709 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
710 function attribute to disable floating point in begin_transaction() on
711 S/390.
712 * beginend.cc (begin_transaction): Use
713 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
714
715 2016-01-22 Torvald Riegel <[email protected]>
716
717 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
718 boundary.
719 (htm_fastpath): Remove.
720 (gtm_thread::begin_transaction): Fix HTM fastpath.
721 (_ITM_commitTransaction): Adapt.
722 (_ITM_commitTransactionEH): Adapt.
723 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
724 and accessors.
725 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
726 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
727 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
728 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
729 * libitm/method-serial.cc (htm_mg): Adapt.
730 (gtm_thread::serialirr_mode): Adapt.
731 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
732
733 2016-01-21 Torvald Riegel <[email protected]>
734
735 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
736 or AIX.
737
738 2016-01-19 Richard Henderson <[email protected]>
739
740 PR bootstrap/69343
741 PR bootstrap/69339
742 Revert:
743 2016-01-13 Richard Henderson <[email protected]>
744
745 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
746 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
747 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
748 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
749 * configure.ac (ARCH_AARCH64): New conditional.
750 (ARCH_PPC, ARCH_S390): Likewise.
751 * Makefile.in, configure: Rebuild.
752
753 * libitm.h (_ITM_TYPE_M128): Always define.
754 * vect64.cc: Split ...
755 * vect128.cc: ... out of...
756 * config/x86/x86_sse.cc: ... here.
757 * config/arm/neon.cc: New file.
758
759 2016-01-19 Torvald Riegel <[email protected]>
760
761 * local_type_traits: Remove file.
762 * libitm_i.h: Don't include it anymore.
763 (sized_integral): Remove.
764
765 2016-01-16 Torvald Riegel <[email protected]>
766
767 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
768 safety.
769 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
770 * libitm/testsuite/libitm.c/priv-1.c: New.
771
772 2015-01-15 Torvald Riegel <[email protected]>
773
774 testsuite/libitm.c++/libstdc++-safeexc.C: New.
775
776 2016-01-13 Torvald Riegel <[email protected]>
777
778 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
779 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
780 (gtm_rwlock::write_unlock): Likewise.
781
782 2016-01-13 Richard Henderson <[email protected]>
783
784 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
785 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
786 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
787 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
788 * configure.ac (ARCH_AARCH64): New conditional.
789 (ARCH_PPC, ARCH_S390): Likewise.
790 * Makefile.in, configure: Rebuild.
791
792 * libitm.h (_ITM_TYPE_M128): Always define.
793 * vect64.cc: Split ...
794 * vect128.cc: ... out of...
795 * config/x86/x86_sse.cc: ... here.
796 * config/arm/neon.cc: New file.
797
798 2016-01-13 Torvald Riegel <[email protected]>
799
800 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
801 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
802 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
803 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
804 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
805 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
806 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
807 (serialirr_dispatch::snapshot_most_recent): New.
808 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
809
810 2016-01-12 Torvald Riegel <[email protected]>
811
812 * libitm_i.h (gtm_mask_stack): Remove.
813 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
814 * stmlock.h: Remove file.
815 * config/alpha/cacheline.h: Likewise.
816 * config/generic/cacheline.h: Likewise.
817 * config/powerpc/cacheline.h: Likewise.
818 * config/sparc/cacheline.h: Likewise.
819 * config/x86/cacheline.h: Likewise.
820
821 2016-01-04 Jakub Jelinek <[email protected]>
822
823 Update copyright years.
824
825 * libitm.texi: Bump @copying's copyright year.
826
827 2015-11-26 Torvald Riegel <[email protected]>
828
829 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
830 (ml_wt_dispatch::pre_write): Adapt.
831 (ml_wt_dispatch::pre_load): Likewise.
832
833 2015-11-22 Torvald Riegel <[email protected]>
834
835 * libitm_i.h (gtm_alloc_action): Remove union.
836 * testsuite/libitm.c/alloc-1.c: New.
837
838 2015-11-19 Torvald Riegel <[email protected]>
839
840 * testsuite/libitm.c++/eh-5.C: New.
841 * libitm.h (_ITM_cxa_free_exception): New.
842 * libitm.map (_ITM_cxa_free_exception): Add it.
843 * libitm.texi: Update ABI docs.
844 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
845 (gtm_transaction_cp::cxa_uncaught_count): Add.
846 (gtm_thread::cxa_unthrown): Remove.
847 (gtm_thread::cxa_uncaught_count_ptr): Add.
848 (gtm_thread::cxa_uncaught_count): Add.
849 (gtm_thread::drop_references_allocations): Rename to...
850 (gtm_thread::discard_allocation): ... this and adapt.
851 (gtm_thread::init_cpp_exceptions): New.
852 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
853 (gtm_thread::begin_transaction): Likewise.
854 (gtm_transaction_cp::save): Likewise.
855 (gtm_thread::trycommit): Likewise.
856 * eh_cpp.cc: Add overview comments.
857 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
858 (free_any_exception, _ITM_cxa_free_exception): New.
859 (gtm_thread::init_cpp_exceptions): Define.
860 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
861 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
862 (gtm_thread::revert_cpp_exceptions): Likewise.
863
864 2015-11-09 Torvald Riegel <[email protected]>
865
866 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
867 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
868 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
869 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
870 (gtm_thread::forget_allocations): New overload with size_t argument.
871 * alloc.c (gtm_thread::forget_allocation): Define new overload and
872 adapt existing one.
873 (gtm_thread::record_allocation): Adapt.
874 (gtm_thread::commit_allocations_1): Adapt.
875 (gtm_thread::commit_allocations_2): Adapt.
876 * testsuite/libitm.c++/newdelete.C: New.
877
878 2015-10-27 Daniel Jacobowitz <[email protected]>
879 Joseph Myers <[email protected]>
880 Mark Shinwell <[email protected]>
881 Andrew Stubbs <[email protected]>
882 Rich Felker <[email protected]>
883
884 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
885 GTM_begin_transaction for compatibility with FDPIC.
886
887 2015-10-09 David Malcolm <[email protected]>
888
889 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
890 using load_gcc_lib.
891
892 2015-08-20 Gleb Fotengauer-Malinovskiy <[email protected]> (tiny change)
893
894 PR libitm/61164
895 * local_atomic (__always_inline): Rename to...
896 (__libitm_always_inline): ... this.
897
898 2015-07-03 Carlos Sánchez de La Lama <[email protected]>
899
900 PR target/52482
901 * config/powerpc/sjlj.S: Port to Xcode 2.5.
902
903 2015-05-27 Uros Bizjak <[email protected]>
904
905 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
906 operands "op" and "val" to int.
907
908 2015-05-27 Uros Bizjak <[email protected]>
909
910 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
911 "op" and "val" to int.
912
913 2015-05-27 Uros Bizjak <[email protected]>
914
915 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
916 "op" and "val" to int.
917
918 2015-05-27 Uros Bizjak <[email protected]>
919
920 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
921 Declare as static int.
922 (FUTEX_PRIVATE_FLAG): Remove L suffix.
923 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
924
925 2015-05-27 Uros Bizjak <[email protected]>
926
927 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
928 sys_futex0 function.
929
930 2015-05-13 Michael Haubenwallner <[email protected]>
931
932 * Makefile.in: Regenerated with automake-1.11.6.
933 * aclocal.m4: Likewise.
934 * configure: Likewise.
935 * testsuite/Makefile.in: Likewise.
936
937 2015-04-22 Gregor Richards <[email protected]>
938
939 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
940 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
941
942 2015-01-15 H.J. Lu <[email protected]>
943
944 PR libitm/64360
945 * libitm.c/stackundo.c (test2): Make it static.
946 (test1): Likewise.
947
948 2015-01-05 Jakub Jelinek <[email protected]>
949
950 Update copyright years.
951
952 2015-01-05 Jakub Jelinek <[email protected]>
953
954 * libitm.texi: Bump @copying's copyright year.
955
956 2014-12-12 Kyrylo Tkachov <[email protected]>
957
958 * testsuite/lib/libitm.exp: Load target-utils.exp.
959 Move load of target-supports.exp earlier.
960
961 2014-12-03 Uros Bizjak <[email protected]>
962
963 * configure.tgt (x86_64): Tune -m32 multilib to generic.
964
965 2014-11-21 H.J. Lu <[email protected]>
966
967 PR bootstrap/63784
968 * configure: Regenerated.
969
970 2014-11-11 Francois-Xavier Coudert <[email protected]>
971
972 PR target/63610
973 * configure: Regenerate.
974
975 2014-10-06 Marek Polacek <[email protected]>
976
977 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
978 * testsuite/libitm.c/memset-1.c: Likewise.
979
980 2014-07-24 Richard Henderson <[email protected]>
981
982 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
983 addressing mode in epilogue.
984
985 2014-05-28 Rainer Orth <[email protected]>
986
987 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
988 -mclear-hwcap instead.
989 * configure: Regenerate.
990 * clearcap.map: Remove.
991
992 2014-05-21 John Marino <[email protected]>
993
994 * configure.tgt (*-*-dragonfly*): New target.
995
996 2014-05-19 Richard Henderson <[email protected]>
997
998 * config/aarch64/sjlj.S: New file.
999 * config/aarch64/target.h: New file.
1000 * configure.tgt: Enable aarch64.
1001
1002 2014-04-09 Rainer Orth <[email protected]>
1003
1004 * config/generic/asmcfi.h: Also check for
1005 __GCC_HAVE_DWARF2_CFI_ASM.
1006
1007 2013-04-02 Richard Henderson <[email protected]>
1008
1009 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
1010 * config/arm/target.h, config/sh/target.h: Likewise.
1011 * config/sparc/target.h, config/x86/target.h: Likewise.
1012
1013 2014-03-26 Jakub Jelinek <[email protected]>
1014
1015 * config/linux/futex_bits.h: Include errno.h.
1016 (sys_futex0): If syscall returns -1, return -errno rather than
1017 -1.
1018
1019 2014-03-26 Joseph Myers <[email protected]>
1020
1021 * libitm.texi (Index): Rename to Library Index.
1022
1023 2014-01-13 H.J. Lu <[email protected]>
1024
1025 PR libitm/53113
1026 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
1027 (x86_avx.lo): Append -mavx to CXXFLAGS.
1028 * Makefile.in: Regenerate.
1029
1030 2014-01-02 Richard Sandiford <[email protected]>
1031
1032 Update copyright years
1033
1034 2014-01-02 Tobias Burnus <[email protected]>
1035
1036 * libitm.texi: Bump @copying's copyright year.
1037
1038 2013-11-14 Ulrich Weigand <[email protected]>
1039
1040 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
1041 (FUNC): Define ELFv2 variant.
1042 (END): Likewise.
1043 (HIDDEN): Likewise.
1044 (CALL): Likewise.
1045 (BASE): Likewise.
1046 (LR_SAVE): Likewise.
1047
1048 2013-09-20 Alan Modra <[email protected]>
1049
1050 * configure: Regenerate.
1051
1052 2013-08-30 Torvald Riegel <[email protected]>
1053
1054 * config/posix/rwlock.cc: Fix initialization order.
1055
1056 2013-08-30 Torvald Riegel <[email protected]>
1057
1058 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
1059 (htm_fastpath): Assign an asm name.
1060 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
1061 HTM fast paths.
1062 (_ITM_actions): Likewise.
1063 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
1064 x86_64.
1065 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
1066 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
1067 field to the start of the structure.
1068 * config/linux/rwlock.h (gtm_rwlock): Update comments.
1069 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
1070 handling for custom HTM fast paths.
1071
1072 2013-08-14 Andreas Krebbel <[email protected]>
1073 Revert:
1074 2013-08-02 Andreas Krebbel <[email protected]>
1075
1076 * configure.tgt: Add -msoft-float to XCFLAGS.
1077
1078 2013-08-02 Andreas Krebbel <[email protected]>
1079
1080 * configure.tgt: Add -msoft-float to XCFLAGS.
1081
1082 2013-07-29 Andreas Krebbel <[email protected]>
1083
1084 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
1085 (htm_transaction_active): Enable zEC12 instructions in the
1086 assembler.
1087 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
1088
1089 2013-07-17 Andreas Krebbel <[email protected]>
1090
1091 * acinclude.m4: Add htm asm check for s390.
1092 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
1093 * configure: Regenerate.
1094 * config/s390/target.h: Remove __HTM__ check.
1095 (htm_available): Call getauxval to get hwcaps and check whether
1096 HTM is available or not.
1097
1098 2013-07-15 Peter Bergner <[email protected]>
1099
1100 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
1101 * configure.ac: Use it.
1102 (AC_CHECK_HEADERS): Check for sys/auxv.h.
1103 (AC_CHECK_FUNCS): Check for getauxval.
1104 * config.h.in, configure: Rebuild.
1105 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
1106 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
1107 (USE_HTM_FASTPATH): Define.
1108 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
1109 _HTM_RETRIES) New macros.
1110 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
1111 htm_begin_success, htm_commit, htm_transaction_active): New functions.
1112
1113 2013-06-27 Andreas Krebbel <[email protected]>
1114
1115 * config/s390/target.h: Include htmintrin.h.
1116 (_HTM_ITM_RETRIES): New macro definition.
1117 (htm_available, htm_init, htm_begin, htm_begin_success)
1118 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
1119
1120 2013-06-20 Iain Sandoe <[email protected]>
1121 Cesar Philippidis <[email protected]>
1122
1123 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
1124 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1125 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
1126 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1127
1128 2013-06-20 Torvald Riegel <[email protected]>
1129
1130 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
1131 (_ITM_getTransactionId): Same.
1132 * config/x86/target.h (htm_transaction_active): New.
1133
1134 2013-06-20 Torvald Riegel <[email protected]>
1135
1136 PR libitm/57643
1137 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
1138 the HTM fastpath.
1139
1140 2013-03-31 Gerald Pfeifer <[email protected]>
1141
1142 PR bootstrap/56714
1143 * local_atomic (__always_inline): Always define our version.
1144 (__calculate_memory_order): Mark inline.
1145 (atomic_thread_fence): Ditto.
1146 (atomic_signal_fence): Ditto.
1147 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
1148 (atomic_bool::atomic_flag_clear_explicit): Ditto.
1149 (atomic_bool::atomic_flag_test_and_set): Ditto.
1150 (atomic_bool::atomic_flag_clear): Ditto.
1151
1152 2013-04-23 Andreas Krebbel <[email protected]>
1153
1154 * config/s390/sjlj.S: New file.
1155 * config/s390/target.h: New file.
1156 * configure.tgt: Set options for S/390.
1157
1158 2013-03-23 Andi Kleen <[email protected]>
1159
1160 * local_atomic (__always_inline): Add.
1161 (__calculate_memory_order, atomic_thread_fence,
1162 atomic_signal_fence, test_and_set, clear, store, load,
1163 exchange, compare_exchange_weak, compare_exchange_strong,
1164 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
1165 Add __always_inline to force inlining.
1166
1167 2013-02-11 Iain Sandoe <[email protected]>
1168 Jack Howarth <[email protected]>
1169 Patrick Marlier <[email protected]>
1170
1171 PR libitm/55693
1172 * alloc_cpp.cc: Enable function declarations on darwin.
1173 * eh_cpp.cc: Likewise.
1174
1175 2013-02-03 Richard Sandiford <[email protected]>
1176
1177 Update copyright years.
1178
1179 2012-11-09 Torvald Riegel <[email protected]>
1180
1181 * beginend.cc (htm_fastpath): New.
1182 (gtm_thread::begin_transaction, _ITM_commitTransaction,
1183 _ITM_commitTransactionEH): Add HTM fastpath handling.
1184 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
1185 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
1186 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
1187 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
1188 * configure.tgt: Add -mrtm to XCFLAGS.
1189 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
1190 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
1191 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
1192 * retry.cc (parse_default_method): Add HTM method parsing.
1193 (gtm_thread::number_of_threads_changed): Use HTM by default if
1194 available.
1195
1196 2012-11-04 Thomas Schwinge <[email protected]>
1197
1198 * configure: Regenerate.
1199
1200 2012-10-31 Richard Henderson <[email protected]>
1201
1202 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
1203 * configure.ac: Use it.
1204 * config.h.in, configure: Rebuild.
1205 * testsuite/Makefile.in: Rebuild.
1206
1207 2012-10-24 Torvald Riegel <[email protected]>
1208
1209 * libitm.texi: Clarify ABI requirements for data-logging functions.
1210
1211 2012-10-24 Torvald Riegel <[email protected]>
1212
1213 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
1214 it requires serial mode instead of assuming that for certain
1215 dispatchs.
1216 * dispatch.h (abi_dispatch::requires_serial): New.
1217 (abi_dispatch::abi_dispatch): Adapt.
1218 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
1219 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
1220 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
1221 serial_dispatch::serial_dispatch,
1222 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
1223
1224 2012-10-02 Uros Bizjak <[email protected]>
1225
1226 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
1227 and ia32 declarations some more.
1228 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
1229
1230 2012-09-20 Jakub Jelinek <[email protected]>
1231
1232 PR other/43620
1233 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1234 * configure: Regenerate.
1235 * Makefile.in: Regenerate.
1236
1237 2012-09-14 David Edelsohn <[email protected]>
1238
1239 * configure: Regenerated.
1240
1241 2012-07-31 Uros Bizjak <[email protected]>
1242
1243 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
1244
1245 2012-05-21 Patrick Marlier <[email protected]>
1246
1247 * eh_cpp.cc: Fix __cxa_end_catch declaration.
1248
1249 2012-05-16 H.J. Lu <[email protected]>
1250
1251 * configure: Regenerated.
1252
1253 2012-04-04 H.J. Lu <[email protected]>
1254
1255 PR libitm/52854
1256 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
1257 for x86-64.
1258
1259 2012-04-03 Tristan Gingold <[email protected]>
1260
1261 * configure: Regenerate.
1262
1263 2012-03-31 H.J. Lu <[email protected]>
1264
1265 PR bootstrap/52812
1266 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1267
1268 2012-03-16 Bernhard Reutner-Fischer <[email protected]>
1269
1270 * testsuite/lib/libitm.exp: load fortran-modules.exp
1271
1272 2012-03-14 Rainer Orth <[email protected]>
1273
1274 * configure.tgt (*-*-irix6*): Remove.
1275
1276 2012-03-13 Torvald Riegel <[email protected]>
1277
1278 PR libitm/52526
1279 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
1280 wake-up.
1281
1282 2012-03-12 Rainer Orth <[email protected]>
1283
1284 * configure.tgt (*-*-osf*): Remove.
1285 * configure: Regenerate.
1286
1287 2012-03-05 Torvald Riegel <[email protected]>
1288
1289 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
1290 memtransfer/memset if size isn't larger than zero.
1291
1292 2012-03-02 Torvald Riegel <[email protected]>
1293
1294 * libitm.texi: Link to specification and add a usage example.
1295
1296 2012-02-24 Torvald Riegel <[email protected]>
1297
1298 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
1299 default dispatch for more than 1 thread to ml_wt.
1300
1301 2012-02-20 Torvald Riegel <[email protected]>
1302
1303 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
1304
1305 2012-02-20 Torvald Riegel <[email protected]>
1306
1307 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
1308
1309 2012-02-20 Torvald Riegel <[email protected]>
1310
1311 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
1312 serial mode corner cases made obsolete by prior gtm_rwlock changes.
1313 (gl_wt_dispatch.rollback): Same.
1314
1315 2012-02-20 Torvald Riegel <[email protected]>
1316
1317 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
1318
1319 2012-02-20 Torvald Riegel <[email protected]>
1320
1321 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
1322 for RfW src. Optimize number of calls to gtm_thr.
1323
1324 2012-02-20 Torvald Riegel <[email protected]>
1325
1326 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
1327 acquisition to ...
1328 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
1329 (default_dispatch): Make atomic.
1330 (GTM::gtm_thread::set_default_dispatch): Access atomically.
1331 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
1332 use decide_begin_dispatch() if default_dispatch might have changed.
1333 (GTM::gtm_thread::number_of_threads_changed): Initialize
1334 default_dispatch here.
1335
1336 2012-02-15 Iain Sandoe <[email protected]>
1337 Patrick Marlier <[email protected]>
1338
1339 PR libitm/52220
1340 * alloc_cpp.cc: No dummy definitions for darwin.
1341 * eh_cpp.cc: Likewise.
1342
1343 2012-02-14 Richard Henderson <[email protected]>
1344
1345 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
1346
1347 2012-02-14 Uros Bizjak <[email protected]>
1348
1349 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
1350
1351 2012-02-14 Torvald Riegel <[email protected]>
1352
1353 * libitm_i.h (GTM::gtm_rwlog_entry): New.
1354 (GTM::gtm_thread): Add read and write logs.
1355 (GTM::dispatch_ml_wt): Declare.
1356 * retry.cc (parse_default_method): Support ml_wt.
1357 * method-ml.cc: New file.
1358 * Makefile.am: Add method-ml.cc.
1359 * Makefile.in: Regenerate.
1360
1361 2012-02-14 Torvald Riegel <[email protected]>
1362
1363 * dispatch.h (GTM::abi_dispatch::supports): New.
1364 (GTM::method_group::reinit): New.
1365 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
1366 (GTM::gtm_thread::number_of_threads_changed): Check that the method
1367 supports the current situation.
1368
1369 2012-02-14 Torvald Riegel <[email protected]>
1370
1371 * util.cc (GTM::xcalloc): New.
1372 * common.h (GTM::xcalloc): Declare.
1373
1374 2012-02-14 Eric Botcazou <[email protected]>
1375
1376 * config/sparc/target.h (cpu_relax): Read from CC register.
1377 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
1378
1379 2012-02-14 Uros Bizjak <[email protected]>
1380
1381 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
1382
1383 2012-02-13 Eric Botcazou <[email protected]>
1384
1385 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
1386 * config/sparc/cacheline.h: New file.
1387 * config/sparc/target.h: Likewise.
1388 * config/sparc/sjlj.S: Likewise.
1389 * config/linux/sparc/futex_bits.h: Likewise.
1390
1391 2012-02-13 Eric Botcazou <[email protected]>
1392
1393 * configure.ac (link_itm): Fix comment.
1394 * configure: Regenerate.
1395 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
1396
1397 2012-01-31 Rainer Orth <[email protected]>
1398
1399 PR libitm/51822
1400 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
1401 Correct libgomp references.
1402
1403 2012-01-24 Torvald Riegel <[email protected]>
1404
1405 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
1406 wake-up.
1407
1408 2012-01-24 Uros Bizjak <[email protected]>
1409
1410 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
1411 end of structure.
1412 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
1413 offset values. Do not copy return address. Decrement stack
1414 by 56 bytes only.
1415 (GTM_longjump) [__x86_64__]: Update offset values.
1416
1417 2012-01-23 Uros Bizjak <[email protected]>
1418
1419 PR libitm/51830
1420 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
1421 the first function argument to %eax.
1422
1423 2012-01-23 Rainer Orth <[email protected]>
1424
1425 * libitm.h (_ITM_getThreadnum): Remove.
1426 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
1427
1428 2012-01-23 Rainer Orth <[email protected]>
1429
1430 * clearcap.map: New file.
1431 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1432 * configure.ac: Call it.
1433 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1434 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1435 * configure: Regenerate.
1436 * Makefile.in: Regenerate.
1437 * testsuite/Makefile.in: Regenerate.
1438
1439 2012-01-17 Rainer Orth <[email protected]>
1440
1441 PR libitm/51173
1442 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1443 include, exclude options.
1444
1445 2012-01-14 Torvald Riegel <[email protected]>
1446
1447 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1448 rolling back.
1449 * containers.h (GTM::vector::set_size): New.
1450
1451 2012-01-14 Torvald Riegel <[email protected]>
1452
1453 PR libitm/51855
1454 * config/generic/tls.h (GTM::mask_stack_top): New.
1455 (GTM::mask_stack_bottom): Declare.
1456 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1457 * local.cc (gtm_undolog::rollback): Filter out any updates that
1458 overlap the libitm stack. Add current transaction as parameter.
1459 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1460 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1461 * testsuite/libitm.c/stackundo.c: New test.
1462
1463 2012-01-10 Richard Henderson <[email protected]>
1464
1465 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1466 * eh_cpp.cc (_Unwind_DeleteException): Define for
1467 !HAVE_ELF_STYLE_WEAKREF.
1468
1469 2012-01-08 Torvald Riegel <[email protected]>
1470
1471 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1472 (GTM::gtm_thread::drop_references_undolog): Remove.
1473 (GTM::gtm_thread::commit_undolog,
1474 GTM::gtm_thread::rollback_undolog): Move to ...
1475 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1476 (GTM::gtm_undolog_entry): Remove.
1477 (GTM::gtm_thread): Adapt.
1478 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1479 (GTM::gtm_thread::trycommit): Adapt.
1480 * method-serial.cc (serial_dispatch::log): Adapt.
1481 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1482 (gl_wt_dispatch::store): Fix likely/unlikely.
1483 * containers.h (GTM::vector::resize): Add additional_capacity
1484 parameter and handle it.
1485 (GTM::vector::resize_noinline): New/adapt.
1486 (GTM::vector::push): New.
1487
1488 2012-01-06 Richard Henderson <[email protected]>
1489
1490 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1491 * config/linux/powerpc/futex_bits.h: New file.
1492 * config/powerpc/cacheline.h: New file.
1493 * config/powerpc/sjlj.S: New file.
1494 * config/powerpc/target.h: New file.
1495 * config/generic/asmcfi.h (cfi_offset): New.
1496 (cfi_restore, cfi_undefined): New.
1497
1498 2012-01-05 Aldy Hernandez <[email protected]>
1499
1500 PR other/51171
1501 * testsuite/libitm.c/reentrant.c: Remove xfail.
1502 (thread): Pass x to pure().
1503 From Patrik Marlier <[email protected]>.
1504
1505 2011-12-24 Torvald Riegel <[email protected]>
1506
1507 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1508 privatization safety if already in serial mode.
1509
1510 2011-12-24 Torvald Riegel <[email protected]>
1511
1512 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1513 finish_serial_upgrade parameter.
1514 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1515 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1516 Don't unset reader flag.
1517 (GTM::gtm_rwlock::write_upgrade_finish): New.
1518 * config/posix/rwlock.cc: Same.
1519 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1520 Declare.
1521 * config/posix/rwlock.h: Same.
1522 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1523 flag after commit or after rollback when restarting.
1524
1525 2011-12-24 Torvald Riegel <[email protected]>
1526
1527 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1528 (GTM::gtm_thread::try_commit): Changed memory order.
1529 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1530 as parameter.
1531 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1532 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1533 * config/linux/futex_bits.h (sys_futex0): Same.
1534 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1535 * config/linux/futex.h (futex_wait, futex_wake): Same.
1536 * config/linux/rwlock.h (gtm_rwlock::writers,
1537 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1538 ints.
1539 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1540 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1541 gtm_rwlock::write_unlock): Fix memory orders and fences.
1542 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1543 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1544 gtm_rwlock::write_unlock): Same.
1545 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1546 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1547 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1548 Add comments.
1549 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1550 gl_wt_dispatch::load, gl_wt_dispatch::store,
1551 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1552 orders and fences. Add comments.
1553
1554 2011-12-21 Jakub Jelinek <[email protected]>
1555
1556 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1557 * Makefile.in: Regenerated.
1558
1559 2011-12-17 Kaz Kojima <[email protected]>
1560
1561 * configure.tgt: Add sh* case.
1562 * config/sh/target.h: New file.
1563 * config/sh/sjlj.S: New file.
1564 * config/linux/sh/futex_bits.h: New file.
1565
1566 2011-12-14 Richard Henderson <[email protected]>
1567
1568 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1569 * config/arm/sjlj.S, config/arm/target.h: New files.
1570 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1571 (cfi_rel_offset): New.
1572 * config/linux/futex_bits.h: New file.
1573 * config/linux/futex.cc: Include futex_bits.h here...
1574 * config/linux/futex.h: ... not here.
1575 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1576 * configure.ac (ARCH_AM): New conditional.
1577 * Makefile.in, configure: Rebuild.
1578 * configure.tgt: Handle ARM.
1579
1580 2011-12-13 Richard Henderson <[email protected]>
1581
1582 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1583 signed/unsigned comparison werror.
1584
1585 * local_atomic: New file.
1586 * libitm_i.h: Include it.
1587 (gtm_thread::shared_state): Use atomic template.
1588 * beginend.cc (GTM::gtm_clock): Use atomic template.
1589 (global_tid): Use atomic template if 64-bit atomics available.
1590 (gtm_thread::gtm_thread): Update shared_state access.
1591 (gtm_thread::trycommit): Likewise.
1592 (choose_code_path): Update global_tid access.
1593 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1594 * stmlock.h (GTM::gtm_clock): Use atomic template.
1595 (gtm_get_clock, gtm_inc_clock): Update accesses.
1596 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1597 redundant __sync_synchronize after atomic shared_state access.
1598 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1599 (gtm_rwlock::write_lock_generic): Likewise.
1600 (gtm_rwlock::read_unlock): Likewise.
1601 * config/alpha/target.h (atomic_read_barrier): Remove.
1602 (atomic_write_barrier): Remove.
1603 * config/x86/target.h (atomic_read_barrier): Remove.
1604 (atomic_write_barrier): Remove.
1605
1606 2011-11-30 Richard Henderson <[email protected]>
1607
1608 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1609 * beginend.c (_ITM_abortTransaction): Update to match.
1610 (GTM::gtm_thread::restart): Likewise.
1611 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1612 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1613
1614 2011-11-23 Iain Sandoe <[email protected]>
1615
1616 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1617 * Makefile.in: Regenerate.
1618
1619 2011-11-22 Iain Sandoe <[email protected]>
1620
1621 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1622 * alloc_cpp.cc: Generate dummy functions if we don't
1623 HAVE_ELF_STYLE_WEAKREF.
1624 * eh_cpp.cc: Likewise.
1625 * configure: Regenerate.
1626 * aclocal.m4: Likewise.
1627 * config.h.in: Likewise.
1628 * Makefile.in: Likewise.
1629 * testsuite/Makefile.in: Likewise.
1630
1631 2011-11-22 Iain Sandoe <[email protected]>
1632
1633 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1634 __USER_LABEL_PREFIX__ for targets that use it.
1635 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
1636 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1637 in portability to non-elf targets.
1638 (GTM_longjmp): Likewise.
1639 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1640 where required.
1641
1642 2011-11-22 Iain Sandoe <[email protected]>
1643
1644 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1645 * testsuite/libitm.c/memset-1.c: Likewise.
1646
1647 2011-11-21 Andreas Tobler <[email protected]>
1648
1649 * configure: Regenerate.
1650
1651 2011-11-21 Rainer Orth <[email protected]>
1652
1653 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1654 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1655 * Makefile.am: Handle sun style versioning.
1656 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1657 * configure: Regenerate.
1658 * Makefile.in: Regenerate.
1659
1660 2011-11-18 Rainer Orth <[email protected]>
1661
1662 * config/generic/asmcfi.h: Fix comment.
1663 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1664 sequence without .hidden support, error for non-ELF targets.
1665 (GTM_longjmp) [__ELF__]: Only use .hidden if
1666 HAVE_ATTRIBUTE_VISIBILITY.
1667
1668 2011-11-17 Rainer Orth <[email protected]>
1669
1670 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1671 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1672 Dummy functions.
1673 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1674 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1675
1676 2011-11-16 Uros Bizjak <[email protected]>
1677
1678 PR bootstrap/51098
1679 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1680 * configure: Regenerate.
1681
1682 2011-11-14 H.J. Lu <[email protected]>
1683
1684 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1685
1686 2011-11-10 Rainer Orth <[email protected]>
1687
1688 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1689 .hidden.
1690 (.note.GNU-stack): Only use if __linux__.
1691 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1692 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1693 * testsuite/libitm.c/reentrant.c: Likewise.
1694 * testsuite/libitm.c/simple-2.c: Likewise.
1695 * testsuite/libitm.c/txrelease.c: Likewise.
1696 * testsuite/libitm.c++/static_ctor.C: Likewise.
1697
1698 2011-11-10 Richard Henderson <[email protected]>
1699
1700 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1701 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1702 * configure.ac (ARCH_X86_AVX): New conditional.
1703 * Makefile.in, configure: Rebuild.
1704
1705 2011-11-09 Richard Henderson <[email protected]>
1706
1707 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1708 * configure.ac: Use it.
1709 * config.h.in, configure: Rebuild.
1710 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1711
1712 2011-11-09 Richard Henderson <[email protected]>
1713
1714 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1715 * config/alpha/unaligned.h: Remove file.
1716 * config/generic/unaligned.h: Remove file.
1717 * config/x86/unaligned.h: Remove file.
1718 * config/generic/cachepage.h: Remove file.
1719 * config/posix/cachepage.cc: Remove file.
1720 * config/generic/cacheline.cc: Remove file.
1721 * config/x86/cacheline.cc: Remove file.
1722 * config/generic/cacheline.h (gtm_cacheline): Remove the
1723 store_mask, copy_mask, copy_mask_wb methods.
1724 * config/x86/cacheline.h: Likewise.
1725 * config/alpha/cacheline.h: Fall back to generic after setting size.
1726 * config/generic/tls.cc (gtm_mask_stack): Remove.
1727 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1728 (GTM_vpalignr_table): Remove.
1729 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1730 (GTM_pshift_table): Remove.
1731 * config/libitm_i.h: Don't include cachepage.h.
1732 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1733 * Makefile.in, testsuite/Makefile.in: Rebuild.
1734
1735 2011-11-09 Richard Henderson <[email protected]>
1736
1737 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1738 to emit branch prediction hint.
1739
1740 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1741 Protect .note.GNU-stack with __linux__.
1742
1743 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1744 * configure, aclocal.m4, config.h.in: Rebuild.
1745 * config/generic/asmcfi.h: New file.
1746 * config/x86/sjlj.S: Use it.
1747
1748 2011-11-08 Richard Henderson <[email protected]>
1749
1750 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1751
1752 2011-11-08 Richard Henderson <[email protected]>
1753
1754 * configure.tgt: Test correct directory for supported cpus.
1755
1756 * configure.ac: Exit if unsupported.
1757 * configure: Rebuild.
1758 * configure.tgt: Delete boilerplate from libgomp for unsupported
1759 targets. Set UNSUPPORTED for unsupported targets.
1760
1761 2011-11-08 Rainer Orth <[email protected]>
1762
1763 * configure.tgt: Handle i386 like i[456]86.
1764 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1765 take address.
1766 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1767 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1768
1769 2011-11-05 Aldy Hernandez <[email protected]>
1770
1771 * method-wbetl.cc: Update copyright notice.
1772 * aatree.cc: Same.
1773 * util.cc: Same.
1774 * libitm.h: Same.
1775 * memset.cc: Same.
1776 * eh_cpp.cc: Same.
1777 * barrier.tpl: Same.
1778 * useraction.cc: Same.
1779 * stmlock.h: Same.
1780 * memcpy.cc: Same.
1781 * common.h: Same.
1782 * config/generic/tls.cc: Same.
1783 * config/generic/cacheline.h: Same.
1784 * config/generic/cachepage.h: Same.
1785 * config/generic/cacheline.cc: Same.
1786 * config/generic/unaligned.h: Same.
1787 * config/x86/cacheline.h: Same.
1788 * config/x86/cacheline.cc: Same.
1789 * config/x86/unaligned.h: Same.
1790 * config/alpha/cacheline.h: Same.
1791 * config/alpha/unaligned.h: Same.
1792 * config/alpha/sjlj.S: Same.
1793 * config/posix/cachepage.cc: Same.
1794 * config/linux/futex.h: Same.
1795 * config/linux/alpha/futex_bits.h: Same.
1796
1797 2011-11-04 Torvald Riegel <[email protected]>
1798
1799 * libitm.texi: No cover text and invariant sections.
1800
1801 2011-11-03 Richard Henderson <[email protected]>
1802
1803 * local_type_traits: New file.
1804 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1805
1806 2011-11-03 Richard Henderson <[email protected]>
1807
1808 * configure.ac: Don't test for gfortran.
1809 * configure: Rebuild.
1810
1811 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1812 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1813
1814 2011-11-03 Aldy Hernandez <[email protected]>
1815
1816 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1817 * testsuite/libitm.c/memset-1.c: Same.
1818 * testsuite/libitm.c/c.exp: Same.
1819 * testsuite/lib/libitm-dg.exp: Same.
1820 * testsuite/lib/libitm.exp: Same.
1821 * testsuite/libitm.c++/c++.exp: Same.
1822
1823 2011-11-03 Aldy Hernandez <[email protected]>
1824
1825 * testsuite/config/default.exp: Update copyright date.
1826 * configure.ac: Add copyright info.
1827 * configure.tgt: Same.
1828
1829 2011-11-03 Aldy Hernandez <[email protected]>
1830
1831 * testsuite/libitm.c/reentrant.c: XFAIL.
1832 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1833
1834 2011-10-29 Torvald Riegel <[email protected]>
1835
1836 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1837 handle aborts.
1838 (_ITM_abortTransaction): Handle aborts of outer transactions.
1839 * libitm_i.h: Same.
1840 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1841 * libitm.texi: Document aborts of outer transactions.
1842 * testsuite/libitm.c/cancel.c: New file.
1843
1844 2011-10-19 Torvald Riegel <[email protected]>
1845
1846 * testsuite/*: Change __transaction to __transaction_atomic or
1847 __transaction_relaxed.
1848
1849 2011-10-19 Torvald Riegel <[email protected]>
1850
1851 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1852 (gtm_thr): Same.
1853
1854 2011-10-19 Torvald Riegel <[email protected]>
1855
1856 * libitm_i.h: Add gl_wt dispatch.
1857 * retry.cc (parse_default_method): Same.
1858 * method-gl.cc: New file.
1859 * Makefile.am: Use method-gl.cc.
1860 * Makefile.in: Rebuild.
1861
1862 2011-10-19 Torvald Riegel <[email protected]>
1863
1864 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1865 safety if requested by a TM method.
1866 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1867 privatization safety.
1868 * method-serial.cc: Same.
1869
1870 2011-10-19 Torvald Riegel <[email protected]>
1871
1872 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1873 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1874 undolog-related member functions from *_local to *_undolog.
1875 * local.cc (gtm_thread::commit_undolog): Same.
1876 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1877 (GTM::gtm_thread::rollback): Roll back undolog before
1878 dispatch-specific rollback.
1879
1880 2011-10-19 Torvald Riegel <[email protected]>
1881
1882 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1883 re-initialization of the current method group.
1884 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1885
1886 2011-10-19 Torvald Riegel <[email protected]>
1887
1888 * alloc.cc (commit_allocations_2): Do not free transaction-local
1889 memory when committing a nested transaction.
1890
1891 2011-10-19 Torvald Riegel <[email protected]>
1892
1893 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1894 serial-irrevocable dispatch, not serial.
1895
1896 2011-10-19 Torvald Riegel <[email protected]>
1897
1898 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1899 declarations.
1900 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1901 * method-serial.cc: Implement begin_or_restart().
1902 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1903 dispatch-specific begin_or_restart().
1904 (GTM::gtm_thread::restart): Same.
1905
1906 2011-08-23 Torvald Riegel <[email protected]>
1907
1908 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1909 restarting without switching to serial mode.
1910 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1911 transaction state. Choose closed-nesting alternative if available.
1912 (GTM::gtm_thread::set_default_dispatch): New.
1913 (parse_default_method): New.
1914 (GTM::gtm_thread::number_of_threads_changed): New.
1915 * method-serial.cc (GTM::serial_mg): New method group class.
1916 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1917 fini.
1918 (GTM::serial_dispatch): Same.
1919 (GTM::serialirr_onwrite_dispatch): Same.
1920 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1921 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1922 registered threads.
1923 (GTM::gtm_thread::gtm_thread): Same.
1924 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1925 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1926 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1927 choose dispatch but set state according to dispatch here.
1928 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1929 (GTM::method_group): New class.
1930 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1931 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1932 * libitm.texi: Document TM methods, method groups, method life cycle.
1933 Rename method sets to method groups.
1934
1935 2011-08-23 Torvald Riegel <[email protected]>
1936
1937 * config/x86/tls.h: Moved to ...
1938 * config/linux/x86/tls.h: ... here.
1939
1940 2011-08-23 Torvald Riegel <[email protected]>
1941
1942 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1943 Add X32 support.
1944 * config/x86/sjlj.S: Same.
1945
1946 2011-08-19 Torvald Riegel <[email protected]>
1947
1948 * config/linux/rwlock.h: New file.
1949 * config/linux/rwlock.c: New file.
1950 * configure.ac: Reenable futex support (undo SVN rev 157758).
1951 * Makefile.am: Same.
1952 * configure.tgt: Same.
1953 * config/linux/alpha/futex_bits.h: Same.
1954 * config/linux/futex.h: Same. Return number of woken processes.
1955 * config/linux/futex.cc: Same.
1956 (futex_wait): Remove spinning.
1957 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1958 Use __x86_64__ instead of __LP64__.
1959 * aclocal.m4: Include generic futex checks.
1960 * configure: Rebuild.
1961 * Makefile.in: Rebuild.
1962 * testsuite/Makefile.in: Rebuild.
1963 * beginend.cc: Include pthread.h.
1964 * config/posix/cachepage.cc: Same.
1965
1966 2011-08-12 Torvald Riegel <[email protected]>
1967
1968 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1969 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1970 (set_gtm_thr): New.
1971 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1972 (set_gtm_thr): New.
1973 (GTM::gtm_thread::thread_num): Removed.
1974 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1975 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1976 tx-to-thread renaming.
1977 * beginend.cc: Adapted to tx-to-thread renaming.
1978 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1979 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1980 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1981 gtm_transaction to gtm_thread.
1982 (_ITM_getThreadnum): Removed. Not supported anymore.
1983 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1984 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1985 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1986 gtm_tx-to-gtm_thr renaming if necessary.
1987 * eh_cpp.cc: Same.
1988 * local.cc: Same.
1989 * retry.cc: Same.
1990 * clone.cc: Same.
1991 * alloc.cc: Same.
1992 * alloc_c.cc: Same.
1993 * alloc_cpp.cc: Same.
1994 * method-serial.cc: Same.
1995 * config/generic/tls.cc: Same.
1996 * config/posix/rwlock.h (gtm_rwlock): Same.
1997 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1998
1999 2011-08-12 Torvald Riegel <[email protected]>
2000
2001 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
2002 implementation.
2003 (gtm_rwlock::read_unlock): Same.
2004 (gtm_rwlock::write_lock_generic): New. Generalized from ...
2005 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
2006 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
2007 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
2008 w_upgrade. Replaced by per-transaction flags (in shared_state).
2009 Added c_confirmed_writers.
2010 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
2011 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
2012 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2013 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
2014 * beginend.cc (GTM::gtm_transaction::begin_transaction,
2015 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
2016 * libitm.texi: Document locking conventions and implementations in
2017 libitm.
2018
2019 2011-08-12 Torvald Riegel <[email protected]>
2020
2021 * libitm_i.h (next_tx): Add list of all threads' transaction.
2022 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
2023 transaction with list of transactions and ...
2024 (thread_exit_handler): ... deregister here.
2025 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
2026 * config/x86/target.h: Same.
2027
2028 2011-08-12 Torvald Riegel <[email protected]>
2029
2030 * testsuite/libitm.c++/static_ctor.C: New file.
2031
2032 2011-08-12 Torvald Riegel <[email protected]>
2033
2034 * testsuite/libitm.c/reentrant.c: New file.
2035
2036 2011-08-12 Torvald Riegel <[email protected]>
2037
2038 * config/generic/tls.h: Remove the free list for transactions and ...
2039 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
2040 (GTM::gtm_transaction::operator delete): ... and release here.
2041 (thread_exit_handler): New. Delete tx when thread terminates.
2042 (thread_exit_init): New.
2043 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
2044 * testsuite/libitm.c/txrelease.c: New file.
2045
2046 2011-08-12 Torvald Riegel <[email protected]>
2047
2048 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
2049 * testsuite/libitm.c/notx.c: New file.
2050
2051 2011-08-12 Torvald Riegel <[email protected]>
2052
2053 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
2054 * libitm_i.h (local_tid): ... to here.
2055 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2056 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
2057
2058 2011-08-12 Torvald Riegel <[email protected]>
2059
2060 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
2061 serialirr_onwrite_dispatch as new default for now.
2062 * method-serial.cc (serialirr_onwrite_dispatch): New.
2063 (GTM::dispatch_serialirr_onwrite): New.
2064 * libitm_i.h: Same.
2065
2066 2011-08-12 Torvald Riegel <[email protected]>
2067
2068 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
2069 * query.cc (_ITM_getTransactionId): There is no active transaction if
2070 the current nesting level is zero.
2071
2072 2011-07-28 Torvald Riegel <[email protected]>
2073
2074 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
2075 rollback.
2076
2077 2011-07-28 Torvald Riegel <[email protected]>
2078
2079 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
2080 transaction properties from the caller instead of from the
2081 transaction object.
2082 * libitm_i.h: Same.
2083 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
2084
2085 2011-07-28 Torvald Riegel <[email protected]>
2086
2087 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
2088 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
2089 * dispatch.h: Same.
2090 * method-serial.cc: Same.
2091 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
2092 flat nesting as default, and closed nesting on demand.
2093 (GTM::gtm_transaction::rollback): Same.
2094 (_ITM_abortTransaction): Same.
2095 (GTM::gtm_transaction::restart): Same.
2096 (GTM::gtm_transaction::trycommit): Same.
2097 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
2098 (choose_code_path): New.
2099 (GTM::gtm_transaction_cp::save): New.
2100 (GTM::gtm_transaction_cp::commit): New.
2101 * query.cc (_ITM_inTransaction): Support flat nesting.
2102 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
2103 (GTM::gtm_transaction): Support flat and closed nesting.
2104 * alloc.cc (commit_allocations_2): New.
2105 (commit_cb_data): New helper struct.
2106 (GTM::gtm_transaction::commit_allocations): Handle nested
2107 commits/rollbacks.
2108 * libitm.texi: Update user action section, add description of nesting.
2109
2110 2011-07-28 Torvald Riegel <[email protected]>
2111
2112 * libitm_i.h: Add closed nesting as restart reason.
2113 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
2114
2115 2011-07-28 Torvald Riegel <[email protected]>
2116
2117 * useraction.cc: Use vector instead of list to store actions.
2118 Also support partial rollbacks for closed nesting.
2119 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
2120 * beginend.cc: Same.
2121
2122 2011-07-28 Torvald Riegel <[email protected]>
2123
2124 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
2125 closed_nesting flags, as well as a closed nesting alternative.
2126 * method-serial.cc: Same.
2127 (serial_dispatch): Renamed to serialirr_dispatch.
2128 (GTM::dispatch_serialirr): Same.
2129 (serial_dispatch_ul): Renamed to serial_dispatch.
2130 (GTM::dispatch_serial): Same.
2131
2132 2011-07-28 Torvald Riegel <[email protected]>
2133
2134 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
2135
2136 2011-07-28 Torvald Riegel <[email protected]>
2137
2138 * aatree.h (aa_tree::remove): New.
2139 (aa_tree::operator new): Add placement new.
2140
2141 2011-07-02 Torvald Riegel <[email protected]>
2142
2143 * containers.h: New file.
2144 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
2145 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
2146 * common.h: ... to here.
2147 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
2148 * local.cc: Same.
2149
2150 2011-06-30 Torvald Riegel <[email protected]>
2151
2152 * libitm_i.h (STATE_ABORTING): Remove.
2153 * beginend.cc (_ITM_abortTransaction): Same.
2154 (GTM::gtm_transaction::trycommit_and_finalize): Same.
2155 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
2156 (_ITM_rollbackTransaction): Remove.
2157 * beginend.cc: Same.
2158 * libitm.map: Same.
2159 * libitm.texi: Document these ABI changes.
2160
2161 2011-06-30 Torvald Riegel <[email protected]>
2162
2163 * libitm.texi: New file.
2164 * Makefile.am: Add libitm.texi.
2165 * Makefile.in: Rebuild.
2166
2167 2011-06-30 Torvald Riegel <[email protected]>
2168
2169 * libitm_i.h: Move parts to common.h and dispatch.h.
2170 * common.h: New file.
2171 * dispatch.h: New file, new dispatch class.
2172 Rename GTM::abi_dispatch::lock_type to ls_modifier.
2173 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
2174 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
2175 decision to retry.cc.
2176 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
2177 only.
2178 (GTM::gtm_transaction::decide_begin_dispatch): Same.
2179 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
2180 logging.
2181 * barrier.cc: Use new barriers definitions.
2182 (abi_dispatch::memmove_overlap_check): New.
2183 * config/x86/x86_sse.cc: Same.
2184 * config/x86/x86_avx.cc: Same.
2185 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
2186 memcpy.cc.
2187 * Makefile.in: Rebuild.
2188 * method-readonly.cc: Remove.
2189 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
2190 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
2191
2192 2011-06-30 Torvald Riegel <[email protected]>
2193
2194 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
2195 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
2196 * testsuite/libitm.c/dropref-2.c: Same.
2197 * testsuite/libitm.c/dropref.c: Same.
2198
2199 2011-06-30 Torvald Riegel <[email protected]>
2200
2201 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
2202 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
2203 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
2204 * alloc_c.cc: Same.
2205 * barrier.tpl: Same.
2206 * beginend.c: Same.
2207 * config/generic/tls.h: Same.
2208 * config/x86/tls.h: Same.
2209 * libitm_i.h: Same.
2210 * memcpy.cc: Same.
2211 * memset.cc: Same.
2212 * method-readonly.cc: Same.
2213 * method-serial.cc: Same.
2214 * method-wbetl.cc: Same.
2215 * retry.cc: Same.
2216
2217 2011-03-03 Richard Henderson <[email protected]>
2218
2219 * config/posix/rwlock.cc (write_upgrade): Add missing case.
2220 From Patrik Marlier <[email protected]>.
2221
2222 2011-02-03 Richard Henderson <[email protected]>
2223
2224 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
2225 * configure.ac: Use it.
2226 * configure, config.h.in: Rebuild.
2227 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
2228 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
2229 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
2230 * libitm.map: Use wildcards to match size_t mangling.
2231
2232 2010-12-14 Richard Henderson <[email protected]>
2233
2234 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
2235 blocks of TIDs per thread.
2236 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
2237 (setup_gtm_thr): Return the thread structure.
2238 * config/x86/tls.h (setup_gtm_thr): Likewise.
2239
2240 2010-12-14 Richard Henderson <[email protected]>
2241
2242 * clone.cc (table_lock): Remove.
2243 (find_clone): Don't take it.
2244 (ExcludeTransaction): New helper class.
2245 (_ITM_registerTMCloneTable): Use it.
2246 (_ITM_deregisterTMCloneTable): Likewise.
2247
2248 2010-12-14 Richard Henderson <[email protected]>
2249
2250 * config/x86/tls.h: New file.
2251
2252 2010-07-15 Richard Henderson <[email protected]>
2253
2254 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
2255 * Makefile.in: Rebuild.
2256
2257 2010-07-13 Aldy Hernandez <[email protected]>
2258
2259 * method-wbetl.cc (trydropreference): Fix source line.
2260
2261 2010-07-13 Aldy Hernandez <[email protected]>
2262
2263 * libitm.h: Add comment.
2264 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
2265
2266 2010-07-07 Aldy Hernandez <[email protected]>
2267
2268 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
2269 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
2270 available, use pthread mutexes.
2271 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
2272 * config.h.in: Regenerate.
2273 * configure: Regenerate.
2274
2275 2010-07-06 Aldy Hernandez <[email protected]>
2276
2277 * libitm.h (ITM_PURE): Define.
2278 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
2279
2280 2010-06-28 Aldy Hernandez <[email protected]>
2281
2282 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
2283 (validate): Add comment.
2284 (trydropreference): New.
2285 * method-readonly.cc (class readonly_dispatch): Add
2286 trydropreference.
2287 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
2288 Call trydropreference().
2289 * libitm.h (_ITM_dropReferences): Remove const attribute.
2290 * method-serial.cc (class serial_dispatch): Add trydropreference.
2291 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
2292
2293 2010-06-28 Aldy Hernandez <[email protected]>
2294
2295 * memcpy.cc (do_memcpy): Comment.
2296
2297 2010-06-25 Aldy Hernandez <[email protected]>
2298
2299 * barrier.tpl: Add comments throughout.
2300
2301 2010-06-24 Aldy Hernandez <[email protected]>
2302
2303 * method-wbetl.cc (struct w_entry): Add comments.
2304 (trycommit): Same.
2305 (rollback): Same.
2306
2307 2010-06-24 Aldy Hernandez <[email protected]>
2308
2309 * alloc_c.cc (_ITM_dropReferences): New.
2310 * libitm.map (_ITM_dropReferences): Add.
2311 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
2312 * libitm_i.h (struct gtm_transaction): Declare
2313 drop_references_allocations and drop_references_local.
2314 * local.cc (rollback_local): Ignore memory when applicable.
2315 (drop_references_local): New.
2316
2317 2010-06-23 Richard Henderson <[email protected]>
2318
2319 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
2320 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
2321 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
2322 * config/alpha/target.h: Likewise.
2323 * config/generic/tls.cc (gtm_mask_stack): Use it.
2324
2325 2010-06-23 Richard Henderson <[email protected]>
2326
2327 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
2328 a mutex instead of trying a lock-free compare-and-swap on the list.
2329 (gtm_cacheline_page::operator delete): Likewise.
2330
2331 2010-06-16 Richard Henderson <[email protected]>
2332
2333 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
2334 that overlap the libitm stack.
2335 * barrier.tpl: Mark incoming stack.
2336 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
2337 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
2338 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
2339 * memcpy.cc, memset.cc: Likewise.
2340 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
2341 * config/generic/tls.h (gtm_thread): Add stack_top member.
2342 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
2343 * libitm_i.h (gtm_mask_stack): Declare.
2344 * config/generic/tls.cc: New file.
2345 * Makefile.am (libitm_la_SOURCES): Add it.
2346 (AM_CXXFLAGS): Turn off exceptions.
2347 * Makefile.in: Rebuild.
2348
2349 2010-06-16 Richard Henderson <[email protected]>
2350
2351 * alloc.cc (struct gtm_alloc_action): Move definition ...
2352 * libitm_i.h: ... here.
2353 (class gtm_transaction): Declare new and delete.
2354 * beginend.cc (alloc_tx): Reformulate as operator new.
2355 (free_tx): Reformulate as operator delete.
2356 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
2357
2358 2010-06-11 Richard Henderson <[email protected]>
2359
2360 * clone.cc (clone_entry_compare): Fix typo.
2361 From Patrik Marlier <[email protected]>.
2362
2363 2010-05-13 Richard Henderson <[email protected]>
2364
2365 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
2366 in extern "C".
2367
2368 2010-05-07 Aldy Hernandez <[email protected]>
2369
2370 * libitm_i.h (struct gtm_transaction): Remove
2371 get_allocation_size.
2372 (record_allocation): Remove size parameter.
2373 * libitm.map (_ITM_realloc): Remove.
2374 * alloc_c.cc (_ITM_realloc): Remove.
2375 (_ITM_malloc): Remove size argument to record_allocation.
2376 (_ITM_calloc): Same.
2377 * alloc_cpp.cc (_ZGTtnwm): Same.
2378 (_ZGTtnwmRKSt9nothrow_t): Same.
2379 (_ZGTtnam): Same.
2380 (_ZGTtnamRKSt9nothrow_t): Same.
2381 * alloc.cc (struct gtm_alloc_action): Remove size.
2382 (get_allocation_size): Remove.
2383 (commit_allocations): Add comment.
2384 (record_allocation): Remove size parameter.
2385 (forget_allocation): Remove set of size.
2386
2387 2010-04-19 Aldy Hernandez <[email protected]>
2388
2389 * Makefile.am (abi_version): New.
2390 (AM_CXXFLAGS): Pass abi_version.
2391 * Makefile.in: Regenerate.
2392 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
2393
2394 2010-04-06 Aldy Hernandez <[email protected]>
2395
2396 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
2397 _ITM_getTMCloneOrIrrevokable.
2398 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
2399 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
2400
2401 2010-03-26 Aldy Hernandez <[email protected]>
2402
2403 * configure.ac: Remove Linux futex support.
2404 * configure.tgt (config_path): Same.
2405 * Makefile.am: Same.
2406 * config/linux: Remove entire directory.
2407 * configure: Rebuild.
2408 * Makefile.in: Rebuild.
2409 * testsuite/Makefile.in: Rebuild.
2410
2411 2010-03-09 Aldy Hernandez <[email protected]>
2412
2413 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
2414 switching to serial mode.
2415 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
2416
2417 2010-03-03 Aldy Hernandez <[email protected]>
2418
2419 * configure.tgt: Add emacs -*- tags.
2420 * barrier.tpl: Same.
2421
2422 2010-02-23 Aldy Hernandez <[email protected]>
2423
2424 * Makefile.am: Rename serial.cc to method-serial.cc.
2425 * Makefile.in: Regenerate with automake 1.11.1.
2426 * testsuite/Makefile.in: Same.
2427 * aclocal.m4: Regenerate with aclocal 1.11.1.
2428 * method-serial.cc: Rename from serial.cc.
2429 * libitm_i.h (struct gtm_transaction): Update comment on
2430 serialirr_mode.
2431
2432 2010-02-22 Aldy Hernandez <[email protected]>
2433
2434 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2435 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2436
2437 2010-02-11 Aldy Hernandez <[email protected]>
2438
2439 * configure: Rebuild.
2440
2441 2009-11-12 Richard Henderson <[email protected]>
2442
2443 * Rewrite everything in C++.
2444
2445 2009-11-03 Richard Henderson <[email protected]>
2446
2447 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2448 * Makefile.am (libitm_la_SOURCES): Add them.
2449 * configure.ac (ARCH_X86): New conditional.
2450 * Makefile.in, configure: Rebuild.
2451 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2452 Move futex setup into "other system configury" case.
2453 * local.c (rollback_local): Merge into ...
2454 (GTM_rollback_local): ... here.
2455 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2456 (_ITM_LB): Define as an alias to GTM_LB.
2457
2458 2009-11-03 Richard Henderson <[email protected]>
2459
2460 * method-readonly.c: New file.
2461 * Makefile.am (libitm_la_SOURCES): Add it.
2462 * Makefile.in: Rebuild.
2463 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2464 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2465 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2466 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2467 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2468 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2469 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2470 gtm_get_clock, gtm_inc_clock): New.
2471 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2472 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2473 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2474 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2475 replace uses with new libitm_i.h symbols.
2476 (dispatch_wbetl): Rename from wbetl_dispatch.
2477 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2478 away from dispatch_readonly; abort if the beginTransaction call
2479 asserted that the transaction was readonly.
2480
2481 2009-11-03 Richard Henderson <[email protected]>
2482
2483 * memset.c: New file.
2484 * Makefile.am (libitm_la_SOURCES): Add it.
2485 * Makefile.in: Rebuild.
2486 * testsuite/libitm.c/memset-1.c: New.
2487
2488 2009-11-03 Richard Henderson <[email protected]>
2489
2490 * dispatch.c: Remove file.
2491 * useraction.c (struct gtm_user_action): Move from libitm.h.
2492 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2493 (serial_memset, serial_memmove, serial_memcpy): Remove.
2494 (serial_W*, serial_R*): Remove.
2495 (serial_dispatch): Update to match.
2496 * configure.ac: Move Werror down below configure checks. Don't
2497 check for sys/loadavg.h, do check for malloc.h. Don't check for
2498 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2499 Use GCC_AC_FUNC_MMAP_BLACKLIST
2500 * libitm.h: Split out all internal items to...
2501 * libitm_i.h: ... here. New file.
2502 * copymask.c: New file.
2503 * local.c (struct gtm_local_undo): Move from libitm.h.
2504 (GTM_alloc_local): Rename from alloc_local; export.
2505 * memcpy.c: New file.
2506 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2507 * config/posix/page.c: New file.
2508 * config/posix/target_tls.h: Remove file.
2509 * barrier.c: New file.
2510 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2511 copymask.c, page.c.
2512 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2513 * method-wbetl.c: Rewrite for new cacheline methods.
2514 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2515
2516 * config/alpha/sjlj.S: Fix typo.
2517 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2518 * config/alpha/copymask.c: New file.
2519 * config/alpha/target.h (CACHELINE_SIZE): New.
2520 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2521
2522 * config/x86/target_i.h: Copy functions from x86/target.h.
2523 * config/x86/copymask.c: New file.
2524 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2525 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2526 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2527 * config/x86/target_tls.h: Move contents to target_i.h.
2528
2529 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2530 * testsuite/libitm.c/memcpy-1.c: New.
2531
2532 2009-10-22 Richard Henderson <[email protected]>
2533
2534 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2535 (AM_CCASFLAGS): New.
2536 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2537 saving/restoring _AC_ARG_VAR_PRECIOUS.
2538 * Makefile.in, aclocal.m4, config.h.in, configure,
2539 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2540
2541 2009-10-22 Richard Henderson <[email protected]>
2542
2543 * testsuite/*: Update for new compiler syntax.
2544
2545 2009-10-21 Richard Henderson <[email protected]>
2546
2547 * libitm.h (_ITM_abortReason): Add outerAbort.
2548
2549 2009-08-03 Richard Henderson <[email protected]>
2550
2551 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2552 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2553 * method-wbetl.c (struct w_entry): Remove mask.
2554 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2555 adjust all callers.
2556
2557 2009-07-22 Richard Henderson <[email protected]>
2558
2559 * eh_cpp.c: New file.
2560 * Makefile.am (libitm_la_SOURCES): Add it.
2561 * Makefile.in: Rebuild.
2562 * beginend.c (GTM_rollback_transaction): Undo exception state.
2563 (GTM_trycommit_transaction): Mark inline.
2564 (GTM_trycommit_and_finalize_transaction): Split out from ...
2565 (_ITM_commitTransaction): ... here.
2566 (_ITM_commitTransactionEH): New function.
2567 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2568 cxa_unthrown, eh_in_flight; reorder.
2569
2570 * testsuite/libitm.c++/c++.exp: New.
2571 * testsuite/libitm.c++/eh-1.C: New.
2572
2573 * aatree.c (aa_free): Remove REGPARM.
2574 * aatree.h: Remove all REGPARM.
2575
2576 2009-07-18 Richard Henderson <[email protected]>
2577
2578 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2579 * Makefile.am (libitm_la_SOURCES): Add them.
2580 * Makefile.in: Rebuild.
2581 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2582 (GTM_trycommit_transaction): Likewise.
2583 * libitm.h: Include aatree.h
2584 (struct gtm_alloc_action): New.
2585 (struct gtm_transaction): Add alloc_actions.
2586 (GTM_record_allocation, GTM_forget_allocation): Declare.
2587 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2588 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2589 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2590 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2591 _ZGTtdaPvRKSt9nothrow_t): Export.
2592
2593 2009-07-18 Richard Henderson <[email protected]>
2594
2595 * target_tls.h: Move ...
2596 * config/posix/target_tls.h: ... here.
2597
2598 2009-07-07 Richard Henderson <[email protected]>
2599
2600 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2601
2602 2009-07-07 Richard Henderson <[email protected]>
2603
2604 * Update to GPL3.
2605
2606 2009-07-07 Richard Henderson <[email protected]>
2607
2608 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2609 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2610
2611 * configure.tgt: Don't use -ftls-model for x86 linux.
2612 * libitm.h: Include target.h after standard includes.
2613 (_gtm_thr): Rename from gtm_thr.
2614 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2615 (gtm_disp, set_gtm_disp): New.
2616 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2617 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2618 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2619
2620 2009-07-07 Richard Henderson <[email protected]>
2621
2622 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2623
2624 2009-07-06 Richard Henderson <[email protected]>
2625
2626 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2627 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2628 (_ITM_beginTransaction): Take variadic arguments.
2629 (_ITM_registerThrownObject): Declare.
2630 * beginend.c, serial.c: Update.
2631 * libitm.map: Add _ITM_registerThrownObject.
2632
2633 2009-01-28 Richard Henderson <[email protected]>
2634
2635 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2636 * Makefile.in: Rebuild.
2637 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2638 (GTM_restart_transaction): Fix uninstrumented code check.
2639 * retry.c (GTM_decide_retry_strategy): Add serial check.
2640 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2641 automatically go irrevokable when in serial mode.
2642 * clone.c: New file.
2643 * libitm.h, libitm.map: Update.
2644
2645 2009-01-27 Richard Henderson <[email protected]>
2646
2647 * Makefile.am (LTCCASCOMPILE): Define.
2648 (libitm_la_SOURCES): Add methid-wbetl.c.
2649 * testsuite/Makefile.am: New
2650 * configure.ac: Add testsuite/Makefile.
2651 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2652 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2653 (_ITM_abortTransaction): Finalize implementation method; pass
2654 transaction properties to longjmp.
2655 (GTM_restart_transaction): Split out from ...
2656 (_ITM_commitTransaction): ... here.
2657 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2658 Move to config/x86/target.h.
2659 * config/linux/alpha/futex_bits.h: New.
2660 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2661 * config/x86/target.h: Disable target types for 32-bit.
2662 * config/alpha/sjlj.S, config/alpha/target.h: New.
2663 * libitm.h (struct gtm_dispatch): Add init, fini.
2664 (enum restart_reason): New.
2665 (struct gtm_transaction): Add method and restarts.
2666 * retry.c (GTM_decide_retry_strategy): Implement.
2667 * serial.c (serial_init, serial_fini): New.
2668 (GTM_serialmode): Finialize outgoing method.
2669 * method-wbetl.c: New.
2670
2671 2008-12-09 Richard Henderson <[email protected]>
2672
2673 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2674 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2675 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2676 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2677 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2678 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2679 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2680 * serial.c (serial_R##T, serial_W##T): Likewise.
2681
2682 2008-11-21 Richard Henderson <[email protected]>
2683
2684 * Initial commit.
2685
2686 Copyright (C) 2008-2025 Free Software Foundation, Inc.
2687
2688 Copying and distribution of this file, with or without modification,
2689 are permitted in any medium without royalty provided the copyright
2690 notice and this notice are preserved.