This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR17544, a C99 and C++ Wunreachable-code problem


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]