]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Simple patch only add assumed-rank to the list of possible attributes.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
885ef72f
GA
12020-05-29 H.J. Lu <hjl.tools@gmail.com>
2
3 PR bootstrap/95413
4 * configure: Regenerated.
5
4c1a5d8b
L
62020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7
8 PR bootstrap/95147
9 * configure: Regenerated.
10
8d286dd1
L
112020-05-14 H.J. Lu <hongjiu.lu@intel.com>
12
13 * configure: Regenerated.
14
f0de5d83
NS
152020-05-12 Nathan Sidwell <nathan@acm.org>
16
17 Fix throw specifiers on interface.
18 * libitm/libitm.h (_ITM_NOTHROW): Define.
19 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
20 (_ITM_cxa_begin_catch): Use it.
21 * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
22 __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
23 __cxa_get_globals.
24 (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
25 (_ITM_cxa_begin_catch): Likewise.
26
1136ba01
NS
272020-05-05 Nathan Sidwell <nathan@acm.org>
28
29 * testsuite/lib/libitm.exp (libitm_init): Add
30 -fdiagnostics-color=never to options.
31
02ce382c
SL
322020-02-12 Sandra Loosemore <sandra@codesourcery.com>
33
34 PR libstdc++/79193
35 PR libstdc++/88999
36
37 * configure: Regenerated.
38
e8e66971
MR
392020-01-24 Maciej W. Rozycki <macro@wdc.com>
40
41 * configure.ac: Handle `--with-toolexeclibdir='.
42 * Makefile.in: Regenerate.
43 * aclocal.m4: Regenerate.
44 * configure: Regenerate.
45 * testsuite/Makefile.in: Regenerate.
46
7e7065b9
JJ
472020-01-01 Jakub Jelinek <jakub@redhat.com>
48
8d9254fc
JJ
49 Update copyright years.
50
7e7065b9
JJ
51 * libitm.texi: Bump @copying's copyright year.
52
00484365
SN
532019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
54
55 PR libgomp/91938
56 * configure.tgt: Avoid IE tls on *-*-musl*.
57
e9085da5
MR
582019-09-27 Maciej W. Rozycki <macro@wdc.com>
59
60 * configure: Regenerate.
61
b1e21e5a
CL
622019-09-10 Christophe Lyon <christophe.lyon@st.com>
63
a360a359
CL
64 * config/arm/sjlj.S (ldaddr): Add FDPIC support.
65
662019-09-10 Christophe Lyon <christophe.lyon@st.com>
67
68 * configure.tgt: Handle *-*-uclinux*.
69 * configure: Regenerate.
b1e21e5a 70
3c086f8d
FW
712019-09-06 Florian Weimer <fweimer@redhat.com>
72
73 * configure: Regenerate.
74
c6c2d1bc
CLT
752019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
76
77 PR other/79543
78 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
79 scanning to conform to the GNU Coding Standards.
80 * configure: Regenerate.
81
061a799b
JJ
822019-05-03 Jakub Jelinek <jakub@redhat.com>
83
84 * Makefile.am (finclude): Remove.
85 * Makefile.in: Regenerated.
86
a5544970
JJ
872019-01-01 Jakub Jelinek <jakub@redhat.com>
88
89 Update copyright years.
90
3f27508c
JJ
912019-01-01 Jakub Jelinek <jakub@redhat.com>
92
93 * libitm.texi: Bump @copying's copyright year.
94
784417d1
JJ
952018-12-16 Jakub Jelinek <jakub@redhat.com>
96
97 PR c++/88482
98 * eh_cpp.cc (__cxa_throw): Change DEST argument type from
99 void * to void (*) (void *).
100 (_ITM_cxa_throw): Likewise.
101 * libitm.h (_ITM_cxa_throw): Likewise.
102 * libitm.texi (_ITM_cxa_throw): Likewise.
103
d1573fe0
PB
1042018-12-13 Peter Bergner <bergner@linux.ibm.com>
105
106 * config/powerpc/target.h (htm_available): Add support for
107 PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
108
22e05272
JM
1092018-10-31 Joseph Myers <joseph@codesourcery.com>
110
111 PR bootstrap/82856
112 * Makefile.am: Include multilib.am.
113 (AUTOMAKE_OPTIONS): Add info-in-builddir.
114 (CLEANFILES): Remove libitm.info.
115 * configure.ac: Remove AC_PREREQ.
116 * testsuite/Makefile.am (RUNTEST): Remove quotes.
117 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
118 Regenerate.
119
1f82422a
NK
1202018-10-30 Nicholas Krause <xerofoify@gmail.com>
121
a2e0398a 122 PR libitm/86293
1f82422a
NK
123 * method-serial.cc: Mark varible as potentially unused
124 to silence warning.
125
f6a9dfd3
ST
1262018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
127
128 * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
129 absolute relocation in a shared library.
130
97cad511
L
1312018-06-12 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR libitm/85988
134 * config/linux/x86/tls.h (SEG_READ): Use the offset of
135 __private_tm as base.
136 (SEG_WRITE): Likewise.
137 (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
138 (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
139 (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
140 (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
141 (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
142
b46b715d
JM
1432018-05-17 Jason Merrill <jason@redhat.com>
144
145 * beginend.cc (save): Disable -Werror=deprecated-copy.
146
9220b511
TV
1472018-05-02 Tom de Vries <tom@codesourcery.com>
148
149 PR testsuite/85106
150 * testsuite/lib/libitm.exp: Include scanltranstree.exp.
151
6c3c13c1
TV
1522018-05-02 Tom de Vries <tom@codesourcery.com>
153
154 PR testsuite/85106
155 * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
156
ffc2fc06
L
1572018-04-24 H.J. Lu <hongjiu.lu@intel.com>
158
159 * config/x86/sjlj.S (_ITM_beginTransaction): Add
160 (__CET__ & 2) != 0 check for shadow stack.
161 (GTM_longjmp): Likewise.
162
7b47ecf2
L
1632018-04-24 H.J. Lu <hongjiu.lu@intel.com>
164
165 * configure: Regenerated.
166
0ef9f21d
L
1672018-04-23 H.J. Lu <hongjiu.lu@intel.com>
168
169 PR target/85489
170 * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
171
a0e1df88
JJ
1722018-04-19 Jakub Jelinek <jakub@redhat.com>
173
174 * configure: Regenerated.
175
001ddaa8
DM
1762018-04-18 David Malcolm <dmalcolm@redhat.com>
177
178 PR jit/85384
179 * configure: Regenerate.
180
14e335ed
IT
1812018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
182
183 PR target/84148
184 * configure: Regenerate.
185
65e6aea3
JJ
1862018-01-03 Jakub Jelinek <jakub@redhat.com>
187
85ec4feb
JJ
188 Update copyright years.
189
65e6aea3
JJ
190 * libitm.texi: Bump @copying's copyright year.
191
c51081fc
IT
1922017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
193
194 * Makefile.in: Regenerate.
195 * acinclude.m4: Add enable.m4 and cet.m4.
196 * config/x86/sjlj.S: Include cet.h.
197 (_ITM_beginTransaction): Add _CET_ENDBR.
198 Save Shadow Stack pointer.
199 (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
200 * config/x86/target.h (struct gtm_jmpbuf):
201 Add new field for Shadow Stack pointer.
202 * configure: Regenerate.
203 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
204 * configure.ac: Update libtool_VERSION for x86.
205 * testsuite/Makefile.in: Regenerate.
206
cc03e55b
IT
2072017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
208
209 * libitm/config/x86/target.h: Add new field (ssp).
210 * libitm/config/x86/sjlj.S: Change offsets.
211
62ffe920
RO
2122017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
213
214 * testsuite/lib/libitm.exp: Load scanlang.exp.
215
5764ee3c
JW
2162017-04-03 Jonathan Wakely <jwakely@redhat.com>
217
218 * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
219
73aa401e
JJ
2202017-01-21 Jakub Jelinek <jakub@redhat.com>
221
222 PR other/79046
223 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
224 of cat to get version from BASE-VER file.
225 * testsuite/Makefile.in: Regenerated.
226
16a34ca6
UB
2272017-01-19 Uros Bizjak <ubizjak@gmail.com>
228
229 * config/x86/target.h (htm_available): Determine vendor from
230 __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
231
f8a94453
TR
2322017-01-18 Torvald Riegel <triegel@redhat.com>
233
234 * config/x86/target.h (htm_available): Add check for some processors
235 on which TSX is broken.
236
3c36aa6b
JJ
2372017-01-17 Jakub Jelinek <jakub@redhat.com>
238
239 PR other/79046
240 * configure.ac: Add GCC_BASE_VER.
241 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
242 get version from BASE-VER file.
243 * testsuite/Makefile.in: Regenerated.
244 * configure: Regenerated.
245 * Makefile.in: Regenerated.
246
8f56cb51
AM
2472017-01-04 Alan Modra <amodra@gmail.com>
248
249 * Makefile.in: Regenerate.
250 * testsuite/Makefile.in: Regenerate.
251
c1a9c369
JJ
2522017-01-01 Jakub Jelinek <jakub@redhat.com>
253
cbe34bb5
JJ
254 Update copyright years.
255
c1a9c369
JJ
256 * libitm.texi: Bump @copying's copyright year.
257
66dbcf2d
RO
2582016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
259
260 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
261 * aclocal.m4: Regenerate.
262 * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
263 LIBITM_CHECK_LINKER_HWCAP.
264
84c1b9d3
MK
2652016-11-15 Matthias Klose <doko@ubuntu.com>
266
267 * configure: Regenerate.
268
831698b8
L
2692016-04-19 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR libitm/70456
272 * util.cc (xmalloc): Use posix_memalign to allocate memory on
273 on cache line if requested.
274
edcbda7e
DV
2752016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
276
277 * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
278 function attribute to disable floating point in begin_transaction() on
279 S/390.
280 * beginend.cc (begin_transaction): Use
281 TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
282
6041f70a
TR
2832016-01-22 Torvald Riegel <triegel@redhat.com>
284
285 * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
286 boundary.
287 (htm_fastpath): Remove.
288 (gtm_thread::begin_transaction): Fix HTM fastpath.
289 (_ITM_commitTransaction): Adapt.
290 (_ITM_commitTransactionEH): Adapt.
291 * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
292 and accessors.
293 * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
294 * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
295 * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
296 * libitm/libitm_i.h (htm_fastpath): Remove declaration.
297 * libitm/method-serial.cc (htm_mg): Adapt.
298 (gtm_thread::serialirr_mode): Adapt.
299 * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
300
0b96ffdb
TR
3012016-01-21 Torvald Riegel <triegel@redhat.com>
302
303 * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
304 or AIX.
305
b1de98e3
RH
3062016-01-19 Richard Henderson <rth@redhat.com>
307
308 PR bootstrap/69343
309 PR bootstrap/69339
310 Revert:
311 2016-01-13 Richard Henderson <rth@redhat.com>
312
313 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
314 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
315 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
316 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
317 * configure.ac (ARCH_AARCH64): New conditional.
318 (ARCH_PPC, ARCH_S390): Likewise.
319 * Makefile.in, configure: Rebuild.
320
321 * libitm.h (_ITM_TYPE_M128): Always define.
322 * vect64.cc: Split ...
323 * vect128.cc: ... out of...
324 * config/x86/x86_sse.cc: ... here.
325 * config/arm/neon.cc: New file.
326
f57fc960
TR
3272016-01-19 Torvald Riegel <triegel@redhat.com>
328
329 * local_type_traits: Remove file.
330 * libitm_i.h: Don't include it anymore.
331 (sized_integral): Remove.
332
d2653984
TR
3332016-01-16 Torvald Riegel <triegel@redhat.com>
334
335 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
336 safety.
337 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
338 * libitm/testsuite/libitm.c/priv-1.c: New.
339
a04d5fc9
TR
3402015-01-15 Torvald Riegel <triegel@redhat.com>
341
342 testsuite/libitm.c++/libstdc++-safeexc.C: New.
343
e89137ce
TR
3442016-01-13 Torvald Riegel <triegel@redhat.com>
345
346 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
347 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
348 (gtm_rwlock::write_unlock): Likewise.
349
4c868789
RH
3502016-01-13 Richard Henderson <rth@redhat.com>
351
352 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
353 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
354 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
355 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
356 * configure.ac (ARCH_AARCH64): New conditional.
357 (ARCH_PPC, ARCH_S390): Likewise.
358 * Makefile.in, configure: Rebuild.
359
360 * libitm.h (_ITM_TYPE_M128): Always define.
361 * vect64.cc: Split ...
362 * vect128.cc: ... out of...
363 * config/x86/x86_sse.cc: ... here.
364 * config/arm/neon.cc: New file.
365
629e4729
TR
3662016-01-13 Torvald Riegel <triegel@redhat.com>
367
368 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
369 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
370 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
371 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
372 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
373 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
374 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
375 (serialirr_dispatch::snapshot_most_recent): New.
376 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
377
0d1ed412
TR
3782016-01-12 Torvald Riegel <triegel@redhat.com>
379
380 * libitm_i.h (gtm_mask_stack): Remove.
381 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
382 * stmlock.h: Remove file.
383 * config/alpha/cacheline.h: Likewise.
384 * config/generic/cacheline.h: Likewise.
385 * config/powerpc/cacheline.h: Likewise.
386 * config/sparc/cacheline.h: Likewise.
387 * config/x86/cacheline.h: Likewise.
388
21fa2a29
JJ
3892016-01-04 Jakub Jelinek <jakub@redhat.com>
390
818ab71a
JJ
391 Update copyright years.
392
21fa2a29
JJ
393 * libitm.texi: Bump @copying's copyright year.
394
e7f7330f
TR
3952015-11-26 Torvald Riegel <triegel@redhat.com>
396
397 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
398 (ml_wt_dispatch::pre_write): Adapt.
399 (ml_wt_dispatch::pre_load): Likewise.
400
4f8a3b87
TR
4012015-11-22 Torvald Riegel <triegel@redhat.com>
402
403 * libitm_i.h (gtm_alloc_action): Remove union.
404 * testsuite/libitm.c/alloc-1.c: New.
405
258c1d07
TR
4062015-11-19 Torvald Riegel <triegel@redhat.com>
407
408 * testsuite/libitm.c++/eh-5.C: New.
409 * libitm.h (_ITM_cxa_free_exception): New.
410 * libitm.map (_ITM_cxa_free_exception): Add it.
411 * libitm.texi: Update ABI docs.
412 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
413 (gtm_transaction_cp::cxa_uncaught_count): Add.
414 (gtm_thread::cxa_unthrown): Remove.
415 (gtm_thread::cxa_uncaught_count_ptr): Add.
416 (gtm_thread::cxa_uncaught_count): Add.
417 (gtm_thread::drop_references_allocations): Rename to...
418 (gtm_thread::discard_allocation): ... this and adapt.
419 (gtm_thread::init_cpp_exceptions): New.
420 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
421 (gtm_thread::begin_transaction): Likewise.
422 (gtm_transaction_cp::save): Likewise.
423 (gtm_thread::trycommit): Likewise.
424 * eh_cpp.cc: Add overview comments.
425 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
426 (free_any_exception, _ITM_cxa_free_exception): New.
427 (gtm_thread::init_cpp_exceptions): Define.
428 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
429 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
430 (gtm_thread::revert_cpp_exceptions): Likewise.
431
c518678b
TR
4322015-11-09 Torvald Riegel <triegel@redhat.com>
433
434 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
435 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
436 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
437 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
438 (gtm_thread::forget_allocations): New overload with size_t argument.
439 * alloc.c (gtm_thread::forget_allocation): Define new overload and
440 adapt existing one.
441 (gtm_thread::record_allocation): Adapt.
442 (gtm_thread::commit_allocations_1): Adapt.
443 (gtm_thread::commit_allocations_2): Adapt.
444 * testsuite/libitm.c++/newdelete.C: New.
445
1e44e857
DJ
4462015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
447 Joseph Myers <joseph@codesourcery.com>
448 Mark Shinwell <shinwell@codesourcery.com>
449 Andrew Stubbs <ams@codesourcery.com>
450 Rich Felker <dalias@libc.org>
451
452 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
453 GTM_begin_transaction for compatibility with FDPIC.
454
9e531d37
DM
4552015-10-09 David Malcolm <dmalcolm@redhat.com>
456
457 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
458 using load_gcc_lib.
459
c629c246
GFM
4602015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
461
462 PR libitm/61164
463 * local_atomic (__always_inline): Rename to...
464 (__libitm_always_inline): ... this.
465
cd5a9a74
CSLL
4662015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
467
468 PR target/52482
469 * config/powerpc/sjlj.S: Port to Xcode 2.5.
470
ea023bcf
UB
4712015-05-27 Uros Bizjak <ubizjak@gmail.com>
472
d778b5a0
UB
473 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
474 operands "op" and "val" to int.
475
4762015-05-27 Uros Bizjak <ubizjak@gmail.com>
477
478 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
479 "op" and "val" to int.
480
4812015-05-27 Uros Bizjak <ubizjak@gmail.com>
482
483 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
484 "op" and "val" to int.
485
4862015-05-27 Uros Bizjak <ubizjak@gmail.com>
487
488 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
489 Declare as static int.
490 (FUTEX_PRIVATE_FLAG): Remove L suffix.
491 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
492
4932015-05-27 Uros Bizjak <ubizjak@gmail.com>
494
495 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
496 sys_futex0 function.
ea023bcf 497
503902f9
MH
4982015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
499
500 * Makefile.in: Regenerated with automake-1.11.6.
501 * aclocal.m4: Likewise.
502 * configure: Likewise.
503 * testsuite/Makefile.in: Likewise.
504
96ce40cb
GR
5052015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
506
507 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
508 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
509
3a07b160
L
5102015-01-15 H.J. Lu <hongjiu.lu@intel.com>
511
512 PR libitm/64360
513 * libitm.c/stackundo.c (test2): Make it static.
514 (test1): Likewise.
515
5624e564
JJ
5162015-01-05 Jakub Jelinek <jakub@redhat.com>
517
518 Update copyright years.
519
b67cd4e3
JJ
5202015-01-05 Jakub Jelinek <jakub@redhat.com>
521
522 * libitm.texi: Bump @copying's copyright year.
523
69aef6dc
KT
5242014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
525
526 * testsuite/lib/libitm.exp: Load target-utils.exp.
527 Move load of target-supports.exp earlier.
528
68bc9270
UB
5292014-12-03 Uros Bizjak <ubizjak@gmail.com>
530
531 * configure.tgt (x86_64): Tune -m32 multilib to generic.
532
a699d672
L
5332014-11-21 H.J. Lu <hongjiu.lu@intel.com>
534
535 PR bootstrap/63784
536 * configure: Regenerated.
537
ebf6d33b
FXC
5382014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
539
540 PR target/63610
541 * configure: Regenerate.
542
99183741
MP
5432014-10-06 Marek Polacek <polacek@redhat.com>
544
545 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
546 * testsuite/libitm.c/memset-1.c: Likewise.
547
b6334cf4
RH
5482014-07-24 Richard Henderson <rth@redhat.com>
549
550 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
551 addressing mode in epilogue.
552
3c698bf0
RO
5532014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554
555 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
556 -mclear-hwcap instead.
557 * configure: Regenerate.
558 * clearcap.map: Remove.
559
dbed5a9b
JM
5602014-05-21 John Marino <gnugcc@marino.st>
561
562 * configure.tgt (*-*-dragonfly*): New target.
563
b17f08dd
RH
5642014-05-19 Richard Henderson <rth@redhat.com>
565
566 * config/aarch64/sjlj.S: New file.
567 * config/aarch64/target.h: New file.
568 * configure.tgt: Enable aarch64.
569
5e1f630a
RO
5702014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
571
572 * config/generic/asmcfi.h: Also check for
573 __GCC_HAVE_DWARF2_CFI_ASM.
574
84c2f4b0
RH
5752013-04-02 Richard Henderson <rth@redhat.com>
576
577 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
578 * config/arm/target.h, config/sh/target.h: Likewise.
579 * config/sparc/target.h, config/x86/target.h: Likewise.
580
7cc51d64
JJ
5812014-03-26 Jakub Jelinek <jakub@redhat.com>
582
583 * config/linux/futex_bits.h: Include errno.h.
584 (sys_futex0): If syscall returns -1, return -errno rather than
585 -1.
586
c288ec8f
JM
5872014-03-26 Joseph Myers <joseph@codesourcery.com>
588
589 * libitm.texi (Index): Rename to Library Index.
590
ed100f5d
L
5912014-01-13 H.J. Lu <hongjiu.lu@intel.com>
592
593 PR libitm/53113
594 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
595 (x86_avx.lo): Append -mavx to CXXFLAGS.
596 * Makefile.in: Regenerate.
597
f93608e6
RS
5982014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
599
600 Update copyright years
601
98db73df
TB
6022014-01-02 Tobias Burnus <burnus@net-b.de>
603
604 * libitm.texi: Bump @copying's copyright year.
605
b54214fe
UW
6062013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
607
608 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
609 (FUNC): Define ELFv2 variant.
610 (END): Likewise.
611 (HIDDEN): Likewise.
612 (CALL): Likewise.
613 (BASE): Likewise.
614 (LR_SAVE): Likewise.
615
3cbe17f7
AM
6162013-09-20 Alan Modra <amodra@gmail.com>
617
618 * configure: Regenerate.
619
6fb471d8
TR
6202013-08-30 Torvald Riegel <triegel@redhat.com>
621
622 * config/posix/rwlock.cc: Fix initialization order.
623
bec9ec3f
TR
6242013-08-30 Torvald Riegel <triegel@redhat.com>
625
626 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
627 (htm_fastpath): Assign an asm name.
628 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
629 HTM fast paths.
630 (_ITM_actions): Likewise.
631 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
632 x86_64.
633 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
634 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
635 field to the start of the structure.
636 * config/linux/rwlock.h (gtm_rwlock): Update comments.
637 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
638 handling for custom HTM fast paths.
639
1869217f
AK
6402013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
641 Revert:
642 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
643
644 * configure.tgt: Add -msoft-float to XCFLAGS.
645
d62d5152
AK
6462013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
647
648 * configure.tgt: Add -msoft-float to XCFLAGS.
649
aaaffb2a
AK
6502013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
651
652 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
653 (htm_transaction_active): Enable zEC12 instructions in the
654 assembler.
655 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
656
167f68ed
AK
6572013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
658
659 * acinclude.m4: Add htm asm check for s390.
660 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
661 * configure: Regenerate.
662 * config/s390/target.h: Remove __HTM__ check.
663 (htm_available): Call getauxval to get hwcaps and check whether
664 HTM is available or not.
665
0258b6e4
PB
6662013-07-15 Peter Bergner <bergner@vnet.ibm.com>
667
668 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
669 * configure.ac: Use it.
670 (AC_CHECK_HEADERS): Check for sys/auxv.h.
671 (AC_CHECK_FUNCS): Check for getauxval.
672 * config.h.in, configure: Rebuild.
673 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
674 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
675 (USE_HTM_FASTPATH): Define.
676 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
677 _HTM_RETRIES) New macros.
678 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
679 htm_begin_success, htm_commit, htm_transaction_active): New functions.
680
5a3fe9b6
AK
6812013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
682
683 * config/s390/target.h: Include htmintrin.h.
684 (_HTM_ITM_RETRIES): New macro definition.
685 (htm_available, htm_init, htm_begin, htm_begin_success)
686 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
687
6c84d576
IS
6882013-06-20 Iain Sandoe <iain@codesourcery.com>
689 Cesar Philippidis <cesar@codesourcery.com>
690
691 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
692 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
693 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
694 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
695
480c696b
TR
6962013-06-20 Torvald Riegel <triegel@redhat.com>
697
698 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
699 (_ITM_getTransactionId): Same.
700 * config/x86/target.h (htm_transaction_active): New.
701
b1db457b
TR
7022013-06-20 Torvald Riegel <triegel@redhat.com>
703
704 PR libitm/57643
705 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
706 the HTM fastpath.
707
51249377
GP
7082013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
709
710 PR bootstrap/56714
711 * local_atomic (__always_inline): Always define our version.
712 (__calculate_memory_order): Mark inline.
713 (atomic_thread_fence): Ditto.
714 (atomic_signal_fence): Ditto.
715 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
716 (atomic_bool::atomic_flag_clear_explicit): Ditto.
717 (atomic_bool::atomic_flag_test_and_set): Ditto.
718 (atomic_bool::atomic_flag_clear): Ditto.
719
f818478b
JJ
7202013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
721
722 * config/s390/sjlj.S: New file.
723 * config/s390/target.h: New file.
724 * configure.tgt: Set options for S/390.
725
ab4425be
AK
7262013-03-23 Andi Kleen <ak@linux.intel.com>
727
728 * local_atomic (__always_inline): Add.
729 (__calculate_memory_order, atomic_thread_fence,
730 atomic_signal_fence, test_and_set, clear, store, load,
731 exchange, compare_exchange_weak, compare_exchange_strong,
732 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
733 Add __always_inline to force inlining.
734
6c59ffd1
IS
7352013-02-11 Iain Sandoe <iain@codesourcery.com>
736 Jack Howarth <howarth@bromo.med.uc.edu>
737 Patrick Marlier <patrick.marlier@gmail.com>
738
739 PR libitm/55693
740 * alloc_cpp.cc: Enable function declarations on darwin.
741 * eh_cpp.cc: Likewise.
742
75f9527c
RS
7432013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
744
745 Update copyright years.
746
64fbcc74
TR
7472012-11-09 Torvald Riegel <triegel@redhat.com>
748
749 * beginend.cc (htm_fastpath): New.
750 (gtm_thread::begin_transaction, _ITM_commitTransaction,
751 _ITM_commitTransactionEH): Add HTM fastpath handling.
752 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
753 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
754 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
755 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
756 * configure.tgt: Add -mrtm to XCFLAGS.
757 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
758 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
759 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
760 * retry.cc (parse_default_method): Add HTM method parsing.
761 (gtm_thread::number_of_threads_changed): Use HTM by default if
762 available.
763
b9efc877
TS
7642012-11-04 Thomas Schwinge <thomas@codesourcery.com>
765
766 * configure: Regenerate.
767
07d3b5c8
RH
7682012-10-31 Richard Henderson <rth@redhat.com>
769
770 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
771 * configure.ac: Use it.
772 * config.h.in, configure: Rebuild.
773 * testsuite/Makefile.in: Rebuild.
774
eb00e959
TR
7752012-10-24 Torvald Riegel <triegel@redhat.com>
776
777 * libitm.texi: Clarify ABI requirements for data-logging functions.
778
b679c813
TR
7792012-10-24 Torvald Riegel <triegel@redhat.com>
780
781 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
782 it requires serial mode instead of assuming that for certain
783 dispatchs.
784 * dispatch.h (abi_dispatch::requires_serial): New.
785 (abi_dispatch::abi_dispatch): Adapt.
786 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
787 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
788 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
789 serial_dispatch::serial_dispatch,
790 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
791
0c609a21
UB
7922012-10-02 Uros Bizjak <ubizjak@gmail.com>
793
794 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
795 and ia32 declarations some more.
796 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
797
c0758df9
JJ
7982012-09-20 Jakub Jelinek <jakub@redhat.com>
799
800 PR other/43620
801 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
802 * configure: Regenerate.
803 * Makefile.in: Regenerate.
804
690c45b8
DE
8052012-09-14 David Edelsohn <dje.gcc@gmail.com>
806
807 * configure: Regenerated.
808
68a12ef3
UB
8092012-07-31 Uros Bizjak <ubizjak@gmail.com>
810
811 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
812
f2f9a097
PM
8132012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
814
815 * eh_cpp.cc: Fix __cxa_end_catch declaration.
816
e6d5f8c9
L
8172012-05-16 H.J. Lu <hongjiu.lu@intel.com>
818
819 * configure: Regenerated.
820
0100e3b3
L
8212012-04-04 H.J. Lu <hongjiu.lu@intel.com>
822
823 PR libitm/52854
824 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
825 for x86-64.
826
2f6935f4
TG
8272012-04-03 Tristan Gingold <gingold@adacore.com>
828
829 * configure: Regenerate.
830
b9c23a61
L
8312012-03-31 H.J. Lu <hongjiu.lu@intel.com>
832
833 PR bootstrap/52812
834 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
835
6a26a74d
BRF
8362012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
837
838 * testsuite/lib/libitm.exp: load fortran-modules.exp
839
b24513a1
RO
8402012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
841
842 * configure.tgt (*-*-irix6*): Remove.
843
0d23faac
TR
8442012-03-13 Torvald Riegel <triegel@redhat.com>
845
846 PR libitm/52526
847 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
848 wake-up.
849
5c30094f
RO
8502012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
851
852 * configure.tgt (*-*-osf*): Remove.
853 * configure: Regenerate.
854
d28b0b08
TR
8552012-03-05 Torvald Riegel <triegel@redhat.com>
856
857 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
858 memtransfer/memset if size isn't larger than zero.
859
034209bc
TR
8602012-03-02 Torvald Riegel <triegel@redhat.com>
861
862 * libitm.texi: Link to specification and add a usage example.
863
bc8da6ba
TR
8642012-02-24 Torvald Riegel <triegel@redhat.com>
865
866 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
867 default dispatch for more than 1 thread to ml_wt.
868
63b08143
TR
8692012-02-20 Torvald Riegel <triegel@redhat.com>
870
871 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
872
4c9bd6ac
TR
8732012-02-20 Torvald Riegel <triegel@redhat.com>
874
875 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
876
651ff415
TR
8772012-02-20 Torvald Riegel <triegel@redhat.com>
878
879 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
880 serial mode corner cases made obsolete by prior gtm_rwlock changes.
881 (gl_wt_dispatch.rollback): Same.
882
efee0113
TR
8832012-02-20 Torvald Riegel <triegel@redhat.com>
884
885 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
886
33a03827
TR
8872012-02-20 Torvald Riegel <triegel@redhat.com>
888
889 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
890 for RfW src. Optimize number of calls to gtm_thr.
891
a19db3f2
TR
8922012-02-20 Torvald Riegel <triegel@redhat.com>
893
894 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
895 acquisition to ...
896 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
897 (default_dispatch): Make atomic.
898 (GTM::gtm_thread::set_default_dispatch): Access atomically.
899 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
900 use decide_begin_dispatch() if default_dispatch might have changed.
901 (GTM::gtm_thread::number_of_threads_changed): Initialize
902 default_dispatch here.
903
e948a1fb
IS
9042012-02-15 Iain Sandoe <iains@gcc.gnu.org>
905 Patrick Marlier <patrick.marlier@gmail.com>
906
907 PR libitm/52220
908 * alloc_cpp.cc: No dummy definitions for darwin.
909 * eh_cpp.cc: Likewise.
910
72824d5e
RH
9112012-02-14 Richard Henderson <rth@redhat.com>
912
913 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
914
1f319dba
UB
9152012-02-14 Uros Bizjak <ubizjak@gmail.com>
916
917 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
918
31772c95
TR
9192012-02-14 Torvald Riegel <triegel@redhat.com>
920
921 * libitm_i.h (GTM::gtm_rwlog_entry): New.
922 (GTM::gtm_thread): Add read and write logs.
923 (GTM::dispatch_ml_wt): Declare.
924 * retry.cc (parse_default_method): Support ml_wt.
925 * method-ml.cc: New file.
926 * Makefile.am: Add method-ml.cc.
927 * Makefile.in: Regenerate.
928
5b9cf5d2
TR
9292012-02-14 Torvald Riegel <triegel@redhat.com>
930
931 * dispatch.h (GTM::abi_dispatch::supports): New.
932 (GTM::method_group::reinit): New.
933 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
934 (GTM::gtm_thread::number_of_threads_changed): Check that the method
935 supports the current situation.
936
7d33bcb7
TR
9372012-02-14 Torvald Riegel <triegel@redhat.com>
938
939 * util.cc (GTM::xcalloc): New.
940 * common.h (GTM::xcalloc): Declare.
941
62513f7b
EB
9422012-02-14 Eric Botcazou <ebotcazou@adacore.com>
943
944 * config/sparc/target.h (cpu_relax): Read from CC register.
945 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
946
9472012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
948
949 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
950
f3f5e3c3
EB
9512012-02-13 Eric Botcazou <ebotcazou@adacore.com>
952
62513f7b 953 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
954 * config/sparc/cacheline.h: New file.
955 * config/sparc/target.h: Likewise.
956 * config/sparc/sjlj.S: Likewise.
957 * config/linux/sparc/futex_bits.h: Likewise.
958
9592012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
960
961 * configure.ac (link_itm): Fix comment.
962 * configure: Regenerate.
963 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
964
681355e3
RO
9652012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
966
fc985d2f 967 PR libitm/51822
62513f7b 968 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
969 Correct libgomp references.
970
999bcff5
TR
9712012-01-24 Torvald Riegel <triegel@redhat.com>
972
973 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
974 wake-up.
975
9848887a
UB
9762012-01-24 Uros Bizjak <ubizjak@gmail.com>
977
978 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
979 end of structure.
980 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
981 offset values. Do not copy return address. Decrement stack
982 by 56 bytes only.
983 (GTM_longjump) [__x86_64__]: Update offset values.
984
5752c591
UB
9852012-01-23 Uros Bizjak <ubizjak@gmail.com>
986
987 PR libitm/51830
988 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
989 the first function argument to %eax.
990
61e72ca4
RO
9912012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992
993 * libitm.h (_ITM_getThreadnum): Remove.
994 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
995
9ce91011
RO
9962012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
997
998 * clearcap.map: New file.
999 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
1000 * configure.ac: Call it.
1001 Clear HWCAP_LDFLAGS if defaulting to -mavx.
1002 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
1003 * configure: Regenerate.
1004 * Makefile.in: Regenerate.
1005 * testsuite/Makefile.in: Regenerate.
1006
3b4f05ec
RO
10072012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008
1009 PR libitm/51173
1010 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
1011 include, exclude options.
1012
aab74ee9
TR
10132012-01-14 Torvald Riegel <triegel@redhat.com>
1014
1015 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
1016 rolling back.
1017 * containers.h (GTM::vector::set_size): New.
1018
07b6642b
TR
10192012-01-14 Torvald Riegel <triegel@redhat.com>
1020
1021 PR libitm/51855
1022 * config/generic/tls.h (GTM::mask_stack_top): New.
1023 (GTM::mask_stack_bottom): Declare.
1024 * config/generic/tls.c (GTM::mask_stack_bottom): New.
1025 * local.cc (gtm_undolog::rollback): Filter out any updates that
1026 overlap the libitm stack. Add current transaction as parameter.
1027 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
1028 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1029 * testsuite/libitm.c/stackundo.c: New test.
1030
8377e5e5
RH
10312012-01-10 Richard Henderson <rth@redhat.com>
1032
1033 * libitm_i.h (_Unwind_DeleteException): Declare weak.
1034 * eh_cpp.cc (_Unwind_DeleteException): Define for
1035 !HAVE_ELF_STYLE_WEAKREF.
1036
11f30bb0
TR
10372012-01-08 Torvald Riegel <triegel@redhat.com>
1038
1039 * local.cc (GTM_LB): Use GTM::gtm_undolog.
1040 (GTM::gtm_thread::drop_references_undolog): Remove.
1041 (GTM::gtm_thread::commit_undolog,
1042 GTM::gtm_thread::rollback_undolog): Move to ...
1043 * libitm_i.h (GTM::gtm_undolog): ...here. New.
1044 (GTM::gtm_undolog_entry): Remove.
1045 (GTM::gtm_thread): Adapt.
1046 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
1047 (GTM::gtm_thread::trycommit): Adapt.
1048 * method-serial.cc (serial_dispatch::log): Adapt.
1049 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
1050 (gl_wt_dispatch::store): Fix likely/unlikely.
1051 * containers.h (GTM::vector::resize): Add additional_capacity
1052 parameter and handle it.
1053 (GTM::vector::resize_noinline): New/adapt.
1054 (GTM::vector::push): New.
1055
a32e5e93
RH
10562012-01-06 Richard Henderson <rth@redhat.com>
1057
1058 * configure.tgt: Support powerpc-linux and powerpc-darwin.
1059 * config/linux/powerpc/futex_bits.h: New file.
1060 * config/powerpc/cacheline.h: New file.
1061 * config/powerpc/sjlj.S: New file.
1062 * config/powerpc/target.h: New file.
1063 * config/generic/asmcfi.h (cfi_offset): New.
1064 (cfi_restore, cfi_undefined): New.
1065
1f53a8e6
AH
10662012-01-05 Aldy Hernandez <aldyh@redhat.com>
1067
1068 PR other/51171
1069 * testsuite/libitm.c/reentrant.c: Remove xfail.
1070 (thread): Pass x to pure().
be223aaf 1071 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 1072
c898f7b8
TR
10732011-12-24 Torvald Riegel <triegel@redhat.com>
1074
1075 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
1076 privatization safety if already in serial mode.
1077
610e3901
TR
10782011-12-24 Torvald Riegel <triegel@redhat.com>
1079
1080 * beginend.cc (GTM::gtm_thread::restart): Add and handle
1081 finish_serial_upgrade parameter.
1082 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
1083 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
1084 Don't unset reader flag.
1085 (GTM::gtm_rwlock::write_upgrade_finish): New.
1086 * config/posix/rwlock.cc: Same.
1087 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
1088 Declare.
1089 * config/posix/rwlock.h: Same.
1090 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
1091 flag after commit or after rollback when restarting.
1092
799142bf
TR
10932011-12-24 Torvald Riegel <triegel@redhat.com>
1094
1095 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
1096 (GTM::gtm_thread::try_commit): Changed memory order.
1097 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
1098 as parameter.
1099 * config/linux/x86/futex_bits.h (sys_futex0): Same.
1100 * config/linux/sh/futex_bits.h (sys_futex0): Same.
1101 * config/linux/futex_bits.h (sys_futex0): Same.
1102 * config/linux/futex.cc (futex_wait, futex_wake): Same.
1103 * config/linux/futex.h (futex_wait, futex_wake): Same.
1104 * config/linux/rwlock.h (gtm_rwlock::writers,
1105 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
1106 ints.
1107 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
1108 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1109 gtm_rwlock::write_unlock): Fix memory orders and fences.
1110 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
1111 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
1112 gtm_rwlock::write_unlock): Same.
1113 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
1114 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
1115 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
1116 Add comments.
1117 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
1118 gl_wt_dispatch::load, gl_wt_dispatch::store,
1119 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
1120 orders and fences. Add comments.
1121
b0f96e35
JJ
11222011-12-21 Jakub Jelinek <jakub@redhat.com>
1123
1124 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
1125 * Makefile.in: Regenerated.
1126
cc163247
KK
11272011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
1128
1129 * configure.tgt: Add sh* case.
1130 * config/sh/target.h: New file.
1131 * config/sh/sjlj.S: New file.
1132 * config/linux/sh/futex_bits.h: New file.
1133
aebac0ca
RH
11342011-12-14 Richard Henderson <rth@redhat.com>
1135
1136 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
1137 * config/arm/sjlj.S, config/arm/target.h: New files.
1138 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
1139 (cfi_rel_offset): New.
1140 * config/linux/futex_bits.h: New file.
1141 * config/linux/futex.cc: Include futex_bits.h here...
1142 * config/linux/futex.h: ... not here.
1143 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
1144 * configure.ac (ARCH_AM): New conditional.
1145 * Makefile.in, configure: Rebuild.
1146 * configure.tgt: Handle ARM.
1147
36cfbee1
RH
11482011-12-13 Richard Henderson <rth@redhat.com>
1149
5d9d05d3
RH
1150 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
1151 signed/unsigned comparison werror.
1152
36cfbee1
RH
1153 * local_atomic: New file.
1154 * libitm_i.h: Include it.
1155 (gtm_thread::shared_state): Use atomic template.
1156 * beginend.cc (GTM::gtm_clock): Use atomic template.
1157 (global_tid): Use atomic template if 64-bit atomics available.
1158 (gtm_thread::gtm_thread): Update shared_state access.
1159 (gtm_thread::trycommit): Likewise.
1160 (choose_code_path): Update global_tid access.
1161 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
1162 * stmlock.h (GTM::gtm_clock): Use atomic template.
1163 (gtm_get_clock, gtm_inc_clock): Update accesses.
1164 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
1165 redundant __sync_synchronize after atomic shared_state access.
1166 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
1167 (gtm_rwlock::write_lock_generic): Likewise.
1168 (gtm_rwlock::read_unlock): Likewise.
1169 * config/alpha/target.h (atomic_read_barrier): Remove.
1170 (atomic_write_barrier): Remove.
1171 * config/x86/target.h (atomic_read_barrier): Remove.
1172 (atomic_write_barrier): Remove.
1173
062f93f2
RH
11742011-11-30 Richard Henderson <rth@redhat.com>
1175
1176 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
1177 * beginend.c (_ITM_abortTransaction): Update to match.
1178 (GTM::gtm_thread::restart): Likewise.
1179 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
1180 * config/x86/sjlj.S (GTM_longjmp): Likewise.
1181
bd8aaa86
IS
11822011-11-23 Iain Sandoe <iains@gcc.gnu.org>
1183
1184 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
1185 * Makefile.in: Regenerate.
1186
8cf36bb3
IS
11872011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1188
1189 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
1190 * alloc_cpp.cc: Generate dummy functions if we don't
1191 HAVE_ELF_STYLE_WEAKREF.
1192 * eh_cpp.cc: Likewise.
1193 * configure: Regenerate.
1194 * aclocal.m4: Likewise.
1195 * config.h.in: Likewise.
1196 * Makefile.in: Likewise.
1197 * testsuite/Makefile.in: Likewise.
1198
0b41ebef
IS
11992011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1200
1201 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
1202 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 1203 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
1204 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
1205 in portability to non-elf targets.
8cf36bb3 1206 (GTM_longjmp): Likewise.
0b41ebef
IS
1207 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
1208 where required.
1209
9c9d352a
IS
12102011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1211
1212 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
1213 * testsuite/libitm.c/memset-1.c: Likewise.
1214
c6084f68
AT
12152011-11-21 Andreas Tobler <andreast@fgznet.ch>
1216
1217 * configure: Regenerate.
1218
adcd36bc
RO
12192011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1220
1221 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
1222 (LIBITM_ENABLE_SYMVERS): Handle sun style.
1223 * Makefile.am: Handle sun style versioning.
1224 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
1225 * configure: Regenerate.
1226 * Makefile.in: Regenerate.
1227
59659b59
RO
12282011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1229
1230 * config/generic/asmcfi.h: Fix comment.
1231 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
1232 sequence without .hidden support, error for non-ELF targets.
1233 (GTM_longjmp) [__ELF__]: Only use .hidden if
1234 HAVE_ATTRIBUTE_VISIBILITY.
1235
d846e425
RO
12362011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237
1238 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
1239 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
1240 Dummy functions.
1241 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
1242 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
1243
80713347
UB
12442011-11-16 Uros Bizjak <ubizjak@gmail.com>
1245
1246 PR bootstrap/51098
1247 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
1248 * configure: Regenerate.
1249
2841f85e
L
12502011-11-14 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
1253
8851b429
RO
12542011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1255
1256 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
1257 .hidden.
1258 (.note.GNU-stack): Only use if __linux__.
1259 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
1260 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
1261 * testsuite/libitm.c/reentrant.c: Likewise.
1262 * testsuite/libitm.c/simple-2.c: Likewise.
1263 * testsuite/libitm.c/txrelease.c: Likewise.
1264 * testsuite/libitm.c++/static_ctor.C: Likewise.
1265
d4b17902
RH
12662011-11-10 Richard Henderson <rth@redhat.com>
1267
1268 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
1269 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
1270 * configure.ac (ARCH_X86_AVX): New conditional.
1271 * Makefile.in, configure: Rebuild.
1272
430616e7
RH
12732011-11-09 Richard Henderson <rth@redhat.com>
1274
1275 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
1276 * configure.ac: Use it.
1277 * config.h.in, configure: Rebuild.
1278 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
1279
79b1edb6
RH
12802011-11-09 Richard Henderson <rth@redhat.com>
1281
1282 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
1283 * config/alpha/unaligned.h: Remove file.
1284 * config/generic/unaligned.h: Remove file.
1285 * config/x86/unaligned.h: Remove file.
1286 * config/generic/cachepage.h: Remove file.
1287 * config/posix/cachepage.cc: Remove file.
1288 * config/generic/cacheline.cc: Remove file.
1289 * config/x86/cacheline.cc: Remove file.
1290 * config/generic/cacheline.h (gtm_cacheline): Remove the
1291 store_mask, copy_mask, copy_mask_wb methods.
1292 * config/x86/cacheline.h: Likewise.
1293 * config/alpha/cacheline.h: Fall back to generic after setting size.
1294 * config/generic/tls.cc (gtm_mask_stack): Remove.
1295 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
1296 (GTM_vpalignr_table): Remove.
1297 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
1298 (GTM_pshift_table): Remove.
1299 * config/libitm_i.h: Don't include cachepage.h.
1300 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
1301 * Makefile.in, testsuite/Makefile.in: Rebuild.
1302
4bdd090f
RH
13032011-11-09 Richard Henderson <rth@redhat.com>
1304
8ee9fac2
RH
1305 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
1306 to emit branch prediction hint.
1307
9bdc6343
RH
1308 * config/x86/sjlj.S: Protect elf directives with __ELF__.
1309 Protect .note.GNU-stack with __linux__.
1310
4bdd090f
RH
1311 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
1312 * configure, aclocal.m4, config.h.in: Rebuild.
1313 * config/generic/asmcfi.h: New file.
1314 * config/x86/sjlj.S: Use it.
1315
4408b086
RH
13162011-11-08 Richard Henderson <rth@redhat.com>
1317
1318 * local.cc (_ITM_LB): Use a normal call, not a function alias.
1319
01f3428c
RH
13202011-11-08 Richard Henderson <rth@redhat.com>
1321
3d3b05ff
RH
1322 * configure.tgt: Test correct directory for supported cpus.
1323
01f3428c
RH
1324 * configure.ac: Exit if unsupported.
1325 * configure: Rebuild.
1326 * configure.tgt: Delete boilerplate from libgomp for unsupported
1327 targets. Set UNSUPPORTED for unsupported targets.
1328
07f03cd3
RO
13292011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1330
1331 * configure.tgt: Handle i386 like i[456]86.
1332 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1333 take address.
1334 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1335 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1336
0a35513e
AH
13372011-11-05 Aldy Hernandez <aldyh@redhat.com>
1338
1339 * method-wbetl.cc: Update copyright notice.
1340 * aatree.cc: Same.
1341 * util.cc: Same.
1342 * libitm.h: Same.
1343 * memset.cc: Same.
1344 * eh_cpp.cc: Same.
1345 * barrier.tpl: Same.
1346 * useraction.cc: Same.
1347 * stmlock.h: Same.
1348 * memcpy.cc: Same.
1349 * common.h: Same.
1350 * config/generic/tls.cc: Same.
1351 * config/generic/cacheline.h: Same.
1352 * config/generic/cachepage.h: Same.
1353 * config/generic/cacheline.cc: Same.
1354 * config/generic/unaligned.h: Same.
1355 * config/x86/cacheline.h: Same.
1356 * config/x86/cacheline.cc: Same.
1357 * config/x86/unaligned.h: Same.
1358 * config/alpha/cacheline.h: Same.
1359 * config/alpha/unaligned.h: Same.
1360 * config/alpha/sjlj.S: Same.
1361 * config/posix/cachepage.cc: Same.
1362 * config/linux/futex.h: Same.
1363 * config/linux/alpha/futex_bits.h: Same.
1364
13652011-11-04 Torvald Riegel <triegel@redhat.com>
1366
1367 * libitm.texi: No cover text and invariant sections.
1368
13692011-11-03 Richard Henderson <rth@redhat.com>
1370
1371 * local_type_traits: New file.
1372 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1373
13742011-11-03 Richard Henderson <rth@redhat.com>
1375
1376 * configure.ac: Don't test for gfortran.
1377 * configure: Rebuild.
1378
1379 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1380 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1381
13822011-11-03 Aldy Hernandez <aldyh@redhat.com>
1383
1384 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1385 * testsuite/libitm.c/memset-1.c: Same.
1386 * testsuite/libitm.c/c.exp: Same.
1387 * testsuite/lib/libitm-dg.exp: Same.
1388 * testsuite/lib/libitm.exp: Same.
1389 * testsuite/libitm.c++/c++.exp: Same.
1390
13912011-11-03 Aldy Hernandez <aldyh@redhat.com>
1392
1393 * testsuite/config/default.exp: Update copyright date.
1394 * configure.ac: Add copyright info.
1395 * configure.tgt: Same.
1396
13972011-11-03 Aldy Hernandez <aldyh@redhat.com>
1398
1399 * testsuite/libitm.c/reentrant.c: XFAIL.
1400 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1401
14022011-10-29 Torvald Riegel <triegel@redhat.com>
1403
1404 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1405 handle aborts.
1406 (_ITM_abortTransaction): Handle aborts of outer transactions.
1407 * libitm_i.h: Same.
1408 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1409 * libitm.texi: Document aborts of outer transactions.
1410 * testsuite/libitm.c/cancel.c: New file.
1411
14122011-10-19 Torvald Riegel <triegel@redhat.com>
1413
1414 * testsuite/*: Change __transaction to __transaction_atomic or
1415 __transaction_relaxed.
1416
14172011-10-19 Torvald Riegel <triegel@redhat.com>
1418
1419 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1420 (gtm_thr): Same.
1421
14222011-10-19 Torvald Riegel <triegel@redhat.com>
1423
1424 * libitm_i.h: Add gl_wt dispatch.
1425 * retry.cc (parse_default_method): Same.
1426 * method-gl.cc: New file.
1427 * Makefile.am: Use method-gl.cc.
1428 * Makefile.in: Rebuild.
1429
14302011-10-19 Torvald Riegel <triegel@redhat.com>
1431
1432 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1433 safety if requested by a TM method.
1434 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1435 privatization safety.
1436 * method-serial.cc: Same.
1437
14382011-10-19 Torvald Riegel <triegel@redhat.com>
1439
1440 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1441 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1442 undolog-related member functions from *_local to *_undolog.
1443 * local.cc (gtm_thread::commit_undolog): Same.
1444 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1445 (GTM::gtm_thread::rollback): Roll back undolog before
1446 dispatch-specific rollback.
1447
14482011-10-19 Torvald Riegel <triegel@redhat.com>
1449
1450 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1451 re-initialization of the current method group.
1452 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1453
14542011-10-19 Torvald Riegel <triegel@redhat.com>
1455
1456 * alloc.cc (commit_allocations_2): Do not free transaction-local
1457 memory when committing a nested transaction.
1458
14592011-10-19 Torvald Riegel <triegel@redhat.com>
1460
1461 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1462 serial-irrevocable dispatch, not serial.
1463
14642011-10-19 Torvald Riegel <triegel@redhat.com>
1465
1466 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1467 declarations.
1468 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1469 * method-serial.cc: Implement begin_or_restart().
1470 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1471 dispatch-specific begin_or_restart().
1472 (GTM::gtm_thread::restart): Same.
1473
14742011-08-23 Torvald Riegel <triegel@redhat.com>
1475
1476 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1477 restarting without switching to serial mode.
1478 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1479 transaction state. Choose closed-nesting alternative if available.
1480 (GTM::gtm_thread::set_default_dispatch): New.
1481 (parse_default_method): New.
1482 (GTM::gtm_thread::number_of_threads_changed): New.
1483 * method-serial.cc (GTM::serial_mg): New method group class.
1484 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1485 fini.
1486 (GTM::serial_dispatch): Same.
1487 (GTM::serialirr_onwrite_dispatch): Same.
1488 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1489 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1490 registered threads.
1491 (GTM::gtm_thread::gtm_thread): Same.
1492 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1493 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1494 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1495 choose dispatch but set state according to dispatch here.
1496 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1497 (GTM::method_group): New class.
1498 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1499 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1500 * libitm.texi: Document TM methods, method groups, method life cycle.
1501 Rename method sets to method groups.
1502
15032011-08-23 Torvald Riegel <triegel@redhat.com>
1504
1505 * config/x86/tls.h: Moved to ...
1506 * config/linux/x86/tls.h: ... here.
1507
15082011-08-23 Torvald Riegel <triegel@redhat.com>
1509
1510 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1511 Add X32 support.
1512 * config/x86/sjlj.S: Same.
1513
15142011-08-19 Torvald Riegel <triegel@redhat.com>
1515
1516 * config/linux/rwlock.h: New file.
1517 * config/linux/rwlock.c: New file.
1518 * configure.ac: Reenable futex support (undo SVN rev 157758).
1519 * Makefile.am: Same.
1520 * configure.tgt: Same.
1521 * config/linux/alpha/futex_bits.h: Same.
1522 * config/linux/futex.h: Same. Return number of woken processes.
1523 * config/linux/futex.cc: Same.
1524 (futex_wait): Remove spinning.
1525 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1526 Use __x86_64__ instead of __LP64__.
1527 * aclocal.m4: Include generic futex checks.
1528 * configure: Rebuild.
1529 * Makefile.in: Rebuild.
1530 * testsuite/Makefile.in: Rebuild.
1531 * beginend.cc: Include pthread.h.
1532 * config/posix/cachepage.cc: Same.
1533
15342011-08-12 Torvald Riegel <triegel@redhat.com>
1535
1536 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1537 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1538 (set_gtm_thr): New.
1539 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1540 (set_gtm_thr): New.
1541 (GTM::gtm_thread::thread_num): Removed.
1542 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1543 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1544 tx-to-thread renaming.
1545 * beginend.cc: Adapted to tx-to-thread renaming.
1546 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1547 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1548 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1549 gtm_transaction to gtm_thread.
1550 (_ITM_getThreadnum): Removed. Not supported anymore.
1551 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1552 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1553 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1554 gtm_tx-to-gtm_thr renaming if necessary.
1555 * eh_cpp.cc: Same.
1556 * local.cc: Same.
1557 * retry.cc: Same.
1558 * clone.cc: Same.
1559 * alloc.cc: Same.
1560 * alloc_c.cc: Same.
1561 * alloc_cpp.cc: Same.
1562 * method-serial.cc: Same.
1563 * config/generic/tls.cc: Same.
1564 * config/posix/rwlock.h (gtm_rwlock): Same.
1565 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1566
15672011-08-12 Torvald Riegel <triegel@redhat.com>
1568
1569 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1570 implementation.
1571 (gtm_rwlock::read_unlock): Same.
1572 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1573 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1574 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1575 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1576 w_upgrade. Replaced by per-transaction flags (in shared_state).
1577 Added c_confirmed_writers.
1578 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1579 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1580 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1581 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1582 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1583 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1584 * libitm.texi: Document locking conventions and implementations in
1585 libitm.
1586
15872011-08-12 Torvald Riegel <triegel@redhat.com>
1588
1589 * libitm_i.h (next_tx): Add list of all threads' transaction.
1590 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1591 transaction with list of transactions and ...
1592 (thread_exit_handler): ... deregister here.
1593 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1594 * config/x86/target.h: Same.
1595
15962011-08-12 Torvald Riegel <triegel@redhat.com>
1597
1598 * testsuite/libitm.c++/static_ctor.C: New file.
1599
16002011-08-12 Torvald Riegel <triegel@redhat.com>
1601
1602 * testsuite/libitm.c/reentrant.c: New file.
1603
16042011-08-12 Torvald Riegel <triegel@redhat.com>
1605
1606 * config/generic/tls.h: Remove the free list for transactions and ...
1607 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1608 (GTM::gtm_transaction::operator delete): ... and release here.
1609 (thread_exit_handler): New. Delete tx when thread terminates.
1610 (thread_exit_init): New.
1611 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1612 * testsuite/libitm.c/txrelease.c: New file.
1613
16142011-08-12 Torvald Riegel <triegel@redhat.com>
1615
1616 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1617 * testsuite/libitm.c/notx.c: New file.
1618
16192011-08-12 Torvald Riegel <triegel@redhat.com>
1620
1621 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1622 * libitm_i.h (local_tid): ... to here.
1623 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1624 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1625
16262011-08-12 Torvald Riegel <triegel@redhat.com>
1627
1628 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1629 serialirr_onwrite_dispatch as new default for now.
1630 * method-serial.cc (serialirr_onwrite_dispatch): New.
1631 (GTM::dispatch_serialirr_onwrite): New.
1632 * libitm_i.h: Same.
1633
16342011-08-12 Torvald Riegel <triegel@redhat.com>
1635
1636 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1637 * query.cc (_ITM_getTransactionId): There is no active transaction if
1638 the current nesting level is zero.
1639
16402011-07-28 Torvald Riegel <triegel@redhat.com>
1641
1642 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1643 rollback.
1644
16452011-07-28 Torvald Riegel <triegel@redhat.com>
1646
1647 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1648 transaction properties from the caller instead of from the
1649 transaction object.
1650 * libitm_i.h: Same.
1651 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1652
16532011-07-28 Torvald Riegel <triegel@redhat.com>
1654
1655 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1656 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1657 * dispatch.h: Same.
1658 * method-serial.cc: Same.
1659 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1660 flat nesting as default, and closed nesting on demand.
1661 (GTM::gtm_transaction::rollback): Same.
1662 (_ITM_abortTransaction): Same.
1663 (GTM::gtm_transaction::restart): Same.
1664 (GTM::gtm_transaction::trycommit): Same.
1665 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1666 (choose_code_path): New.
1667 (GTM::gtm_transaction_cp::save): New.
1668 (GTM::gtm_transaction_cp::commit): New.
1669 * query.cc (_ITM_inTransaction): Support flat nesting.
1670 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1671 (GTM::gtm_transaction): Support flat and closed nesting.
1672 * alloc.cc (commit_allocations_2): New.
1673 (commit_cb_data): New helper struct.
1674 (GTM::gtm_transaction::commit_allocations): Handle nested
1675 commits/rollbacks.
1676 * libitm.texi: Update user action section, add description of nesting.
1677
16782011-07-28 Torvald Riegel <triegel@redhat.com>
1679
1680 * libitm_i.h: Add closed nesting as restart reason.
1681 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1682
16832011-07-28 Torvald Riegel <triegel@redhat.com>
1684
1685 * useraction.cc: Use vector instead of list to store actions.
1686 Also support partial rollbacks for closed nesting.
1687 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1688 * beginend.cc: Same.
1689
16902011-07-28 Torvald Riegel <triegel@redhat.com>
1691
1692 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1693 closed_nesting flags, as well as a closed nesting alternative.
1694 * method-serial.cc: Same.
1695 (serial_dispatch): Renamed to serialirr_dispatch.
1696 (GTM::dispatch_serialirr): Same.
1697 (serial_dispatch_ul): Renamed to serial_dispatch.
1698 (GTM::dispatch_serial): Same.
1699
17002011-07-28 Torvald Riegel <triegel@redhat.com>
1701
1702 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1703
17042011-07-28 Torvald Riegel <triegel@redhat.com>
1705
1706 * aatree.h (aa_tree::remove): New.
1707 (aa_tree::operator new): Add placement new.
1708
17092011-07-02 Torvald Riegel <triegel@redhat.com>
1710
1711 * containers.h: New file.
1712 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1713 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1714 * common.h: ... to here.
1715 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1716 * local.cc: Same.
1717
17182011-06-30 Torvald Riegel <triegel@redhat.com>
1719
1720 * libitm_i.h (STATE_ABORTING): Remove.
1721 * beginend.cc (_ITM_abortTransaction): Same.
1722 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1723 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1724 (_ITM_rollbackTransaction): Remove.
1725 * beginend.cc: Same.
1726 * libitm.map: Same.
1727 * libitm.texi: Document these ABI changes.
1728
17292011-06-30 Torvald Riegel <triegel@redhat.com>
1730
1731 * libitm.texi: New file.
1732 * Makefile.am: Add libitm.texi.
1733 * Makefile.in: Rebuild.
1734
17352011-06-30 Torvald Riegel <triegel@redhat.com>
1736
1737 * libitm_i.h: Move parts to common.h and dispatch.h.
1738 * common.h: New file.
1739 * dispatch.h: New file, new dispatch class.
1740 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1741 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1742 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1743 decision to retry.cc.
1744 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1745 only.
1746 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1747 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1748 logging.
1749 * barrier.cc: Use new barriers definitions.
1750 (abi_dispatch::memmove_overlap_check): New.
1751 * config/x86/x86_sse.cc: Same.
1752 * config/x86/x86_avx.cc: Same.
1753 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1754 memcpy.cc.
1755 * Makefile.in: Rebuild.
1756 * method-readonly.cc: Remove.
1757 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1758 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1759
17602011-06-30 Torvald Riegel <triegel@redhat.com>
1761
1762 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1763 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1764 * testsuite/libitm.c/dropref-2.c: Same.
1765 * testsuite/libitm.c/dropref.c: Same.
1766
17672011-06-30 Torvald Riegel <triegel@redhat.com>
1768
1769 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1770 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1771 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1772 * alloc_c.cc: Same.
1773 * barrier.tpl: Same.
1774 * beginend.c: Same.
1775 * config/generic/tls.h: Same.
1776 * config/x86/tls.h: Same.
1777 * libitm_i.h: Same.
1778 * memcpy.cc: Same.
1779 * memset.cc: Same.
1780 * method-readonly.cc: Same.
1781 * method-serial.cc: Same.
1782 * method-wbetl.cc: Same.
1783 * retry.cc: Same.
1784
17852011-03-03 Richard Henderson <rth@redhat.com>
1786
1787 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1788 From Patrik Marlier <patrick.marlier@unine.ch>.
1789
17902011-02-03 Richard Henderson <rth@redhat.com>
1791
1792 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1793 * configure.ac: Use it.
1794 * configure, config.h.in: Rebuild.
1795 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1796 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1797 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1798 * libitm.map: Use wildcards to match size_t mangling.
1799
18002010-12-14 Richard Henderson <rth@redhat.com>
1801
1802 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1803 blocks of TIDs per thread.
1804 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1805 (setup_gtm_thr): Return the thread structure.
1806 * config/x86/tls.h (setup_gtm_thr): Likewise.
1807
18082010-12-14 Richard Henderson <rth@redhat.com>
1809
1810 * clone.cc (table_lock): Remove.
1811 (find_clone): Don't take it.
1812 (ExcludeTransaction): New helper class.
1813 (_ITM_registerTMCloneTable): Use it.
1814 (_ITM_deregisterTMCloneTable): Likewise.
1815
18162010-12-14 Richard Henderson <rth@redhat.com>
1817
1818 * config/x86/tls.h: New file.
1819
18202010-07-15 Richard Henderson <rth@redhat.com>
1821
1822 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1823 * Makefile.in: Rebuild.
1824
18252010-07-13 Aldy Hernandez <aldyh@redhat.com>
1826
1827 * method-wbetl.cc (trydropreference): Fix source line.
1828
18292010-07-13 Aldy Hernandez <aldyh@redhat.com>
1830
1831 * libitm.h: Add comment.
1832 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1833
18342010-07-07 Aldy Hernandez <aldyh@redhat.com>
1835
1836 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1837 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1838 available, use pthread mutexes.
1839 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1840 * config.h.in: Regenerate.
1841 * configure: Regenerate.
1842
18432010-07-06 Aldy Hernandez <aldyh@redhat.com>
1844
1845 * libitm.h (ITM_PURE): Define.
1846 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1847
18482010-06-28 Aldy Hernandez <aldyh@redhat.com>
1849
1850 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1851 (validate): Add comment.
1852 (trydropreference): New.
1853 * method-readonly.cc (class readonly_dispatch): Add
1854 trydropreference.
1855 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1856 Call trydropreference().
1857 * libitm.h (_ITM_dropReferences): Remove const attribute.
1858 * method-serial.cc (class serial_dispatch): Add trydropreference.
1859 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1860
18612010-06-28 Aldy Hernandez <aldyh@redhat.com>
1862
1863 * memcpy.cc (do_memcpy): Comment.
1864
18652010-06-25 Aldy Hernandez <aldyh@redhat.com>
1866
1867 * barrier.tpl: Add comments throughout.
1868
18692010-06-24 Aldy Hernandez <aldyh@redhat.com>
1870
1871 * method-wbetl.cc (struct w_entry): Add comments.
1872 (trycommit): Same.
1873 (rollback): Same.
1874
18752010-06-24 Aldy Hernandez <aldyh@redhat.com>
1876
1877 * alloc_c.cc (_ITM_dropReferences): New.
1878 * libitm.map (_ITM_dropReferences): Add.
1879 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1880 * libitm_i.h (struct gtm_transaction): Declare
1881 drop_references_allocations and drop_references_local.
1882 * local.cc (rollback_local): Ignore memory when applicable.
1883 (drop_references_local): New.
1884
18852010-06-23 Richard Henderson <rth@redhat.com>
1886
1887 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1888 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1889 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1890 * config/alpha/target.h: Likewise.
1891 * config/generic/tls.cc (gtm_mask_stack): Use it.
1892
18932010-06-23 Richard Henderson <rth@redhat.com>
1894
1895 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1896 a mutex instead of trying a lock-free compare-and-swap on the list.
1897 (gtm_cacheline_page::operator delete): Likewise.
1898
18992010-06-16 Richard Henderson <rth@redhat.com>
1900
1901 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1902 that overlap the libitm stack.
1903 * barrier.tpl: Mark incoming stack.
1904 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1905 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1906 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1907 * memcpy.cc, memset.cc: Likewise.
1908 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1909 * config/generic/tls.h (gtm_thread): Add stack_top member.
1910 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1911 * libitm_i.h (gtm_mask_stack): Declare.
1912 * config/generic/tls.cc: New file.
1913 * Makefile.am (libitm_la_SOURCES): Add it.
1914 (AM_CXXFLAGS): Turn off exceptions.
1915 * Makefile.in: Rebuild.
1916
19172010-06-16 Richard Henderson <rth@redhat.com>
1918
1919 * alloc.cc (struct gtm_alloc_action): Move definition ...
1920 * libitm_i.h: ... here.
1921 (class gtm_transaction): Declare new and delete.
1922 * beginend.cc (alloc_tx): Reformulate as operator new.
1923 (free_tx): Reformulate as operator delete.
1924 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1925
19262010-06-11 Richard Henderson <rth@redhat.com>
1927
1928 * clone.cc (clone_entry_compare): Fix typo.
1929 From Patrik Marlier <patrick.marlier@unine.ch>.
1930
19312010-05-13 Richard Henderson <rth@redhat.com>
1932
1933 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1934 in extern "C".
1935
19362010-05-07 Aldy Hernandez <aldyh@redhat.com>
1937
1938 * libitm_i.h (struct gtm_transaction): Remove
1939 get_allocation_size.
1940 (record_allocation): Remove size parameter.
1941 * libitm.map (_ITM_realloc): Remove.
1942 * alloc_c.cc (_ITM_realloc): Remove.
1943 (_ITM_malloc): Remove size argument to record_allocation.
1944 (_ITM_calloc): Same.
1945 * alloc_cpp.cc (_ZGTtnwm): Same.
1946 (_ZGTtnwmRKSt9nothrow_t): Same.
1947 (_ZGTtnam): Same.
1948 (_ZGTtnamRKSt9nothrow_t): Same.
1949 * alloc.cc (struct gtm_alloc_action): Remove size.
1950 (get_allocation_size): Remove.
1951 (commit_allocations): Add comment.
1952 (record_allocation): Remove size parameter.
1953 (forget_allocation): Remove set of size.
1954
19552010-04-19 Aldy Hernandez <aldyh@redhat.com>
1956
1957 * Makefile.am (abi_version): New.
1958 (AM_CXXFLAGS): Pass abi_version.
1959 * Makefile.in: Regenerate.
1960 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1961
19622010-04-06 Aldy Hernandez <aldyh@redhat.com>
1963
1964 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1965 _ITM_getTMCloneOrIrrevokable.
1966 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1967 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1968
19692010-03-26 Aldy Hernandez <aldyh@redhat.com>
1970
1971 * configure.ac: Remove Linux futex support.
1972 * configure.tgt (config_path): Same.
1973 * Makefile.am: Same.
1974 * config/linux: Remove entire directory.
1975 * configure: Rebuild.
1976 * Makefile.in: Rebuild.
1977 * testsuite/Makefile.in: Rebuild.
1978
19792010-03-09 Aldy Hernandez <aldyh@redhat.com>
1980
1981 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1982 switching to serial mode.
1983 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1984
19852010-03-03 Aldy Hernandez <aldyh@redhat.com>
1986
1987 * configure.tgt: Add emacs -*- tags.
1988 * barrier.tpl: Same.
1989
19902010-02-23 Aldy Hernandez <aldyh@redhat.com>
1991
1992 * Makefile.am: Rename serial.cc to method-serial.cc.
1993 * Makefile.in: Regenerate with automake 1.11.1.
1994 * testsuite/Makefile.in: Same.
1995 * aclocal.m4: Regenerate with aclocal 1.11.1.
1996 * method-serial.cc: Rename from serial.cc.
1997 * libitm_i.h (struct gtm_transaction): Update comment on
1998 serialirr_mode.
1999
20002010-02-22 Aldy Hernandez <aldyh@redhat.com>
2001
2002 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
2003 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
2004
20052010-02-11 Aldy Hernandez <aldyh@redhat.com>
2006
2007 * configure: Rebuild.
2008
20092009-11-12 Richard Henderson <rth@redhat.com>
2010
2011 * Rewrite everything in C++.
2012
20132009-11-03 Richard Henderson <rth@redhat.com>
2014
2015 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
2016 * Makefile.am (libitm_la_SOURCES): Add them.
2017 * configure.ac (ARCH_X86): New conditional.
2018 * Makefile.in, configure: Rebuild.
2019 * configure.tgt: Set up ARCH; do cflags setup at the same time.
2020 Move futex setup into "other system configury" case.
2021 * local.c (rollback_local): Merge into ...
2022 (GTM_rollback_local): ... here.
2023 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
2024 (_ITM_LB): Define as an alias to GTM_LB.
2025
20262009-11-03 Richard Henderson <rth@redhat.com>
2027
2028 * method-readonly.c: New file.
2029 * Makefile.am (libitm_la_SOURCES): Add it.
2030 * Makefile.in: Rebuild.
2031 * beginend.c (gtm_stmlock_array, gtm_clock): New.
2032 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
2033 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
2034 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
2035 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
2036 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
2037 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
2038 gtm_get_clock, gtm_inc_clock): New.
2039 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
2040 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
2041 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
2042 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
2043 replace uses with new libitm_i.h symbols.
2044 (dispatch_wbetl): Rename from wbetl_dispatch.
2045 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
2046 away from dispatch_readonly; abort if the beginTransaction call
2047 asserted that the transaction was readonly.
2048
20492009-11-03 Richard Henderson <rth@redhat.com>
2050
2051 * memset.c: New file.
2052 * Makefile.am (libitm_la_SOURCES): Add it.
2053 * Makefile.in: Rebuild.
2054 * testsuite/libitm.c/memset-1.c: New.
2055
20562009-11-03 Richard Henderson <rth@redhat.com>
2057
2058 * dispatch.c: Remove file.
2059 * useraction.c (struct gtm_user_action): Move from libitm.h.
2060 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
2061 (serial_memset, serial_memmove, serial_memcpy): Remove.
2062 (serial_W*, serial_R*): Remove.
2063 (serial_dispatch): Update to match.
2064 * configure.ac: Move Werror down below configure checks. Don't
2065 check for sys/loadavg.h, do check for malloc.h. Don't check for
2066 getloadavg and clock_gettime; do check for memalign, posix_memalign.
2067 Use GCC_AC_FUNC_MMAP_BLACKLIST
2068 * libitm.h: Split out all internal items to...
2069 * libitm_i.h: ... here. New file.
2070 * copymask.c: New file.
2071 * local.c (struct gtm_local_undo): Move from libitm.h.
2072 (GTM_alloc_local): Rename from alloc_local; export.
2073 * memcpy.c: New file.
2074 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
2075 * config/posix/page.c: New file.
2076 * config/posix/target_tls.h: Remove file.
2077 * barrier.c: New file.
2078 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
2079 copymask.c, page.c.
2080 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
2081 * method-wbetl.c: Rewrite for new cacheline methods.
2082 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
2083
2084 * config/alpha/sjlj.S: Fix typo.
2085 * config/alpha/target_i.h: Copy functions from alpha/target.h.
2086 * config/alpha/copymask.c: New file.
2087 * config/alpha/target.h (CACHELINE_SIZE): New.
2088 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
2089
2090 * config/x86/target_i.h: Copy functions from x86/target.h.
2091 * config/x86/copymask.c: New file.
2092 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
2093 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
2094 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
2095 * config/x86/target_tls.h: Move contents to target_i.h.
2096
2097 * testsuite/libitm.c/clone-1.c: Include libitm.h.
2098 * testsuite/libitm.c/memcpy-1.c: New.
2099
21002009-10-22 Richard Henderson <rth@redhat.com>
2101
2102 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
2103 (AM_CCASFLAGS): New.
2104 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
2105 saving/restoring _AC_ARG_VAR_PRECIOUS.
2106 * Makefile.in, aclocal.m4, config.h.in, configure,
2107 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
2108
21092009-10-22 Richard Henderson <rth@redhat.com>
2110
2111 * testsuite/*: Update for new compiler syntax.
2112
21132009-10-21 Richard Henderson <rth@redhat.com>
2114
2115 * libitm.h (_ITM_abortReason): Add outerAbort.
2116
21172009-08-03 Richard Henderson <rth@redhat.com>
2118
2119 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
2120 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
2121 * method-wbetl.c (struct w_entry): Remove mask.
2122 (wbetl_write, wbetl_load): Return pointer to word containing the data;
2123 adjust all callers.
2124
21252009-07-22 Richard Henderson <rth@redhat.com>
2126
2127 * eh_cpp.c: New file.
2128 * Makefile.am (libitm_la_SOURCES): Add it.
2129 * Makefile.in: Rebuild.
2130 * beginend.c (GTM_rollback_transaction): Undo exception state.
2131 (GTM_trycommit_transaction): Mark inline.
2132 (GTM_trycommit_and_finalize_transaction): Split out from ...
2133 (_ITM_commitTransaction): ... here.
2134 (_ITM_commitTransactionEH): New function.
2135 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
2136 cxa_unthrown, eh_in_flight; reorder.
2137
2138 * testsuite/libitm.c++/c++.exp: New.
2139 * testsuite/libitm.c++/eh-1.C: New.
2140
2141 * aatree.c (aa_free): Remove REGPARM.
2142 * aatree.h: Remove all REGPARM.
2143
21442009-07-18 Richard Henderson <rth@redhat.com>
2145
2146 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
2147 * Makefile.am (libitm_la_SOURCES): Add them.
2148 * Makefile.in: Rebuild.
2149 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
2150 (GTM_trycommit_transaction): Likewise.
2151 * libitm.h: Include aatree.h
2152 (struct gtm_alloc_action): New.
2153 (struct gtm_transaction): Add alloc_actions.
2154 (GTM_record_allocation, GTM_forget_allocation): Declare.
2155 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
2156 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
2157 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
2158 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
2159 _ZGTtdaPvRKSt9nothrow_t): Export.
2160
21612009-07-18 Richard Henderson <rth@redhat.com>
2162
2163 * target_tls.h: Move ...
2164 * config/posix/target_tls.h: ... here.
2165
21662009-07-07 Richard Henderson <rth@redhat.com>
2167
2168 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
2169
21702009-07-07 Richard Henderson <rth@redhat.com>
2171
2172 * Update to GPL3.
2173
21742009-07-07 Richard Henderson <rth@redhat.com>
2175
2176 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
2177 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
2178
2179 * configure.tgt: Don't use -ftls-model for x86 linux.
2180 * libitm.h: Include target.h after standard includes.
2181 (_gtm_thr): Rename from gtm_thr.
2182 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
2183 (gtm_disp, set_gtm_disp): New.
2184 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
2185 retry.c, serial.c, useraction.c: Use accessor functions throughout.
2186 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
2187
21882009-07-07 Richard Henderson <rth@redhat.com>
2189
2190 * config/linux/rwlock.c (EZ): New define. Use it throughout.
2191
21922009-07-06 Richard Henderson <rth@redhat.com>
2193
2194 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
2195 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
2196 (_ITM_beginTransaction): Take variadic arguments.
2197 (_ITM_registerThrownObject): Declare.
2198 * beginend.c, serial.c: Update.
2199 * libitm.map: Add _ITM_registerThrownObject.
2200
22012009-01-28 Richard Henderson <rth@redhat.com>
2202
2203 * Makefile.am (libitm_la_SOURCES): Add clone.c.
2204 * Makefile.in: Rebuild.
2205 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
2206 (GTM_restart_transaction): Fix uninstrumented code check.
2207 * retry.c (GTM_decide_retry_strategy): Add serial check.
2208 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
2209 automatically go irrevokable when in serial mode.
2210 * clone.c: New file.
2211 * libitm.h, libitm.map: Update.
2212
22132009-01-27 Richard Henderson <rth@redhat.com>
2214
2215 * Makefile.am (LTCCASCOMPILE): Define.
2216 (libitm_la_SOURCES): Add methid-wbetl.c.
2217 * testsuite/Makefile.am: New
2218 * configure.ac: Add testsuite/Makefile.
2219 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
2220 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
2221 (_ITM_abortTransaction): Finalize implementation method; pass
2222 transaction properties to longjmp.
2223 (GTM_restart_transaction): Split out from ...
2224 (_ITM_commitTransaction): ... here.
2225 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
2226 Move to config/x86/target.h.
2227 * config/linux/alpha/futex_bits.h: New.
2228 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
2229 * config/x86/target.h: Disable target types for 32-bit.
2230 * config/alpha/sjlj.S, config/alpha/target.h: New.
2231 * libitm.h (struct gtm_dispatch): Add init, fini.
2232 (enum restart_reason): New.
2233 (struct gtm_transaction): Add method and restarts.
2234 * retry.c (GTM_decide_retry_strategy): Implement.
2235 * serial.c (serial_init, serial_fini): New.
2236 (GTM_serialmode): Finialize outgoing method.
2237 * method-wbetl.c: New.
2238
22392008-12-09 Richard Henderson <rth@redhat.com>
2240
2241 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
2242 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
2243 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
2244 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
2245 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
2246 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
2247 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
2248 * serial.c (serial_R##T, serial_W##T): Likewise.
2249
22502008-11-21 Richard Henderson <rth@redhat.com>
2251
2252 * Initial commit.
21fa2a29 2253\f
8d9254fc 2254Copyright (C) 2008-2020 Free Software Foundation, Inc.
21fa2a29
JJ
2255
2256Copying and distribution of this file, with or without modification,
2257are permitted in any medium without royalty provided the copyright
2258notice and this notice are preserved.