diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-02 05:44:38 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-02 05:44:38 +0000 |
commit | e81986abbb09686debad9198b240245ff75fc0f2 (patch) | |
tree | 2249a079ddd3d9c2bf0321b4a86aa087da1d7a9d /gcc/gimple-low.c | |
parent | 9221ec44e8429334e08c67adc351a7b246f1c120 (diff) | |
download | gcc-e81986abbb09686debad9198b240245ff75fc0f2.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r-- | gcc/gimple-low.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c index 2c585e30266..4e492414290 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) |