From: Josh Bleecher Snyder Date: Thu, 16 Jun 2016 17:49:32 +0000 (-0700) Subject: cmd/internal/obj/x86: remove pointless NOPs X-Git-Tag: go1.8beta1~1644 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=64e152910e5b8ef3cad5aa4d02070fdda645c378;p=gostls13.git cmd/internal/obj/x86: remove pointless NOPs They are no longer needed by stkcheck. Fixes #16057 Change-Id: I57cb55de5b7a7a1d31a3da200a3a2d51576b68f5 Reviewed-on: https://go-review.googlesource.com/26667 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick Reviewed-by: Michael Hudson-Doyle TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/internal/obj/x86/obj6.go b/src/cmd/internal/obj/x86/obj6.go index b400d45767..512342550b 100644 --- a/src/cmd/internal/obj/x86/obj6.go +++ b/src/cmd/internal/obj/x86/obj6.go @@ -686,17 +686,6 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { p.From.Type = obj.TYPE_CONST p.From.Offset = int64(autoffset) p.Spadj = autoffset - } else { - // zero-byte stack adjustment. - // Insert a fake non-zero adjustment so that stkcheck can - // recognize the end of the stack-splitting prolog. - p = obj.Appendp(ctxt, p) - - p.As = obj.ANOP - p.Spadj = int32(-ctxt.Arch.PtrSize) - p = obj.Appendp(ctxt, p) - p.As = obj.ANOP - p.Spadj = int32(ctxt.Arch.PtrSize) } deltasp := autoffset