On Tue, Oct 26, 2021 at 11:40:01AM +0800, Kewen.Lin via Gcc-patches wrote:
> gcc/testsuite/ChangeLog:
> 
>       * gcc.dg/pr102897.c: New test.

The testcase FAILs on i686-linux due to:
FAIL: gcc.dg/pr102897.c (test for excess errors)
Excess errors:
.../gcc/gcc/testsuite/gcc.dg/pr102897.c:11:1: warning: MMX vector return 
without MMX enabled changes the ABI [-Wpsabi]
.../gcc/gcc/testsuite/gcc.dg/pr102897.c:10:10: warning: MMX vector argument 
without MMX enabled changes the ABI [-Wpsabi]
Fixed by adding -Wno-psabi.

Tested on x86_64-linux and i686-linux, committed to trunk as obvious.

2021-10-27  Jakub Jelinek  <ja...@redhat.com>

        * gcc.dg/pr102897.c: Add -Wno-psabi to dg-options.

--- gcc/testsuite/gcc.dg/pr102897.c.jj  2021-10-27 09:00:28.848276246 +0200
+++ gcc/testsuite/gcc.dg/pr102897.c     2021-10-27 09:40:45.628296807 +0200
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Specify C99 to avoid the warning/error on compound literals.  */
-/* { dg-options "-O1 -std=c99" } */
+/* { dg-options "-O1 -std=c99 -Wno-psabi" } */
 
 /* Verify that there is no ICE.  */
 


        Jakub

Reply via email to