2002-12-13 Dave Love * config/alpha/alpha.h (CPP_CPU_SPEC): Add -D__ALPHA -D__Alpha_AXP. * config/alpha/osf.h (CPP_PREDEFINES): Add -D__arch64__ -D__digital__. =================================================================== RCS file: osf.h,v retrieving revision 1.1 diff -u -r1.1 osf.h --- osf.h 2002/12/13 18:32:44 1.1 +++ osf.h 2003/02/27 14:45:05 @@ -32,9 +32,27 @@ /* Names to predefine in the preprocessor for this target machine. */ +/* With `Compaq C V6.4-215 (dtk) on Compaq Tru64 UNIX V5.1A (Rev. 1885)' + I see the following in the output of `cc -E -v -std -' where -std is + `relaxed ANSI': + +These macros are in effect at the start of the compilation. +----- ------ --- -- ------ -- --- ----- -- --- ------------ + + -D__DECC -D__osf__ -D__arch64__ -D__PRAGMA_ENVIRONMENT -D_LONGLONG -D__digital__ -D__X_FLOAT -D__DATE__="Dec 13 2002" -D__STDC_VERSION__=199901L -D__DECC_MODE_RELAXED -D__DECC_VER=60490215 -D_SYSTYPE_BSD -D__ALPHA -D__IEEE_FLOAT -D__unix__ -D__STDC_HOSTED__ -D__TIME__="18:58:48" -D__Alpha_AXP -D__INITIAL_POINTER_SIZE=0 -D__STDC__=0 -D__LANGUAGE_C__ -D__alpha + + See osf5.h concerning __X_FLOAT. I don't know what __IEEE_FLOAT + means (maybe not VAX?) and whether or not it should be defined. + __PRAGMA_ENVIRONMENT is Compaq C-specific, dealing with the 32-bit + pointer environment. __arch64__ is used in some headers; I don't + know whether or not it should go in CPP_CPU_SPEC. + + -- fx@gnu.org +*/ #define CPP_PREDEFINES "\ -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD \ --D_SYSTYPE_BSD -Asystem=unix -Asystem=xpg4" +-D_SYSTYPE_BSD -D__arch64__ -D__digital__ \ +-Asystem=unix -Asystem=xpg4" /* Tru64 UNIX V5 requires additional definitions for 16 byte long double support. Empty by default. */ =================================================================== RCS file: alpha.h,v retrieving revision 1.1 diff -u -r1.1 alpha.h --- alpha.h 2002/12/13 18:32:10 1.1 +++ alpha.h 2002/12/13 19:14:03 @@ -332,9 +332,11 @@ # endif #endif /* CPP_CPU_DEFAULT_SPEC */ +/* Compaq C defines __IEEE_FLOAT with unknown semantics. See also osf.h. */ #ifndef CPP_CPU_SPEC #define CPP_CPU_SPEC "\ -%{!undef:-Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ \ +%{!undef:-Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ -D__ALPHA \ +-D__Alpha_AXP \ %{mcpu=ev4|mcpu=21064:%(cpp_cpu_ev4) }\ %{mcpu=ev5|mcpu=21164:%(cpp_cpu_ev5) }\ %{mcpu=ev56|mcpu=21164a:%(cpp_cpu_ev56) }\