diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/passes.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79e0bf8..53ee974 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-06-22 Jan Hubicka <jh@suse.cz> + + * passes.c (execute_function_todo): Move call of statistics_fini_pass + to ... + (execute_todo) ... this one. + 2010-06-22 Alan Modra <amodra@gmail.com> PR target/44364 diff --git a/gcc/passes.c b/gcc/passes.c index 3c295a0..c58a300a 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1175,8 +1175,6 @@ execute_function_todo (void *data) if (!flags) return; - statistics_fini_pass (); - /* Always cleanup the CFG before trying to update SSA. */ if (flags & TODO_cleanup_cfg) { @@ -1288,6 +1286,8 @@ execute_todo (unsigned int flags) /* Inform the pass whether it is the first time it is run. */ first_pass_instance = (flags & TODO_mark_first_instance) != 0; + statistics_fini_pass (); + do_per_function (execute_function_todo, (void *)(size_t) flags); /* Always remove functions just as before inlining: IPA passes might be |