Message ID | 20151209064622.GY5527@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Index: lto-streamer-out.c =================================================================== --- lto-streamer-out.c (revision 231438) +++ lto-streamer-out.c (working copy) @@ -2236,7 +2237,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));