aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
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 */