]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
s390.md ("movcc"): Swap load and store instructions.
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
167f68ed
AK
12013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2
3 * acinclude.m4: Add htm asm check for s390.
4 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
5 * configure: Regenerate.
6 * config/s390/target.h: Remove __HTM__ check.
7 (htm_available): Call getauxval to get hwcaps and check whether
8 HTM is available or not.
9
0258b6e4
PB
102013-07-15 Peter Bergner <bergner@vnet.ibm.com>
11
12 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
13 * configure.ac: Use it.
14 (AC_CHECK_HEADERS): Check for sys/auxv.h.
15 (AC_CHECK_FUNCS): Check for getauxval.
16 * config.h.in, configure: Rebuild.
17 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
18 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
19 (USE_HTM_FASTPATH): Define.
20 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
21 _HTM_RETRIES) New macros.
22 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
23 htm_begin_success, htm_commit, htm_transaction_active): New functions.
24
5a3fe9b6
AK
252013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26
27 * config/s390/target.h: Include htmintrin.h.
28 (_HTM_ITM_RETRIES): New macro definition.
29 (htm_available, htm_init, htm_begin, htm_begin_success)
30 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
31
6c84d576
IS
322013-06-20 Iain Sandoe <iain@codesourcery.com>
33 Cesar Philippidis <cesar@codesourcery.com>
34
35 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
36 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
37 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
38 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
39
480c696b
TR
402013-06-20 Torvald Riegel <triegel@redhat.com>
41
42 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
43 (_ITM_getTransactionId): Same.
44 * config/x86/target.h (htm_transaction_active): New.
45
b1db457b
TR
462013-06-20 Torvald Riegel <triegel@redhat.com>
47
48 PR libitm/57643
49 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
50 the HTM fastpath.
51
51249377
GP
522013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
53
54 PR bootstrap/56714
55 * local_atomic (__always_inline): Always define our version.
56 (__calculate_memory_order): Mark inline.
57 (atomic_thread_fence): Ditto.
58 (atomic_signal_fence): Ditto.
59 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
60 (atomic_bool::atomic_flag_clear_explicit): Ditto.
61 (atomic_bool::atomic_flag_test_and_set): Ditto.
62 (atomic_bool::atomic_flag_clear): Ditto.
63
f818478b
JJ
642013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
65
66 * config/s390/sjlj.S: New file.
67 * config/s390/target.h: New file.
68 * configure.tgt: Set options for S/390.
69
ab4425be
AK
702013-03-23 Andi Kleen <ak@linux.intel.com>
71
72 * local_atomic (__always_inline): Add.
73 (__calculate_memory_order, atomic_thread_fence,
74 atomic_signal_fence, test_and_set, clear, store, load,
75 exchange, compare_exchange_weak, compare_exchange_strong,
76 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
77 Add __always_inline to force inlining.
78
6c59ffd1
IS
792013-02-11 Iain Sandoe <iain@codesourcery.com>
80 Jack Howarth <howarth@bromo.med.uc.edu>
81 Patrick Marlier <patrick.marlier@gmail.com>
82
83 PR libitm/55693
84 * alloc_cpp.cc: Enable function declarations on darwin.
85 * eh_cpp.cc: Likewise.
86
75f9527c
RS
872013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
88
89 Update copyright years.
90
64fbcc74
TR
912012-11-09 Torvald Riegel <triegel@redhat.com>
92
93 * beginend.cc (htm_fastpath): New.
94 (gtm_thread::begin_transaction, _ITM_commitTransaction,
95 _ITM_commitTransactionEH): Add HTM fastpath handling.
96 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
97 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
98 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
99 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
100 * configure.tgt: Add -mrtm to XCFLAGS.
101 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
102 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
103 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
104 * retry.cc (parse_default_method): Add HTM method parsing.
105 (gtm_thread::number_of_threads_changed): Use HTM by default if
106 available.
107
b9efc877
TS
1082012-11-04 Thomas Schwinge <thomas@codesourcery.com>
109
110 * configure: Regenerate.
111
07d3b5c8
RH
1122012-10-31 Richard Henderson <rth@redhat.com>
113
114 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
115 * configure.ac: Use it.
116 * config.h.in, configure: Rebuild.
117 * testsuite/Makefile.in: Rebuild.
118
eb00e959
TR
1192012-10-24 Torvald Riegel <triegel@redhat.com>
120
121 * libitm.texi: Clarify ABI requirements for data-logging functions.
122
b679c813
TR
1232012-10-24 Torvald Riegel <triegel@redhat.com>
124
125 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
126 it requires serial mode instead of assuming that for certain
127 dispatchs.
128 * dispatch.h (abi_dispatch::requires_serial): New.
129 (abi_dispatch::abi_dispatch): Adapt.
130 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
131 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
132 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
133 serial_dispatch::serial_dispatch,
134 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
135
0c609a21
UB
1362012-10-02 Uros Bizjak <ubizjak@gmail.com>
137
138 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
139 and ia32 declarations some more.
140 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
141
c0758df9
JJ
1422012-09-20 Jakub Jelinek <jakub@redhat.com>
143
144 PR other/43620
145 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
146 * configure: Regenerate.
147 * Makefile.in: Regenerate.
148
690c45b8
DE
1492012-09-14 David Edelsohn <dje.gcc@gmail.com>
150
151 * configure: Regenerated.
152
68a12ef3
UB
1532012-07-31 Uros Bizjak <ubizjak@gmail.com>
154
155 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
156
f2f9a097
PM
1572012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
158
159 * eh_cpp.cc: Fix __cxa_end_catch declaration.
160
e6d5f8c9
L
1612012-05-16 H.J. Lu <hongjiu.lu@intel.com>
162
163 * configure: Regenerated.
164
0100e3b3
L
1652012-04-04 H.J. Lu <hongjiu.lu@intel.com>
166
167 PR libitm/52854
168 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
169 for x86-64.
170
2f6935f4
TG
1712012-04-03 Tristan Gingold <gingold@adacore.com>
172
173 * configure: Regenerate.
174
b9c23a61
L
1752012-03-31 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR bootstrap/52812
178 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
179
6a26a74d
BRF
1802012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
181
182 * testsuite/lib/libitm.exp: load fortran-modules.exp
183
b24513a1
RO
1842012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185
186 * configure.tgt (*-*-irix6*): Remove.
187
0d23faac
TR
1882012-03-13 Torvald Riegel <triegel@redhat.com>
189
190 PR libitm/52526
191 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
192 wake-up.
193
5c30094f
RO
1942012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195
196 * configure.tgt (*-*-osf*): Remove.
197 * configure: Regenerate.
198
d28b0b08
TR
1992012-03-05 Torvald Riegel <triegel@redhat.com>
200
201 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
202 memtransfer/memset if size isn't larger than zero.
203
034209bc
TR
2042012-03-02 Torvald Riegel <triegel@redhat.com>
205
206 * libitm.texi: Link to specification and add a usage example.
207
bc8da6ba
TR
2082012-02-24 Torvald Riegel <triegel@redhat.com>
209
210 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
211 default dispatch for more than 1 thread to ml_wt.
212
63b08143
TR
2132012-02-20 Torvald Riegel <triegel@redhat.com>
214
215 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
216
4c9bd6ac
TR
2172012-02-20 Torvald Riegel <triegel@redhat.com>
218
219 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
220
651ff415
TR
2212012-02-20 Torvald Riegel <triegel@redhat.com>
222
223 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
224 serial mode corner cases made obsolete by prior gtm_rwlock changes.
225 (gl_wt_dispatch.rollback): Same.
226
efee0113
TR
2272012-02-20 Torvald Riegel <triegel@redhat.com>
228
229 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
230
33a03827
TR
2312012-02-20 Torvald Riegel <triegel@redhat.com>
232
233 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
234 for RfW src. Optimize number of calls to gtm_thr.
235
a19db3f2
TR
2362012-02-20 Torvald Riegel <triegel@redhat.com>
237
238 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
239 acquisition to ...
240 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
241 (default_dispatch): Make atomic.
242 (GTM::gtm_thread::set_default_dispatch): Access atomically.
243 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
244 use decide_begin_dispatch() if default_dispatch might have changed.
245 (GTM::gtm_thread::number_of_threads_changed): Initialize
246 default_dispatch here.
247
e948a1fb
IS
2482012-02-15 Iain Sandoe <iains@gcc.gnu.org>
249 Patrick Marlier <patrick.marlier@gmail.com>
250
251 PR libitm/52220
252 * alloc_cpp.cc: No dummy definitions for darwin.
253 * eh_cpp.cc: Likewise.
254
72824d5e
RH
2552012-02-14 Richard Henderson <rth@redhat.com>
256
257 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
258
1f319dba
UB
2592012-02-14 Uros Bizjak <ubizjak@gmail.com>
260
261 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
262
31772c95
TR
2632012-02-14 Torvald Riegel <triegel@redhat.com>
264
265 * libitm_i.h (GTM::gtm_rwlog_entry): New.
266 (GTM::gtm_thread): Add read and write logs.
267 (GTM::dispatch_ml_wt): Declare.
268 * retry.cc (parse_default_method): Support ml_wt.
269 * method-ml.cc: New file.
270 * Makefile.am: Add method-ml.cc.
271 * Makefile.in: Regenerate.
272
5b9cf5d2
TR
2732012-02-14 Torvald Riegel <triegel@redhat.com>
274
275 * dispatch.h (GTM::abi_dispatch::supports): New.
276 (GTM::method_group::reinit): New.
277 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
278 (GTM::gtm_thread::number_of_threads_changed): Check that the method
279 supports the current situation.
280
7d33bcb7
TR
2812012-02-14 Torvald Riegel <triegel@redhat.com>
282
283 * util.cc (GTM::xcalloc): New.
284 * common.h (GTM::xcalloc): Declare.
285
62513f7b
EB
2862012-02-14 Eric Botcazou <ebotcazou@adacore.com>
287
288 * config/sparc/target.h (cpu_relax): Read from CC register.
289 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
290
2912012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
292
293 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
294
f3f5e3c3
EB
2952012-02-13 Eric Botcazou <ebotcazou@adacore.com>
296
62513f7b 297 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
298 * config/sparc/cacheline.h: New file.
299 * config/sparc/target.h: Likewise.
300 * config/sparc/sjlj.S: Likewise.
301 * config/linux/sparc/futex_bits.h: Likewise.
302
3032012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
304
305 * configure.ac (link_itm): Fix comment.
306 * configure: Regenerate.
307 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
308
681355e3
RO
3092012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310
fc985d2f 311 PR libitm/51822
62513f7b 312 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
313 Correct libgomp references.
314
999bcff5
TR
3152012-01-24 Torvald Riegel <triegel@redhat.com>
316
317 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
318 wake-up.
319
9848887a
UB
3202012-01-24 Uros Bizjak <ubizjak@gmail.com>
321
322 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
323 end of structure.
324 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
325 offset values. Do not copy return address. Decrement stack
326 by 56 bytes only.
327 (GTM_longjump) [__x86_64__]: Update offset values.
328
5752c591
UB
3292012-01-23 Uros Bizjak <ubizjak@gmail.com>
330
331 PR libitm/51830
332 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
333 the first function argument to %eax.
334
61e72ca4
RO
3352012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
336
337 * libitm.h (_ITM_getThreadnum): Remove.
338 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
339
9ce91011
RO
3402012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
341
342 * clearcap.map: New file.
343 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
344 * configure.ac: Call it.
345 Clear HWCAP_LDFLAGS if defaulting to -mavx.
346 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
347 * configure: Regenerate.
348 * Makefile.in: Regenerate.
349 * testsuite/Makefile.in: Regenerate.
350
3b4f05ec
RO
3512012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
352
353 PR libitm/51173
354 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
355 include, exclude options.
356
aab74ee9
TR
3572012-01-14 Torvald Riegel <triegel@redhat.com>
358
359 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
360 rolling back.
361 * containers.h (GTM::vector::set_size): New.
362
07b6642b
TR
3632012-01-14 Torvald Riegel <triegel@redhat.com>
364
365 PR libitm/51855
366 * config/generic/tls.h (GTM::mask_stack_top): New.
367 (GTM::mask_stack_bottom): Declare.
368 * config/generic/tls.c (GTM::mask_stack_bottom): New.
369 * local.cc (gtm_undolog::rollback): Filter out any updates that
370 overlap the libitm stack. Add current transaction as parameter.
371 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
372 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
373 * testsuite/libitm.c/stackundo.c: New test.
374
8377e5e5
RH
3752012-01-10 Richard Henderson <rth@redhat.com>
376
377 * libitm_i.h (_Unwind_DeleteException): Declare weak.
378 * eh_cpp.cc (_Unwind_DeleteException): Define for
379 !HAVE_ELF_STYLE_WEAKREF.
380
11f30bb0
TR
3812012-01-08 Torvald Riegel <triegel@redhat.com>
382
383 * local.cc (GTM_LB): Use GTM::gtm_undolog.
384 (GTM::gtm_thread::drop_references_undolog): Remove.
385 (GTM::gtm_thread::commit_undolog,
386 GTM::gtm_thread::rollback_undolog): Move to ...
387 * libitm_i.h (GTM::gtm_undolog): ...here. New.
388 (GTM::gtm_undolog_entry): Remove.
389 (GTM::gtm_thread): Adapt.
390 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
391 (GTM::gtm_thread::trycommit): Adapt.
392 * method-serial.cc (serial_dispatch::log): Adapt.
393 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
394 (gl_wt_dispatch::store): Fix likely/unlikely.
395 * containers.h (GTM::vector::resize): Add additional_capacity
396 parameter and handle it.
397 (GTM::vector::resize_noinline): New/adapt.
398 (GTM::vector::push): New.
399
a32e5e93
RH
4002012-01-06 Richard Henderson <rth@redhat.com>
401
402 * configure.tgt: Support powerpc-linux and powerpc-darwin.
403 * config/linux/powerpc/futex_bits.h: New file.
404 * config/powerpc/cacheline.h: New file.
405 * config/powerpc/sjlj.S: New file.
406 * config/powerpc/target.h: New file.
407 * config/generic/asmcfi.h (cfi_offset): New.
408 (cfi_restore, cfi_undefined): New.
409
1f53a8e6
AH
4102012-01-05 Aldy Hernandez <aldyh@redhat.com>
411
412 PR other/51171
413 * testsuite/libitm.c/reentrant.c: Remove xfail.
414 (thread): Pass x to pure().
be223aaf 415 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 416
c898f7b8
TR
4172011-12-24 Torvald Riegel <triegel@redhat.com>
418
419 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
420 privatization safety if already in serial mode.
421
610e3901
TR
4222011-12-24 Torvald Riegel <triegel@redhat.com>
423
424 * beginend.cc (GTM::gtm_thread::restart): Add and handle
425 finish_serial_upgrade parameter.
426 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
427 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
428 Don't unset reader flag.
429 (GTM::gtm_rwlock::write_upgrade_finish): New.
430 * config/posix/rwlock.cc: Same.
431 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
432 Declare.
433 * config/posix/rwlock.h: Same.
434 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
435 flag after commit or after rollback when restarting.
436
799142bf
TR
4372011-12-24 Torvald Riegel <triegel@redhat.com>
438
439 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
440 (GTM::gtm_thread::try_commit): Changed memory order.
441 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
442 as parameter.
443 * config/linux/x86/futex_bits.h (sys_futex0): Same.
444 * config/linux/sh/futex_bits.h (sys_futex0): Same.
445 * config/linux/futex_bits.h (sys_futex0): Same.
446 * config/linux/futex.cc (futex_wait, futex_wake): Same.
447 * config/linux/futex.h (futex_wait, futex_wake): Same.
448 * config/linux/rwlock.h (gtm_rwlock::writers,
449 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
450 ints.
451 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
452 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
453 gtm_rwlock::write_unlock): Fix memory orders and fences.
454 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
455 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
456 gtm_rwlock::write_unlock): Same.
457 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
458 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
459 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
460 Add comments.
461 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
462 gl_wt_dispatch::load, gl_wt_dispatch::store,
463 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
464 orders and fences. Add comments.
465
b0f96e35
JJ
4662011-12-21 Jakub Jelinek <jakub@redhat.com>
467
468 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
469 * Makefile.in: Regenerated.
470
cc163247
KK
4712011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
472
473 * configure.tgt: Add sh* case.
474 * config/sh/target.h: New file.
475 * config/sh/sjlj.S: New file.
476 * config/linux/sh/futex_bits.h: New file.
477
aebac0ca
RH
4782011-12-14 Richard Henderson <rth@redhat.com>
479
480 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
481 * config/arm/sjlj.S, config/arm/target.h: New files.
482 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
483 (cfi_rel_offset): New.
484 * config/linux/futex_bits.h: New file.
485 * config/linux/futex.cc: Include futex_bits.h here...
486 * config/linux/futex.h: ... not here.
487 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
488 * configure.ac (ARCH_AM): New conditional.
489 * Makefile.in, configure: Rebuild.
490 * configure.tgt: Handle ARM.
491
36cfbee1
RH
4922011-12-13 Richard Henderson <rth@redhat.com>
493
5d9d05d3
RH
494 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
495 signed/unsigned comparison werror.
496
36cfbee1
RH
497 * local_atomic: New file.
498 * libitm_i.h: Include it.
499 (gtm_thread::shared_state): Use atomic template.
500 * beginend.cc (GTM::gtm_clock): Use atomic template.
501 (global_tid): Use atomic template if 64-bit atomics available.
502 (gtm_thread::gtm_thread): Update shared_state access.
503 (gtm_thread::trycommit): Likewise.
504 (choose_code_path): Update global_tid access.
505 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
506 * stmlock.h (GTM::gtm_clock): Use atomic template.
507 (gtm_get_clock, gtm_inc_clock): Update accesses.
508 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
509 redundant __sync_synchronize after atomic shared_state access.
510 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
511 (gtm_rwlock::write_lock_generic): Likewise.
512 (gtm_rwlock::read_unlock): Likewise.
513 * config/alpha/target.h (atomic_read_barrier): Remove.
514 (atomic_write_barrier): Remove.
515 * config/x86/target.h (atomic_read_barrier): Remove.
516 (atomic_write_barrier): Remove.
517
062f93f2
RH
5182011-11-30 Richard Henderson <rth@redhat.com>
519
520 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
521 * beginend.c (_ITM_abortTransaction): Update to match.
522 (GTM::gtm_thread::restart): Likewise.
523 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
524 * config/x86/sjlj.S (GTM_longjmp): Likewise.
525
bd8aaa86
IS
5262011-11-23 Iain Sandoe <iains@gcc.gnu.org>
527
528 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
529 * Makefile.in: Regenerate.
530
8cf36bb3
IS
5312011-11-22 Iain Sandoe <iains@gcc.gnu.org>
532
533 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
534 * alloc_cpp.cc: Generate dummy functions if we don't
535 HAVE_ELF_STYLE_WEAKREF.
536 * eh_cpp.cc: Likewise.
537 * configure: Regenerate.
538 * aclocal.m4: Likewise.
539 * config.h.in: Likewise.
540 * Makefile.in: Likewise.
541 * testsuite/Makefile.in: Likewise.
542
0b41ebef
IS
5432011-11-22 Iain Sandoe <iains@gcc.gnu.org>
544
545 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
546 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 547 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
548 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
549 in portability to non-elf targets.
8cf36bb3 550 (GTM_longjmp): Likewise.
0b41ebef
IS
551 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
552 where required.
553
9c9d352a
IS
5542011-11-22 Iain Sandoe <iains@gcc.gnu.org>
555
556 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
557 * testsuite/libitm.c/memset-1.c: Likewise.
558
c6084f68
AT
5592011-11-21 Andreas Tobler <andreast@fgznet.ch>
560
561 * configure: Regenerate.
562
adcd36bc
RO
5632011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
564
565 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
566 (LIBITM_ENABLE_SYMVERS): Handle sun style.
567 * Makefile.am: Handle sun style versioning.
568 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
569 * configure: Regenerate.
570 * Makefile.in: Regenerate.
571
59659b59
RO
5722011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
573
574 * config/generic/asmcfi.h: Fix comment.
575 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
576 sequence without .hidden support, error for non-ELF targets.
577 (GTM_longjmp) [__ELF__]: Only use .hidden if
578 HAVE_ATTRIBUTE_VISIBILITY.
579
d846e425
RO
5802011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
581
582 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
583 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
584 Dummy functions.
585 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
586 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
587
80713347
UB
5882011-11-16 Uros Bizjak <ubizjak@gmail.com>
589
590 PR bootstrap/51098
591 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
592 * configure: Regenerate.
593
2841f85e
L
5942011-11-14 H.J. Lu <hongjiu.lu@intel.com>
595
596 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
597
8851b429
RO
5982011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
599
600 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
601 .hidden.
602 (.note.GNU-stack): Only use if __linux__.
603 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
604 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
605 * testsuite/libitm.c/reentrant.c: Likewise.
606 * testsuite/libitm.c/simple-2.c: Likewise.
607 * testsuite/libitm.c/txrelease.c: Likewise.
608 * testsuite/libitm.c++/static_ctor.C: Likewise.
609
d4b17902
RH
6102011-11-10 Richard Henderson <rth@redhat.com>
611
612 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
613 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
614 * configure.ac (ARCH_X86_AVX): New conditional.
615 * Makefile.in, configure: Rebuild.
616
430616e7
RH
6172011-11-09 Richard Henderson <rth@redhat.com>
618
619 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
620 * configure.ac: Use it.
621 * config.h.in, configure: Rebuild.
622 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
623
79b1edb6
RH
6242011-11-09 Richard Henderson <rth@redhat.com>
625
626 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
627 * config/alpha/unaligned.h: Remove file.
628 * config/generic/unaligned.h: Remove file.
629 * config/x86/unaligned.h: Remove file.
630 * config/generic/cachepage.h: Remove file.
631 * config/posix/cachepage.cc: Remove file.
632 * config/generic/cacheline.cc: Remove file.
633 * config/x86/cacheline.cc: Remove file.
634 * config/generic/cacheline.h (gtm_cacheline): Remove the
635 store_mask, copy_mask, copy_mask_wb methods.
636 * config/x86/cacheline.h: Likewise.
637 * config/alpha/cacheline.h: Fall back to generic after setting size.
638 * config/generic/tls.cc (gtm_mask_stack): Remove.
639 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
640 (GTM_vpalignr_table): Remove.
641 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
642 (GTM_pshift_table): Remove.
643 * config/libitm_i.h: Don't include cachepage.h.
644 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
645 * Makefile.in, testsuite/Makefile.in: Rebuild.
646
4bdd090f
RH
6472011-11-09 Richard Henderson <rth@redhat.com>
648
8ee9fac2
RH
649 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
650 to emit branch prediction hint.
651
9bdc6343
RH
652 * config/x86/sjlj.S: Protect elf directives with __ELF__.
653 Protect .note.GNU-stack with __linux__.
654
4bdd090f
RH
655 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
656 * configure, aclocal.m4, config.h.in: Rebuild.
657 * config/generic/asmcfi.h: New file.
658 * config/x86/sjlj.S: Use it.
659
4408b086
RH
6602011-11-08 Richard Henderson <rth@redhat.com>
661
662 * local.cc (_ITM_LB): Use a normal call, not a function alias.
663
01f3428c
RH
6642011-11-08 Richard Henderson <rth@redhat.com>
665
3d3b05ff
RH
666 * configure.tgt: Test correct directory for supported cpus.
667
01f3428c
RH
668 * configure.ac: Exit if unsupported.
669 * configure: Rebuild.
670 * configure.tgt: Delete boilerplate from libgomp for unsupported
671 targets. Set UNSUPPORTED for unsupported targets.
672
07f03cd3
RO
6732011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
674
675 * configure.tgt: Handle i386 like i[456]86.
676 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
677 take address.
678 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
679 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
680
0a35513e
AH
6812011-11-05 Aldy Hernandez <aldyh@redhat.com>
682
683 * method-wbetl.cc: Update copyright notice.
684 * aatree.cc: Same.
685 * util.cc: Same.
686 * libitm.h: Same.
687 * memset.cc: Same.
688 * eh_cpp.cc: Same.
689 * barrier.tpl: Same.
690 * useraction.cc: Same.
691 * stmlock.h: Same.
692 * memcpy.cc: Same.
693 * common.h: Same.
694 * config/generic/tls.cc: Same.
695 * config/generic/cacheline.h: Same.
696 * config/generic/cachepage.h: Same.
697 * config/generic/cacheline.cc: Same.
698 * config/generic/unaligned.h: Same.
699 * config/x86/cacheline.h: Same.
700 * config/x86/cacheline.cc: Same.
701 * config/x86/unaligned.h: Same.
702 * config/alpha/cacheline.h: Same.
703 * config/alpha/unaligned.h: Same.
704 * config/alpha/sjlj.S: Same.
705 * config/posix/cachepage.cc: Same.
706 * config/linux/futex.h: Same.
707 * config/linux/alpha/futex_bits.h: Same.
708
7092011-11-04 Torvald Riegel <triegel@redhat.com>
710
711 * libitm.texi: No cover text and invariant sections.
712
7132011-11-03 Richard Henderson <rth@redhat.com>
714
715 * local_type_traits: New file.
716 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
717
7182011-11-03 Richard Henderson <rth@redhat.com>
719
720 * configure.ac: Don't test for gfortran.
721 * configure: Rebuild.
722
723 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
724 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
725
7262011-11-03 Aldy Hernandez <aldyh@redhat.com>
727
728 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
729 * testsuite/libitm.c/memset-1.c: Same.
730 * testsuite/libitm.c/c.exp: Same.
731 * testsuite/lib/libitm-dg.exp: Same.
732 * testsuite/lib/libitm.exp: Same.
733 * testsuite/libitm.c++/c++.exp: Same.
734
7352011-11-03 Aldy Hernandez <aldyh@redhat.com>
736
737 * testsuite/config/default.exp: Update copyright date.
738 * configure.ac: Add copyright info.
739 * configure.tgt: Same.
740
7412011-11-03 Aldy Hernandez <aldyh@redhat.com>
742
743 * testsuite/libitm.c/reentrant.c: XFAIL.
744 * testsuite/libitm.c++/static_ctor.C: XFAIL.
745
7462011-10-29 Torvald Riegel <triegel@redhat.com>
747
748 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
749 handle aborts.
750 (_ITM_abortTransaction): Handle aborts of outer transactions.
751 * libitm_i.h: Same.
752 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
753 * libitm.texi: Document aborts of outer transactions.
754 * testsuite/libitm.c/cancel.c: New file.
755
7562011-10-19 Torvald Riegel <triegel@redhat.com>
757
758 * testsuite/*: Change __transaction to __transaction_atomic or
759 __transaction_relaxed.
760
7612011-10-19 Torvald Riegel <triegel@redhat.com>
762
763 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
764 (gtm_thr): Same.
765
7662011-10-19 Torvald Riegel <triegel@redhat.com>
767
768 * libitm_i.h: Add gl_wt dispatch.
769 * retry.cc (parse_default_method): Same.
770 * method-gl.cc: New file.
771 * Makefile.am: Use method-gl.cc.
772 * Makefile.in: Rebuild.
773
7742011-10-19 Torvald Riegel <triegel@redhat.com>
775
776 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
777 safety if requested by a TM method.
778 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
779 privatization safety.
780 * method-serial.cc: Same.
781
7822011-10-19 Torvald Riegel <triegel@redhat.com>
783
784 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
785 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
786 undolog-related member functions from *_local to *_undolog.
787 * local.cc (gtm_thread::commit_undolog): Same.
788 * beginend.cc (GTM::gtm_thread::trycommit): Same.
789 (GTM::gtm_thread::rollback): Roll back undolog before
790 dispatch-specific rollback.
791
7922011-10-19 Torvald Riegel <triegel@redhat.com>
793
794 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
795 re-initialization of the current method group.
796 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
797
7982011-10-19 Torvald Riegel <triegel@redhat.com>
799
800 * alloc.cc (commit_allocations_2): Do not free transaction-local
801 memory when committing a nested transaction.
802
8032011-10-19 Torvald Riegel <triegel@redhat.com>
804
805 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
806 serial-irrevocable dispatch, not serial.
807
8082011-10-19 Torvald Riegel <triegel@redhat.com>
809
810 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
811 declarations.
812 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
813 * method-serial.cc: Implement begin_or_restart().
814 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
815 dispatch-specific begin_or_restart().
816 (GTM::gtm_thread::restart): Same.
817
8182011-08-23 Torvald Riegel <triegel@redhat.com>
819
820 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
821 restarting without switching to serial mode.
822 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
823 transaction state. Choose closed-nesting alternative if available.
824 (GTM::gtm_thread::set_default_dispatch): New.
825 (parse_default_method): New.
826 (GTM::gtm_thread::number_of_threads_changed): New.
827 * method-serial.cc (GTM::serial_mg): New method group class.
828 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
829 fini.
830 (GTM::serial_dispatch): Same.
831 (GTM::serialirr_onwrite_dispatch): Same.
832 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
833 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
834 registered threads.
835 (GTM::gtm_thread::gtm_thread): Same.
836 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
837 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
838 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
839 choose dispatch but set state according to dispatch here.
840 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
841 (GTM::method_group): New class.
842 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
843 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
844 * libitm.texi: Document TM methods, method groups, method life cycle.
845 Rename method sets to method groups.
846
8472011-08-23 Torvald Riegel <triegel@redhat.com>
848
849 * config/x86/tls.h: Moved to ...
850 * config/linux/x86/tls.h: ... here.
851
8522011-08-23 Torvald Riegel <triegel@redhat.com>
853
854 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
855 Add X32 support.
856 * config/x86/sjlj.S: Same.
857
8582011-08-19 Torvald Riegel <triegel@redhat.com>
859
860 * config/linux/rwlock.h: New file.
861 * config/linux/rwlock.c: New file.
862 * configure.ac: Reenable futex support (undo SVN rev 157758).
863 * Makefile.am: Same.
864 * configure.tgt: Same.
865 * config/linux/alpha/futex_bits.h: Same.
866 * config/linux/futex.h: Same. Return number of woken processes.
867 * config/linux/futex.cc: Same.
868 (futex_wait): Remove spinning.
869 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
870 Use __x86_64__ instead of __LP64__.
871 * aclocal.m4: Include generic futex checks.
872 * configure: Rebuild.
873 * Makefile.in: Rebuild.
874 * testsuite/Makefile.in: Rebuild.
875 * beginend.cc: Include pthread.h.
876 * config/posix/cachepage.cc: Same.
877
8782011-08-12 Torvald Riegel <triegel@redhat.com>
879
880 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
881 (abi_disp, set_abi_disp): Move to tx's TLS slot.
882 (set_gtm_thr): New.
883 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
884 (set_gtm_thr): New.
885 (GTM::gtm_thread::thread_num): Removed.
886 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
887 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
888 tx-to-thread renaming.
889 * beginend.cc: Adapted to tx-to-thread renaming.
890 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
891 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
892 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
893 gtm_transaction to gtm_thread.
894 (_ITM_getThreadnum): Removed. Not supported anymore.
895 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
896 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
897 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
898 gtm_tx-to-gtm_thr renaming if necessary.
899 * eh_cpp.cc: Same.
900 * local.cc: Same.
901 * retry.cc: Same.
902 * clone.cc: Same.
903 * alloc.cc: Same.
904 * alloc_c.cc: Same.
905 * alloc_cpp.cc: Same.
906 * method-serial.cc: Same.
907 * config/generic/tls.cc: Same.
908 * config/posix/rwlock.h (gtm_rwlock): Same.
909 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
910
9112011-08-12 Torvald Riegel <triegel@redhat.com>
912
913 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
914 implementation.
915 (gtm_rwlock::read_unlock): Same.
916 (gtm_rwlock::write_lock_generic): New. Generalized from ...
917 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
918 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
919 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
920 w_upgrade. Replaced by per-transaction flags (in shared_state).
921 Added c_confirmed_writers.
922 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
923 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
924 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
925 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
926 * beginend.cc (GTM::gtm_transaction::begin_transaction,
927 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
928 * libitm.texi: Document locking conventions and implementations in
929 libitm.
930
9312011-08-12 Torvald Riegel <triegel@redhat.com>
932
933 * libitm_i.h (next_tx): Add list of all threads' transaction.
934 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
935 transaction with list of transactions and ...
936 (thread_exit_handler): ... deregister here.
937 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
938 * config/x86/target.h: Same.
939
9402011-08-12 Torvald Riegel <triegel@redhat.com>
941
942 * testsuite/libitm.c++/static_ctor.C: New file.
943
9442011-08-12 Torvald Riegel <triegel@redhat.com>
945
946 * testsuite/libitm.c/reentrant.c: New file.
947
9482011-08-12 Torvald Riegel <triegel@redhat.com>
949
950 * config/generic/tls.h: Remove the free list for transactions and ...
951 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
952 (GTM::gtm_transaction::operator delete): ... and release here.
953 (thread_exit_handler): New. Delete tx when thread terminates.
954 (thread_exit_init): New.
955 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
956 * testsuite/libitm.c/txrelease.c: New file.
957
9582011-08-12 Torvald Riegel <triegel@redhat.com>
959
960 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
961 * testsuite/libitm.c/notx.c: New file.
962
9632011-08-12 Torvald Riegel <triegel@redhat.com>
964
965 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
966 * libitm_i.h (local_tid): ... to here.
967 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
968 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
969
9702011-08-12 Torvald Riegel <triegel@redhat.com>
971
972 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
973 serialirr_onwrite_dispatch as new default for now.
974 * method-serial.cc (serialirr_onwrite_dispatch): New.
975 (GTM::dispatch_serialirr_onwrite): New.
976 * libitm_i.h: Same.
977
9782011-08-12 Torvald Riegel <triegel@redhat.com>
979
980 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
981 * query.cc (_ITM_getTransactionId): There is no active transaction if
982 the current nesting level is zero.
983
9842011-07-28 Torvald Riegel <triegel@redhat.com>
985
986 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
987 rollback.
988
9892011-07-28 Torvald Riegel <triegel@redhat.com>
990
991 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
992 transaction properties from the caller instead of from the
993 transaction object.
994 * libitm_i.h: Same.
995 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
996
9972011-07-28 Torvald Riegel <triegel@redhat.com>
998
999 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1000 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1001 * dispatch.h: Same.
1002 * method-serial.cc: Same.
1003 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1004 flat nesting as default, and closed nesting on demand.
1005 (GTM::gtm_transaction::rollback): Same.
1006 (_ITM_abortTransaction): Same.
1007 (GTM::gtm_transaction::restart): Same.
1008 (GTM::gtm_transaction::trycommit): Same.
1009 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1010 (choose_code_path): New.
1011 (GTM::gtm_transaction_cp::save): New.
1012 (GTM::gtm_transaction_cp::commit): New.
1013 * query.cc (_ITM_inTransaction): Support flat nesting.
1014 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1015 (GTM::gtm_transaction): Support flat and closed nesting.
1016 * alloc.cc (commit_allocations_2): New.
1017 (commit_cb_data): New helper struct.
1018 (GTM::gtm_transaction::commit_allocations): Handle nested
1019 commits/rollbacks.
1020 * libitm.texi: Update user action section, add description of nesting.
1021
10222011-07-28 Torvald Riegel <triegel@redhat.com>
1023
1024 * libitm_i.h: Add closed nesting as restart reason.
1025 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1026
10272011-07-28 Torvald Riegel <triegel@redhat.com>
1028
1029 * useraction.cc: Use vector instead of list to store actions.
1030 Also support partial rollbacks for closed nesting.
1031 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1032 * beginend.cc: Same.
1033
10342011-07-28 Torvald Riegel <triegel@redhat.com>
1035
1036 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1037 closed_nesting flags, as well as a closed nesting alternative.
1038 * method-serial.cc: Same.
1039 (serial_dispatch): Renamed to serialirr_dispatch.
1040 (GTM::dispatch_serialirr): Same.
1041 (serial_dispatch_ul): Renamed to serial_dispatch.
1042 (GTM::dispatch_serial): Same.
1043
10442011-07-28 Torvald Riegel <triegel@redhat.com>
1045
1046 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1047
10482011-07-28 Torvald Riegel <triegel@redhat.com>
1049
1050 * aatree.h (aa_tree::remove): New.
1051 (aa_tree::operator new): Add placement new.
1052
10532011-07-02 Torvald Riegel <triegel@redhat.com>
1054
1055 * containers.h: New file.
1056 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1057 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1058 * common.h: ... to here.
1059 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1060 * local.cc: Same.
1061
10622011-06-30 Torvald Riegel <triegel@redhat.com>
1063
1064 * libitm_i.h (STATE_ABORTING): Remove.
1065 * beginend.cc (_ITM_abortTransaction): Same.
1066 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1067 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1068 (_ITM_rollbackTransaction): Remove.
1069 * beginend.cc: Same.
1070 * libitm.map: Same.
1071 * libitm.texi: Document these ABI changes.
1072
10732011-06-30 Torvald Riegel <triegel@redhat.com>
1074
1075 * libitm.texi: New file.
1076 * Makefile.am: Add libitm.texi.
1077 * Makefile.in: Rebuild.
1078
10792011-06-30 Torvald Riegel <triegel@redhat.com>
1080
1081 * libitm_i.h: Move parts to common.h and dispatch.h.
1082 * common.h: New file.
1083 * dispatch.h: New file, new dispatch class.
1084 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1085 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1086 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1087 decision to retry.cc.
1088 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1089 only.
1090 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1091 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1092 logging.
1093 * barrier.cc: Use new barriers definitions.
1094 (abi_dispatch::memmove_overlap_check): New.
1095 * config/x86/x86_sse.cc: Same.
1096 * config/x86/x86_avx.cc: Same.
1097 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1098 memcpy.cc.
1099 * Makefile.in: Rebuild.
1100 * method-readonly.cc: Remove.
1101 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1102 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1103
11042011-06-30 Torvald Riegel <triegel@redhat.com>
1105
1106 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1107 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1108 * testsuite/libitm.c/dropref-2.c: Same.
1109 * testsuite/libitm.c/dropref.c: Same.
1110
11112011-06-30 Torvald Riegel <triegel@redhat.com>
1112
1113 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1114 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1115 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1116 * alloc_c.cc: Same.
1117 * barrier.tpl: Same.
1118 * beginend.c: Same.
1119 * config/generic/tls.h: Same.
1120 * config/x86/tls.h: Same.
1121 * libitm_i.h: Same.
1122 * memcpy.cc: Same.
1123 * memset.cc: Same.
1124 * method-readonly.cc: Same.
1125 * method-serial.cc: Same.
1126 * method-wbetl.cc: Same.
1127 * retry.cc: Same.
1128
11292011-03-03 Richard Henderson <rth@redhat.com>
1130
1131 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1132 From Patrik Marlier <patrick.marlier@unine.ch>.
1133
11342011-02-03 Richard Henderson <rth@redhat.com>
1135
1136 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1137 * configure.ac: Use it.
1138 * configure, config.h.in: Rebuild.
1139 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1140 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1141 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1142 * libitm.map: Use wildcards to match size_t mangling.
1143
11442010-12-14 Richard Henderson <rth@redhat.com>
1145
1146 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1147 blocks of TIDs per thread.
1148 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1149 (setup_gtm_thr): Return the thread structure.
1150 * config/x86/tls.h (setup_gtm_thr): Likewise.
1151
11522010-12-14 Richard Henderson <rth@redhat.com>
1153
1154 * clone.cc (table_lock): Remove.
1155 (find_clone): Don't take it.
1156 (ExcludeTransaction): New helper class.
1157 (_ITM_registerTMCloneTable): Use it.
1158 (_ITM_deregisterTMCloneTable): Likewise.
1159
11602010-12-14 Richard Henderson <rth@redhat.com>
1161
1162 * config/x86/tls.h: New file.
1163
11642010-07-15 Richard Henderson <rth@redhat.com>
1165
1166 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1167 * Makefile.in: Rebuild.
1168
11692010-07-13 Aldy Hernandez <aldyh@redhat.com>
1170
1171 * method-wbetl.cc (trydropreference): Fix source line.
1172
11732010-07-13 Aldy Hernandez <aldyh@redhat.com>
1174
1175 * libitm.h: Add comment.
1176 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1177
11782010-07-07 Aldy Hernandez <aldyh@redhat.com>
1179
1180 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1181 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1182 available, use pthread mutexes.
1183 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1184 * config.h.in: Regenerate.
1185 * configure: Regenerate.
1186
11872010-07-06 Aldy Hernandez <aldyh@redhat.com>
1188
1189 * libitm.h (ITM_PURE): Define.
1190 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1191
11922010-06-28 Aldy Hernandez <aldyh@redhat.com>
1193
1194 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1195 (validate): Add comment.
1196 (trydropreference): New.
1197 * method-readonly.cc (class readonly_dispatch): Add
1198 trydropreference.
1199 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1200 Call trydropreference().
1201 * libitm.h (_ITM_dropReferences): Remove const attribute.
1202 * method-serial.cc (class serial_dispatch): Add trydropreference.
1203 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1204
12052010-06-28 Aldy Hernandez <aldyh@redhat.com>
1206
1207 * memcpy.cc (do_memcpy): Comment.
1208
12092010-06-25 Aldy Hernandez <aldyh@redhat.com>
1210
1211 * barrier.tpl: Add comments throughout.
1212
12132010-06-24 Aldy Hernandez <aldyh@redhat.com>
1214
1215 * method-wbetl.cc (struct w_entry): Add comments.
1216 (trycommit): Same.
1217 (rollback): Same.
1218
12192010-06-24 Aldy Hernandez <aldyh@redhat.com>
1220
1221 * alloc_c.cc (_ITM_dropReferences): New.
1222 * libitm.map (_ITM_dropReferences): Add.
1223 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1224 * libitm_i.h (struct gtm_transaction): Declare
1225 drop_references_allocations and drop_references_local.
1226 * local.cc (rollback_local): Ignore memory when applicable.
1227 (drop_references_local): New.
1228
12292010-06-23 Richard Henderson <rth@redhat.com>
1230
1231 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1232 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1233 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1234 * config/alpha/target.h: Likewise.
1235 * config/generic/tls.cc (gtm_mask_stack): Use it.
1236
12372010-06-23 Richard Henderson <rth@redhat.com>
1238
1239 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1240 a mutex instead of trying a lock-free compare-and-swap on the list.
1241 (gtm_cacheline_page::operator delete): Likewise.
1242
12432010-06-16 Richard Henderson <rth@redhat.com>
1244
1245 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1246 that overlap the libitm stack.
1247 * barrier.tpl: Mark incoming stack.
1248 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1249 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1250 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1251 * memcpy.cc, memset.cc: Likewise.
1252 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1253 * config/generic/tls.h (gtm_thread): Add stack_top member.
1254 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1255 * libitm_i.h (gtm_mask_stack): Declare.
1256 * config/generic/tls.cc: New file.
1257 * Makefile.am (libitm_la_SOURCES): Add it.
1258 (AM_CXXFLAGS): Turn off exceptions.
1259 * Makefile.in: Rebuild.
1260
12612010-06-16 Richard Henderson <rth@redhat.com>
1262
1263 * alloc.cc (struct gtm_alloc_action): Move definition ...
1264 * libitm_i.h: ... here.
1265 (class gtm_transaction): Declare new and delete.
1266 * beginend.cc (alloc_tx): Reformulate as operator new.
1267 (free_tx): Reformulate as operator delete.
1268 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1269
12702010-06-11 Richard Henderson <rth@redhat.com>
1271
1272 * clone.cc (clone_entry_compare): Fix typo.
1273 From Patrik Marlier <patrick.marlier@unine.ch>.
1274
12752010-05-13 Richard Henderson <rth@redhat.com>
1276
1277 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1278 in extern "C".
1279
12802010-05-07 Aldy Hernandez <aldyh@redhat.com>
1281
1282 * libitm_i.h (struct gtm_transaction): Remove
1283 get_allocation_size.
1284 (record_allocation): Remove size parameter.
1285 * libitm.map (_ITM_realloc): Remove.
1286 * alloc_c.cc (_ITM_realloc): Remove.
1287 (_ITM_malloc): Remove size argument to record_allocation.
1288 (_ITM_calloc): Same.
1289 * alloc_cpp.cc (_ZGTtnwm): Same.
1290 (_ZGTtnwmRKSt9nothrow_t): Same.
1291 (_ZGTtnam): Same.
1292 (_ZGTtnamRKSt9nothrow_t): Same.
1293 * alloc.cc (struct gtm_alloc_action): Remove size.
1294 (get_allocation_size): Remove.
1295 (commit_allocations): Add comment.
1296 (record_allocation): Remove size parameter.
1297 (forget_allocation): Remove set of size.
1298
12992010-04-19 Aldy Hernandez <aldyh@redhat.com>
1300
1301 * Makefile.am (abi_version): New.
1302 (AM_CXXFLAGS): Pass abi_version.
1303 * Makefile.in: Regenerate.
1304 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1305
13062010-04-06 Aldy Hernandez <aldyh@redhat.com>
1307
1308 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1309 _ITM_getTMCloneOrIrrevokable.
1310 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1311 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1312
13132010-03-26 Aldy Hernandez <aldyh@redhat.com>
1314
1315 * configure.ac: Remove Linux futex support.
1316 * configure.tgt (config_path): Same.
1317 * Makefile.am: Same.
1318 * config/linux: Remove entire directory.
1319 * configure: Rebuild.
1320 * Makefile.in: Rebuild.
1321 * testsuite/Makefile.in: Rebuild.
1322
13232010-03-09 Aldy Hernandez <aldyh@redhat.com>
1324
1325 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1326 switching to serial mode.
1327 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1328
13292010-03-03 Aldy Hernandez <aldyh@redhat.com>
1330
1331 * configure.tgt: Add emacs -*- tags.
1332 * barrier.tpl: Same.
1333
13342010-02-23 Aldy Hernandez <aldyh@redhat.com>
1335
1336 * Makefile.am: Rename serial.cc to method-serial.cc.
1337 * Makefile.in: Regenerate with automake 1.11.1.
1338 * testsuite/Makefile.in: Same.
1339 * aclocal.m4: Regenerate with aclocal 1.11.1.
1340 * method-serial.cc: Rename from serial.cc.
1341 * libitm_i.h (struct gtm_transaction): Update comment on
1342 serialirr_mode.
1343
13442010-02-22 Aldy Hernandez <aldyh@redhat.com>
1345
1346 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1347 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1348
13492010-02-11 Aldy Hernandez <aldyh@redhat.com>
1350
1351 * configure: Rebuild.
1352
13532009-11-12 Richard Henderson <rth@redhat.com>
1354
1355 * Rewrite everything in C++.
1356
13572009-11-03 Richard Henderson <rth@redhat.com>
1358
1359 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1360 * Makefile.am (libitm_la_SOURCES): Add them.
1361 * configure.ac (ARCH_X86): New conditional.
1362 * Makefile.in, configure: Rebuild.
1363 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1364 Move futex setup into "other system configury" case.
1365 * local.c (rollback_local): Merge into ...
1366 (GTM_rollback_local): ... here.
1367 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1368 (_ITM_LB): Define as an alias to GTM_LB.
1369
13702009-11-03 Richard Henderson <rth@redhat.com>
1371
1372 * method-readonly.c: New file.
1373 * Makefile.am (libitm_la_SOURCES): Add it.
1374 * Makefile.in: Rebuild.
1375 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1376 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1377 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1378 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1379 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1380 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1381 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1382 gtm_get_clock, gtm_inc_clock): New.
1383 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1384 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1385 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1386 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1387 replace uses with new libitm_i.h symbols.
1388 (dispatch_wbetl): Rename from wbetl_dispatch.
1389 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1390 away from dispatch_readonly; abort if the beginTransaction call
1391 asserted that the transaction was readonly.
1392
13932009-11-03 Richard Henderson <rth@redhat.com>
1394
1395 * memset.c: New file.
1396 * Makefile.am (libitm_la_SOURCES): Add it.
1397 * Makefile.in: Rebuild.
1398 * testsuite/libitm.c/memset-1.c: New.
1399
14002009-11-03 Richard Henderson <rth@redhat.com>
1401
1402 * dispatch.c: Remove file.
1403 * useraction.c (struct gtm_user_action): Move from libitm.h.
1404 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1405 (serial_memset, serial_memmove, serial_memcpy): Remove.
1406 (serial_W*, serial_R*): Remove.
1407 (serial_dispatch): Update to match.
1408 * configure.ac: Move Werror down below configure checks. Don't
1409 check for sys/loadavg.h, do check for malloc.h. Don't check for
1410 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1411 Use GCC_AC_FUNC_MMAP_BLACKLIST
1412 * libitm.h: Split out all internal items to...
1413 * libitm_i.h: ... here. New file.
1414 * copymask.c: New file.
1415 * local.c (struct gtm_local_undo): Move from libitm.h.
1416 (GTM_alloc_local): Rename from alloc_local; export.
1417 * memcpy.c: New file.
1418 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1419 * config/posix/page.c: New file.
1420 * config/posix/target_tls.h: Remove file.
1421 * barrier.c: New file.
1422 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1423 copymask.c, page.c.
1424 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1425 * method-wbetl.c: Rewrite for new cacheline methods.
1426 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1427
1428 * config/alpha/sjlj.S: Fix typo.
1429 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1430 * config/alpha/copymask.c: New file.
1431 * config/alpha/target.h (CACHELINE_SIZE): New.
1432 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1433
1434 * config/x86/target_i.h: Copy functions from x86/target.h.
1435 * config/x86/copymask.c: New file.
1436 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1437 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1438 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1439 * config/x86/target_tls.h: Move contents to target_i.h.
1440
1441 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1442 * testsuite/libitm.c/memcpy-1.c: New.
1443
14442009-10-22 Richard Henderson <rth@redhat.com>
1445
1446 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1447 (AM_CCASFLAGS): New.
1448 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1449 saving/restoring _AC_ARG_VAR_PRECIOUS.
1450 * Makefile.in, aclocal.m4, config.h.in, configure,
1451 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1452
14532009-10-22 Richard Henderson <rth@redhat.com>
1454
1455 * testsuite/*: Update for new compiler syntax.
1456
14572009-10-21 Richard Henderson <rth@redhat.com>
1458
1459 * libitm.h (_ITM_abortReason): Add outerAbort.
1460
14612009-08-03 Richard Henderson <rth@redhat.com>
1462
1463 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1464 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1465 * method-wbetl.c (struct w_entry): Remove mask.
1466 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1467 adjust all callers.
1468
14692009-07-22 Richard Henderson <rth@redhat.com>
1470
1471 * eh_cpp.c: New file.
1472 * Makefile.am (libitm_la_SOURCES): Add it.
1473 * Makefile.in: Rebuild.
1474 * beginend.c (GTM_rollback_transaction): Undo exception state.
1475 (GTM_trycommit_transaction): Mark inline.
1476 (GTM_trycommit_and_finalize_transaction): Split out from ...
1477 (_ITM_commitTransaction): ... here.
1478 (_ITM_commitTransactionEH): New function.
1479 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1480 cxa_unthrown, eh_in_flight; reorder.
1481
1482 * testsuite/libitm.c++/c++.exp: New.
1483 * testsuite/libitm.c++/eh-1.C: New.
1484
1485 * aatree.c (aa_free): Remove REGPARM.
1486 * aatree.h: Remove all REGPARM.
1487
14882009-07-18 Richard Henderson <rth@redhat.com>
1489
1490 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1491 * Makefile.am (libitm_la_SOURCES): Add them.
1492 * Makefile.in: Rebuild.
1493 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1494 (GTM_trycommit_transaction): Likewise.
1495 * libitm.h: Include aatree.h
1496 (struct gtm_alloc_action): New.
1497 (struct gtm_transaction): Add alloc_actions.
1498 (GTM_record_allocation, GTM_forget_allocation): Declare.
1499 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1500 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1501 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1502 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1503 _ZGTtdaPvRKSt9nothrow_t): Export.
1504
15052009-07-18 Richard Henderson <rth@redhat.com>
1506
1507 * target_tls.h: Move ...
1508 * config/posix/target_tls.h: ... here.
1509
15102009-07-07 Richard Henderson <rth@redhat.com>
1511
1512 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1513
15142009-07-07 Richard Henderson <rth@redhat.com>
1515
1516 * Update to GPL3.
1517
15182009-07-07 Richard Henderson <rth@redhat.com>
1519
1520 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1521 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1522
1523 * configure.tgt: Don't use -ftls-model for x86 linux.
1524 * libitm.h: Include target.h after standard includes.
1525 (_gtm_thr): Rename from gtm_thr.
1526 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1527 (gtm_disp, set_gtm_disp): New.
1528 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1529 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1530 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1531
15322009-07-07 Richard Henderson <rth@redhat.com>
1533
1534 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1535
15362009-07-06 Richard Henderson <rth@redhat.com>
1537
1538 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1539 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1540 (_ITM_beginTransaction): Take variadic arguments.
1541 (_ITM_registerThrownObject): Declare.
1542 * beginend.c, serial.c: Update.
1543 * libitm.map: Add _ITM_registerThrownObject.
1544
15452009-01-28 Richard Henderson <rth@redhat.com>
1546
1547 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1548 * Makefile.in: Rebuild.
1549 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1550 (GTM_restart_transaction): Fix uninstrumented code check.
1551 * retry.c (GTM_decide_retry_strategy): Add serial check.
1552 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1553 automatically go irrevokable when in serial mode.
1554 * clone.c: New file.
1555 * libitm.h, libitm.map: Update.
1556
15572009-01-27 Richard Henderson <rth@redhat.com>
1558
1559 * Makefile.am (LTCCASCOMPILE): Define.
1560 (libitm_la_SOURCES): Add methid-wbetl.c.
1561 * testsuite/Makefile.am: New
1562 * configure.ac: Add testsuite/Makefile.
1563 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1564 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1565 (_ITM_abortTransaction): Finalize implementation method; pass
1566 transaction properties to longjmp.
1567 (GTM_restart_transaction): Split out from ...
1568 (_ITM_commitTransaction): ... here.
1569 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1570 Move to config/x86/target.h.
1571 * config/linux/alpha/futex_bits.h: New.
1572 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1573 * config/x86/target.h: Disable target types for 32-bit.
1574 * config/alpha/sjlj.S, config/alpha/target.h: New.
1575 * libitm.h (struct gtm_dispatch): Add init, fini.
1576 (enum restart_reason): New.
1577 (struct gtm_transaction): Add method and restarts.
1578 * retry.c (GTM_decide_retry_strategy): Implement.
1579 * serial.c (serial_init, serial_fini): New.
1580 (GTM_serialmode): Finialize outgoing method.
1581 * method-wbetl.c: New.
1582
15832008-12-09 Richard Henderson <rth@redhat.com>
1584
1585 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1586 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1587 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1588 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1589 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1590 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1591 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1592 * serial.c (serial_R##T, serial_W##T): Likewise.
1593
15942008-11-21 Richard Henderson <rth@redhat.com>
1595
1596 * Initial commit.