This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

Re: [patch] don't give bodies for both 'extern inline' and normal versions of a function in same file


On Jul 19, 2004, "H. J. Lu" <hjl@lucon.org> wrote:

> http://sources.redhat.com/ml/libc-alpha/2004-05/msg00156.html

Unless I'm mistaken, GCC 3.5 hasn't and won't change the default
behavior to gnu99.  When it does, glibc should probably use `static
inline' instead of `extern inline', instead of simply removing the
inline definition.  This doesn't change in any way the fact that gcc
is incorrectly merging the attributes of the definitions of the inline
and the non-inline versions of a function, and that's what causes the
bug at hand.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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