• Josh Bleecher Snyder's avatar
    cmd/compile: rework reporting of oversized stack frames · ca33e109
    Josh Bleecher Snyder authored
    We don't support stack frames over 2GB.
    Rather than detect this during backend compilation,
    check for it at the end of compilation.
    This is arguably a more accurate check anyway,
    since it takes into account the full frame,
    including local stack, arguments, and arch-specific
    rounding, although it's unlikely anyone would ever notice.
    
    Also, rather than reporting the error right away,
    take note of it and report it later, at the top level.
    This is not relevant now, but it will help with making
    the backend concurrent, as the append to the list of
    oversized functions can be cheaply protected by a plain mutex.
    
    Updates #15756
    Updates #19250
    
    Change-Id: Id3fa21906616d62e9dc66e27a17fd5f83304e96e
    Reviewed-on: https://go-review.googlesource.com/38972
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    ca33e109
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...