]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR libstdc++/65352 (array<T,0>::begin()/end() etc. forms a null reference and...
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
ea023bcf
UB
12015-05-27 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/linux/x86/futex_bits.h (sys_futex0) [!__x86_64__]:
4 Change operand "op" to long.
5 [__PIC__]: Remove sys_futex0 function.
6
503902f9
MH
72015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8
9 * Makefile.in: Regenerated with automake-1.11.6.
10 * aclocal.m4: Likewise.
11 * configure: Likewise.
12 * testsuite/Makefile.in: Likewise.
13
96ce40cb
GR
142015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15
16 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
17 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
18
3a07b160
L
192015-01-15 H.J. Lu <hongjiu.lu@intel.com>
20
21 PR libitm/64360
22 * libitm.c/stackundo.c (test2): Make it static.
23 (test1): Likewise.
24
5624e564
JJ
252015-01-05 Jakub Jelinek <jakub@redhat.com>
26
27 Update copyright years.
28
b67cd4e3
JJ
292015-01-05 Jakub Jelinek <jakub@redhat.com>
30
31 * libitm.texi: Bump @copying's copyright year.
32
69aef6dc
KT
332014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34
35 * testsuite/lib/libitm.exp: Load target-utils.exp.
36 Move load of target-supports.exp earlier.
37
68bc9270
UB
382014-12-03 Uros Bizjak <ubizjak@gmail.com>
39
40 * configure.tgt (x86_64): Tune -m32 multilib to generic.
41
a699d672
L
422014-11-21 H.J. Lu <hongjiu.lu@intel.com>
43
44 PR bootstrap/63784
45 * configure: Regenerated.
46
ebf6d33b
FXC
472014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
48
49 PR target/63610
50 * configure: Regenerate.
51
99183741
MP
522014-10-06 Marek Polacek <polacek@redhat.com>
53
54 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
55 * testsuite/libitm.c/memset-1.c: Likewise.
56
b6334cf4
RH
572014-07-24 Richard Henderson <rth@redhat.com>
58
59 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
60 addressing mode in epilogue.
61
3c698bf0
RO
622014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63
64 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
65 -mclear-hwcap instead.
66 * configure: Regenerate.
67 * clearcap.map: Remove.
68
dbed5a9b
JM
692014-05-21 John Marino <gnugcc@marino.st>
70
71 * configure.tgt (*-*-dragonfly*): New target.
72
b17f08dd
RH
732014-05-19 Richard Henderson <rth@redhat.com>
74
75 * config/aarch64/sjlj.S: New file.
76 * config/aarch64/target.h: New file.
77 * configure.tgt: Enable aarch64.
78
5e1f630a
RO
792014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
80
81 * config/generic/asmcfi.h: Also check for
82 __GCC_HAVE_DWARF2_CFI_ASM.
83
84c2f4b0
RH
842013-04-02 Richard Henderson <rth@redhat.com>
85
86 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
87 * config/arm/target.h, config/sh/target.h: Likewise.
88 * config/sparc/target.h, config/x86/target.h: Likewise.
89
7cc51d64
JJ
902014-03-26 Jakub Jelinek <jakub@redhat.com>
91
92 * config/linux/futex_bits.h: Include errno.h.
93 (sys_futex0): If syscall returns -1, return -errno rather than
94 -1.
95
c288ec8f
JM
962014-03-26 Joseph Myers <joseph@codesourcery.com>
97
98 * libitm.texi (Index): Rename to Library Index.
99
ed100f5d
L
1002014-01-13 H.J. Lu <hongjiu.lu@intel.com>
101
102 PR libitm/53113
103 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
104 (x86_avx.lo): Append -mavx to CXXFLAGS.
105 * Makefile.in: Regenerate.
106
f93608e6
RS
1072014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
108
109 Update copyright years
110
98db73df
TB
1112014-01-02 Tobias Burnus <burnus@net-b.de>
112
113 * libitm.texi: Bump @copying's copyright year.
114
b54214fe
UW
1152013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
116
117 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
118 (FUNC): Define ELFv2 variant.
119 (END): Likewise.
120 (HIDDEN): Likewise.
121 (CALL): Likewise.
122 (BASE): Likewise.
123 (LR_SAVE): Likewise.
124
3cbe17f7
AM
1252013-09-20 Alan Modra <amodra@gmail.com>
126
127 * configure: Regenerate.
128
6fb471d8
TR
1292013-08-30 Torvald Riegel <triegel@redhat.com>
130
131 * config/posix/rwlock.cc: Fix initialization order.
132
bec9ec3f
TR
1332013-08-30 Torvald Riegel <triegel@redhat.com>
134
135 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
136 (htm_fastpath): Assign an asm name.
137 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
138 HTM fast paths.
139 (_ITM_actions): Likewise.
140 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
141 x86_64.
142 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
143 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
144 field to the start of the structure.
145 * config/linux/rwlock.h (gtm_rwlock): Update comments.
146 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
147 handling for custom HTM fast paths.
148
1869217f
AK
1492013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
150 Revert:
151 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
152
153 * configure.tgt: Add -msoft-float to XCFLAGS.
154
d62d5152
AK
1552013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
156
157 * configure.tgt: Add -msoft-float to XCFLAGS.
158
aaaffb2a
AK
1592013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
160
161 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
162 (htm_transaction_active): Enable zEC12 instructions in the
163 assembler.
164 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
165
167f68ed
AK
1662013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
167
168 * acinclude.m4: Add htm asm check for s390.
169 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
170 * configure: Regenerate.
171 * config/s390/target.h: Remove __HTM__ check.
172 (htm_available): Call getauxval to get hwcaps and check whether
173 HTM is available or not.
174
0258b6e4
PB
1752013-07-15 Peter Bergner <bergner@vnet.ibm.com>
176
177 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
178 * configure.ac: Use it.
179 (AC_CHECK_HEADERS): Check for sys/auxv.h.
180 (AC_CHECK_FUNCS): Check for getauxval.
181 * config.h.in, configure: Rebuild.
182 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
183 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
184 (USE_HTM_FASTPATH): Define.
185 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
186 _HTM_RETRIES) New macros.
187 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
188 htm_begin_success, htm_commit, htm_transaction_active): New functions.
189
5a3fe9b6
AK
1902013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
191
192 * config/s390/target.h: Include htmintrin.h.
193 (_HTM_ITM_RETRIES): New macro definition.
194 (htm_available, htm_init, htm_begin, htm_begin_success)
195 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
196
6c84d576
IS
1972013-06-20 Iain Sandoe <iain@codesourcery.com>
198 Cesar Philippidis <cesar@codesourcery.com>
199
200 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
201 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
202 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
203 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
204
480c696b
TR
2052013-06-20 Torvald Riegel <triegel@redhat.com>
206
207 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
208 (_ITM_getTransactionId): Same.
209 * config/x86/target.h (htm_transaction_active): New.
210
b1db457b
TR
2112013-06-20 Torvald Riegel <triegel@redhat.com>
212
213 PR libitm/57643
214 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
215 the HTM fastpath.
216
51249377
GP
2172013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
218
219 PR bootstrap/56714
220 * local_atomic (__always_inline): Always define our version.
221 (__calculate_memory_order): Mark inline.
222 (atomic_thread_fence): Ditto.
223 (atomic_signal_fence): Ditto.
224 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
225 (atomic_bool::atomic_flag_clear_explicit): Ditto.
226 (atomic_bool::atomic_flag_test_and_set): Ditto.
227 (atomic_bool::atomic_flag_clear): Ditto.
228
f818478b
JJ
2292013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
230
231 * config/s390/sjlj.S: New file.
232 * config/s390/target.h: New file.
233 * configure.tgt: Set options for S/390.
234
ab4425be
AK
2352013-03-23 Andi Kleen <ak@linux.intel.com>
236
237 * local_atomic (__always_inline): Add.
238 (__calculate_memory_order, atomic_thread_fence,
239 atomic_signal_fence, test_and_set, clear, store, load,
240 exchange, compare_exchange_weak, compare_exchange_strong,
241 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
242 Add __always_inline to force inlining.
243
6c59ffd1
IS
2442013-02-11 Iain Sandoe <iain@codesourcery.com>
245 Jack Howarth <howarth@bromo.med.uc.edu>
246 Patrick Marlier <patrick.marlier@gmail.com>
247
248 PR libitm/55693
249 * alloc_cpp.cc: Enable function declarations on darwin.
250 * eh_cpp.cc: Likewise.
251
75f9527c
RS
2522013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
253
254 Update copyright years.
255
64fbcc74
TR
2562012-11-09 Torvald Riegel <triegel@redhat.com>
257
258 * beginend.cc (htm_fastpath): New.
259 (gtm_thread::begin_transaction, _ITM_commitTransaction,
260 _ITM_commitTransactionEH): Add HTM fastpath handling.
261 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
262 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
263 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
264 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
265 * configure.tgt: Add -mrtm to XCFLAGS.
266 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
267 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
268 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
269 * retry.cc (parse_default_method): Add HTM method parsing.
270 (gtm_thread::number_of_threads_changed): Use HTM by default if
271 available.
272
b9efc877
TS
2732012-11-04 Thomas Schwinge <thomas@codesourcery.com>
274
275 * configure: Regenerate.
276
07d3b5c8
RH
2772012-10-31 Richard Henderson <rth@redhat.com>
278
279 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
280 * configure.ac: Use it.
281 * config.h.in, configure: Rebuild.
282 * testsuite/Makefile.in: Rebuild.
283
eb00e959
TR
2842012-10-24 Torvald Riegel <triegel@redhat.com>
285
286 * libitm.texi: Clarify ABI requirements for data-logging functions.
287
b679c813
TR
2882012-10-24 Torvald Riegel <triegel@redhat.com>
289
290 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
291 it requires serial mode instead of assuming that for certain
292 dispatchs.
293 * dispatch.h (abi_dispatch::requires_serial): New.
294 (abi_dispatch::abi_dispatch): Adapt.
295 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
296 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
297 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
298 serial_dispatch::serial_dispatch,
299 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
300
0c609a21
UB
3012012-10-02 Uros Bizjak <ubizjak@gmail.com>
302
303 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
304 and ia32 declarations some more.
305 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
306
c0758df9
JJ
3072012-09-20 Jakub Jelinek <jakub@redhat.com>
308
309 PR other/43620
310 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
311 * configure: Regenerate.
312 * Makefile.in: Regenerate.
313
690c45b8
DE
3142012-09-14 David Edelsohn <dje.gcc@gmail.com>
315
316 * configure: Regenerated.
317
68a12ef3
UB
3182012-07-31 Uros Bizjak <ubizjak@gmail.com>
319
320 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
321
f2f9a097
PM
3222012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
323
324 * eh_cpp.cc: Fix __cxa_end_catch declaration.
325
e6d5f8c9
L
3262012-05-16 H.J. Lu <hongjiu.lu@intel.com>
327
328 * configure: Regenerated.
329
0100e3b3
L
3302012-04-04 H.J. Lu <hongjiu.lu@intel.com>
331
332 PR libitm/52854
333 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
334 for x86-64.
335
2f6935f4
TG
3362012-04-03 Tristan Gingold <gingold@adacore.com>
337
338 * configure: Regenerate.
339
b9c23a61
L
3402012-03-31 H.J. Lu <hongjiu.lu@intel.com>
341
342 PR bootstrap/52812
343 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
344
6a26a74d
BRF
3452012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
346
347 * testsuite/lib/libitm.exp: load fortran-modules.exp
348
b24513a1
RO
3492012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350
351 * configure.tgt (*-*-irix6*): Remove.
352
0d23faac
TR
3532012-03-13 Torvald Riegel <triegel@redhat.com>
354
355 PR libitm/52526
356 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
357 wake-up.
358
5c30094f
RO
3592012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
360
361 * configure.tgt (*-*-osf*): Remove.
362 * configure: Regenerate.
363
d28b0b08
TR
3642012-03-05 Torvald Riegel <triegel@redhat.com>
365
366 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
367 memtransfer/memset if size isn't larger than zero.
368
034209bc
TR
3692012-03-02 Torvald Riegel <triegel@redhat.com>
370
371 * libitm.texi: Link to specification and add a usage example.
372
bc8da6ba
TR
3732012-02-24 Torvald Riegel <triegel@redhat.com>
374
375 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
376 default dispatch for more than 1 thread to ml_wt.
377
63b08143
TR
3782012-02-20 Torvald Riegel <triegel@redhat.com>
379
380 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
381
4c9bd6ac
TR
3822012-02-20 Torvald Riegel <triegel@redhat.com>
383
384 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
385
651ff415
TR
3862012-02-20 Torvald Riegel <triegel@redhat.com>
387
388 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
389 serial mode corner cases made obsolete by prior gtm_rwlock changes.
390 (gl_wt_dispatch.rollback): Same.
391
efee0113
TR
3922012-02-20 Torvald Riegel <triegel@redhat.com>
393
394 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
395
33a03827
TR
3962012-02-20 Torvald Riegel <triegel@redhat.com>
397
398 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
399 for RfW src. Optimize number of calls to gtm_thr.
400
a19db3f2
TR
4012012-02-20 Torvald Riegel <triegel@redhat.com>
402
403 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
404 acquisition to ...
405 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
406 (default_dispatch): Make atomic.
407 (GTM::gtm_thread::set_default_dispatch): Access atomically.
408 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
409 use decide_begin_dispatch() if default_dispatch might have changed.
410 (GTM::gtm_thread::number_of_threads_changed): Initialize
411 default_dispatch here.
412
e948a1fb
IS
4132012-02-15 Iain Sandoe <iains@gcc.gnu.org>
414 Patrick Marlier <patrick.marlier@gmail.com>
415
416 PR libitm/52220
417 * alloc_cpp.cc: No dummy definitions for darwin.
418 * eh_cpp.cc: Likewise.
419
72824d5e
RH
4202012-02-14 Richard Henderson <rth@redhat.com>
421
422 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
423
1f319dba
UB
4242012-02-14 Uros Bizjak <ubizjak@gmail.com>
425
426 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
427
31772c95
TR
4282012-02-14 Torvald Riegel <triegel@redhat.com>
429
430 * libitm_i.h (GTM::gtm_rwlog_entry): New.
431 (GTM::gtm_thread): Add read and write logs.
432 (GTM::dispatch_ml_wt): Declare.
433 * retry.cc (parse_default_method): Support ml_wt.
434 * method-ml.cc: New file.
435 * Makefile.am: Add method-ml.cc.
436 * Makefile.in: Regenerate.
437
5b9cf5d2
TR
4382012-02-14 Torvald Riegel <triegel@redhat.com>
439
440 * dispatch.h (GTM::abi_dispatch::supports): New.
441 (GTM::method_group::reinit): New.
442 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
443 (GTM::gtm_thread::number_of_threads_changed): Check that the method
444 supports the current situation.
445
7d33bcb7
TR
4462012-02-14 Torvald Riegel <triegel@redhat.com>
447
448 * util.cc (GTM::xcalloc): New.
449 * common.h (GTM::xcalloc): Declare.
450
62513f7b
EB
4512012-02-14 Eric Botcazou <ebotcazou@adacore.com>
452
453 * config/sparc/target.h (cpu_relax): Read from CC register.
454 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
455
4562012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
457
458 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
459
f3f5e3c3
EB
4602012-02-13 Eric Botcazou <ebotcazou@adacore.com>
461
62513f7b 462 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
463 * config/sparc/cacheline.h: New file.
464 * config/sparc/target.h: Likewise.
465 * config/sparc/sjlj.S: Likewise.
466 * config/linux/sparc/futex_bits.h: Likewise.
467
4682012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
469
470 * configure.ac (link_itm): Fix comment.
471 * configure: Regenerate.
472 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
473
681355e3
RO
4742012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
475
fc985d2f 476 PR libitm/51822
62513f7b 477 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
478 Correct libgomp references.
479
999bcff5
TR
4802012-01-24 Torvald Riegel <triegel@redhat.com>
481
482 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
483 wake-up.
484
9848887a
UB
4852012-01-24 Uros Bizjak <ubizjak@gmail.com>
486
487 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
488 end of structure.
489 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
490 offset values. Do not copy return address. Decrement stack
491 by 56 bytes only.
492 (GTM_longjump) [__x86_64__]: Update offset values.
493
5752c591
UB
4942012-01-23 Uros Bizjak <ubizjak@gmail.com>
495
496 PR libitm/51830
497 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
498 the first function argument to %eax.
499
61e72ca4
RO
5002012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
501
502 * libitm.h (_ITM_getThreadnum): Remove.
503 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
504
9ce91011
RO
5052012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
506
507 * clearcap.map: New file.
508 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
509 * configure.ac: Call it.
510 Clear HWCAP_LDFLAGS if defaulting to -mavx.
511 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
512 * configure: Regenerate.
513 * Makefile.in: Regenerate.
514 * testsuite/Makefile.in: Regenerate.
515
3b4f05ec
RO
5162012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
517
518 PR libitm/51173
519 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
520 include, exclude options.
521
aab74ee9
TR
5222012-01-14 Torvald Riegel <triegel@redhat.com>
523
524 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
525 rolling back.
526 * containers.h (GTM::vector::set_size): New.
527
07b6642b
TR
5282012-01-14 Torvald Riegel <triegel@redhat.com>
529
530 PR libitm/51855
531 * config/generic/tls.h (GTM::mask_stack_top): New.
532 (GTM::mask_stack_bottom): Declare.
533 * config/generic/tls.c (GTM::mask_stack_bottom): New.
534 * local.cc (gtm_undolog::rollback): Filter out any updates that
535 overlap the libitm stack. Add current transaction as parameter.
536 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
537 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
538 * testsuite/libitm.c/stackundo.c: New test.
539
8377e5e5
RH
5402012-01-10 Richard Henderson <rth@redhat.com>
541
542 * libitm_i.h (_Unwind_DeleteException): Declare weak.
543 * eh_cpp.cc (_Unwind_DeleteException): Define for
544 !HAVE_ELF_STYLE_WEAKREF.
545
11f30bb0
TR
5462012-01-08 Torvald Riegel <triegel@redhat.com>
547
548 * local.cc (GTM_LB): Use GTM::gtm_undolog.
549 (GTM::gtm_thread::drop_references_undolog): Remove.
550 (GTM::gtm_thread::commit_undolog,
551 GTM::gtm_thread::rollback_undolog): Move to ...
552 * libitm_i.h (GTM::gtm_undolog): ...here. New.
553 (GTM::gtm_undolog_entry): Remove.
554 (GTM::gtm_thread): Adapt.
555 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
556 (GTM::gtm_thread::trycommit): Adapt.
557 * method-serial.cc (serial_dispatch::log): Adapt.
558 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
559 (gl_wt_dispatch::store): Fix likely/unlikely.
560 * containers.h (GTM::vector::resize): Add additional_capacity
561 parameter and handle it.
562 (GTM::vector::resize_noinline): New/adapt.
563 (GTM::vector::push): New.
564
a32e5e93
RH
5652012-01-06 Richard Henderson <rth@redhat.com>
566
567 * configure.tgt: Support powerpc-linux and powerpc-darwin.
568 * config/linux/powerpc/futex_bits.h: New file.
569 * config/powerpc/cacheline.h: New file.
570 * config/powerpc/sjlj.S: New file.
571 * config/powerpc/target.h: New file.
572 * config/generic/asmcfi.h (cfi_offset): New.
573 (cfi_restore, cfi_undefined): New.
574
1f53a8e6
AH
5752012-01-05 Aldy Hernandez <aldyh@redhat.com>
576
577 PR other/51171
578 * testsuite/libitm.c/reentrant.c: Remove xfail.
579 (thread): Pass x to pure().
be223aaf 580 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 581
c898f7b8
TR
5822011-12-24 Torvald Riegel <triegel@redhat.com>
583
584 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
585 privatization safety if already in serial mode.
586
610e3901
TR
5872011-12-24 Torvald Riegel <triegel@redhat.com>
588
589 * beginend.cc (GTM::gtm_thread::restart): Add and handle
590 finish_serial_upgrade parameter.
591 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
592 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
593 Don't unset reader flag.
594 (GTM::gtm_rwlock::write_upgrade_finish): New.
595 * config/posix/rwlock.cc: Same.
596 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
597 Declare.
598 * config/posix/rwlock.h: Same.
599 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
600 flag after commit or after rollback when restarting.
601
799142bf
TR
6022011-12-24 Torvald Riegel <triegel@redhat.com>
603
604 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
605 (GTM::gtm_thread::try_commit): Changed memory order.
606 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
607 as parameter.
608 * config/linux/x86/futex_bits.h (sys_futex0): Same.
609 * config/linux/sh/futex_bits.h (sys_futex0): Same.
610 * config/linux/futex_bits.h (sys_futex0): Same.
611 * config/linux/futex.cc (futex_wait, futex_wake): Same.
612 * config/linux/futex.h (futex_wait, futex_wake): Same.
613 * config/linux/rwlock.h (gtm_rwlock::writers,
614 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
615 ints.
616 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
617 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
618 gtm_rwlock::write_unlock): Fix memory orders and fences.
619 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
620 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
621 gtm_rwlock::write_unlock): Same.
622 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
623 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
624 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
625 Add comments.
626 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
627 gl_wt_dispatch::load, gl_wt_dispatch::store,
628 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
629 orders and fences. Add comments.
630
b0f96e35
JJ
6312011-12-21 Jakub Jelinek <jakub@redhat.com>
632
633 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
634 * Makefile.in: Regenerated.
635
cc163247
KK
6362011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
637
638 * configure.tgt: Add sh* case.
639 * config/sh/target.h: New file.
640 * config/sh/sjlj.S: New file.
641 * config/linux/sh/futex_bits.h: New file.
642
aebac0ca
RH
6432011-12-14 Richard Henderson <rth@redhat.com>
644
645 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
646 * config/arm/sjlj.S, config/arm/target.h: New files.
647 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
648 (cfi_rel_offset): New.
649 * config/linux/futex_bits.h: New file.
650 * config/linux/futex.cc: Include futex_bits.h here...
651 * config/linux/futex.h: ... not here.
652 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
653 * configure.ac (ARCH_AM): New conditional.
654 * Makefile.in, configure: Rebuild.
655 * configure.tgt: Handle ARM.
656
36cfbee1
RH
6572011-12-13 Richard Henderson <rth@redhat.com>
658
5d9d05d3
RH
659 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
660 signed/unsigned comparison werror.
661
36cfbee1
RH
662 * local_atomic: New file.
663 * libitm_i.h: Include it.
664 (gtm_thread::shared_state): Use atomic template.
665 * beginend.cc (GTM::gtm_clock): Use atomic template.
666 (global_tid): Use atomic template if 64-bit atomics available.
667 (gtm_thread::gtm_thread): Update shared_state access.
668 (gtm_thread::trycommit): Likewise.
669 (choose_code_path): Update global_tid access.
670 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
671 * stmlock.h (GTM::gtm_clock): Use atomic template.
672 (gtm_get_clock, gtm_inc_clock): Update accesses.
673 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
674 redundant __sync_synchronize after atomic shared_state access.
675 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
676 (gtm_rwlock::write_lock_generic): Likewise.
677 (gtm_rwlock::read_unlock): Likewise.
678 * config/alpha/target.h (atomic_read_barrier): Remove.
679 (atomic_write_barrier): Remove.
680 * config/x86/target.h (atomic_read_barrier): Remove.
681 (atomic_write_barrier): Remove.
682
062f93f2
RH
6832011-11-30 Richard Henderson <rth@redhat.com>
684
685 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
686 * beginend.c (_ITM_abortTransaction): Update to match.
687 (GTM::gtm_thread::restart): Likewise.
688 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
689 * config/x86/sjlj.S (GTM_longjmp): Likewise.
690
bd8aaa86
IS
6912011-11-23 Iain Sandoe <iains@gcc.gnu.org>
692
693 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
694 * Makefile.in: Regenerate.
695
8cf36bb3
IS
6962011-11-22 Iain Sandoe <iains@gcc.gnu.org>
697
698 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
699 * alloc_cpp.cc: Generate dummy functions if we don't
700 HAVE_ELF_STYLE_WEAKREF.
701 * eh_cpp.cc: Likewise.
702 * configure: Regenerate.
703 * aclocal.m4: Likewise.
704 * config.h.in: Likewise.
705 * Makefile.in: Likewise.
706 * testsuite/Makefile.in: Likewise.
707
0b41ebef
IS
7082011-11-22 Iain Sandoe <iains@gcc.gnu.org>
709
710 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
711 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 712 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
713 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
714 in portability to non-elf targets.
8cf36bb3 715 (GTM_longjmp): Likewise.
0b41ebef
IS
716 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
717 where required.
718
9c9d352a
IS
7192011-11-22 Iain Sandoe <iains@gcc.gnu.org>
720
721 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
722 * testsuite/libitm.c/memset-1.c: Likewise.
723
c6084f68
AT
7242011-11-21 Andreas Tobler <andreast@fgznet.ch>
725
726 * configure: Regenerate.
727
adcd36bc
RO
7282011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
729
730 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
731 (LIBITM_ENABLE_SYMVERS): Handle sun style.
732 * Makefile.am: Handle sun style versioning.
733 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
734 * configure: Regenerate.
735 * Makefile.in: Regenerate.
736
59659b59
RO
7372011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
738
739 * config/generic/asmcfi.h: Fix comment.
740 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
741 sequence without .hidden support, error for non-ELF targets.
742 (GTM_longjmp) [__ELF__]: Only use .hidden if
743 HAVE_ATTRIBUTE_VISIBILITY.
744
d846e425
RO
7452011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
746
747 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
748 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
749 Dummy functions.
750 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
751 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
752
80713347
UB
7532011-11-16 Uros Bizjak <ubizjak@gmail.com>
754
755 PR bootstrap/51098
756 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
757 * configure: Regenerate.
758
2841f85e
L
7592011-11-14 H.J. Lu <hongjiu.lu@intel.com>
760
761 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
762
8851b429
RO
7632011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
764
765 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
766 .hidden.
767 (.note.GNU-stack): Only use if __linux__.
768 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
769 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
770 * testsuite/libitm.c/reentrant.c: Likewise.
771 * testsuite/libitm.c/simple-2.c: Likewise.
772 * testsuite/libitm.c/txrelease.c: Likewise.
773 * testsuite/libitm.c++/static_ctor.C: Likewise.
774
d4b17902
RH
7752011-11-10 Richard Henderson <rth@redhat.com>
776
777 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
778 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
779 * configure.ac (ARCH_X86_AVX): New conditional.
780 * Makefile.in, configure: Rebuild.
781
430616e7
RH
7822011-11-09 Richard Henderson <rth@redhat.com>
783
784 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
785 * configure.ac: Use it.
786 * config.h.in, configure: Rebuild.
787 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
788
79b1edb6
RH
7892011-11-09 Richard Henderson <rth@redhat.com>
790
791 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
792 * config/alpha/unaligned.h: Remove file.
793 * config/generic/unaligned.h: Remove file.
794 * config/x86/unaligned.h: Remove file.
795 * config/generic/cachepage.h: Remove file.
796 * config/posix/cachepage.cc: Remove file.
797 * config/generic/cacheline.cc: Remove file.
798 * config/x86/cacheline.cc: Remove file.
799 * config/generic/cacheline.h (gtm_cacheline): Remove the
800 store_mask, copy_mask, copy_mask_wb methods.
801 * config/x86/cacheline.h: Likewise.
802 * config/alpha/cacheline.h: Fall back to generic after setting size.
803 * config/generic/tls.cc (gtm_mask_stack): Remove.
804 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
805 (GTM_vpalignr_table): Remove.
806 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
807 (GTM_pshift_table): Remove.
808 * config/libitm_i.h: Don't include cachepage.h.
809 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
810 * Makefile.in, testsuite/Makefile.in: Rebuild.
811
4bdd090f
RH
8122011-11-09 Richard Henderson <rth@redhat.com>
813
8ee9fac2
RH
814 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
815 to emit branch prediction hint.
816
9bdc6343
RH
817 * config/x86/sjlj.S: Protect elf directives with __ELF__.
818 Protect .note.GNU-stack with __linux__.
819
4bdd090f
RH
820 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
821 * configure, aclocal.m4, config.h.in: Rebuild.
822 * config/generic/asmcfi.h: New file.
823 * config/x86/sjlj.S: Use it.
824
4408b086
RH
8252011-11-08 Richard Henderson <rth@redhat.com>
826
827 * local.cc (_ITM_LB): Use a normal call, not a function alias.
828
01f3428c
RH
8292011-11-08 Richard Henderson <rth@redhat.com>
830
3d3b05ff
RH
831 * configure.tgt: Test correct directory for supported cpus.
832
01f3428c
RH
833 * configure.ac: Exit if unsupported.
834 * configure: Rebuild.
835 * configure.tgt: Delete boilerplate from libgomp for unsupported
836 targets. Set UNSUPPORTED for unsupported targets.
837
07f03cd3
RO
8382011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
839
840 * configure.tgt: Handle i386 like i[456]86.
841 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
842 take address.
843 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
844 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
845
0a35513e
AH
8462011-11-05 Aldy Hernandez <aldyh@redhat.com>
847
848 * method-wbetl.cc: Update copyright notice.
849 * aatree.cc: Same.
850 * util.cc: Same.
851 * libitm.h: Same.
852 * memset.cc: Same.
853 * eh_cpp.cc: Same.
854 * barrier.tpl: Same.
855 * useraction.cc: Same.
856 * stmlock.h: Same.
857 * memcpy.cc: Same.
858 * common.h: Same.
859 * config/generic/tls.cc: Same.
860 * config/generic/cacheline.h: Same.
861 * config/generic/cachepage.h: Same.
862 * config/generic/cacheline.cc: Same.
863 * config/generic/unaligned.h: Same.
864 * config/x86/cacheline.h: Same.
865 * config/x86/cacheline.cc: Same.
866 * config/x86/unaligned.h: Same.
867 * config/alpha/cacheline.h: Same.
868 * config/alpha/unaligned.h: Same.
869 * config/alpha/sjlj.S: Same.
870 * config/posix/cachepage.cc: Same.
871 * config/linux/futex.h: Same.
872 * config/linux/alpha/futex_bits.h: Same.
873
8742011-11-04 Torvald Riegel <triegel@redhat.com>
875
876 * libitm.texi: No cover text and invariant sections.
877
8782011-11-03 Richard Henderson <rth@redhat.com>
879
880 * local_type_traits: New file.
881 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
882
8832011-11-03 Richard Henderson <rth@redhat.com>
884
885 * configure.ac: Don't test for gfortran.
886 * configure: Rebuild.
887
888 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
889 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
890
8912011-11-03 Aldy Hernandez <aldyh@redhat.com>
892
893 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
894 * testsuite/libitm.c/memset-1.c: Same.
895 * testsuite/libitm.c/c.exp: Same.
896 * testsuite/lib/libitm-dg.exp: Same.
897 * testsuite/lib/libitm.exp: Same.
898 * testsuite/libitm.c++/c++.exp: Same.
899
9002011-11-03 Aldy Hernandez <aldyh@redhat.com>
901
902 * testsuite/config/default.exp: Update copyright date.
903 * configure.ac: Add copyright info.
904 * configure.tgt: Same.
905
9062011-11-03 Aldy Hernandez <aldyh@redhat.com>
907
908 * testsuite/libitm.c/reentrant.c: XFAIL.
909 * testsuite/libitm.c++/static_ctor.C: XFAIL.
910
9112011-10-29 Torvald Riegel <triegel@redhat.com>
912
913 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
914 handle aborts.
915 (_ITM_abortTransaction): Handle aborts of outer transactions.
916 * libitm_i.h: Same.
917 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
918 * libitm.texi: Document aborts of outer transactions.
919 * testsuite/libitm.c/cancel.c: New file.
920
9212011-10-19 Torvald Riegel <triegel@redhat.com>
922
923 * testsuite/*: Change __transaction to __transaction_atomic or
924 __transaction_relaxed.
925
9262011-10-19 Torvald Riegel <triegel@redhat.com>
927
928 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
929 (gtm_thr): Same.
930
9312011-10-19 Torvald Riegel <triegel@redhat.com>
932
933 * libitm_i.h: Add gl_wt dispatch.
934 * retry.cc (parse_default_method): Same.
935 * method-gl.cc: New file.
936 * Makefile.am: Use method-gl.cc.
937 * Makefile.in: Rebuild.
938
9392011-10-19 Torvald Riegel <triegel@redhat.com>
940
941 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
942 safety if requested by a TM method.
943 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
944 privatization safety.
945 * method-serial.cc: Same.
946
9472011-10-19 Torvald Riegel <triegel@redhat.com>
948
949 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
950 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
951 undolog-related member functions from *_local to *_undolog.
952 * local.cc (gtm_thread::commit_undolog): Same.
953 * beginend.cc (GTM::gtm_thread::trycommit): Same.
954 (GTM::gtm_thread::rollback): Roll back undolog before
955 dispatch-specific rollback.
956
9572011-10-19 Torvald Riegel <triegel@redhat.com>
958
959 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
960 re-initialization of the current method group.
961 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
962
9632011-10-19 Torvald Riegel <triegel@redhat.com>
964
965 * alloc.cc (commit_allocations_2): Do not free transaction-local
966 memory when committing a nested transaction.
967
9682011-10-19 Torvald Riegel <triegel@redhat.com>
969
970 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
971 serial-irrevocable dispatch, not serial.
972
9732011-10-19 Torvald Riegel <triegel@redhat.com>
974
975 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
976 declarations.
977 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
978 * method-serial.cc: Implement begin_or_restart().
979 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
980 dispatch-specific begin_or_restart().
981 (GTM::gtm_thread::restart): Same.
982
9832011-08-23 Torvald Riegel <triegel@redhat.com>
984
985 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
986 restarting without switching to serial mode.
987 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
988 transaction state. Choose closed-nesting alternative if available.
989 (GTM::gtm_thread::set_default_dispatch): New.
990 (parse_default_method): New.
991 (GTM::gtm_thread::number_of_threads_changed): New.
992 * method-serial.cc (GTM::serial_mg): New method group class.
993 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
994 fini.
995 (GTM::serial_dispatch): Same.
996 (GTM::serialirr_onwrite_dispatch): Same.
997 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
998 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
999 registered threads.
1000 (GTM::gtm_thread::gtm_thread): Same.
1001 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1002 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1003 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1004 choose dispatch but set state according to dispatch here.
1005 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1006 (GTM::method_group): New class.
1007 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1008 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1009 * libitm.texi: Document TM methods, method groups, method life cycle.
1010 Rename method sets to method groups.
1011
10122011-08-23 Torvald Riegel <triegel@redhat.com>
1013
1014 * config/x86/tls.h: Moved to ...
1015 * config/linux/x86/tls.h: ... here.
1016
10172011-08-23 Torvald Riegel <triegel@redhat.com>
1018
1019 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1020 Add X32 support.
1021 * config/x86/sjlj.S: Same.
1022
10232011-08-19 Torvald Riegel <triegel@redhat.com>
1024
1025 * config/linux/rwlock.h: New file.
1026 * config/linux/rwlock.c: New file.
1027 * configure.ac: Reenable futex support (undo SVN rev 157758).
1028 * Makefile.am: Same.
1029 * configure.tgt: Same.
1030 * config/linux/alpha/futex_bits.h: Same.
1031 * config/linux/futex.h: Same. Return number of woken processes.
1032 * config/linux/futex.cc: Same.
1033 (futex_wait): Remove spinning.
1034 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1035 Use __x86_64__ instead of __LP64__.
1036 * aclocal.m4: Include generic futex checks.
1037 * configure: Rebuild.
1038 * Makefile.in: Rebuild.
1039 * testsuite/Makefile.in: Rebuild.
1040 * beginend.cc: Include pthread.h.
1041 * config/posix/cachepage.cc: Same.
1042
10432011-08-12 Torvald Riegel <triegel@redhat.com>
1044
1045 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1046 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1047 (set_gtm_thr): New.
1048 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1049 (set_gtm_thr): New.
1050 (GTM::gtm_thread::thread_num): Removed.
1051 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1052 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1053 tx-to-thread renaming.
1054 * beginend.cc: Adapted to tx-to-thread renaming.
1055 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1056 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1057 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1058 gtm_transaction to gtm_thread.
1059 (_ITM_getThreadnum): Removed. Not supported anymore.
1060 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1061 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1062 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1063 gtm_tx-to-gtm_thr renaming if necessary.
1064 * eh_cpp.cc: Same.
1065 * local.cc: Same.
1066 * retry.cc: Same.
1067 * clone.cc: Same.
1068 * alloc.cc: Same.
1069 * alloc_c.cc: Same.
1070 * alloc_cpp.cc: Same.
1071 * method-serial.cc: Same.
1072 * config/generic/tls.cc: Same.
1073 * config/posix/rwlock.h (gtm_rwlock): Same.
1074 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1075
10762011-08-12 Torvald Riegel <triegel@redhat.com>
1077
1078 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1079 implementation.
1080 (gtm_rwlock::read_unlock): Same.
1081 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1082 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1083 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1084 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1085 w_upgrade. Replaced by per-transaction flags (in shared_state).
1086 Added c_confirmed_writers.
1087 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1088 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1089 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1090 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1091 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1092 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1093 * libitm.texi: Document locking conventions and implementations in
1094 libitm.
1095
10962011-08-12 Torvald Riegel <triegel@redhat.com>
1097
1098 * libitm_i.h (next_tx): Add list of all threads' transaction.
1099 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1100 transaction with list of transactions and ...
1101 (thread_exit_handler): ... deregister here.
1102 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1103 * config/x86/target.h: Same.
1104
11052011-08-12 Torvald Riegel <triegel@redhat.com>
1106
1107 * testsuite/libitm.c++/static_ctor.C: New file.
1108
11092011-08-12 Torvald Riegel <triegel@redhat.com>
1110
1111 * testsuite/libitm.c/reentrant.c: New file.
1112
11132011-08-12 Torvald Riegel <triegel@redhat.com>
1114
1115 * config/generic/tls.h: Remove the free list for transactions and ...
1116 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1117 (GTM::gtm_transaction::operator delete): ... and release here.
1118 (thread_exit_handler): New. Delete tx when thread terminates.
1119 (thread_exit_init): New.
1120 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1121 * testsuite/libitm.c/txrelease.c: New file.
1122
11232011-08-12 Torvald Riegel <triegel@redhat.com>
1124
1125 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1126 * testsuite/libitm.c/notx.c: New file.
1127
11282011-08-12 Torvald Riegel <triegel@redhat.com>
1129
1130 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1131 * libitm_i.h (local_tid): ... to here.
1132 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1133 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1134
11352011-08-12 Torvald Riegel <triegel@redhat.com>
1136
1137 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1138 serialirr_onwrite_dispatch as new default for now.
1139 * method-serial.cc (serialirr_onwrite_dispatch): New.
1140 (GTM::dispatch_serialirr_onwrite): New.
1141 * libitm_i.h: Same.
1142
11432011-08-12 Torvald Riegel <triegel@redhat.com>
1144
1145 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1146 * query.cc (_ITM_getTransactionId): There is no active transaction if
1147 the current nesting level is zero.
1148
11492011-07-28 Torvald Riegel <triegel@redhat.com>
1150
1151 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1152 rollback.
1153
11542011-07-28 Torvald Riegel <triegel@redhat.com>
1155
1156 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1157 transaction properties from the caller instead of from the
1158 transaction object.
1159 * libitm_i.h: Same.
1160 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1161
11622011-07-28 Torvald Riegel <triegel@redhat.com>
1163
1164 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1165 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1166 * dispatch.h: Same.
1167 * method-serial.cc: Same.
1168 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1169 flat nesting as default, and closed nesting on demand.
1170 (GTM::gtm_transaction::rollback): Same.
1171 (_ITM_abortTransaction): Same.
1172 (GTM::gtm_transaction::restart): Same.
1173 (GTM::gtm_transaction::trycommit): Same.
1174 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1175 (choose_code_path): New.
1176 (GTM::gtm_transaction_cp::save): New.
1177 (GTM::gtm_transaction_cp::commit): New.
1178 * query.cc (_ITM_inTransaction): Support flat nesting.
1179 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1180 (GTM::gtm_transaction): Support flat and closed nesting.
1181 * alloc.cc (commit_allocations_2): New.
1182 (commit_cb_data): New helper struct.
1183 (GTM::gtm_transaction::commit_allocations): Handle nested
1184 commits/rollbacks.
1185 * libitm.texi: Update user action section, add description of nesting.
1186
11872011-07-28 Torvald Riegel <triegel@redhat.com>
1188
1189 * libitm_i.h: Add closed nesting as restart reason.
1190 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1191
11922011-07-28 Torvald Riegel <triegel@redhat.com>
1193
1194 * useraction.cc: Use vector instead of list to store actions.
1195 Also support partial rollbacks for closed nesting.
1196 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1197 * beginend.cc: Same.
1198
11992011-07-28 Torvald Riegel <triegel@redhat.com>
1200
1201 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1202 closed_nesting flags, as well as a closed nesting alternative.
1203 * method-serial.cc: Same.
1204 (serial_dispatch): Renamed to serialirr_dispatch.
1205 (GTM::dispatch_serialirr): Same.
1206 (serial_dispatch_ul): Renamed to serial_dispatch.
1207 (GTM::dispatch_serial): Same.
1208
12092011-07-28 Torvald Riegel <triegel@redhat.com>
1210
1211 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1212
12132011-07-28 Torvald Riegel <triegel@redhat.com>
1214
1215 * aatree.h (aa_tree::remove): New.
1216 (aa_tree::operator new): Add placement new.
1217
12182011-07-02 Torvald Riegel <triegel@redhat.com>
1219
1220 * containers.h: New file.
1221 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1222 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1223 * common.h: ... to here.
1224 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1225 * local.cc: Same.
1226
12272011-06-30 Torvald Riegel <triegel@redhat.com>
1228
1229 * libitm_i.h (STATE_ABORTING): Remove.
1230 * beginend.cc (_ITM_abortTransaction): Same.
1231 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1232 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1233 (_ITM_rollbackTransaction): Remove.
1234 * beginend.cc: Same.
1235 * libitm.map: Same.
1236 * libitm.texi: Document these ABI changes.
1237
12382011-06-30 Torvald Riegel <triegel@redhat.com>
1239
1240 * libitm.texi: New file.
1241 * Makefile.am: Add libitm.texi.
1242 * Makefile.in: Rebuild.
1243
12442011-06-30 Torvald Riegel <triegel@redhat.com>
1245
1246 * libitm_i.h: Move parts to common.h and dispatch.h.
1247 * common.h: New file.
1248 * dispatch.h: New file, new dispatch class.
1249 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1250 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1251 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1252 decision to retry.cc.
1253 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1254 only.
1255 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1256 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1257 logging.
1258 * barrier.cc: Use new barriers definitions.
1259 (abi_dispatch::memmove_overlap_check): New.
1260 * config/x86/x86_sse.cc: Same.
1261 * config/x86/x86_avx.cc: Same.
1262 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1263 memcpy.cc.
1264 * Makefile.in: Rebuild.
1265 * method-readonly.cc: Remove.
1266 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1267 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1268
12692011-06-30 Torvald Riegel <triegel@redhat.com>
1270
1271 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1272 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1273 * testsuite/libitm.c/dropref-2.c: Same.
1274 * testsuite/libitm.c/dropref.c: Same.
1275
12762011-06-30 Torvald Riegel <triegel@redhat.com>
1277
1278 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1279 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1280 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1281 * alloc_c.cc: Same.
1282 * barrier.tpl: Same.
1283 * beginend.c: Same.
1284 * config/generic/tls.h: Same.
1285 * config/x86/tls.h: Same.
1286 * libitm_i.h: Same.
1287 * memcpy.cc: Same.
1288 * memset.cc: Same.
1289 * method-readonly.cc: Same.
1290 * method-serial.cc: Same.
1291 * method-wbetl.cc: Same.
1292 * retry.cc: Same.
1293
12942011-03-03 Richard Henderson <rth@redhat.com>
1295
1296 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1297 From Patrik Marlier <patrick.marlier@unine.ch>.
1298
12992011-02-03 Richard Henderson <rth@redhat.com>
1300
1301 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1302 * configure.ac: Use it.
1303 * configure, config.h.in: Rebuild.
1304 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1305 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1306 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1307 * libitm.map: Use wildcards to match size_t mangling.
1308
13092010-12-14 Richard Henderson <rth@redhat.com>
1310
1311 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1312 blocks of TIDs per thread.
1313 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1314 (setup_gtm_thr): Return the thread structure.
1315 * config/x86/tls.h (setup_gtm_thr): Likewise.
1316
13172010-12-14 Richard Henderson <rth@redhat.com>
1318
1319 * clone.cc (table_lock): Remove.
1320 (find_clone): Don't take it.
1321 (ExcludeTransaction): New helper class.
1322 (_ITM_registerTMCloneTable): Use it.
1323 (_ITM_deregisterTMCloneTable): Likewise.
1324
13252010-12-14 Richard Henderson <rth@redhat.com>
1326
1327 * config/x86/tls.h: New file.
1328
13292010-07-15 Richard Henderson <rth@redhat.com>
1330
1331 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1332 * Makefile.in: Rebuild.
1333
13342010-07-13 Aldy Hernandez <aldyh@redhat.com>
1335
1336 * method-wbetl.cc (trydropreference): Fix source line.
1337
13382010-07-13 Aldy Hernandez <aldyh@redhat.com>
1339
1340 * libitm.h: Add comment.
1341 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1342
13432010-07-07 Aldy Hernandez <aldyh@redhat.com>
1344
1345 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1346 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1347 available, use pthread mutexes.
1348 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1349 * config.h.in: Regenerate.
1350 * configure: Regenerate.
1351
13522010-07-06 Aldy Hernandez <aldyh@redhat.com>
1353
1354 * libitm.h (ITM_PURE): Define.
1355 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1356
13572010-06-28 Aldy Hernandez <aldyh@redhat.com>
1358
1359 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1360 (validate): Add comment.
1361 (trydropreference): New.
1362 * method-readonly.cc (class readonly_dispatch): Add
1363 trydropreference.
1364 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1365 Call trydropreference().
1366 * libitm.h (_ITM_dropReferences): Remove const attribute.
1367 * method-serial.cc (class serial_dispatch): Add trydropreference.
1368 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1369
13702010-06-28 Aldy Hernandez <aldyh@redhat.com>
1371
1372 * memcpy.cc (do_memcpy): Comment.
1373
13742010-06-25 Aldy Hernandez <aldyh@redhat.com>
1375
1376 * barrier.tpl: Add comments throughout.
1377
13782010-06-24 Aldy Hernandez <aldyh@redhat.com>
1379
1380 * method-wbetl.cc (struct w_entry): Add comments.
1381 (trycommit): Same.
1382 (rollback): Same.
1383
13842010-06-24 Aldy Hernandez <aldyh@redhat.com>
1385
1386 * alloc_c.cc (_ITM_dropReferences): New.
1387 * libitm.map (_ITM_dropReferences): Add.
1388 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1389 * libitm_i.h (struct gtm_transaction): Declare
1390 drop_references_allocations and drop_references_local.
1391 * local.cc (rollback_local): Ignore memory when applicable.
1392 (drop_references_local): New.
1393
13942010-06-23 Richard Henderson <rth@redhat.com>
1395
1396 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1397 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1398 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1399 * config/alpha/target.h: Likewise.
1400 * config/generic/tls.cc (gtm_mask_stack): Use it.
1401
14022010-06-23 Richard Henderson <rth@redhat.com>
1403
1404 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1405 a mutex instead of trying a lock-free compare-and-swap on the list.
1406 (gtm_cacheline_page::operator delete): Likewise.
1407
14082010-06-16 Richard Henderson <rth@redhat.com>
1409
1410 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1411 that overlap the libitm stack.
1412 * barrier.tpl: Mark incoming stack.
1413 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1414 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1415 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1416 * memcpy.cc, memset.cc: Likewise.
1417 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1418 * config/generic/tls.h (gtm_thread): Add stack_top member.
1419 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1420 * libitm_i.h (gtm_mask_stack): Declare.
1421 * config/generic/tls.cc: New file.
1422 * Makefile.am (libitm_la_SOURCES): Add it.
1423 (AM_CXXFLAGS): Turn off exceptions.
1424 * Makefile.in: Rebuild.
1425
14262010-06-16 Richard Henderson <rth@redhat.com>
1427
1428 * alloc.cc (struct gtm_alloc_action): Move definition ...
1429 * libitm_i.h: ... here.
1430 (class gtm_transaction): Declare new and delete.
1431 * beginend.cc (alloc_tx): Reformulate as operator new.
1432 (free_tx): Reformulate as operator delete.
1433 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1434
14352010-06-11 Richard Henderson <rth@redhat.com>
1436
1437 * clone.cc (clone_entry_compare): Fix typo.
1438 From Patrik Marlier <patrick.marlier@unine.ch>.
1439
14402010-05-13 Richard Henderson <rth@redhat.com>
1441
1442 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1443 in extern "C".
1444
14452010-05-07 Aldy Hernandez <aldyh@redhat.com>
1446
1447 * libitm_i.h (struct gtm_transaction): Remove
1448 get_allocation_size.
1449 (record_allocation): Remove size parameter.
1450 * libitm.map (_ITM_realloc): Remove.
1451 * alloc_c.cc (_ITM_realloc): Remove.
1452 (_ITM_malloc): Remove size argument to record_allocation.
1453 (_ITM_calloc): Same.
1454 * alloc_cpp.cc (_ZGTtnwm): Same.
1455 (_ZGTtnwmRKSt9nothrow_t): Same.
1456 (_ZGTtnam): Same.
1457 (_ZGTtnamRKSt9nothrow_t): Same.
1458 * alloc.cc (struct gtm_alloc_action): Remove size.
1459 (get_allocation_size): Remove.
1460 (commit_allocations): Add comment.
1461 (record_allocation): Remove size parameter.
1462 (forget_allocation): Remove set of size.
1463
14642010-04-19 Aldy Hernandez <aldyh@redhat.com>
1465
1466 * Makefile.am (abi_version): New.
1467 (AM_CXXFLAGS): Pass abi_version.
1468 * Makefile.in: Regenerate.
1469 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1470
14712010-04-06 Aldy Hernandez <aldyh@redhat.com>
1472
1473 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1474 _ITM_getTMCloneOrIrrevokable.
1475 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1476 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1477
14782010-03-26 Aldy Hernandez <aldyh@redhat.com>
1479
1480 * configure.ac: Remove Linux futex support.
1481 * configure.tgt (config_path): Same.
1482 * Makefile.am: Same.
1483 * config/linux: Remove entire directory.
1484 * configure: Rebuild.
1485 * Makefile.in: Rebuild.
1486 * testsuite/Makefile.in: Rebuild.
1487
14882010-03-09 Aldy Hernandez <aldyh@redhat.com>
1489
1490 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1491 switching to serial mode.
1492 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1493
14942010-03-03 Aldy Hernandez <aldyh@redhat.com>
1495
1496 * configure.tgt: Add emacs -*- tags.
1497 * barrier.tpl: Same.
1498
14992010-02-23 Aldy Hernandez <aldyh@redhat.com>
1500
1501 * Makefile.am: Rename serial.cc to method-serial.cc.
1502 * Makefile.in: Regenerate with automake 1.11.1.
1503 * testsuite/Makefile.in: Same.
1504 * aclocal.m4: Regenerate with aclocal 1.11.1.
1505 * method-serial.cc: Rename from serial.cc.
1506 * libitm_i.h (struct gtm_transaction): Update comment on
1507 serialirr_mode.
1508
15092010-02-22 Aldy Hernandez <aldyh@redhat.com>
1510
1511 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1512 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1513
15142010-02-11 Aldy Hernandez <aldyh@redhat.com>
1515
1516 * configure: Rebuild.
1517
15182009-11-12 Richard Henderson <rth@redhat.com>
1519
1520 * Rewrite everything in C++.
1521
15222009-11-03 Richard Henderson <rth@redhat.com>
1523
1524 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1525 * Makefile.am (libitm_la_SOURCES): Add them.
1526 * configure.ac (ARCH_X86): New conditional.
1527 * Makefile.in, configure: Rebuild.
1528 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1529 Move futex setup into "other system configury" case.
1530 * local.c (rollback_local): Merge into ...
1531 (GTM_rollback_local): ... here.
1532 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1533 (_ITM_LB): Define as an alias to GTM_LB.
1534
15352009-11-03 Richard Henderson <rth@redhat.com>
1536
1537 * method-readonly.c: New file.
1538 * Makefile.am (libitm_la_SOURCES): Add it.
1539 * Makefile.in: Rebuild.
1540 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1541 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1542 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1543 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1544 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1545 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1546 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1547 gtm_get_clock, gtm_inc_clock): New.
1548 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1549 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1550 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1551 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1552 replace uses with new libitm_i.h symbols.
1553 (dispatch_wbetl): Rename from wbetl_dispatch.
1554 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1555 away from dispatch_readonly; abort if the beginTransaction call
1556 asserted that the transaction was readonly.
1557
15582009-11-03 Richard Henderson <rth@redhat.com>
1559
1560 * memset.c: New file.
1561 * Makefile.am (libitm_la_SOURCES): Add it.
1562 * Makefile.in: Rebuild.
1563 * testsuite/libitm.c/memset-1.c: New.
1564
15652009-11-03 Richard Henderson <rth@redhat.com>
1566
1567 * dispatch.c: Remove file.
1568 * useraction.c (struct gtm_user_action): Move from libitm.h.
1569 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1570 (serial_memset, serial_memmove, serial_memcpy): Remove.
1571 (serial_W*, serial_R*): Remove.
1572 (serial_dispatch): Update to match.
1573 * configure.ac: Move Werror down below configure checks. Don't
1574 check for sys/loadavg.h, do check for malloc.h. Don't check for
1575 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1576 Use GCC_AC_FUNC_MMAP_BLACKLIST
1577 * libitm.h: Split out all internal items to...
1578 * libitm_i.h: ... here. New file.
1579 * copymask.c: New file.
1580 * local.c (struct gtm_local_undo): Move from libitm.h.
1581 (GTM_alloc_local): Rename from alloc_local; export.
1582 * memcpy.c: New file.
1583 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1584 * config/posix/page.c: New file.
1585 * config/posix/target_tls.h: Remove file.
1586 * barrier.c: New file.
1587 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1588 copymask.c, page.c.
1589 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1590 * method-wbetl.c: Rewrite for new cacheline methods.
1591 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1592
1593 * config/alpha/sjlj.S: Fix typo.
1594 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1595 * config/alpha/copymask.c: New file.
1596 * config/alpha/target.h (CACHELINE_SIZE): New.
1597 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1598
1599 * config/x86/target_i.h: Copy functions from x86/target.h.
1600 * config/x86/copymask.c: New file.
1601 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1602 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1603 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1604 * config/x86/target_tls.h: Move contents to target_i.h.
1605
1606 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1607 * testsuite/libitm.c/memcpy-1.c: New.
1608
16092009-10-22 Richard Henderson <rth@redhat.com>
1610
1611 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1612 (AM_CCASFLAGS): New.
1613 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1614 saving/restoring _AC_ARG_VAR_PRECIOUS.
1615 * Makefile.in, aclocal.m4, config.h.in, configure,
1616 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1617
16182009-10-22 Richard Henderson <rth@redhat.com>
1619
1620 * testsuite/*: Update for new compiler syntax.
1621
16222009-10-21 Richard Henderson <rth@redhat.com>
1623
1624 * libitm.h (_ITM_abortReason): Add outerAbort.
1625
16262009-08-03 Richard Henderson <rth@redhat.com>
1627
1628 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1629 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1630 * method-wbetl.c (struct w_entry): Remove mask.
1631 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1632 adjust all callers.
1633
16342009-07-22 Richard Henderson <rth@redhat.com>
1635
1636 * eh_cpp.c: New file.
1637 * Makefile.am (libitm_la_SOURCES): Add it.
1638 * Makefile.in: Rebuild.
1639 * beginend.c (GTM_rollback_transaction): Undo exception state.
1640 (GTM_trycommit_transaction): Mark inline.
1641 (GTM_trycommit_and_finalize_transaction): Split out from ...
1642 (_ITM_commitTransaction): ... here.
1643 (_ITM_commitTransactionEH): New function.
1644 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1645 cxa_unthrown, eh_in_flight; reorder.
1646
1647 * testsuite/libitm.c++/c++.exp: New.
1648 * testsuite/libitm.c++/eh-1.C: New.
1649
1650 * aatree.c (aa_free): Remove REGPARM.
1651 * aatree.h: Remove all REGPARM.
1652
16532009-07-18 Richard Henderson <rth@redhat.com>
1654
1655 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1656 * Makefile.am (libitm_la_SOURCES): Add them.
1657 * Makefile.in: Rebuild.
1658 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1659 (GTM_trycommit_transaction): Likewise.
1660 * libitm.h: Include aatree.h
1661 (struct gtm_alloc_action): New.
1662 (struct gtm_transaction): Add alloc_actions.
1663 (GTM_record_allocation, GTM_forget_allocation): Declare.
1664 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1665 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1666 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1667 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1668 _ZGTtdaPvRKSt9nothrow_t): Export.
1669
16702009-07-18 Richard Henderson <rth@redhat.com>
1671
1672 * target_tls.h: Move ...
1673 * config/posix/target_tls.h: ... here.
1674
16752009-07-07 Richard Henderson <rth@redhat.com>
1676
1677 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1678
16792009-07-07 Richard Henderson <rth@redhat.com>
1680
1681 * Update to GPL3.
1682
16832009-07-07 Richard Henderson <rth@redhat.com>
1684
1685 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1686 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1687
1688 * configure.tgt: Don't use -ftls-model for x86 linux.
1689 * libitm.h: Include target.h after standard includes.
1690 (_gtm_thr): Rename from gtm_thr.
1691 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1692 (gtm_disp, set_gtm_disp): New.
1693 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1694 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1695 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1696
16972009-07-07 Richard Henderson <rth@redhat.com>
1698
1699 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1700
17012009-07-06 Richard Henderson <rth@redhat.com>
1702
1703 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1704 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1705 (_ITM_beginTransaction): Take variadic arguments.
1706 (_ITM_registerThrownObject): Declare.
1707 * beginend.c, serial.c: Update.
1708 * libitm.map: Add _ITM_registerThrownObject.
1709
17102009-01-28 Richard Henderson <rth@redhat.com>
1711
1712 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1713 * Makefile.in: Rebuild.
1714 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1715 (GTM_restart_transaction): Fix uninstrumented code check.
1716 * retry.c (GTM_decide_retry_strategy): Add serial check.
1717 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1718 automatically go irrevokable when in serial mode.
1719 * clone.c: New file.
1720 * libitm.h, libitm.map: Update.
1721
17222009-01-27 Richard Henderson <rth@redhat.com>
1723
1724 * Makefile.am (LTCCASCOMPILE): Define.
1725 (libitm_la_SOURCES): Add methid-wbetl.c.
1726 * testsuite/Makefile.am: New
1727 * configure.ac: Add testsuite/Makefile.
1728 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1729 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1730 (_ITM_abortTransaction): Finalize implementation method; pass
1731 transaction properties to longjmp.
1732 (GTM_restart_transaction): Split out from ...
1733 (_ITM_commitTransaction): ... here.
1734 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1735 Move to config/x86/target.h.
1736 * config/linux/alpha/futex_bits.h: New.
1737 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1738 * config/x86/target.h: Disable target types for 32-bit.
1739 * config/alpha/sjlj.S, config/alpha/target.h: New.
1740 * libitm.h (struct gtm_dispatch): Add init, fini.
1741 (enum restart_reason): New.
1742 (struct gtm_transaction): Add method and restarts.
1743 * retry.c (GTM_decide_retry_strategy): Implement.
1744 * serial.c (serial_init, serial_fini): New.
1745 (GTM_serialmode): Finialize outgoing method.
1746 * method-wbetl.c: New.
1747
17482008-12-09 Richard Henderson <rth@redhat.com>
1749
1750 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1751 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1752 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1753 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1754 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1755 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1756 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1757 * serial.c (serial_R##T, serial_W##T): Likewise.
1758
17592008-11-21 Richard Henderson <rth@redhat.com>
1760
1761 * Initial commit.