summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-27 09:45:56 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-27 09:45:56 +0000
commitf8473bb3cb6b80c0befd533f83484864af1cfff3 (patch)
tree64c87dc9ba9fc3a7f97415f4985d2a3d2212d804 /gcc/tree-ssa-structalias.c
parente1f9cd0c80cd1593c8d8de3e9dd3904b8b942456 (diff)
downloadgcc-f8473bb3cb6b80c0befd533f83484864af1cfff3.tar.gz
2008-11-27 Richard Guenther <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 5083ee5a329..3be76acf1b8 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -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