This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [patch] don't give bodies for both 'extern inline' and normal versions of a function in same file
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Dan Kegel <dank at kegel dot com>,GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sun, 18 Jul 2004 22:46:27 -0700
- Subject: Re: [patch] don't give bodies for both 'extern inline' and normal versions of a function in same file
- References: <40FACCE3.2040307@kegel.com> <or3c3o5znv.fsf@livre.redhat.lsd.ic.unicamp.br>
On Mon, Jul 19, 2004 at 02:33:40AM -0300, Alexandre Oliva wrote:
> On Jul 18, 2004, Dan Kegel <dank@kegel.com> wrote:
>
> > Similarly, with gcc-3.5, atof.c needs to avoid defining the 'extern inline'
> > version, else gcc complains "hey, you asked for both 'always inline'
> > and 'never inline', please figure out what you want" and aborts.
>
> This would be a bug in GCC. Let's fix it there before it's released
> instead of working around it in glibc. extern inline is a GCC
> extension, and this code is supposed to be accepted AFAIK.
>
See
http://sources.redhat.com/ml/libc-alpha/2004-05/msg00156.html
H.J.