This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13000] [3.4 Regression] Using -O2 cannot detect missing return statement in a function
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Dec 2003 00:10:12 -0000
- Subject: [Bug optimization/13000] [3.4 Regression] Using -O2 cannot detect missing return statement in a function
- References: <20031110230703.13000.cheng@powertv.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-25 00:10 -------
>From Phil's regression hunter:
: Search converges between 2003-09-04-trunk (#391) and 2003-09-05-trunk (#392).
Before that GCC gave at -O2:
input.c: In function `AddPrimitiveDvrResource':
input.c:41: warning: statement with no effect
input.c:10: warning: unused parameter 'hSession'
input.c:12: warning: unused parameter 'pvResourceDescriptor'
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-01 04:34:28 |2003-12-25 00:10:12
date| |
Summary|[3.4 Regression] Using -Ox |[3.4 Regression] Using -O2
|cannot detect missing return|cannot detect missing return
|statement in a function |statement in a function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13000