aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/tree-ssa-live.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/tree-ssa-live.c')
-rw-r--r--gcc-4.9/gcc/tree-ssa-live.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/tree-ssa-live.c b/gcc-4.9/gcc/tree-ssa-live.c
index 3cd3613d7..db7607258 100644
--- a/gcc-4.9/gcc/tree-ssa-live.c
+++ b/gcc-4.9/gcc/tree-ssa-live.c
@@ -607,7 +607,7 @@ remove_unused_scope_block_p (tree scope)
;
/* When not generating debug info we can eliminate info on unused
variables. */
- else if (debug_info_level == DINFO_LEVEL_NONE)
+ else if (!flag_auto_profile && debug_info_level == DINFO_LEVEL_NONE)
{
/* Even for -g0 don't prune outer scopes from artificial
functions, otherwise diagnostics using tree_nonartificial_location