OSDN Git Service

2008-11-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Nov 2008 09:45:56 +0000 (09:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Nov 2008 09:45:56 +0000 (09:45 +0000)
* tree-ssa-structalias.c (intra_create_variable_infos): Make
a constraint for the static chain parameter.

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

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

index 03db6c2..aaba646 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-27  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa-structalias.c (intra_create_variable_infos): Make
+       a constraint for the static chain parameter.
+
 2008-11-27  Bernd Schmidt  <bernd.schmidt@analog.com>
 
        * config/bfin/bfin.opt (micplb): New option.
index 5083ee5..3be76ac 100644 (file)
@@ -4560,6 +4560,15 @@ intra_create_variable_infos (void)
            make_constraint_from (p, nonlocal_id);
        }
     }
+
+  /* Add a constraint for the incoming static chain parameter.  */
+  if (cfun->static_chain_decl != NULL_TREE)
+    {
+      varinfo_t p, chain_vi = get_vi_for_tree (cfun->static_chain_decl);
+
+      for (p = chain_vi; p; p = p->next)
+       make_constraint_from (p, nonlocal_id);
+    }
 }
 
 /* Structure used to put solution bitmaps in a hashtable so they can