aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2022-03-08 16:05:52 +0000
committerMarc Poulhiès <poulhies@adacore.com>2022-03-29 10:36:30 +0200
commitb6cccf88cb65043c20a020e4decf249a78180175 (patch)
tree19b2a7a46d63973573a274684b9ff7d4cebe9d81
parent28c5df79300ab354cbc381aab200f7c2bd0331ad (diff)
downloadgcc-b6cccf88cb65043c20a020e4decf249a78180175.zip
gcc-b6cccf88cb65043c20a020e4decf249a78180175.tar.gz
gcc-b6cccf88cb65043c20a020e4decf249a78180175.tar.bz2
testsuite: fixup pr97521.c and pr96713.c on i686-*
On targets that do not have MXX/SSE enabled by default, pr97521 and pr96713 fail because they emit warnings: pr97521.c:12:1: warning: MMX vector return without MMX enabled changes the ABI [-Wpsabi] pr97521.c:11:1: note: the ABI for passing parameters with 16-byte alignment has changed in GCC 4.6 pr97521.c:11:1: warning: SSE vector argument without SSE enabled changes the ABI [-Wpsabi] Add -Wno-psabi to dg-options. gcc/testsuite/ChangeLog: * gcc.target/i386/pr97521.c: Add -Wno-psabi to dg-options. * gcc.dg/analyzer/pr96713.c: Likewise.
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/pr96713.c1
-rw-r--r--gcc/testsuite/gcc.target/i386/pr97521.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/pr96713.c b/gcc/testsuite/gcc.dg/analyzer/pr96713.c
index fe9cafd..12170bd 100644
--- a/gcc/testsuite/gcc.dg/analyzer/pr96713.c
+++ b/gcc/testsuite/gcc.dg/analyzer/pr96713.c
@@ -1,3 +1,4 @@
+/* { dg-options "-Wno-psabi" } */
typedef int __attribute__ ((vector_size (8))) V;
void
diff --git a/gcc/testsuite/gcc.target/i386/pr97521.c b/gcc/testsuite/gcc.target/i386/pr97521.c
index 804ffd6..5970bcf 100644
--- a/gcc/testsuite/gcc.target/i386/pr97521.c
+++ b/gcc/testsuite/gcc.target/i386/pr97521.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-O -mno-sse2" } */
+/* { dg-options "-O -mno-sse2 -Wno-psabi" } */
typedef unsigned char __attribute__ ((__vector_size__ (8))) V;
typedef unsigned long long __attribute__ ((__vector_size__ (16))) W;