Commit 59af0b6a by Jan Hubicka Committed by Jan Hubicka

re PR rtl-optimization/14980 ([unit-at-a-time] complex_io.cc:69: error:…

re PR rtl-optimization/14980 ([unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE)


	PR opt/14980
	* cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
	inline clones.

From-SVN: r81540
parent 9953b5e1
2004-05-05 Jan Hubicka <jh@suse.cz>
PR opt/14980
* cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
inline clones.
2004-05-05 H.J. Lu <hongjiu.lu@intel.com> 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
PR target/15290 PR target/15290
......
...@@ -889,7 +889,8 @@ cgraph_remove_unreachable_nodes (void) ...@@ -889,7 +889,8 @@ cgraph_remove_unreachable_nodes (void)
abort (); abort ();
#endif #endif
for (node = cgraph_nodes; node; node = node->next) for (node = cgraph_nodes; node; node = node->next)
if (node->needed && (!DECL_EXTERNAL (node->decl) || !node->analyzed)) if (node->needed && !node->global.inlined_to
&& (!DECL_EXTERNAL (node->decl) || !node->analyzed))
{ {
node->aux = first; node->aux = first;
first = node; first = node;
...@@ -932,6 +933,7 @@ cgraph_remove_unreachable_nodes (void) ...@@ -932,6 +933,7 @@ cgraph_remove_unreachable_nodes (void)
int local_insns; int local_insns;
tree decl = node->decl; tree decl = node->decl;
node->global.inlined_to = NULL;
if (DECL_STRUCT_FUNCTION (decl)) if (DECL_STRUCT_FUNCTION (decl))
local_insns = node->local.self_insns; local_insns = node->local.self_insns;
else else
......
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