Author: kib
Date: Fri Feb 16 13:32:46 2018
New Revision: 329365
URL: https://svnweb.freebsd.org/changeset/base/329365

Log:
  Use local symbol for offset.
  
  Small global symbols confuse ddb which matches them against small
  unrelated displacements and makes the disassembly ugly.
  
  Reported by:  bde
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/amd64/include/asmacros.h

Modified: head/sys/amd64/include/asmacros.h
==============================================================================
--- head/sys/amd64/include/asmacros.h   Fri Feb 16 07:02:14 2018        
(r329364)
+++ head/sys/amd64/include/asmacros.h   Fri Feb 16 13:32:46 2018        
(r329365)
@@ -175,11 +175,11 @@
        .endm
 
        .macro  MOVE_STACKS qw
-       offset=0
+       .L.offset=0
        .rept   \qw
-       movq    offset(%rsp),%rdx
-       movq    %rdx,offset(%rax)
-       offset=offset+8
+       movq    .L.offset(%rsp),%rdx
+       movq    %rdx,.L.offset(%rax)
+       .L.offset=.L.offset+8
        .endr
        .endm
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to