]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/ChangeLog
DR 1589
[thirdparty/gcc.git] / libitm / ChangeLog
CommitLineData
6c84d576
IS
12013-06-20 Iain Sandoe <iain@codesourcery.com>
2 Cesar Philippidis <cesar@codesourcery.com>
3
4 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
5 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
6 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
7 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8
480c696b
TR
92013-06-20 Torvald Riegel <triegel@redhat.com>
10
11 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
12 (_ITM_getTransactionId): Same.
13 * config/x86/target.h (htm_transaction_active): New.
14
b1db457b
TR
152013-06-20 Torvald Riegel <triegel@redhat.com>
16
17 PR libitm/57643
18 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
19 the HTM fastpath.
20
51249377
GP
212013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
22
23 PR bootstrap/56714
24 * local_atomic (__always_inline): Always define our version.
25 (__calculate_memory_order): Mark inline.
26 (atomic_thread_fence): Ditto.
27 (atomic_signal_fence): Ditto.
28 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
29 (atomic_bool::atomic_flag_clear_explicit): Ditto.
30 (atomic_bool::atomic_flag_test_and_set): Ditto.
31 (atomic_bool::atomic_flag_clear): Ditto.
32
f818478b
JJ
332013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34
35 * config/s390/sjlj.S: New file.
36 * config/s390/target.h: New file.
37 * configure.tgt: Set options for S/390.
38
ab4425be
AK
392013-03-23 Andi Kleen <ak@linux.intel.com>
40
41 * local_atomic (__always_inline): Add.
42 (__calculate_memory_order, atomic_thread_fence,
43 atomic_signal_fence, test_and_set, clear, store, load,
44 exchange, compare_exchange_weak, compare_exchange_strong,
45 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
46 Add __always_inline to force inlining.
47
6c59ffd1
IS
482013-02-11 Iain Sandoe <iain@codesourcery.com>
49 Jack Howarth <howarth@bromo.med.uc.edu>
50 Patrick Marlier <patrick.marlier@gmail.com>
51
52 PR libitm/55693
53 * alloc_cpp.cc: Enable function declarations on darwin.
54 * eh_cpp.cc: Likewise.
55
75f9527c
RS
562013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
57
58 Update copyright years.
59
64fbcc74
TR
602012-11-09 Torvald Riegel <triegel@redhat.com>
61
62 * beginend.cc (htm_fastpath): New.
63 (gtm_thread::begin_transaction, _ITM_commitTransaction,
64 _ITM_commitTransactionEH): Add HTM fastpath handling.
65 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
66 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
67 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
68 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
69 * configure.tgt: Add -mrtm to XCFLAGS.
70 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
71 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
72 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
73 * retry.cc (parse_default_method): Add HTM method parsing.
74 (gtm_thread::number_of_threads_changed): Use HTM by default if
75 available.
76
b9efc877
TS
772012-11-04 Thomas Schwinge <thomas@codesourcery.com>
78
79 * configure: Regenerate.
80
07d3b5c8
RH
812012-10-31 Richard Henderson <rth@redhat.com>
82
83 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
84 * configure.ac: Use it.
85 * config.h.in, configure: Rebuild.
86 * testsuite/Makefile.in: Rebuild.
87
eb00e959
TR
882012-10-24 Torvald Riegel <triegel@redhat.com>
89
90 * libitm.texi: Clarify ABI requirements for data-logging functions.
91
b679c813
TR
922012-10-24 Torvald Riegel <triegel@redhat.com>
93
94 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
95 it requires serial mode instead of assuming that for certain
96 dispatchs.
97 * dispatch.h (abi_dispatch::requires_serial): New.
98 (abi_dispatch::abi_dispatch): Adapt.
99 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
100 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
101 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
102 serial_dispatch::serial_dispatch,
103 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
104
0c609a21
UB
1052012-10-02 Uros Bizjak <ubizjak@gmail.com>
106
107 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
108 and ia32 declarations some more.
109 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
110
c0758df9
JJ
1112012-09-20 Jakub Jelinek <jakub@redhat.com>
112
113 PR other/43620
114 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
115 * configure: Regenerate.
116 * Makefile.in: Regenerate.
117
690c45b8
DE
1182012-09-14 David Edelsohn <dje.gcc@gmail.com>
119
120 * configure: Regenerated.
121
68a12ef3
UB
1222012-07-31 Uros Bizjak <ubizjak@gmail.com>
123
124 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
125
f2f9a097
PM
1262012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
127
128 * eh_cpp.cc: Fix __cxa_end_catch declaration.
129
e6d5f8c9
L
1302012-05-16 H.J. Lu <hongjiu.lu@intel.com>
131
132 * configure: Regenerated.
133
0100e3b3
L
1342012-04-04 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR libitm/52854
137 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
138 for x86-64.
139
2f6935f4
TG
1402012-04-03 Tristan Gingold <gingold@adacore.com>
141
142 * configure: Regenerate.
143
b9c23a61
L
1442012-03-31 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR bootstrap/52812
147 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
148
6a26a74d
BRF
1492012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
150
151 * testsuite/lib/libitm.exp: load fortran-modules.exp
152
b24513a1
RO
1532012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
154
155 * configure.tgt (*-*-irix6*): Remove.
156
0d23faac
TR
1572012-03-13 Torvald Riegel <triegel@redhat.com>
158
159 PR libitm/52526
160 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
161 wake-up.
162
5c30094f
RO
1632012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
164
165 * configure.tgt (*-*-osf*): Remove.
166 * configure: Regenerate.
167
d28b0b08
TR
1682012-03-05 Torvald Riegel <triegel@redhat.com>
169
170 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
171 memtransfer/memset if size isn't larger than zero.
172
034209bc
TR
1732012-03-02 Torvald Riegel <triegel@redhat.com>
174
175 * libitm.texi: Link to specification and add a usage example.
176
bc8da6ba
TR
1772012-02-24 Torvald Riegel <triegel@redhat.com>
178
179 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
180 default dispatch for more than 1 thread to ml_wt.
181
63b08143
TR
1822012-02-20 Torvald Riegel <triegel@redhat.com>
183
184 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
185
4c9bd6ac
TR
1862012-02-20 Torvald Riegel <triegel@redhat.com>
187
188 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
189
651ff415
TR
1902012-02-20 Torvald Riegel <triegel@redhat.com>
191
192 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
193 serial mode corner cases made obsolete by prior gtm_rwlock changes.
194 (gl_wt_dispatch.rollback): Same.
195
efee0113
TR
1962012-02-20 Torvald Riegel <triegel@redhat.com>
197
198 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
199
33a03827
TR
2002012-02-20 Torvald Riegel <triegel@redhat.com>
201
202 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
203 for RfW src. Optimize number of calls to gtm_thr.
204
a19db3f2
TR
2052012-02-20 Torvald Riegel <triegel@redhat.com>
206
207 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
208 acquisition to ...
209 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
210 (default_dispatch): Make atomic.
211 (GTM::gtm_thread::set_default_dispatch): Access atomically.
212 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
213 use decide_begin_dispatch() if default_dispatch might have changed.
214 (GTM::gtm_thread::number_of_threads_changed): Initialize
215 default_dispatch here.
216
e948a1fb
IS
2172012-02-15 Iain Sandoe <iains@gcc.gnu.org>
218 Patrick Marlier <patrick.marlier@gmail.com>
219
220 PR libitm/52220
221 * alloc_cpp.cc: No dummy definitions for darwin.
222 * eh_cpp.cc: Likewise.
223
72824d5e
RH
2242012-02-14 Richard Henderson <rth@redhat.com>
225
226 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
227
1f319dba
UB
2282012-02-14 Uros Bizjak <ubizjak@gmail.com>
229
230 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
231
31772c95
TR
2322012-02-14 Torvald Riegel <triegel@redhat.com>
233
234 * libitm_i.h (GTM::gtm_rwlog_entry): New.
235 (GTM::gtm_thread): Add read and write logs.
236 (GTM::dispatch_ml_wt): Declare.
237 * retry.cc (parse_default_method): Support ml_wt.
238 * method-ml.cc: New file.
239 * Makefile.am: Add method-ml.cc.
240 * Makefile.in: Regenerate.
241
5b9cf5d2
TR
2422012-02-14 Torvald Riegel <triegel@redhat.com>
243
244 * dispatch.h (GTM::abi_dispatch::supports): New.
245 (GTM::method_group::reinit): New.
246 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
247 (GTM::gtm_thread::number_of_threads_changed): Check that the method
248 supports the current situation.
249
7d33bcb7
TR
2502012-02-14 Torvald Riegel <triegel@redhat.com>
251
252 * util.cc (GTM::xcalloc): New.
253 * common.h (GTM::xcalloc): Declare.
254
62513f7b
EB
2552012-02-14 Eric Botcazou <ebotcazou@adacore.com>
256
257 * config/sparc/target.h (cpu_relax): Read from CC register.
258 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
259
2602012-02-14 Uros Bizjak <ubizjak@gmail.com>
d4a698d4
UB
261
262 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
263
f3f5e3c3
EB
2642012-02-13 Eric Botcazou <ebotcazou@adacore.com>
265
62513f7b 266 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
f3f5e3c3
EB
267 * config/sparc/cacheline.h: New file.
268 * config/sparc/target.h: Likewise.
269 * config/sparc/sjlj.S: Likewise.
270 * config/linux/sparc/futex_bits.h: Likewise.
271
2722012-02-13 Eric Botcazou <ebotcazou@adacore.com>
255a9a1b
EB
273
274 * configure.ac (link_itm): Fix comment.
275 * configure: Regenerate.
276 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
277
681355e3
RO
2782012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279
fc985d2f 280 PR libitm/51822
62513f7b 281 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
681355e3
RO
282 Correct libgomp references.
283
999bcff5
TR
2842012-01-24 Torvald Riegel <triegel@redhat.com>
285
286 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
287 wake-up.
288
9848887a
UB
2892012-01-24 Uros Bizjak <ubizjak@gmail.com>
290
291 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
292 end of structure.
293 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
294 offset values. Do not copy return address. Decrement stack
295 by 56 bytes only.
296 (GTM_longjump) [__x86_64__]: Update offset values.
297
5752c591
UB
2982012-01-23 Uros Bizjak <ubizjak@gmail.com>
299
300 PR libitm/51830
301 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
302 the first function argument to %eax.
303
61e72ca4
RO
3042012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305
306 * libitm.h (_ITM_getThreadnum): Remove.
307 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
308
9ce91011
RO
3092012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310
311 * clearcap.map: New file.
312 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
313 * configure.ac: Call it.
314 Clear HWCAP_LDFLAGS if defaulting to -mavx.
315 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
316 * configure: Regenerate.
317 * Makefile.in: Regenerate.
318 * testsuite/Makefile.in: Regenerate.
319
3b4f05ec
RO
3202012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321
322 PR libitm/51173
323 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
324 include, exclude options.
325
aab74ee9
TR
3262012-01-14 Torvald Riegel <triegel@redhat.com>
327
328 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
329 rolling back.
330 * containers.h (GTM::vector::set_size): New.
331
07b6642b
TR
3322012-01-14 Torvald Riegel <triegel@redhat.com>
333
334 PR libitm/51855
335 * config/generic/tls.h (GTM::mask_stack_top): New.
336 (GTM::mask_stack_bottom): Declare.
337 * config/generic/tls.c (GTM::mask_stack_bottom): New.
338 * local.cc (gtm_undolog::rollback): Filter out any updates that
339 overlap the libitm stack. Add current transaction as parameter.
340 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
341 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
342 * testsuite/libitm.c/stackundo.c: New test.
343
8377e5e5
RH
3442012-01-10 Richard Henderson <rth@redhat.com>
345
346 * libitm_i.h (_Unwind_DeleteException): Declare weak.
347 * eh_cpp.cc (_Unwind_DeleteException): Define for
348 !HAVE_ELF_STYLE_WEAKREF.
349
11f30bb0
TR
3502012-01-08 Torvald Riegel <triegel@redhat.com>
351
352 * local.cc (GTM_LB): Use GTM::gtm_undolog.
353 (GTM::gtm_thread::drop_references_undolog): Remove.
354 (GTM::gtm_thread::commit_undolog,
355 GTM::gtm_thread::rollback_undolog): Move to ...
356 * libitm_i.h (GTM::gtm_undolog): ...here. New.
357 (GTM::gtm_undolog_entry): Remove.
358 (GTM::gtm_thread): Adapt.
359 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
360 (GTM::gtm_thread::trycommit): Adapt.
361 * method-serial.cc (serial_dispatch::log): Adapt.
362 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
363 (gl_wt_dispatch::store): Fix likely/unlikely.
364 * containers.h (GTM::vector::resize): Add additional_capacity
365 parameter and handle it.
366 (GTM::vector::resize_noinline): New/adapt.
367 (GTM::vector::push): New.
368
a32e5e93
RH
3692012-01-06 Richard Henderson <rth@redhat.com>
370
371 * configure.tgt: Support powerpc-linux and powerpc-darwin.
372 * config/linux/powerpc/futex_bits.h: New file.
373 * config/powerpc/cacheline.h: New file.
374 * config/powerpc/sjlj.S: New file.
375 * config/powerpc/target.h: New file.
376 * config/generic/asmcfi.h (cfi_offset): New.
377 (cfi_restore, cfi_undefined): New.
378
1f53a8e6
AH
3792012-01-05 Aldy Hernandez <aldyh@redhat.com>
380
381 PR other/51171
382 * testsuite/libitm.c/reentrant.c: Remove xfail.
383 (thread): Pass x to pure().
be223aaf 384 From Patrik Marlier <patrick.marlier@gmail.com>.
1f53a8e6 385
c898f7b8
TR
3862011-12-24 Torvald Riegel <triegel@redhat.com>
387
388 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
389 privatization safety if already in serial mode.
390
610e3901
TR
3912011-12-24 Torvald Riegel <triegel@redhat.com>
392
393 * beginend.cc (GTM::gtm_thread::restart): Add and handle
394 finish_serial_upgrade parameter.
395 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
396 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
397 Don't unset reader flag.
398 (GTM::gtm_rwlock::write_upgrade_finish): New.
399 * config/posix/rwlock.cc: Same.
400 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
401 Declare.
402 * config/posix/rwlock.h: Same.
403 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
404 flag after commit or after rollback when restarting.
405
799142bf
TR
4062011-12-24 Torvald Riegel <triegel@redhat.com>
407
408 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
409 (GTM::gtm_thread::try_commit): Changed memory order.
410 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
411 as parameter.
412 * config/linux/x86/futex_bits.h (sys_futex0): Same.
413 * config/linux/sh/futex_bits.h (sys_futex0): Same.
414 * config/linux/futex_bits.h (sys_futex0): Same.
415 * config/linux/futex.cc (futex_wait, futex_wake): Same.
416 * config/linux/futex.h (futex_wait, futex_wake): Same.
417 * config/linux/rwlock.h (gtm_rwlock::writers,
418 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
419 ints.
420 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
421 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
422 gtm_rwlock::write_unlock): Fix memory orders and fences.
423 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
424 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
425 gtm_rwlock::write_unlock): Same.
426 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
427 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
428 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
429 Add comments.
430 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
431 gl_wt_dispatch::load, gl_wt_dispatch::store,
432 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
433 orders and fences. Add comments.
434
b0f96e35
JJ
4352011-12-21 Jakub Jelinek <jakub@redhat.com>
436
437 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
438 * Makefile.in: Regenerated.
439
cc163247
KK
4402011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
441
442 * configure.tgt: Add sh* case.
443 * config/sh/target.h: New file.
444 * config/sh/sjlj.S: New file.
445 * config/linux/sh/futex_bits.h: New file.
446
aebac0ca
RH
4472011-12-14 Richard Henderson <rth@redhat.com>
448
449 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
450 * config/arm/sjlj.S, config/arm/target.h: New files.
451 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
452 (cfi_rel_offset): New.
453 * config/linux/futex_bits.h: New file.
454 * config/linux/futex.cc: Include futex_bits.h here...
455 * config/linux/futex.h: ... not here.
456 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
457 * configure.ac (ARCH_AM): New conditional.
458 * Makefile.in, configure: Rebuild.
459 * configure.tgt: Handle ARM.
460
36cfbee1
RH
4612011-12-13 Richard Henderson <rth@redhat.com>
462
5d9d05d3
RH
463 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
464 signed/unsigned comparison werror.
465
36cfbee1
RH
466 * local_atomic: New file.
467 * libitm_i.h: Include it.
468 (gtm_thread::shared_state): Use atomic template.
469 * beginend.cc (GTM::gtm_clock): Use atomic template.
470 (global_tid): Use atomic template if 64-bit atomics available.
471 (gtm_thread::gtm_thread): Update shared_state access.
472 (gtm_thread::trycommit): Likewise.
473 (choose_code_path): Update global_tid access.
474 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
475 * stmlock.h (GTM::gtm_clock): Use atomic template.
476 (gtm_get_clock, gtm_inc_clock): Update accesses.
477 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
478 redundant __sync_synchronize after atomic shared_state access.
479 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
480 (gtm_rwlock::write_lock_generic): Likewise.
481 (gtm_rwlock::read_unlock): Likewise.
482 * config/alpha/target.h (atomic_read_barrier): Remove.
483 (atomic_write_barrier): Remove.
484 * config/x86/target.h (atomic_read_barrier): Remove.
485 (atomic_write_barrier): Remove.
486
062f93f2
RH
4872011-11-30 Richard Henderson <rth@redhat.com>
488
489 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
490 * beginend.c (_ITM_abortTransaction): Update to match.
491 (GTM::gtm_thread::restart): Likewise.
492 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
493 * config/x86/sjlj.S (GTM_longjmp): Likewise.
494
bd8aaa86
IS
4952011-11-23 Iain Sandoe <iains@gcc.gnu.org>
496
497 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
498 * Makefile.in: Regenerate.
499
8cf36bb3
IS
5002011-11-22 Iain Sandoe <iains@gcc.gnu.org>
501
502 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
503 * alloc_cpp.cc: Generate dummy functions if we don't
504 HAVE_ELF_STYLE_WEAKREF.
505 * eh_cpp.cc: Likewise.
506 * configure: Regenerate.
507 * aclocal.m4: Likewise.
508 * config.h.in: Likewise.
509 * Makefile.in: Likewise.
510 * testsuite/Makefile.in: Likewise.
511
0b41ebef
IS
5122011-11-22 Iain Sandoe <iains@gcc.gnu.org>
513
514 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
515 __USER_LABEL_PREFIX__ for targets that use it.
8cf36bb3 516 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
0b41ebef
IS
517 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
518 in portability to non-elf targets.
8cf36bb3 519 (GTM_longjmp): Likewise.
0b41ebef
IS
520 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
521 where required.
522
9c9d352a
IS
5232011-11-22 Iain Sandoe <iains@gcc.gnu.org>
524
525 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
526 * testsuite/libitm.c/memset-1.c: Likewise.
527
c6084f68
AT
5282011-11-21 Andreas Tobler <andreast@fgznet.ch>
529
530 * configure: Regenerate.
531
adcd36bc
RO
5322011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
533
534 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
535 (LIBITM_ENABLE_SYMVERS): Handle sun style.
536 * Makefile.am: Handle sun style versioning.
537 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
538 * configure: Regenerate.
539 * Makefile.in: Regenerate.
540
59659b59
RO
5412011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
542
543 * config/generic/asmcfi.h: Fix comment.
544 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
545 sequence without .hidden support, error for non-ELF targets.
546 (GTM_longjmp) [__ELF__]: Only use .hidden if
547 HAVE_ATTRIBUTE_VISIBILITY.
548
d846e425
RO
5492011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550
551 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
552 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
553 Dummy functions.
554 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
555 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
556
80713347
UB
5572011-11-16 Uros Bizjak <ubizjak@gmail.com>
558
559 PR bootstrap/51098
560 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
561 * configure: Regenerate.
562
2841f85e
L
5632011-11-14 H.J. Lu <hongjiu.lu@intel.com>
564
565 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
566
8851b429
RO
5672011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568
569 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
570 .hidden.
571 (.note.GNU-stack): Only use if __linux__.
572 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
573 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
574 * testsuite/libitm.c/reentrant.c: Likewise.
575 * testsuite/libitm.c/simple-2.c: Likewise.
576 * testsuite/libitm.c/txrelease.c: Likewise.
577 * testsuite/libitm.c++/static_ctor.C: Likewise.
578
d4b17902
RH
5792011-11-10 Richard Henderson <rth@redhat.com>
580
581 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
582 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
583 * configure.ac (ARCH_X86_AVX): New conditional.
584 * Makefile.in, configure: Rebuild.
585
430616e7
RH
5862011-11-09 Richard Henderson <rth@redhat.com>
587
588 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
589 * configure.ac: Use it.
590 * config.h.in, configure: Rebuild.
591 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
592
79b1edb6
RH
5932011-11-09 Richard Henderson <rth@redhat.com>
594
595 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
596 * config/alpha/unaligned.h: Remove file.
597 * config/generic/unaligned.h: Remove file.
598 * config/x86/unaligned.h: Remove file.
599 * config/generic/cachepage.h: Remove file.
600 * config/posix/cachepage.cc: Remove file.
601 * config/generic/cacheline.cc: Remove file.
602 * config/x86/cacheline.cc: Remove file.
603 * config/generic/cacheline.h (gtm_cacheline): Remove the
604 store_mask, copy_mask, copy_mask_wb methods.
605 * config/x86/cacheline.h: Likewise.
606 * config/alpha/cacheline.h: Fall back to generic after setting size.
607 * config/generic/tls.cc (gtm_mask_stack): Remove.
608 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
609 (GTM_vpalignr_table): Remove.
610 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
611 (GTM_pshift_table): Remove.
612 * config/libitm_i.h: Don't include cachepage.h.
613 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
614 * Makefile.in, testsuite/Makefile.in: Rebuild.
615
4bdd090f
RH
6162011-11-09 Richard Henderson <rth@redhat.com>
617
8ee9fac2
RH
618 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
619 to emit branch prediction hint.
620
9bdc6343
RH
621 * config/x86/sjlj.S: Protect elf directives with __ELF__.
622 Protect .note.GNU-stack with __linux__.
623
4bdd090f
RH
624 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
625 * configure, aclocal.m4, config.h.in: Rebuild.
626 * config/generic/asmcfi.h: New file.
627 * config/x86/sjlj.S: Use it.
628
4408b086
RH
6292011-11-08 Richard Henderson <rth@redhat.com>
630
631 * local.cc (_ITM_LB): Use a normal call, not a function alias.
632
01f3428c
RH
6332011-11-08 Richard Henderson <rth@redhat.com>
634
3d3b05ff
RH
635 * configure.tgt: Test correct directory for supported cpus.
636
01f3428c
RH
637 * configure.ac: Exit if unsupported.
638 * configure: Rebuild.
639 * configure.tgt: Delete boilerplate from libgomp for unsupported
640 targets. Set UNSUPPORTED for unsupported targets.
641
07f03cd3
RO
6422011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
643
644 * configure.tgt: Handle i386 like i[456]86.
645 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
646 take address.
647 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
648 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
649
0a35513e
AH
6502011-11-05 Aldy Hernandez <aldyh@redhat.com>
651
652 * method-wbetl.cc: Update copyright notice.
653 * aatree.cc: Same.
654 * util.cc: Same.
655 * libitm.h: Same.
656 * memset.cc: Same.
657 * eh_cpp.cc: Same.
658 * barrier.tpl: Same.
659 * useraction.cc: Same.
660 * stmlock.h: Same.
661 * memcpy.cc: Same.
662 * common.h: Same.
663 * config/generic/tls.cc: Same.
664 * config/generic/cacheline.h: Same.
665 * config/generic/cachepage.h: Same.
666 * config/generic/cacheline.cc: Same.
667 * config/generic/unaligned.h: Same.
668 * config/x86/cacheline.h: Same.
669 * config/x86/cacheline.cc: Same.
670 * config/x86/unaligned.h: Same.
671 * config/alpha/cacheline.h: Same.
672 * config/alpha/unaligned.h: Same.
673 * config/alpha/sjlj.S: Same.
674 * config/posix/cachepage.cc: Same.
675 * config/linux/futex.h: Same.
676 * config/linux/alpha/futex_bits.h: Same.
677
6782011-11-04 Torvald Riegel <triegel@redhat.com>
679
680 * libitm.texi: No cover text and invariant sections.
681
6822011-11-03 Richard Henderson <rth@redhat.com>
683
684 * local_type_traits: New file.
685 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
686
6872011-11-03 Richard Henderson <rth@redhat.com>
688
689 * configure.ac: Don't test for gfortran.
690 * configure: Rebuild.
691
692 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
693 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
694
6952011-11-03 Aldy Hernandez <aldyh@redhat.com>
696
697 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
698 * testsuite/libitm.c/memset-1.c: Same.
699 * testsuite/libitm.c/c.exp: Same.
700 * testsuite/lib/libitm-dg.exp: Same.
701 * testsuite/lib/libitm.exp: Same.
702 * testsuite/libitm.c++/c++.exp: Same.
703
7042011-11-03 Aldy Hernandez <aldyh@redhat.com>
705
706 * testsuite/config/default.exp: Update copyright date.
707 * configure.ac: Add copyright info.
708 * configure.tgt: Same.
709
7102011-11-03 Aldy Hernandez <aldyh@redhat.com>
711
712 * testsuite/libitm.c/reentrant.c: XFAIL.
713 * testsuite/libitm.c++/static_ctor.C: XFAIL.
714
7152011-10-29 Torvald Riegel <triegel@redhat.com>
716
717 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
718 handle aborts.
719 (_ITM_abortTransaction): Handle aborts of outer transactions.
720 * libitm_i.h: Same.
721 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
722 * libitm.texi: Document aborts of outer transactions.
723 * testsuite/libitm.c/cancel.c: New file.
724
7252011-10-19 Torvald Riegel <triegel@redhat.com>
726
727 * testsuite/*: Change __transaction to __transaction_atomic or
728 __transaction_relaxed.
729
7302011-10-19 Torvald Riegel <triegel@redhat.com>
731
732 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
733 (gtm_thr): Same.
734
7352011-10-19 Torvald Riegel <triegel@redhat.com>
736
737 * libitm_i.h: Add gl_wt dispatch.
738 * retry.cc (parse_default_method): Same.
739 * method-gl.cc: New file.
740 * Makefile.am: Use method-gl.cc.
741 * Makefile.in: Rebuild.
742
7432011-10-19 Torvald Riegel <triegel@redhat.com>
744
745 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
746 safety if requested by a TM method.
747 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
748 privatization safety.
749 * method-serial.cc: Same.
750
7512011-10-19 Torvald Riegel <triegel@redhat.com>
752
753 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
754 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
755 undolog-related member functions from *_local to *_undolog.
756 * local.cc (gtm_thread::commit_undolog): Same.
757 * beginend.cc (GTM::gtm_thread::trycommit): Same.
758 (GTM::gtm_thread::rollback): Roll back undolog before
759 dispatch-specific rollback.
760
7612011-10-19 Torvald Riegel <triegel@redhat.com>
762
763 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
764 re-initialization of the current method group.
765 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
766
7672011-10-19 Torvald Riegel <triegel@redhat.com>
768
769 * alloc.cc (commit_allocations_2): Do not free transaction-local
770 memory when committing a nested transaction.
771
7722011-10-19 Torvald Riegel <triegel@redhat.com>
773
774 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
775 serial-irrevocable dispatch, not serial.
776
7772011-10-19 Torvald Riegel <triegel@redhat.com>
778
779 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
780 declarations.
781 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
782 * method-serial.cc: Implement begin_or_restart().
783 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
784 dispatch-specific begin_or_restart().
785 (GTM::gtm_thread::restart): Same.
786
7872011-08-23 Torvald Riegel <triegel@redhat.com>
788
789 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
790 restarting without switching to serial mode.
791 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
792 transaction state. Choose closed-nesting alternative if available.
793 (GTM::gtm_thread::set_default_dispatch): New.
794 (parse_default_method): New.
795 (GTM::gtm_thread::number_of_threads_changed): New.
796 * method-serial.cc (GTM::serial_mg): New method group class.
797 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
798 fini.
799 (GTM::serial_dispatch): Same.
800 (GTM::serialirr_onwrite_dispatch): Same.
801 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
802 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
803 registered threads.
804 (GTM::gtm_thread::gtm_thread): Same.
805 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
806 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
807 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
808 choose dispatch but set state according to dispatch here.
809 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
810 (GTM::method_group): New class.
811 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
812 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
813 * libitm.texi: Document TM methods, method groups, method life cycle.
814 Rename method sets to method groups.
815
8162011-08-23 Torvald Riegel <triegel@redhat.com>
817
818 * config/x86/tls.h: Moved to ...
819 * config/linux/x86/tls.h: ... here.
820
8212011-08-23 Torvald Riegel <triegel@redhat.com>
822
823 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
824 Add X32 support.
825 * config/x86/sjlj.S: Same.
826
8272011-08-19 Torvald Riegel <triegel@redhat.com>
828
829 * config/linux/rwlock.h: New file.
830 * config/linux/rwlock.c: New file.
831 * configure.ac: Reenable futex support (undo SVN rev 157758).
832 * Makefile.am: Same.
833 * configure.tgt: Same.
834 * config/linux/alpha/futex_bits.h: Same.
835 * config/linux/futex.h: Same. Return number of woken processes.
836 * config/linux/futex.cc: Same.
837 (futex_wait): Remove spinning.
838 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
839 Use __x86_64__ instead of __LP64__.
840 * aclocal.m4: Include generic futex checks.
841 * configure: Rebuild.
842 * Makefile.in: Rebuild.
843 * testsuite/Makefile.in: Rebuild.
844 * beginend.cc: Include pthread.h.
845 * config/posix/cachepage.cc: Same.
846
8472011-08-12 Torvald Riegel <triegel@redhat.com>
848
849 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
850 (abi_disp, set_abi_disp): Move to tx's TLS slot.
851 (set_gtm_thr): New.
852 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
853 (set_gtm_thr): New.
854 (GTM::gtm_thread::thread_num): Removed.
855 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
856 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
857 tx-to-thread renaming.
858 * beginend.cc: Adapted to tx-to-thread renaming.
859 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
860 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
861 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
862 gtm_transaction to gtm_thread.
863 (_ITM_getThreadnum): Removed. Not supported anymore.
864 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
865 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
866 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
867 gtm_tx-to-gtm_thr renaming if necessary.
868 * eh_cpp.cc: Same.
869 * local.cc: Same.
870 * retry.cc: Same.
871 * clone.cc: Same.
872 * alloc.cc: Same.
873 * alloc_c.cc: Same.
874 * alloc_cpp.cc: Same.
875 * method-serial.cc: Same.
876 * config/generic/tls.cc: Same.
877 * config/posix/rwlock.h (gtm_rwlock): Same.
878 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
879
8802011-08-12 Torvald Riegel <triegel@redhat.com>
881
882 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
883 implementation.
884 (gtm_rwlock::read_unlock): Same.
885 (gtm_rwlock::write_lock_generic): New. Generalized from ...
886 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
887 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
888 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
889 w_upgrade. Replaced by per-transaction flags (in shared_state).
890 Added c_confirmed_writers.
891 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
892 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
893 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
894 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
895 * beginend.cc (GTM::gtm_transaction::begin_transaction,
896 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
897 * libitm.texi: Document locking conventions and implementations in
898 libitm.
899
9002011-08-12 Torvald Riegel <triegel@redhat.com>
901
902 * libitm_i.h (next_tx): Add list of all threads' transaction.
903 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
904 transaction with list of transactions and ...
905 (thread_exit_handler): ... deregister here.
906 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
907 * config/x86/target.h: Same.
908
9092011-08-12 Torvald Riegel <triegel@redhat.com>
910
911 * testsuite/libitm.c++/static_ctor.C: New file.
912
9132011-08-12 Torvald Riegel <triegel@redhat.com>
914
915 * testsuite/libitm.c/reentrant.c: New file.
916
9172011-08-12 Torvald Riegel <triegel@redhat.com>
918
919 * config/generic/tls.h: Remove the free list for transactions and ...
920 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
921 (GTM::gtm_transaction::operator delete): ... and release here.
922 (thread_exit_handler): New. Delete tx when thread terminates.
923 (thread_exit_init): New.
924 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
925 * testsuite/libitm.c/txrelease.c: New file.
926
9272011-08-12 Torvald Riegel <triegel@redhat.com>
928
929 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
930 * testsuite/libitm.c/notx.c: New file.
931
9322011-08-12 Torvald Riegel <triegel@redhat.com>
933
934 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
935 * libitm_i.h (local_tid): ... to here.
936 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
937 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
938
9392011-08-12 Torvald Riegel <triegel@redhat.com>
940
941 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
942 serialirr_onwrite_dispatch as new default for now.
943 * method-serial.cc (serialirr_onwrite_dispatch): New.
944 (GTM::dispatch_serialirr_onwrite): New.
945 * libitm_i.h: Same.
946
9472011-08-12 Torvald Riegel <triegel@redhat.com>
948
949 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
950 * query.cc (_ITM_getTransactionId): There is no active transaction if
951 the current nesting level is zero.
952
9532011-07-28 Torvald Riegel <triegel@redhat.com>
954
955 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
956 rollback.
957
9582011-07-28 Torvald Riegel <triegel@redhat.com>
959
960 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
961 transaction properties from the caller instead of from the
962 transaction object.
963 * libitm_i.h: Same.
964 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
965
9662011-07-28 Torvald Riegel <triegel@redhat.com>
967
968 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
969 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
970 * dispatch.h: Same.
971 * method-serial.cc: Same.
972 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
973 flat nesting as default, and closed nesting on demand.
974 (GTM::gtm_transaction::rollback): Same.
975 (_ITM_abortTransaction): Same.
976 (GTM::gtm_transaction::restart): Same.
977 (GTM::gtm_transaction::trycommit): Same.
978 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
979 (choose_code_path): New.
980 (GTM::gtm_transaction_cp::save): New.
981 (GTM::gtm_transaction_cp::commit): New.
982 * query.cc (_ITM_inTransaction): Support flat nesting.
983 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
984 (GTM::gtm_transaction): Support flat and closed nesting.
985 * alloc.cc (commit_allocations_2): New.
986 (commit_cb_data): New helper struct.
987 (GTM::gtm_transaction::commit_allocations): Handle nested
988 commits/rollbacks.
989 * libitm.texi: Update user action section, add description of nesting.
990
9912011-07-28 Torvald Riegel <triegel@redhat.com>
992
993 * libitm_i.h: Add closed nesting as restart reason.
994 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
995
9962011-07-28 Torvald Riegel <triegel@redhat.com>
997
998 * useraction.cc: Use vector instead of list to store actions.
999 Also support partial rollbacks for closed nesting.
1000 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1001 * beginend.cc: Same.
1002
10032011-07-28 Torvald Riegel <triegel@redhat.com>
1004
1005 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1006 closed_nesting flags, as well as a closed nesting alternative.
1007 * method-serial.cc: Same.
1008 (serial_dispatch): Renamed to serialirr_dispatch.
1009 (GTM::dispatch_serialirr): Same.
1010 (serial_dispatch_ul): Renamed to serial_dispatch.
1011 (GTM::dispatch_serial): Same.
1012
10132011-07-28 Torvald Riegel <triegel@redhat.com>
1014
1015 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1016
10172011-07-28 Torvald Riegel <triegel@redhat.com>
1018
1019 * aatree.h (aa_tree::remove): New.
1020 (aa_tree::operator new): Add placement new.
1021
10222011-07-02 Torvald Riegel <triegel@redhat.com>
1023
1024 * containers.h: New file.
1025 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1026 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1027 * common.h: ... to here.
1028 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1029 * local.cc: Same.
1030
10312011-06-30 Torvald Riegel <triegel@redhat.com>
1032
1033 * libitm_i.h (STATE_ABORTING): Remove.
1034 * beginend.cc (_ITM_abortTransaction): Same.
1035 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1036 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1037 (_ITM_rollbackTransaction): Remove.
1038 * beginend.cc: Same.
1039 * libitm.map: Same.
1040 * libitm.texi: Document these ABI changes.
1041
10422011-06-30 Torvald Riegel <triegel@redhat.com>
1043
1044 * libitm.texi: New file.
1045 * Makefile.am: Add libitm.texi.
1046 * Makefile.in: Rebuild.
1047
10482011-06-30 Torvald Riegel <triegel@redhat.com>
1049
1050 * libitm_i.h: Move parts to common.h and dispatch.h.
1051 * common.h: New file.
1052 * dispatch.h: New file, new dispatch class.
1053 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1054 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1055 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1056 decision to retry.cc.
1057 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1058 only.
1059 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1060 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1061 logging.
1062 * barrier.cc: Use new barriers definitions.
1063 (abi_dispatch::memmove_overlap_check): New.
1064 * config/x86/x86_sse.cc: Same.
1065 * config/x86/x86_avx.cc: Same.
1066 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1067 memcpy.cc.
1068 * Makefile.in: Rebuild.
1069 * method-readonly.cc: Remove.
1070 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1071 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1072
10732011-06-30 Torvald Riegel <triegel@redhat.com>
1074
1075 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1076 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1077 * testsuite/libitm.c/dropref-2.c: Same.
1078 * testsuite/libitm.c/dropref.c: Same.
1079
10802011-06-30 Torvald Riegel <triegel@redhat.com>
1081
1082 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1083 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1084 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1085 * alloc_c.cc: Same.
1086 * barrier.tpl: Same.
1087 * beginend.c: Same.
1088 * config/generic/tls.h: Same.
1089 * config/x86/tls.h: Same.
1090 * libitm_i.h: Same.
1091 * memcpy.cc: Same.
1092 * memset.cc: Same.
1093 * method-readonly.cc: Same.
1094 * method-serial.cc: Same.
1095 * method-wbetl.cc: Same.
1096 * retry.cc: Same.
1097
10982011-03-03 Richard Henderson <rth@redhat.com>
1099
1100 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1101 From Patrik Marlier <patrick.marlier@unine.ch>.
1102
11032011-02-03 Richard Henderson <rth@redhat.com>
1104
1105 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1106 * configure.ac: Use it.
1107 * configure, config.h.in: Rebuild.
1108 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1109 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1110 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1111 * libitm.map: Use wildcards to match size_t mangling.
1112
11132010-12-14 Richard Henderson <rth@redhat.com>
1114
1115 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1116 blocks of TIDs per thread.
1117 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1118 (setup_gtm_thr): Return the thread structure.
1119 * config/x86/tls.h (setup_gtm_thr): Likewise.
1120
11212010-12-14 Richard Henderson <rth@redhat.com>
1122
1123 * clone.cc (table_lock): Remove.
1124 (find_clone): Don't take it.
1125 (ExcludeTransaction): New helper class.
1126 (_ITM_registerTMCloneTable): Use it.
1127 (_ITM_deregisterTMCloneTable): Likewise.
1128
11292010-12-14 Richard Henderson <rth@redhat.com>
1130
1131 * config/x86/tls.h: New file.
1132
11332010-07-15 Richard Henderson <rth@redhat.com>
1134
1135 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1136 * Makefile.in: Rebuild.
1137
11382010-07-13 Aldy Hernandez <aldyh@redhat.com>
1139
1140 * method-wbetl.cc (trydropreference): Fix source line.
1141
11422010-07-13 Aldy Hernandez <aldyh@redhat.com>
1143
1144 * libitm.h: Add comment.
1145 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1146
11472010-07-07 Aldy Hernandez <aldyh@redhat.com>
1148
1149 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1150 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1151 available, use pthread mutexes.
1152 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1153 * config.h.in: Regenerate.
1154 * configure: Regenerate.
1155
11562010-07-06 Aldy Hernandez <aldyh@redhat.com>
1157
1158 * libitm.h (ITM_PURE): Define.
1159 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1160
11612010-06-28 Aldy Hernandez <aldyh@redhat.com>
1162
1163 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1164 (validate): Add comment.
1165 (trydropreference): New.
1166 * method-readonly.cc (class readonly_dispatch): Add
1167 trydropreference.
1168 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1169 Call trydropreference().
1170 * libitm.h (_ITM_dropReferences): Remove const attribute.
1171 * method-serial.cc (class serial_dispatch): Add trydropreference.
1172 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1173
11742010-06-28 Aldy Hernandez <aldyh@redhat.com>
1175
1176 * memcpy.cc (do_memcpy): Comment.
1177
11782010-06-25 Aldy Hernandez <aldyh@redhat.com>
1179
1180 * barrier.tpl: Add comments throughout.
1181
11822010-06-24 Aldy Hernandez <aldyh@redhat.com>
1183
1184 * method-wbetl.cc (struct w_entry): Add comments.
1185 (trycommit): Same.
1186 (rollback): Same.
1187
11882010-06-24 Aldy Hernandez <aldyh@redhat.com>
1189
1190 * alloc_c.cc (_ITM_dropReferences): New.
1191 * libitm.map (_ITM_dropReferences): Add.
1192 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1193 * libitm_i.h (struct gtm_transaction): Declare
1194 drop_references_allocations and drop_references_local.
1195 * local.cc (rollback_local): Ignore memory when applicable.
1196 (drop_references_local): New.
1197
11982010-06-23 Richard Henderson <rth@redhat.com>
1199
1200 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1201 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1202 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1203 * config/alpha/target.h: Likewise.
1204 * config/generic/tls.cc (gtm_mask_stack): Use it.
1205
12062010-06-23 Richard Henderson <rth@redhat.com>
1207
1208 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1209 a mutex instead of trying a lock-free compare-and-swap on the list.
1210 (gtm_cacheline_page::operator delete): Likewise.
1211
12122010-06-16 Richard Henderson <rth@redhat.com>
1213
1214 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1215 that overlap the libitm stack.
1216 * barrier.tpl: Mark incoming stack.
1217 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1218 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1219 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1220 * memcpy.cc, memset.cc: Likewise.
1221 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1222 * config/generic/tls.h (gtm_thread): Add stack_top member.
1223 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1224 * libitm_i.h (gtm_mask_stack): Declare.
1225 * config/generic/tls.cc: New file.
1226 * Makefile.am (libitm_la_SOURCES): Add it.
1227 (AM_CXXFLAGS): Turn off exceptions.
1228 * Makefile.in: Rebuild.
1229
12302010-06-16 Richard Henderson <rth@redhat.com>
1231
1232 * alloc.cc (struct gtm_alloc_action): Move definition ...
1233 * libitm_i.h: ... here.
1234 (class gtm_transaction): Declare new and delete.
1235 * beginend.cc (alloc_tx): Reformulate as operator new.
1236 (free_tx): Reformulate as operator delete.
1237 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1238
12392010-06-11 Richard Henderson <rth@redhat.com>
1240
1241 * clone.cc (clone_entry_compare): Fix typo.
1242 From Patrik Marlier <patrick.marlier@unine.ch>.
1243
12442010-05-13 Richard Henderson <rth@redhat.com>
1245
1246 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1247 in extern "C".
1248
12492010-05-07 Aldy Hernandez <aldyh@redhat.com>
1250
1251 * libitm_i.h (struct gtm_transaction): Remove
1252 get_allocation_size.
1253 (record_allocation): Remove size parameter.
1254 * libitm.map (_ITM_realloc): Remove.
1255 * alloc_c.cc (_ITM_realloc): Remove.
1256 (_ITM_malloc): Remove size argument to record_allocation.
1257 (_ITM_calloc): Same.
1258 * alloc_cpp.cc (_ZGTtnwm): Same.
1259 (_ZGTtnwmRKSt9nothrow_t): Same.
1260 (_ZGTtnam): Same.
1261 (_ZGTtnamRKSt9nothrow_t): Same.
1262 * alloc.cc (struct gtm_alloc_action): Remove size.
1263 (get_allocation_size): Remove.
1264 (commit_allocations): Add comment.
1265 (record_allocation): Remove size parameter.
1266 (forget_allocation): Remove set of size.
1267
12682010-04-19 Aldy Hernandez <aldyh@redhat.com>
1269
1270 * Makefile.am (abi_version): New.
1271 (AM_CXXFLAGS): Pass abi_version.
1272 * Makefile.in: Regenerate.
1273 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1274
12752010-04-06 Aldy Hernandez <aldyh@redhat.com>
1276
1277 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1278 _ITM_getTMCloneOrIrrevokable.
1279 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1280 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1281
12822010-03-26 Aldy Hernandez <aldyh@redhat.com>
1283
1284 * configure.ac: Remove Linux futex support.
1285 * configure.tgt (config_path): Same.
1286 * Makefile.am: Same.
1287 * config/linux: Remove entire directory.
1288 * configure: Rebuild.
1289 * Makefile.in: Rebuild.
1290 * testsuite/Makefile.in: Rebuild.
1291
12922010-03-09 Aldy Hernandez <aldyh@redhat.com>
1293
1294 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1295 switching to serial mode.
1296 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1297
12982010-03-03 Aldy Hernandez <aldyh@redhat.com>
1299
1300 * configure.tgt: Add emacs -*- tags.
1301 * barrier.tpl: Same.
1302
13032010-02-23 Aldy Hernandez <aldyh@redhat.com>
1304
1305 * Makefile.am: Rename serial.cc to method-serial.cc.
1306 * Makefile.in: Regenerate with automake 1.11.1.
1307 * testsuite/Makefile.in: Same.
1308 * aclocal.m4: Regenerate with aclocal 1.11.1.
1309 * method-serial.cc: Rename from serial.cc.
1310 * libitm_i.h (struct gtm_transaction): Update comment on
1311 serialirr_mode.
1312
13132010-02-22 Aldy Hernandez <aldyh@redhat.com>
1314
1315 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1316 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1317
13182010-02-11 Aldy Hernandez <aldyh@redhat.com>
1319
1320 * configure: Rebuild.
1321
13222009-11-12 Richard Henderson <rth@redhat.com>
1323
1324 * Rewrite everything in C++.
1325
13262009-11-03 Richard Henderson <rth@redhat.com>
1327
1328 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1329 * Makefile.am (libitm_la_SOURCES): Add them.
1330 * configure.ac (ARCH_X86): New conditional.
1331 * Makefile.in, configure: Rebuild.
1332 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1333 Move futex setup into "other system configury" case.
1334 * local.c (rollback_local): Merge into ...
1335 (GTM_rollback_local): ... here.
1336 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1337 (_ITM_LB): Define as an alias to GTM_LB.
1338
13392009-11-03 Richard Henderson <rth@redhat.com>
1340
1341 * method-readonly.c: New file.
1342 * Makefile.am (libitm_la_SOURCES): Add it.
1343 * Makefile.in: Rebuild.
1344 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1345 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1346 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1347 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1348 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1349 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1350 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1351 gtm_get_clock, gtm_inc_clock): New.
1352 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1353 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1354 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1355 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1356 replace uses with new libitm_i.h symbols.
1357 (dispatch_wbetl): Rename from wbetl_dispatch.
1358 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1359 away from dispatch_readonly; abort if the beginTransaction call
1360 asserted that the transaction was readonly.
1361
13622009-11-03 Richard Henderson <rth@redhat.com>
1363
1364 * memset.c: New file.
1365 * Makefile.am (libitm_la_SOURCES): Add it.
1366 * Makefile.in: Rebuild.
1367 * testsuite/libitm.c/memset-1.c: New.
1368
13692009-11-03 Richard Henderson <rth@redhat.com>
1370
1371 * dispatch.c: Remove file.
1372 * useraction.c (struct gtm_user_action): Move from libitm.h.
1373 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1374 (serial_memset, serial_memmove, serial_memcpy): Remove.
1375 (serial_W*, serial_R*): Remove.
1376 (serial_dispatch): Update to match.
1377 * configure.ac: Move Werror down below configure checks. Don't
1378 check for sys/loadavg.h, do check for malloc.h. Don't check for
1379 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1380 Use GCC_AC_FUNC_MMAP_BLACKLIST
1381 * libitm.h: Split out all internal items to...
1382 * libitm_i.h: ... here. New file.
1383 * copymask.c: New file.
1384 * local.c (struct gtm_local_undo): Move from libitm.h.
1385 (GTM_alloc_local): Rename from alloc_local; export.
1386 * memcpy.c: New file.
1387 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1388 * config/posix/page.c: New file.
1389 * config/posix/target_tls.h: Remove file.
1390 * barrier.c: New file.
1391 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1392 copymask.c, page.c.
1393 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1394 * method-wbetl.c: Rewrite for new cacheline methods.
1395 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1396
1397 * config/alpha/sjlj.S: Fix typo.
1398 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1399 * config/alpha/copymask.c: New file.
1400 * config/alpha/target.h (CACHELINE_SIZE): New.
1401 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1402
1403 * config/x86/target_i.h: Copy functions from x86/target.h.
1404 * config/x86/copymask.c: New file.
1405 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1406 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1407 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1408 * config/x86/target_tls.h: Move contents to target_i.h.
1409
1410 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1411 * testsuite/libitm.c/memcpy-1.c: New.
1412
14132009-10-22 Richard Henderson <rth@redhat.com>
1414
1415 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1416 (AM_CCASFLAGS): New.
1417 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1418 saving/restoring _AC_ARG_VAR_PRECIOUS.
1419 * Makefile.in, aclocal.m4, config.h.in, configure,
1420 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1421
14222009-10-22 Richard Henderson <rth@redhat.com>
1423
1424 * testsuite/*: Update for new compiler syntax.
1425
14262009-10-21 Richard Henderson <rth@redhat.com>
1427
1428 * libitm.h (_ITM_abortReason): Add outerAbort.
1429
14302009-08-03 Richard Henderson <rth@redhat.com>
1431
1432 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1433 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1434 * method-wbetl.c (struct w_entry): Remove mask.
1435 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1436 adjust all callers.
1437
14382009-07-22 Richard Henderson <rth@redhat.com>
1439
1440 * eh_cpp.c: New file.
1441 * Makefile.am (libitm_la_SOURCES): Add it.
1442 * Makefile.in: Rebuild.
1443 * beginend.c (GTM_rollback_transaction): Undo exception state.
1444 (GTM_trycommit_transaction): Mark inline.
1445 (GTM_trycommit_and_finalize_transaction): Split out from ...
1446 (_ITM_commitTransaction): ... here.
1447 (_ITM_commitTransactionEH): New function.
1448 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1449 cxa_unthrown, eh_in_flight; reorder.
1450
1451 * testsuite/libitm.c++/c++.exp: New.
1452 * testsuite/libitm.c++/eh-1.C: New.
1453
1454 * aatree.c (aa_free): Remove REGPARM.
1455 * aatree.h: Remove all REGPARM.
1456
14572009-07-18 Richard Henderson <rth@redhat.com>
1458
1459 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1460 * Makefile.am (libitm_la_SOURCES): Add them.
1461 * Makefile.in: Rebuild.
1462 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1463 (GTM_trycommit_transaction): Likewise.
1464 * libitm.h: Include aatree.h
1465 (struct gtm_alloc_action): New.
1466 (struct gtm_transaction): Add alloc_actions.
1467 (GTM_record_allocation, GTM_forget_allocation): Declare.
1468 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1469 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1470 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1471 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1472 _ZGTtdaPvRKSt9nothrow_t): Export.
1473
14742009-07-18 Richard Henderson <rth@redhat.com>
1475
1476 * target_tls.h: Move ...
1477 * config/posix/target_tls.h: ... here.
1478
14792009-07-07 Richard Henderson <rth@redhat.com>
1480
1481 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1482
14832009-07-07 Richard Henderson <rth@redhat.com>
1484
1485 * Update to GPL3.
1486
14872009-07-07 Richard Henderson <rth@redhat.com>
1488
1489 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1490 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1491
1492 * configure.tgt: Don't use -ftls-model for x86 linux.
1493 * libitm.h: Include target.h after standard includes.
1494 (_gtm_thr): Rename from gtm_thr.
1495 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1496 (gtm_disp, set_gtm_disp): New.
1497 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1498 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1499 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1500
15012009-07-07 Richard Henderson <rth@redhat.com>
1502
1503 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1504
15052009-07-06 Richard Henderson <rth@redhat.com>
1506
1507 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1508 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1509 (_ITM_beginTransaction): Take variadic arguments.
1510 (_ITM_registerThrownObject): Declare.
1511 * beginend.c, serial.c: Update.
1512 * libitm.map: Add _ITM_registerThrownObject.
1513
15142009-01-28 Richard Henderson <rth@redhat.com>
1515
1516 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1517 * Makefile.in: Rebuild.
1518 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1519 (GTM_restart_transaction): Fix uninstrumented code check.
1520 * retry.c (GTM_decide_retry_strategy): Add serial check.
1521 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1522 automatically go irrevokable when in serial mode.
1523 * clone.c: New file.
1524 * libitm.h, libitm.map: Update.
1525
15262009-01-27 Richard Henderson <rth@redhat.com>
1527
1528 * Makefile.am (LTCCASCOMPILE): Define.
1529 (libitm_la_SOURCES): Add methid-wbetl.c.
1530 * testsuite/Makefile.am: New
1531 * configure.ac: Add testsuite/Makefile.
1532 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1533 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1534 (_ITM_abortTransaction): Finalize implementation method; pass
1535 transaction properties to longjmp.
1536 (GTM_restart_transaction): Split out from ...
1537 (_ITM_commitTransaction): ... here.
1538 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1539 Move to config/x86/target.h.
1540 * config/linux/alpha/futex_bits.h: New.
1541 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1542 * config/x86/target.h: Disable target types for 32-bit.
1543 * config/alpha/sjlj.S, config/alpha/target.h: New.
1544 * libitm.h (struct gtm_dispatch): Add init, fini.
1545 (enum restart_reason): New.
1546 (struct gtm_transaction): Add method and restarts.
1547 * retry.c (GTM_decide_retry_strategy): Implement.
1548 * serial.c (serial_init, serial_fini): New.
1549 (GTM_serialmode): Finialize outgoing method.
1550 * method-wbetl.c: New.
1551
15522008-12-09 Richard Henderson <rth@redhat.com>
1553
1554 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1555 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1556 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1557 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1558 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1559 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1560 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1561 * serial.c (serial_R##T, serial_W##T): Likewise.
1562
15632008-11-21 Richard Henderson <rth@redhat.com>
1564
1565 * Initial commit.