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