escape: Add basic debugging

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 2 August 2016 16:43 UTC

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

- 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.

4d68e36 escape: Add basic debugging.
gcc/go/ChangeLog | 7 +
gcc/go/go-c.h | 3 +-
gcc/go/go-lang.c | 2 +-
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/escape.cc | 517 ++++++++++++++++++++++++++++++++++++++-
gcc/go/gofrontend/escape.h | 15 ++
gcc/go/gofrontend/go.cc | 4 +-
gcc/go/gofrontend/gogo.h | 28 ++-
gcc/go/gofrontend/statements.cc | 2 +-
gcc/go/lang.opt | 4 +
10 files changed, 577 insertions(+), 7 deletions(-)

Upstream: gcc.gnu.org


  • Share