summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-07 14:16:11 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-07 14:16:11 +0000
commit1ba198c0dcbe49655105bac3e33c5d0359440db4 (patch)
tree39a6a8bb8b9c76f26ebb0675ce99e03139c76b3f /gcc/tree-dfa.c
parenteb54054d68ce7a732815f0450c67f3ff76ac9ad4 (diff)
downloadgcc-1ba198c0dcbe49655105bac3e33c5d0359440db4.tar.gz
2012-08-07 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF bit of the old name when we clear the slot. * tree-ssa-live.c (remove_unused_locals): Release any default def associated with an unused var. * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 12bb577df5e..5342f1973a4 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -336,7 +336,10 @@ set_ssa_default_def (struct function *fn, tree var, tree def)
loc = htab_find_slot_with_hash (DEFAULT_DEFS (fn), &in,
DECL_UID (var), NO_INSERT);
if (*loc)
- htab_clear_slot (DEFAULT_DEFS (fn), loc);
+ {
+ SSA_NAME_IS_DEFAULT_DEF (*(tree *)loc) = false;
+ htab_clear_slot (DEFAULT_DEFS (fn), loc);
+ }
return;
}
gcc_assert (TREE_CODE (def) == SSA_NAME && SSA_NAME_VAR (def) == var);
@@ -349,7 +352,7 @@ set_ssa_default_def (struct function *fn, tree var, tree def)
/* Mark DEF as the default definition for VAR. */
*(tree *) loc = def;
- SSA_NAME_IS_DEFAULT_DEF (def) = true;
+ SSA_NAME_IS_DEFAULT_DEF (def) = true;
}
/* Retrieve or create a default definition for VAR. */