summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-12 23:19:32 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-12 23:19:32 +0000
commitd66d56be792aed2fba99d9d28611bac79738db92 (patch)
tree560fde10b868dbca3f5a3d1244b1a395a8b4e9b4 /gcc/tree-inline.c
parent3103c81f12237973f627c48f5e6451b4e92752b0 (diff)
downloadlinaro-gcc-d66d56be792aed2fba99d9d28611bac79738db92.tar.gz
linaro-gcc-d66d56be792aed2fba99d9d28611bac79738db92.tar.bz2
linaro-gcc-d66d56be792aed2fba99d9d28611bac79738db92.zip
PR debug/55665
* tree-inline.c (remap_decls): Change nonlocalized_list to pointer to pointer to vector from pointer to vector. (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS. * g++.dg/guality/pr55665.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index a06d7b92a3c..70aa56755cb 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -536,7 +536,7 @@ can_be_nonlocal (tree decl, copy_body_data *id)
}
static tree
-remap_decls (tree decls, vec<tree, va_gc> *nonlocalized_list,
+remap_decls (tree decls, vec<tree, va_gc> **nonlocalized_list,
copy_body_data *id)
{
tree old_var;
@@ -557,7 +557,7 @@ remap_decls (tree decls, vec<tree, va_gc> *nonlocalized_list,
if ((!optimize || debug_info_level > DINFO_LEVEL_TERSE)
&& !DECL_IGNORED_P (old_var)
&& nonlocalized_list)
- vec_safe_push (nonlocalized_list, old_var);
+ vec_safe_push (*nonlocalized_list, old_var);
continue;
}
@@ -575,7 +575,7 @@ remap_decls (tree decls, vec<tree, va_gc> *nonlocalized_list,
if ((!optimize || debug_info_level > DINFO_LEVEL_TERSE)
&& !DECL_IGNORED_P (old_var)
&& nonlocalized_list)
- vec_safe_push (nonlocalized_list, old_var);
+ vec_safe_push (*nonlocalized_list, old_var);
}
else
{
@@ -622,7 +622,7 @@ remap_block (tree *block, copy_body_data *id)
/* Remap its variables. */
BLOCK_VARS (new_block) = remap_decls (BLOCK_VARS (old_block),
- BLOCK_NONLOCALIZED_VARS (new_block),
+ &BLOCK_NONLOCALIZED_VARS (new_block),
id);
if (id->transform_lang_insert_block)