Improve vxWorks support on x86

Hans-Peter Nilsson
Tue Jan 26 05:49:00 GMT 1999

> From: Jeffrey A Law <>
> Date: Fri Jan 22 08:36:57 CET 1999
>   In message < >you write:
>   > 1999-01-21  Mike Stump  <>
>   > 
>   >     * i386/vxi386.h: Improve vxWorks support.
> Mostly OK.  However, you have several ANSI namespace violations that need
> to be addressed.
> We should not be defining anything that does not start with __ when -ansi
> is in effect.
> It is not OK to use -Di386 in CPP_PREDEFINES.  __i386__ is OK, but not -Di386.

CPP_PREDEFINES has magic attached to it so the driver (gcc, g++)
takes care of the ANSI (really: ISO) stuff, so that -Dfoo never
appears without "__" when -ansi. 
 So it *is* ok and recommended to have -Di386 and there was
nothing wrong with Mike's CPP_PREDEFINES in the first place, or
any port that has this, AFAICT.  Correct-me.

brgds, H-P

More information about the Gcc-patches mailing list