mips.h (MULTILIB_ENDIAN_DEFAULT): New macro.
authorGavin Romig-Koch <gavin@gcc.gnu.org>
Tue, 7 Sep 1999 11:34:32 +0000 (11:34 +0000)
committerGavin Romig-Koch <gavin@gcc.gnu.org>
Tue, 7 Sep 1999 11:34:32 +0000 (11:34 +0000)
* 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

gcc/config/mips/elf64.h
gcc/config/mips/mips.h
gcc/config/mips/r3900.h

index 91c83103b9750eb2fa31abfcd70e2ba59d734ba6..986d2198335fa57bfb6efdb27e30ac0047399e0d 100644 (file)
@@ -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"
index 084f5d2a9257dcf0a7bd9e4f5120e94eb5ef8f1b..bd6f1ee0c7997f43347cf5ceda56733d15cc292a 100644 (file)
@@ -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
index 3d7cac5edc1141865d546e36f67a7a93032166df..9b19f729fd26360d37590ca6bfc47eadd60c2e3d 100644 (file)
@@ -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