mirror of git://gcc.gnu.org/git/gcc.git
tree-optimize.c (execute_early_local_optimizations): Set cgraph_state only at first invocation.
* tree-optimize.c (execute_early_local_optimizations): Set cgraph_state only at first invocation. From-SVN: r136958
This commit is contained in:
parent
f1469150c6
commit
bad5e2b575
|
@ -1,3 +1,8 @@
|
||||||
|
2008-06-19 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* tree-optimize.c (execute_early_local_optimizations): Set
|
||||||
|
cgraph_state only at first invocation.
|
||||||
|
|
||||||
2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* system.h (-Wc++-compat): Activate as a warning, no an error.
|
* system.h (-Wc++-compat): Activate as a warning, no an error.
|
||||||
|
|
|
@ -111,7 +111,11 @@ struct simple_ipa_opt_pass pass_early_local_passes =
|
||||||
static unsigned int
|
static unsigned int
|
||||||
execute_early_local_optimizations (void)
|
execute_early_local_optimizations (void)
|
||||||
{
|
{
|
||||||
if (flag_unit_at_a_time)
|
/* First time we start with early optimization we need to advance
|
||||||
|
cgraph state so newly inserted functions are also early optimized.
|
||||||
|
However we execute early local optimizations for lately inserted
|
||||||
|
functions, in that case don't reset cgraph state back to IPA_SSA. */
|
||||||
|
if (flag_unit_at_a_time && cgraph_state < CGRAPH_STATE_IPA_SSA)
|
||||||
cgraph_state = CGRAPH_STATE_IPA_SSA;
|
cgraph_state = CGRAPH_STATE_IPA_SSA;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue