bug-gnulib
[Top][All Lists]
Advanced

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

Re: [POLL] C99, declaration after statement


From: Paul Eggert
Subject: Re: [POLL] C99, declaration after statement
Date: Sun, 25 Sep 2011 10:24:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

On 09/25/11 09:35, Bruno Haible wrote:
> AC_PROG_CC_C99 should then be preferred over AC_PROG_CC_STDC. Right?

No, because one cannot safely mix
AC_PROG_CC_C99 and AC_PROG_CC_STDC, just
as one cannot safely mix AC_PROG_CC_STDC
and AC_PROG_CC_C89, or safely mix
AC_PROG_CC_C89 and AC_PROG_CC_C99.

Perhaps Autoconf could be improved so that
these macros can be used together, but that
would require some thought: in a few places
C89 is genuinely incompatible with C99, and
I expect the same will be true with C1x.

In the past, we've ignored this issue: thus,
even though gnulib modules generally require
C89 or better, gnulib doesn't invoke AC_PROG_CC_C89.
On further thought, perhaps we should continue
to ignore it.



reply via email to

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