Article View: gnu.gcc.help
Article #49588my gcc 2.5.7 not setting __STDC__ automatically!
From: Edward Hartnett
Date: Sun, 09 Jan 1994 03:07
Date: Sun, 09 Jan 1994 03:07
42 lines
2994 bytes
2994 bytes
I'm running gcc 2.5.7 on a hpux system (730). From a compile (with the -v option of gcc -- output included below) I can see that __STDC__ is not defined for the preprocessor. I looked in the file specs as that seemed to be important, and I see: *predefines: -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) and __STDC__ isn't there. Should it be? Any suggestions welcome. Right now I'm getting this working by calling gcc with -D__STDC__, a non-elegant solution. gcc -v -c stovs.c -o stovs.o Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/specs gcc version 2.5.7 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=5 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D___HPUX_SOURCE__ -D__hppa -D__hp9000s800 -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -D___HPUX_SOURCE -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -D__hp9000s700 -D_PA_RISC1_1 stovs.c /usr/tmp/cca02149.i GNU CPP version 2.5.7 (hppa) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/hppa1.1-hp-hpux/include /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/include /usr/include End of search list. /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/cc1 /usr/tmp/cca02149.i -quiet -dumpbase stovs.c -version -o /usr/tmp/cca02149.s GNU C version 2.5.7 (hppa) compiled by GNU C version 2.5.7. stovs.c: In function `main': stovs.c:126: warning: passing arg 4 of `qsort' from incompatible pointer type as -o stovs.o /usr/tmp/cca02149.s as: /usr/tmp/cca02149.s @line#1723 [err#13] (warning) Use of GR3 when frame>=8192 may cause conflict gcc -v -o stovs stovs.o -lm -levap Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/specs gcc version 2.5.7 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7/ld -u main -o stovs /lib/crt0.o -L/usr/local/lib/gcc-lib/hppa1.1-hp-hpux/2.5.7 -L/usr/local/lib stovs.o -lm -levap -lgcc -lc -lgcc -- Edward Hartnett ejh@larry.gsfc.nasa.gov (301) 286-2396 fax: (301) 286-1754
Technical Details
Message-ID:
<EJH.94Jan8220709@larry.gsfc.nasa.gov>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!ames!skates.gsfc.nasa.gov!gsfc.nasa.gov!ejhShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3e77f523fd775172,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-08 19:18:02 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!ames!skates.gsfc.nasa.gov!gsfc.nasa.gov!ejh From: ejh@larry.gsfc.nasa.gov (Edward Hartnett) Newsgroups: gnu.gcc.help Subject: my gcc 2.5.7 not setting __STDC__ automatically! Date: 09 Jan 1994 03:07:09 GMT Organization: Goddard Space Flight Center Lines: 42 Message-ID: <EJH.94Jan8220709@larry.gsfc.nasa.gov> NNTP-Posting-Host: larry.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit