]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Fix for PR64068 and PR64559.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
5624e564
JJ
12015-01-05 Jakub Jelinek <jakub@redhat.com>
2
3 Update copyright years.
4
b67cd4e3
JJ
52015-01-05 Jakub Jelinek <jakub@redhat.com>
6
7 * libitm.texi: Bump @copying's copyright year.
8
69aef6dc
KT
92014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10
11 * testsuite/lib/libitm.exp: Load target-utils.exp.
12 Move load of target-supports.exp earlier.
13
68bc9270
UB
142014-12-03 Uros Bizjak <ubizjak@gmail.com>
15
16 * configure.tgt (x86_64): Tune -m32 multilib to generic.
17
a699d672
L
182014-11-21 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR bootstrap/63784
21 * configure: Regenerated.
22
ebf6d33b
FXC
232014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
24
25 PR target/63610
26 * configure: Regenerate.
27
99183741
MP
282014-10-06 Marek Polacek <polacek@redhat.com>
29
30 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
31 * testsuite/libitm.c/memset-1.c: Likewise.
32
b6334cf4
RH
332014-07-24 Richard Henderson <rth@redhat.com>
34
35 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
36 addressing mode in epilogue.
37
3c698bf0
RO
382014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39
40 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
41 -mclear-hwcap instead.
42 * configure: Regenerate.
43 * clearcap.map: Remove.
44
dbed5a9b
JM
452014-05-21 John Marino <gnugcc@marino.st>
46
47 * configure.tgt (*-*-dragonfly*): New target.
48
b17f08dd
RH
492014-05-19 Richard Henderson <rth@redhat.com>
50
51 * config/aarch64/sjlj.S: New file.
52 * config/aarch64/target.h: New file.
53 * configure.tgt: Enable aarch64.
54
5e1f630a
RO
552014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
56
57 * config/generic/asmcfi.h: Also check for
58 __GCC_HAVE_DWARF2_CFI_ASM.
59
84c2f4b0
RH
602013-04-02 Richard Henderson <rth@redhat.com>
61
62 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
63 * config/arm/target.h, config/sh/target.h: Likewise.
64 * config/sparc/target.h, config/x86/target.h: Likewise.
65
7cc51d64
JJ
662014-03-26 Jakub Jelinek <jakub@redhat.com>
67
68 * config/linux/futex_bits.h: Include errno.h.
69 (sys_futex0): If syscall returns -1, return -errno rather than
70 -1.
71
c288ec8f
JM
722014-03-26 Joseph Myers <joseph@codesourcery.com>
73
74 * libitm.texi (Index): Rename to Library Index.
75
ed100f5d
L
762014-01-13 H.J. Lu <hongjiu.lu@intel.com>
77
78 PR libitm/53113
79 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
80 (x86_avx.lo): Append -mavx to CXXFLAGS.
81 * Makefile.in: Regenerate.
82
f93608e6
RS
832014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
84
85 Update copyright years
86
98db73df
TB
872014-01-02 Tobias Burnus <burnus@net-b.de>
88
89 * libitm.texi: Bump @copying's copyright year.
90
b54214fe
UW
912013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
92
93 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
94 (FUNC): Define ELFv2 variant.
95 (END): Likewise.
96 (HIDDEN): Likewise.
97 (CALL): Likewise.
98 (BASE): Likewise.
99 (LR_SAVE): Likewise.
100
3cbe17f7
AM
1012013-09-20 Alan Modra <amodra@gmail.com>
102
103 * configure: Regenerate.
104
6fb471d8
TR
1052013-08-30 Torvald Riegel <triegel@redhat.com>
106
107 * config/posix/rwlock.cc: Fix initialization order.
108
bec9ec3f
TR
1092013-08-30 Torvald Riegel <triegel@redhat.com>
110
111 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
112 (htm_fastpath): Assign an asm name.
113 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
114 HTM fast paths.
115 (_ITM_actions): Likewise.
116 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
117 x86_64.
118 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
119 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
120 field to the start of the structure.
121 * config/linux/rwlock.h (gtm_rwlock): Update comments.
122 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
123 handling for custom HTM fast paths.
124
1869217f
AK
1252013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
126 Revert:
127 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
128
129 * configure.tgt: Add -msoft-float to XCFLAGS.
130
d62d5152
AK
1312013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
132
133 * configure.tgt: Add -msoft-float to XCFLAGS.
134
aaaffb2a
AK
1352013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
136
137 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
138 (htm_transaction_active): Enable zEC12 instructions in the
139 assembler.
140 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
141
167f68ed
AK
1422013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
143
144 * acinclude.m4: Add htm asm check for s390.
145 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
146 * configure: Regenerate.
147 * config/s390/target.h: Remove __HTM__ check.
148 (htm_available): Call getauxval to get hwcaps and check whether
149 HTM is available or not.
150
0258b6e4
PB
1512013-07-15 Peter Bergner <bergner@vnet.ibm.com>
152
153 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
154 * configure.ac: Use it.
155 (AC_CHECK_HEADERS): Check for sys/auxv.h.
156 (AC_CHECK_FUNCS): Check for getauxval.
157 * config.h.in, configure: Rebuild.
158 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
159 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
160 (USE_HTM_FASTPATH): Define.
161 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
162 _HTM_RETRIES) New macros.
163 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
164 htm_begin_success, htm_commit, htm_transaction_active): New functions.
165
5a3fe9b6
AK
1662013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
167
168 * config/s390/target.h: Include htmintrin.h.
169 (_HTM_ITM_RETRIES): New macro definition.
170 (htm_available, htm_init, htm_begin, htm_begin_success)
171 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
172
6c84d576
IS
1732013-06-20 Iain Sandoe <iain@codesourcery.com>
174 Cesar Philippidis <cesar@codesourcery.com>
175
176 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
177 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
178 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
179 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
180
480c696b
TR
1812013-06-20 Torvald Riegel <triegel@redhat.com>
182
183 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
184 (_ITM_getTransactionId): Same.
185 * config/x86/target.h (htm_transaction_active): New.
186
b1db457b
TR
1872013-06-20 Torvald Riegel <triegel@redhat.com>
188
189 PR libitm/57643
190 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
191 the HTM fastpath.
192
51249377
GP
1932013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
194
195 PR bootstrap/56714
196 * local_atomic (__always_inline): Always define our version.
197 (__calculate_memory_order): Mark inline.
198 (atomic_thread_fence): Ditto.
199 (atomic_signal_fence): Ditto.
200 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
201 (atomic_bool::atomic_flag_clear_explicit): Ditto.
202 (atomic_bool::atomic_flag_test_and_set): Ditto.
203 (atomic_bool::atomic_flag_clear): Ditto.
204
f818478b
JJ
2052013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
206
207 * config/s390/sjlj.S: New file.
208 * config/s390/target.h: New file.
209 * configure.tgt: Set options for S/390.
210
ab4425be
AK
2112013-03-23 Andi Kleen <ak@linux.intel.com>
212
213 * local_atomic (__always_inline): Add.
214 (__calculate_memory_order, atomic_thread_fence,
215 atomic_signal_fence, test_and_set, clear, store, load,
216 exchange, compare_exchange_weak, compare_exchange_strong,
217 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
218 Add __always_inline to force inlining.
219
6c59ffd1
IS
2202013-02-11 Iain Sandoe <iain@codesourcery.com>
221 Jack Howarth <howarth@bromo.med.uc.edu>
222 Patrick Marlier <patrick.marlier@gmail.com>
223
224 PR libitm/55693
225 * alloc_cpp.cc: Enable function declarations on darwin.
226 * eh_cpp.cc: Likewise.
227
75f9527c
RS
2282013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
229
230 Update copyright years.
231
64fbcc74
TR
2322012-11-09 Torvald Riegel <triegel@redhat.com>
233
234 * beginend.cc (htm_fastpath): New.
235 (gtm_thread::begin_transaction, _ITM_commitTransaction,
236 _ITM_commitTransactionEH): Add HTM fastpath handling.
237 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
238 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
239 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
240 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
241 * configure.tgt: Add -mrtm to XCFLAGS.
242 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
243 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
244 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
245 * retry.cc (parse_default_method): Add HTM method parsing.
246 (gtm_thread::number_of_threads_changed): Use HTM by default if
247 available.
248
b9efc877
TS
2492012-11-04 Thomas Schwinge <thomas@codesourcery.com>
250
251 * configure: Regenerate.
252
07d3b5c8
RH
2532012-10-31 Richard Henderson <rth@redhat.com>
254
255 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
256 * configure.ac: Use it.
257 * config.h.in, configure: Rebuild.
258 * testsuite/Makefile.in: Rebuild.
259
eb00e959
TR
2602012-10-24 Torvald Riegel <triegel@redhat.com>
261
262 * libitm.texi: Clarify ABI requirements for data-logging functions.
263
b679c813
TR
2642012-10-24 Torvald Riegel <triegel@redhat.com>
265
266 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
267 it requires serial mode instead of assuming that for certain
268 dispatchs.
269 * dispatch.h (abi_dispatch::requires_serial): New.
270 (abi_dispatch::abi_dispatch): Adapt.
271 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
272 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
273 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
274 serial_dispatch::serial_dispatch,
275 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
276
0c609a21
UB
2772012-10-02 Uros Bizjak <ubizjak@gmail.com>
278
279 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
280 and ia32 declarations some more.
281 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
282
c0758df9
JJ
2832012-09-20 Jakub Jelinek <jakub@redhat.com>
284
285 PR other/43620
286 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
287 * configure: Regenerate.
288 * Makefile.in: Regenerate.
289
690c45b8
DE
2902012-09-14 David Edelsohn <dje.gcc@gmail.com>
291
292 * configure: Regenerated.
293
68a12ef3
UB
2942012-07-31 Uros Bizjak <ubizjak@gmail.com>
295
296 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
297
f2f9a097
PM
2982012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
299
300 * eh_cpp.cc: Fix __cxa_end_catch declaration.
301
e6d5f8c9
L
3022012-05-16 H.J. Lu <hongjiu.lu@intel.com>
303
304 * configure: Regenerated.
305
0100e3b3
L
3062012-04-04 H.J. Lu <hongjiu.lu@intel.com>
307
308 PR libitm/52854
309 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
310 for x86-64.
311
2f6935f4
TG
3122012-04-03 Tristan Gingold <gingold@adacore.com>
313
314 * configure: Regenerate.
315
b9c23a61
L
3162012-03-31 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR bootstrap/52812
319 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
320
6a26a74d
BRF
3212012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
322
323 * testsuite/lib/libitm.exp: load fortran-modules.exp
324
b24513a1
RO
3252012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326
327 * configure.tgt (*-*-irix6*): Remove.
328
0d23faac
TR
3292012-03-13 Torvald Riegel <triegel@redhat.com>
330
331 PR libitm/52526
332 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
333 wake-up.
334
5c30094f
RO
3352012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
336
337 * configure.tgt (*-*-osf*): Remove.
338 * configure: Regenerate.
339
d28b0b08
TR
3402012-03-05 Torvald Riegel <triegel@redhat.com>
341
342 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
343 memtransfer/memset if size isn't larger than zero.
344
034209bc
TR
3452012-03-02 Torvald Riegel <triegel@redhat.com>
346
347 * libitm.texi: Link to specification and add a usage example.
348
bc8da6ba
TR
3492012-02-24 Torvald Riegel <triegel@redhat.com>
350
351 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
352 default dispatch for more than 1 thread to ml_wt.
353
63b08143
TR
3542012-02-20 Torvald Riegel <triegel@redhat.com>
355
356 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
357
4c9bd6ac
TR
3582012-02-20 Torvald Riegel <triegel@redhat.com>
359
360 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
361
651ff415
TR
3622012-02-20 Torvald Riegel <triegel@redhat.com>
363
364 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
365 serial mode corner cases made obsolete by prior gtm_rwlock changes.
366 (gl_wt_dispatch.rollback): Same.
367
efee0113
TR
3682012-02-20 Torvald Riegel <triegel@redhat.com>
369
370 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
371
33a03827
TR
3722012-02-20 Torvald Riegel <triegel@redhat.com>
373
374 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
375 for RfW src. Optimize number of calls to gtm_thr.
376
a19db3f2
TR
3772012-02-20 Torvald Riegel <triegel@redhat.com>
378
379 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
380 acquisition to ...
381 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
382 (default_dispatch): Make atomic.
383 (GTM::gtm_thread::set_default_dispatch): Access atomically.
384 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
385 use decide_begin_dispatch() if default_dispatch might have changed.
386 (GTM::gtm_thread::number_of_threads_changed): Initialize
387 default_dispatch here.
388
e948a1fb
IS
3892012-02-15 Iain Sandoe <iains@gcc.gnu.org>
390 Patrick Marlier <patrick.marlier@gmail.com>
391
392 PR libitm/52220
393 * alloc_cpp.cc: No dummy definitions for darwin.
394 * eh_cpp.cc: Likewise.
395
72824d5e
RH
3962012-02-14 Richard Henderson <rth@redhat.com>
397
398 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
399
1f319dba
UB
4002012-02-14 Uros Bizjak <ubizjak@gmail.com>
401
402 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
403
31772c95
TR
4042012-02-14 Torvald Riegel <triegel@redhat.com>
405
406 * libitm_i.h (GTM::gtm_rwlog_entry): New.
407 (GTM::gtm_thread): Add read and write logs.
408 (GTM::dispatch_ml_wt): Declare.
409 * retry.cc (parse_default_method): Support ml_wt.
410 * method-ml.cc: New file.
411 * Makefile.am: Add method-ml.cc.
412 * Makefile.in: Regenerate.
413
5b9cf5d2
TR
4142012-02-14 Torvald Riegel <triegel@redhat.com>
415
416 * dispatch.h (GTM::abi_dispatch::supports): New.
417 (GTM::method_group::reinit): New.
418 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
419 (GTM::gtm_thread::number_of_threads_changed): Check that the method
420 supports the current situation.
421
7d33bcb7
TR
4222012-02-14 Torvald Riegel <triegel@redhat.com>
423
424 * util.cc (GTM::xcalloc): New.
425 * common.h (GTM::xcalloc): Declare.
426
62513f7b
EB
4272012-02-14 Eric Botcazou <ebotcazou@adacore.com>
428
429 * config/sparc/target.h (cpu_relax): Read from CC register.
430 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
431
4322012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
433
434 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
435
f3f5e3c3
EB
4362012-02-13 Eric Botcazou <ebotcazou@adacore.com>
437
62513f7b 438 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
439 * config/sparc/cacheline.h: New file.
440 * config/sparc/target.h: Likewise.
441 * config/sparc/sjlj.S: Likewise.
442 * config/linux/sparc/futex_bits.h: Likewise.
443
4442012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
445
446 * configure.ac (link_itm): Fix comment.
447 * configure: Regenerate.
448 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
449
681355e3
RO
4502012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451
fc985d2f 452 PR libitm/51822
62513f7b 453 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
454 Correct libgomp references.
455
999bcff5
TR
4562012-01-24 Torvald Riegel <triegel@redhat.com>
457
458 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
459 wake-up.
460
9848887a
UB
4612012-01-24 Uros Bizjak <ubizjak@gmail.com>
462
463 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
464 end of structure.
465 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
466 offset values. Do not copy return address. Decrement stack
467 by 56 bytes only.
468 (GTM_longjump) [__x86_64__]: Update offset values.
469
5752c591
UB
4702012-01-23 Uros Bizjak <ubizjak@gmail.com>
471
472 PR libitm/51830
473 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
474 the first function argument to %eax.
475
61e72ca4
RO
4762012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
477
478 * libitm.h (_ITM_getThreadnum): Remove.
479 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
480
9ce91011
RO
4812012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482
483 * clearcap.map: New file.
484 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
485 * configure.ac: Call it.
486 Clear HWCAP_LDFLAGS if defaulting to -mavx.
487 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
488 * configure: Regenerate.
489 * Makefile.in: Regenerate.
490 * testsuite/Makefile.in: Regenerate.
491
3b4f05ec
RO
4922012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493
494 PR libitm/51173
495 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
496 include, exclude options.
497
aab74ee9
TR
4982012-01-14 Torvald Riegel <triegel@redhat.com>
499
500 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
501 rolling back.
502 * containers.h (GTM::vector::set_size): New.
503
07b6642b
TR
5042012-01-14 Torvald Riegel <triegel@redhat.com>
505
506 PR libitm/51855
507 * config/generic/tls.h (GTM::mask_stack_top): New.
508 (GTM::mask_stack_bottom): Declare.
509 * config/generic/tls.c (GTM::mask_stack_bottom): New.
510 * local.cc (gtm_undolog::rollback): Filter out any updates that
511 overlap the libitm stack. Add current transaction as parameter.
512 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
513 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
514 * testsuite/libitm.c/stackundo.c: New test.
515
8377e5e5
RH
5162012-01-10 Richard Henderson <rth@redhat.com>
517
518 * libitm_i.h (_Unwind_DeleteException): Declare weak.
519 * eh_cpp.cc (_Unwind_DeleteException): Define for
520 !HAVE_ELF_STYLE_WEAKREF.
521
11f30bb0
TR
5222012-01-08 Torvald Riegel <triegel@redhat.com>
523
524 * local.cc (GTM_LB): Use GTM::gtm_undolog.
525 (GTM::gtm_thread::drop_references_undolog): Remove.
526 (GTM::gtm_thread::commit_undolog,
527 GTM::gtm_thread::rollback_undolog): Move to ...
528 * libitm_i.h (GTM::gtm_undolog): ...here. New.
529 (GTM::gtm_undolog_entry): Remove.
530 (GTM::gtm_thread): Adapt.
531 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
532 (GTM::gtm_thread::trycommit): Adapt.
533 * method-serial.cc (serial_dispatch::log): Adapt.
534 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
535 (gl_wt_dispatch::store): Fix likely/unlikely.
536 * containers.h (GTM::vector::resize): Add additional_capacity
537 parameter and handle it.
538 (GTM::vector::resize_noinline): New/adapt.
539 (GTM::vector::push): New.
540
a32e5e93
RH
5412012-01-06 Richard Henderson <rth@redhat.com>
542
543 * configure.tgt: Support powerpc-linux and powerpc-darwin.
544 * config/linux/powerpc/futex_bits.h: New file.
545 * config/powerpc/cacheline.h: New file.
546 * config/powerpc/sjlj.S: New file.
547 * config/powerpc/target.h: New file.
548 * config/generic/asmcfi.h (cfi_offset): New.
549 (cfi_restore, cfi_undefined): New.
550
1f53a8e6
AH
5512012-01-05 Aldy Hernandez <aldyh@redhat.com>
552
553 PR other/51171
554 * testsuite/libitm.c/reentrant.c: Remove xfail.
555 (thread): Pass x to pure().
be223aaf 556 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 557
c898f7b8
TR
5582011-12-24 Torvald Riegel <triegel@redhat.com>
559
560 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
561 privatization safety if already in serial mode.
562
610e3901
TR
5632011-12-24 Torvald Riegel <triegel@redhat.com>
564
565 * beginend.cc (GTM::gtm_thread::restart): Add and handle
566 finish_serial_upgrade parameter.
567 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
568 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
569 Don't unset reader flag.
570 (GTM::gtm_rwlock::write_upgrade_finish): New.
571 * config/posix/rwlock.cc: Same.
572 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
573 Declare.
574 * config/posix/rwlock.h: Same.
575 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
576 flag after commit or after rollback when restarting.
577
799142bf
TR
5782011-12-24 Torvald Riegel <triegel@redhat.com>
579
580 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
581 (GTM::gtm_thread::try_commit): Changed memory order.
582 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
583 as parameter.
584 * config/linux/x86/futex_bits.h (sys_futex0): Same.
585 * config/linux/sh/futex_bits.h (sys_futex0): Same.
586 * config/linux/futex_bits.h (sys_futex0): Same.
587 * config/linux/futex.cc (futex_wait, futex_wake): Same.
588 * config/linux/futex.h (futex_wait, futex_wake): Same.
589 * config/linux/rwlock.h (gtm_rwlock::writers,
590 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
591 ints.
592 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
593 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
594 gtm_rwlock::write_unlock): Fix memory orders and fences.
595 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
596 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
597 gtm_rwlock::write_unlock): Same.
598 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
599 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
600 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
601 Add comments.
602 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
603 gl_wt_dispatch::load, gl_wt_dispatch::store,
604 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
605 orders and fences. Add comments.
606
b0f96e35
JJ
6072011-12-21 Jakub Jelinek <jakub@redhat.com>
608
609 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
610 * Makefile.in: Regenerated.
611
cc163247
KK
6122011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
613
614 * configure.tgt: Add sh* case.
615 * config/sh/target.h: New file.
616 * config/sh/sjlj.S: New file.
617 * config/linux/sh/futex_bits.h: New file.
618
aebac0ca
RH
6192011-12-14 Richard Henderson <rth@redhat.com>
620
621 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
622 * config/arm/sjlj.S, config/arm/target.h: New files.
623 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
624 (cfi_rel_offset): New.
625 * config/linux/futex_bits.h: New file.
626 * config/linux/futex.cc: Include futex_bits.h here...
627 * config/linux/futex.h: ... not here.
628 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
629 * configure.ac (ARCH_AM): New conditional.
630 * Makefile.in, configure: Rebuild.
631 * configure.tgt: Handle ARM.
632
36cfbee1
RH
6332011-12-13 Richard Henderson <rth@redhat.com>
634
5d9d05d3
RH
635 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
636 signed/unsigned comparison werror.
637
36cfbee1
RH
638 * local_atomic: New file.
639 * libitm_i.h: Include it.
640 (gtm_thread::shared_state): Use atomic template.
641 * beginend.cc (GTM::gtm_clock): Use atomic template.
642 (global_tid): Use atomic template if 64-bit atomics available.
643 (gtm_thread::gtm_thread): Update shared_state access.
644 (gtm_thread::trycommit): Likewise.
645 (choose_code_path): Update global_tid access.
646 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
647 * stmlock.h (GTM::gtm_clock): Use atomic template.
648 (gtm_get_clock, gtm_inc_clock): Update accesses.
649 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
650 redundant __sync_synchronize after atomic shared_state access.
651 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
652 (gtm_rwlock::write_lock_generic): Likewise.
653 (gtm_rwlock::read_unlock): Likewise.
654 * config/alpha/target.h (atomic_read_barrier): Remove.
655 (atomic_write_barrier): Remove.
656 * config/x86/target.h (atomic_read_barrier): Remove.
657 (atomic_write_barrier): Remove.
658
062f93f2
RH
6592011-11-30 Richard Henderson <rth@redhat.com>
660
661 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
662 * beginend.c (_ITM_abortTransaction): Update to match.
663 (GTM::gtm_thread::restart): Likewise.
664 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
665 * config/x86/sjlj.S (GTM_longjmp): Likewise.
666
bd8aaa86
IS
6672011-11-23 Iain Sandoe <iains@gcc.gnu.org>
668
669 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
670 * Makefile.in: Regenerate.
671
8cf36bb3
IS
6722011-11-22 Iain Sandoe <iains@gcc.gnu.org>
673
674 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
675 * alloc_cpp.cc: Generate dummy functions if we don't
676 HAVE_ELF_STYLE_WEAKREF.
677 * eh_cpp.cc: Likewise.
678 * configure: Regenerate.
679 * aclocal.m4: Likewise.
680 * config.h.in: Likewise.
681 * Makefile.in: Likewise.
682 * testsuite/Makefile.in: Likewise.
683
0b41ebef
IS
6842011-11-22 Iain Sandoe <iains@gcc.gnu.org>
685
686 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
687 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 688 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
689 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
690 in portability to non-elf targets.
8cf36bb3 691 (GTM_longjmp): Likewise.
0b41ebef
IS
692 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
693 where required.
694
9c9d352a
IS
6952011-11-22 Iain Sandoe <iains@gcc.gnu.org>
696
697 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
698 * testsuite/libitm.c/memset-1.c: Likewise.
699
c6084f68
AT
7002011-11-21 Andreas Tobler <andreast@fgznet.ch>
701
702 * configure: Regenerate.
703
adcd36bc
RO
7042011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
705
706 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
707 (LIBITM_ENABLE_SYMVERS): Handle sun style.
708 * Makefile.am: Handle sun style versioning.
709 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
710 * configure: Regenerate.
711 * Makefile.in: Regenerate.
712
59659b59
RO
7132011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
714
715 * config/generic/asmcfi.h: Fix comment.
716 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
717 sequence without .hidden support, error for non-ELF targets.
718 (GTM_longjmp) [__ELF__]: Only use .hidden if
719 HAVE_ATTRIBUTE_VISIBILITY.
720
d846e425
RO
7212011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
722
723 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
724 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
725 Dummy functions.
726 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
727 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
728
80713347
UB
7292011-11-16 Uros Bizjak <ubizjak@gmail.com>
730
731 PR bootstrap/51098
732 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
733 * configure: Regenerate.
734
2841f85e
L
7352011-11-14 H.J. Lu <hongjiu.lu@intel.com>
736
737 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
738
8851b429
RO
7392011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
740
741 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
742 .hidden.
743 (.note.GNU-stack): Only use if __linux__.
744 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
745 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
746 * testsuite/libitm.c/reentrant.c: Likewise.
747 * testsuite/libitm.c/simple-2.c: Likewise.
748 * testsuite/libitm.c/txrelease.c: Likewise.
749 * testsuite/libitm.c++/static_ctor.C: Likewise.
750
d4b17902
RH
7512011-11-10 Richard Henderson <rth@redhat.com>
752
753 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
754 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
755 * configure.ac (ARCH_X86_AVX): New conditional.
756 * Makefile.in, configure: Rebuild.
757
430616e7
RH
7582011-11-09 Richard Henderson <rth@redhat.com>
759
760 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
761 * configure.ac: Use it.
762 * config.h.in, configure: Rebuild.
763 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
764
79b1edb6
RH
7652011-11-09 Richard Henderson <rth@redhat.com>
766
767 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
768 * config/alpha/unaligned.h: Remove file.
769 * config/generic/unaligned.h: Remove file.
770 * config/x86/unaligned.h: Remove file.
771 * config/generic/cachepage.h: Remove file.
772 * config/posix/cachepage.cc: Remove file.
773 * config/generic/cacheline.cc: Remove file.
774 * config/x86/cacheline.cc: Remove file.
775 * config/generic/cacheline.h (gtm_cacheline): Remove the
776 store_mask, copy_mask, copy_mask_wb methods.
777 * config/x86/cacheline.h: Likewise.
778 * config/alpha/cacheline.h: Fall back to generic after setting size.
779 * config/generic/tls.cc (gtm_mask_stack): Remove.
780 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
781 (GTM_vpalignr_table): Remove.
782 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
783 (GTM_pshift_table): Remove.
784 * config/libitm_i.h: Don't include cachepage.h.
785 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
786 * Makefile.in, testsuite/Makefile.in: Rebuild.
787
4bdd090f
RH
7882011-11-09 Richard Henderson <rth@redhat.com>
789
8ee9fac2
RH
790 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
791 to emit branch prediction hint.
792
9bdc6343
RH
793 * config/x86/sjlj.S: Protect elf directives with __ELF__.
794 Protect .note.GNU-stack with __linux__.
795
4bdd090f
RH
796 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
797 * configure, aclocal.m4, config.h.in: Rebuild.
798 * config/generic/asmcfi.h: New file.
799 * config/x86/sjlj.S: Use it.
800
4408b086
RH
8012011-11-08 Richard Henderson <rth@redhat.com>
802
803 * local.cc (_ITM_LB): Use a normal call, not a function alias.
804
01f3428c
RH
8052011-11-08 Richard Henderson <rth@redhat.com>
806
3d3b05ff
RH
807 * configure.tgt: Test correct directory for supported cpus.
808
01f3428c
RH
809 * configure.ac: Exit if unsupported.
810 * configure: Rebuild.
811 * configure.tgt: Delete boilerplate from libgomp for unsupported
812 targets. Set UNSUPPORTED for unsupported targets.
813
07f03cd3
RO
8142011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
815
816 * configure.tgt: Handle i386 like i[456]86.
817 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
818 take address.
819 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
820 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
821
0a35513e
AH
8222011-11-05 Aldy Hernandez <aldyh@redhat.com>
823
824 * method-wbetl.cc: Update copyright notice.
825 * aatree.cc: Same.
826 * util.cc: Same.
827 * libitm.h: Same.
828 * memset.cc: Same.
829 * eh_cpp.cc: Same.
830 * barrier.tpl: Same.
831 * useraction.cc: Same.
832 * stmlock.h: Same.
833 * memcpy.cc: Same.
834 * common.h: Same.
835 * config/generic/tls.cc: Same.
836 * config/generic/cacheline.h: Same.
837 * config/generic/cachepage.h: Same.
838 * config/generic/cacheline.cc: Same.
839 * config/generic/unaligned.h: Same.
840 * config/x86/cacheline.h: Same.
841 * config/x86/cacheline.cc: Same.
842 * config/x86/unaligned.h: Same.
843 * config/alpha/cacheline.h: Same.
844 * config/alpha/unaligned.h: Same.
845 * config/alpha/sjlj.S: Same.
846 * config/posix/cachepage.cc: Same.
847 * config/linux/futex.h: Same.
848 * config/linux/alpha/futex_bits.h: Same.
849
8502011-11-04 Torvald Riegel <triegel@redhat.com>
851
852 * libitm.texi: No cover text and invariant sections.
853
8542011-11-03 Richard Henderson <rth@redhat.com>
855
856 * local_type_traits: New file.
857 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
858
8592011-11-03 Richard Henderson <rth@redhat.com>
860
861 * configure.ac: Don't test for gfortran.
862 * configure: Rebuild.
863
864 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
865 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
866
8672011-11-03 Aldy Hernandez <aldyh@redhat.com>
868
869 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
870 * testsuite/libitm.c/memset-1.c: Same.
871 * testsuite/libitm.c/c.exp: Same.
872 * testsuite/lib/libitm-dg.exp: Same.
873 * testsuite/lib/libitm.exp: Same.
874 * testsuite/libitm.c++/c++.exp: Same.
875
8762011-11-03 Aldy Hernandez <aldyh@redhat.com>
877
878 * testsuite/config/default.exp: Update copyright date.
879 * configure.ac: Add copyright info.
880 * configure.tgt: Same.
881
8822011-11-03 Aldy Hernandez <aldyh@redhat.com>
883
884 * testsuite/libitm.c/reentrant.c: XFAIL.
885 * testsuite/libitm.c++/static_ctor.C: XFAIL.
886
8872011-10-29 Torvald Riegel <triegel@redhat.com>
888
889 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
890 handle aborts.
891 (_ITM_abortTransaction): Handle aborts of outer transactions.
892 * libitm_i.h: Same.
893 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
894 * libitm.texi: Document aborts of outer transactions.
895 * testsuite/libitm.c/cancel.c: New file.
896
8972011-10-19 Torvald Riegel <triegel@redhat.com>
898
899 * testsuite/*: Change __transaction to __transaction_atomic or
900 __transaction_relaxed.
901
9022011-10-19 Torvald Riegel <triegel@redhat.com>
903
904 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
905 (gtm_thr): Same.
906
9072011-10-19 Torvald Riegel <triegel@redhat.com>
908
909 * libitm_i.h: Add gl_wt dispatch.
910 * retry.cc (parse_default_method): Same.
911 * method-gl.cc: New file.
912 * Makefile.am: Use method-gl.cc.
913 * Makefile.in: Rebuild.
914
9152011-10-19 Torvald Riegel <triegel@redhat.com>
916
917 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
918 safety if requested by a TM method.
919 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
920 privatization safety.
921 * method-serial.cc: Same.
922
9232011-10-19 Torvald Riegel <triegel@redhat.com>
924
925 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
926 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
927 undolog-related member functions from *_local to *_undolog.
928 * local.cc (gtm_thread::commit_undolog): Same.
929 * beginend.cc (GTM::gtm_thread::trycommit): Same.
930 (GTM::gtm_thread::rollback): Roll back undolog before
931 dispatch-specific rollback.
932
9332011-10-19 Torvald Riegel <triegel@redhat.com>
934
935 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
936 re-initialization of the current method group.
937 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
938
9392011-10-19 Torvald Riegel <triegel@redhat.com>
940
941 * alloc.cc (commit_allocations_2): Do not free transaction-local
942 memory when committing a nested transaction.
943
9442011-10-19 Torvald Riegel <triegel@redhat.com>
945
946 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
947 serial-irrevocable dispatch, not serial.
948
9492011-10-19 Torvald Riegel <triegel@redhat.com>
950
951 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
952 declarations.
953 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
954 * method-serial.cc: Implement begin_or_restart().
955 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
956 dispatch-specific begin_or_restart().
957 (GTM::gtm_thread::restart): Same.
958
9592011-08-23 Torvald Riegel <triegel@redhat.com>
960
961 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
962 restarting without switching to serial mode.
963 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
964 transaction state. Choose closed-nesting alternative if available.
965 (GTM::gtm_thread::set_default_dispatch): New.
966 (parse_default_method): New.
967 (GTM::gtm_thread::number_of_threads_changed): New.
968 * method-serial.cc (GTM::serial_mg): New method group class.
969 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
970 fini.
971 (GTM::serial_dispatch): Same.
972 (GTM::serialirr_onwrite_dispatch): Same.
973 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
974 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
975 registered threads.
976 (GTM::gtm_thread::gtm_thread): Same.
977 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
978 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
979 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
980 choose dispatch but set state according to dispatch here.
981 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
982 (GTM::method_group): New class.
983 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
984 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
985 * libitm.texi: Document TM methods, method groups, method life cycle.
986 Rename method sets to method groups.
987
9882011-08-23 Torvald Riegel <triegel@redhat.com>
989
990 * config/x86/tls.h: Moved to ...
991 * config/linux/x86/tls.h: ... here.
992
9932011-08-23 Torvald Riegel <triegel@redhat.com>
994
995 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
996 Add X32 support.
997 * config/x86/sjlj.S: Same.
998
9992011-08-19 Torvald Riegel <triegel@redhat.com>
1000
1001 * config/linux/rwlock.h: New file.
1002 * config/linux/rwlock.c: New file.
1003 * configure.ac: Reenable futex support (undo SVN rev 157758).
1004 * Makefile.am: Same.
1005 * configure.tgt: Same.
1006 * config/linux/alpha/futex_bits.h: Same.
1007 * config/linux/futex.h: Same. Return number of woken processes.
1008 * config/linux/futex.cc: Same.
1009 (futex_wait): Remove spinning.
1010 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1011 Use __x86_64__ instead of __LP64__.
1012 * aclocal.m4: Include generic futex checks.
1013 * configure: Rebuild.
1014 * Makefile.in: Rebuild.
1015 * testsuite/Makefile.in: Rebuild.
1016 * beginend.cc: Include pthread.h.
1017 * config/posix/cachepage.cc: Same.
1018
10192011-08-12 Torvald Riegel <triegel@redhat.com>
1020
1021 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1022 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1023 (set_gtm_thr): New.
1024 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1025 (set_gtm_thr): New.
1026 (GTM::gtm_thread::thread_num): Removed.
1027 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1028 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1029 tx-to-thread renaming.
1030 * beginend.cc: Adapted to tx-to-thread renaming.
1031 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1032 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1033 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1034 gtm_transaction to gtm_thread.
1035 (_ITM_getThreadnum): Removed. Not supported anymore.
1036 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1037 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1038 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1039 gtm_tx-to-gtm_thr renaming if necessary.
1040 * eh_cpp.cc: Same.
1041 * local.cc: Same.
1042 * retry.cc: Same.
1043 * clone.cc: Same.
1044 * alloc.cc: Same.
1045 * alloc_c.cc: Same.
1046 * alloc_cpp.cc: Same.
1047 * method-serial.cc: Same.
1048 * config/generic/tls.cc: Same.
1049 * config/posix/rwlock.h (gtm_rwlock): Same.
1050 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1051
10522011-08-12 Torvald Riegel <triegel@redhat.com>
1053
1054 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1055 implementation.
1056 (gtm_rwlock::read_unlock): Same.
1057 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1058 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1059 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1060 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1061 w_upgrade. Replaced by per-transaction flags (in shared_state).
1062 Added c_confirmed_writers.
1063 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1064 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1065 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1066 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1067 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1068 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1069 * libitm.texi: Document locking conventions and implementations in
1070 libitm.
1071
10722011-08-12 Torvald Riegel <triegel@redhat.com>
1073
1074 * libitm_i.h (next_tx): Add list of all threads' transaction.
1075 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1076 transaction with list of transactions and ...
1077 (thread_exit_handler): ... deregister here.
1078 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1079 * config/x86/target.h: Same.
1080
10812011-08-12 Torvald Riegel <triegel@redhat.com>
1082
1083 * testsuite/libitm.c++/static_ctor.C: New file.
1084
10852011-08-12 Torvald Riegel <triegel@redhat.com>
1086
1087 * testsuite/libitm.c/reentrant.c: New file.
1088
10892011-08-12 Torvald Riegel <triegel@redhat.com>
1090
1091 * config/generic/tls.h: Remove the free list for transactions and ...
1092 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1093 (GTM::gtm_transaction::operator delete): ... and release here.
1094 (thread_exit_handler): New. Delete tx when thread terminates.
1095 (thread_exit_init): New.
1096 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1097 * testsuite/libitm.c/txrelease.c: New file.
1098
10992011-08-12 Torvald Riegel <triegel@redhat.com>
1100
1101 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1102 * testsuite/libitm.c/notx.c: New file.
1103
11042011-08-12 Torvald Riegel <triegel@redhat.com>
1105
1106 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1107 * libitm_i.h (local_tid): ... to here.
1108 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1109 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1110
11112011-08-12 Torvald Riegel <triegel@redhat.com>
1112
1113 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1114 serialirr_onwrite_dispatch as new default for now.
1115 * method-serial.cc (serialirr_onwrite_dispatch): New.
1116 (GTM::dispatch_serialirr_onwrite): New.
1117 * libitm_i.h: Same.
1118
11192011-08-12 Torvald Riegel <triegel@redhat.com>
1120
1121 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1122 * query.cc (_ITM_getTransactionId): There is no active transaction if
1123 the current nesting level is zero.
1124
11252011-07-28 Torvald Riegel <triegel@redhat.com>
1126
1127 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1128 rollback.
1129
11302011-07-28 Torvald Riegel <triegel@redhat.com>
1131
1132 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1133 transaction properties from the caller instead of from the
1134 transaction object.
1135 * libitm_i.h: Same.
1136 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1137
11382011-07-28 Torvald Riegel <triegel@redhat.com>
1139
1140 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1141 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1142 * dispatch.h: Same.
1143 * method-serial.cc: Same.
1144 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1145 flat nesting as default, and closed nesting on demand.
1146 (GTM::gtm_transaction::rollback): Same.
1147 (_ITM_abortTransaction): Same.
1148 (GTM::gtm_transaction::restart): Same.
1149 (GTM::gtm_transaction::trycommit): Same.
1150 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1151 (choose_code_path): New.
1152 (GTM::gtm_transaction_cp::save): New.
1153 (GTM::gtm_transaction_cp::commit): New.
1154 * query.cc (_ITM_inTransaction): Support flat nesting.
1155 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1156 (GTM::gtm_transaction): Support flat and closed nesting.
1157 * alloc.cc (commit_allocations_2): New.
1158 (commit_cb_data): New helper struct.
1159 (GTM::gtm_transaction::commit_allocations): Handle nested
1160 commits/rollbacks.
1161 * libitm.texi: Update user action section, add description of nesting.
1162
11632011-07-28 Torvald Riegel <triegel@redhat.com>
1164
1165 * libitm_i.h: Add closed nesting as restart reason.
1166 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1167
11682011-07-28 Torvald Riegel <triegel@redhat.com>
1169
1170 * useraction.cc: Use vector instead of list to store actions.
1171 Also support partial rollbacks for closed nesting.
1172 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1173 * beginend.cc: Same.
1174
11752011-07-28 Torvald Riegel <triegel@redhat.com>
1176
1177 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1178 closed_nesting flags, as well as a closed nesting alternative.
1179 * method-serial.cc: Same.
1180 (serial_dispatch): Renamed to serialirr_dispatch.
1181 (GTM::dispatch_serialirr): Same.
1182 (serial_dispatch_ul): Renamed to serial_dispatch.
1183 (GTM::dispatch_serial): Same.
1184
11852011-07-28 Torvald Riegel <triegel@redhat.com>
1186
1187 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1188
11892011-07-28 Torvald Riegel <triegel@redhat.com>
1190
1191 * aatree.h (aa_tree::remove): New.
1192 (aa_tree::operator new): Add placement new.
1193
11942011-07-02 Torvald Riegel <triegel@redhat.com>
1195
1196 * containers.h: New file.
1197 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1198 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1199 * common.h: ... to here.
1200 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1201 * local.cc: Same.
1202
12032011-06-30 Torvald Riegel <triegel@redhat.com>
1204
1205 * libitm_i.h (STATE_ABORTING): Remove.
1206 * beginend.cc (_ITM_abortTransaction): Same.
1207 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1208 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1209 (_ITM_rollbackTransaction): Remove.
1210 * beginend.cc: Same.
1211 * libitm.map: Same.
1212 * libitm.texi: Document these ABI changes.
1213
12142011-06-30 Torvald Riegel <triegel@redhat.com>
1215
1216 * libitm.texi: New file.
1217 * Makefile.am: Add libitm.texi.
1218 * Makefile.in: Rebuild.
1219
12202011-06-30 Torvald Riegel <triegel@redhat.com>
1221
1222 * libitm_i.h: Move parts to common.h and dispatch.h.
1223 * common.h: New file.
1224 * dispatch.h: New file, new dispatch class.
1225 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1226 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1227 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1228 decision to retry.cc.
1229 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1230 only.
1231 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1232 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1233 logging.
1234 * barrier.cc: Use new barriers definitions.
1235 (abi_dispatch::memmove_overlap_check): New.
1236 * config/x86/x86_sse.cc: Same.
1237 * config/x86/x86_avx.cc: Same.
1238 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1239 memcpy.cc.
1240 * Makefile.in: Rebuild.
1241 * method-readonly.cc: Remove.
1242 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1243 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1244
12452011-06-30 Torvald Riegel <triegel@redhat.com>
1246
1247 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1248 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1249 * testsuite/libitm.c/dropref-2.c: Same.
1250 * testsuite/libitm.c/dropref.c: Same.
1251
12522011-06-30 Torvald Riegel <triegel@redhat.com>
1253
1254 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1255 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1256 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1257 * alloc_c.cc: Same.
1258 * barrier.tpl: Same.
1259 * beginend.c: Same.
1260 * config/generic/tls.h: Same.
1261 * config/x86/tls.h: Same.
1262 * libitm_i.h: Same.
1263 * memcpy.cc: Same.
1264 * memset.cc: Same.
1265 * method-readonly.cc: Same.
1266 * method-serial.cc: Same.
1267 * method-wbetl.cc: Same.
1268 * retry.cc: Same.
1269
12702011-03-03 Richard Henderson <rth@redhat.com>
1271
1272 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1273 From Patrik Marlier <patrick.marlier@unine.ch>.
1274
12752011-02-03 Richard Henderson <rth@redhat.com>
1276
1277 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1278 * configure.ac: Use it.
1279 * configure, config.h.in: Rebuild.
1280 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1281 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1282 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1283 * libitm.map: Use wildcards to match size_t mangling.
1284
12852010-12-14 Richard Henderson <rth@redhat.com>
1286
1287 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1288 blocks of TIDs per thread.
1289 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1290 (setup_gtm_thr): Return the thread structure.
1291 * config/x86/tls.h (setup_gtm_thr): Likewise.
1292
12932010-12-14 Richard Henderson <rth@redhat.com>
1294
1295 * clone.cc (table_lock): Remove.
1296 (find_clone): Don't take it.
1297 (ExcludeTransaction): New helper class.
1298 (_ITM_registerTMCloneTable): Use it.
1299 (_ITM_deregisterTMCloneTable): Likewise.
1300
13012010-12-14 Richard Henderson <rth@redhat.com>
1302
1303 * config/x86/tls.h: New file.
1304
13052010-07-15 Richard Henderson <rth@redhat.com>
1306
1307 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1308 * Makefile.in: Rebuild.
1309
13102010-07-13 Aldy Hernandez <aldyh@redhat.com>
1311
1312 * method-wbetl.cc (trydropreference): Fix source line.
1313
13142010-07-13 Aldy Hernandez <aldyh@redhat.com>
1315
1316 * libitm.h: Add comment.
1317 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1318
13192010-07-07 Aldy Hernandez <aldyh@redhat.com>
1320
1321 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1322 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1323 available, use pthread mutexes.
1324 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1325 * config.h.in: Regenerate.
1326 * configure: Regenerate.
1327
13282010-07-06 Aldy Hernandez <aldyh@redhat.com>
1329
1330 * libitm.h (ITM_PURE): Define.
1331 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1332
13332010-06-28 Aldy Hernandez <aldyh@redhat.com>
1334
1335 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1336 (validate): Add comment.
1337 (trydropreference): New.
1338 * method-readonly.cc (class readonly_dispatch): Add
1339 trydropreference.
1340 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1341 Call trydropreference().
1342 * libitm.h (_ITM_dropReferences): Remove const attribute.
1343 * method-serial.cc (class serial_dispatch): Add trydropreference.
1344 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1345
13462010-06-28 Aldy Hernandez <aldyh@redhat.com>
1347
1348 * memcpy.cc (do_memcpy): Comment.
1349
13502010-06-25 Aldy Hernandez <aldyh@redhat.com>
1351
1352 * barrier.tpl: Add comments throughout.
1353
13542010-06-24 Aldy Hernandez <aldyh@redhat.com>
1355
1356 * method-wbetl.cc (struct w_entry): Add comments.
1357 (trycommit): Same.
1358 (rollback): Same.
1359
13602010-06-24 Aldy Hernandez <aldyh@redhat.com>
1361
1362 * alloc_c.cc (_ITM_dropReferences): New.
1363 * libitm.map (_ITM_dropReferences): Add.
1364 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1365 * libitm_i.h (struct gtm_transaction): Declare
1366 drop_references_allocations and drop_references_local.
1367 * local.cc (rollback_local): Ignore memory when applicable.
1368 (drop_references_local): New.
1369
13702010-06-23 Richard Henderson <rth@redhat.com>
1371
1372 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1373 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1374 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1375 * config/alpha/target.h: Likewise.
1376 * config/generic/tls.cc (gtm_mask_stack): Use it.
1377
13782010-06-23 Richard Henderson <rth@redhat.com>
1379
1380 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1381 a mutex instead of trying a lock-free compare-and-swap on the list.
1382 (gtm_cacheline_page::operator delete): Likewise.
1383
13842010-06-16 Richard Henderson <rth@redhat.com>
1385
1386 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1387 that overlap the libitm stack.
1388 * barrier.tpl: Mark incoming stack.
1389 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1390 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1391 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1392 * memcpy.cc, memset.cc: Likewise.
1393 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1394 * config/generic/tls.h (gtm_thread): Add stack_top member.
1395 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1396 * libitm_i.h (gtm_mask_stack): Declare.
1397 * config/generic/tls.cc: New file.
1398 * Makefile.am (libitm_la_SOURCES): Add it.
1399 (AM_CXXFLAGS): Turn off exceptions.
1400 * Makefile.in: Rebuild.
1401
14022010-06-16 Richard Henderson <rth@redhat.com>
1403
1404 * alloc.cc (struct gtm_alloc_action): Move definition ...
1405 * libitm_i.h: ... here.
1406 (class gtm_transaction): Declare new and delete.
1407 * beginend.cc (alloc_tx): Reformulate as operator new.
1408 (free_tx): Reformulate as operator delete.
1409 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1410
14112010-06-11 Richard Henderson <rth@redhat.com>
1412
1413 * clone.cc (clone_entry_compare): Fix typo.
1414 From Patrik Marlier <patrick.marlier@unine.ch>.
1415
14162010-05-13 Richard Henderson <rth@redhat.com>
1417
1418 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1419 in extern "C".
1420
14212010-05-07 Aldy Hernandez <aldyh@redhat.com>
1422
1423 * libitm_i.h (struct gtm_transaction): Remove
1424 get_allocation_size.
1425 (record_allocation): Remove size parameter.
1426 * libitm.map (_ITM_realloc): Remove.
1427 * alloc_c.cc (_ITM_realloc): Remove.
1428 (_ITM_malloc): Remove size argument to record_allocation.
1429 (_ITM_calloc): Same.
1430 * alloc_cpp.cc (_ZGTtnwm): Same.
1431 (_ZGTtnwmRKSt9nothrow_t): Same.
1432 (_ZGTtnam): Same.
1433 (_ZGTtnamRKSt9nothrow_t): Same.
1434 * alloc.cc (struct gtm_alloc_action): Remove size.
1435 (get_allocation_size): Remove.
1436 (commit_allocations): Add comment.
1437 (record_allocation): Remove size parameter.
1438 (forget_allocation): Remove set of size.
1439
14402010-04-19 Aldy Hernandez <aldyh@redhat.com>
1441
1442 * Makefile.am (abi_version): New.
1443 (AM_CXXFLAGS): Pass abi_version.
1444 * Makefile.in: Regenerate.
1445 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1446
14472010-04-06 Aldy Hernandez <aldyh@redhat.com>
1448
1449 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1450 _ITM_getTMCloneOrIrrevokable.
1451 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1452 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1453
14542010-03-26 Aldy Hernandez <aldyh@redhat.com>
1455
1456 * configure.ac: Remove Linux futex support.
1457 * configure.tgt (config_path): Same.
1458 * Makefile.am: Same.
1459 * config/linux: Remove entire directory.
1460 * configure: Rebuild.
1461 * Makefile.in: Rebuild.
1462 * testsuite/Makefile.in: Rebuild.
1463
14642010-03-09 Aldy Hernandez <aldyh@redhat.com>
1465
1466 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1467 switching to serial mode.
1468 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1469
14702010-03-03 Aldy Hernandez <aldyh@redhat.com>
1471
1472 * configure.tgt: Add emacs -*- tags.
1473 * barrier.tpl: Same.
1474
14752010-02-23 Aldy Hernandez <aldyh@redhat.com>
1476
1477 * Makefile.am: Rename serial.cc to method-serial.cc.
1478 * Makefile.in: Regenerate with automake 1.11.1.
1479 * testsuite/Makefile.in: Same.
1480 * aclocal.m4: Regenerate with aclocal 1.11.1.
1481 * method-serial.cc: Rename from serial.cc.
1482 * libitm_i.h (struct gtm_transaction): Update comment on
1483 serialirr_mode.
1484
14852010-02-22 Aldy Hernandez <aldyh@redhat.com>
1486
1487 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1488 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1489
14902010-02-11 Aldy Hernandez <aldyh@redhat.com>
1491
1492 * configure: Rebuild.
1493
14942009-11-12 Richard Henderson <rth@redhat.com>
1495
1496 * Rewrite everything in C++.
1497
14982009-11-03 Richard Henderson <rth@redhat.com>
1499
1500 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1501 * Makefile.am (libitm_la_SOURCES): Add them.
1502 * configure.ac (ARCH_X86): New conditional.
1503 * Makefile.in, configure: Rebuild.
1504 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1505 Move futex setup into "other system configury" case.
1506 * local.c (rollback_local): Merge into ...
1507 (GTM_rollback_local): ... here.
1508 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1509 (_ITM_LB): Define as an alias to GTM_LB.
1510
15112009-11-03 Richard Henderson <rth@redhat.com>
1512
1513 * method-readonly.c: New file.
1514 * Makefile.am (libitm_la_SOURCES): Add it.
1515 * Makefile.in: Rebuild.
1516 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1517 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1518 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1519 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1520 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1521 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1522 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1523 gtm_get_clock, gtm_inc_clock): New.
1524 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1525 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1526 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1527 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1528 replace uses with new libitm_i.h symbols.
1529 (dispatch_wbetl): Rename from wbetl_dispatch.
1530 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1531 away from dispatch_readonly; abort if the beginTransaction call
1532 asserted that the transaction was readonly.
1533
15342009-11-03 Richard Henderson <rth@redhat.com>
1535
1536 * memset.c: New file.
1537 * Makefile.am (libitm_la_SOURCES): Add it.
1538 * Makefile.in: Rebuild.
1539 * testsuite/libitm.c/memset-1.c: New.
1540
15412009-11-03 Richard Henderson <rth@redhat.com>
1542
1543 * dispatch.c: Remove file.
1544 * useraction.c (struct gtm_user_action): Move from libitm.h.
1545 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1546 (serial_memset, serial_memmove, serial_memcpy): Remove.
1547 (serial_W*, serial_R*): Remove.
1548 (serial_dispatch): Update to match.
1549 * configure.ac: Move Werror down below configure checks. Don't
1550 check for sys/loadavg.h, do check for malloc.h. Don't check for
1551 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1552 Use GCC_AC_FUNC_MMAP_BLACKLIST
1553 * libitm.h: Split out all internal items to...
1554 * libitm_i.h: ... here. New file.
1555 * copymask.c: New file.
1556 * local.c (struct gtm_local_undo): Move from libitm.h.
1557 (GTM_alloc_local): Rename from alloc_local; export.
1558 * memcpy.c: New file.
1559 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1560 * config/posix/page.c: New file.
1561 * config/posix/target_tls.h: Remove file.
1562 * barrier.c: New file.
1563 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1564 copymask.c, page.c.
1565 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1566 * method-wbetl.c: Rewrite for new cacheline methods.
1567 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1568
1569 * config/alpha/sjlj.S: Fix typo.
1570 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1571 * config/alpha/copymask.c: New file.
1572 * config/alpha/target.h (CACHELINE_SIZE): New.
1573 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1574
1575 * config/x86/target_i.h: Copy functions from x86/target.h.
1576 * config/x86/copymask.c: New file.
1577 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1578 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1579 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1580 * config/x86/target_tls.h: Move contents to target_i.h.
1581
1582 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1583 * testsuite/libitm.c/memcpy-1.c: New.
1584
15852009-10-22 Richard Henderson <rth@redhat.com>
1586
1587 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1588 (AM_CCASFLAGS): New.
1589 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1590 saving/restoring _AC_ARG_VAR_PRECIOUS.
1591 * Makefile.in, aclocal.m4, config.h.in, configure,
1592 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1593
15942009-10-22 Richard Henderson <rth@redhat.com>
1595
1596 * testsuite/*: Update for new compiler syntax.
1597
15982009-10-21 Richard Henderson <rth@redhat.com>
1599
1600 * libitm.h (_ITM_abortReason): Add outerAbort.
1601
16022009-08-03 Richard Henderson <rth@redhat.com>
1603
1604 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1605 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1606 * method-wbetl.c (struct w_entry): Remove mask.
1607 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1608 adjust all callers.
1609
16102009-07-22 Richard Henderson <rth@redhat.com>
1611
1612 * eh_cpp.c: New file.
1613 * Makefile.am (libitm_la_SOURCES): Add it.
1614 * Makefile.in: Rebuild.
1615 * beginend.c (GTM_rollback_transaction): Undo exception state.
1616 (GTM_trycommit_transaction): Mark inline.
1617 (GTM_trycommit_and_finalize_transaction): Split out from ...
1618 (_ITM_commitTransaction): ... here.
1619 (_ITM_commitTransactionEH): New function.
1620 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1621 cxa_unthrown, eh_in_flight; reorder.
1622
1623 * testsuite/libitm.c++/c++.exp: New.
1624 * testsuite/libitm.c++/eh-1.C: New.
1625
1626 * aatree.c (aa_free): Remove REGPARM.
1627 * aatree.h: Remove all REGPARM.
1628
16292009-07-18 Richard Henderson <rth@redhat.com>
1630
1631 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1632 * Makefile.am (libitm_la_SOURCES): Add them.
1633 * Makefile.in: Rebuild.
1634 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1635 (GTM_trycommit_transaction): Likewise.
1636 * libitm.h: Include aatree.h
1637 (struct gtm_alloc_action): New.
1638 (struct gtm_transaction): Add alloc_actions.
1639 (GTM_record_allocation, GTM_forget_allocation): Declare.
1640 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1641 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1642 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1643 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1644 _ZGTtdaPvRKSt9nothrow_t): Export.
1645
16462009-07-18 Richard Henderson <rth@redhat.com>
1647
1648 * target_tls.h: Move ...
1649 * config/posix/target_tls.h: ... here.
1650
16512009-07-07 Richard Henderson <rth@redhat.com>
1652
1653 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1654
16552009-07-07 Richard Henderson <rth@redhat.com>
1656
1657 * Update to GPL3.
1658
16592009-07-07 Richard Henderson <rth@redhat.com>
1660
1661 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1662 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1663
1664 * configure.tgt: Don't use -ftls-model for x86 linux.
1665 * libitm.h: Include target.h after standard includes.
1666 (_gtm_thr): Rename from gtm_thr.
1667 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1668 (gtm_disp, set_gtm_disp): New.
1669 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1670 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1671 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1672
16732009-07-07 Richard Henderson <rth@redhat.com>
1674
1675 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1676
16772009-07-06 Richard Henderson <rth@redhat.com>
1678
1679 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1680 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1681 (_ITM_beginTransaction): Take variadic arguments.
1682 (_ITM_registerThrownObject): Declare.
1683 * beginend.c, serial.c: Update.
1684 * libitm.map: Add _ITM_registerThrownObject.
1685
16862009-01-28 Richard Henderson <rth@redhat.com>
1687
1688 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1689 * Makefile.in: Rebuild.
1690 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1691 (GTM_restart_transaction): Fix uninstrumented code check.
1692 * retry.c (GTM_decide_retry_strategy): Add serial check.
1693 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1694 automatically go irrevokable when in serial mode.
1695 * clone.c: New file.
1696 * libitm.h, libitm.map: Update.
1697
16982009-01-27 Richard Henderson <rth@redhat.com>
1699
1700 * Makefile.am (LTCCASCOMPILE): Define.
1701 (libitm_la_SOURCES): Add methid-wbetl.c.
1702 * testsuite/Makefile.am: New
1703 * configure.ac: Add testsuite/Makefile.
1704 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1705 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1706 (_ITM_abortTransaction): Finalize implementation method; pass
1707 transaction properties to longjmp.
1708 (GTM_restart_transaction): Split out from ...
1709 (_ITM_commitTransaction): ... here.
1710 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1711 Move to config/x86/target.h.
1712 * config/linux/alpha/futex_bits.h: New.
1713 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1714 * config/x86/target.h: Disable target types for 32-bit.
1715 * config/alpha/sjlj.S, config/alpha/target.h: New.
1716 * libitm.h (struct gtm_dispatch): Add init, fini.
1717 (enum restart_reason): New.
1718 (struct gtm_transaction): Add method and restarts.
1719 * retry.c (GTM_decide_retry_strategy): Implement.
1720 * serial.c (serial_init, serial_fini): New.
1721 (GTM_serialmode): Finialize outgoing method.
1722 * method-wbetl.c: New.
1723
17242008-12-09 Richard Henderson <rth@redhat.com>
1725
1726 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1727 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1728 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1729 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1730 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1731 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1732 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1733 * serial.c (serial_R##T, serial_W##T): Likewise.
1734
17352008-11-21 Richard Henderson <rth@redhat.com>
1736
1737 * Initial commit.