Commit bd67cff1 by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/45926 (Revision 165057 breaks GOMP)


	PR middle-end/45926
	* ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.

From-SVN: r165090
parent 9f23af48
2010-10-07 Jan Hubicka <jh@suse.cz>
PR middle-end/45926
* ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
2010-10-07 Richard Guenther <rguenther@suse.de> 2010-10-07 Richard Guenther <rguenther@suse.de>
PR bootstrap/45914 PR bootstrap/45914
...@@ -238,19 +238,14 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file) ...@@ -238,19 +238,14 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
#endif #endif
varpool_reset_queue (); varpool_reset_queue ();
for (node = cgraph_nodes; node; node = node->next) for (node = cgraph_nodes; node; node = node->next)
if (!node->analyzed) if ((!cgraph_can_remove_if_no_direct_calls_and_refs_p (node)
{ /* Keep around virtual functions for possible devirtualization. */
gcc_assert (!node->aux); || (!before_inlining_p
node->reachable = false; && !node->global.inlined_to
} && DECL_VIRTUAL_P (node->decl)
else if ((!cgraph_can_remove_if_no_direct_calls_and_refs_p (node) && (DECL_COMDAT (node->decl) || DECL_EXTERNAL (node->decl))))
/* Keep around virtual functions for possible devirtualization. */ && ((!DECL_EXTERNAL (node->decl))
|| (!before_inlining_p || before_inlining_p))
&& !node->global.inlined_to
&& DECL_VIRTUAL_P (node->decl)
&& (DECL_COMDAT (node->decl) || DECL_EXTERNAL (node->decl))))
&& ((!DECL_EXTERNAL (node->decl))
|| before_inlining_p))
{ {
gcc_assert (!node->global.inlined_to); gcc_assert (!node->global.inlined_to);
enqueue_cgraph_node (node, &first); enqueue_cgraph_node (node, &first);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment