summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-10 12:48:08 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-10 12:48:08 +0000
commitf7eb919a6ca27cac32200f5eb5e655ed79bf19b6 (patch)
treeab8bf6933dbc53371a0a52963ebb477e2c5cbb07
parent7db9af5d335d115f602dc4b11f0d07b96739451d (diff)
downloadppe42-gcc-f7eb919a6ca27cac32200f5eb5e655ed79bf19b6.tar.gz
ppe42-gcc-f7eb919a6ca27cac32200f5eb5e655ed79bf19b6.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64076 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/toplev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 7d7b3464f0e..d44b6cf5d33 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2634,6 +2634,10 @@ rest_of_compilation (decl)
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. */
if (flag_guess_branch_prob)
{
@@ -3191,8 +3195,6 @@ rest_of_compilation (decl)
open_dump_file (DFI_life, decl);
regclass_init ();
- check_function_return_warnings ();
-
#ifdef ENABLE_CHECKING
verify_flow_info ();
#endif
OpenPOWER on IntegriCloud