+2014-09-19 Jan Hubicka <hubicka@ucw.cz>
+
+ PR tree-optimization/63255
+ * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
+ issue in setting body_removed flag.
+
2014-09-19 Jan Hubicka <hubicka@ucw.cz>
PR c++/61825
fprintf (file, " %s", vnode->name ());
changed = true;
}
+ /* Keep body if it may be useful for constant folding. */
+ if ((init = ctor_for_folding (vnode->decl)) == error_mark_node)
+ vnode->remove_initializer ();
+ else
+ DECL_INITIAL (vnode->decl) = init;
vnode->body_removed = true;
vnode->definition = false;
vnode->analyzed = false;
vnode->remove_from_same_comdat_group ();
- /* Keep body if it may be useful for constant folding. */
- if ((init = ctor_for_folding (vnode->decl)) == error_mark_node)
- vnode->remove_initializer ();
- else
- DECL_INITIAL (vnode->decl) = init;
vnode->remove_all_references ();
}
else