diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2011-02-02 05:44:38 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2011-02-02 05:44:38 +0000 |
commit | aaa2ac931e8979147eeac7fd29d548bcb1ddef99 (patch) | |
tree | 2249a079ddd3d9c2bf0321b4a86aa087da1d7a9d /gcc/tree-inline.c | |
parent | a59d15cf9f9a6daa75072e8f5b0ab93d279274b3 (diff) | |
download | gcc-aaa2ac931e8979147eeac7fd29d548bcb1ddef99.tar.gz |
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/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 24a6dd02373..0a10df70422 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2864,7 +2864,6 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest, } DECL_SEEN_IN_BIND_EXPR_P (var) = 1; - add_local_decl (DECL_STRUCT_FUNCTION (caller), var); /* Do not have the rest of GCC warn about this variable as it should not be visible to the user. */ |