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:
parent
247959d9b8
commit
292ad59291
@ -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))
|
||||
|
12
test/fixedbugs/issue11699.go
Normal file
12
test/fixedbugs/issue11699.go
Normal 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 _()
|
Loading…
Reference in New Issue
Block a user