[PATCH 3/3] RISC-V: Changed confused conflict message of zcmp
Jan Beulich
jbeulich@suse.com
Wed Jul 9 05:25:36 GMT 2025
On 09.07.2025 06:53, Nelson Chu wrote:
> Not sure why the message said "zcmp' is incompatible with `d/zcd' extension",
> but we only check if zcd exsit or not.
I expect the message was that way as a consequence of the C+D effects
that were there even before Zcd was invented. As Zcd has been around
for quite some time, modernizing the message is likely fine.
Jan
> --- 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)
More information about the Binutils
mailing list