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