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] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline



------- Comment #34 from hubicka at ucw dot cz  2008-01-15 15:59 -------
Subject: Re:  [4.0/4.1/4.2/4.3 Regression] -Winline does not respect
-fno-default-inline

> Yes, this is what I understand.  I think we need a new flag specifying
> if in the source the 'inline' keyword was used and solely use that for
> inline warning purposes.  (That is, I would not expect to get a warning
> for non-'inline' class methods either, regardless of -fdefault-inline
> setting).

Here I tend to be more with Geoff: since C++ standard says that inline
keyword is imlicit, I don't see why we should not warn on it and why
extra inline keyword should make difference. We don't handle those
functions specially in other inlining heuristics and thus it is bit
instructive to users to force them realize that they really are inline.
But if C++ people preffer to not warn, I definitly won't object.

Honza


-- 


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]