diff options
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" |
