- Add support of mipseb target.
- Make cross-packages compile on mips and powerpc hosts.
This commit is contained in:
parent
7e55085634
commit
37eff61636
2 changed files with 125 additions and 25 deletions
|
@ -1,26 +1,44 @@
|
|||
$NetBSD: patch-af,v 1.1 1999/02/14 10:12:03 mrg Exp $
|
||||
$NetBSD: patch-af,v 1.2 2000/02/19 00:53:40 tsutsui Exp $
|
||||
|
||||
Index: gcc/configure
|
||||
===================================================================
|
||||
RCS file: /cvsroot/src/gnu/dist/gcc/configure,v
|
||||
retrieving revision 1.11
|
||||
retrieving revision 1.12
|
||||
diff -c -r1.11 -r1.12
|
||||
*** gcc/configure 1998/12/16 14:49:45 1.11
|
||||
--- gcc/configure 1999/01/28 22:01:27 1.12
|
||||
***************
|
||||
*** 2764,2769 ****
|
||||
--- 2764,2776 ----
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
+ i[34567]86-*-netbsdelf*)
|
||||
+ tm_file=i386/netbsd-elf.h
|
||||
+ xm_file=i386/xm-netbsd.h
|
||||
+ # On NetBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-netbsd
|
||||
+ ;;
|
||||
i[34567]86-*-netbsd*)
|
||||
tm_file=i386/netbsd.h
|
||||
xm_file=i386/xm-netbsd.h
|
||||
--- gcc/configure.orig Thu Feb 17 01:07:22 2000
|
||||
+++ gcc/configure Fri Feb 18 19:19:50 2000
|
||||
@@ -2764,6 +2764,13 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
+ i[34567]86-*-netbsdelf*)
|
||||
+ tm_file=i386/netbsd-elf.h
|
||||
+ xm_file=i386/xm-netbsd.h
|
||||
+ # On NetBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-netbsd
|
||||
+ ;;
|
||||
i[34567]86-*-netbsd*)
|
||||
tm_file=i386/netbsd.h
|
||||
xm_file=i386/xm-netbsd.h
|
||||
@@ -3857,7 +3864,16 @@
|
||||
xm_file=mips/xm-netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
- tmake_file=t-netbsd
|
||||
+ tmake_file="t-netbsd mips/t-mipsel"
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
+ mipseb-*-netbsd*)
|
||||
+ tm_file=mips/netbsd.h
|
||||
+ xm_file=mips/xm-netbsd.h
|
||||
+ # On NetBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file="t-netbsd mips/t-mipseb"
|
||||
+ xmake_file=none
|
||||
;;
|
||||
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
|
||||
tm_file="mips/news4.h ${tm_file}"
|
||||
@@ -4233,6 +4249,7 @@
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
+ xmake_file=none
|
||||
;;
|
||||
powerpc-*-eabiaix*)
|
||||
tm_file=rs6000/eabiaix.h
|
||||
|
|
82
cross/COMMON/patches-egcs/patch-ah
Normal file
82
cross/COMMON/patches-egcs/patch-ah
Normal file
|
@ -0,0 +1,82 @@
|
|||
$NetBSD: patch-ah,v 1.1 2000/02/19 00:53:40 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. */
|
||||
|
||||
+#ifndef 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
|
Loading…
Reference in a new issue