public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Go patch committed: Set TREE_PUBLIC for only-inline functions
@ 2019-03-07  1:51 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2019-03-07  1:51 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

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

This patch to the Go frontend sets TREE_PUBLIC for only-inline
functions.  This fixes GCC PR 89227.  Bootstrapped and ran Go tests on
x86_64-pc-linux-gnu and ppc64le-linux-gnu.  Committed to mainline.

Ian


2019-03-06  Ian Lance Taylor  <iant@golang.org>

PR go/89227
* go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
only-inline function.

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

Index: go-gcc.cc
===================================================================
--- go-gcc.cc	(revision 269196)
+++ go-gcc.cc	(working copy)
@@ -3101,6 +3101,7 @@ Gcc_backend::function(Btype* fntype, con
     resolve_unique_section(decl, 0, 1);
   if ((flags & function_only_inline) != 0)
     {
+      TREE_PUBLIC (decl) = 1;
       DECL_EXTERNAL(decl) = 1;
       DECL_DECLARED_INLINE_P(decl) = 1;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-07  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07  1:51 Go patch committed: Set TREE_PUBLIC for only-inline functions Ian Lance Taylor

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