Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu Add support of mipseb target.



details:   https://anonhg.NetBSD.org/src/rev/8d33e582db01
branches:  trunk
changeset: 482596:8d33e582db01
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Feb 16 11:23:48 2000 +0000

description:
Add support of mipseb target.

diffstat:

 gnu/dist/gcc/config/mips/netbsd.h |   9 +++++++++
 gnu/usr.bin/egcs/Makefile.inc     |   3 ++-
 gnu/usr.bin/egcs/arch/mips/tm.h   |  10 +++++++++-
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (64 lines):

diff -r f5159518ee11 -r 8d33e582db01 gnu/dist/gcc/config/mips/netbsd.h
--- a/gnu/dist/gcc/config/mips/netbsd.h Wed Feb 16 10:48:13 2000 +0000
+++ b/gnu/dist/gcc/config/mips/netbsd.h Wed Feb 16 11:23:48 2000 +0000
@@ -20,7 +20,9 @@
 
 /* Define default target values. */
 
+#ifndef TARGET_ENDIAN_DEFAULT
 #define TARGET_ENDIAN_DEFAULT 0
+#endif
 #define TARGET_DEFAULT MASK_GAS
 
 #ifdef hpcmips /* XXX should use distinct target name -uch */
@@ -45,10 +47,17 @@
 /* Define mips-specific netbsd predefines... */
 
 #undef CPP_PREDEFINES
+#if TARGET_ENDIAN_DEFAULT == MASK_BIG_ENDIAN
+#define CPP_PREDEFINES \
+ "-D__ANSI_COMPAT -DMIPSEB -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD \
+  -D__NetBSD__ -D__ELF__ -Dmips -D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ \
+  -D_R3000 -Asystem(unix) -Asystem(NetBSD) -Amachine(mips)"
+#else
 #define CPP_PREDEFINES \
  "-D__ANSI_COMPAT -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD \
   -D__NetBSD__ -D__ELF__ -Dmips -D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ \
   -D_R3000 -Asystem(unix) -Asystem(NetBSD) -Amachine(mips)"
+#endif
 
 /* Always uses gas.  */
 
diff -r f5159518ee11 -r 8d33e582db01 gnu/usr.bin/egcs/Makefile.inc
--- a/gnu/usr.bin/egcs/Makefile.inc     Wed Feb 16 10:48:13 2000 +0000
+++ b/gnu/usr.bin/egcs/Makefile.inc     Wed Feb 16 11:23:48 2000 +0000
@@ -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 @@
 
 .if (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb")
 ARCHSUBDIR= mips
+CPPFLAGS+=     -D${MACHINE_ARCH}
 .else
 ARCHSUBDIR= ${MACHINE_ARCH}
 .endif
diff -r f5159518ee11 -r 8d33e582db01 gnu/usr.bin/egcs/arch/mips/tm.h
--- a/gnu/usr.bin/egcs/arch/mips/tm.h   Wed Feb 16 10:48:13 2000 +0000
+++ b/gnu/usr.bin/egcs/arch/mips/tm.h   Wed Feb 16 11:23:48 2000 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index