RFC: Maintaining a per-macro invocation count
Fangrui Song
i@maskray.me
Fri May 17 17:54:45 GMT 2024
On Wed, May 15, 2024 at 2:45 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi Fangrui,
>
> > This feature looks very useful, which resembles
> > https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Special-format-strings
> >
> >> ‘%=’
> >>
> >> Outputs a number that is unique to each instance of the asm statement in
> >> the entire compilation. This option is useful when creating local labels
> >> and referring to them multiple times in a single template that generates
> >> multiple assembler instructions.
>
> Intersting. I had not considered generating assembler tests in C ... :-)
>
> Cheers
> Nick
>
Jan mentioned at https://sourceware.org/pipermail/binutils/2024-May/134087.html
> Just to mention it - I'm intending to extend \+ support to at least .irp
> and .irpc; whether that can also reasonably be done for .rept I haven't
> checked yet.
I filed https://sourceware.org/bugzilla/show_bug.cgi?id=31752 (gas:
Support \+ in .rept/.irp/.irpc directives) to formally track the
feature request
for loop directives.
More information about the Binutils
mailing list