123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- From 484239a45044ffefebb54286ce89e71ce3304d8f Mon Sep 17 00:00:00 2001
- From: Jakub Jelinek <jakub@redhat.com>
- Date: Wed, 21 Apr 2021 15:17:10 +0200
- Subject: [PATCH 05/15] 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.
- ---
- gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c | 2 +-
- gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-2.c | 2 +-
- gcc/testsuite/g++.dg/cpp0x/constexpr-52830.C | 1 +
- gcc/testsuite/g++.dg/cpp0x/vt-88982.C | 1 +
- gcc/testsuite/g++.dg/cpp1y/auto-fn61.C | 1 +
- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda26.C | 1 +
- 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 d770b91dd09..8c3884bdc00 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 ae059eb354b..8bf60a9a509 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 2c9d2f9b329..eae0d8c377b 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 cb9530dcee1..7a868233d73 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 c24c3b85d78..bed5ea0cfc0 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 d6c8bae525f..0cdb400d21c 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 f5f79a71ec2..512afad8e4f 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>
- --
- 2.33.1
|