]> Cypherpunks repositories - gostls13.git/commit
cmd/go: only pass -fsplit-stack to gccgo if supported
authorIan Lance Taylor <iant@golang.org>
Sat, 27 Jul 2019 23:14:16 +0000 (16:14 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 31 Jul 2019 23:53:23 +0000 (23:53 +0000)
commit407010ef0b858a7fa6e6e95abe652fdff923da9a
tree97726b69789a57f053512e87fc8d5ec9594cc5ad
parente81b7315927d025a1eb3933542211b899880b982
cmd/go: only pass -fsplit-stack to gccgo if supported

Also add other gccgo options.

This ports CL 45695 and CL 48592 from the gofrontend repo to the gc repo.

CL 45695 (partial entry, other parts out of date and not ported):

    cmd/go: gccgo: consistent results

    Pass the -fdebug-prefix-map and -gno-record-gcc-switches compiler
    options to gccgo to generate consistent results.

CL 48592:

    cmd/go: use gccSupportsFlag for -fsplit-stack

    Don't assume that all (or only) 386/amd64 compilers support
    -fsplit-stack.

Fixes #33108

Change-Id: I61f9e5a67e4fb059f26750e97621d27afa566ec2
Reviewed-on: https://go-review.googlesource.com/c/go/+/187824
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gccgo.go