summaryrefslogtreecommitdiff
path: root/gcc/config/mips/elf64.h
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-05-05 14:35:14 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-05-05 07:35:14 -0700
commit3d90c2b510d9cf3b41a32f05e6e2b7f1562cf3ad (patch)
tree52a225b5c096900de8b8d5be0e5566f043d8e730 /gcc/config/mips/elf64.h
parent8b05263da4d6e7562876814752b6630ec18643d8 (diff)
downloadgcc-3d90c2b510d9cf3b41a32f05e6e2b7f1562cf3ad.tar.gz
Fix bug reported by Ian Taylor, mips64-elf multilibs are wrong.
* elf64.h (MULTILIB_DEFAULTS): Move definition after mips.h include. From-SVN: r19543
Diffstat (limited to 'gcc/config/mips/elf64.h')
-rw-r--r--gcc/config/mips/elf64.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h
index 3673c9ed187..edd00bbe921 100644
--- a/gcc/config/mips/elf64.h
+++ b/gcc/config/mips/elf64.h
@@ -25,14 +25,6 @@ Boston, MA 02111-1307, USA. */
#define TARGET_DEFAULT MASK_FLOAT64|MASK_64BIT
#define MIPS_ISA_DEFAULT 3
-#ifndef MULTILIB_DEFAULTS
-#if TARGET_ENDIAN_DEFAULT == 0
-#define MULTILIB_DEFAULTS { "EL", "mips3" }
-#else
-#define MULTILIB_DEFAULTS { "EB", "mips3" }
-#endif
-#endif
-
/* Until we figure out what MIPS ELF targets normally use, just do
stabs in ELF. */
#ifndef PREFERRED_DEBUGGING_TYPE
@@ -45,6 +37,15 @@ 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
+
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000"