aboutsummaryrefslogtreecommitdiff
path: root/libitm/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2015-11-22libitm: Fix recent changes to allocations log.Torvald Riegel1-0/+17
libitm/ * libitm_i.h (gtm_alloc_action): Remove union. * testsuite/libitm.c/alloc-1.c: New. From-SVN: r230727
2015-11-20Support __cxa_free_exception and fix exception handling.Torvald Riegel1-0/+46
gcc/cp/ * except.c (do_free_exception): Use transactional wrapper. libitm/ * testsuite/libitm.c++/eh-5.C: New. * libitm.h (_ITM_cxa_free_exception): New. * libitm.map (_ITM_cxa_free_exception): Add it. * libitm.texi: Update ABI docs. * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove. (gtm_transaction_cp::cxa_uncaught_count): Add. (gtm_thread::cxa_unthrown): Remove. (gtm_thread::cxa_uncaught_count_ptr): Add. (gtm_thread::cxa_uncaught_count): Add. (gtm_thread::drop_references_allocations): Rename to... (gtm_thread::discard_allocation): ... this and adapt. (gtm_thread::init_cpp_exceptions): New. * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling. (gtm_thread::begin_transaction): Likewise. (gtm_transaction_cp::save): Likewise. (gtm_thread::trycommit): Likewise. * eh_cpp.cc: Add overview comments. (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare. (free_any_exception, _ITM_cxa_free_exception): New. (gtm_thread::init_cpp_exceptions): Define. (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt. (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise. (gtm_thread::revert_cpp_exceptions): Likewise. From-SVN: r230634
2015-11-09Support sized delete.Torvald Riegel1-0/+12
This adds transactional clones of the sized version of operator delete. From-SVN: r230036
2015-10-09Testsuite: add dg-{begin|end}-multiline-output commandsDavid Malcolm1-0/+1
This patch adds an easy way to write tests for expected multiline output. For example we can test carets and underlines for a particular diagnostic with: /* { dg-begin-multiline-output "" } typedef struct _GMutex GMutex; ^~~~~~~ { dg-end-multiline-output "" } */ multiline.exp is used by prune.exp; hence we need to load it before prune.exp via *load_gcc_lib* for the testsuites of the various non-"gcc" support libraries (e.g. boehm-gc). gcc/testsuite/ChangeLog: * lib/multiline.exp: New file. * lib/prune.exp: Load multiline.exp. (prune_gcc_output): Call into multiline.exp to handle any multiline output directives. * lib/libgo.exp: Load multiline.exp before prune.exp, using load_gcc_lib. boehm-gc/ChangeLog: * testsuite/lib/boehm-gc.exp: Load multiline.exp before prune.exp, using load_gcc_lib. libatomic/ChangeLog: * testsuite/lib/libatomic.exp: Load multiline.exp before prune.exp, using load_gcc_lib. libgomp/ChangeLog: * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp, using load_gcc_lib. libitm/ChangeLog: * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp, using load_gcc_lib. libvtv/ChangeLog: * testsuite/lib/libvtv.exp: Load multiline.exp before prune.exp, using load_gcc_lib. From-SVN: r228655
2015-10-05Move runtime transactional memory tests to libitm testsute.Jason Merrill3-0/+45
From-SVN: r228489
2015-05-13libitm: Bump to automake 1.11.6Michael Haubenwallner1-13/+47
2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> * Makefile.in: Regenerated with automake-1.11.6. * aclocal.m4: Likewise. * configure: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r223144
2015-01-15Make test2/test1 static in libitm.c/stackundo.cH.J. Lu1-2/+2
libitm.c/stackundo.c fails with -fpic since test1 and test2 may be preempted with -fpic. This patch makes those 2 functions static. PR libitm/64360 * libitm.c/stackundo.c (test2): Make it static. (test1): Likewise. From-SVN: r219673
2015-01-05Update copyright years.Jakub Jelinek2-2/+2
From-SVN: r219188
2014-12-12Add load of target-utils.exp to libatomic, libitm, libvtv, libgo testsuite ↵Kyrylo Tkachov1-1/+2
drivers * testsuite/lib/libatomic.exp: Load target-utils.exp * testsuite/lib/libitm.exp: Load target-utils.exp. Move load of target-supports.exp earlier. * testsuite/lib/libvtv.exp: Load target-utils.exp From-SVN: r218664
2014-10-06memcpy-1.c: Declare getpagesize.Marek Polacek2-0/+2
* testsuite/libitm.c/memcpy-1.c: Declare getpagesize. * testsuite/libitm.c/memset-1.c: Likewise. From-SVN: r215931
2014-01-02Update copyright years in libitm/Richard Sandiford2-2/+2
From-SVN: r206298
2013-06-20libitm.exp: Reorder lib loads into dependency order.Iain Sandoe3-8/+14
2013-06-20 Iain Sandoe <iain@codesourcery.com> Cesar Philippidis <cesar@codesourcery.com> * testsuite/lib/libitm.exp: Reorder lib loads into dependency order. Do not load_gcc_lib gcc-dg.exp and add a comment as to why. * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp. * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp. Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com> From-SVN: r200252
2013-02-03Update copyright in libitm.Richard Sandiford2-2/+2
From-SVN: r195697
2012-10-30Detect assembler support for RTMRichard Henderson1-36/+3
* acinclude.m4 (LIBITM_CHECK_AS_RTM): New. * configure.ac: Use it. * config.h.in, configure: Rebuild. * testsuite/Makefile.in: Rebuild. From-SVN: r193017
2012-03-16lib{gomp,itm}/testsuite: load missing fortran-modules.expBernhard Reutner-Fischer1-0/+1
libgomp/ChangeLog 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> * testsuite/lib/libgomp.exp: load fortran-modules.exp libitm/ChangeLog 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> * testsuite/lib/libitm.exp: load fortran-modules.exp From-SVN: r185460
2012-02-13gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.Eric Botcazou1-1/+0
gcc/ * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. (GTM_SELF_SPECS): Define if not already defined. (driver_self_specs): Add GTM_SELF_SPECS. * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm. (GTM_SELF_SPECS): Define. * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise. * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise. libitm/ * configure.ac (link_itm): Fix comment. * configure: Regenerate. * testsuite/lib/libitm.exp: Do not pass -litm for the link. From-SVN: r184174
2012-01-31Link C++ tests with -shared-libgcc (PR libitm/51822)Rainer Orth1-3/+7
PR libstdc++/51296 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc. Correct libgomp references. From-SVN: r183754
2012-01-23Clear hardware capabilities on libitm.so with Sun ldRainer Orth1-0/+1
* clearcap.map: New file. * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test. * configure.ac: Call it. Clear HWCAP_LDFLAGS if defaulting to -mavx. * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS) * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. From-SVN: r183430
2012-01-17Skip static_ctor.C test (PR libitm/51173)Rainer Orth1-1/+1
PR libitm/51173 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove include, exclude options. From-SVN: r183253
2012-01-13libitm: Filter out undo writes that overlap with the libitm stack.Torvald Riegel1-0/+23
PR libitm/51855 * config/generic/tls.h (GTM::mask_stack_top): New. (GTM::mask_stack_bottom): Declare. * config/generic/tls.c (GTM::mask_stack_bottom): New. * local.cc (gtm_undolog::rollback): Filter out any updates that overlap the libitm stack. Add current transaction as parameter. * libitm_i.h (GTM::gtm_undolog::rollback): Adapt. * beginend.cc (GTM::gtm_thread::rollback): Adapt. * testsuite/libitm.c/stackundo.c: New test. From-SVN: r183172
2012-01-05re PR libitm/51171 (XFAIL: libitm.c/reentrant.c execution test)Aldy Hernandez1-2/+2
PR other/51171 * testsuite/libitm.c/reentrant.c: Remove xfail. (thread): Pass x to pure(). From-SVN: r182911
2011-11-22weakref.m4: New file.Iain Sandoe1-4/+6
config: * weakref.m4: New file. libitm: * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF. * alloc_cpp.cc: Generate dummy functions if we don't HAVE_ELF_STYLE_WEAKREF. * eh_cpp.cc: Likewise. * configure: Regenerate. * aclocal.m4: Likewise. * config.h.in: Likewise. * Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r181618
2011-11-22memcpy-1.c: Allow for MAP_ANON spelling.Iain Sandoe2-0/+12
libitm: * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling. * testsuite/libitm.c/memset-1.c: Likewise. From-SVN: r181611
2011-11-14Check ia32 instead of ilp32.H.J. Lu1-1/+1
2011-11-14 H.J. Lu <hongjiu.lu@intel.com> * testsuite/lib/libitm.exp: Check ia32 instead of ilp32. From-SVN: r181360
2011-11-10libitm port to Tru64 UNIXRainer Orth5-0/+9
* config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use .hidden. (.note.GNU-stack): Only use if __linux__. * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function. * testsuite/libitm.c/notx.c: Use dg-options "-pthread". * testsuite/libitm.c/reentrant.c: Likewise. * testsuite/libitm.c/simple-2.c: Likewise. * testsuite/libitm.c/txrelease.c: Likewise. * testsuite/libitm.c++/static_ctor.C: Likewise. From-SVN: r181262
2011-11-09libitm: Remove unused code.Richard Henderson1-3/+1
In particular, unused code that's presenting portability problems. From-SVN: r181241
2011-11-08Merge from transactional-memory branch.Aldy Hernandez22-0/+1540
From-SVN: r181154