This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18071] [3.4/4.0/4.1 Regression] -Winline does not respect -fno-default-inline
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2005 01:32:04 -0000
- Subject: [Bug middle-end/18071] [3.4/4.0/4.1 Regression] -Winline does not respect -fno-default-inline
- References: <bug-18071-4672@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from mmitchel at gcc dot gnu dot org 2005-10-31 01:32 -------
I'm somewhat confused by the proposed patch in Comment #12.
The documentation says -Winline warns about functions *declared* inline, but
not actually inlined. I think that makes sense. DECL_INLINE is an internal
note to the compiler that it might make sense to inline that function. Warning
a user because some small function, not declared inline, was not in fact
inlined, seems wrong.
So, I'm confused by "what we actually want is to emit a warning for the
functions
marked with DECL_INLINE".
In any case, I think P2 is the right setting for this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18071