[PATCH RFC 3/3] gas: introduce .errif and .warnif
Jan Beulich
jbeulich@suse.com
Wed Dec 11 07:17:03 GMT 2024
On 11.12.2024 08:13, Fangrui Song wrote:
> On Mon, Dec 9, 2024 at 1:27 AM Jan Beulich <jbeulich@suse.com> wrote:
>>
>> Rather than having people resort to indirect means to issue a certain
>> kind of diagnostic conditionally upon an expression which can (or
>> should) only be evaluated when all sections were sized and all symbols
>> has their final values established, provide directives to directly
>> achieve this.
>
> Perhaps allow an optional message argument similar to static_assert?
Hmm. I did consider this, but discarded the idea in favor of (in the
future) printing the expression instead. For now I'd like to leave the
directives as they are; once the changes are in, I wouldn't mind someone
adding what you suggest, while I would still keep on my todo list an
item to add the expression printing (perhaps then only when no message
was specified).
Jan
More information about the Binutils
mailing list