1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:40:21 -07:00

cmd/compile: do not emit args_stackmap for func _

Fixes #11699.

Change-Id: I01bf506d76260bcdf828bbde52791e328aa441a5
Reviewed-on: https://go-review.googlesource.com/16921
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Russ Cox 2015-11-04 15:54:41 -05:00
parent 247959d9b8
commit 292ad59291
2 changed files with 15 additions and 0 deletions

View File

@ -129,6 +129,9 @@ func gcsymdup(s *Sym) {
}
func emitptrargsmap() {
if Curfn.Func.Nname.Sym.Name == "_" {
return
}
sym := Lookup(fmt.Sprintf("%s.args_stackmap", Curfn.Func.Nname.Sym.Name))
nptr := int(Curfn.Type.Argwid / int64(Widthptr))

View File

@ -0,0 +1,12 @@
// compile
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// issue 11699; used to fail with duplicate _.args_stackmap symbols.
package p
func _()
func _()