• Russ Cox's avatar
    cmd/compile: omit X:framepointer in compile version · f0cf7407
    Russ Cox authored
    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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    f0cf7407
main.go 32.2 KB