]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add -Wno-psabi to pr94920 tests [PR94920]
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Jul 2022 10:02:12 +0000 (12:02 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 27 Jul 2022 10:02:12 +0000 (12:02 +0200)
These tests fail on ia32, because we get -Wpsabi warnings.
Fixed by adding -Wno-psabi.  The pr94920.C test still fails the
ABS_EXPR scan-tree-dump though, I think we'll need to add vect
options and use vect_int effective target or something similar.

2022-07-27  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/94920
* g++.dg/pr94920.C: Add -Wno-psabi to dg-options.
* g++.dg/pr94920-1.C: Add dg-additional-options -Wno-psabi.

gcc/testsuite/g++.dg/pr94920-1.C
gcc/testsuite/g++.dg/pr94920.C

index 6c6483eab2d3b981e7f4c31f413bc7f78624b060..f8fa14a537ad6c820e5f0689cd836d2875fcdd82 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/94920 */
+/* { dg-additional-options "-Wno-psabi" } */
 /* { dg-do run } */
 
 #include "pr94920.C"
index 925ec4f42f17e6bc809f44aa427b5d1af41f3e95..126b00478d256dbef26f8e9bd105de277d87c2ec 100644 (file)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/94920 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -Wno-psabi -fdump-tree-optimized" } */
 
 typedef int __attribute__((vector_size(4*sizeof(int)))) vint;