aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-05-09 09:37:36 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-05-09 09:37:36 +0000
commit1353232d3d37c1f3e65a0957671670557b2532a6 (patch)
tree5c1ca8d2f60b302cf5cf47d75c2847a94be8348b /gcc/tree-ssa-alias.c
parent31de5b771a7621f2e331e2839e8634dad0c6ee70 (diff)
downloadgcc-1353232d3d37c1f3e65a0957671670557b2532a6.zip
gcc-1353232d3d37c1f3e65a0957671670557b2532a6.tar.gz
gcc-1353232d3d37c1f3e65a0957671670557b2532a6.tar.bz2
invoke.texi (-fdump-tree-salias): Remove documentation.
2008-05-08 Richard Guenther <rguenther@suse.de> * doc/invoke.texi (-fdump-tree-salias): Remove documentation. (-ftree-salias): Likewise. (salias-max-implicit-fields): Remove param documentation. (salias-max-array-elements): Likewise. * tree-pass.h (pass_create_structure_vars): Remove. * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove. (SALIAS_MAX_ARRAY_ELEMENTS): Likewise. * tree-ssa-alias.c (create_structure_vars): Remove. (gate_structure_vars): Likewise. (pass_create_structure_vars): Likewise. (gate_build_alias): Likewise. (pass_build_alias): Adjust to run always and dump the function. * common.opt (ftree-salias): Hide. * passes.c (init_optimization_passes): Remove pass_create_structure_vars, adjust comment. * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove. (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise. * opts.c (decode_options): Do not set flag_tree_salias. (common_handle_option): Add OPT_ftree_salias to the backward compatibility section. * gcc.dg/tree-ssa/20040911-1.c: Adjust. * gcc.dg/tree-ssa/20040517-1.c: Likewise. * gcc.dg/tree-ssa/pr26421.c: Likewise. * gcc.dg/tree-ssa/pr23382.c: Likewise. * gcc.dg/tree-ssa/alias-15.c: Likewise. * gcc.dg/tree-ssa/inline_asm-1.c: Likewise. * gcc.dg/tree-ssa/inline_asm-2.c: Likewise. * gcc.dg/tree-ssa/pta-fp.c: Likewise. * gcc.dg/tree-ssa/20031015-1.c: Likewise. * gcc.dg/tree-ssa/alias-12.c: Likewise. From-SVN: r135111
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c44
1 files changed, 4 insertions, 40 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 5e3fb47..814631a 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -3438,38 +3438,6 @@ new_type_alias (tree ptr, tree var, tree expr)
MTAG_GLOBAL (tag) = is_global_var (var);
}
-/* ??? Stub. */
-
-static unsigned int
-create_structure_vars (void)
-{
- return TODO_rebuild_alias;
-}
-
-static bool
-gate_structure_vars (void)
-{
- return flag_tree_salias != 0;
-}
-
-struct gimple_opt_pass pass_create_structure_vars =
-{
- {
- GIMPLE_PASS,
- "salias", /* name */
- gate_structure_vars, /* gate */
- create_structure_vars, /* execute */
- NULL, /* sub */
- NULL, /* next */
- 0, /* static_pass_number */
- 0, /* tv_id */
- PROP_cfg, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- TODO_dump_func /* todo_flags_finish */
- }
-};
/* Reset the call_clobbered flags on our referenced vars. In
theory, this only needs to be done for globals. */
@@ -3504,19 +3472,15 @@ struct gimple_opt_pass pass_reset_cc_flags =
}
};
-static bool
-gate_build_alias (void)
-{
- return !gate_structure_vars();
-}
+/* A dummy pass to cause aliases to be computed via TODO_rebuild_alias. */
struct gimple_opt_pass pass_build_alias =
{
{
GIMPLE_PASS,
- "build_alias", /* name */
- gate_build_alias, /* gate */
+ "alias", /* name */
+ NULL, /* gate */
NULL, /* execute */
NULL, /* sub */
NULL, /* next */
@@ -3526,6 +3490,6 @@ struct gimple_opt_pass pass_build_alias =
PROP_alias, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_rebuild_alias /* todo_flags_finish */
+ TODO_rebuild_alias | TODO_dump_func /* todo_flags_finish */
}
};