aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-c.h
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2018-02-02 00:00:04 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-02-02 00:00:04 +0000
commit2794baab686973f39045327970e4a7302c31ea88 (patch)
tree86c02d77baa7232c84a3d624601cc0f9e7405174 /gcc/go/go-c.h
parent90bf94878bea2883158d02370cb2692d4b2ed4a1 (diff)
downloadgcc-2794baab686973f39045327970e4a7302c31ea88.zip
gcc-2794baab686973f39045327970e4a7302c31ea88.tar.gz
gcc-2794baab686973f39045327970e4a7302c31ea88.tar.bz2
compiler: turn on escape analysis by default
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. From-SVN: r257319
Diffstat (limited to 'gcc/go/go-c.h')
-rw-r--r--gcc/go/go-c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/go-c.h b/gcc/go/go-c.h
index 139c233..2dc1d43 100644
--- a/gcc/go/go-c.h
+++ b/gcc/go/go-c.h
@@ -29,7 +29,7 @@ class Backend;
interface. */
extern int go_enable_dump (const char*);
-extern int go_enable_optimize (const char*);
+extern int go_enable_optimize (const char*, int);
extern void go_add_search_path (const char*);