mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: post CL 20089 cleanups
This CL addresses some issues noted during CL 20089. Change-Id: I4e91a8077c07a571ccc9c004278672eb951c5104 Reviewed-on: https://go-review.googlesource.com/20181 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
14bf9c8c07
commit
a162d11540
10 changed files with 32 additions and 56 deletions
|
|
@ -355,7 +355,6 @@ func compile(fn *Node) {
|
|||
Curfn = fn
|
||||
dowidth(Curfn.Type)
|
||||
|
||||
var oldstksize int64
|
||||
var nod1 Node
|
||||
var ptxt *obj.Prog
|
||||
var pl *obj.Plist
|
||||
|
|
@ -535,13 +534,8 @@ func compile(fn *Node) {
|
|||
|
||||
Thearch.Expandchecks(ptxt)
|
||||
|
||||
oldstksize = Stksize
|
||||
allocauto(ptxt)
|
||||
|
||||
if false {
|
||||
fmt.Printf("allocauto: %d to %d\n", oldstksize, Stksize)
|
||||
}
|
||||
|
||||
setlineno(Curfn)
|
||||
if Stksize+Maxarg > 1<<31 {
|
||||
Yyerror("stack frame too large (>2GB)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue