aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-09-08 16:20:27 +0800
committerPan Li <pan2.li@intel.com>2023-09-08 16:31:21 +0800
commita0e042d61dadc6bdcbeaa3b712b7a83415a12547 (patch)
tree75891a8c2a930f46976086d2c0b8e184c2f0e596
parentf9cb357ae962ba2922b8507f4d96227780a063b9 (diff)
downloadgcc-a0e042d61dadc6bdcbeaa3b712b7a83415a12547.zip
gcc-a0e042d61dadc6bdcbeaa3b712b7a83415a12547.tar.gz
gcc-a0e042d61dadc6bdcbeaa3b712b7a83415a12547.tar.bz2
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.
-rw-r--r--gcc/config/riscv/riscv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 7a0f9f6..1d7332f 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 "