This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR17544, a C99 and C++ Wunreachable-code problem
- From: Richard Henderson <rth at redhat dot com>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 Dec 2004 13:58:30 -0800
- Subject: Re: [PATCH] PR17544, a C99 and C++ Wunreachable-code problem
- References: <200412311303.16746.stevenb@suse.de>
On Fri, Dec 31, 2004 at 01:03:16PM +0100, Steven Bosscher wrote:
> PR middle-end/17544
> * c-decl.c (finish_function): If compiling C99, annotate the
> compiler generated return with the current file name and line 0.
> * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
> the source line is greater than 0.
> (remove_bb): Likewise.
>
> cp/
> PR middle-end/17544
> * decl.c (finish_function): Fix comment. Annotate the compiler
> generated return with the current file name and line 0.
>
> testsuite/
> * gcc.dg/20041231-1.C: New test.
> * g++.dg/warn/Wunreachable-code-1.C: New test.
Ok.
r~