[gnu.gcc.bug] sparc include file bug...

wkd@CS.UTEXAS.EDU (04/20/89)

I'm using gcc version 1.34 under SunOs4.0.1 on a Sun 4 (sparc) machine.

The bug is in the stdarg.h file that comes with gcc - it has a line:

#ifndef sparc
...

to conditionally define the va_start macro based on whether the machine
is a sparc machine or not. Ig you use gcc -ansi, then the predefined
'sparc' symbol is ommitted, and only the '__sparc__' symbol is
predefined, causing the va_start macro to get messed up. Other
occurrences of testing the sparc symbol also test
__STDC__ and __sparc__.

Bill Duttweiler
Schlumberger Well Services
Austin Systems Center