Commit cbab8d02 by Gavin Romig-Koch

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
parent b48b989a
...@@ -37,14 +37,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,14 +37,8 @@ Boston, MA 02111-1307, USA. */
#include "mips/mips.h" #include "mips/mips.h"
/* This must be done after mips.h, because mips.h defines
TARGET_ENDIAN_DEFAULT. */
#undef MULTILIB_DEFAULTS #undef MULTILIB_DEFAULTS
#if TARGET_ENDIAN_DEFAULT == 0 #define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "mips3" }
#define MULTILIB_DEFAULTS { "EL", "mips3" }
#else
#define MULTILIB_DEFAULTS { "EB", "mips3" }
#endif
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000" #define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000"
......
...@@ -586,12 +586,16 @@ extern void mips_select_section (); ...@@ -586,12 +586,16 @@ extern void mips_select_section ();
#endif #endif
#endif #endif
#ifndef MULTILIB_DEFAULTS #ifndef MULTILIB_ENDIAN_DEFAULT
#if TARGET_ENDIAN_DEFAULT == 0 #if TARGET_ENDIAN_DEFAULT == 0
#define MULTILIB_DEFAULTS { "EL", "mips1" } #define MULTILIB_ENDIAN_DEFAULT "EL"
#else #else
#define MULTILIB_DEFAULTS { "EB", "mips1" } #define MULTILIB_ENDIAN_DEFAULT "EB"
#endif
#endif #endif
#ifndef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS { MULTILIB_ENDIAN_DEFAULT, "mips1" }
#endif #endif
/* We must pass -EL to the linker by default for little endian embedded /* We must pass -EL to the linker by default for little endian embedded
......
...@@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA. */
#define MIPS_CPU_STRING_DEFAULT "R3900" #define MIPS_CPU_STRING_DEFAULT "R3900"
#define MIPS_ISA_DEFAULT 1 #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. */ /* We use the MIPS EABI by default. */
#define MIPS_ABI_DEFAULT ABI_EABI #define MIPS_ABI_DEFAULT ABI_EABI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment