[committed] testsuite: Add -Wno-psabi to pr94920 tests [PR94920]

Message ID YuEPXvMqwxebUgAC@tucnak
State New, archived
Headers
Series [committed] testsuite: Add -Wno-psabi to pr94920 tests [PR94920] |

Commit Message

Jakub Jelinek July 27, 2022, 10:11 a.m. UTC
  Hi!

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.


	Jakub
  

Patch

--- gcc/testsuite/g++.dg/pr94920.C.jj	2022-07-26 10:32:23.957268227 +0200
+++ gcc/testsuite/g++.dg/pr94920.C	2022-07-27 10:59:21.390147571 +0200
@@ -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;
 
--- gcc/testsuite/g++.dg/pr94920-1.C.jj	2022-07-26 10:32:23.957268227 +0200
+++ gcc/testsuite/g++.dg/pr94920-1.C	2022-07-27 10:58:40.451693998 +0200
@@ -1,4 +1,5 @@ 
 /* PR tree-optimization/94920 */
+/* { dg-additional-options "-Wno-psabi" } */
 /* { dg-do run } */
 
 #include "pr94920.C"