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 middle-end/18071] [3.4/4.0/4.1 Regression] -Winline does not respect -fno-default-inline



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


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