+2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR tree-optimization/46494
+ * loop-unroll.c (split_edge_and_insert): Adjust comment.
+ * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
+ (pass_rtl_loop_done): Add TODO_verify_flow.
+ * fwprop.c (pass_rtl_fwprop): Likewise.
+ * modulo-sched.c (pass_sms): Likewise.
+ * tree-ssa-dom.c (pass_dominator): Likewise.
+ * tree-ssa-loop-ch.c (pass_ch): Likewise.
+ * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
+ (pass_tree_loop_done): Likewise.
+ * tree-ssa-pre.c (execute_pre): Likewise.
+ * tree-ssa-reassoc.c (pass_reassoc): Likewise.
+ * tree-ssa-sink.c (pass_sink_code): Likewise.
+ * tree-vrp.c (pass_vrp): Likewise.
+
2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
- * config/v850/constraints.md: New file.
- * config/v850/v850.md: Include it.
- * config/v850/predicates.md (reg_or_0_operand): Use
- satisfies_constraint_G.
- (special_symbolref_operand): Use satisfies_constraint_K.
- * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
- (GO_IF_LEGITIMATE_ADDRESS): Likewise.
- (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
- (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
- (EXTRA_CONSTRAINT): Delete.
- (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
- (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
- (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
+ * config/v850/constraints.md: New file.
+ * config/v850/v850.md: Include it.
+ * config/v850/predicates.md (reg_or_0_operand): Use
+ satisfies_constraint_G.
+ (special_symbolref_operand): Use satisfies_constraint_K.
+ * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
+ (GO_IF_LEGITIMATE_ADDRESS): Likewise.
+ (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
+ (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
+ (EXTRA_CONSTRAINT): Delete.
+ (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
+ (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
+ (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
2011-02-14 Anatoly Sokolov <aesok@post.ru>
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_df_finish | TODO_verify_rtl_sharing |
- TODO_dump_func /* todo_flags_finish */
+ TODO_df_finish
+ | TODO_verify_flow
+ | TODO_verify_rtl_sharing
+ | TODO_dump_func /* todo_flags_finish */
}
};
{
bb->loop_father = NULL;
}
-
- /* Checking. */
-#ifdef ENABLE_CHECKING
- /* FIXME: no point to verify flow info after bundling on ia64. Use this
- hack for achieving this. */
- if (!reload_completed)
- verify_flow_info ();
-#endif
}
\f
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_dump_func | TODO_verify_rtl_sharing /* todo_flags_finish */
+ TODO_verify_flow
+ | TODO_verify_rtl_sharing
+ | TODO_dump_func /* todo_flags_finish */
}
};
CFG. For this purpose we used to set the BB_SUPERBLOCK flag on BB
and call break_superblocks when going out of cfglayout mode. But it
turns out that this never happens; and that if it does ever happen,
- the verify_flow_info call in loop_optimizer_finalize would fail.
+ the TODO_verify_flow at the end of the RTL loop passes would fail.
There are two reasons why we expected we could have control flow insns
in INSNS. The first is when a comparison has to be done in parts, and
0, /* properties_provided */
0, /* properties_destroyed */
TODO_dump_func, /* todo_flags_start */
- TODO_df_finish | TODO_verify_rtl_sharing |
- TODO_dump_func |
- TODO_ggc_collect /* todo_flags_finish */
+ TODO_df_finish
+ | TODO_verify_flow
+ | TODO_verify_rtl_sharing
+ | TODO_dump_func
+ | TODO_ggc_collect /* todo_flags_finish */
}
};
+2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.dg/pr46494.c: New test.
+
2011-02-14 Richard Guenther <rguenther@suse.de>
* gcc.dg/attr-weak-hidden-1.c: Make definition of foo strong.
--- /dev/null
+/* { dg-do compile }
+/* { dg-options "-O -fno-tree-ccp -fno-tree-fre -ftree-vrp" } */
+
+extern void foo (void) __attribute__((noreturn));
+void g (void)
+{
+ void (*f) (void) = foo;
+ f ();
+}
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_dump_func
+ TODO_cleanup_cfg
| TODO_update_ssa
- | TODO_cleanup_cfg
- | TODO_verify_ssa /* todo_flags_finish */
+ | TODO_verify_ssa
+ | TODO_verify_flow
+ | TODO_dump_func /* todo_flags_finish */
}
};
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_cleanup_cfg | TODO_dump_func
- | TODO_verify_ssa /* todo_flags_finish */
+ TODO_cleanup_cfg
+ | TODO_verify_ssa
+ | TODO_verify_flow
+ | TODO_dump_func /* todo_flags_finish */
}
};
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_dump_func
+ TODO_verify_flow
+ | TODO_dump_func
| TODO_ggc_collect /* todo_flags_finish */
}
};
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_cleanup_cfg | TODO_dump_func /* todo_flags_finish */
+ TODO_cleanup_cfg
+ | TODO_verify_flow
+ | TODO_dump_func /* todo_flags_finish */
}
};
clear_expression_ids ();
free_scc_vn ();
if (!do_fre)
- remove_dead_inserted_code ();
+ {
+ remove_dead_inserted_code ();
+ todo |= TODO_verify_flow;
+ }
scev_finalize ();
fini_pre (do_fre);
0, /* properties_provided */
0, /* properties_destroyed */
0, /* todo_flags_start */
- TODO_dump_func | TODO_ggc_collect | TODO_verify_ssa /* todo_flags_finish */
+ TODO_verify_ssa
+ | TODO_verify_flow
+ | TODO_dump_func
+ | TODO_ggc_collect /* todo_flags_finish */
}
};
0, /* properties_destroyed */
0, /* todo_flags_start */
TODO_update_ssa
+ | TODO_verify_ssa
+ | TODO_verify_flow
| TODO_dump_func
- | TODO_ggc_collect
- | TODO_verify_ssa /* todo_flags_finish */
+ | TODO_ggc_collect /* todo_flags_finish */
}
};
0, /* properties_destroyed */
0, /* todo_flags_start */
TODO_cleanup_cfg
- | TODO_ggc_collect
+ | TODO_update_ssa
| TODO_verify_ssa
+ | TODO_verify_flow
| TODO_dump_func
- | TODO_update_ssa /* todo_flags_finish */
+ | TODO_ggc_collect /* todo_flags_finish */
}
};