This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]