[gnu.gcc.help] wanted: ANSI C on a Pyramid

cjsv@ccadfa.adfa.oz.au (Christopher JS Vance) (10/11/90)

We want an ANSI C compiler for our Pyramids.

Unfortunately, Pyramid don't seem to be in a hurry to ANSIfy cc, and
last time I checked, GNU C (1.37.1) admitted that <stdarg.h> uses a
different parameter passing mechanism than the Pyramid compiler and
therefore the library.  Programming without printf can get boring :-(. 

Questions:

* Are Pyramid planning to convert cc to be an ANSI compiler? Which
version of OSx will this come with?

* Has anybody fixed gcc to do the right thing (in -ansi mode)?

-- Christopher Vance

cjsv@ccadfa.adfa.oz.au (Christopher JS Vance) (10/15/90)

In article <1958@ccadfa.adfa.oz.au>, I wrote:
> Unfortunately, Pyramid don't seem to be in a hurry to ANSIfy cc, and

I have since been informed, and quite politely :-), that OSx 5.1 comes
with an ANSI compiler.  I assume this means ANSI headers, libraries,
lint, and the works. 

> last time I checked, GNU C (1.37.1) admitted that <stdarg.h> uses a
> different parameter passing mechanism than the Pyramid compiler and
> therefore the library.  Programming without printf can get boring :-(. 

I have also been informed that such functions work provided you don't
have a declaration in scope which uses the ellipsis notation.  I assume
this is illegal, even if it is the pragmatic thing to do.  #ifdef time...

-- Christopher