bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc-4.3, glibc and AC_PROG_CC_STDC


From: Jakub Jelinek
Subject: Re: gcc-4.3, glibc and AC_PROG_CC_STDC
Date: Mon, 12 Feb 2007 11:55:51 +0100
User-agent: Mutt/1.4.2.2i

On Sun, Feb 11, 2007 at 09:51:33PM -0800, Paul Eggert wrote:
> > Given that there is still discussion and work on GCC for this topic
> > anyway[1], I don't think Autoconf should be doing anything just yet.

Yeah, it is just too early.

> Both of the solutions that Bruno suggested seem too drastic to me as
> well.  I hope we can come up with something less intrusive.
> 
> Once GCC 4.3 settles down, perhaps we can work around any remaining
> problems with gnulib's wchar module.

When GCC implements -fgnu-extern-inline switch (or -fgnu89-extern-inline?),
glibc will likely switch to using that switch when building itself
and adding gnu_inline attributes to installed headers.

> But for this case I'm
> inclined to ask, along with Ralf, why GCC 4.3 doesn't apply
> fixincludes to the troublesome include files.

fixinclude is applied by gcc 4.3, but incorrectly.  It edits a few headers
by removing extern keyword for __STDC__ >= 199901L from extern inline
and for the biggest part it just disables glibc optimizations.
The right fix there is to do nothing if __extern_inline macro is
already defined (that means the headers are using gnu_inline attribute
as appropriate) and otherwise add gnu_inline attribute to all extern
inlines.

        Jakub




reply via email to

[Prev in Thread] Current Thread [Next in Thread]