From 402d28998fa35d9ffc47aa084f66f9381491eeca Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Tue, 9 Nov 2021 20:07:28 +0800 Subject: RISC-V: Fix wrong zifencei handling in riscv_subset_list::to_string This issue cause zifencei never correctly appended on the ISA string. gcc/ChangeLog * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix wrong marco checking. --- gcc/common/config/riscv/riscv-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c index f3c120b..b8dd0ae 100644 --- a/gcc/common/config/riscv/riscv-common.c +++ b/gcc/common/config/riscv/riscv-common.c @@ -422,7 +422,7 @@ riscv_subset_list::to_string (bool version_p) const /* Skip since older binutils doesn't recognize zicsr. */ skip_zicsr = true; #endif -#ifndef HAVE_AS_MARCH_ZIFENCE +#ifndef HAVE_AS_MARCH_ZIFENCEI /* Skip since older binutils doesn't recognize zifencei, we made a mistake in that binutils 2.35 supports zicsr but not zifencei. */ skip_zifencei = true; -- cgit v1.1