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