Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!ascway!wkd From: ascway!wkd@CS.UTEXAS.EDU Newsgroups: gnu.gcc.bug Subject: sparc include file bug... Message-ID: <8904192051.AA01158@sake.SWS-ASC.SLB.COM> Date: 19 Apr 89 20:51:02 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 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