]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR c++/59759 (internal compiler error: in unify, using std::enable_if on classes)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
d2653984
TR
12016-01-16 Torvald Riegel <triegel@redhat.com>
2
3 * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
4 safety.
5 * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
6 * libitm/testsuite/libitm.c/priv-1.c: New.
7
a04d5fc9
TR
82015-01-15 Torvald Riegel <triegel@redhat.com>
9
10 testsuite/libitm.c++/libstdc++-safeexc.C: New.
11
e89137ce
TR
122016-01-13 Torvald Riegel <triegel@redhat.com>
13
14 * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
15 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
16 (gtm_rwlock::write_unlock): Likewise.
17
4c868789
RH
182016-01-13 Richard Henderson <rth@redhat.com>
19
20 * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
21 (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
22 (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
23 (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
24 * configure.ac (ARCH_AARCH64): New conditional.
25 (ARCH_PPC, ARCH_S390): Likewise.
26 * Makefile.in, configure: Rebuild.
27
28 * libitm.h (_ITM_TYPE_M128): Always define.
29 * vect64.cc: Split ...
30 * vect128.cc: ... out of...
31 * config/x86/x86_sse.cc: ... here.
32 * config/arm/neon.cc: New file.
33
629e4729
TR
342016-01-13 Torvald Riegel <triegel@redhat.com>
35
36 * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
37 * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
38 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
39 * dispatch.h (abi_dispatch::snapshot_most_recent): New.
40 * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
41 * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
42 * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
43 (serialirr_dispatch::snapshot_most_recent): New.
44 (serialirr_onwrite_dispatch::snapshot_most_recent): New.
45
0d1ed412
TR
462016-01-12 Torvald Riegel <triegel@redhat.com>
47
48 * libitm_i.h (gtm_mask_stack): Remove.
49 * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
50 * stmlock.h: Remove file.
51 * config/alpha/cacheline.h: Likewise.
52 * config/generic/cacheline.h: Likewise.
53 * config/powerpc/cacheline.h: Likewise.
54 * config/sparc/cacheline.h: Likewise.
55 * config/x86/cacheline.h: Likewise.
56
21fa2a29
JJ
572016-01-04 Jakub Jelinek <jakub@redhat.com>
58
818ab71a
JJ
59 Update copyright years.
60
21fa2a29
JJ
61 * libitm.texi: Bump @copying's copyright year.
62
e7f7330f
TR
632015-11-26 Torvald Riegel <triegel@redhat.com>
64
65 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
66 (ml_wt_dispatch::pre_write): Adapt.
67 (ml_wt_dispatch::pre_load): Likewise.
68
4f8a3b87
TR
692015-11-22 Torvald Riegel <triegel@redhat.com>
70
71 * libitm_i.h (gtm_alloc_action): Remove union.
72 * testsuite/libitm.c/alloc-1.c: New.
73
258c1d07
TR
742015-11-19 Torvald Riegel <triegel@redhat.com>
75
76 * testsuite/libitm.c++/eh-5.C: New.
77 * libitm.h (_ITM_cxa_free_exception): New.
78 * libitm.map (_ITM_cxa_free_exception): Add it.
79 * libitm.texi: Update ABI docs.
80 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
81 (gtm_transaction_cp::cxa_uncaught_count): Add.
82 (gtm_thread::cxa_unthrown): Remove.
83 (gtm_thread::cxa_uncaught_count_ptr): Add.
84 (gtm_thread::cxa_uncaught_count): Add.
85 (gtm_thread::drop_references_allocations): Rename to...
86 (gtm_thread::discard_allocation): ... this and adapt.
87 (gtm_thread::init_cpp_exceptions): New.
88 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
89 (gtm_thread::begin_transaction): Likewise.
90 (gtm_transaction_cp::save): Likewise.
91 (gtm_thread::trycommit): Likewise.
92 * eh_cpp.cc: Add overview comments.
93 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
94 (free_any_exception, _ITM_cxa_free_exception): New.
95 (gtm_thread::init_cpp_exceptions): Define.
96 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
97 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
98 (gtm_thread::revert_cpp_exceptions): Likewise.
99
c518678b
TR
1002015-11-09 Torvald Riegel <triegel@redhat.com>
101
102 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
103 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
104 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
105 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
106 (gtm_thread::forget_allocations): New overload with size_t argument.
107 * alloc.c (gtm_thread::forget_allocation): Define new overload and
108 adapt existing one.
109 (gtm_thread::record_allocation): Adapt.
110 (gtm_thread::commit_allocations_1): Adapt.
111 (gtm_thread::commit_allocations_2): Adapt.
112 * testsuite/libitm.c++/newdelete.C: New.
113
1e44e857
DJ
1142015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
115 Joseph Myers <joseph@codesourcery.com>
116 Mark Shinwell <shinwell@codesourcery.com>
117 Andrew Stubbs <ams@codesourcery.com>
118 Rich Felker <dalias@libc.org>
119
120 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
121 GTM_begin_transaction for compatibility with FDPIC.
122
9e531d37
DM
1232015-10-09 David Malcolm <dmalcolm@redhat.com>
124
125 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
126 using load_gcc_lib.
127
c629c246
GFM
1282015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
129
130 PR libitm/61164
131 * local_atomic (__always_inline): Rename to...
132 (__libitm_always_inline): ... this.
133
cd5a9a74
CSLL
1342015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
135
136 PR target/52482
137 * config/powerpc/sjlj.S: Port to Xcode 2.5.
138
ea023bcf
UB
1392015-05-27 Uros Bizjak <ubizjak@gmail.com>
140
d778b5a0
UB
141 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
142 operands "op" and "val" to int.
143
1442015-05-27 Uros Bizjak <ubizjak@gmail.com>
145
146 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
147 "op" and "val" to int.
148
1492015-05-27 Uros Bizjak <ubizjak@gmail.com>
150
151 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
152 "op" and "val" to int.
153
1542015-05-27 Uros Bizjak <ubizjak@gmail.com>
155
156 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
157 Declare as static int.
158 (FUTEX_PRIVATE_FLAG): Remove L suffix.
159 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
160
1612015-05-27 Uros Bizjak <ubizjak@gmail.com>
162
163 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
164 sys_futex0 function.
ea023bcf 165
503902f9
MH
1662015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
167
168 * Makefile.in: Regenerated with automake-1.11.6.
169 * aclocal.m4: Likewise.
170 * configure: Likewise.
171 * testsuite/Makefile.in: Likewise.
172
96ce40cb
GR
1732015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
174
175 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
176 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
177
3a07b160
L
1782015-01-15 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR libitm/64360
181 * libitm.c/stackundo.c (test2): Make it static.
182 (test1): Likewise.
183
5624e564
JJ
1842015-01-05 Jakub Jelinek <jakub@redhat.com>
185
186 Update copyright years.
187
b67cd4e3
JJ
1882015-01-05 Jakub Jelinek <jakub@redhat.com>
189
190 * libitm.texi: Bump @copying's copyright year.
191
69aef6dc
KT
1922014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
193
194 * testsuite/lib/libitm.exp: Load target-utils.exp.
195 Move load of target-supports.exp earlier.
196
68bc9270
UB
1972014-12-03 Uros Bizjak <ubizjak@gmail.com>
198
199 * configure.tgt (x86_64): Tune -m32 multilib to generic.
200
a699d672
L
2012014-11-21 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR bootstrap/63784
204 * configure: Regenerated.
205
ebf6d33b
FXC
2062014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
207
208 PR target/63610
209 * configure: Regenerate.
210
99183741
MP
2112014-10-06 Marek Polacek <polacek@redhat.com>
212
213 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
214 * testsuite/libitm.c/memset-1.c: Likewise.
215
b6334cf4
RH
2162014-07-24 Richard Henderson <rth@redhat.com>
217
218 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
219 addressing mode in epilogue.
220
3c698bf0
RO
2212014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222
223 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
224 -mclear-hwcap instead.
225 * configure: Regenerate.
226 * clearcap.map: Remove.
227
dbed5a9b
JM
2282014-05-21 John Marino <gnugcc@marino.st>
229
230 * configure.tgt (*-*-dragonfly*): New target.
231
b17f08dd
RH
2322014-05-19 Richard Henderson <rth@redhat.com>
233
234 * config/aarch64/sjlj.S: New file.
235 * config/aarch64/target.h: New file.
236 * configure.tgt: Enable aarch64.
237
5e1f630a
RO
2382014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
239
240 * config/generic/asmcfi.h: Also check for
241 __GCC_HAVE_DWARF2_CFI_ASM.
242
84c2f4b0
RH
2432013-04-02 Richard Henderson <rth@redhat.com>
244
245 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
246 * config/arm/target.h, config/sh/target.h: Likewise.
247 * config/sparc/target.h, config/x86/target.h: Likewise.
248
7cc51d64
JJ
2492014-03-26 Jakub Jelinek <jakub@redhat.com>
250
251 * config/linux/futex_bits.h: Include errno.h.
252 (sys_futex0): If syscall returns -1, return -errno rather than
253 -1.
254
c288ec8f
JM
2552014-03-26 Joseph Myers <joseph@codesourcery.com>
256
257 * libitm.texi (Index): Rename to Library Index.
258
ed100f5d
L
2592014-01-13 H.J. Lu <hongjiu.lu@intel.com>
260
261 PR libitm/53113
262 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
263 (x86_avx.lo): Append -mavx to CXXFLAGS.
264 * Makefile.in: Regenerate.
265
f93608e6
RS
2662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
267
268 Update copyright years
269
98db73df
TB
2702014-01-02 Tobias Burnus <burnus@net-b.de>
271
272 * libitm.texi: Bump @copying's copyright year.
273
b54214fe
UW
2742013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
275
276 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
277 (FUNC): Define ELFv2 variant.
278 (END): Likewise.
279 (HIDDEN): Likewise.
280 (CALL): Likewise.
281 (BASE): Likewise.
282 (LR_SAVE): Likewise.
283
3cbe17f7
AM
2842013-09-20 Alan Modra <amodra@gmail.com>
285
286 * configure: Regenerate.
287
6fb471d8
TR
2882013-08-30 Torvald Riegel <triegel@redhat.com>
289
290 * config/posix/rwlock.cc: Fix initialization order.
291
bec9ec3f
TR
2922013-08-30 Torvald Riegel <triegel@redhat.com>
293
294 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
295 (htm_fastpath): Assign an asm name.
296 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
297 HTM fast paths.
298 (_ITM_actions): Likewise.
299 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
300 x86_64.
301 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
302 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
303 field to the start of the structure.
304 * config/linux/rwlock.h (gtm_rwlock): Update comments.
305 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
306 handling for custom HTM fast paths.
307
1869217f
AK
3082013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
309 Revert:
310 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
311
312 * configure.tgt: Add -msoft-float to XCFLAGS.
313
d62d5152
AK
3142013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
315
316 * configure.tgt: Add -msoft-float to XCFLAGS.
317
aaaffb2a
AK
3182013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
319
320 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
321 (htm_transaction_active): Enable zEC12 instructions in the
322 assembler.
323 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
324
167f68ed
AK
3252013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
326
327 * acinclude.m4: Add htm asm check for s390.
328 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
329 * configure: Regenerate.
330 * config/s390/target.h: Remove __HTM__ check.
331 (htm_available): Call getauxval to get hwcaps and check whether
332 HTM is available or not.
333
0258b6e4
PB
3342013-07-15 Peter Bergner <bergner@vnet.ibm.com>
335
336 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
337 * configure.ac: Use it.
338 (AC_CHECK_HEADERS): Check for sys/auxv.h.
339 (AC_CHECK_FUNCS): Check for getauxval.
340 * config.h.in, configure: Rebuild.
341 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
342 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
343 (USE_HTM_FASTPATH): Define.
344 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
345 _HTM_RETRIES) New macros.
346 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
347 htm_begin_success, htm_commit, htm_transaction_active): New functions.
348
5a3fe9b6
AK
3492013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
350
351 * config/s390/target.h: Include htmintrin.h.
352 (_HTM_ITM_RETRIES): New macro definition.
353 (htm_available, htm_init, htm_begin, htm_begin_success)
354 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
355
6c84d576
IS
3562013-06-20 Iain Sandoe <iain@codesourcery.com>
357 Cesar Philippidis <cesar@codesourcery.com>
358
359 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
360 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
361 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
362 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
363
480c696b
TR
3642013-06-20 Torvald Riegel <triegel@redhat.com>
365
366 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
367 (_ITM_getTransactionId): Same.
368 * config/x86/target.h (htm_transaction_active): New.
369
b1db457b
TR
3702013-06-20 Torvald Riegel <triegel@redhat.com>
371
372 PR libitm/57643
373 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
374 the HTM fastpath.
375
51249377
GP
3762013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
377
378 PR bootstrap/56714
379 * local_atomic (__always_inline): Always define our version.
380 (__calculate_memory_order): Mark inline.
381 (atomic_thread_fence): Ditto.
382 (atomic_signal_fence): Ditto.
383 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
384 (atomic_bool::atomic_flag_clear_explicit): Ditto.
385 (atomic_bool::atomic_flag_test_and_set): Ditto.
386 (atomic_bool::atomic_flag_clear): Ditto.
387
f818478b
JJ
3882013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
389
390 * config/s390/sjlj.S: New file.
391 * config/s390/target.h: New file.
392 * configure.tgt: Set options for S/390.
393
ab4425be
AK
3942013-03-23 Andi Kleen <ak@linux.intel.com>
395
396 * local_atomic (__always_inline): Add.
397 (__calculate_memory_order, atomic_thread_fence,
398 atomic_signal_fence, test_and_set, clear, store, load,
399 exchange, compare_exchange_weak, compare_exchange_strong,
400 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
401 Add __always_inline to force inlining.
402
6c59ffd1
IS
4032013-02-11 Iain Sandoe <iain@codesourcery.com>
404 Jack Howarth <howarth@bromo.med.uc.edu>
405 Patrick Marlier <patrick.marlier@gmail.com>
406
407 PR libitm/55693
408 * alloc_cpp.cc: Enable function declarations on darwin.
409 * eh_cpp.cc: Likewise.
410
75f9527c
RS
4112013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
412
413 Update copyright years.
414
64fbcc74
TR
4152012-11-09 Torvald Riegel <triegel@redhat.com>
416
417 * beginend.cc (htm_fastpath): New.
418 (gtm_thread::begin_transaction, _ITM_commitTransaction,
419 _ITM_commitTransactionEH): Add HTM fastpath handling.
420 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
421 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
422 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
423 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
424 * configure.tgt: Add -mrtm to XCFLAGS.
425 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
426 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
427 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
428 * retry.cc (parse_default_method): Add HTM method parsing.
429 (gtm_thread::number_of_threads_changed): Use HTM by default if
430 available.
431
b9efc877
TS
4322012-11-04 Thomas Schwinge <thomas@codesourcery.com>
433
434 * configure: Regenerate.
435
07d3b5c8
RH
4362012-10-31 Richard Henderson <rth@redhat.com>
437
438 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
439 * configure.ac: Use it.
440 * config.h.in, configure: Rebuild.
441 * testsuite/Makefile.in: Rebuild.
442
eb00e959
TR
4432012-10-24 Torvald Riegel <triegel@redhat.com>
444
445 * libitm.texi: Clarify ABI requirements for data-logging functions.
446
b679c813
TR
4472012-10-24 Torvald Riegel <triegel@redhat.com>
448
449 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
450 it requires serial mode instead of assuming that for certain
451 dispatchs.
452 * dispatch.h (abi_dispatch::requires_serial): New.
453 (abi_dispatch::abi_dispatch): Adapt.
454 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
455 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
456 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
457 serial_dispatch::serial_dispatch,
458 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
459
0c609a21
UB
4602012-10-02 Uros Bizjak <ubizjak@gmail.com>
461
462 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
463 and ia32 declarations some more.
464 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
465
c0758df9
JJ
4662012-09-20 Jakub Jelinek <jakub@redhat.com>
467
468 PR other/43620
469 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
470 * configure: Regenerate.
471 * Makefile.in: Regenerate.
472
690c45b8
DE
4732012-09-14 David Edelsohn <dje.gcc@gmail.com>
474
475 * configure: Regenerated.
476
68a12ef3
UB
4772012-07-31 Uros Bizjak <ubizjak@gmail.com>
478
479 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
480
f2f9a097
PM
4812012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
482
483 * eh_cpp.cc: Fix __cxa_end_catch declaration.
484
e6d5f8c9
L
4852012-05-16 H.J. Lu <hongjiu.lu@intel.com>
486
487 * configure: Regenerated.
488
0100e3b3
L
4892012-04-04 H.J. Lu <hongjiu.lu@intel.com>
490
491 PR libitm/52854
492 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
493 for x86-64.
494
2f6935f4
TG
4952012-04-03 Tristan Gingold <gingold@adacore.com>
496
497 * configure: Regenerate.
498
b9c23a61
L
4992012-03-31 H.J. Lu <hongjiu.lu@intel.com>
500
501 PR bootstrap/52812
502 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
503
6a26a74d
BRF
5042012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
505
506 * testsuite/lib/libitm.exp: load fortran-modules.exp
507
b24513a1
RO
5082012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509
510 * configure.tgt (*-*-irix6*): Remove.
511
0d23faac
TR
5122012-03-13 Torvald Riegel <triegel@redhat.com>
513
514 PR libitm/52526
515 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
516 wake-up.
517
5c30094f
RO
5182012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
519
520 * configure.tgt (*-*-osf*): Remove.
521 * configure: Regenerate.
522
d28b0b08
TR
5232012-03-05 Torvald Riegel <triegel@redhat.com>
524
525 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
526 memtransfer/memset if size isn't larger than zero.
527
034209bc
TR
5282012-03-02 Torvald Riegel <triegel@redhat.com>
529
530 * libitm.texi: Link to specification and add a usage example.
531
bc8da6ba
TR
5322012-02-24 Torvald Riegel <triegel@redhat.com>
533
534 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
535 default dispatch for more than 1 thread to ml_wt.
536
63b08143
TR
5372012-02-20 Torvald Riegel <triegel@redhat.com>
538
539 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
540
4c9bd6ac
TR
5412012-02-20 Torvald Riegel <triegel@redhat.com>
542
543 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
544
651ff415
TR
5452012-02-20 Torvald Riegel <triegel@redhat.com>
546
547 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
548 serial mode corner cases made obsolete by prior gtm_rwlock changes.
549 (gl_wt_dispatch.rollback): Same.
550
efee0113
TR
5512012-02-20 Torvald Riegel <triegel@redhat.com>
552
553 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
554
33a03827
TR
5552012-02-20 Torvald Riegel <triegel@redhat.com>
556
557 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
558 for RfW src. Optimize number of calls to gtm_thr.
559
a19db3f2
TR
5602012-02-20 Torvald Riegel <triegel@redhat.com>
561
562 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
563 acquisition to ...
564 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
565 (default_dispatch): Make atomic.
566 (GTM::gtm_thread::set_default_dispatch): Access atomically.
567 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
568 use decide_begin_dispatch() if default_dispatch might have changed.
569 (GTM::gtm_thread::number_of_threads_changed): Initialize
570 default_dispatch here.
571
e948a1fb
IS
5722012-02-15 Iain Sandoe <iains@gcc.gnu.org>
573 Patrick Marlier <patrick.marlier@gmail.com>
574
575 PR libitm/52220
576 * alloc_cpp.cc: No dummy definitions for darwin.
577 * eh_cpp.cc: Likewise.
578
72824d5e
RH
5792012-02-14 Richard Henderson <rth@redhat.com>
580
581 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
582
1f319dba
UB
5832012-02-14 Uros Bizjak <ubizjak@gmail.com>
584
585 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
586
31772c95
TR
5872012-02-14 Torvald Riegel <triegel@redhat.com>
588
589 * libitm_i.h (GTM::gtm_rwlog_entry): New.
590 (GTM::gtm_thread): Add read and write logs.
591 (GTM::dispatch_ml_wt): Declare.
592 * retry.cc (parse_default_method): Support ml_wt.
593 * method-ml.cc: New file.
594 * Makefile.am: Add method-ml.cc.
595 * Makefile.in: Regenerate.
596
5b9cf5d2
TR
5972012-02-14 Torvald Riegel <triegel@redhat.com>
598
599 * dispatch.h (GTM::abi_dispatch::supports): New.
600 (GTM::method_group::reinit): New.
601 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
602 (GTM::gtm_thread::number_of_threads_changed): Check that the method
603 supports the current situation.
604
7d33bcb7
TR
6052012-02-14 Torvald Riegel <triegel@redhat.com>
606
607 * util.cc (GTM::xcalloc): New.
608 * common.h (GTM::xcalloc): Declare.
609
62513f7b
EB
6102012-02-14 Eric Botcazou <ebotcazou@adacore.com>
611
612 * config/sparc/target.h (cpu_relax): Read from CC register.
613 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
614
6152012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
616
617 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
618
f3f5e3c3
EB
6192012-02-13 Eric Botcazou <ebotcazou@adacore.com>
620
62513f7b 621 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
622 * config/sparc/cacheline.h: New file.
623 * config/sparc/target.h: Likewise.
624 * config/sparc/sjlj.S: Likewise.
625 * config/linux/sparc/futex_bits.h: Likewise.
626
6272012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
628
629 * configure.ac (link_itm): Fix comment.
630 * configure: Regenerate.
631 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
632
681355e3
RO
6332012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634
fc985d2f 635 PR libitm/51822
62513f7b 636 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
637 Correct libgomp references.
638
999bcff5
TR
6392012-01-24 Torvald Riegel <triegel@redhat.com>
640
641 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
642 wake-up.
643
9848887a
UB
6442012-01-24 Uros Bizjak <ubizjak@gmail.com>
645
646 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
647 end of structure.
648 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
649 offset values. Do not copy return address. Decrement stack
650 by 56 bytes only.
651 (GTM_longjump) [__x86_64__]: Update offset values.
652
5752c591
UB
6532012-01-23 Uros Bizjak <ubizjak@gmail.com>
654
655 PR libitm/51830
656 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
657 the first function argument to %eax.
658
61e72ca4
RO
6592012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
660
661 * libitm.h (_ITM_getThreadnum): Remove.
662 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
663
9ce91011
RO
6642012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
665
666 * clearcap.map: New file.
667 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
668 * configure.ac: Call it.
669 Clear HWCAP_LDFLAGS if defaulting to -mavx.
670 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
671 * configure: Regenerate.
672 * Makefile.in: Regenerate.
673 * testsuite/Makefile.in: Regenerate.
674
3b4f05ec
RO
6752012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
676
677 PR libitm/51173
678 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
679 include, exclude options.
680
aab74ee9
TR
6812012-01-14 Torvald Riegel <triegel@redhat.com>
682
683 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
684 rolling back.
685 * containers.h (GTM::vector::set_size): New.
686
07b6642b
TR
6872012-01-14 Torvald Riegel <triegel@redhat.com>
688
689 PR libitm/51855
690 * config/generic/tls.h (GTM::mask_stack_top): New.
691 (GTM::mask_stack_bottom): Declare.
692 * config/generic/tls.c (GTM::mask_stack_bottom): New.
693 * local.cc (gtm_undolog::rollback): Filter out any updates that
694 overlap the libitm stack. Add current transaction as parameter.
695 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
696 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
697 * testsuite/libitm.c/stackundo.c: New test.
698
8377e5e5
RH
6992012-01-10 Richard Henderson <rth@redhat.com>
700
701 * libitm_i.h (_Unwind_DeleteException): Declare weak.
702 * eh_cpp.cc (_Unwind_DeleteException): Define for
703 !HAVE_ELF_STYLE_WEAKREF.
704
11f30bb0
TR
7052012-01-08 Torvald Riegel <triegel@redhat.com>
706
707 * local.cc (GTM_LB): Use GTM::gtm_undolog.
708 (GTM::gtm_thread::drop_references_undolog): Remove.
709 (GTM::gtm_thread::commit_undolog,
710 GTM::gtm_thread::rollback_undolog): Move to ...
711 * libitm_i.h (GTM::gtm_undolog): ...here. New.
712 (GTM::gtm_undolog_entry): Remove.
713 (GTM::gtm_thread): Adapt.
714 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
715 (GTM::gtm_thread::trycommit): Adapt.
716 * method-serial.cc (serial_dispatch::log): Adapt.
717 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
718 (gl_wt_dispatch::store): Fix likely/unlikely.
719 * containers.h (GTM::vector::resize): Add additional_capacity
720 parameter and handle it.
721 (GTM::vector::resize_noinline): New/adapt.
722 (GTM::vector::push): New.
723
a32e5e93
RH
7242012-01-06 Richard Henderson <rth@redhat.com>
725
726 * configure.tgt: Support powerpc-linux and powerpc-darwin.
727 * config/linux/powerpc/futex_bits.h: New file.
728 * config/powerpc/cacheline.h: New file.
729 * config/powerpc/sjlj.S: New file.
730 * config/powerpc/target.h: New file.
731 * config/generic/asmcfi.h (cfi_offset): New.
732 (cfi_restore, cfi_undefined): New.
733
1f53a8e6
AH
7342012-01-05 Aldy Hernandez <aldyh@redhat.com>
735
736 PR other/51171
737 * testsuite/libitm.c/reentrant.c: Remove xfail.
738 (thread): Pass x to pure().
be223aaf 739 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 740
c898f7b8
TR
7412011-12-24 Torvald Riegel <triegel@redhat.com>
742
743 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
744 privatization safety if already in serial mode.
745
610e3901
TR
7462011-12-24 Torvald Riegel <triegel@redhat.com>
747
748 * beginend.cc (GTM::gtm_thread::restart): Add and handle
749 finish_serial_upgrade parameter.
750 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
751 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
752 Don't unset reader flag.
753 (GTM::gtm_rwlock::write_upgrade_finish): New.
754 * config/posix/rwlock.cc: Same.
755 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
756 Declare.
757 * config/posix/rwlock.h: Same.
758 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
759 flag after commit or after rollback when restarting.
760
799142bf
TR
7612011-12-24 Torvald Riegel <triegel@redhat.com>
762
763 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
764 (GTM::gtm_thread::try_commit): Changed memory order.
765 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
766 as parameter.
767 * config/linux/x86/futex_bits.h (sys_futex0): Same.
768 * config/linux/sh/futex_bits.h (sys_futex0): Same.
769 * config/linux/futex_bits.h (sys_futex0): Same.
770 * config/linux/futex.cc (futex_wait, futex_wake): Same.
771 * config/linux/futex.h (futex_wait, futex_wake): Same.
772 * config/linux/rwlock.h (gtm_rwlock::writers,
773 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
774 ints.
775 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
776 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
777 gtm_rwlock::write_unlock): Fix memory orders and fences.
778 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
779 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
780 gtm_rwlock::write_unlock): Same.
781 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
782 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
783 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
784 Add comments.
785 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
786 gl_wt_dispatch::load, gl_wt_dispatch::store,
787 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
788 orders and fences. Add comments.
789
b0f96e35
JJ
7902011-12-21 Jakub Jelinek <jakub@redhat.com>
791
792 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
793 * Makefile.in: Regenerated.
794
cc163247
KK
7952011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
796
797 * configure.tgt: Add sh* case.
798 * config/sh/target.h: New file.
799 * config/sh/sjlj.S: New file.
800 * config/linux/sh/futex_bits.h: New file.
801
aebac0ca
RH
8022011-12-14 Richard Henderson <rth@redhat.com>
803
804 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
805 * config/arm/sjlj.S, config/arm/target.h: New files.
806 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
807 (cfi_rel_offset): New.
808 * config/linux/futex_bits.h: New file.
809 * config/linux/futex.cc: Include futex_bits.h here...
810 * config/linux/futex.h: ... not here.
811 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
812 * configure.ac (ARCH_AM): New conditional.
813 * Makefile.in, configure: Rebuild.
814 * configure.tgt: Handle ARM.
815
36cfbee1
RH
8162011-12-13 Richard Henderson <rth@redhat.com>
817
5d9d05d3
RH
818 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
819 signed/unsigned comparison werror.
820
36cfbee1
RH
821 * local_atomic: New file.
822 * libitm_i.h: Include it.
823 (gtm_thread::shared_state): Use atomic template.
824 * beginend.cc (GTM::gtm_clock): Use atomic template.
825 (global_tid): Use atomic template if 64-bit atomics available.
826 (gtm_thread::gtm_thread): Update shared_state access.
827 (gtm_thread::trycommit): Likewise.
828 (choose_code_path): Update global_tid access.
829 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
830 * stmlock.h (GTM::gtm_clock): Use atomic template.
831 (gtm_get_clock, gtm_inc_clock): Update accesses.
832 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
833 redundant __sync_synchronize after atomic shared_state access.
834 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
835 (gtm_rwlock::write_lock_generic): Likewise.
836 (gtm_rwlock::read_unlock): Likewise.
837 * config/alpha/target.h (atomic_read_barrier): Remove.
838 (atomic_write_barrier): Remove.
839 * config/x86/target.h (atomic_read_barrier): Remove.
840 (atomic_write_barrier): Remove.
841
062f93f2
RH
8422011-11-30 Richard Henderson <rth@redhat.com>
843
844 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
845 * beginend.c (_ITM_abortTransaction): Update to match.
846 (GTM::gtm_thread::restart): Likewise.
847 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
848 * config/x86/sjlj.S (GTM_longjmp): Likewise.
849
bd8aaa86
IS
8502011-11-23 Iain Sandoe <iains@gcc.gnu.org>
851
852 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
853 * Makefile.in: Regenerate.
854
8cf36bb3
IS
8552011-11-22 Iain Sandoe <iains@gcc.gnu.org>
856
857 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
858 * alloc_cpp.cc: Generate dummy functions if we don't
859 HAVE_ELF_STYLE_WEAKREF.
860 * eh_cpp.cc: Likewise.
861 * configure: Regenerate.
862 * aclocal.m4: Likewise.
863 * config.h.in: Likewise.
864 * Makefile.in: Likewise.
865 * testsuite/Makefile.in: Likewise.
866
0b41ebef
IS
8672011-11-22 Iain Sandoe <iains@gcc.gnu.org>
868
869 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
870 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 871 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
872 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
873 in portability to non-elf targets.
8cf36bb3 874 (GTM_longjmp): Likewise.
0b41ebef
IS
875 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
876 where required.
877
9c9d352a
IS
8782011-11-22 Iain Sandoe <iains@gcc.gnu.org>
879
880 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
881 * testsuite/libitm.c/memset-1.c: Likewise.
882
c6084f68
AT
8832011-11-21 Andreas Tobler <andreast@fgznet.ch>
884
885 * configure: Regenerate.
886
adcd36bc
RO
8872011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
888
889 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
890 (LIBITM_ENABLE_SYMVERS): Handle sun style.
891 * Makefile.am: Handle sun style versioning.
892 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
893 * configure: Regenerate.
894 * Makefile.in: Regenerate.
895
59659b59
RO
8962011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
897
898 * config/generic/asmcfi.h: Fix comment.
899 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
900 sequence without .hidden support, error for non-ELF targets.
901 (GTM_longjmp) [__ELF__]: Only use .hidden if
902 HAVE_ATTRIBUTE_VISIBILITY.
903
d846e425
RO
9042011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
905
906 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
907 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
908 Dummy functions.
909 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
910 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
911
80713347
UB
9122011-11-16 Uros Bizjak <ubizjak@gmail.com>
913
914 PR bootstrap/51098
915 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
916 * configure: Regenerate.
917
2841f85e
L
9182011-11-14 H.J. Lu <hongjiu.lu@intel.com>
919
920 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
921
8851b429
RO
9222011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
923
924 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
925 .hidden.
926 (.note.GNU-stack): Only use if __linux__.
927 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
928 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
929 * testsuite/libitm.c/reentrant.c: Likewise.
930 * testsuite/libitm.c/simple-2.c: Likewise.
931 * testsuite/libitm.c/txrelease.c: Likewise.
932 * testsuite/libitm.c++/static_ctor.C: Likewise.
933
d4b17902
RH
9342011-11-10 Richard Henderson <rth@redhat.com>
935
936 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
937 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
938 * configure.ac (ARCH_X86_AVX): New conditional.
939 * Makefile.in, configure: Rebuild.
940
430616e7
RH
9412011-11-09 Richard Henderson <rth@redhat.com>
942
943 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
944 * configure.ac: Use it.
945 * config.h.in, configure: Rebuild.
946 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
947
79b1edb6
RH
9482011-11-09 Richard Henderson <rth@redhat.com>
949
950 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
951 * config/alpha/unaligned.h: Remove file.
952 * config/generic/unaligned.h: Remove file.
953 * config/x86/unaligned.h: Remove file.
954 * config/generic/cachepage.h: Remove file.
955 * config/posix/cachepage.cc: Remove file.
956 * config/generic/cacheline.cc: Remove file.
957 * config/x86/cacheline.cc: Remove file.
958 * config/generic/cacheline.h (gtm_cacheline): Remove the
959 store_mask, copy_mask, copy_mask_wb methods.
960 * config/x86/cacheline.h: Likewise.
961 * config/alpha/cacheline.h: Fall back to generic after setting size.
962 * config/generic/tls.cc (gtm_mask_stack): Remove.
963 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
964 (GTM_vpalignr_table): Remove.
965 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
966 (GTM_pshift_table): Remove.
967 * config/libitm_i.h: Don't include cachepage.h.
968 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
969 * Makefile.in, testsuite/Makefile.in: Rebuild.
970
4bdd090f
RH
9712011-11-09 Richard Henderson <rth@redhat.com>
972
8ee9fac2
RH
973 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
974 to emit branch prediction hint.
975
9bdc6343
RH
976 * config/x86/sjlj.S: Protect elf directives with __ELF__.
977 Protect .note.GNU-stack with __linux__.
978
4bdd090f
RH
979 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
980 * configure, aclocal.m4, config.h.in: Rebuild.
981 * config/generic/asmcfi.h: New file.
982 * config/x86/sjlj.S: Use it.
983
4408b086
RH
9842011-11-08 Richard Henderson <rth@redhat.com>
985
986 * local.cc (_ITM_LB): Use a normal call, not a function alias.
987
01f3428c
RH
9882011-11-08 Richard Henderson <rth@redhat.com>
989
3d3b05ff
RH
990 * configure.tgt: Test correct directory for supported cpus.
991
01f3428c
RH
992 * configure.ac: Exit if unsupported.
993 * configure: Rebuild.
994 * configure.tgt: Delete boilerplate from libgomp for unsupported
995 targets. Set UNSUPPORTED for unsupported targets.
996
07f03cd3
RO
9972011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
998
999 * configure.tgt: Handle i386 like i[456]86.
1000 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
1001 take address.
1002 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
1003 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
1004
0a35513e
AH
10052011-11-05 Aldy Hernandez <aldyh@redhat.com>
1006
1007 * method-wbetl.cc: Update copyright notice.
1008 * aatree.cc: Same.
1009 * util.cc: Same.
1010 * libitm.h: Same.
1011 * memset.cc: Same.
1012 * eh_cpp.cc: Same.
1013 * barrier.tpl: Same.
1014 * useraction.cc: Same.
1015 * stmlock.h: Same.
1016 * memcpy.cc: Same.
1017 * common.h: Same.
1018 * config/generic/tls.cc: Same.
1019 * config/generic/cacheline.h: Same.
1020 * config/generic/cachepage.h: Same.
1021 * config/generic/cacheline.cc: Same.
1022 * config/generic/unaligned.h: Same.
1023 * config/x86/cacheline.h: Same.
1024 * config/x86/cacheline.cc: Same.
1025 * config/x86/unaligned.h: Same.
1026 * config/alpha/cacheline.h: Same.
1027 * config/alpha/unaligned.h: Same.
1028 * config/alpha/sjlj.S: Same.
1029 * config/posix/cachepage.cc: Same.
1030 * config/linux/futex.h: Same.
1031 * config/linux/alpha/futex_bits.h: Same.
1032
10332011-11-04 Torvald Riegel <triegel@redhat.com>
1034
1035 * libitm.texi: No cover text and invariant sections.
1036
10372011-11-03 Richard Henderson <rth@redhat.com>
1038
1039 * local_type_traits: New file.
1040 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
1041
10422011-11-03 Richard Henderson <rth@redhat.com>
1043
1044 * configure.ac: Don't test for gfortran.
1045 * configure: Rebuild.
1046
1047 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
1048 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
1049
10502011-11-03 Aldy Hernandez <aldyh@redhat.com>
1051
1052 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
1053 * testsuite/libitm.c/memset-1.c: Same.
1054 * testsuite/libitm.c/c.exp: Same.
1055 * testsuite/lib/libitm-dg.exp: Same.
1056 * testsuite/lib/libitm.exp: Same.
1057 * testsuite/libitm.c++/c++.exp: Same.
1058
10592011-11-03 Aldy Hernandez <aldyh@redhat.com>
1060
1061 * testsuite/config/default.exp: Update copyright date.
1062 * configure.ac: Add copyright info.
1063 * configure.tgt: Same.
1064
10652011-11-03 Aldy Hernandez <aldyh@redhat.com>
1066
1067 * testsuite/libitm.c/reentrant.c: XFAIL.
1068 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1069
10702011-10-29 Torvald Riegel <triegel@redhat.com>
1071
1072 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1073 handle aborts.
1074 (_ITM_abortTransaction): Handle aborts of outer transactions.
1075 * libitm_i.h: Same.
1076 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1077 * libitm.texi: Document aborts of outer transactions.
1078 * testsuite/libitm.c/cancel.c: New file.
1079
10802011-10-19 Torvald Riegel <triegel@redhat.com>
1081
1082 * testsuite/*: Change __transaction to __transaction_atomic or
1083 __transaction_relaxed.
1084
10852011-10-19 Torvald Riegel <triegel@redhat.com>
1086
1087 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1088 (gtm_thr): Same.
1089
10902011-10-19 Torvald Riegel <triegel@redhat.com>
1091
1092 * libitm_i.h: Add gl_wt dispatch.
1093 * retry.cc (parse_default_method): Same.
1094 * method-gl.cc: New file.
1095 * Makefile.am: Use method-gl.cc.
1096 * Makefile.in: Rebuild.
1097
10982011-10-19 Torvald Riegel <triegel@redhat.com>
1099
1100 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1101 safety if requested by a TM method.
1102 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1103 privatization safety.
1104 * method-serial.cc: Same.
1105
11062011-10-19 Torvald Riegel <triegel@redhat.com>
1107
1108 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1109 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1110 undolog-related member functions from *_local to *_undolog.
1111 * local.cc (gtm_thread::commit_undolog): Same.
1112 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1113 (GTM::gtm_thread::rollback): Roll back undolog before
1114 dispatch-specific rollback.
1115
11162011-10-19 Torvald Riegel <triegel@redhat.com>
1117
1118 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1119 re-initialization of the current method group.
1120 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1121
11222011-10-19 Torvald Riegel <triegel@redhat.com>
1123
1124 * alloc.cc (commit_allocations_2): Do not free transaction-local
1125 memory when committing a nested transaction.
1126
11272011-10-19 Torvald Riegel <triegel@redhat.com>
1128
1129 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1130 serial-irrevocable dispatch, not serial.
1131
11322011-10-19 Torvald Riegel <triegel@redhat.com>
1133
1134 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1135 declarations.
1136 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1137 * method-serial.cc: Implement begin_or_restart().
1138 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1139 dispatch-specific begin_or_restart().
1140 (GTM::gtm_thread::restart): Same.
1141
11422011-08-23 Torvald Riegel <triegel@redhat.com>
1143
1144 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1145 restarting without switching to serial mode.
1146 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1147 transaction state. Choose closed-nesting alternative if available.
1148 (GTM::gtm_thread::set_default_dispatch): New.
1149 (parse_default_method): New.
1150 (GTM::gtm_thread::number_of_threads_changed): New.
1151 * method-serial.cc (GTM::serial_mg): New method group class.
1152 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1153 fini.
1154 (GTM::serial_dispatch): Same.
1155 (GTM::serialirr_onwrite_dispatch): Same.
1156 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1157 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1158 registered threads.
1159 (GTM::gtm_thread::gtm_thread): Same.
1160 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1161 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1162 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1163 choose dispatch but set state according to dispatch here.
1164 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1165 (GTM::method_group): New class.
1166 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1167 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1168 * libitm.texi: Document TM methods, method groups, method life cycle.
1169 Rename method sets to method groups.
1170
11712011-08-23 Torvald Riegel <triegel@redhat.com>
1172
1173 * config/x86/tls.h: Moved to ...
1174 * config/linux/x86/tls.h: ... here.
1175
11762011-08-23 Torvald Riegel <triegel@redhat.com>
1177
1178 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1179 Add X32 support.
1180 * config/x86/sjlj.S: Same.
1181
11822011-08-19 Torvald Riegel <triegel@redhat.com>
1183
1184 * config/linux/rwlock.h: New file.
1185 * config/linux/rwlock.c: New file.
1186 * configure.ac: Reenable futex support (undo SVN rev 157758).
1187 * Makefile.am: Same.
1188 * configure.tgt: Same.
1189 * config/linux/alpha/futex_bits.h: Same.
1190 * config/linux/futex.h: Same. Return number of woken processes.
1191 * config/linux/futex.cc: Same.
1192 (futex_wait): Remove spinning.
1193 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1194 Use __x86_64__ instead of __LP64__.
1195 * aclocal.m4: Include generic futex checks.
1196 * configure: Rebuild.
1197 * Makefile.in: Rebuild.
1198 * testsuite/Makefile.in: Rebuild.
1199 * beginend.cc: Include pthread.h.
1200 * config/posix/cachepage.cc: Same.
1201
12022011-08-12 Torvald Riegel <triegel@redhat.com>
1203
1204 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1205 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1206 (set_gtm_thr): New.
1207 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1208 (set_gtm_thr): New.
1209 (GTM::gtm_thread::thread_num): Removed.
1210 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1211 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1212 tx-to-thread renaming.
1213 * beginend.cc: Adapted to tx-to-thread renaming.
1214 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1215 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1216 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1217 gtm_transaction to gtm_thread.
1218 (_ITM_getThreadnum): Removed. Not supported anymore.
1219 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1220 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1221 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1222 gtm_tx-to-gtm_thr renaming if necessary.
1223 * eh_cpp.cc: Same.
1224 * local.cc: Same.
1225 * retry.cc: Same.
1226 * clone.cc: Same.
1227 * alloc.cc: Same.
1228 * alloc_c.cc: Same.
1229 * alloc_cpp.cc: Same.
1230 * method-serial.cc: Same.
1231 * config/generic/tls.cc: Same.
1232 * config/posix/rwlock.h (gtm_rwlock): Same.
1233 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1234
12352011-08-12 Torvald Riegel <triegel@redhat.com>
1236
1237 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1238 implementation.
1239 (gtm_rwlock::read_unlock): Same.
1240 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1241 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1242 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1243 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1244 w_upgrade. Replaced by per-transaction flags (in shared_state).
1245 Added c_confirmed_writers.
1246 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1247 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1248 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1249 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1250 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1251 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1252 * libitm.texi: Document locking conventions and implementations in
1253 libitm.
1254
12552011-08-12 Torvald Riegel <triegel@redhat.com>
1256
1257 * libitm_i.h (next_tx): Add list of all threads' transaction.
1258 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1259 transaction with list of transactions and ...
1260 (thread_exit_handler): ... deregister here.
1261 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1262 * config/x86/target.h: Same.
1263
12642011-08-12 Torvald Riegel <triegel@redhat.com>
1265
1266 * testsuite/libitm.c++/static_ctor.C: New file.
1267
12682011-08-12 Torvald Riegel <triegel@redhat.com>
1269
1270 * testsuite/libitm.c/reentrant.c: New file.
1271
12722011-08-12 Torvald Riegel <triegel@redhat.com>
1273
1274 * config/generic/tls.h: Remove the free list for transactions and ...
1275 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1276 (GTM::gtm_transaction::operator delete): ... and release here.
1277 (thread_exit_handler): New. Delete tx when thread terminates.
1278 (thread_exit_init): New.
1279 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1280 * testsuite/libitm.c/txrelease.c: New file.
1281
12822011-08-12 Torvald Riegel <triegel@redhat.com>
1283
1284 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1285 * testsuite/libitm.c/notx.c: New file.
1286
12872011-08-12 Torvald Riegel <triegel@redhat.com>
1288
1289 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1290 * libitm_i.h (local_tid): ... to here.
1291 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1292 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1293
12942011-08-12 Torvald Riegel <triegel@redhat.com>
1295
1296 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1297 serialirr_onwrite_dispatch as new default for now.
1298 * method-serial.cc (serialirr_onwrite_dispatch): New.
1299 (GTM::dispatch_serialirr_onwrite): New.
1300 * libitm_i.h: Same.
1301
13022011-08-12 Torvald Riegel <triegel@redhat.com>
1303
1304 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1305 * query.cc (_ITM_getTransactionId): There is no active transaction if
1306 the current nesting level is zero.
1307
13082011-07-28 Torvald Riegel <triegel@redhat.com>
1309
1310 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1311 rollback.
1312
13132011-07-28 Torvald Riegel <triegel@redhat.com>
1314
1315 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1316 transaction properties from the caller instead of from the
1317 transaction object.
1318 * libitm_i.h: Same.
1319 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1320
13212011-07-28 Torvald Riegel <triegel@redhat.com>
1322
1323 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1324 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1325 * dispatch.h: Same.
1326 * method-serial.cc: Same.
1327 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1328 flat nesting as default, and closed nesting on demand.
1329 (GTM::gtm_transaction::rollback): Same.
1330 (_ITM_abortTransaction): Same.
1331 (GTM::gtm_transaction::restart): Same.
1332 (GTM::gtm_transaction::trycommit): Same.
1333 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1334 (choose_code_path): New.
1335 (GTM::gtm_transaction_cp::save): New.
1336 (GTM::gtm_transaction_cp::commit): New.
1337 * query.cc (_ITM_inTransaction): Support flat nesting.
1338 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1339 (GTM::gtm_transaction): Support flat and closed nesting.
1340 * alloc.cc (commit_allocations_2): New.
1341 (commit_cb_data): New helper struct.
1342 (GTM::gtm_transaction::commit_allocations): Handle nested
1343 commits/rollbacks.
1344 * libitm.texi: Update user action section, add description of nesting.
1345
13462011-07-28 Torvald Riegel <triegel@redhat.com>
1347
1348 * libitm_i.h: Add closed nesting as restart reason.
1349 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1350
13512011-07-28 Torvald Riegel <triegel@redhat.com>
1352
1353 * useraction.cc: Use vector instead of list to store actions.
1354 Also support partial rollbacks for closed nesting.
1355 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1356 * beginend.cc: Same.
1357
13582011-07-28 Torvald Riegel <triegel@redhat.com>
1359
1360 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1361 closed_nesting flags, as well as a closed nesting alternative.
1362 * method-serial.cc: Same.
1363 (serial_dispatch): Renamed to serialirr_dispatch.
1364 (GTM::dispatch_serialirr): Same.
1365 (serial_dispatch_ul): Renamed to serial_dispatch.
1366 (GTM::dispatch_serial): Same.
1367
13682011-07-28 Torvald Riegel <triegel@redhat.com>
1369
1370 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1371
13722011-07-28 Torvald Riegel <triegel@redhat.com>
1373
1374 * aatree.h (aa_tree::remove): New.
1375 (aa_tree::operator new): Add placement new.
1376
13772011-07-02 Torvald Riegel <triegel@redhat.com>
1378
1379 * containers.h: New file.
1380 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1381 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1382 * common.h: ... to here.
1383 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1384 * local.cc: Same.
1385
13862011-06-30 Torvald Riegel <triegel@redhat.com>
1387
1388 * libitm_i.h (STATE_ABORTING): Remove.
1389 * beginend.cc (_ITM_abortTransaction): Same.
1390 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1391 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1392 (_ITM_rollbackTransaction): Remove.
1393 * beginend.cc: Same.
1394 * libitm.map: Same.
1395 * libitm.texi: Document these ABI changes.
1396
13972011-06-30 Torvald Riegel <triegel@redhat.com>
1398
1399 * libitm.texi: New file.
1400 * Makefile.am: Add libitm.texi.
1401 * Makefile.in: Rebuild.
1402
14032011-06-30 Torvald Riegel <triegel@redhat.com>
1404
1405 * libitm_i.h: Move parts to common.h and dispatch.h.
1406 * common.h: New file.
1407 * dispatch.h: New file, new dispatch class.
1408 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1409 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1410 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1411 decision to retry.cc.
1412 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1413 only.
1414 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1415 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1416 logging.
1417 * barrier.cc: Use new barriers definitions.
1418 (abi_dispatch::memmove_overlap_check): New.
1419 * config/x86/x86_sse.cc: Same.
1420 * config/x86/x86_avx.cc: Same.
1421 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1422 memcpy.cc.
1423 * Makefile.in: Rebuild.
1424 * method-readonly.cc: Remove.
1425 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1426 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1427
14282011-06-30 Torvald Riegel <triegel@redhat.com>
1429
1430 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1431 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1432 * testsuite/libitm.c/dropref-2.c: Same.
1433 * testsuite/libitm.c/dropref.c: Same.
1434
14352011-06-30 Torvald Riegel <triegel@redhat.com>
1436
1437 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1438 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1439 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1440 * alloc_c.cc: Same.
1441 * barrier.tpl: Same.
1442 * beginend.c: Same.
1443 * config/generic/tls.h: Same.
1444 * config/x86/tls.h: Same.
1445 * libitm_i.h: Same.
1446 * memcpy.cc: Same.
1447 * memset.cc: Same.
1448 * method-readonly.cc: Same.
1449 * method-serial.cc: Same.
1450 * method-wbetl.cc: Same.
1451 * retry.cc: Same.
1452
14532011-03-03 Richard Henderson <rth@redhat.com>
1454
1455 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1456 From Patrik Marlier <patrick.marlier@unine.ch>.
1457
14582011-02-03 Richard Henderson <rth@redhat.com>
1459
1460 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1461 * configure.ac: Use it.
1462 * configure, config.h.in: Rebuild.
1463 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1464 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1465 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1466 * libitm.map: Use wildcards to match size_t mangling.
1467
14682010-12-14 Richard Henderson <rth@redhat.com>
1469
1470 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1471 blocks of TIDs per thread.
1472 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1473 (setup_gtm_thr): Return the thread structure.
1474 * config/x86/tls.h (setup_gtm_thr): Likewise.
1475
14762010-12-14 Richard Henderson <rth@redhat.com>
1477
1478 * clone.cc (table_lock): Remove.
1479 (find_clone): Don't take it.
1480 (ExcludeTransaction): New helper class.
1481 (_ITM_registerTMCloneTable): Use it.
1482 (_ITM_deregisterTMCloneTable): Likewise.
1483
14842010-12-14 Richard Henderson <rth@redhat.com>
1485
1486 * config/x86/tls.h: New file.
1487
14882010-07-15 Richard Henderson <rth@redhat.com>
1489
1490 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1491 * Makefile.in: Rebuild.
1492
14932010-07-13 Aldy Hernandez <aldyh@redhat.com>
1494
1495 * method-wbetl.cc (trydropreference): Fix source line.
1496
14972010-07-13 Aldy Hernandez <aldyh@redhat.com>
1498
1499 * libitm.h: Add comment.
1500 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1501
15022010-07-07 Aldy Hernandez <aldyh@redhat.com>
1503
1504 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1505 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1506 available, use pthread mutexes.
1507 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1508 * config.h.in: Regenerate.
1509 * configure: Regenerate.
1510
15112010-07-06 Aldy Hernandez <aldyh@redhat.com>
1512
1513 * libitm.h (ITM_PURE): Define.
1514 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1515
15162010-06-28 Aldy Hernandez <aldyh@redhat.com>
1517
1518 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1519 (validate): Add comment.
1520 (trydropreference): New.
1521 * method-readonly.cc (class readonly_dispatch): Add
1522 trydropreference.
1523 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1524 Call trydropreference().
1525 * libitm.h (_ITM_dropReferences): Remove const attribute.
1526 * method-serial.cc (class serial_dispatch): Add trydropreference.
1527 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1528
15292010-06-28 Aldy Hernandez <aldyh@redhat.com>
1530
1531 * memcpy.cc (do_memcpy): Comment.
1532
15332010-06-25 Aldy Hernandez <aldyh@redhat.com>
1534
1535 * barrier.tpl: Add comments throughout.
1536
15372010-06-24 Aldy Hernandez <aldyh@redhat.com>
1538
1539 * method-wbetl.cc (struct w_entry): Add comments.
1540 (trycommit): Same.
1541 (rollback): Same.
1542
15432010-06-24 Aldy Hernandez <aldyh@redhat.com>
1544
1545 * alloc_c.cc (_ITM_dropReferences): New.
1546 * libitm.map (_ITM_dropReferences): Add.
1547 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1548 * libitm_i.h (struct gtm_transaction): Declare
1549 drop_references_allocations and drop_references_local.
1550 * local.cc (rollback_local): Ignore memory when applicable.
1551 (drop_references_local): New.
1552
15532010-06-23 Richard Henderson <rth@redhat.com>
1554
1555 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1556 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1557 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1558 * config/alpha/target.h: Likewise.
1559 * config/generic/tls.cc (gtm_mask_stack): Use it.
1560
15612010-06-23 Richard Henderson <rth@redhat.com>
1562
1563 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1564 a mutex instead of trying a lock-free compare-and-swap on the list.
1565 (gtm_cacheline_page::operator delete): Likewise.
1566
15672010-06-16 Richard Henderson <rth@redhat.com>
1568
1569 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1570 that overlap the libitm stack.
1571 * barrier.tpl: Mark incoming stack.
1572 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1573 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1574 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1575 * memcpy.cc, memset.cc: Likewise.
1576 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1577 * config/generic/tls.h (gtm_thread): Add stack_top member.
1578 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1579 * libitm_i.h (gtm_mask_stack): Declare.
1580 * config/generic/tls.cc: New file.
1581 * Makefile.am (libitm_la_SOURCES): Add it.
1582 (AM_CXXFLAGS): Turn off exceptions.
1583 * Makefile.in: Rebuild.
1584
15852010-06-16 Richard Henderson <rth@redhat.com>
1586
1587 * alloc.cc (struct gtm_alloc_action): Move definition ...
1588 * libitm_i.h: ... here.
1589 (class gtm_transaction): Declare new and delete.
1590 * beginend.cc (alloc_tx): Reformulate as operator new.
1591 (free_tx): Reformulate as operator delete.
1592 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1593
15942010-06-11 Richard Henderson <rth@redhat.com>
1595
1596 * clone.cc (clone_entry_compare): Fix typo.
1597 From Patrik Marlier <patrick.marlier@unine.ch>.
1598
15992010-05-13 Richard Henderson <rth@redhat.com>
1600
1601 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1602 in extern "C".
1603
16042010-05-07 Aldy Hernandez <aldyh@redhat.com>
1605
1606 * libitm_i.h (struct gtm_transaction): Remove
1607 get_allocation_size.
1608 (record_allocation): Remove size parameter.
1609 * libitm.map (_ITM_realloc): Remove.
1610 * alloc_c.cc (_ITM_realloc): Remove.
1611 (_ITM_malloc): Remove size argument to record_allocation.
1612 (_ITM_calloc): Same.
1613 * alloc_cpp.cc (_ZGTtnwm): Same.
1614 (_ZGTtnwmRKSt9nothrow_t): Same.
1615 (_ZGTtnam): Same.
1616 (_ZGTtnamRKSt9nothrow_t): Same.
1617 * alloc.cc (struct gtm_alloc_action): Remove size.
1618 (get_allocation_size): Remove.
1619 (commit_allocations): Add comment.
1620 (record_allocation): Remove size parameter.
1621 (forget_allocation): Remove set of size.
1622
16232010-04-19 Aldy Hernandez <aldyh@redhat.com>
1624
1625 * Makefile.am (abi_version): New.
1626 (AM_CXXFLAGS): Pass abi_version.
1627 * Makefile.in: Regenerate.
1628 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1629
16302010-04-06 Aldy Hernandez <aldyh@redhat.com>
1631
1632 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1633 _ITM_getTMCloneOrIrrevokable.
1634 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1635 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1636
16372010-03-26 Aldy Hernandez <aldyh@redhat.com>
1638
1639 * configure.ac: Remove Linux futex support.
1640 * configure.tgt (config_path): Same.
1641 * Makefile.am: Same.
1642 * config/linux: Remove entire directory.
1643 * configure: Rebuild.
1644 * Makefile.in: Rebuild.
1645 * testsuite/Makefile.in: Rebuild.
1646
16472010-03-09 Aldy Hernandez <aldyh@redhat.com>
1648
1649 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1650 switching to serial mode.
1651 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1652
16532010-03-03 Aldy Hernandez <aldyh@redhat.com>
1654
1655 * configure.tgt: Add emacs -*- tags.
1656 * barrier.tpl: Same.
1657
16582010-02-23 Aldy Hernandez <aldyh@redhat.com>
1659
1660 * Makefile.am: Rename serial.cc to method-serial.cc.
1661 * Makefile.in: Regenerate with automake 1.11.1.
1662 * testsuite/Makefile.in: Same.
1663 * aclocal.m4: Regenerate with aclocal 1.11.1.
1664 * method-serial.cc: Rename from serial.cc.
1665 * libitm_i.h (struct gtm_transaction): Update comment on
1666 serialirr_mode.
1667
16682010-02-22 Aldy Hernandez <aldyh@redhat.com>
1669
1670 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1671 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1672
16732010-02-11 Aldy Hernandez <aldyh@redhat.com>
1674
1675 * configure: Rebuild.
1676
16772009-11-12 Richard Henderson <rth@redhat.com>
1678
1679 * Rewrite everything in C++.
1680
16812009-11-03 Richard Henderson <rth@redhat.com>
1682
1683 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1684 * Makefile.am (libitm_la_SOURCES): Add them.
1685 * configure.ac (ARCH_X86): New conditional.
1686 * Makefile.in, configure: Rebuild.
1687 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1688 Move futex setup into "other system configury" case.
1689 * local.c (rollback_local): Merge into ...
1690 (GTM_rollback_local): ... here.
1691 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1692 (_ITM_LB): Define as an alias to GTM_LB.
1693
16942009-11-03 Richard Henderson <rth@redhat.com>
1695
1696 * method-readonly.c: New file.
1697 * Makefile.am (libitm_la_SOURCES): Add it.
1698 * Makefile.in: Rebuild.
1699 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1700 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1701 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1702 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1703 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1704 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1705 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1706 gtm_get_clock, gtm_inc_clock): New.
1707 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1708 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1709 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1710 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1711 replace uses with new libitm_i.h symbols.
1712 (dispatch_wbetl): Rename from wbetl_dispatch.
1713 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1714 away from dispatch_readonly; abort if the beginTransaction call
1715 asserted that the transaction was readonly.
1716
17172009-11-03 Richard Henderson <rth@redhat.com>
1718
1719 * memset.c: New file.
1720 * Makefile.am (libitm_la_SOURCES): Add it.
1721 * Makefile.in: Rebuild.
1722 * testsuite/libitm.c/memset-1.c: New.
1723
17242009-11-03 Richard Henderson <rth@redhat.com>
1725
1726 * dispatch.c: Remove file.
1727 * useraction.c (struct gtm_user_action): Move from libitm.h.
1728 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1729 (serial_memset, serial_memmove, serial_memcpy): Remove.
1730 (serial_W*, serial_R*): Remove.
1731 (serial_dispatch): Update to match.
1732 * configure.ac: Move Werror down below configure checks. Don't
1733 check for sys/loadavg.h, do check for malloc.h. Don't check for
1734 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1735 Use GCC_AC_FUNC_MMAP_BLACKLIST
1736 * libitm.h: Split out all internal items to...
1737 * libitm_i.h: ... here. New file.
1738 * copymask.c: New file.
1739 * local.c (struct gtm_local_undo): Move from libitm.h.
1740 (GTM_alloc_local): Rename from alloc_local; export.
1741 * memcpy.c: New file.
1742 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1743 * config/posix/page.c: New file.
1744 * config/posix/target_tls.h: Remove file.
1745 * barrier.c: New file.
1746 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1747 copymask.c, page.c.
1748 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1749 * method-wbetl.c: Rewrite for new cacheline methods.
1750 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1751
1752 * config/alpha/sjlj.S: Fix typo.
1753 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1754 * config/alpha/copymask.c: New file.
1755 * config/alpha/target.h (CACHELINE_SIZE): New.
1756 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1757
1758 * config/x86/target_i.h: Copy functions from x86/target.h.
1759 * config/x86/copymask.c: New file.
1760 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1761 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1762 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1763 * config/x86/target_tls.h: Move contents to target_i.h.
1764
1765 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1766 * testsuite/libitm.c/memcpy-1.c: New.
1767
17682009-10-22 Richard Henderson <rth@redhat.com>
1769
1770 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1771 (AM_CCASFLAGS): New.
1772 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1773 saving/restoring _AC_ARG_VAR_PRECIOUS.
1774 * Makefile.in, aclocal.m4, config.h.in, configure,
1775 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1776
17772009-10-22 Richard Henderson <rth@redhat.com>
1778
1779 * testsuite/*: Update for new compiler syntax.
1780
17812009-10-21 Richard Henderson <rth@redhat.com>
1782
1783 * libitm.h (_ITM_abortReason): Add outerAbort.
1784
17852009-08-03 Richard Henderson <rth@redhat.com>
1786
1787 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1788 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1789 * method-wbetl.c (struct w_entry): Remove mask.
1790 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1791 adjust all callers.
1792
17932009-07-22 Richard Henderson <rth@redhat.com>
1794
1795 * eh_cpp.c: New file.
1796 * Makefile.am (libitm_la_SOURCES): Add it.
1797 * Makefile.in: Rebuild.
1798 * beginend.c (GTM_rollback_transaction): Undo exception state.
1799 (GTM_trycommit_transaction): Mark inline.
1800 (GTM_trycommit_and_finalize_transaction): Split out from ...
1801 (_ITM_commitTransaction): ... here.
1802 (_ITM_commitTransactionEH): New function.
1803 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1804 cxa_unthrown, eh_in_flight; reorder.
1805
1806 * testsuite/libitm.c++/c++.exp: New.
1807 * testsuite/libitm.c++/eh-1.C: New.
1808
1809 * aatree.c (aa_free): Remove REGPARM.
1810 * aatree.h: Remove all REGPARM.
1811
18122009-07-18 Richard Henderson <rth@redhat.com>
1813
1814 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1815 * Makefile.am (libitm_la_SOURCES): Add them.
1816 * Makefile.in: Rebuild.
1817 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1818 (GTM_trycommit_transaction): Likewise.
1819 * libitm.h: Include aatree.h
1820 (struct gtm_alloc_action): New.
1821 (struct gtm_transaction): Add alloc_actions.
1822 (GTM_record_allocation, GTM_forget_allocation): Declare.
1823 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1824 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1825 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1826 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1827 _ZGTtdaPvRKSt9nothrow_t): Export.
1828
18292009-07-18 Richard Henderson <rth@redhat.com>
1830
1831 * target_tls.h: Move ...
1832 * config/posix/target_tls.h: ... here.
1833
18342009-07-07 Richard Henderson <rth@redhat.com>
1835
1836 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1837
18382009-07-07 Richard Henderson <rth@redhat.com>
1839
1840 * Update to GPL3.
1841
18422009-07-07 Richard Henderson <rth@redhat.com>
1843
1844 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1845 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1846
1847 * configure.tgt: Don't use -ftls-model for x86 linux.
1848 * libitm.h: Include target.h after standard includes.
1849 (_gtm_thr): Rename from gtm_thr.
1850 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1851 (gtm_disp, set_gtm_disp): New.
1852 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1853 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1854 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1855
18562009-07-07 Richard Henderson <rth@redhat.com>
1857
1858 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1859
18602009-07-06 Richard Henderson <rth@redhat.com>
1861
1862 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1863 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1864 (_ITM_beginTransaction): Take variadic arguments.
1865 (_ITM_registerThrownObject): Declare.
1866 * beginend.c, serial.c: Update.
1867 * libitm.map: Add _ITM_registerThrownObject.
1868
18692009-01-28 Richard Henderson <rth@redhat.com>
1870
1871 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1872 * Makefile.in: Rebuild.
1873 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1874 (GTM_restart_transaction): Fix uninstrumented code check.
1875 * retry.c (GTM_decide_retry_strategy): Add serial check.
1876 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1877 automatically go irrevokable when in serial mode.
1878 * clone.c: New file.
1879 * libitm.h, libitm.map: Update.
1880
18812009-01-27 Richard Henderson <rth@redhat.com>
1882
1883 * Makefile.am (LTCCASCOMPILE): Define.
1884 (libitm_la_SOURCES): Add methid-wbetl.c.
1885 * testsuite/Makefile.am: New
1886 * configure.ac: Add testsuite/Makefile.
1887 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1888 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1889 (_ITM_abortTransaction): Finalize implementation method; pass
1890 transaction properties to longjmp.
1891 (GTM_restart_transaction): Split out from ...
1892 (_ITM_commitTransaction): ... here.
1893 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1894 Move to config/x86/target.h.
1895 * config/linux/alpha/futex_bits.h: New.
1896 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1897 * config/x86/target.h: Disable target types for 32-bit.
1898 * config/alpha/sjlj.S, config/alpha/target.h: New.
1899 * libitm.h (struct gtm_dispatch): Add init, fini.
1900 (enum restart_reason): New.
1901 (struct gtm_transaction): Add method and restarts.
1902 * retry.c (GTM_decide_retry_strategy): Implement.
1903 * serial.c (serial_init, serial_fini): New.
1904 (GTM_serialmode): Finialize outgoing method.
1905 * method-wbetl.c: New.
1906
19072008-12-09 Richard Henderson <rth@redhat.com>
1908
1909 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1910 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1911 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1912 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1913 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1914 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1915 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1916 * serial.c (serial_R##T, serial_W##T): Likewise.
1917
19182008-11-21 Richard Henderson <rth@redhat.com>
1919
1920 * Initial commit.
21fa2a29
JJ
1921\f
1922Copyright (C) 2008-2016 Free Software Foundation, Inc.
1923
1924Copying and distribution of this file, with or without modification,
1925are permitted in any medium without royalty provided the copyright
1926notice and this notice are preserved.