[PATCH 1/7] gas/Dwarf: special-case .linefile only for macros
Jan Beulich
jbeulich@suse.com
Mon Mar 28 10:24:20 GMT 2022
On 28.03.2022 11:16, Andreas Schwab wrote:
> On Mär 28 2022, Jan Beulich via Binutils wrote:
>
>> --- a/gas/macro.c
>> +++ b/gas/macro.c
>> @@ -233,7 +233,8 @@ buffer_and_nest (const char *from, const
>> number when expanding the macro), and since for short
>> macros we clearly prefer reporting the point of expansion
>> anyway, there's not an obviously better fix here. */
>> - if (strncasecmp (ptr->ptr + i, "linefile", 8) == 0)
>> + if (from != NULL && strcasecmp (from, "MACRO") == 0
>> + && strncasecmp (ptr->ptr + i, "linefile", 8) == 0)
>
> That's relative to an old version of the file.
Hmm, yes, I will need to re-base this over 4c5f3d0c9eb3.
Jan
More information about the Binutils
mailing list