This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 RESEND] Document .Nbyte assembler directives


On Tue, Mar 07, 2017 at 09:40:48AM +0100, Sebastian Huber wrote:
> On 07/03/17 07:36, Alan Modra wrote:
> >I've committed this variant.  nios2 and pru also document these
> >directives, mentioning that they are unaligned, so I've left that
> >target specific doco in place.
> >
> >diff --git a/gas/ChangeLog b/gas/ChangeLog
> >index f9af65d6..4153dbe 100644
> >--- a/gas/ChangeLog
> >+++ b/gas/ChangeLog
> >@@ -1,3 +1,9 @@
> >+2017-03-07  Tobin C. Harding  <me@tobin.cc>
> >+	    Alan Modra  <amodra@gmail.com>
> >+
> >+	* doc/as.texinfo (2byte, 4byte, 8byte): Document.
> >+	* doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
> 
> With this patch I get now using makeinfo (GNU texinfo) 4.13:
[snip]
> /home/EB/sebastian_h/archive/binutils-git/gas/doc/as.texinfo:7362: `8byte'
> has no Up field (perhaps incorrect sectioning?).

makeinfo 6.1 worked fine..

So I built makeinfo 4.13, and the problem is fixed as follows:
    
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4153dbe..7949343 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-07  Alan Modra  <amodra@gmail.com>
+
+	* doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
+
 2017-03-07  Tobin C. Harding  <me@tobin.cc>
 	    Alan Modra  <amodra@gmail.com>
 
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 0a70d7c..a8f014b 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -7340,30 +7340,30 @@ instead of zero.  Using @samp{.zero} in this way would be confusing however.
 
 @ifset ELF
 @node 2byte
+@section @code{.2byte @var{expression} [, @var{expression}]*}
 @cindex @code{2byte} directive
 @cindex two-byte integer
 @cindex integer, 2-byte
-@section @code{.2byte @var{expression} [, @var{expression}]*}
 
 This directive @code{.2byte}, which is available for ELF targets, expects zero
 or more expressions, separated by commas. Each expression is assembled into the
 next two bytes.
 
 @node 4byte
+@section @code{.4byte @var{expression} [, @var{expression}]*}
 @cindex @code{4byte} directive
 @cindex four-byte integer
 @cindex integer, 4-byte
-@section @code{.4byte @var{expression} [, @var{expression}]*}
 
 This directive @code{.4byte}, which is available for ELF targets, expects zero
 or more expressions, separated by commas. Each expression is assembled into the
 next four bytes.
 
 @node 8byte
+@section @code{.8byte @var{expression} [, @var{expression}]*}
 @cindex @code{8byte} directive
 @cindex eight-byte integer
 @cindex integer, 8-byte
-@section @code{.8byte @var{expression} [, @var{expression}]*}
 
 This directive @code{.8byte}, which is available for ELF targets, expects zero
 or more bignums, separated by commas.  For each bignum, it emits

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]