"John P. Hartmann" <[EMAIL PROTECTED]> 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.


Reply via email to