public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7655] riscv: Allow -Wno-psabi to turn off ABI warnings [PR91229] Date: Tue, 15 Mar 2022 12:35:10 +0000 (GMT) [thread overview] Message-ID: <20220315123510.925D23858D20@sourceware.org> (raw) https://gcc.gnu.org/g:98afdc3e2bfccf0a1337013b54f2c5634ef40ee5 commit r12-7655-g98afdc3e2bfccf0a1337013b54f2c5634ef40ee5 Author: Jakub Jelinek <jakub@redhat.com> Date: Tue Mar 15 13:34:33 2022 +0100 riscv: Allow -Wno-psabi to turn off ABI warnings [PR91229] While checking if all targets honor -Wno-psabi for ABI related warnings or messages, I found that almost all do, except for riscv. In the testsuite when we want to ignore ABI related messages we typically use -Wno-psabi -w, but it would be nice to get rid of those -w uses eventually. The following allows silencing those warnings with -Wno-psabi rather than just -w even on riscv. 2022-03-15 Jakub Jelinek <jakub@redhat.com> PR target/91229 * config/riscv/riscv.cc (riscv_pass_aggregate_in_fpr_pair_p, riscv_pass_aggregate_in_fpr_and_gpr_p): Pass OPT_Wpsabi instead of 0 to warning calls. Diff: --- gcc/config/riscv/riscv.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 7da9d377120..ee756aab694 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -2918,8 +2918,8 @@ riscv_pass_aggregate_in_fpr_pair_p (const_tree type, if ((n_old != n_new) && (warned == 0)) { - warning (0, "ABI for flattened struct with zero-length bit-fields " - "changed in GCC 10"); + warning (OPT_Wpsabi, "ABI for flattened struct with zero-length " + "bit-fields changed in GCC 10"); warned = 1; } @@ -2960,8 +2960,8 @@ riscv_pass_aggregate_in_fpr_and_gpr_p (const_tree type, && (num_int_old != num_int_new || num_float_old != num_float_new))) && (warned == 0)) { - warning (0, "ABI for flattened struct with zero-length bit-fields " - "changed in GCC 10"); + warning (OPT_Wpsabi, "ABI for flattened struct with zero-length " + "bit-fields changed in GCC 10"); warned = 1; }
reply other threads:[~2022-03-15 12:35 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=20220315123510.925D23858D20@sourceware.org \ --to=jakub@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).