aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-05-28 06:52:07 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-05-28 06:52:07 +0000
commit9e6aced0a951df3f143af87fe1775327ab36b921 (patch)
tree2c46ddbae91d5301046f86d81f903c5edac2249e /gcc
parent89fbbe4e180bff46aa797f13cf7e04ef9bffe344 (diff)
downloadgcc-9e6aced0a951df3f143af87fe1775327ab36b921.zip
gcc-9e6aced0a951df3f143af87fe1775327ab36b921.tar.gz
gcc-9e6aced0a951df3f143af87fe1775327ab36b921.tar.bz2
tree-inline.c (remap_decls): Enable nonlocalized variables when not optimizing.
* tree-inline.c (remap_decls): Enable nonlocalized variables when not optimizing. From-SVN: r147941
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 544c988..51cfcc5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-05-28 Alexandre Oliva <aoliva@redhat.com>
+ * tree-inline.c (remap_decls): Enable nonlocalized variables
+ when not optimizing.
+
+2009-05-28 Alexandre Oliva <aoliva@redhat.com>
+
* tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
Simplify other tests involving optimize.
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index b9632a9..f79424d 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -501,7 +501,7 @@ remap_decls (tree decls, VEC(tree,gc) **nonlocalized_list, copy_body_data *id)
&& (var_ann (old_var) || !gimple_in_ssa_p (cfun)))
cfun->local_decls = tree_cons (NULL_TREE, old_var,
cfun->local_decls);
- if (debug_info_level > DINFO_LEVEL_TERSE
+ if ((!optimize || debug_info_level > DINFO_LEVEL_TERSE)
&& !DECL_IGNORED_P (old_var)
&& nonlocalized_list)
VEC_safe_push (tree, gc, *nonlocalized_list, origin_var);
@@ -519,7 +519,7 @@ remap_decls (tree decls, VEC(tree,gc) **nonlocalized_list, copy_body_data *id)
;
else if (!new_var)
{
- if (debug_info_level > DINFO_LEVEL_TERSE
+ if ((!optimize || debug_info_level > DINFO_LEVEL_TERSE)
&& !DECL_IGNORED_P (old_var)
&& nonlocalized_list)
VEC_safe_push (tree, gc, *nonlocalized_list, origin_var);