cmd/go: add -O2 to invocation of gccgo
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 1 Mar 2019 01:23:09 +0000 (01:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 1 Mar 2019 01:23:09 +0000 (01:23 +0000)
commit3eba09884e5f228d8c044c85617009e2aa7ad342
tree4c693136f7e1eb3a87c490d4e83683dbb9b7d45d
parent5b2eaa1170aa135450a1180a525bf1ed7c34eb3a
cmd/go: add -O2 to invocation of gccgo

    When using the go tool with gccgo, this changes the default
    compilation to use -O2.  The -gccgoflags option can be used to
    override this default.  I think this change better corresponds to what
    people expect when using the go tool.

    Reviewed-on: https://go-review.googlesource.com/c/164378

From-SVN: r269299
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/internal/work/gccgo.go