* lto-streamer-out.c (wrap_refs): Only wrap public decls.
From-SVN: r231541
This commit is contained in:
parent
5af56ae8f8
commit
35bd8e8fb6
@ -1,3 +1,7 @@
|
||||
2015-12-10 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* lto-streamer-out.c (wrap_refs): Only wrap public decls.
|
||||
|
||||
2015-12-10 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user