This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/7189: gcc -O2 -Wall does not print ``control reaches end of non-void function'' warning
- From: Richard Henderson <rth at redhat dot com>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sun, 2 Mar 2003 12:55:48 -0800
- Subject: Re: optimization/7189: gcc -O2 -Wall does not print ``control reaches end of non-void function'' warning
- References: <1045170255.31261.7.camel@steven> <20030301003059.GD25419@redhat.com> <1046559333.725.39.camel@steven>
On Sat, Mar 01, 2003 at 11:55:33PM +0100, Steven Bosscher wrote:
> PR optimization/7189
> * toplev.c (rest_of_compilation): Move
> check_function_return_warnings up to just after
> delete_unreachable_blocks.
Ok.
Don't forget to add your testcase.
r~