]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Gas Doc: Update example of how .altmacro affects the interpretation of macro arguments.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Apr 2024 11:06:08 +0000 (12:06 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Apr 2024 11:06:08 +0000 (12:06 +0100)
  PR 31255

gas/doc/as.texi

index 56b5b752b2fcf84c13c18ae45f9dfb10c84f54b6..42db11e91daf10f33d0f4302abb28de46cdda79e 100644 (file)
@@ -6231,27 +6231,22 @@ specified by position, not keyword.  @xref{Altmacro,,@code{.altmacro}}.
 Thus for example:
 
 @example
-.altmacro
 .macro foo bar=1, baz=2
 .print "\bar \baz"
 .endm
 
+foo baz=3
+.altmacro
 foo baz=3
 @end example
 
 Will print:
 
-@smallexample
-baz=3 2
-@end smallexample
-
-Rather than the expected:
-
 @smallexample
 1 3
+baz=3 2
 @end smallexample
 
-
 @end table
 
 Note that since each of the @var{macargs} can be an identifier exactly