public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Richard Biener <rguenther@suse.de>
Cc: gcc-patches@gcc.gnu.org
Subject: [committed] testsuite: Add -Wno-psabi -w to g++.dg/ext/builtin-shufflevector-1.C
Date: Wed, 2 Jun 2021 10:27:42 +0200	[thread overview]
Message-ID: <20210602082742.GY7746@tucnak> (raw)

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


                 reply	other threads:[~2021-06-02  8:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210602082742.GY7746@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rguenther@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).