[committed] testsuite: Fix up gcc.dg/pr102897.c testcase [PR102897]

Message ID 20211027075125.GF304296@tucnak
State Committed
Headers
Series [committed] testsuite: Fix up gcc.dg/pr102897.c testcase [PR102897] |

Commit Message

Jakub Jelinek Oct. 27, 2021, 7:51 a.m. UTC
  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  <jakub@redhat.com>

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



	Jakub
  

Comments

Kewen.Lin Oct. 27, 2021, 9:24 a.m. UTC | #1
Hi Jakub,

on 2021/10/27 下午3:51, Jakub Jelinek wrote:
> 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.
> 

Thanks for fixing this up!

BR,
Kewen

> 2021-10-27  Jakub Jelinek  <jakub@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
>
  

Patch

--- 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.  */