This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix gcc.dg/tree-ssa/useless-1.c
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: geoffk at geoffk dot org
- Date: Wed, 18 May 2005 18:07:20 -0700
- Subject: fix gcc.dg/tree-ssa/useless-1.c
I'm not sure what Geoff was trying to accomplish with this change,
but it's wrong.
r~
* tree-cfg.c (pass_remove_useless): Revert last change.
* tree-optimize.c (init_tree_optimization_passes): Initialize
all_lowering_passes with PROP_gimple_any.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-cfg.c,v
retrieving revision 2.193
diff -u -p -d -r2.193 tree-cfg.c
--- tree-cfg.c 18 May 2005 20:23:26 -0000 2.193
+++ tree-cfg.c 19 May 2005 01:01:59 -0000
@@ -1992,8 +1992,8 @@ struct tree_opt_pass pass_remove_useless
NULL, /* next */
0, /* static_pass_number */
0, /* tv_id */
- PROP_gimple_any | PROP_trees, /* properties_required */
- PROP_trees, /* properties_provided */
+ PROP_gimple_any, /* properties_required */
+ 0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
TODO_dump_func, /* todo_flags_finish */
Index: tree-optimize.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v
retrieving revision 2.98
diff -u -p -d -r2.98 tree-optimize.c
--- tree-optimize.c 17 May 2005 20:28:22 -0000 2.98
+++ tree-optimize.c 19 May 2005 01:02:00 -0000
@@ -486,7 +486,7 @@ init_tree_optimization_passes (void)
#undef NEXT_PASS
- register_dump_files (all_lowering_passes, false, 0);
+ register_dump_files (all_lowering_passes, false, PROP_gimple_any);
register_dump_files (all_passes, false, PROP_gimple_any
| PROP_gimple_lcf
| PROP_gimple_leh