This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12603] No return statement warning on function that never returns with -O3
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2008 13:28:06 -0000
- Subject: [Bug c/12603] No return statement warning on function that never returns with -O3
- References: <bug-12603-7144@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from manu at gcc dot gnu dot org 2008-08-29 13:28 -------
No warning in GCC 4.4 with any of those:
-O0 -Wall -Wextra -Wreturn-type -Wunreachable-code
-O1 -Wall -Wextra -Wreturn-type -Wunreachable-code
-O2 -Wall -Wextra -Wreturn-type -Wunreachable-code
-O3 -Wall -Wextra -Wreturn-type -Wunreachable-code
-O3 -finline -Wall -Wextra -Wreturn-type -Wunreachable-code
If you can reproduce the problem in a recent GCC, let us know. I will add the
testcase to the testsuite before closing this.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |manu at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Known to fail| |4.4.0
Last reconfirmed|2005-12-18 00:38:04 |2008-08-29 13:28:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603