[PATCH] RISC-V: Clear EF_RISCV_RVC/EF_RISCV_TSO when RVC/TSO is disabled using .attribute arch
Yu-Cheng Liang
yclwlcy@gmail.com
Wed Nov 13 02:01:24 GMT 2024
I originally thought that .attribute arch was equivalent to -march and
that .attribute arch would overwrite -march in GAS, but according to
your explanation, it doesn't seem to be that way.
Yu-Cheng
On Tue, Nov 12, 2024 at 5:23 PM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 12.11.2024 03:07, Yu-Cheng Liang wrote:
> > Thanks for the clarification. However, I want to know if it could
> > cause confusion for users when they build binutils with RVC/TSO added
> > to the default architecture attributes, as disabling RVC/TSO using
> > -march and .attribute arch results in different EF_RISCV_RVC/TSO
> > values (-march sets EF_RISCV_RVC/TSO to 0, while .attribute arch sets
> > it to 1).
>
> I'm afraid I don't fully get what you're asking. Whatever is set on the
> gas command line should affect what is emitted. Whatever you set via
> directives should only affect what is emitted if it increases constraints.
> Please can you clarify what your concern is?
>
> Jan
More information about the Binutils
mailing list