]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: when GOSSAFUNC is set, dump the current pass on crash
authorCherry Zhang <cherryyz@google.com>
Tue, 6 Apr 2021 00:41:56 +0000 (20:41 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 6 Apr 2021 14:15:29 +0000 (14:15 +0000)
commitb345a306a0258085b65081cf2dadc238dc7e26ee
tree004e8fa4922d9185107ea9117ab3d8bf2373de6d
parent939b561a6e36d9b3854d860a80c24dc80f01f6be
cmd/compile: when GOSSAFUNC is set, dump the current pass on crash

When an SSA pass ICEs, it calls f.Fatalf, which terminates the
compiler. When GOSSAFUNC is set, the current pass is not written
to ssa.html. This CL makes it write ssa.html when it calls Fatalf,
for the ease of debugging.

Change-Id: I5d55e4258f0693d89c48c0a84984f2f893b0811d
Reviewed-on: https://go-review.googlesource.com/c/go/+/307509
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/func.go