diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-14 20:24:19 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-14 20:24:19 +0000 |
commit | ac9cfadabbb2d3ac3cb9582a88dba555c8009e87 (patch) | |
tree | 76ee15beda5d16a2454d32084c8cd2e9f31189cd /gcc | |
parent | 9b6907116c33fe92ae4ec23e60461a2b8cb5b706 (diff) | |
download | gcc-ac9cfadabbb2d3ac3cb9582a88dba555c8009e87.zip gcc-ac9cfadabbb2d3ac3cb9582a88dba555c8009e87.tar.gz gcc-ac9cfadabbb2d3ac3cb9582a88dba555c8009e87.tar.bz2 |
alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP and __IEEE_FP_INEXACT as appropriate.
config/alpha:
* alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
and __IEEE_FP_INEXACT as appropriate.
(CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
(CPP_SPEC): Remove ieee defines.
* freebsd.h, netbsd.h: Remove ieee defines.
From-SVN: r53465
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 16 | ||||
-rw-r--r-- | gcc/config/alpha/freebsd.h | 6 | ||||
-rw-r--r-- | gcc/config/alpha/netbsd.h | 6 |
4 files changed, 20 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3262b5d..317a940 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk> + +config/alpha: + * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP + and __IEEE_FP_INEXACT as appropriate. + (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus. + (CPP_SPEC): Remove ieee defines. + * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu. + 2002-05-14 Richard Henderson <rth@redhat.com> * config/i386/i386.c (ix86_save_reg): Make regno unsigned. diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index caab8f6..6f82d82 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -63,14 +63,16 @@ Boston, MA 02111-1307, USA. */ builtin_define ("__alpha_ev4__"); \ builtin_assert ("cpu=ev4"); \ } \ - } while (0) + if (TARGET_IEEE || TARGET_IEEE_WITH_INEXACT) \ + builtin_define ("__IEEE_FP"); \ + if (TARGET_IEEE_WITH_INEXACT) \ + builtin_define ("__IEEE_FP_INEXACT"); \ +} while (0) /* For C++ we need to ensure that __LANGUAGE_C_PLUS_PLUS is defined independent of the source file extension. */ -#define CPLUSPLUS_CPP_SPEC "\ --D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus \ -%(cpp) \ -" +#define CPLUSPLUS_CPP_SPEC "-D__LANGUAGE_C_PLUS_PLUS__\ + -D__LANGUAGE_C_PLUS_PLUS %(cpp)" /* Write out the correct language type definition for the header files. Unless we have assembler language, write out the symbols for C. */ @@ -78,9 +80,7 @@ Boston, MA 02111-1307, USA. */ %{!undef:\ %{.S:-D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY }}\ %{.m:-D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C }\ -%{!.S:%{!.cc:%{!.cxx:%{!.cpp:%{!.cp:%{!.c++:%{!.C:%{!.m:-D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C }}}}}}}}}\ -%{mieee:-D_IEEE_FP }\ -%{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT }}\ +%{!.S:%{!.cc:%{!.cxx:%{!.cpp:%{!.cp:%{!.c++:%{!.C:%{!.m:-D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C }}}}}}}}}}\ %(cpp_subtarget)" #ifndef CPP_SUBTARGET_SPEC diff --git a/gcc/config/alpha/freebsd.h b/gcc/config/alpha/freebsd.h index c5b8fc8..bd74691 100644 --- a/gcc/config/alpha/freebsd.h +++ b/gcc/config/alpha/freebsd.h @@ -25,11 +25,9 @@ Boston, MA 02111-1307, USA. */ deal with the Alpha's FP issues. */ #undef CPP_SPEC -#define CPP_SPEC "%(cpp_cpu) %(cpp_subtarget) \ +#define CPP_SPEC "%(cpp_subtarget) \ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \ - %{posix:-D_POSIX_SOURCE} \ - %{mieee:-D_IEEE_FP} \ - %{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT}" + %{posix:-D_POSIX_SOURCE}" #define LINK_SPEC "%{G*} %{relax:-relax} \ %{p:%e`-p' not supported; use `-pg' and gprof(1)} \ diff --git a/gcc/config/alpha/netbsd.h b/gcc/config/alpha/netbsd.h index 9b0c232..3f249eb 100644 --- a/gcc/config/alpha/netbsd.h +++ b/gcc/config/alpha/netbsd.h @@ -39,11 +39,7 @@ Boston, MA 02111-1307, USA. */ the standard NetBSD specs, we also handle Alpha FP mode indications. */ #undef CPP_SPEC -#define CPP_SPEC \ - "%{mieee:-D_IEEE_FP} \ - %{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT} \ - %{posix:-D_POSIX_SOURCE} \ - %(cpp_cpu) %(cpp_subtarget)" +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %(cpp_subtarget)" /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for |