pkgsrc/cross/COMMON/patches-egcs/patch-ah
tsutsui c634e77061 Oops, fatal typo. (s/#ifndef/#ifdef/)
Apologies for my fault.
2000-02-19 09:46:14 +00:00

82 lines
3.2 KiB
Text

$NetBSD: patch-ah,v 1.2 2000/02/19 09:46:14 tsutsui Exp $
--- config.sub.orig Sat Apr 4 01:21:57 1998
+++ config.sub Thu Feb 17 01:16:53 2000
@@ -165,7 +165,7 @@
| alpha | alphaev5 | alphaev56 | alphapca56 | alphaev6 \
| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
| 1750a | dsp16xx | pdp11 \
- | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
+ | mips64 | mipsel | mipseb | mips64el | mips64orion | mips64orionel \
| mipstx39 | mipstx39el \
| sparc | sparclet | sparclite | sparc64 | v850)
basic_machine=$basic_machine-unknown
@@ -212,7 +212,7 @@
| alphaev6-* | we32k-* | cydra-* | ns16k-* | pn-* | np1-* \
| xps100-* | clipper-* | orion-* \
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
- | sparc64-* | mips64-* | mipsel-* \
+ | sparc64-* | mips64-* | mipsel-* | mipseb-* \
| mips64el-* | mips64orion-* | mips64orionel-* \
| mipstx39-* | mipstx39el-* \
| f301-*)
--- gcc/config.sub.orig Sun Apr 5 02:37:36 1998
+++ gcc/config.sub Fri Feb 18 19:18:11 2000
@@ -154,7 +154,7 @@
| tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
- | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
+ | mips64 | mipsel | mipseb | mips64el | mips64orion | mips64orionel \
| mipstx39 | mipstx39el \
| sparc | sparclet | sparclite | sparc64 | v850)
basic_machine=$basic_machine-unknown
@@ -182,7 +182,7 @@
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
- | sparc64-* | mips64-* | mipsel-* \
+ | sparc64-* | mips64-* | mipsel-* | mipseb-* \
| mips64el-* | mips64orion-* | mips64orionel-* \
| mipstx39-* | mipstx39el-* \
| f301-*)
--- gcc/config/mips/netbsd.h.orig Thu Feb 17 01:07:26 2000
+++ gcc/config/mips/netbsd.h Fri Feb 18 19:21:45 2000
@@ -20,7 +20,11 @@
/* Define default target values. */
+#ifdef TARGET_BIG_ENDIAN_DEFAULT
+#define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN
+#else
#define TARGET_ENDIAN_DEFAULT 0
+#endif
#define TARGET_DEFAULT MASK_GAS
/* Get generic mips ELF definitions. */
@@ -40,10 +44,17 @@
/* Define mips-specific netbsd predefines... */
#undef CPP_PREDEFINES
+#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__ \
+ -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. */
--- /dev/null Fri Feb 18 19:02:34 2000
+++ gcc/config/mips/t-mipseb Fri Feb 18 19:22:08 2000
@@ -0,0 +1 @@
+T_CFLAGS +=-DTARGET_BIG_ENDIAN_DEFAULT
--- /dev/null Fri Feb 18 19:02:34 2000
+++ gcc/config/mips/t-mipsel Fri Feb 18 19:22:20 2000
@@ -0,0 +1 @@
+T_CFLAGS +=-DTARGET_LITTLE_ENDIAN_DEFAULT