C compilers for A/UX
Richard Todd
rmtodd at servalan.uucp
Wed Sep 12 03:44:16 AEST 1990
jim at jagmac2.gsfc.nasa.gov (Jim Jagielski) writes:
>>A/UX cc stable???
>By stable, I mean that it produces solid code. Maybe stable was the wrong
>term, but I stand behind my opinion.
Okay, I'll agree with you here. When A/UX cc does compile a program, it
does seem to compile it correctly.
[talking about the infamous -fwritable-strings]
>Maybe that was it... I was compiling with -traditional. This happened with
>my port of ftpd, sendmail and fingerd, which all use sscanf (amongst others)
>so that may be the problems. Seems to me, the default should be -fwri* since,
>as I understand it, this is basically an ANSI "feature", and should be added
>when one selects -ansi...
Perhaps it should. In fact, it shouldn't be difficult to hack the gcc driver
to do just that. Of course, it'd be better if Apple also fixed the bug in
sscanf/ungetc that does this; sscanf really has no business trying to write
to its input. I certainly never had suspected that sscanf did such a thing
until the reports came out on comp.windows.x (among other places) about the
bug.
>Thanks for the help, but maybe my attitude towards gcc may be a little tainted
>by FSF and their "holier than thou" attitude.
And perhaps my attitude towards A/UX cc is tainted by AT&T and their
attitude of "God forbid we should go to the trouble of mallocing what
we can statically allocate. You want to compile something with more
than 32K of #defines? Too bad. See Figure 1."
--
Richard Todd rmtodd at uokmax.ecn.uoknor.edu rmtodd at chinet.chi.il.us
rmtodd at servalan.uucp
More information about the Comp.unix.aux
mailing list