[PATCH 3/3] RISC-V: Changed confused conflict message of zcmp

Nelson Chu nelson@rivosinc.com
Wed Jul 9 04:53:42 GMT 2025


Not sure why the message said "zcmp' is incompatible with `d/zcd' extension",
but we only check if zcd exsit or not.
---
 bfd/elfxx-riscv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index d3f2f986c00..8353f34e70a 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -2223,7 +2223,7 @@ riscv_parse_check_conflicts (riscv_parse_subset_t *rps)
       && riscv_subset_supports (rps, "zcd"))
     {
       rps->error_handler
-	(_("zcmp' is incompatible with `d/zcd' extension"));
+	(_("zcmp' is incompatible with `zcd' extension"));
       no_conflict = false;
     }
   if (riscv_lookup_subset (rps->subset_list, "zcf", &subset)
-- 
2.39.5 (Apple Git-154)



More information about the Binutils mailing list