autoconf-patches
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: Re: bug: "gcc -std=gnu99" passes AC_PROG_CC_C11
Date: Mon, 01 Oct 2012 15:40:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

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.

To some extent, when we're talking about future
software, we're at the mercy of the future --
we really can't predict for sure.  It'd be nice
to have a more-plausible prediction than we currently
have,  But I'm not sure this is a good idea:

for test in test1 test2 test3
    for opt in '' -std=gnu11 -qlanglvl=extc1x
        if (run(test,opt) == SUCCESS)
            return opt
return NOT_SUPPORTED

For one thing, it's an O(N**3) algorithm
whereas we currently have O(N**2).  For another,
the individual tests may yield results that are
even less nice than what we have now.



reply via email to

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