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]

[PATCH] In x86 -n docs, mention that you need an explicit nop fill byte.


The testcase HJ added is nice, but I think we should also clarify the
documentation as it doesn't have enough info for one to understand what the -n
option does

Comments?

	gas/
	PR gas/22464
	* doc/c-i386.texi (-n): Clarify docs.
---
 gas/doc/c-i386.texi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index a1d33bde3d..a0e280c63c 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -74,7 +74,8 @@ usage and use x86-64 as target platform).
 @item -n
 By default, x86 GAS replaces multiple nop instructions used for
 alignment within code sections with multi-byte nop instructions such
-as leal 0(%esi,1),%esi.  This switch disables the optimization.
+as leal 0(%esi,1),%esi.  This switch disables the optimization if a single
+byte nop (0x90) is explicitly specified as the fill byte for alignment.
 
 @cindex @samp{--divide} option, i386
 @item --divide
-- 
2.14.1


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