aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-11-08 15:27:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-11-08 15:27:17 +0000
commit379c6f48323d84640401189d7a3de619520bee1f (patch)
treecad0c20809d9bad6468bb16bf7e541fb0d7790a0 /gcc/tree-ssa-structalias.c
parentd770e88d122c56f9ec952817ced18ecdc3e39d31 (diff)
downloadgcc-379c6f48323d84640401189d7a3de619520bee1f.zip
gcc-379c6f48323d84640401189d7a3de619520bee1f.tar.gz
gcc-379c6f48323d84640401189d7a3de619520bee1f.tar.bz2
tree-ssa-structalias.c (build_succ_graph): Properly make variables escape if they are stored to anything.
2009-11-08 Richard Guenther <rguenther@suse.de> * tree-ssa-structalias.c (build_succ_graph): Properly make variables escape if they are stored to anything. * gcc.dg/torture/pta-escape-1.c: New testcase. From-SVN: r154010
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 619875c..e0a681d 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -1278,6 +1278,9 @@ build_succ_graph (void)
&& get_varinfo (i)->may_have_pointers)
add_graph_edge (graph, find (i), t);
}
+
+ /* Everything stored to ANYTHING also potentially escapes. */
+ add_graph_edge (graph, find (escaped_id), t);
}