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