Commit 6a84c098 by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/30563 (ice for legal code with flags -O2 -fno-unit-at-a-time)

	PR middle-end/30563
	* cgraphunit.c (cgraph_analyze_function): Fix ordering problem.

From-SVN: r125991
parent 7bcb8bf5
2007-06-24 Jan Hubicka <jh@suse.cz>
PR middle-end/30563
* cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
2007-06-24 Sebastian Pop <sebpop@gmail.com>
PR middle-end/32461
......
......@@ -760,6 +760,7 @@ cgraph_analyze_function (struct cgraph_node *node)
current_function_decl = decl;
push_cfun (DECL_STRUCT_FUNCTION (decl));
cgraph_lower_function (node);
node->analyzed = true;
if (!flag_unit_at_a_time)
{
......@@ -771,7 +772,6 @@ cgraph_analyze_function (struct cgraph_node *node)
bitmap_obstack_release (NULL);
}
node->analyzed = true;
pop_cfun ();
current_function_decl = NULL;
}
......
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