This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problems with -Dalpha or -Di386
- To: egcs at cygnus dot com
- Subject: problems with -Dalpha or -Di386
- From: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Date: Tue, 10 Nov 1998 11:50:04 +0100
Hi,
bug from comp.os.linux.alpha:
#include <stdio.h>
int main(int argc,const char *argv[])
{
int i386=1;
printf("i386=%d\n",i386);
return 0;
}
results in parse error before `1'
(cpp replaces i386 by 1 on x86-machines)
this is egcs-1.1b
This is not a big problem on x86,
but same thing happens on alpha.
alpha is not a seldom used variable name.
Doesn't the standard say, defines for the compiler should be
prepended by __ or something like that?
Sorry for the noise,
Martin.