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

Alexandre Oliva aoliva@redhat.com
Mon Jul 19 07:22:00 GMT 2004


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}



More information about the Libc-alpha mailing list