Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu - tm.h is automatically generated by configure in gnu/di...
details: https://anonhg.NetBSD.org/src/rev/80b1ebb56d9e
branches: trunk
changeset: 482665:80b1ebb56d9e
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Feb 19 00:44:31 2000 +0000
description:
- tm.h is automatically generated by configure in gnu/dist/gcc,
so egcs/arch/mips/tm.h should not contain any #ifdefs
- Use -DTARGET_{BIG,LITTLE}_ENDIAN_DEFAULT (which are used in egcs-current)
to switch mipseb/mipsel
diffstat:
gnu/dist/gcc/config/mips/netbsd.h | 6 ++++--
gnu/dist/gcc/config/mips/t-mipseb | 2 +-
gnu/dist/gcc/config/mips/t-mipsel | 2 +-
gnu/usr.bin/egcs/Makefile.inc | 11 +++++++++--
gnu/usr.bin/egcs/arch/mips/tm.h | 10 +---------
5 files changed, 16 insertions(+), 15 deletions(-)
diffs (83 lines):
diff -r b7e71aed446a -r 80b1ebb56d9e gnu/dist/gcc/config/mips/netbsd.h
--- a/gnu/dist/gcc/config/mips/netbsd.h Sat Feb 19 00:27:16 2000 +0000
+++ b/gnu/dist/gcc/config/mips/netbsd.h Sat Feb 19 00:44:31 2000 +0000
@@ -20,7 +20,9 @@
/* Define default target values. */
-#ifndef TARGET_ENDIAN_DEFAULT
+#ifdef TARGET_BIG_ENDIAN_DEFAULT
+#define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN
+#else
#define TARGET_ENDIAN_DEFAULT 0
#endif
#define TARGET_DEFAULT MASK_GAS
@@ -47,7 +49,7 @@
/* Define mips-specific netbsd predefines... */
#undef CPP_PREDEFINES
-#if TARGET_ENDIAN_DEFAULT == MASK_BIG_ENDIAN
+#ifdef TARGET_BIG_ENDIAN_DEFAULT
#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__ \
diff -r b7e71aed446a -r 80b1ebb56d9e gnu/dist/gcc/config/mips/t-mipseb
--- a/gnu/dist/gcc/config/mips/t-mipseb Sat Feb 19 00:27:16 2000 +0000
+++ b/gnu/dist/gcc/config/mips/t-mipseb Sat Feb 19 00:44:31 2000 +0000
@@ -1,1 +1,1 @@
-T_CFLAGS +=-DTARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN
+T_CFLAGS +=-DTARGET_BIG_ENDIAN_DEFAULT
diff -r b7e71aed446a -r 80b1ebb56d9e gnu/dist/gcc/config/mips/t-mipsel
--- a/gnu/dist/gcc/config/mips/t-mipsel Sat Feb 19 00:27:16 2000 +0000
+++ b/gnu/dist/gcc/config/mips/t-mipsel Sat Feb 19 00:44:31 2000 +0000
@@ -1,1 +1,1 @@
-T_CFLAGS +=-DTARGET_ENDIAN_DEFAULT=0
+T_CFLAGS +=-DTARGET_LITTLE_ENDIAN_DEFAULT
diff -r b7e71aed446a -r 80b1ebb56d9e gnu/usr.bin/egcs/Makefile.inc
--- a/gnu/usr.bin/egcs/Makefile.inc Sat Feb 19 00:27:16 2000 +0000
+++ b/gnu/usr.bin/egcs/Makefile.inc Sat Feb 19 00:44:31 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.23 2000/02/16 11:23:49 tsutsui Exp $
+# $NetBSD: Makefile.inc,v 1.24 2000/02/19 00:44:32 tsutsui Exp $
.if !defined(GCC_MAKEFILE_INC)
GCC_MAKEFILE_INC=1
@@ -23,7 +23,6 @@
.if (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb")
ARCHSUBDIR= mips
-CPPFLAGS+= -D${MACHINE_ARCH}
.else
ARCHSUBDIR= ${MACHINE_ARCH}
.endif
@@ -45,6 +44,14 @@
CPPFLAGS+=-DDEFAULT_ELF
.endif
+.if (${MACHINE_ARCH} == "mipseb")
+CPPFLAGS+=-DTARGET_BIG_ENDIAN_DEFAULT
+.endif
+
+.if (${MACHINE_ARCH} == "mipsel")
+CPPFLAGS+=-DTARGET_LITTLE_ENDIAN_DEFAULT
+.endif
+
.if (${MACHINE} == "hpcmips") # XXX
CPPFLAGS+=-D${MACHINE}
HOST_CPPFLAGS += -D${MACHINE}
diff -r b7e71aed446a -r 80b1ebb56d9e gnu/usr.bin/egcs/arch/mips/tm.h
--- a/gnu/usr.bin/egcs/arch/mips/tm.h Sat Feb 19 00:27:16 2000 +0000
+++ b/gnu/usr.bin/egcs/arch/mips/tm.h Sat Feb 19 00:44:31 2000 +0000
@@ -1,11 +1,3 @@
-/* $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
+/* $NetBSD: tm.h,v 1.4 2000/02/19 00:44:33 tsutsui Exp $ */
#include "mips/netbsd.h"
Home |
Main Index |
Thread Index |
Old Index