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 Regression] -Winline does not respect -fno-default-inline
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 16:57:50 -0000
- Subject: [Bug middle-end/18071] [3.4/4.0 Regression] -Winline does not respect -fno-default-inline
- References: <20041020054737.18071.markus@oberhumer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From joseph at codesourcery dot com 2004-11-24 16:57 -------
Subject: Re: [3.4/4.0 Regression] -Winline does not
respect -fno-default-inline
On Wed, 24 Nov 2004, giovannibajo at libero dot it wrote:
> JSM, do you agree with Steven's analysys? It looks like DECL_DECLARED_INLINE
> should just mean there, so the C frontend might be wrong in this regard.
I agree the C front end should set DECL_DECLARED_INLINE when a function is
declared inline. Before looking for a problem in that regard, make sure
that (a) DECL_DECLARED_INLINE is what is checked for the diagnostics in
question, (b) it is indeed not set for the relevant decl.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18071