1. 04 Jan, 2016 1 commit
  2. 22 Nov, 2015 1 commit
  3. 20 Nov, 2015 1 commit
    • Support __cxa_free_exception and fix exception handling. · 258c1d07
      	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
      Torvald Riegel committed
  4. 09 Nov, 2015 1 commit
  5. 09 Oct, 2015 1 commit
    • Testsuite: add dg-{begin|end}-multiline-output commands · 9e531d37
      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
      David Malcolm committed
  6. 05 Oct, 2015 1 commit
  7. 13 May, 2015 1 commit
  8. 15 Jan, 2015 1 commit
  9. 05 Jan, 2015 1 commit
  10. 12 Dec, 2014 1 commit
  11. 06 Oct, 2014 1 commit
  12. 02 Jan, 2014 1 commit
  13. 20 Jun, 2013 1 commit
    • libitm.exp: Reorder lib loads into dependency order. · 6c84d576
      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
      Iain Sandoe committed
  14. 03 Feb, 2013 1 commit
  15. 31 Oct, 2012 1 commit
  16. 16 Mar, 2012 1 commit
  17. 13 Feb, 2012 1 commit
    • gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. · 255a9a1b
      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
      Eric Botcazou committed
  18. 31 Jan, 2012 1 commit
  19. 23 Jan, 2012 1 commit
    • Clear hardware capabilities on libitm.so with Sun ld · 9ce91011
      	* 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
      Rainer Orth committed
  20. 17 Jan, 2012 1 commit
  21. 13 Jan, 2012 1 commit
    • libitm: Filter out undo writes that overlap with the libitm stack. · 07b6642b
      	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
      Torvald Riegel committed
  22. 05 Jan, 2012 1 commit
  23. 22 Nov, 2011 2 commits
    • weakref.m4: New file. · 8cf36bb3
      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
      Iain Sandoe committed
    • memcpy-1.c: Allow for MAP_ANON spelling. · 9c9d352a
      libitm:
      
      	* testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
      	* testsuite/libitm.c/memset-1.c: Likewise.
      
      From-SVN: r181611
      Iain Sandoe committed
  24. 14 Nov, 2011 1 commit
  25. 10 Nov, 2011 1 commit
    • libitm port to Tru64 UNIX · 8851b429
      	* 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
      Rainer Orth committed
  26. 09 Nov, 2011 1 commit
  27. 08 Nov, 2011 1 commit