[committed] testsuite: Add -Wno-psabi to pr47639.C testcase

Message ID 20220120103456.GJ2646553@tucnak
State Committed
Headers
Series [committed] testsuite: Add -Wno-psabi to pr47639.C testcase |

Commit Message

Jakub Jelinek Jan. 20, 2022, 10:34 a.m. UTC
  On Wed, Jan 19, 2022 at 12:42:22PM +0100, Martin Liška wrote:
> The tests are C++ code, so use a proper file extension.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* g++.dg/ext/boolcomplex-1.c: Moved to...
> 	* g++.dg/ext/boolcomplex-1.C: ...here.
> 	* g++.dg/opt/pr47639.c: Moved to...
> 	* g++.dg/opt/pr47639.C: ...here.

This patch fixes
gcc/testsuite/g++.dg/opt/pr47639.C:6:24: warning: MMX vector return without MMX enabled changes the ABI [-Wpsabi]
gcc/testsuite/g++.dg/opt/pr47639.C:6:5: warning: MMX vector argument without MMX enabled changes the ABI [-Wpsabi]
FAILs on i686-linux.

Committed as obvious to trunk:

2022-01-20  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/opt/pr47639.C: Add -Wno-psabi to dg-options.



	Jakub
  

Patch

--- gcc/testsuite/g++.dg/opt/pr47639.C.jj	2022-01-19 15:02:10.298013819 +0100
+++ gcc/testsuite/g++.dg/opt/pr47639.C	2022-01-20 02:11:49.995354895 +0100
@@ -1,5 +1,5 @@ 
 // { dg-do compile }
-// { dg-options "-fnon-call-exceptions" }
+// { dg-options "-fnon-call-exceptions -Wno-psabi" }
 
 typedef int __attribute__ ((vector_size (8))) vec;