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