public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] MIPS configuration fixes
@ 2001-09-13 21:12 Thiemo Seufer
  2001-09-13 21:14 ` Eric Christopher
  0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2001-09-13 21:12 UTC (permalink / raw)
  To: binutils

Hi All,

this patch cares about diverging machine triplets in some configuration
files. It also adds support for mips64-linux. The config.sub part
should obviously kept in sync with other gnu projects, i don't know
which ome is the master file.


Thiemo


2001-09-14  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>

	/bfd/ChangeLog
	* config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
	Add support for mips64.

	/ChangeLog
	* config.sub: Change machine triplets from mipsel*-* to mips*el-*.
	Add support for mips64.

	/gas/ChangeLog
	* configure.in: Change machine triplets from mips-*-linux-gnu* to
	mips*-*-linux*.


diff -BurpNX /bigdisk/src/binutils-exclude src-orig/bfd/config.bfd src/bfd/config.bfd
--- src-orig/bfd/config.bfd	Fri Aug 31 21:59:54 2001
+++ src/bfd/config.bfd	Sun Sep  9 12:47:29 2001
@@ -613,7 +613,7 @@ case "${targ}" in
     targ_defvec=ecoff_big_vec
     targ_selvecs=ecoff_little_vec
     ;;
-  mips-dec-netbsd* | mips*el*-*-netbsd*)
+  mips-dec-netbsd* | mips*el-*-netbsd*)
     targ_defvec=bfd_elf32_littlemips_vec
     targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec"
     ;;
@@ -682,19 +682,27 @@ case "${targ}" in
     targ_defvec=bfd_elf32_bigmips_vec
     targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
     ;;
-  mips*el*-*-openbsd*)
+  mips*el-*-openbsd*)
     targ_defvec=bfd_elf32_littlemips_vec
     targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
     ;;
-  mips*el*-*-linux-gnu*)
-    targ_defvec=bfd_elf32_tradlittlemips_vec
-    targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
-    ;;
   mips*-*-openbsd*)
     targ_defvec=bfd_elf32_bigmips_vec
     targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
     ;;
-  mips*-*-linux-gnu*)
+  mips64*el-*-linux*)
+    targ_defvec=bfd_elf32_tradlittlemips_vec
+    targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
+    ;;
+  mips*el-*-linux*)
+    targ_defvec=bfd_elf32_tradlittlemips_vec
+    targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
+    ;;
+  mips64*-*-linux*)
+    targ_defvec=bfd_elf32_tradbigmips_vec
+    targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
+    ;;
+  mips*-*-linux*)
     targ_defvec=bfd_elf32_tradbigmips_vec
     targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
     ;;
diff -BurpNX /bigdisk/src/binutils-exclude src-orig/config.sub src/config.sub
--- src-orig/config.sub	Fri Aug 31 21:59:53 2001
+++ src/config.sub	Sun Sep  9 13:07:33 2001
@@ -597,8 +597,16 @@ case $basic_machine in
 		basic_machine=m68k-atari
 		os=-mint
 		;;
-	mipsel*-linux*)
+	mips64*el-linux*)
+		basic_machine=mips64el-unknown
+		os=-linux-gnu
+		;;
+	mips*el-linux*)
 		basic_machine=mipsel-unknown
+		os=-linux-gnu
+		;;
+	mips64*-linux*)
+		basic_machine=mips64-unknown
 		os=-linux-gnu
 		;;
 	mips*-linux*)
diff -BurpNX /bigdisk/src/binutils-exclude src-orig/gas/configure.in src/gas/configure.in
--- src-orig/gas/configure.in	Fri Aug 31 22:00:08 2001
+++ src/gas/configure.in	Sun Sep  9 09:19:54 2001
@@ -350,7 +350,7 @@ changequote([,])dnl
       mips-*-irix*)         fmt=ecoff ;;
       mips-*-lnews*)        fmt=ecoff em=lnews ;;
       mips-*-riscos*)       fmt=ecoff ;;
-      mips-*-linux-gnu*)
+      mips*-*-linux*)
 			    fmt=elf em=tmips
 			    AC_DEFINE(MIPS_STABS_ELF, 1,
 				[Use ELF stabs for MIPS, not ECOFF stabs])
@@ -610,7 +610,7 @@ changequote([,])dnl
 
     case ${generic_target}-${fmt} in
       mips-*-irix5*-*)	emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
-      mips-*-linux-gnu*-*) case "$endian" in
+      mips*-*-linux*-*) case "$endian" in
 			big)	emulation="mipsbelf mipslelf mipself" ;;
 			*)	emulation="mipslelf mipsbelf mipself" ;;
 			esac ;;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS configuration fixes
  2001-09-13 21:12 [PATCH] MIPS configuration fixes Thiemo Seufer
@ 2001-09-13 21:14 ` Eric Christopher
  2001-09-13 22:40   ` Thiemo Seufer
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Christopher @ 2001-09-13 21:14 UTC (permalink / raw)
  To: egcs; +Cc: binutils

On Thu, 2001-09-13 at 21:11, Thiemo Seufer wrote:
> Hi All,
> 
> this patch cares about diverging machine triplets in some configuration
> files. It also adds support for mips64-linux. The config.sub part
> should obviously kept in sync with other gnu projects, i don't know
> which ome is the master file.
> 

Ok.  You've got me on this one.  Why?

-  mips*el*-*-openbsd*)
+  mips*el-*-openbsd*)

Not realy quite sure I get this change.

-eric


-- 
Look out behind you!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS configuration fixes
  2001-09-13 21:14 ` Eric Christopher
@ 2001-09-13 22:40   ` Thiemo Seufer
  2001-09-13 22:46     ` Eric Christopher
  0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2001-09-13 22:40 UTC (permalink / raw)
  To: binutils

Eric Christopher wrote:
[snip]
> Ok.  You've got me on this one.  Why?
> 
> -  mips*el*-*-openbsd*)
> +  mips*el-*-openbsd*)
> 
> Not realy quite sure I get this change.

Everywhere else in binutils, gcc and libc the "el" is assumed to be
the last part of the cpu string. Besides of Changelogs and config.sub,
only binutils has these occurrences:

./bfd/config.bfd:  mips-dec-netbsd* | mips*el*-*-netbsd*)
./bfd/config.bfd:  mips*el*-*-openbsd*)
./bfd/config.bfd:  mips*el*-*-linux-gnu*)
./gdb/configure.tgt:mips*tx39*el*-elf*)        gdb_target=tx39l ;;
./sim/mips/configure:  mips64el*-*-*)  mips_endian=LITTLE_ENDIAN ;;
./sim/mips/configure.in:  mips64el*-*-*)       mips_endian=LITTLE_ENDIAN ;;

I haven't fixed the latter three. Note that the one in sim/mips
wont match e.g. mips64orionel-, this also should be mips64*el-.


Thiemo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] MIPS configuration fixes
  2001-09-13 22:40   ` Thiemo Seufer
@ 2001-09-13 22:46     ` Eric Christopher
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Christopher @ 2001-09-13 22:46 UTC (permalink / raw)
  To: egcs; +Cc: binutils

> Everywhere else in binutils, gcc and libc the "el" is assumed to be
> the last part of the cpu string. Besides of Changelogs and config.sub,
> only binutils has these occurrences:

Ok.  I see it now. Go ahead :)

-eric

-- 
Look out behind you!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-13 22:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-13 21:12 [PATCH] MIPS configuration fixes Thiemo Seufer
2001-09-13 21:14 ` Eric Christopher
2001-09-13 22:40   ` Thiemo Seufer
2001-09-13 22:46     ` Eric Christopher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).