]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Suppress bogus warning for VLS types
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Fri, 8 Sep 2023 08:20:27 +0000 (16:20 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 8 Sep 2023 08:31:21 +0000 (16:31 +0800)
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.

gcc/config/riscv/riscv.cc

index 7a0f9f6465df29e3c99d8e7dfa9f56e501d247ca..1d7332ff32be2275fe7a88fa8a8a8d26f0b1fca4 100644 (file)
@@ -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 "