escape: Add basic debugging.
authorChris Manghane <cmang@google.com>
Tue, 2 Aug 2016 21:43:48 +0000 (21:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 2 Aug 2016 21:43:48 +0000 (21:43 +0000)
commit7295570dd4a8099c010d511ffb3327fd8b0e36d7
treeac31176b0c6aef7d08708c3dacd42fb6edbc23d4
parent00803109af736deacbec676f03564c7cafce7eea
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.

From-SVN: r239002
gcc/go/ChangeLog
gcc/go/go-c.h
gcc/go/go-lang.c
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/escape.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.cc
gcc/go/lang.opt