This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems with -Dalpha or -Di386


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]