2011-01-14 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)
* tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168787 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index 83e1fbd..00a7b11 100644 (file)
@@ -1,5 +1,9 @@
 2011-01-14  Richard Guenther  <rguenther@suse.de>
 
+       * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
+
+2011-01-14  Richard Guenther  <rguenther@suse.de>
+
        PR tree-optimization/47280
        * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
        return CFG changes.
index d3a54c6..a49f14b 100644 (file)
@@ -416,7 +416,8 @@ new_var_info (tree t, const char *name)
     ret->is_global_var = (is_global_var (t)
                          /* We have to treat even local register variables
                             as escape points.  */
-                         || (TREE_CODE (t) == VAR_DECL && DECL_REGISTER (t)));
+                         || (TREE_CODE (t) == VAR_DECL
+                             && DECL_HARD_REGISTER (t)));
   ret->solution = BITMAP_ALLOC (&pta_obstack);
   ret->oldsolution = BITMAP_ALLOC (&oldpta_obstack);
   ret->next = NULL;