diff options
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 9055d91..a72e9d5 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -889,7 +889,10 @@ remove_unused_locals (void) dstidx++; } if (dstidx != num) - cfun->local_decls->truncate (dstidx); + { + statistics_counter_event (cfun, "unused VAR_DECLs removed", num - dstidx); + cfun->local_decls->truncate (dstidx); + } remove_unused_scope_block_p (DECL_INITIAL (current_function_decl)); clear_unused_block_pointer (); |