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