]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
3c698bf0
RO
12014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
4 -mclear-hwcap instead.
5 * configure: Regenerate.
6 * clearcap.map: Remove.
7
dbed5a9b
JM
82014-05-21 John Marino <gnugcc@marino.st>
9
10 * configure.tgt (*-*-dragonfly*): New target.
11
b17f08dd
RH
122014-05-19 Richard Henderson <rth@redhat.com>
13
14 * config/aarch64/sjlj.S: New file.
15 * config/aarch64/target.h: New file.
16 * configure.tgt: Enable aarch64.
17
5e1f630a
RO
182014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19
20 * config/generic/asmcfi.h: Also check for
21 __GCC_HAVE_DWARF2_CFI_ASM.
22
84c2f4b0
RH
232013-04-02 Richard Henderson <rth@redhat.com>
24
25 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
26 * config/arm/target.h, config/sh/target.h: Likewise.
27 * config/sparc/target.h, config/x86/target.h: Likewise.
28
7cc51d64
JJ
292014-03-26 Jakub Jelinek <jakub@redhat.com>
30
31 * config/linux/futex_bits.h: Include errno.h.
32 (sys_futex0): If syscall returns -1, return -errno rather than
33 -1.
34
c288ec8f
JM
352014-03-26 Joseph Myers <joseph@codesourcery.com>
36
37 * libitm.texi (Index): Rename to Library Index.
38
ed100f5d
L
392014-01-13 H.J. Lu <hongjiu.lu@intel.com>
40
41 PR libitm/53113
42 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
43 (x86_avx.lo): Append -mavx to CXXFLAGS.
44 * Makefile.in: Regenerate.
45
f93608e6
RS
462014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
47
48 Update copyright years
49
98db73df
TB
502014-01-02 Tobias Burnus <burnus@net-b.de>
51
52 * libitm.texi: Bump @copying's copyright year.
53
b54214fe
UW
542013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
55
56 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
57 (FUNC): Define ELFv2 variant.
58 (END): Likewise.
59 (HIDDEN): Likewise.
60 (CALL): Likewise.
61 (BASE): Likewise.
62 (LR_SAVE): Likewise.
63
3cbe17f7
AM
642013-09-20 Alan Modra <amodra@gmail.com>
65
66 * configure: Regenerate.
67
6fb471d8
TR
682013-08-30 Torvald Riegel <triegel@redhat.com>
69
70 * config/posix/rwlock.cc: Fix initialization order.
71
bec9ec3f
TR
722013-08-30 Torvald Riegel <triegel@redhat.com>
73
74 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
75 (htm_fastpath): Assign an asm name.
76 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
77 HTM fast paths.
78 (_ITM_actions): Likewise.
79 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
80 x86_64.
81 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
82 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
83 field to the start of the structure.
84 * config/linux/rwlock.h (gtm_rwlock): Update comments.
85 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
86 handling for custom HTM fast paths.
87
1869217f
AK
882013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
89 Revert:
90 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
91
92 * configure.tgt: Add -msoft-float to XCFLAGS.
93
d62d5152
AK
942013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
95
96 * configure.tgt: Add -msoft-float to XCFLAGS.
97
aaaffb2a
AK
982013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
99
100 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
101 (htm_transaction_active): Enable zEC12 instructions in the
102 assembler.
103 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
104
167f68ed
AK
1052013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
106
107 * acinclude.m4: Add htm asm check for s390.
108 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
109 * configure: Regenerate.
110 * config/s390/target.h: Remove __HTM__ check.
111 (htm_available): Call getauxval to get hwcaps and check whether
112 HTM is available or not.
113
0258b6e4
PB
1142013-07-15 Peter Bergner <bergner@vnet.ibm.com>
115
116 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
117 * configure.ac: Use it.
118 (AC_CHECK_HEADERS): Check for sys/auxv.h.
119 (AC_CHECK_FUNCS): Check for getauxval.
120 * config.h.in, configure: Rebuild.
121 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
122 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
123 (USE_HTM_FASTPATH): Define.
124 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
125 _HTM_RETRIES) New macros.
126 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
127 htm_begin_success, htm_commit, htm_transaction_active): New functions.
128
5a3fe9b6
AK
1292013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
130
131 * config/s390/target.h: Include htmintrin.h.
132 (_HTM_ITM_RETRIES): New macro definition.
133 (htm_available, htm_init, htm_begin, htm_begin_success)
134 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
135
6c84d576
IS
1362013-06-20 Iain Sandoe <iain@codesourcery.com>
137 Cesar Philippidis <cesar@codesourcery.com>
138
139 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
140 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
141 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
142 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
143
480c696b
TR
1442013-06-20 Torvald Riegel <triegel@redhat.com>
145
146 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
147 (_ITM_getTransactionId): Same.
148 * config/x86/target.h (htm_transaction_active): New.
149
b1db457b
TR
1502013-06-20 Torvald Riegel <triegel@redhat.com>
151
152 PR libitm/57643
153 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
154 the HTM fastpath.
155
51249377
GP
1562013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
157
158 PR bootstrap/56714
159 * local_atomic (__always_inline): Always define our version.
160 (__calculate_memory_order): Mark inline.
161 (atomic_thread_fence): Ditto.
162 (atomic_signal_fence): Ditto.
163 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
164 (atomic_bool::atomic_flag_clear_explicit): Ditto.
165 (atomic_bool::atomic_flag_test_and_set): Ditto.
166 (atomic_bool::atomic_flag_clear): Ditto.
167
f818478b
JJ
1682013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
169
170 * config/s390/sjlj.S: New file.
171 * config/s390/target.h: New file.
172 * configure.tgt: Set options for S/390.
173
ab4425be
AK
1742013-03-23 Andi Kleen <ak@linux.intel.com>
175
176 * local_atomic (__always_inline): Add.
177 (__calculate_memory_order, atomic_thread_fence,
178 atomic_signal_fence, test_and_set, clear, store, load,
179 exchange, compare_exchange_weak, compare_exchange_strong,
180 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
181 Add __always_inline to force inlining.
182
6c59ffd1
IS
1832013-02-11 Iain Sandoe <iain@codesourcery.com>
184 Jack Howarth <howarth@bromo.med.uc.edu>
185 Patrick Marlier <patrick.marlier@gmail.com>
186
187 PR libitm/55693
188 * alloc_cpp.cc: Enable function declarations on darwin.
189 * eh_cpp.cc: Likewise.
190
75f9527c
RS
1912013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
192
193 Update copyright years.
194
64fbcc74
TR
1952012-11-09 Torvald Riegel <triegel@redhat.com>
196
197 * beginend.cc (htm_fastpath): New.
198 (gtm_thread::begin_transaction, _ITM_commitTransaction,
199 _ITM_commitTransactionEH): Add HTM fastpath handling.
200 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
201 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
202 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
203 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
204 * configure.tgt: Add -mrtm to XCFLAGS.
205 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
206 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
207 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
208 * retry.cc (parse_default_method): Add HTM method parsing.
209 (gtm_thread::number_of_threads_changed): Use HTM by default if
210 available.
211
b9efc877
TS
2122012-11-04 Thomas Schwinge <thomas@codesourcery.com>
213
214 * configure: Regenerate.
215
07d3b5c8
RH
2162012-10-31 Richard Henderson <rth@redhat.com>
217
218 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
219 * configure.ac: Use it.
220 * config.h.in, configure: Rebuild.
221 * testsuite/Makefile.in: Rebuild.
222
eb00e959
TR
2232012-10-24 Torvald Riegel <triegel@redhat.com>
224
225 * libitm.texi: Clarify ABI requirements for data-logging functions.
226
b679c813
TR
2272012-10-24 Torvald Riegel <triegel@redhat.com>
228
229 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
230 it requires serial mode instead of assuming that for certain
231 dispatchs.
232 * dispatch.h (abi_dispatch::requires_serial): New.
233 (abi_dispatch::abi_dispatch): Adapt.
234 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
235 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
236 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
237 serial_dispatch::serial_dispatch,
238 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
239
0c609a21
UB
2402012-10-02 Uros Bizjak <ubizjak@gmail.com>
241
242 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
243 and ia32 declarations some more.
244 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
245
c0758df9
JJ
2462012-09-20 Jakub Jelinek <jakub@redhat.com>
247
248 PR other/43620
249 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
250 * configure: Regenerate.
251 * Makefile.in: Regenerate.
252
690c45b8
DE
2532012-09-14 David Edelsohn <dje.gcc@gmail.com>
254
255 * configure: Regenerated.
256
68a12ef3
UB
2572012-07-31 Uros Bizjak <ubizjak@gmail.com>
258
259 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
260
f2f9a097
PM
2612012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
262
263 * eh_cpp.cc: Fix __cxa_end_catch declaration.
264
e6d5f8c9
L
2652012-05-16 H.J. Lu <hongjiu.lu@intel.com>
266
267 * configure: Regenerated.
268
0100e3b3
L
2692012-04-04 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR libitm/52854
272 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
273 for x86-64.
274
2f6935f4
TG
2752012-04-03 Tristan Gingold <gingold@adacore.com>
276
277 * configure: Regenerate.
278
b9c23a61
L
2792012-03-31 H.J. Lu <hongjiu.lu@intel.com>
280
281 PR bootstrap/52812
282 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
283
6a26a74d
BRF
2842012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
285
286 * testsuite/lib/libitm.exp: load fortran-modules.exp
287
b24513a1
RO
2882012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
289
290 * configure.tgt (*-*-irix6*): Remove.
291
0d23faac
TR
2922012-03-13 Torvald Riegel <triegel@redhat.com>
293
294 PR libitm/52526
295 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
296 wake-up.
297
5c30094f
RO
2982012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
299
300 * configure.tgt (*-*-osf*): Remove.
301 * configure: Regenerate.
302
d28b0b08
TR
3032012-03-05 Torvald Riegel <triegel@redhat.com>
304
305 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
306 memtransfer/memset if size isn't larger than zero.
307
034209bc
TR
3082012-03-02 Torvald Riegel <triegel@redhat.com>
309
310 * libitm.texi: Link to specification and add a usage example.
311
bc8da6ba
TR
3122012-02-24 Torvald Riegel <triegel@redhat.com>
313
314 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
315 default dispatch for more than 1 thread to ml_wt.
316
63b08143
TR
3172012-02-20 Torvald Riegel <triegel@redhat.com>
318
319 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
320
4c9bd6ac
TR
3212012-02-20 Torvald Riegel <triegel@redhat.com>
322
323 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
324
651ff415
TR
3252012-02-20 Torvald Riegel <triegel@redhat.com>
326
327 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
328 serial mode corner cases made obsolete by prior gtm_rwlock changes.
329 (gl_wt_dispatch.rollback): Same.
330
efee0113
TR
3312012-02-20 Torvald Riegel <triegel@redhat.com>
332
333 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
334
33a03827
TR
3352012-02-20 Torvald Riegel <triegel@redhat.com>
336
337 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
338 for RfW src. Optimize number of calls to gtm_thr.
339
a19db3f2
TR
3402012-02-20 Torvald Riegel <triegel@redhat.com>
341
342 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
343 acquisition to ...
344 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
345 (default_dispatch): Make atomic.
346 (GTM::gtm_thread::set_default_dispatch): Access atomically.
347 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
348 use decide_begin_dispatch() if default_dispatch might have changed.
349 (GTM::gtm_thread::number_of_threads_changed): Initialize
350 default_dispatch here.
351
e948a1fb
IS
3522012-02-15 Iain Sandoe <iains@gcc.gnu.org>
353 Patrick Marlier <patrick.marlier@gmail.com>
354
355 PR libitm/52220
356 * alloc_cpp.cc: No dummy definitions for darwin.
357 * eh_cpp.cc: Likewise.
358
72824d5e
RH
3592012-02-14 Richard Henderson <rth@redhat.com>
360
361 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
362
1f319dba
UB
3632012-02-14 Uros Bizjak <ubizjak@gmail.com>
364
365 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
366
31772c95
TR
3672012-02-14 Torvald Riegel <triegel@redhat.com>
368
369 * libitm_i.h (GTM::gtm_rwlog_entry): New.
370 (GTM::gtm_thread): Add read and write logs.
371 (GTM::dispatch_ml_wt): Declare.
372 * retry.cc (parse_default_method): Support ml_wt.
373 * method-ml.cc: New file.
374 * Makefile.am: Add method-ml.cc.
375 * Makefile.in: Regenerate.
376
5b9cf5d2
TR
3772012-02-14 Torvald Riegel <triegel@redhat.com>
378
379 * dispatch.h (GTM::abi_dispatch::supports): New.
380 (GTM::method_group::reinit): New.
381 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
382 (GTM::gtm_thread::number_of_threads_changed): Check that the method
383 supports the current situation.
384
7d33bcb7
TR
3852012-02-14 Torvald Riegel <triegel@redhat.com>
386
387 * util.cc (GTM::xcalloc): New.
388 * common.h (GTM::xcalloc): Declare.
389
62513f7b
EB
3902012-02-14 Eric Botcazou <ebotcazou@adacore.com>
391
392 * config/sparc/target.h (cpu_relax): Read from CC register.
393 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
394
3952012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
396
397 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
398
f3f5e3c3
EB
3992012-02-13 Eric Botcazou <ebotcazou@adacore.com>
400
62513f7b 401 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
402 * config/sparc/cacheline.h: New file.
403 * config/sparc/target.h: Likewise.
404 * config/sparc/sjlj.S: Likewise.
405 * config/linux/sparc/futex_bits.h: Likewise.
406
4072012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
408
409 * configure.ac (link_itm): Fix comment.
410 * configure: Regenerate.
411 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
412
681355e3
RO
4132012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
414
fc985d2f 415 PR libitm/51822
62513f7b 416 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
417 Correct libgomp references.
418
999bcff5
TR
4192012-01-24 Torvald Riegel <triegel@redhat.com>
420
421 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
422 wake-up.
423
9848887a
UB
4242012-01-24 Uros Bizjak <ubizjak@gmail.com>
425
426 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
427 end of structure.
428 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
429 offset values. Do not copy return address. Decrement stack
430 by 56 bytes only.
431 (GTM_longjump) [__x86_64__]: Update offset values.
432
5752c591
UB
4332012-01-23 Uros Bizjak <ubizjak@gmail.com>
434
435 PR libitm/51830
436 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
437 the first function argument to %eax.
438
61e72ca4
RO
4392012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
440
441 * libitm.h (_ITM_getThreadnum): Remove.
442 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
443
9ce91011
RO
4442012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
445
446 * clearcap.map: New file.
447 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
448 * configure.ac: Call it.
449 Clear HWCAP_LDFLAGS if defaulting to -mavx.
450 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
451 * configure: Regenerate.
452 * Makefile.in: Regenerate.
453 * testsuite/Makefile.in: Regenerate.
454
3b4f05ec
RO
4552012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456
457 PR libitm/51173
458 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
459 include, exclude options.
460
aab74ee9
TR
4612012-01-14 Torvald Riegel <triegel@redhat.com>
462
463 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
464 rolling back.
465 * containers.h (GTM::vector::set_size): New.
466
07b6642b
TR
4672012-01-14 Torvald Riegel <triegel@redhat.com>
468
469 PR libitm/51855
470 * config/generic/tls.h (GTM::mask_stack_top): New.
471 (GTM::mask_stack_bottom): Declare.
472 * config/generic/tls.c (GTM::mask_stack_bottom): New.
473 * local.cc (gtm_undolog::rollback): Filter out any updates that
474 overlap the libitm stack. Add current transaction as parameter.
475 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
476 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
477 * testsuite/libitm.c/stackundo.c: New test.
478
8377e5e5
RH
4792012-01-10 Richard Henderson <rth@redhat.com>
480
481 * libitm_i.h (_Unwind_DeleteException): Declare weak.
482 * eh_cpp.cc (_Unwind_DeleteException): Define for
483 !HAVE_ELF_STYLE_WEAKREF.
484
11f30bb0
TR
4852012-01-08 Torvald Riegel <triegel@redhat.com>
486
487 * local.cc (GTM_LB): Use GTM::gtm_undolog.
488 (GTM::gtm_thread::drop_references_undolog): Remove.
489 (GTM::gtm_thread::commit_undolog,
490 GTM::gtm_thread::rollback_undolog): Move to ...
491 * libitm_i.h (GTM::gtm_undolog): ...here. New.
492 (GTM::gtm_undolog_entry): Remove.
493 (GTM::gtm_thread): Adapt.
494 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
495 (GTM::gtm_thread::trycommit): Adapt.
496 * method-serial.cc (serial_dispatch::log): Adapt.
497 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
498 (gl_wt_dispatch::store): Fix likely/unlikely.
499 * containers.h (GTM::vector::resize): Add additional_capacity
500 parameter and handle it.
501 (GTM::vector::resize_noinline): New/adapt.
502 (GTM::vector::push): New.
503
a32e5e93
RH
5042012-01-06 Richard Henderson <rth@redhat.com>
505
506 * configure.tgt: Support powerpc-linux and powerpc-darwin.
507 * config/linux/powerpc/futex_bits.h: New file.
508 * config/powerpc/cacheline.h: New file.
509 * config/powerpc/sjlj.S: New file.
510 * config/powerpc/target.h: New file.
511 * config/generic/asmcfi.h (cfi_offset): New.
512 (cfi_restore, cfi_undefined): New.
513
1f53a8e6
AH
5142012-01-05 Aldy Hernandez <aldyh@redhat.com>
515
516 PR other/51171
517 * testsuite/libitm.c/reentrant.c: Remove xfail.
518 (thread): Pass x to pure().
be223aaf 519 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 520
c898f7b8
TR
5212011-12-24 Torvald Riegel <triegel@redhat.com>
522
523 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
524 privatization safety if already in serial mode.
525
610e3901
TR
5262011-12-24 Torvald Riegel <triegel@redhat.com>
527
528 * beginend.cc (GTM::gtm_thread::restart): Add and handle
529 finish_serial_upgrade parameter.
530 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
531 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
532 Don't unset reader flag.
533 (GTM::gtm_rwlock::write_upgrade_finish): New.
534 * config/posix/rwlock.cc: Same.
535 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
536 Declare.
537 * config/posix/rwlock.h: Same.
538 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
539 flag after commit or after rollback when restarting.
540
799142bf
TR
5412011-12-24 Torvald Riegel <triegel@redhat.com>
542
543 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
544 (GTM::gtm_thread::try_commit): Changed memory order.
545 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
546 as parameter.
547 * config/linux/x86/futex_bits.h (sys_futex0): Same.
548 * config/linux/sh/futex_bits.h (sys_futex0): Same.
549 * config/linux/futex_bits.h (sys_futex0): Same.
550 * config/linux/futex.cc (futex_wait, futex_wake): Same.
551 * config/linux/futex.h (futex_wait, futex_wake): Same.
552 * config/linux/rwlock.h (gtm_rwlock::writers,
553 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
554 ints.
555 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
556 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
557 gtm_rwlock::write_unlock): Fix memory orders and fences.
558 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
559 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
560 gtm_rwlock::write_unlock): Same.
561 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
562 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
563 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
564 Add comments.
565 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
566 gl_wt_dispatch::load, gl_wt_dispatch::store,
567 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
568 orders and fences. Add comments.
569
b0f96e35
JJ
5702011-12-21 Jakub Jelinek <jakub@redhat.com>
571
572 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
573 * Makefile.in: Regenerated.
574
cc163247
KK
5752011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
576
577 * configure.tgt: Add sh* case.
578 * config/sh/target.h: New file.
579 * config/sh/sjlj.S: New file.
580 * config/linux/sh/futex_bits.h: New file.
581
aebac0ca
RH
5822011-12-14 Richard Henderson <rth@redhat.com>
583
584 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
585 * config/arm/sjlj.S, config/arm/target.h: New files.
586 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
587 (cfi_rel_offset): New.
588 * config/linux/futex_bits.h: New file.
589 * config/linux/futex.cc: Include futex_bits.h here...
590 * config/linux/futex.h: ... not here.
591 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
592 * configure.ac (ARCH_AM): New conditional.
593 * Makefile.in, configure: Rebuild.
594 * configure.tgt: Handle ARM.
595
36cfbee1
RH
5962011-12-13 Richard Henderson <rth@redhat.com>
597
5d9d05d3
RH
598 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
599 signed/unsigned comparison werror.
600
36cfbee1
RH
601 * local_atomic: New file.
602 * libitm_i.h: Include it.
603 (gtm_thread::shared_state): Use atomic template.
604 * beginend.cc (GTM::gtm_clock): Use atomic template.
605 (global_tid): Use atomic template if 64-bit atomics available.
606 (gtm_thread::gtm_thread): Update shared_state access.
607 (gtm_thread::trycommit): Likewise.
608 (choose_code_path): Update global_tid access.
609 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
610 * stmlock.h (GTM::gtm_clock): Use atomic template.
611 (gtm_get_clock, gtm_inc_clock): Update accesses.
612 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
613 redundant __sync_synchronize after atomic shared_state access.
614 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
615 (gtm_rwlock::write_lock_generic): Likewise.
616 (gtm_rwlock::read_unlock): Likewise.
617 * config/alpha/target.h (atomic_read_barrier): Remove.
618 (atomic_write_barrier): Remove.
619 * config/x86/target.h (atomic_read_barrier): Remove.
620 (atomic_write_barrier): Remove.
621
062f93f2
RH
6222011-11-30 Richard Henderson <rth@redhat.com>
623
624 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
625 * beginend.c (_ITM_abortTransaction): Update to match.
626 (GTM::gtm_thread::restart): Likewise.
627 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
628 * config/x86/sjlj.S (GTM_longjmp): Likewise.
629
bd8aaa86
IS
6302011-11-23 Iain Sandoe <iains@gcc.gnu.org>
631
632 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
633 * Makefile.in: Regenerate.
634
8cf36bb3
IS
6352011-11-22 Iain Sandoe <iains@gcc.gnu.org>
636
637 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
638 * alloc_cpp.cc: Generate dummy functions if we don't
639 HAVE_ELF_STYLE_WEAKREF.
640 * eh_cpp.cc: Likewise.
641 * configure: Regenerate.
642 * aclocal.m4: Likewise.
643 * config.h.in: Likewise.
644 * Makefile.in: Likewise.
645 * testsuite/Makefile.in: Likewise.
646
0b41ebef
IS
6472011-11-22 Iain Sandoe <iains@gcc.gnu.org>
648
649 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
650 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 651 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
652 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
653 in portability to non-elf targets.
8cf36bb3 654 (GTM_longjmp): Likewise.
0b41ebef
IS
655 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
656 where required.
657
9c9d352a
IS
6582011-11-22 Iain Sandoe <iains@gcc.gnu.org>
659
660 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
661 * testsuite/libitm.c/memset-1.c: Likewise.
662
c6084f68
AT
6632011-11-21 Andreas Tobler <andreast@fgznet.ch>
664
665 * configure: Regenerate.
666
adcd36bc
RO
6672011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
668
669 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
670 (LIBITM_ENABLE_SYMVERS): Handle sun style.
671 * Makefile.am: Handle sun style versioning.
672 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
673 * configure: Regenerate.
674 * Makefile.in: Regenerate.
675
59659b59
RO
6762011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
677
678 * config/generic/asmcfi.h: Fix comment.
679 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
680 sequence without .hidden support, error for non-ELF targets.
681 (GTM_longjmp) [__ELF__]: Only use .hidden if
682 HAVE_ATTRIBUTE_VISIBILITY.
683
d846e425
RO
6842011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685
686 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
687 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
688 Dummy functions.
689 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
690 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
691
80713347
UB
6922011-11-16 Uros Bizjak <ubizjak@gmail.com>
693
694 PR bootstrap/51098
695 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
696 * configure: Regenerate.
697
2841f85e
L
6982011-11-14 H.J. Lu <hongjiu.lu@intel.com>
699
700 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
701
8851b429
RO
7022011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703
704 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
705 .hidden.
706 (.note.GNU-stack): Only use if __linux__.
707 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
708 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
709 * testsuite/libitm.c/reentrant.c: Likewise.
710 * testsuite/libitm.c/simple-2.c: Likewise.
711 * testsuite/libitm.c/txrelease.c: Likewise.
712 * testsuite/libitm.c++/static_ctor.C: Likewise.
713
d4b17902
RH
7142011-11-10 Richard Henderson <rth@redhat.com>
715
716 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
717 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
718 * configure.ac (ARCH_X86_AVX): New conditional.
719 * Makefile.in, configure: Rebuild.
720
430616e7
RH
7212011-11-09 Richard Henderson <rth@redhat.com>
722
723 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
724 * configure.ac: Use it.
725 * config.h.in, configure: Rebuild.
726 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
727
79b1edb6
RH
7282011-11-09 Richard Henderson <rth@redhat.com>
729
730 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
731 * config/alpha/unaligned.h: Remove file.
732 * config/generic/unaligned.h: Remove file.
733 * config/x86/unaligned.h: Remove file.
734 * config/generic/cachepage.h: Remove file.
735 * config/posix/cachepage.cc: Remove file.
736 * config/generic/cacheline.cc: Remove file.
737 * config/x86/cacheline.cc: Remove file.
738 * config/generic/cacheline.h (gtm_cacheline): Remove the
739 store_mask, copy_mask, copy_mask_wb methods.
740 * config/x86/cacheline.h: Likewise.
741 * config/alpha/cacheline.h: Fall back to generic after setting size.
742 * config/generic/tls.cc (gtm_mask_stack): Remove.
743 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
744 (GTM_vpalignr_table): Remove.
745 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
746 (GTM_pshift_table): Remove.
747 * config/libitm_i.h: Don't include cachepage.h.
748 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
749 * Makefile.in, testsuite/Makefile.in: Rebuild.
750
4bdd090f
RH
7512011-11-09 Richard Henderson <rth@redhat.com>
752
8ee9fac2
RH
753 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
754 to emit branch prediction hint.
755
9bdc6343
RH
756 * config/x86/sjlj.S: Protect elf directives with __ELF__.
757 Protect .note.GNU-stack with __linux__.
758
4bdd090f
RH
759 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
760 * configure, aclocal.m4, config.h.in: Rebuild.
761 * config/generic/asmcfi.h: New file.
762 * config/x86/sjlj.S: Use it.
763
4408b086
RH
7642011-11-08 Richard Henderson <rth@redhat.com>
765
766 * local.cc (_ITM_LB): Use a normal call, not a function alias.
767
01f3428c
RH
7682011-11-08 Richard Henderson <rth@redhat.com>
769
3d3b05ff
RH
770 * configure.tgt: Test correct directory for supported cpus.
771
01f3428c
RH
772 * configure.ac: Exit if unsupported.
773 * configure: Rebuild.
774 * configure.tgt: Delete boilerplate from libgomp for unsupported
775 targets. Set UNSUPPORTED for unsupported targets.
776
07f03cd3
RO
7772011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
778
779 * configure.tgt: Handle i386 like i[456]86.
780 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
781 take address.
782 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
783 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
784
0a35513e
AH
7852011-11-05 Aldy Hernandez <aldyh@redhat.com>
786
787 * method-wbetl.cc: Update copyright notice.
788 * aatree.cc: Same.
789 * util.cc: Same.
790 * libitm.h: Same.
791 * memset.cc: Same.
792 * eh_cpp.cc: Same.
793 * barrier.tpl: Same.
794 * useraction.cc: Same.
795 * stmlock.h: Same.
796 * memcpy.cc: Same.
797 * common.h: Same.
798 * config/generic/tls.cc: Same.
799 * config/generic/cacheline.h: Same.
800 * config/generic/cachepage.h: Same.
801 * config/generic/cacheline.cc: Same.
802 * config/generic/unaligned.h: Same.
803 * config/x86/cacheline.h: Same.
804 * config/x86/cacheline.cc: Same.
805 * config/x86/unaligned.h: Same.
806 * config/alpha/cacheline.h: Same.
807 * config/alpha/unaligned.h: Same.
808 * config/alpha/sjlj.S: Same.
809 * config/posix/cachepage.cc: Same.
810 * config/linux/futex.h: Same.
811 * config/linux/alpha/futex_bits.h: Same.
812
8132011-11-04 Torvald Riegel <triegel@redhat.com>
814
815 * libitm.texi: No cover text and invariant sections.
816
8172011-11-03 Richard Henderson <rth@redhat.com>
818
819 * local_type_traits: New file.
820 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
821
8222011-11-03 Richard Henderson <rth@redhat.com>
823
824 * configure.ac: Don't test for gfortran.
825 * configure: Rebuild.
826
827 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
828 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
829
8302011-11-03 Aldy Hernandez <aldyh@redhat.com>
831
832 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
833 * testsuite/libitm.c/memset-1.c: Same.
834 * testsuite/libitm.c/c.exp: Same.
835 * testsuite/lib/libitm-dg.exp: Same.
836 * testsuite/lib/libitm.exp: Same.
837 * testsuite/libitm.c++/c++.exp: Same.
838
8392011-11-03 Aldy Hernandez <aldyh@redhat.com>
840
841 * testsuite/config/default.exp: Update copyright date.
842 * configure.ac: Add copyright info.
843 * configure.tgt: Same.
844
8452011-11-03 Aldy Hernandez <aldyh@redhat.com>
846
847 * testsuite/libitm.c/reentrant.c: XFAIL.
848 * testsuite/libitm.c++/static_ctor.C: XFAIL.
849
8502011-10-29 Torvald Riegel <triegel@redhat.com>
851
852 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
853 handle aborts.
854 (_ITM_abortTransaction): Handle aborts of outer transactions.
855 * libitm_i.h: Same.
856 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
857 * libitm.texi: Document aborts of outer transactions.
858 * testsuite/libitm.c/cancel.c: New file.
859
8602011-10-19 Torvald Riegel <triegel@redhat.com>
861
862 * testsuite/*: Change __transaction to __transaction_atomic or
863 __transaction_relaxed.
864
8652011-10-19 Torvald Riegel <triegel@redhat.com>
866
867 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
868 (gtm_thr): Same.
869
8702011-10-19 Torvald Riegel <triegel@redhat.com>
871
872 * libitm_i.h: Add gl_wt dispatch.
873 * retry.cc (parse_default_method): Same.
874 * method-gl.cc: New file.
875 * Makefile.am: Use method-gl.cc.
876 * Makefile.in: Rebuild.
877
8782011-10-19 Torvald Riegel <triegel@redhat.com>
879
880 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
881 safety if requested by a TM method.
882 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
883 privatization safety.
884 * method-serial.cc: Same.
885
8862011-10-19 Torvald Riegel <triegel@redhat.com>
887
888 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
889 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
890 undolog-related member functions from *_local to *_undolog.
891 * local.cc (gtm_thread::commit_undolog): Same.
892 * beginend.cc (GTM::gtm_thread::trycommit): Same.
893 (GTM::gtm_thread::rollback): Roll back undolog before
894 dispatch-specific rollback.
895
8962011-10-19 Torvald Riegel <triegel@redhat.com>
897
898 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
899 re-initialization of the current method group.
900 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
901
9022011-10-19 Torvald Riegel <triegel@redhat.com>
903
904 * alloc.cc (commit_allocations_2): Do not free transaction-local
905 memory when committing a nested transaction.
906
9072011-10-19 Torvald Riegel <triegel@redhat.com>
908
909 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
910 serial-irrevocable dispatch, not serial.
911
9122011-10-19 Torvald Riegel <triegel@redhat.com>
913
914 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
915 declarations.
916 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
917 * method-serial.cc: Implement begin_or_restart().
918 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
919 dispatch-specific begin_or_restart().
920 (GTM::gtm_thread::restart): Same.
921
9222011-08-23 Torvald Riegel <triegel@redhat.com>
923
924 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
925 restarting without switching to serial mode.
926 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
927 transaction state. Choose closed-nesting alternative if available.
928 (GTM::gtm_thread::set_default_dispatch): New.
929 (parse_default_method): New.
930 (GTM::gtm_thread::number_of_threads_changed): New.
931 * method-serial.cc (GTM::serial_mg): New method group class.
932 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
933 fini.
934 (GTM::serial_dispatch): Same.
935 (GTM::serialirr_onwrite_dispatch): Same.
936 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
937 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
938 registered threads.
939 (GTM::gtm_thread::gtm_thread): Same.
940 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
941 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
942 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
943 choose dispatch but set state according to dispatch here.
944 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
945 (GTM::method_group): New class.
946 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
947 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
948 * libitm.texi: Document TM methods, method groups, method life cycle.
949 Rename method sets to method groups.
950
9512011-08-23 Torvald Riegel <triegel@redhat.com>
952
953 * config/x86/tls.h: Moved to ...
954 * config/linux/x86/tls.h: ... here.
955
9562011-08-23 Torvald Riegel <triegel@redhat.com>
957
958 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
959 Add X32 support.
960 * config/x86/sjlj.S: Same.
961
9622011-08-19 Torvald Riegel <triegel@redhat.com>
963
964 * config/linux/rwlock.h: New file.
965 * config/linux/rwlock.c: New file.
966 * configure.ac: Reenable futex support (undo SVN rev 157758).
967 * Makefile.am: Same.
968 * configure.tgt: Same.
969 * config/linux/alpha/futex_bits.h: Same.
970 * config/linux/futex.h: Same. Return number of woken processes.
971 * config/linux/futex.cc: Same.
972 (futex_wait): Remove spinning.
973 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
974 Use __x86_64__ instead of __LP64__.
975 * aclocal.m4: Include generic futex checks.
976 * configure: Rebuild.
977 * Makefile.in: Rebuild.
978 * testsuite/Makefile.in: Rebuild.
979 * beginend.cc: Include pthread.h.
980 * config/posix/cachepage.cc: Same.
981
9822011-08-12 Torvald Riegel <triegel@redhat.com>
983
984 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
985 (abi_disp, set_abi_disp): Move to tx's TLS slot.
986 (set_gtm_thr): New.
987 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
988 (set_gtm_thr): New.
989 (GTM::gtm_thread::thread_num): Removed.
990 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
991 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
992 tx-to-thread renaming.
993 * beginend.cc: Adapted to tx-to-thread renaming.
994 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
995 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
996 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
997 gtm_transaction to gtm_thread.
998 (_ITM_getThreadnum): Removed. Not supported anymore.
999 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1000 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1001 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1002 gtm_tx-to-gtm_thr renaming if necessary.
1003 * eh_cpp.cc: Same.
1004 * local.cc: Same.
1005 * retry.cc: Same.
1006 * clone.cc: Same.
1007 * alloc.cc: Same.
1008 * alloc_c.cc: Same.
1009 * alloc_cpp.cc: Same.
1010 * method-serial.cc: Same.
1011 * config/generic/tls.cc: Same.
1012 * config/posix/rwlock.h (gtm_rwlock): Same.
1013 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1014
10152011-08-12 Torvald Riegel <triegel@redhat.com>
1016
1017 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1018 implementation.
1019 (gtm_rwlock::read_unlock): Same.
1020 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1021 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1022 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1023 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1024 w_upgrade. Replaced by per-transaction flags (in shared_state).
1025 Added c_confirmed_writers.
1026 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1027 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1028 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1029 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1030 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1031 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1032 * libitm.texi: Document locking conventions and implementations in
1033 libitm.
1034
10352011-08-12 Torvald Riegel <triegel@redhat.com>
1036
1037 * libitm_i.h (next_tx): Add list of all threads' transaction.
1038 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1039 transaction with list of transactions and ...
1040 (thread_exit_handler): ... deregister here.
1041 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1042 * config/x86/target.h: Same.
1043
10442011-08-12 Torvald Riegel <triegel@redhat.com>
1045
1046 * testsuite/libitm.c++/static_ctor.C: New file.
1047
10482011-08-12 Torvald Riegel <triegel@redhat.com>
1049
1050 * testsuite/libitm.c/reentrant.c: New file.
1051
10522011-08-12 Torvald Riegel <triegel@redhat.com>
1053
1054 * config/generic/tls.h: Remove the free list for transactions and ...
1055 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1056 (GTM::gtm_transaction::operator delete): ... and release here.
1057 (thread_exit_handler): New. Delete tx when thread terminates.
1058 (thread_exit_init): New.
1059 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1060 * testsuite/libitm.c/txrelease.c: New file.
1061
10622011-08-12 Torvald Riegel <triegel@redhat.com>
1063
1064 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1065 * testsuite/libitm.c/notx.c: New file.
1066
10672011-08-12 Torvald Riegel <triegel@redhat.com>
1068
1069 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1070 * libitm_i.h (local_tid): ... to here.
1071 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1072 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1073
10742011-08-12 Torvald Riegel <triegel@redhat.com>
1075
1076 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1077 serialirr_onwrite_dispatch as new default for now.
1078 * method-serial.cc (serialirr_onwrite_dispatch): New.
1079 (GTM::dispatch_serialirr_onwrite): New.
1080 * libitm_i.h: Same.
1081
10822011-08-12 Torvald Riegel <triegel@redhat.com>
1083
1084 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1085 * query.cc (_ITM_getTransactionId): There is no active transaction if
1086 the current nesting level is zero.
1087
10882011-07-28 Torvald Riegel <triegel@redhat.com>
1089
1090 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1091 rollback.
1092
10932011-07-28 Torvald Riegel <triegel@redhat.com>
1094
1095 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1096 transaction properties from the caller instead of from the
1097 transaction object.
1098 * libitm_i.h: Same.
1099 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1100
11012011-07-28 Torvald Riegel <triegel@redhat.com>
1102
1103 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1104 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1105 * dispatch.h: Same.
1106 * method-serial.cc: Same.
1107 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1108 flat nesting as default, and closed nesting on demand.
1109 (GTM::gtm_transaction::rollback): Same.
1110 (_ITM_abortTransaction): Same.
1111 (GTM::gtm_transaction::restart): Same.
1112 (GTM::gtm_transaction::trycommit): Same.
1113 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1114 (choose_code_path): New.
1115 (GTM::gtm_transaction_cp::save): New.
1116 (GTM::gtm_transaction_cp::commit): New.
1117 * query.cc (_ITM_inTransaction): Support flat nesting.
1118 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1119 (GTM::gtm_transaction): Support flat and closed nesting.
1120 * alloc.cc (commit_allocations_2): New.
1121 (commit_cb_data): New helper struct.
1122 (GTM::gtm_transaction::commit_allocations): Handle nested
1123 commits/rollbacks.
1124 * libitm.texi: Update user action section, add description of nesting.
1125
11262011-07-28 Torvald Riegel <triegel@redhat.com>
1127
1128 * libitm_i.h: Add closed nesting as restart reason.
1129 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1130
11312011-07-28 Torvald Riegel <triegel@redhat.com>
1132
1133 * useraction.cc: Use vector instead of list to store actions.
1134 Also support partial rollbacks for closed nesting.
1135 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1136 * beginend.cc: Same.
1137
11382011-07-28 Torvald Riegel <triegel@redhat.com>
1139
1140 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1141 closed_nesting flags, as well as a closed nesting alternative.
1142 * method-serial.cc: Same.
1143 (serial_dispatch): Renamed to serialirr_dispatch.
1144 (GTM::dispatch_serialirr): Same.
1145 (serial_dispatch_ul): Renamed to serial_dispatch.
1146 (GTM::dispatch_serial): Same.
1147
11482011-07-28 Torvald Riegel <triegel@redhat.com>
1149
1150 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1151
11522011-07-28 Torvald Riegel <triegel@redhat.com>
1153
1154 * aatree.h (aa_tree::remove): New.
1155 (aa_tree::operator new): Add placement new.
1156
11572011-07-02 Torvald Riegel <triegel@redhat.com>
1158
1159 * containers.h: New file.
1160 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1161 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1162 * common.h: ... to here.
1163 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1164 * local.cc: Same.
1165
11662011-06-30 Torvald Riegel <triegel@redhat.com>
1167
1168 * libitm_i.h (STATE_ABORTING): Remove.
1169 * beginend.cc (_ITM_abortTransaction): Same.
1170 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1171 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1172 (_ITM_rollbackTransaction): Remove.
1173 * beginend.cc: Same.
1174 * libitm.map: Same.
1175 * libitm.texi: Document these ABI changes.
1176
11772011-06-30 Torvald Riegel <triegel@redhat.com>
1178
1179 * libitm.texi: New file.
1180 * Makefile.am: Add libitm.texi.
1181 * Makefile.in: Rebuild.
1182
11832011-06-30 Torvald Riegel <triegel@redhat.com>
1184
1185 * libitm_i.h: Move parts to common.h and dispatch.h.
1186 * common.h: New file.
1187 * dispatch.h: New file, new dispatch class.
1188 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1189 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1190 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1191 decision to retry.cc.
1192 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1193 only.
1194 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1195 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1196 logging.
1197 * barrier.cc: Use new barriers definitions.
1198 (abi_dispatch::memmove_overlap_check): New.
1199 * config/x86/x86_sse.cc: Same.
1200 * config/x86/x86_avx.cc: Same.
1201 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1202 memcpy.cc.
1203 * Makefile.in: Rebuild.
1204 * method-readonly.cc: Remove.
1205 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1206 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1207
12082011-06-30 Torvald Riegel <triegel@redhat.com>
1209
1210 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1211 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1212 * testsuite/libitm.c/dropref-2.c: Same.
1213 * testsuite/libitm.c/dropref.c: Same.
1214
12152011-06-30 Torvald Riegel <triegel@redhat.com>
1216
1217 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1218 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1219 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1220 * alloc_c.cc: Same.
1221 * barrier.tpl: Same.
1222 * beginend.c: Same.
1223 * config/generic/tls.h: Same.
1224 * config/x86/tls.h: Same.
1225 * libitm_i.h: Same.
1226 * memcpy.cc: Same.
1227 * memset.cc: Same.
1228 * method-readonly.cc: Same.
1229 * method-serial.cc: Same.
1230 * method-wbetl.cc: Same.
1231 * retry.cc: Same.
1232
12332011-03-03 Richard Henderson <rth@redhat.com>
1234
1235 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1236 From Patrik Marlier <patrick.marlier@unine.ch>.
1237
12382011-02-03 Richard Henderson <rth@redhat.com>
1239
1240 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1241 * configure.ac: Use it.
1242 * configure, config.h.in: Rebuild.
1243 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1244 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1245 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1246 * libitm.map: Use wildcards to match size_t mangling.
1247
12482010-12-14 Richard Henderson <rth@redhat.com>
1249
1250 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1251 blocks of TIDs per thread.
1252 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1253 (setup_gtm_thr): Return the thread structure.
1254 * config/x86/tls.h (setup_gtm_thr): Likewise.
1255
12562010-12-14 Richard Henderson <rth@redhat.com>
1257
1258 * clone.cc (table_lock): Remove.
1259 (find_clone): Don't take it.
1260 (ExcludeTransaction): New helper class.
1261 (_ITM_registerTMCloneTable): Use it.
1262 (_ITM_deregisterTMCloneTable): Likewise.
1263
12642010-12-14 Richard Henderson <rth@redhat.com>
1265
1266 * config/x86/tls.h: New file.
1267
12682010-07-15 Richard Henderson <rth@redhat.com>
1269
1270 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1271 * Makefile.in: Rebuild.
1272
12732010-07-13 Aldy Hernandez <aldyh@redhat.com>
1274
1275 * method-wbetl.cc (trydropreference): Fix source line.
1276
12772010-07-13 Aldy Hernandez <aldyh@redhat.com>
1278
1279 * libitm.h: Add comment.
1280 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1281
12822010-07-07 Aldy Hernandez <aldyh@redhat.com>
1283
1284 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1285 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1286 available, use pthread mutexes.
1287 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1288 * config.h.in: Regenerate.
1289 * configure: Regenerate.
1290
12912010-07-06 Aldy Hernandez <aldyh@redhat.com>
1292
1293 * libitm.h (ITM_PURE): Define.
1294 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1295
12962010-06-28 Aldy Hernandez <aldyh@redhat.com>
1297
1298 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1299 (validate): Add comment.
1300 (trydropreference): New.
1301 * method-readonly.cc (class readonly_dispatch): Add
1302 trydropreference.
1303 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1304 Call trydropreference().
1305 * libitm.h (_ITM_dropReferences): Remove const attribute.
1306 * method-serial.cc (class serial_dispatch): Add trydropreference.
1307 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1308
13092010-06-28 Aldy Hernandez <aldyh@redhat.com>
1310
1311 * memcpy.cc (do_memcpy): Comment.
1312
13132010-06-25 Aldy Hernandez <aldyh@redhat.com>
1314
1315 * barrier.tpl: Add comments throughout.
1316
13172010-06-24 Aldy Hernandez <aldyh@redhat.com>
1318
1319 * method-wbetl.cc (struct w_entry): Add comments.
1320 (trycommit): Same.
1321 (rollback): Same.
1322
13232010-06-24 Aldy Hernandez <aldyh@redhat.com>
1324
1325 * alloc_c.cc (_ITM_dropReferences): New.
1326 * libitm.map (_ITM_dropReferences): Add.
1327 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1328 * libitm_i.h (struct gtm_transaction): Declare
1329 drop_references_allocations and drop_references_local.
1330 * local.cc (rollback_local): Ignore memory when applicable.
1331 (drop_references_local): New.
1332
13332010-06-23 Richard Henderson <rth@redhat.com>
1334
1335 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1336 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1337 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1338 * config/alpha/target.h: Likewise.
1339 * config/generic/tls.cc (gtm_mask_stack): Use it.
1340
13412010-06-23 Richard Henderson <rth@redhat.com>
1342
1343 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1344 a mutex instead of trying a lock-free compare-and-swap on the list.
1345 (gtm_cacheline_page::operator delete): Likewise.
1346
13472010-06-16 Richard Henderson <rth@redhat.com>
1348
1349 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1350 that overlap the libitm stack.
1351 * barrier.tpl: Mark incoming stack.
1352 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1353 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1354 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1355 * memcpy.cc, memset.cc: Likewise.
1356 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1357 * config/generic/tls.h (gtm_thread): Add stack_top member.
1358 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1359 * libitm_i.h (gtm_mask_stack): Declare.
1360 * config/generic/tls.cc: New file.
1361 * Makefile.am (libitm_la_SOURCES): Add it.
1362 (AM_CXXFLAGS): Turn off exceptions.
1363 * Makefile.in: Rebuild.
1364
13652010-06-16 Richard Henderson <rth@redhat.com>
1366
1367 * alloc.cc (struct gtm_alloc_action): Move definition ...
1368 * libitm_i.h: ... here.
1369 (class gtm_transaction): Declare new and delete.
1370 * beginend.cc (alloc_tx): Reformulate as operator new.
1371 (free_tx): Reformulate as operator delete.
1372 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1373
13742010-06-11 Richard Henderson <rth@redhat.com>
1375
1376 * clone.cc (clone_entry_compare): Fix typo.
1377 From Patrik Marlier <patrick.marlier@unine.ch>.
1378
13792010-05-13 Richard Henderson <rth@redhat.com>
1380
1381 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1382 in extern "C".
1383
13842010-05-07 Aldy Hernandez <aldyh@redhat.com>
1385
1386 * libitm_i.h (struct gtm_transaction): Remove
1387 get_allocation_size.
1388 (record_allocation): Remove size parameter.
1389 * libitm.map (_ITM_realloc): Remove.
1390 * alloc_c.cc (_ITM_realloc): Remove.
1391 (_ITM_malloc): Remove size argument to record_allocation.
1392 (_ITM_calloc): Same.
1393 * alloc_cpp.cc (_ZGTtnwm): Same.
1394 (_ZGTtnwmRKSt9nothrow_t): Same.
1395 (_ZGTtnam): Same.
1396 (_ZGTtnamRKSt9nothrow_t): Same.
1397 * alloc.cc (struct gtm_alloc_action): Remove size.
1398 (get_allocation_size): Remove.
1399 (commit_allocations): Add comment.
1400 (record_allocation): Remove size parameter.
1401 (forget_allocation): Remove set of size.
1402
14032010-04-19 Aldy Hernandez <aldyh@redhat.com>
1404
1405 * Makefile.am (abi_version): New.
1406 (AM_CXXFLAGS): Pass abi_version.
1407 * Makefile.in: Regenerate.
1408 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1409
14102010-04-06 Aldy Hernandez <aldyh@redhat.com>
1411
1412 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1413 _ITM_getTMCloneOrIrrevokable.
1414 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1415 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1416
14172010-03-26 Aldy Hernandez <aldyh@redhat.com>
1418
1419 * configure.ac: Remove Linux futex support.
1420 * configure.tgt (config_path): Same.
1421 * Makefile.am: Same.
1422 * config/linux: Remove entire directory.
1423 * configure: Rebuild.
1424 * Makefile.in: Rebuild.
1425 * testsuite/Makefile.in: Rebuild.
1426
14272010-03-09 Aldy Hernandez <aldyh@redhat.com>
1428
1429 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1430 switching to serial mode.
1431 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1432
14332010-03-03 Aldy Hernandez <aldyh@redhat.com>
1434
1435 * configure.tgt: Add emacs -*- tags.
1436 * barrier.tpl: Same.
1437
14382010-02-23 Aldy Hernandez <aldyh@redhat.com>
1439
1440 * Makefile.am: Rename serial.cc to method-serial.cc.
1441 * Makefile.in: Regenerate with automake 1.11.1.
1442 * testsuite/Makefile.in: Same.
1443 * aclocal.m4: Regenerate with aclocal 1.11.1.
1444 * method-serial.cc: Rename from serial.cc.
1445 * libitm_i.h (struct gtm_transaction): Update comment on
1446 serialirr_mode.
1447
14482010-02-22 Aldy Hernandez <aldyh@redhat.com>
1449
1450 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1451 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1452
14532010-02-11 Aldy Hernandez <aldyh@redhat.com>
1454
1455 * configure: Rebuild.
1456
14572009-11-12 Richard Henderson <rth@redhat.com>
1458
1459 * Rewrite everything in C++.
1460
14612009-11-03 Richard Henderson <rth@redhat.com>
1462
1463 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1464 * Makefile.am (libitm_la_SOURCES): Add them.
1465 * configure.ac (ARCH_X86): New conditional.
1466 * Makefile.in, configure: Rebuild.
1467 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1468 Move futex setup into "other system configury" case.
1469 * local.c (rollback_local): Merge into ...
1470 (GTM_rollback_local): ... here.
1471 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1472 (_ITM_LB): Define as an alias to GTM_LB.
1473
14742009-11-03 Richard Henderson <rth@redhat.com>
1475
1476 * method-readonly.c: New file.
1477 * Makefile.am (libitm_la_SOURCES): Add it.
1478 * Makefile.in: Rebuild.
1479 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1480 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1481 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1482 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1483 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1484 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1485 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1486 gtm_get_clock, gtm_inc_clock): New.
1487 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1488 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1489 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1490 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1491 replace uses with new libitm_i.h symbols.
1492 (dispatch_wbetl): Rename from wbetl_dispatch.
1493 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1494 away from dispatch_readonly; abort if the beginTransaction call
1495 asserted that the transaction was readonly.
1496
14972009-11-03 Richard Henderson <rth@redhat.com>
1498
1499 * memset.c: New file.
1500 * Makefile.am (libitm_la_SOURCES): Add it.
1501 * Makefile.in: Rebuild.
1502 * testsuite/libitm.c/memset-1.c: New.
1503
15042009-11-03 Richard Henderson <rth@redhat.com>
1505
1506 * dispatch.c: Remove file.
1507 * useraction.c (struct gtm_user_action): Move from libitm.h.
1508 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1509 (serial_memset, serial_memmove, serial_memcpy): Remove.
1510 (serial_W*, serial_R*): Remove.
1511 (serial_dispatch): Update to match.
1512 * configure.ac: Move Werror down below configure checks. Don't
1513 check for sys/loadavg.h, do check for malloc.h. Don't check for
1514 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1515 Use GCC_AC_FUNC_MMAP_BLACKLIST
1516 * libitm.h: Split out all internal items to...
1517 * libitm_i.h: ... here. New file.
1518 * copymask.c: New file.
1519 * local.c (struct gtm_local_undo): Move from libitm.h.
1520 (GTM_alloc_local): Rename from alloc_local; export.
1521 * memcpy.c: New file.
1522 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1523 * config/posix/page.c: New file.
1524 * config/posix/target_tls.h: Remove file.
1525 * barrier.c: New file.
1526 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1527 copymask.c, page.c.
1528 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1529 * method-wbetl.c: Rewrite for new cacheline methods.
1530 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1531
1532 * config/alpha/sjlj.S: Fix typo.
1533 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1534 * config/alpha/copymask.c: New file.
1535 * config/alpha/target.h (CACHELINE_SIZE): New.
1536 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1537
1538 * config/x86/target_i.h: Copy functions from x86/target.h.
1539 * config/x86/copymask.c: New file.
1540 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1541 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1542 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1543 * config/x86/target_tls.h: Move contents to target_i.h.
1544
1545 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1546 * testsuite/libitm.c/memcpy-1.c: New.
1547
15482009-10-22 Richard Henderson <rth@redhat.com>
1549
1550 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1551 (AM_CCASFLAGS): New.
1552 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1553 saving/restoring _AC_ARG_VAR_PRECIOUS.
1554 * Makefile.in, aclocal.m4, config.h.in, configure,
1555 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1556
15572009-10-22 Richard Henderson <rth@redhat.com>
1558
1559 * testsuite/*: Update for new compiler syntax.
1560
15612009-10-21 Richard Henderson <rth@redhat.com>
1562
1563 * libitm.h (_ITM_abortReason): Add outerAbort.
1564
15652009-08-03 Richard Henderson <rth@redhat.com>
1566
1567 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1568 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1569 * method-wbetl.c (struct w_entry): Remove mask.
1570 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1571 adjust all callers.
1572
15732009-07-22 Richard Henderson <rth@redhat.com>
1574
1575 * eh_cpp.c: New file.
1576 * Makefile.am (libitm_la_SOURCES): Add it.
1577 * Makefile.in: Rebuild.
1578 * beginend.c (GTM_rollback_transaction): Undo exception state.
1579 (GTM_trycommit_transaction): Mark inline.
1580 (GTM_trycommit_and_finalize_transaction): Split out from ...
1581 (_ITM_commitTransaction): ... here.
1582 (_ITM_commitTransactionEH): New function.
1583 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1584 cxa_unthrown, eh_in_flight; reorder.
1585
1586 * testsuite/libitm.c++/c++.exp: New.
1587 * testsuite/libitm.c++/eh-1.C: New.
1588
1589 * aatree.c (aa_free): Remove REGPARM.
1590 * aatree.h: Remove all REGPARM.
1591
15922009-07-18 Richard Henderson <rth@redhat.com>
1593
1594 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1595 * Makefile.am (libitm_la_SOURCES): Add them.
1596 * Makefile.in: Rebuild.
1597 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1598 (GTM_trycommit_transaction): Likewise.
1599 * libitm.h: Include aatree.h
1600 (struct gtm_alloc_action): New.
1601 (struct gtm_transaction): Add alloc_actions.
1602 (GTM_record_allocation, GTM_forget_allocation): Declare.
1603 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1604 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1605 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1606 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1607 _ZGTtdaPvRKSt9nothrow_t): Export.
1608
16092009-07-18 Richard Henderson <rth@redhat.com>
1610
1611 * target_tls.h: Move ...
1612 * config/posix/target_tls.h: ... here.
1613
16142009-07-07 Richard Henderson <rth@redhat.com>
1615
1616 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1617
16182009-07-07 Richard Henderson <rth@redhat.com>
1619
1620 * Update to GPL3.
1621
16222009-07-07 Richard Henderson <rth@redhat.com>
1623
1624 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1625 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1626
1627 * configure.tgt: Don't use -ftls-model for x86 linux.
1628 * libitm.h: Include target.h after standard includes.
1629 (_gtm_thr): Rename from gtm_thr.
1630 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1631 (gtm_disp, set_gtm_disp): New.
1632 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1633 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1634 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1635
16362009-07-07 Richard Henderson <rth@redhat.com>
1637
1638 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1639
16402009-07-06 Richard Henderson <rth@redhat.com>
1641
1642 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1643 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1644 (_ITM_beginTransaction): Take variadic arguments.
1645 (_ITM_registerThrownObject): Declare.
1646 * beginend.c, serial.c: Update.
1647 * libitm.map: Add _ITM_registerThrownObject.
1648
16492009-01-28 Richard Henderson <rth@redhat.com>
1650
1651 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1652 * Makefile.in: Rebuild.
1653 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1654 (GTM_restart_transaction): Fix uninstrumented code check.
1655 * retry.c (GTM_decide_retry_strategy): Add serial check.
1656 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1657 automatically go irrevokable when in serial mode.
1658 * clone.c: New file.
1659 * libitm.h, libitm.map: Update.
1660
16612009-01-27 Richard Henderson <rth@redhat.com>
1662
1663 * Makefile.am (LTCCASCOMPILE): Define.
1664 (libitm_la_SOURCES): Add methid-wbetl.c.
1665 * testsuite/Makefile.am: New
1666 * configure.ac: Add testsuite/Makefile.
1667 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1668 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1669 (_ITM_abortTransaction): Finalize implementation method; pass
1670 transaction properties to longjmp.
1671 (GTM_restart_transaction): Split out from ...
1672 (_ITM_commitTransaction): ... here.
1673 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1674 Move to config/x86/target.h.
1675 * config/linux/alpha/futex_bits.h: New.
1676 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1677 * config/x86/target.h: Disable target types for 32-bit.
1678 * config/alpha/sjlj.S, config/alpha/target.h: New.
1679 * libitm.h (struct gtm_dispatch): Add init, fini.
1680 (enum restart_reason): New.
1681 (struct gtm_transaction): Add method and restarts.
1682 * retry.c (GTM_decide_retry_strategy): Implement.
1683 * serial.c (serial_init, serial_fini): New.
1684 (GTM_serialmode): Finialize outgoing method.
1685 * method-wbetl.c: New.
1686
16872008-12-09 Richard Henderson <rth@redhat.com>
1688
1689 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1690 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1691 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1692 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1693 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1694 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1695 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1696 * serial.c (serial_R##T, serial_W##T): Likewise.
1697
16982008-11-21 Richard Henderson <rth@redhat.com>
1699
1700 * Initial commit.