From: Jan Hubicka Date: Thu, 10 Dec 2015 19:21:31 +0000 (+0100) Subject: * lto-streamer-out.c (wrap_refs): Only wrap public decls. X-Git-Tag: upstream/12.2.0~50042 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35bd8e8fb68675f42f407cf47b2e8df1cd0110e2;p=platform%2Fupstream%2Fgcc.git * lto-streamer-out.c (wrap_refs): Only wrap public decls. From-SVN: r231541 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb1cb06..056b7ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-12-10 Jan Hubicka + * lto-streamer-out.c (wrap_refs): Only wrap public decls. + +2015-12-10 Jan Hubicka + * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p. (good_cloning_opportunity_p): Likewise. (gather_context_independent_values): Do not return true when diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index a874846..5524f84 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -2236,7 +2236,8 @@ wrap_refs (tree *tp, int *ws, void *) { tree t = *tp; if (handled_component_p (t) - && TREE_CODE (TREE_OPERAND (t, 0)) == VAR_DECL) + && TREE_CODE (TREE_OPERAND (t, 0)) == VAR_DECL + && TREE_PUBLIC (TREE_OPERAND (t, 0))) { tree decl = TREE_OPERAND (t, 0); tree ptrtype = build_pointer_type (TREE_TYPE (decl));