[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ac-lang-compiler-gnu.patch
From: |
Alexandre Oliva |
Subject: |
Re: ac-lang-compiler-gnu.patch |
Date: |
12 Oct 2000 16:46:12 -0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
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.
It depends on the flags given to the compiler. C and C++ translation
units must contain at least one declaration, but GCC will accept empty
translation units in non-pedantic mode. With certain flags, it will
just print warnings. I'd recommend against empty translation units.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me