[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX with Visual Age C compiler fails to compile 2.1 and later
From: |
Paul Eggert |
Subject: |
Re: AIX with Visual Age C compiler fails to compile 2.1 and later |
Date: |
Thu, 06 Oct 2005 09:35:41 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
"John P. Hartmann" <address@hidden> writes:
> The compiler reference manual has this to say: "The default language level is
> ansi when using xlc or c89 to invoke the compiler, and extended when using xlC
> or cc. The extended language level is based on C89."
>
> I'll try CC=xlc and see what transpires.
Thanks. No doubt that will work.
> My experience is that the Toronto folks are pretty good at reading the
> standards.
Yes, and they've got a perfect right to not define __STDC__ when you
are using 'cc', since 'cc' is not standarized. However, we want Bison
to work well even when 'cc' is used.
I guess that the current fixes will do that, since they remove the
stray ';'. However it is frustrating that Bison generates a parser
that compiles with prototypes disabled, even though the compiler
presumably supports prototypes well. If you can suggest a better
approach (maybe 'cc' supports another predefined macro?) I'm all ears.