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

Jiawei jiawei@iscas.ac.cn
Wed Jul 9 09:04:12 GMT 2025


在 2025/7/9 13:25, Jan Beulich 写道:
> 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

Yes, the message wants to means Zcmp is both conflict with Zcd and D 
extension.

Since it use some encodings from c.fsdsp and it depands on Zca extension.

Once you have D, it will turn Zcd on, so marked d/zcd here.


It's okay to change this if you feel confused about this.


BR,

Jiawei

>> --- 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