aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-05-15 12:26:48 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-05-15 12:26:48 +0000
commit248fc9f328f5f1c4d94052c073bdc7699cacb382 (patch)
tree1818051a5c78b937696e26c156e5645bc99247d6 /gcc/tree-ssa-structalias.c
parent16b29cc4d6294f78af7026dbf5aae68b03531da3 (diff)
downloadgcc-248fc9f328f5f1c4d94052c073bdc7699cacb382.zip
gcc-248fc9f328f5f1c4d94052c073bdc7699cacb382.tar.gz
gcc-248fc9f328f5f1c4d94052c073bdc7699cacb382.tar.bz2
common.opt (-ftree-forwprop, [...]): New options, enabled by default.
2009-05-15 Richard Guenther <rguenther@suse.de> * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta): New options, enabled by default. * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta): Document. * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop. * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop. * tree-ssa-structalias.c (gate_tree_pta): New function. (pass_build_alias): Use it. From-SVN: r147571
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 2f9a8e0..c830f2f 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -5737,6 +5737,11 @@ compute_may_aliases (void)
return 0;
}
+static bool
+gate_tree_pta (void)
+{
+ return flag_tree_pta;
+}
/* A dummy pass to cause points-to information to be computed via
TODO_rebuild_alias. */
@@ -5746,7 +5751,7 @@ struct gimple_opt_pass pass_build_alias =
{
GIMPLE_PASS,
"alias", /* name */
- NULL, /* gate */
+ gate_tree_pta, /* gate */
NULL, /* execute */
NULL, /* sub */
NULL, /* next */