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 Regression] -Winline does not respect -fno-default-inline


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


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