diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2000-02-16 11:23:48 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2000-02-16 11:23:48 +0000 |
| commit | 9658fcaa619dbbdce7bcefd5bb28d3cd2f2880d2 (patch) | |
| tree | edf0f0555b3fa37be0859e2f10e253e71d2d72bf /gnu/usr.bin | |
| parent | ce0bacce6a04d2c1c140f4a1060fa6cba5586546 (diff) | |
Add support of mipseb target.
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/egcs/Makefile.inc | 3 | ||||
| -rw-r--r-- | gnu/usr.bin/egcs/arch/mips/tm.h | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gnu/usr.bin/egcs/Makefile.inc b/gnu/usr.bin/egcs/Makefile.inc index 551b31b071b..110480f9b1e 100644 --- a/gnu/usr.bin/egcs/Makefile.inc +++ b/gnu/usr.bin/egcs/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.22 1999/10/09 16:10:19 sommerfeld Exp $ +# $NetBSD: Makefile.inc,v 1.23 2000/02/16 11:23:49 tsutsui Exp $ .if !defined(GCC_MAKEFILE_INC) GCC_MAKEFILE_INC=1 @@ -23,6 +23,7 @@ COMMONOBJ!= cd ${.CURDIR}/../common; ${MAKE} print-objdir .if (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb") ARCHSUBDIR= mips +CPPFLAGS+= -D${MACHINE_ARCH} .else ARCHSUBDIR= ${MACHINE_ARCH} .endif diff --git a/gnu/usr.bin/egcs/arch/mips/tm.h b/gnu/usr.bin/egcs/arch/mips/tm.h index 5b2c4dde299..5b86d152238 100644 --- a/gnu/usr.bin/egcs/arch/mips/tm.h +++ b/gnu/usr.bin/egcs/arch/mips/tm.h @@ -1,3 +1,11 @@ -/* $NetBSD: tm.h,v 1.2 1998/08/17 20:26:07 tv Exp $ */ +/* $NetBSD: tm.h,v 1.3 2000/02/16 11:23:49 tsutsui Exp $ */ + +#ifdef mipseb +#define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN +#else +#ifdef mipsel +#define TARGET_ENDIAN_DEFAULT 0 +#endif +#endif #include "mips/netbsd.h" |
