diff options
author | Gavin Romig-Koch <gavin@gcc.gnu.org> | 1999-09-07 11:34:32 +0000 |
---|---|---|
committer | Gavin Romig-Koch <gavin@gcc.gnu.org> | 1999-09-07 11:34:32 +0000 |
commit | cbab8d020cdd48886794a4dd7badf819b5974b07 (patch) | |
tree | 795ffd347444093a20ab67ddff237177ace880a7 | |
parent | b48b989ab2aea1ef48275e37603a809cbc9f4699 (diff) | |
download | gcc-cbab8d020cdd48886794a4dd7badf819b5974b07.zip gcc-cbab8d020cdd48886794a4dd7badf819b5974b07.tar.gz gcc-cbab8d020cdd48886794a4dd7badf819b5974b07.tar.bz2 |
mips.h (MULTILIB_ENDIAN_DEFAULT): New macro.
* config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
(MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
* config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
* config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
From-SVN: r29167
-rw-r--r-- | gcc/config/mips/elf64.h | 8 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 10 | ||||
-rw-r--r-- | gcc/config/mips/r3900.h | 2 |
3 files changed, 9 insertions, 11 deletions
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h index 91c8310..986d219 100644 --- a/gcc/config/mips/elf64.h +++ b/gcc/config/mips/elf64.h @@ -37,14 +37,8 @@ Boston, MA 02111-1307, USA. */ #include "mips/mips.h" -/* This must be done after mips.h, because mips.h defines - TARGET_ENDIAN_DEFAULT. */ #undef MULTILIB_DEFAULTS -#if TARGET_ENDIAN_DEFAULT == 0 -#define MULTILIB_DEFAULTS { "EL", "mips3" } -#else -#define MULTILIB_DEFAULTS { "EB", "mips3" } -#endif +#define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "mips3" } #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000" diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 084f5d2..bd6f1ee 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -586,12 +586,16 @@ extern void mips_select_section (); #endif #endif -#ifndef MULTILIB_DEFAULTS +#ifndef MULTILIB_ENDIAN_DEFAULT #if TARGET_ENDIAN_DEFAULT == 0 -#define MULTILIB_DEFAULTS { "EL", "mips1" } +#define MULTILIB_ENDIAN_DEFAULT "EL" #else -#define MULTILIB_DEFAULTS { "EB", "mips1" } +#define MULTILIB_ENDIAN_DEFAULT "EB" +#endif #endif + +#ifndef MULTILIB_DEFAULTS +#define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "mips1" } #endif /* We must pass -EL to the linker by default for little endian embedded diff --git a/gcc/config/mips/r3900.h b/gcc/config/mips/r3900.h index 3d7cac5..9b19f72 100644 --- a/gcc/config/mips/r3900.h +++ b/gcc/config/mips/r3900.h @@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA. */ #define MIPS_CPU_STRING_DEFAULT "R3900" #define MIPS_ISA_DEFAULT 1 -#define MULTILIB_DEFAULTS { "EB", "msoft-float" } +#define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "msoft-float" } /* We use the MIPS EABI by default. */ #define MIPS_ABI_DEFAULT ABI_EABI |