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: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 00:34:14 -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 steven at gcc dot gnu dot org 2004-11-24 00:34 -------
Giovanni, your patch actually looks correct to me.
It may be just exposing a latent bug in the C front end. I'm not
sure but I'd expect that if a function is declared inline as in
testsuite/gcc.dg/winline-2.c:
/* { dg-do compile } */
/* { dg-options "-Winline -O2" } */
inline int q(void); /* { dg-warning "body not available" "" } */
inline int t(void)
{
return q(); /* { dg-warning "called from here" "" } */
}
then q should be DECL_DECLARED_INLINE - but it looks like it's not,
or you shouldn't see those new FAILs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18071