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