public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] testsuite: Add -Wno-psabi -w to g++.dg/ext/builtin-shufflevector-1.C
@ 2021-06-02  8:27 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-06-02  8:27 UTC (permalink / raw)
  To: Richard Biener; +Cc: gcc-patches

Hi!

The testcase without this FAILs on i686-linux, where we warn about returning
of a generic vector changing the ABI:

Excess errors:
.../gcc/gcc/testsuite/g++.dg/ext/builtin-shufflevector-1.C:6:15: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
.../gcc/gcc/testsuite/g++.dg/ext/builtin-shufflevector-1.C:17:54: warning: SSE vector argument without SSE enabled changes the ABI [-Wpsabi]

Fixed thusly, tested on x86_64-linux (-m32,-m32/-mno-sse,-m64), committed to
trunk as obvious.

2021-06-02  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/ext/builtin-shufflevector-1.C: Add -Wno-psabi -w to
	dg-options.

--- gcc/testsuite/g++.dg/ext/builtin-shufflevector-1.C.jj	2021-05-31 10:11:15.180978453 +0200
+++ gcc/testsuite/g++.dg/ext/builtin-shufflevector-1.C	2021-06-02 10:06:46.281696855 +0200
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-options "-Wno-psabi -w" }
 
 template <typename T1, typename T2, int ...args>
 struct shufflevector

	Jakub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-02  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02  8:27 [committed] testsuite: Add -Wno-psabi -w to g++.dg/ext/builtin-shufflevector-1.C Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).