]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cache the value of environment variable GOSSAFUNC
authorYury Smolsky <yury@smolsky.by>
Tue, 24 Jul 2018 10:04:35 +0000 (13:04 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 21:16:19 +0000 (21:16 +0000)
commite34f660a52b810e7f4d4a186c7502324c67390ea
tree9c337a3496354be3300fd45655cd328c3fb6a4f4
parentd35135b9dab7415dc6eafd55597b497d013badb4
cmd/compile: cache the value of environment variable GOSSAFUNC

Store the value of GOSSAFUNC in a global variable to avoid
multiple calls to os.Getenv from gc.buildssa and gc.mkinlcall1.
The latter is implemented in the CL 126606.

Updates #25942

Change-Id: I58caaef2fee23694d80dc5a561a2e809bf077fa4
Reviewed-on: https://go-review.googlesource.com/126604
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/ssa.go