This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] fix some conditionals in GAS doc
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 07 Oct 2008 12:07:43 -0700
- Subject: [PATCH] fix some conditionals in GAS doc
This fixes some problems with conditionals. They are fairly obvious. One
conditional chops off the end of a sentence. The Skip and Space directive nodes
are conditionalized but their menu entries are not. The description of .line
has a conditional to alternatively describe .ln in a node named "Ln" instead of
"Line", but there is already an unconditional "Ln" node with its own
conditionalized description.
This patch is relative to my previous change. I tested it by running "make info".
OK?
2008-10-07 Bob Wilson <bob.wilson@acm.org>
* doc/as.texinfo (Dot): Expand no-space-dir conditional to include
a complete sentence.
(Pseudo Ops): Put conditionals around Skip and Space menu entries.
(Line): Remove conditional declaration of Ln node and section here.
Put aout-bout description inside the no-line-dir conditional.
(Skip, Space): Use a separate conditional for each node.
--- doc/as.texinfo.orig 2008-10-07 11:38:43.000000000 -0700
+++ doc/as.texinfo 2008-10-07 11:46:55.000000000 -0700
@@ -3373,8 +3373,9 @@
@command{@value{AS}} is assembling into. Thus, the expression @samp{melvin:
.long .} defines @code{melvin} to contain its own address.
Assigning a value to @code{.} is treated the same as a @code{.org}
-directive. Thus, the expression @samp{.=.+4} is the same as saying
+directive.
@ifclear no-space-dir
+Thus, the expression @samp{.=.+4} is the same as saying
@samp{.space 4}.
@end ifclear
@@ -3923,10 +3924,14 @@
@ifset COFF-ELF
* Size:: @code{.size [@var{name} , @var{expression}]}
@end ifset
-
+@ifclear no-space-dir
* Skip:: @code{.skip @var{size} , @var{fill}}
+@end ifclear
+
* Sleb128:: @code{.sleb128 @var{expressions}}
+@ifclear no-space-dir
* Space:: @code{.space @var{size} , @var{fill}}
+@end ifclear
@ifset have-stabs
* Stab:: @code{.stabd, .stabn, .stabs}
@end ifset
@@ -4942,13 +4947,6 @@
@section @code{.line @var{line-number}}
@cindex @code{line} directive
-@end ifclear
-@ifset no-line-dir
-@node Ln
-@section @code{.ln @var{line-number}}
-
-@cindex @code{ln} directive
-@end ifset
@cindex logical line number
@ifset aout-bout
Change the logical line number. @var{line-number} must be an absolute
@@ -4957,10 +4955,8 @@
reported as on logical line number @var{line-number} @minus{} 1. One day
@command{@value{AS}} will no longer support this directive: it is recognized only
for compatibility with existing assembler programs.
-
@end ifset
-@ifclear no-line-dir
Even though this is a directive associated with the @code{a.out} or
@code{b.out} object-code formats, @command{@value{AS}} still recognizes it
when producing COFF output, and treats @samp{.line} as though it
@@ -5953,7 +5949,9 @@
@var{size} and @var{fill} are absolute expressions. If the comma and
@var{fill} are omitted, @var{fill} is assumed to be zero. This is the same as
@samp{.space}.
+@end ifclear
+@ifclear no-space-dir
@node Space
@section @code{.space @var{size} , @var{fill}}