public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Suppress bogus warning for VLS types
@ 2023-09-11 13:38 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-09-11 13:38 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:727e8d9fdf88a1ea97d8629431d3e841ede1e437
commit 727e8d9fdf88a1ea97d8629431d3e841ede1e437
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Fri Sep 8 16:20:27 2023 +0800
RISC-V: Suppress bogus warning for VLS types
This patch fixes over 100+ bogus FAILs due to experimental vector ABI warning.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_pass_in_vector_p): Only allow RVV type.
(cherry picked from commit a0e042d61dadc6bdcbeaa3b712b7a83415a12547)
Diff:
---
gcc/config/riscv/riscv.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 7a0f9f6465df..1d7332ff32be 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -4414,7 +4414,7 @@ riscv_pass_in_vector_p (const_tree type)
{
static int warned = 0;
- if (type && riscv_v_ext_mode_p (TYPE_MODE (type)) && !warned)
+ if (type && riscv_vector::lookup_vector_type_attribute (type) && !warned)
{
warning (OPT_Wpsabi,
"ABI for the vector type is currently in experimental stage and "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-11 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 13:38 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Suppress bogus warning for VLS types Jeff Law
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).