aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-02-08 14:13:57 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-02-08 14:13:57 +0000
commit3fd9f0476f43c574b3525132a372f4960efc0a1b (patch)
tree2ecdff1ca8f91ba0d9ecd4def96bbe9d926ad4da /gas/doc
parent08ccce320647e30448a6b94e87ef89a977fc84dc (diff)
downloadgdb-3fd9f0476f43c574b3525132a372f4960efc0a1b.zip
gdb-3fd9f0476f43c574b3525132a372f4960efc0a1b.tar.gz
gdb-3fd9f0476f43c574b3525132a372f4960efc0a1b.tar.bz2
New elseif directive has been added.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/as.texinfo11
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 0f342fe..9e89cee 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -3109,6 +3109,7 @@ Some machine configurations provide additional directives.
* Double:: @code{.double @var{flonums}}
* Eject:: @code{.eject}
* Else:: @code{.else}
+* Elseif:: @code{.elseif}
* End:: @code{.end}
@ifset COFF
* Endef:: @code{.endef}
@@ -3466,6 +3467,14 @@ assembly; @pxref{If,,@code{.if}}. It marks the beginning of a section
of code to be assembled if the condition for the preceding @code{.if}
was false.
+@node Elseif
+@section @code{.elseif}
+
+@cindex @code{elseif} directive
+@code{.elseif} is part of the @code{@value{AS}} support for conditional
+assembly; @pxref{If,,@code{.if}}. It is shorthand for beginning a new
+@code{.if} block that would otherwise fill the entire @code{.else} section.
+
@node End
@section @code{.end}
@@ -3694,6 +3703,8 @@ considered part of the source program being assembled if the argument
the conditional section of code must be marked by @code{.endif}
(@pxref{Endif,,@code{.endif}}); optionally, you may include code for the
alternative condition, flagged by @code{.else} (@pxref{Else,,@code{.else}}).
+If you have several conditions to check, @code{.elseif} may be used to avoid
+nesting blocks if/else within each subsequent @code{.else} block.
The following variants of @code{.if} are also supported:
@table @code