compiler: turn on escape analysis by default

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 2 February 2018 00:00 EST

The escape analysis now runs by default. It can be disabled with the negative flag, -fno-go-optimize-allocs.

Reviewed-on: https://go-review.googlesource.com/86247

- lang.opt (fgo-optimize): Remove RejectNegative.
- go-c.h (go_enable_optimize): Update declaration to take value argument.
- go-lang.c (go_langhook_handle_option): Pass value to go_enable_optimize.
- gccgo.texi (Invoking gccgo): Update -fgo-optimize-allocs doc.

1235ba29b7b compiler: turn on escape analysis by default
gcc/go/ChangeLog | 9 +++++++++
gcc/go/gccgo.texi | 8 ++++----
gcc/go/go-c.h | 2 +-
gcc/go/go-lang.c | 4 ++--
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/escape.cc | 2 +-
gcc/go/gofrontend/go-optimize.cc | 14 +++++++-------
gcc/go/gofrontend/go-optimize.h | 6 +++---
gcc/go/lang.opt | 2 +-
9 files changed, 29 insertions(+), 20 deletions(-)

Upstream: gcc.gnu.org


  • Share