[Top][All Lists]

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

Re: bug: "gcc -std=gnu99" passes AC_PROG_CC_C11

From: Peter Rosin
Subject: Re: bug: "gcc -std=gnu99" passes AC_PROG_CC_C11
Date: Tue, 02 Oct 2012 16:59:53 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

On 2012-10-02 16:02, Adrian Bunk wrote:
> On Mon, Oct 01, 2012 at 03:40:31PM -0700, Paul Eggert wrote:
>> On 10/01/2012 03:20 PM, Adrian Bunk wrote:
>>> Not if they are set to default to C99 mode.
>> Ah.  True.  That may be a problem for future
>> versions of these two compilers, though it's
>> not a problem for current versions.
> The same would be true for adding a __STDC_VERSION__ check to the 
> current C11 test, since all compilers that currently pass the C11
> test (only gcc 4.7) define it to the correct value...

If Autoconf checks __STDC_VERSION__, I fear that future compilers
will simply lie if they have some of the desired features, just to
get past the check. Checking it will put pressure on the compiler
vendors to set it, even when they aren't compliant (and know it).
I predict that checking it will dilute the usefulness of


reply via email to

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