This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems with -Dalpha or -Di386
- To: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Subject: Re: problems with -Dalpha or -Di386
- From: Robert Lipe <robertl at dgii dot com>
- Date: Tue, 10 Nov 1998 12:02:19 -0600
- Cc: egcs at cygnus dot com
- References: <199811101050.LAA23810@keksy.mchp.siemens.de>
> (cpp replaces i386 by 1 on x86-machines)
>
> Doesn't the standard say, defines for the compiler should be
> prepended by __ or something like that?
Yes. Unfortunately every time the default namespace is cleaned up, the
list is flooded by problem reports of things failing in bizarre ways
becuase they insist on testing '#if i386' or '#ifdef i386'.
X and xmkmf are particularly notorious at this trick.
Workarounds include adding '-Ui386' or better yet '-ansi' to your
compile lines.
RJL