summaryrefslogtreecommitdiff
path: root/gcc/go/lang.opt
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-02 21:43:48 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-02 21:43:48 +0000
commit4d68e3640a66a170e0b320e0dca07de67bacda92 (patch)
treeac31176b0c6aef7d08708c3dacd42fb6edbc23d4 /gcc/go/lang.opt
parent9b72ac786c51faf5f7496c0c99bba05103d274af (diff)
downloadgcc-4d68e3640a66a170e0b320e0dca07de67bacda92.tar.gz
escape: Add basic debugging.
Emit basic debug information when compiling with the flag -fgo-debug-escape#. Reviewed-on: https://go-review.googlesource.com/22376 2016-08-02 Chris Manghane <cmang@google.com> * lang.opt: Add -fgo-debug-escape option. * go-c.h (go_create_gogo): Add debug_escape_level parameter. * go-lang.c (go_langhook_init): Pass go_debug_escape_level to go_create_gogo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239002 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/lang.opt')
-rw-r--r--gcc/go/lang.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/lang.opt b/gcc/go/lang.opt
index 7d44e44800d..7de9386f92a 100644
--- a/gcc/go/lang.opt
+++ b/gcc/go/lang.opt
@@ -69,6 +69,10 @@ frequire-return-statement
Go Var(go_require_return_statement) Init(1) Warning
Functions which return values must end with return statements.
+fgo-debug-escape
+Go Joined UInteger Var(go_debug_escape_level) Init(0)
+Emit debugging information related to the escape analysis pass when run with -fgo-optimize-allocs.
+
o
Go Joined Separate
; Documented in common.opt