Commit ac228d4e by Steven Bosscher

re PR rtl-optimization/7189 (gcc -O2 -Wall does not print ``control reaches end…

re PR rtl-optimization/7189 (gcc -O2 -Wall does not print ``control reaches end of non-void function'' warning)

2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>

	PR optimization/7189
	* toplev.c (rest_of_compilation):  Move
	check_function_return_warnings up to just after
	delete_unreachable_blocks.

From-SVN: r64076
parent 82955615
...@@ -2634,6 +2634,10 @@ rest_of_compilation (decl) ...@@ -2634,6 +2634,10 @@ rest_of_compilation (decl)
delete_unreachable_blocks (); delete_unreachable_blocks ();
/* We have to issue these warnings now already, because CFG cleanups
further down may destroy the required information. */
check_function_return_warnings ();
/* Turn NOTE_INSN_PREDICTIONs into branch predictions. */ /* Turn NOTE_INSN_PREDICTIONs into branch predictions. */
if (flag_guess_branch_prob) if (flag_guess_branch_prob)
{ {
...@@ -3191,8 +3195,6 @@ rest_of_compilation (decl) ...@@ -3191,8 +3195,6 @@ rest_of_compilation (decl)
open_dump_file (DFI_life, decl); open_dump_file (DFI_life, decl);
regclass_init (); regclass_init ();
check_function_return_warnings ();
#ifdef ENABLE_CHECKING #ifdef ENABLE_CHECKING
verify_flow_info (); verify_flow_info ();
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment