diff options
author | Russ Cox <rsc@golang.org> | 2017-07-17 10:45:27 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-07-17 16:36:49 +0000 |
commit | f0cf740733b8cb53bc62e66f5e2a45385c06d726 (patch) | |
tree | 7c073af0165c8bcdc2b97abd06ebea3f1e1cb116 /test/nosplit.go | |
parent | 8bb88fdcc2b5a6c1b02f601ff8652cef82c78124 (diff) | |
download | go-f0cf740733b8cb53bc62e66f5e2a45385c06d726.tar.gz go-f0cf740733b8cb53bc62e66f5e2a45385c06d726.zip |
cmd/compile: omit X:framepointer in compile version
Framepointer is the default now. Only print an X: list
if the settings are _not_ the default.
Before:
$ go tool compile -V
compile version devel +a5f30d9508 Sun Jul 16 14:43:48 2017 -0400 X:framepointer
$ go1.8 tool compile -V
compile version go1.8 X:framepointer
$
After:
$ go tool compile -V
compile version devel +a5f30d9508 Sun Jul 16 14:43:48 2017 -0400
$ go1.9 tool compile -V # imagined
compile version go1.9
$
Perpetuates #18317.
Change-Id: I981ba5c62be32e650a166fc9740703122595639b
Reviewed-on: https://go-review.googlesource.com/49252
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/nosplit.go')
-rw-r--r-- | test/nosplit.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nosplit.go b/test/nosplit.go index 3244df53c5..989d8ccba7 100644 --- a/test/nosplit.go +++ b/test/nosplit.go @@ -198,6 +198,10 @@ func main() { goarch = runtime.GOARCH } + // Frame pointer is on by default now. + // golang.org/issue/18317. + return + version, err := exec.Command("go", "tool", "compile", "-V").Output() if err != nil { bug() |