diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-04-21 15:17:10 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-04-21 15:17:10 +0200 |
commit | ca4bf1dd4398dc65d8fff8b9f5c67733729cee95 (patch) | |
tree | 5b91c0790f19ddbb02d74edd4448e4b3b688a7a3 /gcc | |
parent | d8c6cc2ca35489bc41bb58ec96c1195928826922 (diff) | |
download | gcc-ca4bf1dd4398dc65d8fff8b9f5c67733729cee95.zip gcc-ca4bf1dd4398dc65d8fff8b9f5c67733729cee95.tar.gz gcc-ca4bf1dd4398dc65d8fff8b9f5c67733729cee95.tar.bz2 |
testsuite: Add -fchecking to dg-ice tests
In --enable-checking=release builds (which is the default on release
branches), I'm getting various extra FAILs that don't appear in
--enable-checking=yes builds.
XPASS: g++.dg/cpp0x/constexpr-52830.C -std=c++14 (internal compiler error)
FAIL: g++.dg/cpp0x/constexpr-52830.C -std=c++14 (test for excess errors)
XPASS: g++.dg/cpp0x/constexpr-52830.C -std=c++17 (internal compiler error)
FAIL: g++.dg/cpp0x/constexpr-52830.C -std=c++17 (test for excess errors)
XPASS: g++.dg/cpp0x/constexpr-52830.C -std=c++2a (internal compiler error)
FAIL: g++.dg/cpp0x/constexpr-52830.C -std=c++2a (test for excess errors)
FAIL: g++.dg/cpp0x/vt-88982.C -std=c++14 (test for excess errors)
FAIL: g++.dg/cpp0x/vt-88982.C -std=c++17 (test for excess errors)
FAIL: g++.dg/cpp0x/vt-88982.C -std=c++2a (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C -std=c++14 (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C -std=c++17 (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C -std=c++2a (test for excess errors)
FAIL: g++.dg/cpp1z/constexpr-lambda26.C -std=c++17 (test for excess errors)
FAIL: g++.dg/cpp1z/constexpr-lambda26.C -std=c++2a (test for excess errors)
FAIL: g++.dg/cpp2a/nontype-class39.C -std=c++2a (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-1.c -std=c++14 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-1.c -std=c++17 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-1.c -std=c++2a (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-1.c -std=c++98 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-2.c -std=c++14 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-2.c -std=c++17 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-2.c -std=c++2a (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-ice-2.c -std=c++98 (test for excess errors)
These are tests that have dg-ice and most of those ICEs are checking ICEs
which go away in release checking when -fno-checking is the default.
The following patch adds -fchecking option to those.
2021-04-21 Jakub Jelinek <jakub@redhat.com>
* g++.dg/cpp1z/constexpr-lambda26.C: Add dg-additional-options
-fchecking.
* g++.dg/cpp1y/auto-fn61.C: Likewise.
* g++.dg/cpp2a/nontype-class39.C: Likewise.
* g++.dg/cpp0x/constexpr-52830.C: Likewise.
* g++.dg/cpp0x/vt-88982.C: Likewise.
* c-c++-common/goacc/kernels-decompose-ice-1.c: Add -fchecking to
dg-additional-options.
* c-c++-common/goacc/kernels-decompose-ice-2.c: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/vt-88982.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/auto-fn61.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp2a/nontype-class39.C | 1 |
7 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c index d770b91d..8c3884b 100644 --- a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c +++ b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c @@ -1,7 +1,7 @@ /* Test OpenACC 'kernels' construct decomposition. */ /* { dg-additional-options "-fopt-info-omp-all" } */ -/* { dg-additional-options "--param=openacc-kernels=decompose" } */ +/* { dg-additional-options "-fchecking --param=openacc-kernels=decompose" } */ /* { dg-ice "TODO" } { dg-prune-output "during GIMPLE pass: omplower" } */ diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c index ae059eb..8bf60a9 100644 --- a/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c +++ b/gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c @@ -1,6 +1,6 @@ /* Test OpenACC 'kernels' construct decomposition. */ -/* { dg-additional-options "--param=openacc-kernels=decompose" } */ +/* { dg-additional-options "-fchecking --param=openacc-kernels=decompose" } */ /* { dg-ice "TODO" } { dg-prune-output "during GIMPLE pass: omplower" } */ diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C index 2c9d2f9..eae0d8c 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C @@ -1,5 +1,6 @@ // PR c++/52830 // { dg-do compile { target c++11 } } +// { dg-additional-options "-fchecking" } // { dg-ice "comptypes" } template<bool b> struct eif { typedef void type; }; diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-88982.C b/gcc/testsuite/g++.dg/cpp0x/vt-88982.C index cb9530d..7a86823 100644 --- a/gcc/testsuite/g++.dg/cpp0x/vt-88982.C +++ b/gcc/testsuite/g++.dg/cpp0x/vt-88982.C @@ -1,5 +1,6 @@ // PR c++/88982 // { dg-do compile { target c++11 } } +// { dg-additional-options "-fchecking" } // { dg-ice "tsubst_pack_expansion" } template<typename...Ts> struct A { diff --git a/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C b/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C index c24c3b8..bed5ea0 100644 --- a/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C +++ b/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C @@ -1,5 +1,6 @@ // PR c++/88003 // { dg-do compile { target c++14 } } +// { dg-additional-options "-fchecking" } // { dg-ice "poplevel_class" } auto test() { diff --git a/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C b/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C index d6c8bae..0cdb400 100644 --- a/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C +++ b/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C @@ -1,5 +1,6 @@ // PR c++/87765 // { dg-do compile { target c++17 } } +// { dg-additional-options "-fchecking" } // { dg-ice "cxx_eval_constant_expression" } template <int N> diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class39.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class39.C index f5f79a7..512afad 100644 --- a/gcc/testsuite/g++.dg/cpp2a/nontype-class39.C +++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class39.C @@ -1,5 +1,6 @@ // PR c++/89565 // { dg-do compile { target c++20 } } +// { dg-additional-options "-fchecking" } // { dg-ice "resolve_args" } template <auto> |