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: "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: 6 Mar 2004 05:48:59 -0000
- Subject: [Bug c/12603] No return statement warning on function that never returns with -O3
- References: <20031013221916.12603.james@ittc.ku.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-06 05:48 -------
The problem is that -O3, DECL_INLINE for the function decl becomes true because -O3
enables -finline-functions. So it looks like a different check is needed for the C front-end.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|optimization |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603