[PATCH] RISC-V: Add :: for static function calling to avoid confusing

juzhe.zhong@rivai.ai juzhe.zhong@rivai.ai
Wed Jan 18 03:16:50 GMT 2023


From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

Since we have same function in class and static function calling get_avl.
Adding :: to avoid codes confusing.

gcc/ChangeLog:

        * config/riscv/riscv-vsetvl.cc (pass_vsetvl::get_backward_fusion_type): Add ::.

---
 gcc/config/riscv/riscv-vsetvl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index e11751f00af..b33c198bbd6 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -2073,7 +2073,7 @@ pass_vsetvl::get_backward_fusion_type (const bb_info *bb,
 	    reg = get_vl (insn->rtl ());
 	  else
 	    /* Check AVL operand for vsetvl zero,avl.  */
-	    reg = get_avl (insn->rtl ());
+	    reg = ::get_avl (insn->rtl ());
 	}
     }
 
-- 
2.36.3



More information about the Gcc-patches mailing list