aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-low.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-02-02 05:44:38 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-02-02 05:44:38 +0000
commitaaa2ac931e8979147eeac7fd29d548bcb1ddef99 (patch)
tree2249a079ddd3d9c2bf0321b4a86aa087da1d7a9d /gcc/gimple-low.c
parenta59d15cf9f9a6daa75072e8f5b0ab93d279274b3 (diff)
downloadgcc-aaa2ac931e8979147eeac7fd29d548bcb1ddef99.zip
gcc-aaa2ac931e8979147eeac7fd29d548bcb1ddef99.tar.gz
gcc-aaa2ac931e8979147eeac7fd29d548bcb1ddef99.tar.bz2
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106 PR debug/47402 * tree-inline.c (declare_return_variable): Add result decl to local decls only once. * gimple-low.c (record_vars_into): Mark newly-created variables as referenced. From-SVN: r169514
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r--gcc/gimple-low.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c
index 2c585e3..4e49241 100644
--- a/gcc/gimple-low.c
+++ b/gcc/gimple-low.c
@@ -907,6 +907,8 @@ record_vars_into (tree vars, tree fn)
/* Record the variable. */
add_local_decl (cfun, var);
+ if (gimple_referenced_vars (cfun))
+ add_referenced_var (var);
}
if (fn != current_function_decl)