]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
[Patch docs obvious AArch64] Fix position of -moverride documentation
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
ea023bcf
UB
12015-05-27 Uros Bizjak <ubizjak@gmail.com>
2
d778b5a0
UB
3 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
4 operands "op" and "val" to int.
5
62015-05-27 Uros Bizjak <ubizjak@gmail.com>
7
8 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
9 "op" and "val" to int.
10
112015-05-27 Uros Bizjak <ubizjak@gmail.com>
12
13 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
14 "op" and "val" to int.
15
162015-05-27 Uros Bizjak <ubizjak@gmail.com>
17
18 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
19 Declare as static int.
20 (FUTEX_PRIVATE_FLAG): Remove L suffix.
21 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
22
232015-05-27 Uros Bizjak <ubizjak@gmail.com>
24
25 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
26 sys_futex0 function.
ea023bcf 27
503902f9
MH
282015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29
30 * Makefile.in: Regenerated with automake-1.11.6.
31 * aclocal.m4: Likewise.
32 * configure: Likewise.
33 * testsuite/Makefile.in: Likewise.
34
96ce40cb
GR
352015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
36
37 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
38 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
39
3a07b160
L
402015-01-15 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR libitm/64360
43 * libitm.c/stackundo.c (test2): Make it static.
44 (test1): Likewise.
45
5624e564
JJ
462015-01-05 Jakub Jelinek <jakub@redhat.com>
47
48 Update copyright years.
49
b67cd4e3
JJ
502015-01-05 Jakub Jelinek <jakub@redhat.com>
51
52 * libitm.texi: Bump @copying's copyright year.
53
69aef6dc
KT
542014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55
56 * testsuite/lib/libitm.exp: Load target-utils.exp.
57 Move load of target-supports.exp earlier.
58
68bc9270
UB
592014-12-03 Uros Bizjak <ubizjak@gmail.com>
60
61 * configure.tgt (x86_64): Tune -m32 multilib to generic.
62
a699d672
L
632014-11-21 H.J. Lu <hongjiu.lu@intel.com>
64
65 PR bootstrap/63784
66 * configure: Regenerated.
67
ebf6d33b
FXC
682014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
69
70 PR target/63610
71 * configure: Regenerate.
72
99183741
MP
732014-10-06 Marek Polacek <polacek@redhat.com>
74
75 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
76 * testsuite/libitm.c/memset-1.c: Likewise.
77
b6334cf4
RH
782014-07-24 Richard Henderson <rth@redhat.com>
79
80 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
81 addressing mode in epilogue.
82
3c698bf0
RO
832014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
84
85 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
86 -mclear-hwcap instead.
87 * configure: Regenerate.
88 * clearcap.map: Remove.
89
dbed5a9b
JM
902014-05-21 John Marino <gnugcc@marino.st>
91
92 * configure.tgt (*-*-dragonfly*): New target.
93
b17f08dd
RH
942014-05-19 Richard Henderson <rth@redhat.com>
95
96 * config/aarch64/sjlj.S: New file.
97 * config/aarch64/target.h: New file.
98 * configure.tgt: Enable aarch64.
99
5e1f630a
RO
1002014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101
102 * config/generic/asmcfi.h: Also check for
103 __GCC_HAVE_DWARF2_CFI_ASM.
104
84c2f4b0
RH
1052013-04-02 Richard Henderson <rth@redhat.com>
106
107 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
108 * config/arm/target.h, config/sh/target.h: Likewise.
109 * config/sparc/target.h, config/x86/target.h: Likewise.
110
7cc51d64
JJ
1112014-03-26 Jakub Jelinek <jakub@redhat.com>
112
113 * config/linux/futex_bits.h: Include errno.h.
114 (sys_futex0): If syscall returns -1, return -errno rather than
115 -1.
116
c288ec8f
JM
1172014-03-26 Joseph Myers <joseph@codesourcery.com>
118
119 * libitm.texi (Index): Rename to Library Index.
120
ed100f5d
L
1212014-01-13 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR libitm/53113
124 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
125 (x86_avx.lo): Append -mavx to CXXFLAGS.
126 * Makefile.in: Regenerate.
127
f93608e6
RS
1282014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
129
130 Update copyright years
131
98db73df
TB
1322014-01-02 Tobias Burnus <burnus@net-b.de>
133
134 * libitm.texi: Bump @copying's copyright year.
135
b54214fe
UW
1362013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
137
138 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
139 (FUNC): Define ELFv2 variant.
140 (END): Likewise.
141 (HIDDEN): Likewise.
142 (CALL): Likewise.
143 (BASE): Likewise.
144 (LR_SAVE): Likewise.
145
3cbe17f7
AM
1462013-09-20 Alan Modra <amodra@gmail.com>
147
148 * configure: Regenerate.
149
6fb471d8
TR
1502013-08-30 Torvald Riegel <triegel@redhat.com>
151
152 * config/posix/rwlock.cc: Fix initialization order.
153
bec9ec3f
TR
1542013-08-30 Torvald Riegel <triegel@redhat.com>
155
156 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
157 (htm_fastpath): Assign an asm name.
158 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
159 HTM fast paths.
160 (_ITM_actions): Likewise.
161 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
162 x86_64.
163 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
164 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
165 field to the start of the structure.
166 * config/linux/rwlock.h (gtm_rwlock): Update comments.
167 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
168 handling for custom HTM fast paths.
169
1869217f
AK
1702013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
171 Revert:
172 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
173
174 * configure.tgt: Add -msoft-float to XCFLAGS.
175
d62d5152
AK
1762013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
177
178 * configure.tgt: Add -msoft-float to XCFLAGS.
179
aaaffb2a
AK
1802013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
181
182 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
183 (htm_transaction_active): Enable zEC12 instructions in the
184 assembler.
185 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
186
167f68ed
AK
1872013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
188
189 * acinclude.m4: Add htm asm check for s390.
190 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
191 * configure: Regenerate.
192 * config/s390/target.h: Remove __HTM__ check.
193 (htm_available): Call getauxval to get hwcaps and check whether
194 HTM is available or not.
195
0258b6e4
PB
1962013-07-15 Peter Bergner <bergner@vnet.ibm.com>
197
198 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
199 * configure.ac: Use it.
200 (AC_CHECK_HEADERS): Check for sys/auxv.h.
201 (AC_CHECK_FUNCS): Check for getauxval.
202 * config.h.in, configure: Rebuild.
203 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
204 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
205 (USE_HTM_FASTPATH): Define.
206 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
207 _HTM_RETRIES) New macros.
208 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
209 htm_begin_success, htm_commit, htm_transaction_active): New functions.
210
5a3fe9b6
AK
2112013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
212
213 * config/s390/target.h: Include htmintrin.h.
214 (_HTM_ITM_RETRIES): New macro definition.
215 (htm_available, htm_init, htm_begin, htm_begin_success)
216 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
217
6c84d576
IS
2182013-06-20 Iain Sandoe <iain@codesourcery.com>
219 Cesar Philippidis <cesar@codesourcery.com>
220
221 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
222 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
223 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
224 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
225
480c696b
TR
2262013-06-20 Torvald Riegel <triegel@redhat.com>
227
228 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
229 (_ITM_getTransactionId): Same.
230 * config/x86/target.h (htm_transaction_active): New.
231
b1db457b
TR
2322013-06-20 Torvald Riegel <triegel@redhat.com>
233
234 PR libitm/57643
235 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
236 the HTM fastpath.
237
51249377
GP
2382013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
239
240 PR bootstrap/56714
241 * local_atomic (__always_inline): Always define our version.
242 (__calculate_memory_order): Mark inline.
243 (atomic_thread_fence): Ditto.
244 (atomic_signal_fence): Ditto.
245 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
246 (atomic_bool::atomic_flag_clear_explicit): Ditto.
247 (atomic_bool::atomic_flag_test_and_set): Ditto.
248 (atomic_bool::atomic_flag_clear): Ditto.
249
f818478b
JJ
2502013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
251
252 * config/s390/sjlj.S: New file.
253 * config/s390/target.h: New file.
254 * configure.tgt: Set options for S/390.
255
ab4425be
AK
2562013-03-23 Andi Kleen <ak@linux.intel.com>
257
258 * local_atomic (__always_inline): Add.
259 (__calculate_memory_order, atomic_thread_fence,
260 atomic_signal_fence, test_and_set, clear, store, load,
261 exchange, compare_exchange_weak, compare_exchange_strong,
262 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
263 Add __always_inline to force inlining.
264
6c59ffd1
IS
2652013-02-11 Iain Sandoe <iain@codesourcery.com>
266 Jack Howarth <howarth@bromo.med.uc.edu>
267 Patrick Marlier <patrick.marlier@gmail.com>
268
269 PR libitm/55693
270 * alloc_cpp.cc: Enable function declarations on darwin.
271 * eh_cpp.cc: Likewise.
272
75f9527c
RS
2732013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
274
275 Update copyright years.
276
64fbcc74
TR
2772012-11-09 Torvald Riegel <triegel@redhat.com>
278
279 * beginend.cc (htm_fastpath): New.
280 (gtm_thread::begin_transaction, _ITM_commitTransaction,
281 _ITM_commitTransactionEH): Add HTM fastpath handling.
282 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
283 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
284 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
285 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
286 * configure.tgt: Add -mrtm to XCFLAGS.
287 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
288 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
289 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
290 * retry.cc (parse_default_method): Add HTM method parsing.
291 (gtm_thread::number_of_threads_changed): Use HTM by default if
292 available.
293
b9efc877
TS
2942012-11-04 Thomas Schwinge <thomas@codesourcery.com>
295
296 * configure: Regenerate.
297
07d3b5c8
RH
2982012-10-31 Richard Henderson <rth@redhat.com>
299
300 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
301 * configure.ac: Use it.
302 * config.h.in, configure: Rebuild.
303 * testsuite/Makefile.in: Rebuild.
304
eb00e959
TR
3052012-10-24 Torvald Riegel <triegel@redhat.com>
306
307 * libitm.texi: Clarify ABI requirements for data-logging functions.
308
b679c813
TR
3092012-10-24 Torvald Riegel <triegel@redhat.com>
310
311 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
312 it requires serial mode instead of assuming that for certain
313 dispatchs.
314 * dispatch.h (abi_dispatch::requires_serial): New.
315 (abi_dispatch::abi_dispatch): Adapt.
316 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
317 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
318 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
319 serial_dispatch::serial_dispatch,
320 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
321
0c609a21
UB
3222012-10-02 Uros Bizjak <ubizjak@gmail.com>
323
324 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
325 and ia32 declarations some more.
326 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
327
c0758df9
JJ
3282012-09-20 Jakub Jelinek <jakub@redhat.com>
329
330 PR other/43620
331 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
332 * configure: Regenerate.
333 * Makefile.in: Regenerate.
334
690c45b8
DE
3352012-09-14 David Edelsohn <dje.gcc@gmail.com>
336
337 * configure: Regenerated.
338
68a12ef3
UB
3392012-07-31 Uros Bizjak <ubizjak@gmail.com>
340
341 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
342
f2f9a097
PM
3432012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
344
345 * eh_cpp.cc: Fix __cxa_end_catch declaration.
346
e6d5f8c9
L
3472012-05-16 H.J. Lu <hongjiu.lu@intel.com>
348
349 * configure: Regenerated.
350
0100e3b3
L
3512012-04-04 H.J. Lu <hongjiu.lu@intel.com>
352
353 PR libitm/52854
354 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
355 for x86-64.
356
2f6935f4
TG
3572012-04-03 Tristan Gingold <gingold@adacore.com>
358
359 * configure: Regenerate.
360
b9c23a61
L
3612012-03-31 H.J. Lu <hongjiu.lu@intel.com>
362
363 PR bootstrap/52812
364 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
365
6a26a74d
BRF
3662012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
367
368 * testsuite/lib/libitm.exp: load fortran-modules.exp
369
b24513a1
RO
3702012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
371
372 * configure.tgt (*-*-irix6*): Remove.
373
0d23faac
TR
3742012-03-13 Torvald Riegel <triegel@redhat.com>
375
376 PR libitm/52526
377 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
378 wake-up.
379
5c30094f
RO
3802012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * configure.tgt (*-*-osf*): Remove.
383 * configure: Regenerate.
384
d28b0b08
TR
3852012-03-05 Torvald Riegel <triegel@redhat.com>
386
387 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
388 memtransfer/memset if size isn't larger than zero.
389
034209bc
TR
3902012-03-02 Torvald Riegel <triegel@redhat.com>
391
392 * libitm.texi: Link to specification and add a usage example.
393
bc8da6ba
TR
3942012-02-24 Torvald Riegel <triegel@redhat.com>
395
396 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
397 default dispatch for more than 1 thread to ml_wt.
398
63b08143
TR
3992012-02-20 Torvald Riegel <triegel@redhat.com>
400
401 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
402
4c9bd6ac
TR
4032012-02-20 Torvald Riegel <triegel@redhat.com>
404
405 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
406
651ff415
TR
4072012-02-20 Torvald Riegel <triegel@redhat.com>
408
409 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
410 serial mode corner cases made obsolete by prior gtm_rwlock changes.
411 (gl_wt_dispatch.rollback): Same.
412
efee0113
TR
4132012-02-20 Torvald Riegel <triegel@redhat.com>
414
415 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
416
33a03827
TR
4172012-02-20 Torvald Riegel <triegel@redhat.com>
418
419 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
420 for RfW src. Optimize number of calls to gtm_thr.
421
a19db3f2
TR
4222012-02-20 Torvald Riegel <triegel@redhat.com>
423
424 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
425 acquisition to ...
426 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
427 (default_dispatch): Make atomic.
428 (GTM::gtm_thread::set_default_dispatch): Access atomically.
429 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
430 use decide_begin_dispatch() if default_dispatch might have changed.
431 (GTM::gtm_thread::number_of_threads_changed): Initialize
432 default_dispatch here.
433
e948a1fb
IS
4342012-02-15 Iain Sandoe <iains@gcc.gnu.org>
435 Patrick Marlier <patrick.marlier@gmail.com>
436
437 PR libitm/52220
438 * alloc_cpp.cc: No dummy definitions for darwin.
439 * eh_cpp.cc: Likewise.
440
72824d5e
RH
4412012-02-14 Richard Henderson <rth@redhat.com>
442
443 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
444
1f319dba
UB
4452012-02-14 Uros Bizjak <ubizjak@gmail.com>
446
447 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
448
31772c95
TR
4492012-02-14 Torvald Riegel <triegel@redhat.com>
450
451 * libitm_i.h (GTM::gtm_rwlog_entry): New.
452 (GTM::gtm_thread): Add read and write logs.
453 (GTM::dispatch_ml_wt): Declare.
454 * retry.cc (parse_default_method): Support ml_wt.
455 * method-ml.cc: New file.
456 * Makefile.am: Add method-ml.cc.
457 * Makefile.in: Regenerate.
458
5b9cf5d2
TR
4592012-02-14 Torvald Riegel <triegel@redhat.com>
460
461 * dispatch.h (GTM::abi_dispatch::supports): New.
462 (GTM::method_group::reinit): New.
463 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
464 (GTM::gtm_thread::number_of_threads_changed): Check that the method
465 supports the current situation.
466
7d33bcb7
TR
4672012-02-14 Torvald Riegel <triegel@redhat.com>
468
469 * util.cc (GTM::xcalloc): New.
470 * common.h (GTM::xcalloc): Declare.
471
62513f7b
EB
4722012-02-14 Eric Botcazou <ebotcazou@adacore.com>
473
474 * config/sparc/target.h (cpu_relax): Read from CC register.
475 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
476
4772012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
478
479 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
480
f3f5e3c3
EB
4812012-02-13 Eric Botcazou <ebotcazou@adacore.com>
482
62513f7b 483 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
484 * config/sparc/cacheline.h: New file.
485 * config/sparc/target.h: Likewise.
486 * config/sparc/sjlj.S: Likewise.
487 * config/linux/sparc/futex_bits.h: Likewise.
488
4892012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
490
491 * configure.ac (link_itm): Fix comment.
492 * configure: Regenerate.
493 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
494
681355e3
RO
4952012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
496
fc985d2f 497 PR libitm/51822
62513f7b 498 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
499 Correct libgomp references.
500
999bcff5
TR
5012012-01-24 Torvald Riegel <triegel@redhat.com>
502
503 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
504 wake-up.
505
9848887a
UB
5062012-01-24 Uros Bizjak <ubizjak@gmail.com>
507
508 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
509 end of structure.
510 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
511 offset values. Do not copy return address. Decrement stack
512 by 56 bytes only.
513 (GTM_longjump) [__x86_64__]: Update offset values.
514
5752c591
UB
5152012-01-23 Uros Bizjak <ubizjak@gmail.com>
516
517 PR libitm/51830
518 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
519 the first function argument to %eax.
520
61e72ca4
RO
5212012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
522
523 * libitm.h (_ITM_getThreadnum): Remove.
524 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
525
9ce91011
RO
5262012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
527
528 * clearcap.map: New file.
529 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
530 * configure.ac: Call it.
531 Clear HWCAP_LDFLAGS if defaulting to -mavx.
532 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
533 * configure: Regenerate.
534 * Makefile.in: Regenerate.
535 * testsuite/Makefile.in: Regenerate.
536
3b4f05ec
RO
5372012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
538
539 PR libitm/51173
540 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
541 include, exclude options.
542
aab74ee9
TR
5432012-01-14 Torvald Riegel <triegel@redhat.com>
544
545 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
546 rolling back.
547 * containers.h (GTM::vector::set_size): New.
548
07b6642b
TR
5492012-01-14 Torvald Riegel <triegel@redhat.com>
550
551 PR libitm/51855
552 * config/generic/tls.h (GTM::mask_stack_top): New.
553 (GTM::mask_stack_bottom): Declare.
554 * config/generic/tls.c (GTM::mask_stack_bottom): New.
555 * local.cc (gtm_undolog::rollback): Filter out any updates that
556 overlap the libitm stack. Add current transaction as parameter.
557 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
558 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
559 * testsuite/libitm.c/stackundo.c: New test.
560
8377e5e5
RH
5612012-01-10 Richard Henderson <rth@redhat.com>
562
563 * libitm_i.h (_Unwind_DeleteException): Declare weak.
564 * eh_cpp.cc (_Unwind_DeleteException): Define for
565 !HAVE_ELF_STYLE_WEAKREF.
566
11f30bb0
TR
5672012-01-08 Torvald Riegel <triegel@redhat.com>
568
569 * local.cc (GTM_LB): Use GTM::gtm_undolog.
570 (GTM::gtm_thread::drop_references_undolog): Remove.
571 (GTM::gtm_thread::commit_undolog,
572 GTM::gtm_thread::rollback_undolog): Move to ...
573 * libitm_i.h (GTM::gtm_undolog): ...here. New.
574 (GTM::gtm_undolog_entry): Remove.
575 (GTM::gtm_thread): Adapt.
576 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
577 (GTM::gtm_thread::trycommit): Adapt.
578 * method-serial.cc (serial_dispatch::log): Adapt.
579 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
580 (gl_wt_dispatch::store): Fix likely/unlikely.
581 * containers.h (GTM::vector::resize): Add additional_capacity
582 parameter and handle it.
583 (GTM::vector::resize_noinline): New/adapt.
584 (GTM::vector::push): New.
585
a32e5e93
RH
5862012-01-06 Richard Henderson <rth@redhat.com>
587
588 * configure.tgt: Support powerpc-linux and powerpc-darwin.
589 * config/linux/powerpc/futex_bits.h: New file.
590 * config/powerpc/cacheline.h: New file.
591 * config/powerpc/sjlj.S: New file.
592 * config/powerpc/target.h: New file.
593 * config/generic/asmcfi.h (cfi_offset): New.
594 (cfi_restore, cfi_undefined): New.
595
1f53a8e6
AH
5962012-01-05 Aldy Hernandez <aldyh@redhat.com>
597
598 PR other/51171
599 * testsuite/libitm.c/reentrant.c: Remove xfail.
600 (thread): Pass x to pure().
be223aaf 601 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 602
c898f7b8
TR
6032011-12-24 Torvald Riegel <triegel@redhat.com>
604
605 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
606 privatization safety if already in serial mode.
607
610e3901
TR
6082011-12-24 Torvald Riegel <triegel@redhat.com>
609
610 * beginend.cc (GTM::gtm_thread::restart): Add and handle
611 finish_serial_upgrade parameter.
612 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
613 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
614 Don't unset reader flag.
615 (GTM::gtm_rwlock::write_upgrade_finish): New.
616 * config/posix/rwlock.cc: Same.
617 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
618 Declare.
619 * config/posix/rwlock.h: Same.
620 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
621 flag after commit or after rollback when restarting.
622
799142bf
TR
6232011-12-24 Torvald Riegel <triegel@redhat.com>
624
625 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
626 (GTM::gtm_thread::try_commit): Changed memory order.
627 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
628 as parameter.
629 * config/linux/x86/futex_bits.h (sys_futex0): Same.
630 * config/linux/sh/futex_bits.h (sys_futex0): Same.
631 * config/linux/futex_bits.h (sys_futex0): Same.
632 * config/linux/futex.cc (futex_wait, futex_wake): Same.
633 * config/linux/futex.h (futex_wait, futex_wake): Same.
634 * config/linux/rwlock.h (gtm_rwlock::writers,
635 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
636 ints.
637 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
638 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
639 gtm_rwlock::write_unlock): Fix memory orders and fences.
640 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
641 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
642 gtm_rwlock::write_unlock): Same.
643 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
644 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
645 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
646 Add comments.
647 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
648 gl_wt_dispatch::load, gl_wt_dispatch::store,
649 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
650 orders and fences. Add comments.
651
b0f96e35
JJ
6522011-12-21 Jakub Jelinek <jakub@redhat.com>
653
654 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
655 * Makefile.in: Regenerated.
656
cc163247
KK
6572011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
658
659 * configure.tgt: Add sh* case.
660 * config/sh/target.h: New file.
661 * config/sh/sjlj.S: New file.
662 * config/linux/sh/futex_bits.h: New file.
663
aebac0ca
RH
6642011-12-14 Richard Henderson <rth@redhat.com>
665
666 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
667 * config/arm/sjlj.S, config/arm/target.h: New files.
668 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
669 (cfi_rel_offset): New.
670 * config/linux/futex_bits.h: New file.
671 * config/linux/futex.cc: Include futex_bits.h here...
672 * config/linux/futex.h: ... not here.
673 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
674 * configure.ac (ARCH_AM): New conditional.
675 * Makefile.in, configure: Rebuild.
676 * configure.tgt: Handle ARM.
677
36cfbee1
RH
6782011-12-13 Richard Henderson <rth@redhat.com>
679
5d9d05d3
RH
680 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
681 signed/unsigned comparison werror.
682
36cfbee1
RH
683 * local_atomic: New file.
684 * libitm_i.h: Include it.
685 (gtm_thread::shared_state): Use atomic template.
686 * beginend.cc (GTM::gtm_clock): Use atomic template.
687 (global_tid): Use atomic template if 64-bit atomics available.
688 (gtm_thread::gtm_thread): Update shared_state access.
689 (gtm_thread::trycommit): Likewise.
690 (choose_code_path): Update global_tid access.
691 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
692 * stmlock.h (GTM::gtm_clock): Use atomic template.
693 (gtm_get_clock, gtm_inc_clock): Update accesses.
694 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
695 redundant __sync_synchronize after atomic shared_state access.
696 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
697 (gtm_rwlock::write_lock_generic): Likewise.
698 (gtm_rwlock::read_unlock): Likewise.
699 * config/alpha/target.h (atomic_read_barrier): Remove.
700 (atomic_write_barrier): Remove.
701 * config/x86/target.h (atomic_read_barrier): Remove.
702 (atomic_write_barrier): Remove.
703
062f93f2
RH
7042011-11-30 Richard Henderson <rth@redhat.com>
705
706 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
707 * beginend.c (_ITM_abortTransaction): Update to match.
708 (GTM::gtm_thread::restart): Likewise.
709 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
710 * config/x86/sjlj.S (GTM_longjmp): Likewise.
711
bd8aaa86
IS
7122011-11-23 Iain Sandoe <iains@gcc.gnu.org>
713
714 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
715 * Makefile.in: Regenerate.
716
8cf36bb3
IS
7172011-11-22 Iain Sandoe <iains@gcc.gnu.org>
718
719 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
720 * alloc_cpp.cc: Generate dummy functions if we don't
721 HAVE_ELF_STYLE_WEAKREF.
722 * eh_cpp.cc: Likewise.
723 * configure: Regenerate.
724 * aclocal.m4: Likewise.
725 * config.h.in: Likewise.
726 * Makefile.in: Likewise.
727 * testsuite/Makefile.in: Likewise.
728
0b41ebef
IS
7292011-11-22 Iain Sandoe <iains@gcc.gnu.org>
730
731 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
732 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 733 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
734 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
735 in portability to non-elf targets.
8cf36bb3 736 (GTM_longjmp): Likewise.
0b41ebef
IS
737 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
738 where required.
739
9c9d352a
IS
7402011-11-22 Iain Sandoe <iains@gcc.gnu.org>
741
742 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
743 * testsuite/libitm.c/memset-1.c: Likewise.
744
c6084f68
AT
7452011-11-21 Andreas Tobler <andreast@fgznet.ch>
746
747 * configure: Regenerate.
748
adcd36bc
RO
7492011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
750
751 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
752 (LIBITM_ENABLE_SYMVERS): Handle sun style.
753 * Makefile.am: Handle sun style versioning.
754 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
755 * configure: Regenerate.
756 * Makefile.in: Regenerate.
757
59659b59
RO
7582011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
759
760 * config/generic/asmcfi.h: Fix comment.
761 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
762 sequence without .hidden support, error for non-ELF targets.
763 (GTM_longjmp) [__ELF__]: Only use .hidden if
764 HAVE_ATTRIBUTE_VISIBILITY.
765
d846e425
RO
7662011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767
768 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
769 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
770 Dummy functions.
771 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
772 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
773
80713347
UB
7742011-11-16 Uros Bizjak <ubizjak@gmail.com>
775
776 PR bootstrap/51098
777 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
778 * configure: Regenerate.
779
2841f85e
L
7802011-11-14 H.J. Lu <hongjiu.lu@intel.com>
781
782 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
783
8851b429
RO
7842011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
785
786 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
787 .hidden.
788 (.note.GNU-stack): Only use if __linux__.
789 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
790 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
791 * testsuite/libitm.c/reentrant.c: Likewise.
792 * testsuite/libitm.c/simple-2.c: Likewise.
793 * testsuite/libitm.c/txrelease.c: Likewise.
794 * testsuite/libitm.c++/static_ctor.C: Likewise.
795
d4b17902
RH
7962011-11-10 Richard Henderson <rth@redhat.com>
797
798 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
799 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
800 * configure.ac (ARCH_X86_AVX): New conditional.
801 * Makefile.in, configure: Rebuild.
802
430616e7
RH
8032011-11-09 Richard Henderson <rth@redhat.com>
804
805 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
806 * configure.ac: Use it.
807 * config.h.in, configure: Rebuild.
808 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
809
79b1edb6
RH
8102011-11-09 Richard Henderson <rth@redhat.com>
811
812 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
813 * config/alpha/unaligned.h: Remove file.
814 * config/generic/unaligned.h: Remove file.
815 * config/x86/unaligned.h: Remove file.
816 * config/generic/cachepage.h: Remove file.
817 * config/posix/cachepage.cc: Remove file.
818 * config/generic/cacheline.cc: Remove file.
819 * config/x86/cacheline.cc: Remove file.
820 * config/generic/cacheline.h (gtm_cacheline): Remove the
821 store_mask, copy_mask, copy_mask_wb methods.
822 * config/x86/cacheline.h: Likewise.
823 * config/alpha/cacheline.h: Fall back to generic after setting size.
824 * config/generic/tls.cc (gtm_mask_stack): Remove.
825 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
826 (GTM_vpalignr_table): Remove.
827 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
828 (GTM_pshift_table): Remove.
829 * config/libitm_i.h: Don't include cachepage.h.
830 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
831 * Makefile.in, testsuite/Makefile.in: Rebuild.
832
4bdd090f
RH
8332011-11-09 Richard Henderson <rth@redhat.com>
834
8ee9fac2
RH
835 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
836 to emit branch prediction hint.
837
9bdc6343
RH
838 * config/x86/sjlj.S: Protect elf directives with __ELF__.
839 Protect .note.GNU-stack with __linux__.
840
4bdd090f
RH
841 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
842 * configure, aclocal.m4, config.h.in: Rebuild.
843 * config/generic/asmcfi.h: New file.
844 * config/x86/sjlj.S: Use it.
845
4408b086
RH
8462011-11-08 Richard Henderson <rth@redhat.com>
847
848 * local.cc (_ITM_LB): Use a normal call, not a function alias.
849
01f3428c
RH
8502011-11-08 Richard Henderson <rth@redhat.com>
851
3d3b05ff
RH
852 * configure.tgt: Test correct directory for supported cpus.
853
01f3428c
RH
854 * configure.ac: Exit if unsupported.
855 * configure: Rebuild.
856 * configure.tgt: Delete boilerplate from libgomp for unsupported
857 targets. Set UNSUPPORTED for unsupported targets.
858
07f03cd3
RO
8592011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
860
861 * configure.tgt: Handle i386 like i[456]86.
862 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
863 take address.
864 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
865 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
866
0a35513e
AH
8672011-11-05 Aldy Hernandez <aldyh@redhat.com>
868
869 * method-wbetl.cc: Update copyright notice.
870 * aatree.cc: Same.
871 * util.cc: Same.
872 * libitm.h: Same.
873 * memset.cc: Same.
874 * eh_cpp.cc: Same.
875 * barrier.tpl: Same.
876 * useraction.cc: Same.
877 * stmlock.h: Same.
878 * memcpy.cc: Same.
879 * common.h: Same.
880 * config/generic/tls.cc: Same.
881 * config/generic/cacheline.h: Same.
882 * config/generic/cachepage.h: Same.
883 * config/generic/cacheline.cc: Same.
884 * config/generic/unaligned.h: Same.
885 * config/x86/cacheline.h: Same.
886 * config/x86/cacheline.cc: Same.
887 * config/x86/unaligned.h: Same.
888 * config/alpha/cacheline.h: Same.
889 * config/alpha/unaligned.h: Same.
890 * config/alpha/sjlj.S: Same.
891 * config/posix/cachepage.cc: Same.
892 * config/linux/futex.h: Same.
893 * config/linux/alpha/futex_bits.h: Same.
894
8952011-11-04 Torvald Riegel <triegel@redhat.com>
896
897 * libitm.texi: No cover text and invariant sections.
898
8992011-11-03 Richard Henderson <rth@redhat.com>
900
901 * local_type_traits: New file.
902 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
903
9042011-11-03 Richard Henderson <rth@redhat.com>
905
906 * configure.ac: Don't test for gfortran.
907 * configure: Rebuild.
908
909 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
910 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
911
9122011-11-03 Aldy Hernandez <aldyh@redhat.com>
913
914 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
915 * testsuite/libitm.c/memset-1.c: Same.
916 * testsuite/libitm.c/c.exp: Same.
917 * testsuite/lib/libitm-dg.exp: Same.
918 * testsuite/lib/libitm.exp: Same.
919 * testsuite/libitm.c++/c++.exp: Same.
920
9212011-11-03 Aldy Hernandez <aldyh@redhat.com>
922
923 * testsuite/config/default.exp: Update copyright date.
924 * configure.ac: Add copyright info.
925 * configure.tgt: Same.
926
9272011-11-03 Aldy Hernandez <aldyh@redhat.com>
928
929 * testsuite/libitm.c/reentrant.c: XFAIL.
930 * testsuite/libitm.c++/static_ctor.C: XFAIL.
931
9322011-10-29 Torvald Riegel <triegel@redhat.com>
933
934 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
935 handle aborts.
936 (_ITM_abortTransaction): Handle aborts of outer transactions.
937 * libitm_i.h: Same.
938 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
939 * libitm.texi: Document aborts of outer transactions.
940 * testsuite/libitm.c/cancel.c: New file.
941
9422011-10-19 Torvald Riegel <triegel@redhat.com>
943
944 * testsuite/*: Change __transaction to __transaction_atomic or
945 __transaction_relaxed.
946
9472011-10-19 Torvald Riegel <triegel@redhat.com>
948
949 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
950 (gtm_thr): Same.
951
9522011-10-19 Torvald Riegel <triegel@redhat.com>
953
954 * libitm_i.h: Add gl_wt dispatch.
955 * retry.cc (parse_default_method): Same.
956 * method-gl.cc: New file.
957 * Makefile.am: Use method-gl.cc.
958 * Makefile.in: Rebuild.
959
9602011-10-19 Torvald Riegel <triegel@redhat.com>
961
962 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
963 safety if requested by a TM method.
964 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
965 privatization safety.
966 * method-serial.cc: Same.
967
9682011-10-19 Torvald Riegel <triegel@redhat.com>
969
970 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
971 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
972 undolog-related member functions from *_local to *_undolog.
973 * local.cc (gtm_thread::commit_undolog): Same.
974 * beginend.cc (GTM::gtm_thread::trycommit): Same.
975 (GTM::gtm_thread::rollback): Roll back undolog before
976 dispatch-specific rollback.
977
9782011-10-19 Torvald Riegel <triegel@redhat.com>
979
980 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
981 re-initialization of the current method group.
982 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
983
9842011-10-19 Torvald Riegel <triegel@redhat.com>
985
986 * alloc.cc (commit_allocations_2): Do not free transaction-local
987 memory when committing a nested transaction.
988
9892011-10-19 Torvald Riegel <triegel@redhat.com>
990
991 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
992 serial-irrevocable dispatch, not serial.
993
9942011-10-19 Torvald Riegel <triegel@redhat.com>
995
996 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
997 declarations.
998 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
999 * method-serial.cc: Implement begin_or_restart().
1000 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1001 dispatch-specific begin_or_restart().
1002 (GTM::gtm_thread::restart): Same.
1003
10042011-08-23 Torvald Riegel <triegel@redhat.com>
1005
1006 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1007 restarting without switching to serial mode.
1008 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1009 transaction state. Choose closed-nesting alternative if available.
1010 (GTM::gtm_thread::set_default_dispatch): New.
1011 (parse_default_method): New.
1012 (GTM::gtm_thread::number_of_threads_changed): New.
1013 * method-serial.cc (GTM::serial_mg): New method group class.
1014 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1015 fini.
1016 (GTM::serial_dispatch): Same.
1017 (GTM::serialirr_onwrite_dispatch): Same.
1018 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1019 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1020 registered threads.
1021 (GTM::gtm_thread::gtm_thread): Same.
1022 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1023 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1024 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1025 choose dispatch but set state according to dispatch here.
1026 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1027 (GTM::method_group): New class.
1028 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1029 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1030 * libitm.texi: Document TM methods, method groups, method life cycle.
1031 Rename method sets to method groups.
1032
10332011-08-23 Torvald Riegel <triegel@redhat.com>
1034
1035 * config/x86/tls.h: Moved to ...
1036 * config/linux/x86/tls.h: ... here.
1037
10382011-08-23 Torvald Riegel <triegel@redhat.com>
1039
1040 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1041 Add X32 support.
1042 * config/x86/sjlj.S: Same.
1043
10442011-08-19 Torvald Riegel <triegel@redhat.com>
1045
1046 * config/linux/rwlock.h: New file.
1047 * config/linux/rwlock.c: New file.
1048 * configure.ac: Reenable futex support (undo SVN rev 157758).
1049 * Makefile.am: Same.
1050 * configure.tgt: Same.
1051 * config/linux/alpha/futex_bits.h: Same.
1052 * config/linux/futex.h: Same. Return number of woken processes.
1053 * config/linux/futex.cc: Same.
1054 (futex_wait): Remove spinning.
1055 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1056 Use __x86_64__ instead of __LP64__.
1057 * aclocal.m4: Include generic futex checks.
1058 * configure: Rebuild.
1059 * Makefile.in: Rebuild.
1060 * testsuite/Makefile.in: Rebuild.
1061 * beginend.cc: Include pthread.h.
1062 * config/posix/cachepage.cc: Same.
1063
10642011-08-12 Torvald Riegel <triegel@redhat.com>
1065
1066 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1067 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1068 (set_gtm_thr): New.
1069 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1070 (set_gtm_thr): New.
1071 (GTM::gtm_thread::thread_num): Removed.
1072 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1073 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1074 tx-to-thread renaming.
1075 * beginend.cc: Adapted to tx-to-thread renaming.
1076 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1077 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1078 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1079 gtm_transaction to gtm_thread.
1080 (_ITM_getThreadnum): Removed. Not supported anymore.
1081 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1082 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1083 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1084 gtm_tx-to-gtm_thr renaming if necessary.
1085 * eh_cpp.cc: Same.
1086 * local.cc: Same.
1087 * retry.cc: Same.
1088 * clone.cc: Same.
1089 * alloc.cc: Same.
1090 * alloc_c.cc: Same.
1091 * alloc_cpp.cc: Same.
1092 * method-serial.cc: Same.
1093 * config/generic/tls.cc: Same.
1094 * config/posix/rwlock.h (gtm_rwlock): Same.
1095 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1096
10972011-08-12 Torvald Riegel <triegel@redhat.com>
1098
1099 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1100 implementation.
1101 (gtm_rwlock::read_unlock): Same.
1102 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1103 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1104 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1105 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1106 w_upgrade. Replaced by per-transaction flags (in shared_state).
1107 Added c_confirmed_writers.
1108 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1109 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1110 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1111 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1112 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1113 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1114 * libitm.texi: Document locking conventions and implementations in
1115 libitm.
1116
11172011-08-12 Torvald Riegel <triegel@redhat.com>
1118
1119 * libitm_i.h (next_tx): Add list of all threads' transaction.
1120 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1121 transaction with list of transactions and ...
1122 (thread_exit_handler): ... deregister here.
1123 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1124 * config/x86/target.h: Same.
1125
11262011-08-12 Torvald Riegel <triegel@redhat.com>
1127
1128 * testsuite/libitm.c++/static_ctor.C: New file.
1129
11302011-08-12 Torvald Riegel <triegel@redhat.com>
1131
1132 * testsuite/libitm.c/reentrant.c: New file.
1133
11342011-08-12 Torvald Riegel <triegel@redhat.com>
1135
1136 * config/generic/tls.h: Remove the free list for transactions and ...
1137 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1138 (GTM::gtm_transaction::operator delete): ... and release here.
1139 (thread_exit_handler): New. Delete tx when thread terminates.
1140 (thread_exit_init): New.
1141 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1142 * testsuite/libitm.c/txrelease.c: New file.
1143
11442011-08-12 Torvald Riegel <triegel@redhat.com>
1145
1146 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1147 * testsuite/libitm.c/notx.c: New file.
1148
11492011-08-12 Torvald Riegel <triegel@redhat.com>
1150
1151 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1152 * libitm_i.h (local_tid): ... to here.
1153 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1154 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1155
11562011-08-12 Torvald Riegel <triegel@redhat.com>
1157
1158 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1159 serialirr_onwrite_dispatch as new default for now.
1160 * method-serial.cc (serialirr_onwrite_dispatch): New.
1161 (GTM::dispatch_serialirr_onwrite): New.
1162 * libitm_i.h: Same.
1163
11642011-08-12 Torvald Riegel <triegel@redhat.com>
1165
1166 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1167 * query.cc (_ITM_getTransactionId): There is no active transaction if
1168 the current nesting level is zero.
1169
11702011-07-28 Torvald Riegel <triegel@redhat.com>
1171
1172 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1173 rollback.
1174
11752011-07-28 Torvald Riegel <triegel@redhat.com>
1176
1177 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1178 transaction properties from the caller instead of from the
1179 transaction object.
1180 * libitm_i.h: Same.
1181 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1182
11832011-07-28 Torvald Riegel <triegel@redhat.com>
1184
1185 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1186 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1187 * dispatch.h: Same.
1188 * method-serial.cc: Same.
1189 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1190 flat nesting as default, and closed nesting on demand.
1191 (GTM::gtm_transaction::rollback): Same.
1192 (_ITM_abortTransaction): Same.
1193 (GTM::gtm_transaction::restart): Same.
1194 (GTM::gtm_transaction::trycommit): Same.
1195 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1196 (choose_code_path): New.
1197 (GTM::gtm_transaction_cp::save): New.
1198 (GTM::gtm_transaction_cp::commit): New.
1199 * query.cc (_ITM_inTransaction): Support flat nesting.
1200 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1201 (GTM::gtm_transaction): Support flat and closed nesting.
1202 * alloc.cc (commit_allocations_2): New.
1203 (commit_cb_data): New helper struct.
1204 (GTM::gtm_transaction::commit_allocations): Handle nested
1205 commits/rollbacks.
1206 * libitm.texi: Update user action section, add description of nesting.
1207
12082011-07-28 Torvald Riegel <triegel@redhat.com>
1209
1210 * libitm_i.h: Add closed nesting as restart reason.
1211 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1212
12132011-07-28 Torvald Riegel <triegel@redhat.com>
1214
1215 * useraction.cc: Use vector instead of list to store actions.
1216 Also support partial rollbacks for closed nesting.
1217 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1218 * beginend.cc: Same.
1219
12202011-07-28 Torvald Riegel <triegel@redhat.com>
1221
1222 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1223 closed_nesting flags, as well as a closed nesting alternative.
1224 * method-serial.cc: Same.
1225 (serial_dispatch): Renamed to serialirr_dispatch.
1226 (GTM::dispatch_serialirr): Same.
1227 (serial_dispatch_ul): Renamed to serial_dispatch.
1228 (GTM::dispatch_serial): Same.
1229
12302011-07-28 Torvald Riegel <triegel@redhat.com>
1231
1232 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1233
12342011-07-28 Torvald Riegel <triegel@redhat.com>
1235
1236 * aatree.h (aa_tree::remove): New.
1237 (aa_tree::operator new): Add placement new.
1238
12392011-07-02 Torvald Riegel <triegel@redhat.com>
1240
1241 * containers.h: New file.
1242 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1243 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1244 * common.h: ... to here.
1245 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1246 * local.cc: Same.
1247
12482011-06-30 Torvald Riegel <triegel@redhat.com>
1249
1250 * libitm_i.h (STATE_ABORTING): Remove.
1251 * beginend.cc (_ITM_abortTransaction): Same.
1252 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1253 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1254 (_ITM_rollbackTransaction): Remove.
1255 * beginend.cc: Same.
1256 * libitm.map: Same.
1257 * libitm.texi: Document these ABI changes.
1258
12592011-06-30 Torvald Riegel <triegel@redhat.com>
1260
1261 * libitm.texi: New file.
1262 * Makefile.am: Add libitm.texi.
1263 * Makefile.in: Rebuild.
1264
12652011-06-30 Torvald Riegel <triegel@redhat.com>
1266
1267 * libitm_i.h: Move parts to common.h and dispatch.h.
1268 * common.h: New file.
1269 * dispatch.h: New file, new dispatch class.
1270 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1271 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1272 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1273 decision to retry.cc.
1274 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1275 only.
1276 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1277 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1278 logging.
1279 * barrier.cc: Use new barriers definitions.
1280 (abi_dispatch::memmove_overlap_check): New.
1281 * config/x86/x86_sse.cc: Same.
1282 * config/x86/x86_avx.cc: Same.
1283 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1284 memcpy.cc.
1285 * Makefile.in: Rebuild.
1286 * method-readonly.cc: Remove.
1287 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1288 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1289
12902011-06-30 Torvald Riegel <triegel@redhat.com>
1291
1292 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1293 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1294 * testsuite/libitm.c/dropref-2.c: Same.
1295 * testsuite/libitm.c/dropref.c: Same.
1296
12972011-06-30 Torvald Riegel <triegel@redhat.com>
1298
1299 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1300 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1301 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1302 * alloc_c.cc: Same.
1303 * barrier.tpl: Same.
1304 * beginend.c: Same.
1305 * config/generic/tls.h: Same.
1306 * config/x86/tls.h: Same.
1307 * libitm_i.h: Same.
1308 * memcpy.cc: Same.
1309 * memset.cc: Same.
1310 * method-readonly.cc: Same.
1311 * method-serial.cc: Same.
1312 * method-wbetl.cc: Same.
1313 * retry.cc: Same.
1314
13152011-03-03 Richard Henderson <rth@redhat.com>
1316
1317 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1318 From Patrik Marlier <patrick.marlier@unine.ch>.
1319
13202011-02-03 Richard Henderson <rth@redhat.com>
1321
1322 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1323 * configure.ac: Use it.
1324 * configure, config.h.in: Rebuild.
1325 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1326 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1327 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1328 * libitm.map: Use wildcards to match size_t mangling.
1329
13302010-12-14 Richard Henderson <rth@redhat.com>
1331
1332 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1333 blocks of TIDs per thread.
1334 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1335 (setup_gtm_thr): Return the thread structure.
1336 * config/x86/tls.h (setup_gtm_thr): Likewise.
1337
13382010-12-14 Richard Henderson <rth@redhat.com>
1339
1340 * clone.cc (table_lock): Remove.
1341 (find_clone): Don't take it.
1342 (ExcludeTransaction): New helper class.
1343 (_ITM_registerTMCloneTable): Use it.
1344 (_ITM_deregisterTMCloneTable): Likewise.
1345
13462010-12-14 Richard Henderson <rth@redhat.com>
1347
1348 * config/x86/tls.h: New file.
1349
13502010-07-15 Richard Henderson <rth@redhat.com>
1351
1352 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1353 * Makefile.in: Rebuild.
1354
13552010-07-13 Aldy Hernandez <aldyh@redhat.com>
1356
1357 * method-wbetl.cc (trydropreference): Fix source line.
1358
13592010-07-13 Aldy Hernandez <aldyh@redhat.com>
1360
1361 * libitm.h: Add comment.
1362 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1363
13642010-07-07 Aldy Hernandez <aldyh@redhat.com>
1365
1366 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1367 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1368 available, use pthread mutexes.
1369 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1370 * config.h.in: Regenerate.
1371 * configure: Regenerate.
1372
13732010-07-06 Aldy Hernandez <aldyh@redhat.com>
1374
1375 * libitm.h (ITM_PURE): Define.
1376 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1377
13782010-06-28 Aldy Hernandez <aldyh@redhat.com>
1379
1380 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1381 (validate): Add comment.
1382 (trydropreference): New.
1383 * method-readonly.cc (class readonly_dispatch): Add
1384 trydropreference.
1385 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1386 Call trydropreference().
1387 * libitm.h (_ITM_dropReferences): Remove const attribute.
1388 * method-serial.cc (class serial_dispatch): Add trydropreference.
1389 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1390
13912010-06-28 Aldy Hernandez <aldyh@redhat.com>
1392
1393 * memcpy.cc (do_memcpy): Comment.
1394
13952010-06-25 Aldy Hernandez <aldyh@redhat.com>
1396
1397 * barrier.tpl: Add comments throughout.
1398
13992010-06-24 Aldy Hernandez <aldyh@redhat.com>
1400
1401 * method-wbetl.cc (struct w_entry): Add comments.
1402 (trycommit): Same.
1403 (rollback): Same.
1404
14052010-06-24 Aldy Hernandez <aldyh@redhat.com>
1406
1407 * alloc_c.cc (_ITM_dropReferences): New.
1408 * libitm.map (_ITM_dropReferences): Add.
1409 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1410 * libitm_i.h (struct gtm_transaction): Declare
1411 drop_references_allocations and drop_references_local.
1412 * local.cc (rollback_local): Ignore memory when applicable.
1413 (drop_references_local): New.
1414
14152010-06-23 Richard Henderson <rth@redhat.com>
1416
1417 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1418 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1419 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1420 * config/alpha/target.h: Likewise.
1421 * config/generic/tls.cc (gtm_mask_stack): Use it.
1422
14232010-06-23 Richard Henderson <rth@redhat.com>
1424
1425 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1426 a mutex instead of trying a lock-free compare-and-swap on the list.
1427 (gtm_cacheline_page::operator delete): Likewise.
1428
14292010-06-16 Richard Henderson <rth@redhat.com>
1430
1431 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1432 that overlap the libitm stack.
1433 * barrier.tpl: Mark incoming stack.
1434 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1435 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1436 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1437 * memcpy.cc, memset.cc: Likewise.
1438 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1439 * config/generic/tls.h (gtm_thread): Add stack_top member.
1440 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1441 * libitm_i.h (gtm_mask_stack): Declare.
1442 * config/generic/tls.cc: New file.
1443 * Makefile.am (libitm_la_SOURCES): Add it.
1444 (AM_CXXFLAGS): Turn off exceptions.
1445 * Makefile.in: Rebuild.
1446
14472010-06-16 Richard Henderson <rth@redhat.com>
1448
1449 * alloc.cc (struct gtm_alloc_action): Move definition ...
1450 * libitm_i.h: ... here.
1451 (class gtm_transaction): Declare new and delete.
1452 * beginend.cc (alloc_tx): Reformulate as operator new.
1453 (free_tx): Reformulate as operator delete.
1454 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1455
14562010-06-11 Richard Henderson <rth@redhat.com>
1457
1458 * clone.cc (clone_entry_compare): Fix typo.
1459 From Patrik Marlier <patrick.marlier@unine.ch>.
1460
14612010-05-13 Richard Henderson <rth@redhat.com>
1462
1463 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1464 in extern "C".
1465
14662010-05-07 Aldy Hernandez <aldyh@redhat.com>
1467
1468 * libitm_i.h (struct gtm_transaction): Remove
1469 get_allocation_size.
1470 (record_allocation): Remove size parameter.
1471 * libitm.map (_ITM_realloc): Remove.
1472 * alloc_c.cc (_ITM_realloc): Remove.
1473 (_ITM_malloc): Remove size argument to record_allocation.
1474 (_ITM_calloc): Same.
1475 * alloc_cpp.cc (_ZGTtnwm): Same.
1476 (_ZGTtnwmRKSt9nothrow_t): Same.
1477 (_ZGTtnam): Same.
1478 (_ZGTtnamRKSt9nothrow_t): Same.
1479 * alloc.cc (struct gtm_alloc_action): Remove size.
1480 (get_allocation_size): Remove.
1481 (commit_allocations): Add comment.
1482 (record_allocation): Remove size parameter.
1483 (forget_allocation): Remove set of size.
1484
14852010-04-19 Aldy Hernandez <aldyh@redhat.com>
1486
1487 * Makefile.am (abi_version): New.
1488 (AM_CXXFLAGS): Pass abi_version.
1489 * Makefile.in: Regenerate.
1490 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1491
14922010-04-06 Aldy Hernandez <aldyh@redhat.com>
1493
1494 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1495 _ITM_getTMCloneOrIrrevokable.
1496 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1497 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1498
14992010-03-26 Aldy Hernandez <aldyh@redhat.com>
1500
1501 * configure.ac: Remove Linux futex support.
1502 * configure.tgt (config_path): Same.
1503 * Makefile.am: Same.
1504 * config/linux: Remove entire directory.
1505 * configure: Rebuild.
1506 * Makefile.in: Rebuild.
1507 * testsuite/Makefile.in: Rebuild.
1508
15092010-03-09 Aldy Hernandez <aldyh@redhat.com>
1510
1511 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1512 switching to serial mode.
1513 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1514
15152010-03-03 Aldy Hernandez <aldyh@redhat.com>
1516
1517 * configure.tgt: Add emacs -*- tags.
1518 * barrier.tpl: Same.
1519
15202010-02-23 Aldy Hernandez <aldyh@redhat.com>
1521
1522 * Makefile.am: Rename serial.cc to method-serial.cc.
1523 * Makefile.in: Regenerate with automake 1.11.1.
1524 * testsuite/Makefile.in: Same.
1525 * aclocal.m4: Regenerate with aclocal 1.11.1.
1526 * method-serial.cc: Rename from serial.cc.
1527 * libitm_i.h (struct gtm_transaction): Update comment on
1528 serialirr_mode.
1529
15302010-02-22 Aldy Hernandez <aldyh@redhat.com>
1531
1532 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1533 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1534
15352010-02-11 Aldy Hernandez <aldyh@redhat.com>
1536
1537 * configure: Rebuild.
1538
15392009-11-12 Richard Henderson <rth@redhat.com>
1540
1541 * Rewrite everything in C++.
1542
15432009-11-03 Richard Henderson <rth@redhat.com>
1544
1545 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1546 * Makefile.am (libitm_la_SOURCES): Add them.
1547 * configure.ac (ARCH_X86): New conditional.
1548 * Makefile.in, configure: Rebuild.
1549 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1550 Move futex setup into "other system configury" case.
1551 * local.c (rollback_local): Merge into ...
1552 (GTM_rollback_local): ... here.
1553 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1554 (_ITM_LB): Define as an alias to GTM_LB.
1555
15562009-11-03 Richard Henderson <rth@redhat.com>
1557
1558 * method-readonly.c: New file.
1559 * Makefile.am (libitm_la_SOURCES): Add it.
1560 * Makefile.in: Rebuild.
1561 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1562 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1563 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1564 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1565 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1566 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1567 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1568 gtm_get_clock, gtm_inc_clock): New.
1569 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1570 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1571 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1572 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1573 replace uses with new libitm_i.h symbols.
1574 (dispatch_wbetl): Rename from wbetl_dispatch.
1575 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1576 away from dispatch_readonly; abort if the beginTransaction call
1577 asserted that the transaction was readonly.
1578
15792009-11-03 Richard Henderson <rth@redhat.com>
1580
1581 * memset.c: New file.
1582 * Makefile.am (libitm_la_SOURCES): Add it.
1583 * Makefile.in: Rebuild.
1584 * testsuite/libitm.c/memset-1.c: New.
1585
15862009-11-03 Richard Henderson <rth@redhat.com>
1587
1588 * dispatch.c: Remove file.
1589 * useraction.c (struct gtm_user_action): Move from libitm.h.
1590 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1591 (serial_memset, serial_memmove, serial_memcpy): Remove.
1592 (serial_W*, serial_R*): Remove.
1593 (serial_dispatch): Update to match.
1594 * configure.ac: Move Werror down below configure checks. Don't
1595 check for sys/loadavg.h, do check for malloc.h. Don't check for
1596 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1597 Use GCC_AC_FUNC_MMAP_BLACKLIST
1598 * libitm.h: Split out all internal items to...
1599 * libitm_i.h: ... here. New file.
1600 * copymask.c: New file.
1601 * local.c (struct gtm_local_undo): Move from libitm.h.
1602 (GTM_alloc_local): Rename from alloc_local; export.
1603 * memcpy.c: New file.
1604 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1605 * config/posix/page.c: New file.
1606 * config/posix/target_tls.h: Remove file.
1607 * barrier.c: New file.
1608 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1609 copymask.c, page.c.
1610 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1611 * method-wbetl.c: Rewrite for new cacheline methods.
1612 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1613
1614 * config/alpha/sjlj.S: Fix typo.
1615 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1616 * config/alpha/copymask.c: New file.
1617 * config/alpha/target.h (CACHELINE_SIZE): New.
1618 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1619
1620 * config/x86/target_i.h: Copy functions from x86/target.h.
1621 * config/x86/copymask.c: New file.
1622 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1623 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1624 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1625 * config/x86/target_tls.h: Move contents to target_i.h.
1626
1627 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1628 * testsuite/libitm.c/memcpy-1.c: New.
1629
16302009-10-22 Richard Henderson <rth@redhat.com>
1631
1632 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1633 (AM_CCASFLAGS): New.
1634 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1635 saving/restoring _AC_ARG_VAR_PRECIOUS.
1636 * Makefile.in, aclocal.m4, config.h.in, configure,
1637 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1638
16392009-10-22 Richard Henderson <rth@redhat.com>
1640
1641 * testsuite/*: Update for new compiler syntax.
1642
16432009-10-21 Richard Henderson <rth@redhat.com>
1644
1645 * libitm.h (_ITM_abortReason): Add outerAbort.
1646
16472009-08-03 Richard Henderson <rth@redhat.com>
1648
1649 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1650 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1651 * method-wbetl.c (struct w_entry): Remove mask.
1652 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1653 adjust all callers.
1654
16552009-07-22 Richard Henderson <rth@redhat.com>
1656
1657 * eh_cpp.c: New file.
1658 * Makefile.am (libitm_la_SOURCES): Add it.
1659 * Makefile.in: Rebuild.
1660 * beginend.c (GTM_rollback_transaction): Undo exception state.
1661 (GTM_trycommit_transaction): Mark inline.
1662 (GTM_trycommit_and_finalize_transaction): Split out from ...
1663 (_ITM_commitTransaction): ... here.
1664 (_ITM_commitTransactionEH): New function.
1665 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1666 cxa_unthrown, eh_in_flight; reorder.
1667
1668 * testsuite/libitm.c++/c++.exp: New.
1669 * testsuite/libitm.c++/eh-1.C: New.
1670
1671 * aatree.c (aa_free): Remove REGPARM.
1672 * aatree.h: Remove all REGPARM.
1673
16742009-07-18 Richard Henderson <rth@redhat.com>
1675
1676 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1677 * Makefile.am (libitm_la_SOURCES): Add them.
1678 * Makefile.in: Rebuild.
1679 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1680 (GTM_trycommit_transaction): Likewise.
1681 * libitm.h: Include aatree.h
1682 (struct gtm_alloc_action): New.
1683 (struct gtm_transaction): Add alloc_actions.
1684 (GTM_record_allocation, GTM_forget_allocation): Declare.
1685 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1686 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1687 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1688 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1689 _ZGTtdaPvRKSt9nothrow_t): Export.
1690
16912009-07-18 Richard Henderson <rth@redhat.com>
1692
1693 * target_tls.h: Move ...
1694 * config/posix/target_tls.h: ... here.
1695
16962009-07-07 Richard Henderson <rth@redhat.com>
1697
1698 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1699
17002009-07-07 Richard Henderson <rth@redhat.com>
1701
1702 * Update to GPL3.
1703
17042009-07-07 Richard Henderson <rth@redhat.com>
1705
1706 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1707 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1708
1709 * configure.tgt: Don't use -ftls-model for x86 linux.
1710 * libitm.h: Include target.h after standard includes.
1711 (_gtm_thr): Rename from gtm_thr.
1712 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1713 (gtm_disp, set_gtm_disp): New.
1714 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1715 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1716 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1717
17182009-07-07 Richard Henderson <rth@redhat.com>
1719
1720 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1721
17222009-07-06 Richard Henderson <rth@redhat.com>
1723
1724 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1725 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1726 (_ITM_beginTransaction): Take variadic arguments.
1727 (_ITM_registerThrownObject): Declare.
1728 * beginend.c, serial.c: Update.
1729 * libitm.map: Add _ITM_registerThrownObject.
1730
17312009-01-28 Richard Henderson <rth@redhat.com>
1732
1733 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1734 * Makefile.in: Rebuild.
1735 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1736 (GTM_restart_transaction): Fix uninstrumented code check.
1737 * retry.c (GTM_decide_retry_strategy): Add serial check.
1738 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1739 automatically go irrevokable when in serial mode.
1740 * clone.c: New file.
1741 * libitm.h, libitm.map: Update.
1742
17432009-01-27 Richard Henderson <rth@redhat.com>
1744
1745 * Makefile.am (LTCCASCOMPILE): Define.
1746 (libitm_la_SOURCES): Add methid-wbetl.c.
1747 * testsuite/Makefile.am: New
1748 * configure.ac: Add testsuite/Makefile.
1749 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1750 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1751 (_ITM_abortTransaction): Finalize implementation method; pass
1752 transaction properties to longjmp.
1753 (GTM_restart_transaction): Split out from ...
1754 (_ITM_commitTransaction): ... here.
1755 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1756 Move to config/x86/target.h.
1757 * config/linux/alpha/futex_bits.h: New.
1758 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1759 * config/x86/target.h: Disable target types for 32-bit.
1760 * config/alpha/sjlj.S, config/alpha/target.h: New.
1761 * libitm.h (struct gtm_dispatch): Add init, fini.
1762 (enum restart_reason): New.
1763 (struct gtm_transaction): Add method and restarts.
1764 * retry.c (GTM_decide_retry_strategy): Implement.
1765 * serial.c (serial_init, serial_fini): New.
1766 (GTM_serialmode): Finialize outgoing method.
1767 * method-wbetl.c: New.
1768
17692008-12-09 Richard Henderson <rth@redhat.com>
1770
1771 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1772 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1773 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1774 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1775 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1776 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1777 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1778 * serial.c (serial_R##T, serial_W##T): Likewise.
1779
17802008-11-21 Richard Henderson <rth@redhat.com>
1781
1782 * Initial commit.