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: 20 Oct 2008 20:42:44 -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 #10 from pinskia at gcc dot gnu dot org 2008-10-20 20:42 -------
(In reply to comment #9)
> This got fixed somehow. There is a testcase in the testsuite to make sure we do
> not regress.
This was most likely fixed by:
2008-09-17 Jan Hubicka <jh@suse.cz>
PR c++/18071
* tree.h (DECL_INLINE): remove.
(DECL_DECLARED_INLINE_P): Update docs.
(DECL_NO_INLINE_WARNING_P): new.
(tree_function_decl): Replace inline_flag by no_inline_warning_flag.
* tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
:)
Which removed DECL_INLINE. As I mentioned in comment #4 DECL_INLINE was the
issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603