]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
re PR target/60735 (GCC targeting E500 with SPE has errors with the _Decimal64 type)
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
7cc51d64
JJ
12014-03-26 Jakub Jelinek <jakub@redhat.com>
2
3 * config/linux/futex_bits.h: Include errno.h.
4 (sys_futex0): If syscall returns -1, return -errno rather than
5 -1.
6
c288ec8f
JM
72014-03-26 Joseph Myers <joseph@codesourcery.com>
8
9 * libitm.texi (Index): Rename to Library Index.
10
ed100f5d
L
112014-01-13 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR libitm/53113
14 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
15 (x86_avx.lo): Append -mavx to CXXFLAGS.
16 * Makefile.in: Regenerate.
17
f93608e6
RS
182014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
19
20 Update copyright years
21
98db73df
TB
222014-01-02 Tobias Burnus <burnus@net-b.de>
23
24 * libitm.texi: Bump @copying's copyright year.
25
b54214fe
UW
262013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27
28 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
29 (FUNC): Define ELFv2 variant.
30 (END): Likewise.
31 (HIDDEN): Likewise.
32 (CALL): Likewise.
33 (BASE): Likewise.
34 (LR_SAVE): Likewise.
35
3cbe17f7
AM
362013-09-20 Alan Modra <amodra@gmail.com>
37
38 * configure: Regenerate.
39
6fb471d8
TR
402013-08-30 Torvald Riegel <triegel@redhat.com>
41
42 * config/posix/rwlock.cc: Fix initialization order.
43
bec9ec3f
TR
442013-08-30 Torvald Riegel <triegel@redhat.com>
45
46 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
47 (htm_fastpath): Assign an asm name.
48 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
49 HTM fast paths.
50 (_ITM_actions): Likewise.
51 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
52 x86_64.
53 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
54 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
55 field to the start of the structure.
56 * config/linux/rwlock.h (gtm_rwlock): Update comments.
57 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
58 handling for custom HTM fast paths.
59
1869217f
AK
602013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
61 Revert:
62 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
63
64 * configure.tgt: Add -msoft-float to XCFLAGS.
65
d62d5152
AK
662013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
67
68 * configure.tgt: Add -msoft-float to XCFLAGS.
69
aaaffb2a
AK
702013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
71
72 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
73 (htm_transaction_active): Enable zEC12 instructions in the
74 assembler.
75 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
76
167f68ed
AK
772013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
78
79 * acinclude.m4: Add htm asm check for s390.
80 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
81 * configure: Regenerate.
82 * config/s390/target.h: Remove __HTM__ check.
83 (htm_available): Call getauxval to get hwcaps and check whether
84 HTM is available or not.
85
0258b6e4
PB
862013-07-15 Peter Bergner <bergner@vnet.ibm.com>
87
88 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
89 * configure.ac: Use it.
90 (AC_CHECK_HEADERS): Check for sys/auxv.h.
91 (AC_CHECK_FUNCS): Check for getauxval.
92 * config.h.in, configure: Rebuild.
93 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
94 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
95 (USE_HTM_FASTPATH): Define.
96 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
97 _HTM_RETRIES) New macros.
98 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
99 htm_begin_success, htm_commit, htm_transaction_active): New functions.
100
5a3fe9b6
AK
1012013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
102
103 * config/s390/target.h: Include htmintrin.h.
104 (_HTM_ITM_RETRIES): New macro definition.
105 (htm_available, htm_init, htm_begin, htm_begin_success)
106 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
107
6c84d576
IS
1082013-06-20 Iain Sandoe <iain@codesourcery.com>
109 Cesar Philippidis <cesar@codesourcery.com>
110
111 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
112 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
113 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
114 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
115
480c696b
TR
1162013-06-20 Torvald Riegel <triegel@redhat.com>
117
118 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
119 (_ITM_getTransactionId): Same.
120 * config/x86/target.h (htm_transaction_active): New.
121
b1db457b
TR
1222013-06-20 Torvald Riegel <triegel@redhat.com>
123
124 PR libitm/57643
125 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
126 the HTM fastpath.
127
51249377
GP
1282013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
129
130 PR bootstrap/56714
131 * local_atomic (__always_inline): Always define our version.
132 (__calculate_memory_order): Mark inline.
133 (atomic_thread_fence): Ditto.
134 (atomic_signal_fence): Ditto.
135 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
136 (atomic_bool::atomic_flag_clear_explicit): Ditto.
137 (atomic_bool::atomic_flag_test_and_set): Ditto.
138 (atomic_bool::atomic_flag_clear): Ditto.
139
f818478b
JJ
1402013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
141
142 * config/s390/sjlj.S: New file.
143 * config/s390/target.h: New file.
144 * configure.tgt: Set options for S/390.
145
ab4425be
AK
1462013-03-23 Andi Kleen <ak@linux.intel.com>
147
148 * local_atomic (__always_inline): Add.
149 (__calculate_memory_order, atomic_thread_fence,
150 atomic_signal_fence, test_and_set, clear, store, load,
151 exchange, compare_exchange_weak, compare_exchange_strong,
152 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
153 Add __always_inline to force inlining.
154
6c59ffd1
IS
1552013-02-11 Iain Sandoe <iain@codesourcery.com>
156 Jack Howarth <howarth@bromo.med.uc.edu>
157 Patrick Marlier <patrick.marlier@gmail.com>
158
159 PR libitm/55693
160 * alloc_cpp.cc: Enable function declarations on darwin.
161 * eh_cpp.cc: Likewise.
162
75f9527c
RS
1632013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
164
165 Update copyright years.
166
64fbcc74
TR
1672012-11-09 Torvald Riegel <triegel@redhat.com>
168
169 * beginend.cc (htm_fastpath): New.
170 (gtm_thread::begin_transaction, _ITM_commitTransaction,
171 _ITM_commitTransactionEH): Add HTM fastpath handling.
172 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
173 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
174 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
175 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
176 * configure.tgt: Add -mrtm to XCFLAGS.
177 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
178 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
179 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
180 * retry.cc (parse_default_method): Add HTM method parsing.
181 (gtm_thread::number_of_threads_changed): Use HTM by default if
182 available.
183
b9efc877
TS
1842012-11-04 Thomas Schwinge <thomas@codesourcery.com>
185
186 * configure: Regenerate.
187
07d3b5c8
RH
1882012-10-31 Richard Henderson <rth@redhat.com>
189
190 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
191 * configure.ac: Use it.
192 * config.h.in, configure: Rebuild.
193 * testsuite/Makefile.in: Rebuild.
194
eb00e959
TR
1952012-10-24 Torvald Riegel <triegel@redhat.com>
196
197 * libitm.texi: Clarify ABI requirements for data-logging functions.
198
b679c813
TR
1992012-10-24 Torvald Riegel <triegel@redhat.com>
200
201 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
202 it requires serial mode instead of assuming that for certain
203 dispatchs.
204 * dispatch.h (abi_dispatch::requires_serial): New.
205 (abi_dispatch::abi_dispatch): Adapt.
206 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
207 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
208 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
209 serial_dispatch::serial_dispatch,
210 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
211
0c609a21
UB
2122012-10-02 Uros Bizjak <ubizjak@gmail.com>
213
214 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
215 and ia32 declarations some more.
216 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
217
c0758df9
JJ
2182012-09-20 Jakub Jelinek <jakub@redhat.com>
219
220 PR other/43620
221 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
222 * configure: Regenerate.
223 * Makefile.in: Regenerate.
224
690c45b8
DE
2252012-09-14 David Edelsohn <dje.gcc@gmail.com>
226
227 * configure: Regenerated.
228
68a12ef3
UB
2292012-07-31 Uros Bizjak <ubizjak@gmail.com>
230
231 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
232
f2f9a097
PM
2332012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
234
235 * eh_cpp.cc: Fix __cxa_end_catch declaration.
236
e6d5f8c9
L
2372012-05-16 H.J. Lu <hongjiu.lu@intel.com>
238
239 * configure: Regenerated.
240
0100e3b3
L
2412012-04-04 H.J. Lu <hongjiu.lu@intel.com>
242
243 PR libitm/52854
244 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
245 for x86-64.
246
2f6935f4
TG
2472012-04-03 Tristan Gingold <gingold@adacore.com>
248
249 * configure: Regenerate.
250
b9c23a61
L
2512012-03-31 H.J. Lu <hongjiu.lu@intel.com>
252
253 PR bootstrap/52812
254 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
255
6a26a74d
BRF
2562012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
257
258 * testsuite/lib/libitm.exp: load fortran-modules.exp
259
b24513a1
RO
2602012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
261
262 * configure.tgt (*-*-irix6*): Remove.
263
0d23faac
TR
2642012-03-13 Torvald Riegel <triegel@redhat.com>
265
266 PR libitm/52526
267 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
268 wake-up.
269
5c30094f
RO
2702012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271
272 * configure.tgt (*-*-osf*): Remove.
273 * configure: Regenerate.
274
d28b0b08
TR
2752012-03-05 Torvald Riegel <triegel@redhat.com>
276
277 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
278 memtransfer/memset if size isn't larger than zero.
279
034209bc
TR
2802012-03-02 Torvald Riegel <triegel@redhat.com>
281
282 * libitm.texi: Link to specification and add a usage example.
283
bc8da6ba
TR
2842012-02-24 Torvald Riegel <triegel@redhat.com>
285
286 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
287 default dispatch for more than 1 thread to ml_wt.
288
63b08143
TR
2892012-02-20 Torvald Riegel <triegel@redhat.com>
290
291 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
292
4c9bd6ac
TR
2932012-02-20 Torvald Riegel <triegel@redhat.com>
294
295 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
296
651ff415
TR
2972012-02-20 Torvald Riegel <triegel@redhat.com>
298
299 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
300 serial mode corner cases made obsolete by prior gtm_rwlock changes.
301 (gl_wt_dispatch.rollback): Same.
302
efee0113
TR
3032012-02-20 Torvald Riegel <triegel@redhat.com>
304
305 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
306
33a03827
TR
3072012-02-20 Torvald Riegel <triegel@redhat.com>
308
309 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
310 for RfW src. Optimize number of calls to gtm_thr.
311
a19db3f2
TR
3122012-02-20 Torvald Riegel <triegel@redhat.com>
313
314 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
315 acquisition to ...
316 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
317 (default_dispatch): Make atomic.
318 (GTM::gtm_thread::set_default_dispatch): Access atomically.
319 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
320 use decide_begin_dispatch() if default_dispatch might have changed.
321 (GTM::gtm_thread::number_of_threads_changed): Initialize
322 default_dispatch here.
323
e948a1fb
IS
3242012-02-15 Iain Sandoe <iains@gcc.gnu.org>
325 Patrick Marlier <patrick.marlier@gmail.com>
326
327 PR libitm/52220
328 * alloc_cpp.cc: No dummy definitions for darwin.
329 * eh_cpp.cc: Likewise.
330
72824d5e
RH
3312012-02-14 Richard Henderson <rth@redhat.com>
332
333 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
334
1f319dba
UB
3352012-02-14 Uros Bizjak <ubizjak@gmail.com>
336
337 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
338
31772c95
TR
3392012-02-14 Torvald Riegel <triegel@redhat.com>
340
341 * libitm_i.h (GTM::gtm_rwlog_entry): New.
342 (GTM::gtm_thread): Add read and write logs.
343 (GTM::dispatch_ml_wt): Declare.
344 * retry.cc (parse_default_method): Support ml_wt.
345 * method-ml.cc: New file.
346 * Makefile.am: Add method-ml.cc.
347 * Makefile.in: Regenerate.
348
5b9cf5d2
TR
3492012-02-14 Torvald Riegel <triegel@redhat.com>
350
351 * dispatch.h (GTM::abi_dispatch::supports): New.
352 (GTM::method_group::reinit): New.
353 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
354 (GTM::gtm_thread::number_of_threads_changed): Check that the method
355 supports the current situation.
356
7d33bcb7
TR
3572012-02-14 Torvald Riegel <triegel@redhat.com>
358
359 * util.cc (GTM::xcalloc): New.
360 * common.h (GTM::xcalloc): Declare.
361
62513f7b
EB
3622012-02-14 Eric Botcazou <ebotcazou@adacore.com>
363
364 * config/sparc/target.h (cpu_relax): Read from CC register.
365 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
366
3672012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
368
369 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
370
f3f5e3c3
EB
3712012-02-13 Eric Botcazou <ebotcazou@adacore.com>
372
62513f7b 373 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
374 * config/sparc/cacheline.h: New file.
375 * config/sparc/target.h: Likewise.
376 * config/sparc/sjlj.S: Likewise.
377 * config/linux/sparc/futex_bits.h: Likewise.
378
3792012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
380
381 * configure.ac (link_itm): Fix comment.
382 * configure: Regenerate.
383 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
384
681355e3
RO
3852012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386
fc985d2f 387 PR libitm/51822
62513f7b 388 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
389 Correct libgomp references.
390
999bcff5
TR
3912012-01-24 Torvald Riegel <triegel@redhat.com>
392
393 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
394 wake-up.
395
9848887a
UB
3962012-01-24 Uros Bizjak <ubizjak@gmail.com>
397
398 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
399 end of structure.
400 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
401 offset values. Do not copy return address. Decrement stack
402 by 56 bytes only.
403 (GTM_longjump) [__x86_64__]: Update offset values.
404
5752c591
UB
4052012-01-23 Uros Bizjak <ubizjak@gmail.com>
406
407 PR libitm/51830
408 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
409 the first function argument to %eax.
410
61e72ca4
RO
4112012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
412
413 * libitm.h (_ITM_getThreadnum): Remove.
414 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
415
9ce91011
RO
4162012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
417
418 * clearcap.map: New file.
419 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
420 * configure.ac: Call it.
421 Clear HWCAP_LDFLAGS if defaulting to -mavx.
422 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
423 * configure: Regenerate.
424 * Makefile.in: Regenerate.
425 * testsuite/Makefile.in: Regenerate.
426
3b4f05ec
RO
4272012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428
429 PR libitm/51173
430 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
431 include, exclude options.
432
aab74ee9
TR
4332012-01-14 Torvald Riegel <triegel@redhat.com>
434
435 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
436 rolling back.
437 * containers.h (GTM::vector::set_size): New.
438
07b6642b
TR
4392012-01-14 Torvald Riegel <triegel@redhat.com>
440
441 PR libitm/51855
442 * config/generic/tls.h (GTM::mask_stack_top): New.
443 (GTM::mask_stack_bottom): Declare.
444 * config/generic/tls.c (GTM::mask_stack_bottom): New.
445 * local.cc (gtm_undolog::rollback): Filter out any updates that
446 overlap the libitm stack. Add current transaction as parameter.
447 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
448 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
449 * testsuite/libitm.c/stackundo.c: New test.
450
8377e5e5
RH
4512012-01-10 Richard Henderson <rth@redhat.com>
452
453 * libitm_i.h (_Unwind_DeleteException): Declare weak.
454 * eh_cpp.cc (_Unwind_DeleteException): Define for
455 !HAVE_ELF_STYLE_WEAKREF.
456
11f30bb0
TR
4572012-01-08 Torvald Riegel <triegel@redhat.com>
458
459 * local.cc (GTM_LB): Use GTM::gtm_undolog.
460 (GTM::gtm_thread::drop_references_undolog): Remove.
461 (GTM::gtm_thread::commit_undolog,
462 GTM::gtm_thread::rollback_undolog): Move to ...
463 * libitm_i.h (GTM::gtm_undolog): ...here. New.
464 (GTM::gtm_undolog_entry): Remove.
465 (GTM::gtm_thread): Adapt.
466 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
467 (GTM::gtm_thread::trycommit): Adapt.
468 * method-serial.cc (serial_dispatch::log): Adapt.
469 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
470 (gl_wt_dispatch::store): Fix likely/unlikely.
471 * containers.h (GTM::vector::resize): Add additional_capacity
472 parameter and handle it.
473 (GTM::vector::resize_noinline): New/adapt.
474 (GTM::vector::push): New.
475
a32e5e93
RH
4762012-01-06 Richard Henderson <rth@redhat.com>
477
478 * configure.tgt: Support powerpc-linux and powerpc-darwin.
479 * config/linux/powerpc/futex_bits.h: New file.
480 * config/powerpc/cacheline.h: New file.
481 * config/powerpc/sjlj.S: New file.
482 * config/powerpc/target.h: New file.
483 * config/generic/asmcfi.h (cfi_offset): New.
484 (cfi_restore, cfi_undefined): New.
485
1f53a8e6
AH
4862012-01-05 Aldy Hernandez <aldyh@redhat.com>
487
488 PR other/51171
489 * testsuite/libitm.c/reentrant.c: Remove xfail.
490 (thread): Pass x to pure().
be223aaf 491 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 492
c898f7b8
TR
4932011-12-24 Torvald Riegel <triegel@redhat.com>
494
495 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
496 privatization safety if already in serial mode.
497
610e3901
TR
4982011-12-24 Torvald Riegel <triegel@redhat.com>
499
500 * beginend.cc (GTM::gtm_thread::restart): Add and handle
501 finish_serial_upgrade parameter.
502 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
503 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
504 Don't unset reader flag.
505 (GTM::gtm_rwlock::write_upgrade_finish): New.
506 * config/posix/rwlock.cc: Same.
507 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
508 Declare.
509 * config/posix/rwlock.h: Same.
510 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
511 flag after commit or after rollback when restarting.
512
799142bf
TR
5132011-12-24 Torvald Riegel <triegel@redhat.com>
514
515 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
516 (GTM::gtm_thread::try_commit): Changed memory order.
517 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
518 as parameter.
519 * config/linux/x86/futex_bits.h (sys_futex0): Same.
520 * config/linux/sh/futex_bits.h (sys_futex0): Same.
521 * config/linux/futex_bits.h (sys_futex0): Same.
522 * config/linux/futex.cc (futex_wait, futex_wake): Same.
523 * config/linux/futex.h (futex_wait, futex_wake): Same.
524 * config/linux/rwlock.h (gtm_rwlock::writers,
525 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
526 ints.
527 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
528 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
529 gtm_rwlock::write_unlock): Fix memory orders and fences.
530 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
531 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
532 gtm_rwlock::write_unlock): Same.
533 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
534 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
535 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
536 Add comments.
537 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
538 gl_wt_dispatch::load, gl_wt_dispatch::store,
539 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
540 orders and fences. Add comments.
541
b0f96e35
JJ
5422011-12-21 Jakub Jelinek <jakub@redhat.com>
543
544 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
545 * Makefile.in: Regenerated.
546
cc163247
KK
5472011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
548
549 * configure.tgt: Add sh* case.
550 * config/sh/target.h: New file.
551 * config/sh/sjlj.S: New file.
552 * config/linux/sh/futex_bits.h: New file.
553
aebac0ca
RH
5542011-12-14 Richard Henderson <rth@redhat.com>
555
556 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
557 * config/arm/sjlj.S, config/arm/target.h: New files.
558 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
559 (cfi_rel_offset): New.
560 * config/linux/futex_bits.h: New file.
561 * config/linux/futex.cc: Include futex_bits.h here...
562 * config/linux/futex.h: ... not here.
563 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
564 * configure.ac (ARCH_AM): New conditional.
565 * Makefile.in, configure: Rebuild.
566 * configure.tgt: Handle ARM.
567
36cfbee1
RH
5682011-12-13 Richard Henderson <rth@redhat.com>
569
5d9d05d3
RH
570 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
571 signed/unsigned comparison werror.
572
36cfbee1
RH
573 * local_atomic: New file.
574 * libitm_i.h: Include it.
575 (gtm_thread::shared_state): Use atomic template.
576 * beginend.cc (GTM::gtm_clock): Use atomic template.
577 (global_tid): Use atomic template if 64-bit atomics available.
578 (gtm_thread::gtm_thread): Update shared_state access.
579 (gtm_thread::trycommit): Likewise.
580 (choose_code_path): Update global_tid access.
581 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
582 * stmlock.h (GTM::gtm_clock): Use atomic template.
583 (gtm_get_clock, gtm_inc_clock): Update accesses.
584 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
585 redundant __sync_synchronize after atomic shared_state access.
586 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
587 (gtm_rwlock::write_lock_generic): Likewise.
588 (gtm_rwlock::read_unlock): Likewise.
589 * config/alpha/target.h (atomic_read_barrier): Remove.
590 (atomic_write_barrier): Remove.
591 * config/x86/target.h (atomic_read_barrier): Remove.
592 (atomic_write_barrier): Remove.
593
062f93f2
RH
5942011-11-30 Richard Henderson <rth@redhat.com>
595
596 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
597 * beginend.c (_ITM_abortTransaction): Update to match.
598 (GTM::gtm_thread::restart): Likewise.
599 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
600 * config/x86/sjlj.S (GTM_longjmp): Likewise.
601
bd8aaa86
IS
6022011-11-23 Iain Sandoe <iains@gcc.gnu.org>
603
604 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
605 * Makefile.in: Regenerate.
606
8cf36bb3
IS
6072011-11-22 Iain Sandoe <iains@gcc.gnu.org>
608
609 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
610 * alloc_cpp.cc: Generate dummy functions if we don't
611 HAVE_ELF_STYLE_WEAKREF.
612 * eh_cpp.cc: Likewise.
613 * configure: Regenerate.
614 * aclocal.m4: Likewise.
615 * config.h.in: Likewise.
616 * Makefile.in: Likewise.
617 * testsuite/Makefile.in: Likewise.
618
0b41ebef
IS
6192011-11-22 Iain Sandoe <iains@gcc.gnu.org>
620
621 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
622 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 623 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
624 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
625 in portability to non-elf targets.
8cf36bb3 626 (GTM_longjmp): Likewise.
0b41ebef
IS
627 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
628 where required.
629
9c9d352a
IS
6302011-11-22 Iain Sandoe <iains@gcc.gnu.org>
631
632 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
633 * testsuite/libitm.c/memset-1.c: Likewise.
634
c6084f68
AT
6352011-11-21 Andreas Tobler <andreast@fgznet.ch>
636
637 * configure: Regenerate.
638
adcd36bc
RO
6392011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
640
641 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
642 (LIBITM_ENABLE_SYMVERS): Handle sun style.
643 * Makefile.am: Handle sun style versioning.
644 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
645 * configure: Regenerate.
646 * Makefile.in: Regenerate.
647
59659b59
RO
6482011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649
650 * config/generic/asmcfi.h: Fix comment.
651 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
652 sequence without .hidden support, error for non-ELF targets.
653 (GTM_longjmp) [__ELF__]: Only use .hidden if
654 HAVE_ATTRIBUTE_VISIBILITY.
655
d846e425
RO
6562011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
657
658 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
659 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
660 Dummy functions.
661 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
662 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
663
80713347
UB
6642011-11-16 Uros Bizjak <ubizjak@gmail.com>
665
666 PR bootstrap/51098
667 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
668 * configure: Regenerate.
669
2841f85e
L
6702011-11-14 H.J. Lu <hongjiu.lu@intel.com>
671
672 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
673
8851b429
RO
6742011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
675
676 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
677 .hidden.
678 (.note.GNU-stack): Only use if __linux__.
679 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
680 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
681 * testsuite/libitm.c/reentrant.c: Likewise.
682 * testsuite/libitm.c/simple-2.c: Likewise.
683 * testsuite/libitm.c/txrelease.c: Likewise.
684 * testsuite/libitm.c++/static_ctor.C: Likewise.
685
d4b17902
RH
6862011-11-10 Richard Henderson <rth@redhat.com>
687
688 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
689 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
690 * configure.ac (ARCH_X86_AVX): New conditional.
691 * Makefile.in, configure: Rebuild.
692
430616e7
RH
6932011-11-09 Richard Henderson <rth@redhat.com>
694
695 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
696 * configure.ac: Use it.
697 * config.h.in, configure: Rebuild.
698 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
699
79b1edb6
RH
7002011-11-09 Richard Henderson <rth@redhat.com>
701
702 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
703 * config/alpha/unaligned.h: Remove file.
704 * config/generic/unaligned.h: Remove file.
705 * config/x86/unaligned.h: Remove file.
706 * config/generic/cachepage.h: Remove file.
707 * config/posix/cachepage.cc: Remove file.
708 * config/generic/cacheline.cc: Remove file.
709 * config/x86/cacheline.cc: Remove file.
710 * config/generic/cacheline.h (gtm_cacheline): Remove the
711 store_mask, copy_mask, copy_mask_wb methods.
712 * config/x86/cacheline.h: Likewise.
713 * config/alpha/cacheline.h: Fall back to generic after setting size.
714 * config/generic/tls.cc (gtm_mask_stack): Remove.
715 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
716 (GTM_vpalignr_table): Remove.
717 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
718 (GTM_pshift_table): Remove.
719 * config/libitm_i.h: Don't include cachepage.h.
720 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
721 * Makefile.in, testsuite/Makefile.in: Rebuild.
722
4bdd090f
RH
7232011-11-09 Richard Henderson <rth@redhat.com>
724
8ee9fac2
RH
725 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
726 to emit branch prediction hint.
727
9bdc6343
RH
728 * config/x86/sjlj.S: Protect elf directives with __ELF__.
729 Protect .note.GNU-stack with __linux__.
730
4bdd090f
RH
731 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
732 * configure, aclocal.m4, config.h.in: Rebuild.
733 * config/generic/asmcfi.h: New file.
734 * config/x86/sjlj.S: Use it.
735
4408b086
RH
7362011-11-08 Richard Henderson <rth@redhat.com>
737
738 * local.cc (_ITM_LB): Use a normal call, not a function alias.
739
01f3428c
RH
7402011-11-08 Richard Henderson <rth@redhat.com>
741
3d3b05ff
RH
742 * configure.tgt: Test correct directory for supported cpus.
743
01f3428c
RH
744 * configure.ac: Exit if unsupported.
745 * configure: Rebuild.
746 * configure.tgt: Delete boilerplate from libgomp for unsupported
747 targets. Set UNSUPPORTED for unsupported targets.
748
07f03cd3
RO
7492011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
750
751 * configure.tgt: Handle i386 like i[456]86.
752 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
753 take address.
754 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
755 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
756
0a35513e
AH
7572011-11-05 Aldy Hernandez <aldyh@redhat.com>
758
759 * method-wbetl.cc: Update copyright notice.
760 * aatree.cc: Same.
761 * util.cc: Same.
762 * libitm.h: Same.
763 * memset.cc: Same.
764 * eh_cpp.cc: Same.
765 * barrier.tpl: Same.
766 * useraction.cc: Same.
767 * stmlock.h: Same.
768 * memcpy.cc: Same.
769 * common.h: Same.
770 * config/generic/tls.cc: Same.
771 * config/generic/cacheline.h: Same.
772 * config/generic/cachepage.h: Same.
773 * config/generic/cacheline.cc: Same.
774 * config/generic/unaligned.h: Same.
775 * config/x86/cacheline.h: Same.
776 * config/x86/cacheline.cc: Same.
777 * config/x86/unaligned.h: Same.
778 * config/alpha/cacheline.h: Same.
779 * config/alpha/unaligned.h: Same.
780 * config/alpha/sjlj.S: Same.
781 * config/posix/cachepage.cc: Same.
782 * config/linux/futex.h: Same.
783 * config/linux/alpha/futex_bits.h: Same.
784
7852011-11-04 Torvald Riegel <triegel@redhat.com>
786
787 * libitm.texi: No cover text and invariant sections.
788
7892011-11-03 Richard Henderson <rth@redhat.com>
790
791 * local_type_traits: New file.
792 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
793
7942011-11-03 Richard Henderson <rth@redhat.com>
795
796 * configure.ac: Don't test for gfortran.
797 * configure: Rebuild.
798
799 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
800 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
801
8022011-11-03 Aldy Hernandez <aldyh@redhat.com>
803
804 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
805 * testsuite/libitm.c/memset-1.c: Same.
806 * testsuite/libitm.c/c.exp: Same.
807 * testsuite/lib/libitm-dg.exp: Same.
808 * testsuite/lib/libitm.exp: Same.
809 * testsuite/libitm.c++/c++.exp: Same.
810
8112011-11-03 Aldy Hernandez <aldyh@redhat.com>
812
813 * testsuite/config/default.exp: Update copyright date.
814 * configure.ac: Add copyright info.
815 * configure.tgt: Same.
816
8172011-11-03 Aldy Hernandez <aldyh@redhat.com>
818
819 * testsuite/libitm.c/reentrant.c: XFAIL.
820 * testsuite/libitm.c++/static_ctor.C: XFAIL.
821
8222011-10-29 Torvald Riegel <triegel@redhat.com>
823
824 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
825 handle aborts.
826 (_ITM_abortTransaction): Handle aborts of outer transactions.
827 * libitm_i.h: Same.
828 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
829 * libitm.texi: Document aborts of outer transactions.
830 * testsuite/libitm.c/cancel.c: New file.
831
8322011-10-19 Torvald Riegel <triegel@redhat.com>
833
834 * testsuite/*: Change __transaction to __transaction_atomic or
835 __transaction_relaxed.
836
8372011-10-19 Torvald Riegel <triegel@redhat.com>
838
839 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
840 (gtm_thr): Same.
841
8422011-10-19 Torvald Riegel <triegel@redhat.com>
843
844 * libitm_i.h: Add gl_wt dispatch.
845 * retry.cc (parse_default_method): Same.
846 * method-gl.cc: New file.
847 * Makefile.am: Use method-gl.cc.
848 * Makefile.in: Rebuild.
849
8502011-10-19 Torvald Riegel <triegel@redhat.com>
851
852 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
853 safety if requested by a TM method.
854 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
855 privatization safety.
856 * method-serial.cc: Same.
857
8582011-10-19 Torvald Riegel <triegel@redhat.com>
859
860 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
861 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
862 undolog-related member functions from *_local to *_undolog.
863 * local.cc (gtm_thread::commit_undolog): Same.
864 * beginend.cc (GTM::gtm_thread::trycommit): Same.
865 (GTM::gtm_thread::rollback): Roll back undolog before
866 dispatch-specific rollback.
867
8682011-10-19 Torvald Riegel <triegel@redhat.com>
869
870 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
871 re-initialization of the current method group.
872 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
873
8742011-10-19 Torvald Riegel <triegel@redhat.com>
875
876 * alloc.cc (commit_allocations_2): Do not free transaction-local
877 memory when committing a nested transaction.
878
8792011-10-19 Torvald Riegel <triegel@redhat.com>
880
881 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
882 serial-irrevocable dispatch, not serial.
883
8842011-10-19 Torvald Riegel <triegel@redhat.com>
885
886 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
887 declarations.
888 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
889 * method-serial.cc: Implement begin_or_restart().
890 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
891 dispatch-specific begin_or_restart().
892 (GTM::gtm_thread::restart): Same.
893
8942011-08-23 Torvald Riegel <triegel@redhat.com>
895
896 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
897 restarting without switching to serial mode.
898 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
899 transaction state. Choose closed-nesting alternative if available.
900 (GTM::gtm_thread::set_default_dispatch): New.
901 (parse_default_method): New.
902 (GTM::gtm_thread::number_of_threads_changed): New.
903 * method-serial.cc (GTM::serial_mg): New method group class.
904 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
905 fini.
906 (GTM::serial_dispatch): Same.
907 (GTM::serialirr_onwrite_dispatch): Same.
908 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
909 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
910 registered threads.
911 (GTM::gtm_thread::gtm_thread): Same.
912 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
913 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
914 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
915 choose dispatch but set state according to dispatch here.
916 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
917 (GTM::method_group): New class.
918 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
919 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
920 * libitm.texi: Document TM methods, method groups, method life cycle.
921 Rename method sets to method groups.
922
9232011-08-23 Torvald Riegel <triegel@redhat.com>
924
925 * config/x86/tls.h: Moved to ...
926 * config/linux/x86/tls.h: ... here.
927
9282011-08-23 Torvald Riegel <triegel@redhat.com>
929
930 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
931 Add X32 support.
932 * config/x86/sjlj.S: Same.
933
9342011-08-19 Torvald Riegel <triegel@redhat.com>
935
936 * config/linux/rwlock.h: New file.
937 * config/linux/rwlock.c: New file.
938 * configure.ac: Reenable futex support (undo SVN rev 157758).
939 * Makefile.am: Same.
940 * configure.tgt: Same.
941 * config/linux/alpha/futex_bits.h: Same.
942 * config/linux/futex.h: Same. Return number of woken processes.
943 * config/linux/futex.cc: Same.
944 (futex_wait): Remove spinning.
945 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
946 Use __x86_64__ instead of __LP64__.
947 * aclocal.m4: Include generic futex checks.
948 * configure: Rebuild.
949 * Makefile.in: Rebuild.
950 * testsuite/Makefile.in: Rebuild.
951 * beginend.cc: Include pthread.h.
952 * config/posix/cachepage.cc: Same.
953
9542011-08-12 Torvald Riegel <triegel@redhat.com>
955
956 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
957 (abi_disp, set_abi_disp): Move to tx's TLS slot.
958 (set_gtm_thr): New.
959 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
960 (set_gtm_thr): New.
961 (GTM::gtm_thread::thread_num): Removed.
962 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
963 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
964 tx-to-thread renaming.
965 * beginend.cc: Adapted to tx-to-thread renaming.
966 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
967 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
968 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
969 gtm_transaction to gtm_thread.
970 (_ITM_getThreadnum): Removed. Not supported anymore.
971 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
972 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
973 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
974 gtm_tx-to-gtm_thr renaming if necessary.
975 * eh_cpp.cc: Same.
976 * local.cc: Same.
977 * retry.cc: Same.
978 * clone.cc: Same.
979 * alloc.cc: Same.
980 * alloc_c.cc: Same.
981 * alloc_cpp.cc: Same.
982 * method-serial.cc: Same.
983 * config/generic/tls.cc: Same.
984 * config/posix/rwlock.h (gtm_rwlock): Same.
985 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
986
9872011-08-12 Torvald Riegel <triegel@redhat.com>
988
989 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
990 implementation.
991 (gtm_rwlock::read_unlock): Same.
992 (gtm_rwlock::write_lock_generic): New. Generalized from ...
993 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
994 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
995 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
996 w_upgrade. Replaced by per-transaction flags (in shared_state).
997 Added c_confirmed_writers.
998 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
999 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1000 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1001 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1002 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1003 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1004 * libitm.texi: Document locking conventions and implementations in
1005 libitm.
1006
10072011-08-12 Torvald Riegel <triegel@redhat.com>
1008
1009 * libitm_i.h (next_tx): Add list of all threads' transaction.
1010 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1011 transaction with list of transactions and ...
1012 (thread_exit_handler): ... deregister here.
1013 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1014 * config/x86/target.h: Same.
1015
10162011-08-12 Torvald Riegel <triegel@redhat.com>
1017
1018 * testsuite/libitm.c++/static_ctor.C: New file.
1019
10202011-08-12 Torvald Riegel <triegel@redhat.com>
1021
1022 * testsuite/libitm.c/reentrant.c: New file.
1023
10242011-08-12 Torvald Riegel <triegel@redhat.com>
1025
1026 * config/generic/tls.h: Remove the free list for transactions and ...
1027 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1028 (GTM::gtm_transaction::operator delete): ... and release here.
1029 (thread_exit_handler): New. Delete tx when thread terminates.
1030 (thread_exit_init): New.
1031 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1032 * testsuite/libitm.c/txrelease.c: New file.
1033
10342011-08-12 Torvald Riegel <triegel@redhat.com>
1035
1036 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1037 * testsuite/libitm.c/notx.c: New file.
1038
10392011-08-12 Torvald Riegel <triegel@redhat.com>
1040
1041 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1042 * libitm_i.h (local_tid): ... to here.
1043 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1044 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1045
10462011-08-12 Torvald Riegel <triegel@redhat.com>
1047
1048 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1049 serialirr_onwrite_dispatch as new default for now.
1050 * method-serial.cc (serialirr_onwrite_dispatch): New.
1051 (GTM::dispatch_serialirr_onwrite): New.
1052 * libitm_i.h: Same.
1053
10542011-08-12 Torvald Riegel <triegel@redhat.com>
1055
1056 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1057 * query.cc (_ITM_getTransactionId): There is no active transaction if
1058 the current nesting level is zero.
1059
10602011-07-28 Torvald Riegel <triegel@redhat.com>
1061
1062 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1063 rollback.
1064
10652011-07-28 Torvald Riegel <triegel@redhat.com>
1066
1067 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1068 transaction properties from the caller instead of from the
1069 transaction object.
1070 * libitm_i.h: Same.
1071 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1072
10732011-07-28 Torvald Riegel <triegel@redhat.com>
1074
1075 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1076 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1077 * dispatch.h: Same.
1078 * method-serial.cc: Same.
1079 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1080 flat nesting as default, and closed nesting on demand.
1081 (GTM::gtm_transaction::rollback): Same.
1082 (_ITM_abortTransaction): Same.
1083 (GTM::gtm_transaction::restart): Same.
1084 (GTM::gtm_transaction::trycommit): Same.
1085 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1086 (choose_code_path): New.
1087 (GTM::gtm_transaction_cp::save): New.
1088 (GTM::gtm_transaction_cp::commit): New.
1089 * query.cc (_ITM_inTransaction): Support flat nesting.
1090 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1091 (GTM::gtm_transaction): Support flat and closed nesting.
1092 * alloc.cc (commit_allocations_2): New.
1093 (commit_cb_data): New helper struct.
1094 (GTM::gtm_transaction::commit_allocations): Handle nested
1095 commits/rollbacks.
1096 * libitm.texi: Update user action section, add description of nesting.
1097
10982011-07-28 Torvald Riegel <triegel@redhat.com>
1099
1100 * libitm_i.h: Add closed nesting as restart reason.
1101 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1102
11032011-07-28 Torvald Riegel <triegel@redhat.com>
1104
1105 * useraction.cc: Use vector instead of list to store actions.
1106 Also support partial rollbacks for closed nesting.
1107 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1108 * beginend.cc: Same.
1109
11102011-07-28 Torvald Riegel <triegel@redhat.com>
1111
1112 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1113 closed_nesting flags, as well as a closed nesting alternative.
1114 * method-serial.cc: Same.
1115 (serial_dispatch): Renamed to serialirr_dispatch.
1116 (GTM::dispatch_serialirr): Same.
1117 (serial_dispatch_ul): Renamed to serial_dispatch.
1118 (GTM::dispatch_serial): Same.
1119
11202011-07-28 Torvald Riegel <triegel@redhat.com>
1121
1122 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1123
11242011-07-28 Torvald Riegel <triegel@redhat.com>
1125
1126 * aatree.h (aa_tree::remove): New.
1127 (aa_tree::operator new): Add placement new.
1128
11292011-07-02 Torvald Riegel <triegel@redhat.com>
1130
1131 * containers.h: New file.
1132 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1133 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1134 * common.h: ... to here.
1135 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1136 * local.cc: Same.
1137
11382011-06-30 Torvald Riegel <triegel@redhat.com>
1139
1140 * libitm_i.h (STATE_ABORTING): Remove.
1141 * beginend.cc (_ITM_abortTransaction): Same.
1142 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1143 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1144 (_ITM_rollbackTransaction): Remove.
1145 * beginend.cc: Same.
1146 * libitm.map: Same.
1147 * libitm.texi: Document these ABI changes.
1148
11492011-06-30 Torvald Riegel <triegel@redhat.com>
1150
1151 * libitm.texi: New file.
1152 * Makefile.am: Add libitm.texi.
1153 * Makefile.in: Rebuild.
1154
11552011-06-30 Torvald Riegel <triegel@redhat.com>
1156
1157 * libitm_i.h: Move parts to common.h and dispatch.h.
1158 * common.h: New file.
1159 * dispatch.h: New file, new dispatch class.
1160 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1161 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1162 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1163 decision to retry.cc.
1164 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1165 only.
1166 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1167 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1168 logging.
1169 * barrier.cc: Use new barriers definitions.
1170 (abi_dispatch::memmove_overlap_check): New.
1171 * config/x86/x86_sse.cc: Same.
1172 * config/x86/x86_avx.cc: Same.
1173 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1174 memcpy.cc.
1175 * Makefile.in: Rebuild.
1176 * method-readonly.cc: Remove.
1177 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1178 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1179
11802011-06-30 Torvald Riegel <triegel@redhat.com>
1181
1182 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1183 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1184 * testsuite/libitm.c/dropref-2.c: Same.
1185 * testsuite/libitm.c/dropref.c: Same.
1186
11872011-06-30 Torvald Riegel <triegel@redhat.com>
1188
1189 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1190 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1191 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1192 * alloc_c.cc: Same.
1193 * barrier.tpl: Same.
1194 * beginend.c: Same.
1195 * config/generic/tls.h: Same.
1196 * config/x86/tls.h: Same.
1197 * libitm_i.h: Same.
1198 * memcpy.cc: Same.
1199 * memset.cc: Same.
1200 * method-readonly.cc: Same.
1201 * method-serial.cc: Same.
1202 * method-wbetl.cc: Same.
1203 * retry.cc: Same.
1204
12052011-03-03 Richard Henderson <rth@redhat.com>
1206
1207 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1208 From Patrik Marlier <patrick.marlier@unine.ch>.
1209
12102011-02-03 Richard Henderson <rth@redhat.com>
1211
1212 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1213 * configure.ac: Use it.
1214 * configure, config.h.in: Rebuild.
1215 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1216 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1217 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1218 * libitm.map: Use wildcards to match size_t mangling.
1219
12202010-12-14 Richard Henderson <rth@redhat.com>
1221
1222 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1223 blocks of TIDs per thread.
1224 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1225 (setup_gtm_thr): Return the thread structure.
1226 * config/x86/tls.h (setup_gtm_thr): Likewise.
1227
12282010-12-14 Richard Henderson <rth@redhat.com>
1229
1230 * clone.cc (table_lock): Remove.
1231 (find_clone): Don't take it.
1232 (ExcludeTransaction): New helper class.
1233 (_ITM_registerTMCloneTable): Use it.
1234 (_ITM_deregisterTMCloneTable): Likewise.
1235
12362010-12-14 Richard Henderson <rth@redhat.com>
1237
1238 * config/x86/tls.h: New file.
1239
12402010-07-15 Richard Henderson <rth@redhat.com>
1241
1242 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1243 * Makefile.in: Rebuild.
1244
12452010-07-13 Aldy Hernandez <aldyh@redhat.com>
1246
1247 * method-wbetl.cc (trydropreference): Fix source line.
1248
12492010-07-13 Aldy Hernandez <aldyh@redhat.com>
1250
1251 * libitm.h: Add comment.
1252 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1253
12542010-07-07 Aldy Hernandez <aldyh@redhat.com>
1255
1256 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1257 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1258 available, use pthread mutexes.
1259 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1260 * config.h.in: Regenerate.
1261 * configure: Regenerate.
1262
12632010-07-06 Aldy Hernandez <aldyh@redhat.com>
1264
1265 * libitm.h (ITM_PURE): Define.
1266 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1267
12682010-06-28 Aldy Hernandez <aldyh@redhat.com>
1269
1270 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1271 (validate): Add comment.
1272 (trydropreference): New.
1273 * method-readonly.cc (class readonly_dispatch): Add
1274 trydropreference.
1275 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1276 Call trydropreference().
1277 * libitm.h (_ITM_dropReferences): Remove const attribute.
1278 * method-serial.cc (class serial_dispatch): Add trydropreference.
1279 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1280
12812010-06-28 Aldy Hernandez <aldyh@redhat.com>
1282
1283 * memcpy.cc (do_memcpy): Comment.
1284
12852010-06-25 Aldy Hernandez <aldyh@redhat.com>
1286
1287 * barrier.tpl: Add comments throughout.
1288
12892010-06-24 Aldy Hernandez <aldyh@redhat.com>
1290
1291 * method-wbetl.cc (struct w_entry): Add comments.
1292 (trycommit): Same.
1293 (rollback): Same.
1294
12952010-06-24 Aldy Hernandez <aldyh@redhat.com>
1296
1297 * alloc_c.cc (_ITM_dropReferences): New.
1298 * libitm.map (_ITM_dropReferences): Add.
1299 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1300 * libitm_i.h (struct gtm_transaction): Declare
1301 drop_references_allocations and drop_references_local.
1302 * local.cc (rollback_local): Ignore memory when applicable.
1303 (drop_references_local): New.
1304
13052010-06-23 Richard Henderson <rth@redhat.com>
1306
1307 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1308 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1309 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1310 * config/alpha/target.h: Likewise.
1311 * config/generic/tls.cc (gtm_mask_stack): Use it.
1312
13132010-06-23 Richard Henderson <rth@redhat.com>
1314
1315 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1316 a mutex instead of trying a lock-free compare-and-swap on the list.
1317 (gtm_cacheline_page::operator delete): Likewise.
1318
13192010-06-16 Richard Henderson <rth@redhat.com>
1320
1321 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1322 that overlap the libitm stack.
1323 * barrier.tpl: Mark incoming stack.
1324 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1325 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1326 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1327 * memcpy.cc, memset.cc: Likewise.
1328 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1329 * config/generic/tls.h (gtm_thread): Add stack_top member.
1330 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1331 * libitm_i.h (gtm_mask_stack): Declare.
1332 * config/generic/tls.cc: New file.
1333 * Makefile.am (libitm_la_SOURCES): Add it.
1334 (AM_CXXFLAGS): Turn off exceptions.
1335 * Makefile.in: Rebuild.
1336
13372010-06-16 Richard Henderson <rth@redhat.com>
1338
1339 * alloc.cc (struct gtm_alloc_action): Move definition ...
1340 * libitm_i.h: ... here.
1341 (class gtm_transaction): Declare new and delete.
1342 * beginend.cc (alloc_tx): Reformulate as operator new.
1343 (free_tx): Reformulate as operator delete.
1344 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1345
13462010-06-11 Richard Henderson <rth@redhat.com>
1347
1348 * clone.cc (clone_entry_compare): Fix typo.
1349 From Patrik Marlier <patrick.marlier@unine.ch>.
1350
13512010-05-13 Richard Henderson <rth@redhat.com>
1352
1353 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1354 in extern "C".
1355
13562010-05-07 Aldy Hernandez <aldyh@redhat.com>
1357
1358 * libitm_i.h (struct gtm_transaction): Remove
1359 get_allocation_size.
1360 (record_allocation): Remove size parameter.
1361 * libitm.map (_ITM_realloc): Remove.
1362 * alloc_c.cc (_ITM_realloc): Remove.
1363 (_ITM_malloc): Remove size argument to record_allocation.
1364 (_ITM_calloc): Same.
1365 * alloc_cpp.cc (_ZGTtnwm): Same.
1366 (_ZGTtnwmRKSt9nothrow_t): Same.
1367 (_ZGTtnam): Same.
1368 (_ZGTtnamRKSt9nothrow_t): Same.
1369 * alloc.cc (struct gtm_alloc_action): Remove size.
1370 (get_allocation_size): Remove.
1371 (commit_allocations): Add comment.
1372 (record_allocation): Remove size parameter.
1373 (forget_allocation): Remove set of size.
1374
13752010-04-19 Aldy Hernandez <aldyh@redhat.com>
1376
1377 * Makefile.am (abi_version): New.
1378 (AM_CXXFLAGS): Pass abi_version.
1379 * Makefile.in: Regenerate.
1380 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1381
13822010-04-06 Aldy Hernandez <aldyh@redhat.com>
1383
1384 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1385 _ITM_getTMCloneOrIrrevokable.
1386 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1387 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1388
13892010-03-26 Aldy Hernandez <aldyh@redhat.com>
1390
1391 * configure.ac: Remove Linux futex support.
1392 * configure.tgt (config_path): Same.
1393 * Makefile.am: Same.
1394 * config/linux: Remove entire directory.
1395 * configure: Rebuild.
1396 * Makefile.in: Rebuild.
1397 * testsuite/Makefile.in: Rebuild.
1398
13992010-03-09 Aldy Hernandez <aldyh@redhat.com>
1400
1401 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1402 switching to serial mode.
1403 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1404
14052010-03-03 Aldy Hernandez <aldyh@redhat.com>
1406
1407 * configure.tgt: Add emacs -*- tags.
1408 * barrier.tpl: Same.
1409
14102010-02-23 Aldy Hernandez <aldyh@redhat.com>
1411
1412 * Makefile.am: Rename serial.cc to method-serial.cc.
1413 * Makefile.in: Regenerate with automake 1.11.1.
1414 * testsuite/Makefile.in: Same.
1415 * aclocal.m4: Regenerate with aclocal 1.11.1.
1416 * method-serial.cc: Rename from serial.cc.
1417 * libitm_i.h (struct gtm_transaction): Update comment on
1418 serialirr_mode.
1419
14202010-02-22 Aldy Hernandez <aldyh@redhat.com>
1421
1422 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1423 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1424
14252010-02-11 Aldy Hernandez <aldyh@redhat.com>
1426
1427 * configure: Rebuild.
1428
14292009-11-12 Richard Henderson <rth@redhat.com>
1430
1431 * Rewrite everything in C++.
1432
14332009-11-03 Richard Henderson <rth@redhat.com>
1434
1435 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1436 * Makefile.am (libitm_la_SOURCES): Add them.
1437 * configure.ac (ARCH_X86): New conditional.
1438 * Makefile.in, configure: Rebuild.
1439 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1440 Move futex setup into "other system configury" case.
1441 * local.c (rollback_local): Merge into ...
1442 (GTM_rollback_local): ... here.
1443 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1444 (_ITM_LB): Define as an alias to GTM_LB.
1445
14462009-11-03 Richard Henderson <rth@redhat.com>
1447
1448 * method-readonly.c: New file.
1449 * Makefile.am (libitm_la_SOURCES): Add it.
1450 * Makefile.in: Rebuild.
1451 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1452 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1453 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1454 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1455 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1456 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1457 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1458 gtm_get_clock, gtm_inc_clock): New.
1459 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1460 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1461 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1462 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1463 replace uses with new libitm_i.h symbols.
1464 (dispatch_wbetl): Rename from wbetl_dispatch.
1465 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1466 away from dispatch_readonly; abort if the beginTransaction call
1467 asserted that the transaction was readonly.
1468
14692009-11-03 Richard Henderson <rth@redhat.com>
1470
1471 * memset.c: New file.
1472 * Makefile.am (libitm_la_SOURCES): Add it.
1473 * Makefile.in: Rebuild.
1474 * testsuite/libitm.c/memset-1.c: New.
1475
14762009-11-03 Richard Henderson <rth@redhat.com>
1477
1478 * dispatch.c: Remove file.
1479 * useraction.c (struct gtm_user_action): Move from libitm.h.
1480 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1481 (serial_memset, serial_memmove, serial_memcpy): Remove.
1482 (serial_W*, serial_R*): Remove.
1483 (serial_dispatch): Update to match.
1484 * configure.ac: Move Werror down below configure checks. Don't
1485 check for sys/loadavg.h, do check for malloc.h. Don't check for
1486 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1487 Use GCC_AC_FUNC_MMAP_BLACKLIST
1488 * libitm.h: Split out all internal items to...
1489 * libitm_i.h: ... here. New file.
1490 * copymask.c: New file.
1491 * local.c (struct gtm_local_undo): Move from libitm.h.
1492 (GTM_alloc_local): Rename from alloc_local; export.
1493 * memcpy.c: New file.
1494 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1495 * config/posix/page.c: New file.
1496 * config/posix/target_tls.h: Remove file.
1497 * barrier.c: New file.
1498 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1499 copymask.c, page.c.
1500 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1501 * method-wbetl.c: Rewrite for new cacheline methods.
1502 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1503
1504 * config/alpha/sjlj.S: Fix typo.
1505 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1506 * config/alpha/copymask.c: New file.
1507 * config/alpha/target.h (CACHELINE_SIZE): New.
1508 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1509
1510 * config/x86/target_i.h: Copy functions from x86/target.h.
1511 * config/x86/copymask.c: New file.
1512 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1513 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1514 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1515 * config/x86/target_tls.h: Move contents to target_i.h.
1516
1517 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1518 * testsuite/libitm.c/memcpy-1.c: New.
1519
15202009-10-22 Richard Henderson <rth@redhat.com>
1521
1522 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1523 (AM_CCASFLAGS): New.
1524 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1525 saving/restoring _AC_ARG_VAR_PRECIOUS.
1526 * Makefile.in, aclocal.m4, config.h.in, configure,
1527 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1528
15292009-10-22 Richard Henderson <rth@redhat.com>
1530
1531 * testsuite/*: Update for new compiler syntax.
1532
15332009-10-21 Richard Henderson <rth@redhat.com>
1534
1535 * libitm.h (_ITM_abortReason): Add outerAbort.
1536
15372009-08-03 Richard Henderson <rth@redhat.com>
1538
1539 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1540 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1541 * method-wbetl.c (struct w_entry): Remove mask.
1542 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1543 adjust all callers.
1544
15452009-07-22 Richard Henderson <rth@redhat.com>
1546
1547 * eh_cpp.c: New file.
1548 * Makefile.am (libitm_la_SOURCES): Add it.
1549 * Makefile.in: Rebuild.
1550 * beginend.c (GTM_rollback_transaction): Undo exception state.
1551 (GTM_trycommit_transaction): Mark inline.
1552 (GTM_trycommit_and_finalize_transaction): Split out from ...
1553 (_ITM_commitTransaction): ... here.
1554 (_ITM_commitTransactionEH): New function.
1555 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1556 cxa_unthrown, eh_in_flight; reorder.
1557
1558 * testsuite/libitm.c++/c++.exp: New.
1559 * testsuite/libitm.c++/eh-1.C: New.
1560
1561 * aatree.c (aa_free): Remove REGPARM.
1562 * aatree.h: Remove all REGPARM.
1563
15642009-07-18 Richard Henderson <rth@redhat.com>
1565
1566 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1567 * Makefile.am (libitm_la_SOURCES): Add them.
1568 * Makefile.in: Rebuild.
1569 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1570 (GTM_trycommit_transaction): Likewise.
1571 * libitm.h: Include aatree.h
1572 (struct gtm_alloc_action): New.
1573 (struct gtm_transaction): Add alloc_actions.
1574 (GTM_record_allocation, GTM_forget_allocation): Declare.
1575 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1576 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1577 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1578 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1579 _ZGTtdaPvRKSt9nothrow_t): Export.
1580
15812009-07-18 Richard Henderson <rth@redhat.com>
1582
1583 * target_tls.h: Move ...
1584 * config/posix/target_tls.h: ... here.
1585
15862009-07-07 Richard Henderson <rth@redhat.com>
1587
1588 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1589
15902009-07-07 Richard Henderson <rth@redhat.com>
1591
1592 * Update to GPL3.
1593
15942009-07-07 Richard Henderson <rth@redhat.com>
1595
1596 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1597 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1598
1599 * configure.tgt: Don't use -ftls-model for x86 linux.
1600 * libitm.h: Include target.h after standard includes.
1601 (_gtm_thr): Rename from gtm_thr.
1602 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1603 (gtm_disp, set_gtm_disp): New.
1604 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1605 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1606 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1607
16082009-07-07 Richard Henderson <rth@redhat.com>
1609
1610 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1611
16122009-07-06 Richard Henderson <rth@redhat.com>
1613
1614 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1615 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1616 (_ITM_beginTransaction): Take variadic arguments.
1617 (_ITM_registerThrownObject): Declare.
1618 * beginend.c, serial.c: Update.
1619 * libitm.map: Add _ITM_registerThrownObject.
1620
16212009-01-28 Richard Henderson <rth@redhat.com>
1622
1623 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1624 * Makefile.in: Rebuild.
1625 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1626 (GTM_restart_transaction): Fix uninstrumented code check.
1627 * retry.c (GTM_decide_retry_strategy): Add serial check.
1628 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1629 automatically go irrevokable when in serial mode.
1630 * clone.c: New file.
1631 * libitm.h, libitm.map: Update.
1632
16332009-01-27 Richard Henderson <rth@redhat.com>
1634
1635 * Makefile.am (LTCCASCOMPILE): Define.
1636 (libitm_la_SOURCES): Add methid-wbetl.c.
1637 * testsuite/Makefile.am: New
1638 * configure.ac: Add testsuite/Makefile.
1639 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1640 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1641 (_ITM_abortTransaction): Finalize implementation method; pass
1642 transaction properties to longjmp.
1643 (GTM_restart_transaction): Split out from ...
1644 (_ITM_commitTransaction): ... here.
1645 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1646 Move to config/x86/target.h.
1647 * config/linux/alpha/futex_bits.h: New.
1648 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1649 * config/x86/target.h: Disable target types for 32-bit.
1650 * config/alpha/sjlj.S, config/alpha/target.h: New.
1651 * libitm.h (struct gtm_dispatch): Add init, fini.
1652 (enum restart_reason): New.
1653 (struct gtm_transaction): Add method and restarts.
1654 * retry.c (GTM_decide_retry_strategy): Implement.
1655 * serial.c (serial_init, serial_fini): New.
1656 (GTM_serialmode): Finialize outgoing method.
1657 * method-wbetl.c: New.
1658
16592008-12-09 Richard Henderson <rth@redhat.com>
1660
1661 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1662 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1663 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1664 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1665 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1666 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1667 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1668 * serial.c (serial_R##T, serial_W##T): Likewise.
1669
16702008-11-21 Richard Henderson <rth@redhat.com>
1671
1672 * Initial commit.