[ARM] Update gas .setfp documentation

Daniel Jacobowitz dan@codesourcery.com
Thu Mar 18 18:41:00 GMT 2010


The documentation for the .setfp documentation has the offset
reversed: it corresponds to an add instruction, not a sub
instruction.  The examples below have it right way round, and GCC uses
it correctly.  So I've checked in this patch.

-- 
Daniel Jacobowitz
CodeSourcery

2010-03-18  Daniel Jacobowitz  <dan@codesourcery.com>

	* doc/c-arm.texi (.setfp): Correct example.

Index: doc/c-arm.texi
===================================================================
RCS file: /cvs/src/src/gas/doc/c-arm.texi,v
retrieving revision 1.69
diff -u -p -r1.69 c-arm.texi
--- doc/c-arm.texi	18 Mar 2010 11:22:45 -0000	1.69
+++ doc/c-arm.texi	18 Mar 2010 15:33:15 -0000
@@ -770,7 +770,7 @@ or
 Make all unwinder annotations relative to a frame pointer.  Without this
 the unwinder will use offsets from the stack pointer.
 
-The syntax of this directive is the same as the @code{sub} or @code{mov}
+The syntax of this directive is the same as the @code{add} or @code{mov}
 instruction used to set the frame pointer.  @var{spreg} must be either
 @code{sp} or mentioned in a previous @code{.movsp} directive.
 
@@ -779,7 +779,7 @@ instruction used to set the frame pointe
 mov ip, sp
 @dots{}
 .setfp fp, ip, #4
-sub fp, ip, #4
+add fp, ip, #4
 @end smallexample
 
 @cindex @code{.secrel32} directive, ARM



More information about the Binutils mailing list