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