testsuite: Fix up pr104992* tests on i686-linux [PR104992]
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Aug 2022 08:26:32 +0000 (10:26 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 11 Aug 2022 08:26:32 +0000 (10:26 +0200)
These 2 tests were FAILing on i686-linux or e.g. with
--target_board=unix/-m32/-mno-sse on x86_64-linux due to
-Wpsabi warnings and also because dg-options in the latter
test has been ignored due to missing space, so even -O2
wasn't passed at all.

2022-08-11  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/104992
* gcc.dg/pr104992.c: Add -Wno-psabi to dg-options.
* g++.dg/pr104992-1.C: Likewise.  Add space between " and } in
dg-options.

gcc/testsuite/g++.dg/pr104992-1.C
gcc/testsuite/gcc.dg/pr104992.c

index f5696b2..02b2882 100644 (file)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/104992 */
 /* { dg-do run } */
-/* { dg-options "-O2"} */
+/* { dg-options "-O2 -Wno-psabi" } */
 
 #include "../gcc.dg/pr104992.c"
 
index b9d91a1..217c89a 100644 (file)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/104992 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -Wno-psabi -fdump-tree-optimized" } */
 
 #define vector __attribute__((vector_size(4*sizeof(int))))