diff options
author | Nick Clifton <nickc@redhat.com> | 2024-05-13 09:56:09 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-05-13 09:56:09 +0100 |
commit | 83b972fc272db31ab48aa5cde84f47c98868d7c8 (patch) | |
tree | 535c22f6be9bf53b1475e9490681ed04987d4ae6 /gas/doc | |
parent | 7143ed12051c7e432d93f83b387a26ded3d8ddae (diff) | |
download | gdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.zip gdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.tar.gz gdb-83b972fc272db31ab48aa5cde84f47c98868d7c8.tar.bz2 |
Add new assembler macro pseudo-variable \+ which counts the number of times a macro has been invoked.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi index 42db11e..1fb97c4 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -6362,6 +6362,14 @@ Exit early from the current macro definition. executed in this pseudo-variable; you can copy that number to your output with @samp{\@@}, but @emph{only within a macro definition}. +@cindex number of times a macro has been executed +@cindex macro, execution count +@item \+ +Similar to the @code{\@@} pseudo-variable, @command{@value{AS}} also maintains +a per-macro count of the number of times that that macro has been executed. +You can copy that number to your output with @samp{\+}, but +@emph{only within a macro definition}. + @item LOCAL @var{name} [ , @dots{} ] @emph{Warning: @code{LOCAL} is only available if you select ``alternate macro syntax'' with @samp{--alternate} or @code{.altmacro}.} |