[Bug c/12603] No return statement warning on function that never returns with -O3

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 20 20:44:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list