public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5140] RISC-V: Fix wrong zifencei handling in riscv_subset_list::to_string
@ 2021-11-11 0:47 Kito Cheng
0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2021-11-11 0:47 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:402d28998fa35d9ffc47aa084f66f9381491eeca
commit r12-5140-g402d28998fa35d9ffc47aa084f66f9381491eeca
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Tue Nov 9 20:07:28 2021 +0800
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.
Diff:
---
gcc/common/config/riscv/riscv-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c
index f3c120b4cb4..b8dd0aeac3e 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-11 0:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 0:47 [gcc r12-5140] RISC-V: Fix wrong zifencei handling in riscv_subset_list::to_string Kito Cheng
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).