diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c9ad1f199b9..075863b8733e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-12-09 Jan Hubicka + + * predict.c (estimate_bb_frequencies): Fix test if profile is present. + 2008-12-09 Jakub Jelinek PR tree-optimization/35468 diff --git a/gcc/predict.c b/gcc/predict.c index 73dbcbdc4cea..22e71ceab8da 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -2052,7 +2052,7 @@ estimate_bb_frequencies (void) basic_block bb; sreal freq_max; - if (cfun->function_frequency != PROFILE_READ || !counts_to_freqs ()) + if (profile_status != PROFILE_READ || !counts_to_freqs ()) { static int real_values_initialized = 0;