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