public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@golang.org>
To: java@gcc.gnu.org
Subject: Fwd: Go patch committed: enable -fkeep-gc-roots-live for Go
Date: Wed, 27 Jan 2016 18:41:00 -0000	[thread overview]
Message-ID: <CAOyqgcU3Y6NQj-A6rXm46EmD9veS+SyG0Ld=tkJdyWd1bXaj7A@mail.gmail.com> (raw)
In-Reply-To: <CAOyqgcV8THgH6ie2JLq12=AXKz4Wn2Pbv+Md0QDLRT3g+3zdrQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

Java maintainers: you may want to implement a similar patch for the
Java frontend.

See the discussion about the new option at

https://gcc.gnu.org/ml/gcc/2016-01/msg00023.html

https://gcc.gnu.org/ml/gcc-patches/2016-01/msg01483.html

Ian


---------- Forwarded message ----------
From: Ian Lance Taylor <iant@golang.org>
Date: Wed, Jan 27, 2016 at 10:37 AM
Subject: Go patch committed: enable -fkeep-gc-roots-live for Go
To: gcc-patches <gcc-patches@gcc.gnu.org>,
"gofrontend-dev@googlegroups.com" <gofrontend-dev@googlegroups.com>


This patch enables the new -fkeep-gc-roots-live option for Go.  This
fixes https://golang.org/issue/13662 .  Bootstrapped and ran Go
testsuite on x86_64-pc-linux-gnu.  Committed to mainline.

Ian

2016-01-27  Ian Lance Taylor  <iant@google.com>

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

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 576 bytes --]

Index: gcc/go/go-lang.c
===================================================================
--- gcc/go/go-lang.c	(revision 232888)
+++ gcc/go/go-lang.c	(working copy)
@@ -150,6 +150,9 @@
   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

           reply	other threads:[~2016-01-27 18:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAOyqgcV8THgH6ie2JLq12=AXKz4Wn2Pbv+Md0QDLRT3g+3zdrQ@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOyqgcU3Y6NQj-A6rXm46EmD9veS+SyG0Ld=tkJdyWd1bXaj7A@mail.gmail.com' \
    --to=iant@golang.org \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).