__i386__ undefined with -Ox

I'm getting build errors with files that include errno.h - the error macros are not defined. I traced it down to the file asm/errno.h which does a check for __i386__, which is not defined when the -O flag is used. Simple test:

CC -m32 -xdumpmacros dummy.cpp >& LOG1

CC -O3 -m32 -xdumpmacros dummy.cpp >& LOG2

diff LOG1 LOG2

The only macro missing is __i386__.

[405 byte] By [martinwatt] at [2007-11-26 8:48:57]
# 1
Looks like a bug in compiler driver. Can you report it at http://bugs.sun.com/services/bugreport/index.jsp, please?
MaximKartashev at 2007-7-6 22:37:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Ok, I'll log it. Thanks.
martinwatt at 2007-7-6 22:37:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...