[Bug c++/20624] [4.0 Regression] wrong "control reaches end of non-void function" warning

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 19 05:56:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-19 05:41 -------
Subject: Bug 20624

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2005-08-19 05:41:14

Modified files:
	gcc            : ChangeLog gimple-low.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/warn: Wreturn-3.C 

Log message:
	2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/20624
	* g++.dg/warn/Wreturn-3.C: New test
	
	2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/20624
	* gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
	looking past it.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9776&r2=2.9777
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.26&r2=2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5936&r2=1.5937
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wreturn-3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20624



More information about the Gcc-bugs mailing list