public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9746] RISC-V: Fix wrong zifencei handling in riscv_subset_list::to_string
@ 2022-03-30  9:03 Kito Cheng
  0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2022-03-30  9:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a765fe39bae5498b679c33b73235b4d2a7c01443

commit r11-9746-ga765fe39bae5498b679c33b73235b4d2a7c01443
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.
    
    (cherry picked from commit 402d28998fa35d9ffc47aa084f66f9381491eeca)

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 dff11cd3dc0..9880289930b 100644
--- a/gcc/common/config/riscv/riscv-common.c
+++ b/gcc/common/config/riscv/riscv-common.c
@@ -425,7 +425,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:[~2022-03-30  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-30  9:03 [gcc r11-9746] 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).