]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clean the output of GOSSAFUNC
authorYury Smolsky <yury@smolsky.by>
Tue, 24 Jul 2018 07:39:00 +0000 (10:39 +0300)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Aug 2018 05:11:17 +0000 (05:11 +0000)
commitc35069d6428d29b12088731aab35cbff1e504a28
treed8101cb41691402d632f5a9bf89772be0a9552d1
parenteeb8aebed6d158ad55cea346fdd659f6d6112de5
cmd/compile: clean the output of GOSSAFUNC

Since we print almost everything to ssa.html in the GOSSAFUNC mode,
there is a need to stop spamming stdout when user just wants to see
ssa.html.

This changes cleans output of the GOSSAFUNC debug mode.
To enable the dump of the debug data to stdout, one must
put suffix + after the function name like that:

GOSSAFUNC=Foo+

Otherwise gc will not print the IR and ASM to stdout after each phase.
AST IR is still sent to stdout because it is not included
into ssa.html. It will be fixed in a separate change.

The change adds printing out the full path to the ssa.html file.

Updates #25942

Change-Id: I711e145e05f0443c7df5459ca528dced273a62ee
Reviewed-on: https://go-review.googlesource.com/126603
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/html.go