This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Bad config.sub output for mips-linux


[Please Cc me, I'm not subscribed to config-patches@gnu.org]

Hi All,

config.sub provides inconsistent output for mips*-linux* targets
since several weeks. E.g.:

mips-linux     -> mips-mips-linux-gnu      # This is wrong
mips-linux-gnu -> mips-unkown-linux-gnu
mipsel-linux   -> mipsel-unkown-linux-gnu
mips64-linux   -> mips64-unkown-linux-gnu

The appended patch fixes this by assuming that every generic -linux*
is also -linux-gnu* on mips. It also removes some bogus code which
never gets hit, and where linux seems to be used as vendor name.


Thiemo


2002-02-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/ChangeLog
	* config.sub: Remove bogus linux vendor entry for mips.
	Let 'mips-linux' result in 'mips-unknown-linux-gnu'.


diff -BurpN source-orig/config.sub source/config.sub
--- source-orig/config.sub	Tue Feb 12 17:13:03 2002
+++ source/config.sub	Sun Feb 17 06:55:38 2002
@@ -609,14 +609,6 @@ case $basic_machine in
 		basic_machine=m68k-atari
 		os=-mint
 		;;
-	mipsel*-linux*)
-		basic_machine=mipsel-unknown
-		os=-linux-gnu
-		;;
-	mips*-linux*)
-		basic_machine=mips-unknown
-		os=-linux-gnu
-		;;
 	mips3*-*)
 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
 		;;
@@ -982,11 +974,12 @@ case $basic_machine in
 		basic_machine=hppa1.1-oki
 		;;
 	mips)
-		if [ x$os = x-linux-gnu ]; then
-			basic_machine=mips-unknown
-		else
-			basic_machine=mips-mips
-		fi
+		case $os in
+		-linux*)
+			basic_machine=mips-unknown;;
+		*)
+			basic_machine=mips-mips;;
+		esac
 		;;
 	romp)
 		basic_machine=romp-ibm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]