cpp internal #defines

Charl Botha cpbotha@sun.ac.za
Wed Sep 23 13:54:00 GMT 1998


Dear list,

Excuse me if this is known or it has been discussed, but the normal
sources made no mention.  When one runs (from a egcs-1.1b release install)
/tmp/cpp -dM (this switch makes it output the values of internal defines)
and then types ctrl-d (to indicate end of file) it outputs the following
on an i386 linux architecture:

#define linux 1 
#define __ELF__ 1 
#define unix 1 

and on alpha-linux

#define linux 1 
#define _LONGLONG 1 
#define __ELF__ 1 
#define unix 1 

Shouldn't there be an internal define for the cpu type?  I.e. on the
previous egcs release, it had i386 or __alpha (and __alpha__) defined on
respectively the i386 and alpha.  The fact that there's no cputype
confuses things like imake.

Have I done something wrong during the compile? (using configure
--prefix=/usr --enable-shared --enable-threads)  Please CC to this email
address as well, I am not subscribed to the egcs-bugs list anymore.

Thankyou very much for any help and or advice,
Charl

---------------------------------------------------------------------------
Charl Botha

E-Mail cpbotha@sun.ac.za

Image Processing and Pattern Recognition
Digital Signal Processing Group < http://dsp.ee.sun.ac.za >
Department of Electronic Engineering
University of Stellenbosch
South Africa





More information about the Gcc-bugs mailing list