Add dg-require-effective-target exceptions
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 17 Jan 2019 12:35:28 +0000 (12:35 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Thu, 17 Jan 2019 12:35:28 +0000 (12:35 +0000)
commit3f21b8e3f7be32dd2b3624a2ece12f84bed545bb
tree75340ddc9f4c2131f303a6f517a6d99feffb1022
parent7431c1a19641953d1d941b346b496c41711c9f0e
Add dg-require-effective-target exceptions

There are a number of tests that fail because they assume that exceptions are
available, but GCN does not support them, yet.

This patch adds "dg-require-effective-target exceptions" in all the affected
tests.  There's probably an automatic way to test for exceptions, but the
current implementation simply says that AMD GCN does not support them.  This
should ensure that no other targets are affected by the change.

2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourcery.com>
    Julian Brown  <julian@codesourcery.com>
    Tom de Vries  <tom@codesourcery.com>

gcc/
* doc/sourcebuild.texi: Document dg-required-effective-target
exceptions.

gcc/testsuite/
* c-c++-common/ubsan/pr71512-1.c: Require exceptions.
* c-c++-common/ubsan/pr71512-2.c: Require exceptions.
* gcc.c-torture/compile/pr34648.c: Require exceptions.
* gcc.c-torture/compile/pr41469.c: Require exceptions.
* gcc.dg/20111216-1.c: Require exceptions.
* gcc.dg/cleanup-10.c: Require exceptions.
* gcc.dg/cleanup-11.c: Require exceptions.
* gcc.dg/cleanup-12.c: Require exceptions.
* gcc.dg/cleanup-13.c: Require exceptions.
* gcc.dg/cleanup-5.c: Require exceptions.
* gcc.dg/cleanup-8.c: Require exceptions.
* gcc.dg/cleanup-9.c: Require exceptions.
* gcc.dg/gomp/pr29955.c: Require exceptions.
* gcc.dg/lto/pr52097_0.c: Require exceptions.
* gcc.dg/nested-func-5.c: Require exceptions.
* gcc.dg/pch/except-1.c: Require exceptions.
* gcc.dg/pch/valid-2.c: Require exceptions.
* gcc.dg/pr41470.c: Require exceptions.
* gcc.dg/pr42427.c: Require exceptions.
* gcc.dg/pr44545.c: Require exceptions.
* gcc.dg/pr47086.c: Require exceptions.
* gcc.dg/pr51481.c: Require exceptions.
* gcc.dg/pr51644.c: Require exceptions.
* gcc.dg/pr52046.c: Require exceptions.
* gcc.dg/pr54669.c: Require exceptions.
* gcc.dg/pr56424.c: Require exceptions.
* gcc.dg/pr64465.c: Require exceptions.
* gcc.dg/pr65802.c: Require exceptions.
* gcc.dg/pr67563.c: Require exceptions.
* gcc.dg/tree-ssa/pr41469-1.c: Require exceptions.
* gcc.dg/tree-ssa/ssa-dse-28.c: Require exceptions.
* gcc.dg/vect/pr46663.c: Require exceptions.
* lib/target-supports.exp (check_effective_target_exceptions): New.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
Co-Authored-By: Kwok Cheung Yeung <kcy@codesourcery.com>
Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r268025
36 files changed:
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr71512-1.c
gcc/testsuite/c-c++-common/ubsan/pr71512-2.c
gcc/testsuite/gcc.c-torture/compile/pr34648.c
gcc/testsuite/gcc.c-torture/compile/pr41469.c
gcc/testsuite/gcc.dg/20111216-1.c
gcc/testsuite/gcc.dg/cleanup-10.c
gcc/testsuite/gcc.dg/cleanup-11.c
gcc/testsuite/gcc.dg/cleanup-12.c
gcc/testsuite/gcc.dg/cleanup-13.c
gcc/testsuite/gcc.dg/cleanup-5.c
gcc/testsuite/gcc.dg/cleanup-8.c
gcc/testsuite/gcc.dg/cleanup-9.c
gcc/testsuite/gcc.dg/gomp/pr29955.c
gcc/testsuite/gcc.dg/lto/pr52097_0.c
gcc/testsuite/gcc.dg/nested-func-5.c
gcc/testsuite/gcc.dg/pch/except-1.c
gcc/testsuite/gcc.dg/pch/valid-2.c
gcc/testsuite/gcc.dg/pr41470.c
gcc/testsuite/gcc.dg/pr42427.c
gcc/testsuite/gcc.dg/pr44545.c
gcc/testsuite/gcc.dg/pr47086.c
gcc/testsuite/gcc.dg/pr51481.c
gcc/testsuite/gcc.dg/pr51644.c
gcc/testsuite/gcc.dg/pr52046.c
gcc/testsuite/gcc.dg/pr54669.c
gcc/testsuite/gcc.dg/pr56424.c
gcc/testsuite/gcc.dg/pr64465.c
gcc/testsuite/gcc.dg/pr65802.c
gcc/testsuite/gcc.dg/pr67563.c
gcc/testsuite/gcc.dg/tree-ssa/pr41469-1.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-28.c
gcc/testsuite/gcc.dg/vect/pr46663.c
gcc/testsuite/lib/target-supports.exp