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