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