Skip to content

Commit

Permalink
* go-lang.c (go_langhook_init_options_struct): Default to
Browse files Browse the repository at this point in the history
	-fkeep-gc-roots-live.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232890 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Jan 27, 2016
1 parent 5068be1 commit d7993d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/go/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2016-01-27 Ian Lance Taylor <iant@google.com>

* go-lang.c (go_langhook_init_options_struct): Default to
-fkeep-gc-roots-live.

2016-01-04 Jakub Jelinek <jakub@redhat.com>

Update copyright years.
Expand Down
3 changes: 3 additions & 0 deletions gcc/go/go-lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ go_langhook_init_options_struct (struct gcc_options *opts)
opts->x_flag_exceptions = 1;
opts->x_flag_non_call_exceptions = 1;

/* We need to keep pointers live for the garbage collector. */
opts->x_flag_keep_gc_roots_live = 1;

/* Go programs expect runtime.Callers to work, and that uses
libbacktrace that uses debug info. Set the debug info level to 1
by default. In post_options we will set the debug type if the
Expand Down

0 comments on commit d7993d8

Please sign in to comment.