autoconf-patches
[Top][All Lists]
Advanced

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

Re: ac-lang-compiler-gnu.patch


From: Akim Demaille
Subject: Re: ac-lang-compiler-gnu.patch
Date: 13 Oct 2000 12:05:13 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Alexandre" == Alexandre Oliva <address@hidden> writes:

Alexandre> On Oct 12, 2000, Akim Demaille <address@hidden> wrote:
>> There is one thing which needs to be debated: I believe it is OK to
>> compile an empty file with GNU compilers, but if I'm wrong, then
>> replacing AC_LANG_SOURCE with AC_LANG_PROGRAM should make it.

Alexandre> It depends on the flags given to the compiler.  C and C++
Alexandre> translation units must contain at least one declaration,
Alexandre> but GCC will accept empty translation units in non-pedantic
Alexandre> mode.  With certain flags, it will just print warnings.
Alexandre> I'd recommend against empty translation units.

OK, so consider the patch uses AC_LANG_PROGRAM.



reply via email to

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