Blame SOURCES/dejagnu-1.5-aarch64.patch

eb856e
diff -urN dejagnu-1.5/config.guess dejagnu-1.5-aarch64/config.guess
eb856e
--- dejagnu-1.5/config.guess	2011-03-03 04:01:07.000000000 -0600
eb856e
+++ dejagnu-1.5-aarch64/config.guess	2013-03-03 04:11:34.751854073 -0600
eb856e
@@ -2,9 +2,9 @@
eb856e
 # Attempt to guess a canonical system name.
eb856e
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
eb856e
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
eb856e
-#   2011 Free Software Foundation, Inc.
eb856e
+#   2011, 2012 Free Software Foundation, Inc.
eb856e
 
eb856e
-timestamp='2011-02-02'
eb856e
+timestamp='2012-09-25'
eb856e
 
eb856e
 # This file is free software; you can redistribute it and/or modify it
eb856e
 # under the terms of the GNU General Public License as published by
eb856e
@@ -17,9 +17,7 @@
eb856e
 # General Public License for more details.
eb856e
 #
eb856e
 # You should have received a copy of the GNU General Public License
eb856e
-# along with this program; if not, write to the Free Software
eb856e
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
eb856e
-# 02110-1301, USA.
eb856e
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
eb856e
 #
eb856e
 # As a special exception to the GNU General Public License, if you
eb856e
 # distribute this file as part of a program that contains a
eb856e
@@ -57,8 +55,8 @@
eb856e
 
eb856e
 Originally written by Per Bothner.
eb856e
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
eb856e
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
eb856e
-Software Foundation, Inc.
eb856e
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
eb856e
+Free Software Foundation, Inc.
eb856e
 
eb856e
 This is free software; see the source for copying conditions.  There is NO
eb856e
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
eb856e
@@ -145,7 +143,7 @@
eb856e
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
eb856e
     *:NetBSD:*:*)
eb856e
 	# NetBSD (nbsd) targets should (where applicable) match one or
eb856e
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
eb856e
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
eb856e
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
eb856e
 	# switched to ELF, *-*-netbsd* would select the old
eb856e
 	# object file format.  This provides both forward
eb856e
@@ -202,6 +200,10 @@
eb856e
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
eb856e
 	echo "${machine}-${os}${release}"
eb856e
 	exit ;;
eb856e
+    *:Bitrig:*:*)
eb856e
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
eb856e
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
eb856e
+	exit ;;
eb856e
     *:OpenBSD:*:*)
eb856e
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
eb856e
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
eb856e
@@ -304,7 +306,7 @@
eb856e
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
eb856e
 	echo arm-acorn-riscix${UNAME_RELEASE}
eb856e
 	exit ;;
eb856e
-    arm:riscos:*:*|arm:RISCOS:*:*)
eb856e
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
eb856e
 	echo arm-unknown-riscos
eb856e
 	exit ;;
eb856e
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
eb856e
@@ -792,21 +794,26 @@
eb856e
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
eb856e
 	exit ;;
eb856e
     *:FreeBSD:*:*)
eb856e
-	case ${UNAME_MACHINE} in
eb856e
-	    pc98)
eb856e
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
eb856e
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
eb856e
+	case ${UNAME_PROCESSOR} in
eb856e
 	    amd64)
eb856e
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
eb856e
 	    *)
eb856e
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
eb856e
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
eb856e
 	esac
eb856e
 	exit ;;
eb856e
     i*:CYGWIN*:*)
eb856e
 	echo ${UNAME_MACHINE}-pc-cygwin
eb856e
 	exit ;;
eb856e
+    *:MINGW64*:*)
eb856e
+	echo ${UNAME_MACHINE}-pc-mingw64
eb856e
+	exit ;;
eb856e
     *:MINGW*:*)
eb856e
 	echo ${UNAME_MACHINE}-pc-mingw32
eb856e
 	exit ;;
eb856e
+    i*:MSYS*:*)
eb856e
+	echo ${UNAME_MACHINE}-pc-msys
eb856e
+	exit ;;
eb856e
     i*:windows32*:*)
eb856e
 	# uname -m includes "-pc" on this system.
eb856e
 	echo ${UNAME_MACHINE}-mingw32
eb856e
@@ -861,6 +868,13 @@
eb856e
     i*86:Minix:*:*)
eb856e
 	echo ${UNAME_MACHINE}-pc-minix
eb856e
 	exit ;;
eb856e
+    aarch64:Linux:*:*)
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
+	exit ;;
eb856e
+    aarch64_be:Linux:*:*)
eb856e
+	UNAME_MACHINE=aarch64_be
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
+	exit ;;
eb856e
     alpha:Linux:*:*)
eb856e
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
eb856e
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
eb856e
@@ -882,20 +896,29 @@
eb856e
 	then
eb856e
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	else
eb856e
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
eb856e
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
eb856e
+		| grep -q __ARM_PCS_VFP
eb856e
+	    then
eb856e
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
eb856e
+	    else
eb856e
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
eb856e
+	    fi
eb856e
 	fi
eb856e
 	exit ;;
eb856e
     avr32*:Linux:*:*)
eb856e
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     cris:Linux:*:*)
eb856e
-	echo cris-axis-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-axis-linux-gnu
eb856e
 	exit ;;
eb856e
     crisv32:Linux:*:*)
eb856e
-	echo crisv32-axis-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-axis-linux-gnu
eb856e
 	exit ;;
eb856e
     frv:Linux:*:*)
eb856e
-	echo frv-unknown-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
+	exit ;;
eb856e
+    hexagon:Linux:*:*)
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     i*86:Linux:*:*)
eb856e
 	LIBC=gnu
eb856e
@@ -937,7 +960,7 @@
eb856e
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
eb856e
 	;;
eb856e
     or32:Linux:*:*)
eb856e
-	echo or32-unknown-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     padre:Linux:*:*)
eb856e
 	echo sparc-unknown-linux-gnu
eb856e
@@ -972,13 +995,13 @@
eb856e
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     tile*:Linux:*:*)
eb856e
-	echo ${UNAME_MACHINE}-tilera-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     vax:Linux:*:*)
eb856e
 	echo ${UNAME_MACHINE}-dec-linux-gnu
eb856e
 	exit ;;
eb856e
     x86_64:Linux:*:*)
eb856e
-	echo x86_64-unknown-linux-gnu
eb856e
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
 	exit ;;
eb856e
     xtensa*:Linux:*:*)
eb856e
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
eb856e
@@ -1185,6 +1208,9 @@
eb856e
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
eb856e
 	echo i586-pc-haiku
eb856e
 	exit ;;
eb856e
+    x86_64:Haiku:*:*)
eb856e
+	echo x86_64-unknown-haiku
eb856e
+	exit ;;
eb856e
     SX-4:SUPER-UX:*:*)
eb856e
 	echo sx4-nec-superux${UNAME_RELEASE}
eb856e
 	exit ;;
eb856e
@@ -1240,7 +1266,7 @@
eb856e
     NEO-?:NONSTOP_KERNEL:*:*)
eb856e
 	echo neo-tandem-nsk${UNAME_RELEASE}
eb856e
 	exit ;;
eb856e
-    NSE-?:NONSTOP_KERNEL:*:*)
eb856e
+    NSE-*:NONSTOP_KERNEL:*:*)
eb856e
 	echo nse-tandem-nsk${UNAME_RELEASE}
eb856e
 	exit ;;
eb856e
     NSR-?:NONSTOP_KERNEL:*:*)
eb856e
@@ -1309,11 +1335,11 @@
eb856e
     i*86:AROS:*:*)
eb856e
 	echo ${UNAME_MACHINE}-pc-aros
eb856e
 	exit ;;
eb856e
+    x86_64:VMkernel:*:*)
eb856e
+	echo ${UNAME_MACHINE}-unknown-esx
eb856e
+	exit ;;
eb856e
 esac
eb856e
 
eb856e
-#echo '(No uname command or uname output not recognized.)' 1>&2
eb856e
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
eb856e
-
eb856e
 eval $set_cc_for_build
eb856e
 cat >$dummy.c <
eb856e
 #ifdef _SEQUENT_
eb856e
diff -urN dejagnu-1.5/config.sub dejagnu-1.5-aarch64/config.sub
eb856e
--- dejagnu-1.5/config.sub	2011-03-03 04:01:07.000000000 -0600
eb856e
+++ dejagnu-1.5-aarch64/config.sub	2013-03-03 04:11:34.789849678 -0600
eb856e
@@ -2,9 +2,9 @@
eb856e
 # Configuration validation subroutine script.
eb856e
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
eb856e
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
eb856e
-#   2011 Free Software Foundation, Inc.
eb856e
+#   2011, 2012 Free Software Foundation, Inc.
eb856e
 
eb856e
-timestamp='2011-02-24'
eb856e
+timestamp='2012-10-10'
eb856e
 
eb856e
 # This file is (in principle) common to ALL GNU software.
eb856e
 # The presence of a machine in this file suggests that SOME GNU software
eb856e
@@ -21,9 +21,7 @@
eb856e
 # GNU General Public License for more details.
eb856e
 #
eb856e
 # You should have received a copy of the GNU General Public License
eb856e
-# along with this program; if not, write to the Free Software
eb856e
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
eb856e
-# 02110-1301, USA.
eb856e
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
eb856e
 #
eb856e
 # As a special exception to the GNU General Public License, if you
eb856e
 # distribute this file as part of a program that contains a
eb856e
@@ -76,8 +74,8 @@
eb856e
 GNU config.sub ($timestamp)
eb856e
 
eb856e
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
eb856e
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
eb856e
-Software Foundation, Inc.
eb856e
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
eb856e
+Free Software Foundation, Inc.
eb856e
 
eb856e
 This is free software; see the source for copying conditions.  There is NO
eb856e
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
eb856e
@@ -125,13 +123,17 @@
eb856e
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
eb856e
 case $maybe_os in
eb856e
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
eb856e
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
eb856e
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
eb856e
   knetbsd*-gnu* | netbsd*-gnu* | \
eb856e
   kopensolaris*-gnu* | \
eb856e
   storm-chaos* | os2-emx* | rtmk-nova*)
eb856e
     os=-$maybe_os
eb856e
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
eb856e
     ;;
eb856e
+  android-linux)
eb856e
+    os=-linux-android
eb856e
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
eb856e
+    ;;
eb856e
   *)
eb856e
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
eb856e
     if [ $basic_machine != $1 ]
eb856e
@@ -154,7 +156,7 @@
eb856e
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
eb856e
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
eb856e
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
eb856e
-	-apple | -axis | -knuth | -cray | -microblaze)
eb856e
+	-apple | -axis | -knuth | -cray | -microblaze*)
eb856e
 		os=
eb856e
 		basic_machine=$1
eb856e
 		;;
eb856e
@@ -223,6 +225,12 @@
eb856e
 	-isc*)
eb856e
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
eb856e
 		;;
eb856e
+	-lynx*178)
eb856e
+		os=-lynxos178
eb856e
+		;;
eb856e
+	-lynx*5)
eb856e
+		os=-lynxos5
eb856e
+		;;
eb856e
 	-lynx*)
eb856e
 		os=-lynxos
eb856e
 		;;
eb856e
@@ -247,20 +255,25 @@
eb856e
 	# Some are omitted here because they have special meanings below.
eb856e
 	1750a | 580 \
eb856e
 	| a29k \
eb856e
+	| aarch64 | aarch64_be \
eb856e
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
eb856e
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
eb856e
 	| am33_2.0 \
eb856e
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
eb856e
+        | be32 | be64 \
eb856e
 	| bfin \
eb856e
 	| c4x | clipper \
eb856e
 	| d10v | d30v | dlx | dsp16xx \
eb856e
+	| epiphany \
eb856e
 	| fido | fr30 | frv \
eb856e
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
eb856e
+	| hexagon \
eb856e
 	| i370 | i860 | i960 | ia64 \
eb856e
 	| ip2k | iq2000 \
eb856e
+	| le32 | le64 \
eb856e
 	| lm32 \
eb856e
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
eb856e
-	| maxq | mb | microblaze | mcore | mep | metag \
eb856e
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
eb856e
 	| mips | mipsbe | mipseb | mipsel | mipsle \
eb856e
 	| mips16 \
eb856e
 	| mips64 | mips64el \
eb856e
@@ -286,22 +299,23 @@
eb856e
 	| nds32 | nds32le | nds32be \
eb856e
 	| nios | nios2 \
eb856e
 	| ns16k | ns32k \
eb856e
+	| open8 \
eb856e
 	| or32 \
eb856e
 	| pdp10 | pdp11 | pj | pjl \
eb856e
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
eb856e
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
eb856e
 	| pyramid \
eb856e
-	| rx \
eb856e
+	| rl78 | rx \
eb856e
 	| score \
eb856e
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
eb856e
 	| sh64 | sh64le \
eb856e
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
eb856e
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
eb856e
-	| spu | strongarm \
eb856e
-	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
eb856e
+	| spu \
eb856e
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
eb856e
 	| ubicom32 \
eb856e
-	| v850 | v850e \
eb856e
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
eb856e
 	| we32k \
eb856e
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
eb856e
+	| x86 | xc16x | xstormy16 | xtensa \
eb856e
 	| z8k | z80)
eb856e
 		basic_machine=$basic_machine-unknown
eb856e
 		;;
eb856e
@@ -314,8 +328,7 @@
eb856e
 	c6x)
eb856e
 		basic_machine=tic6x-unknown
eb856e
 		;;
eb856e
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
eb856e
-		# Motorola 68HC11/12.
eb856e
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
eb856e
 		basic_machine=$basic_machine-unknown
eb856e
 		os=-none
eb856e
 		;;
eb856e
@@ -325,6 +338,21 @@
eb856e
 		basic_machine=mt-unknown
eb856e
 		;;
eb856e
 
eb856e
+	strongarm | thumb | xscale)
eb856e
+		basic_machine=arm-unknown
eb856e
+		;;
eb856e
+	xgate)
eb856e
+		basic_machine=$basic_machine-unknown
eb856e
+		os=-none
eb856e
+		;;
eb856e
+	xscaleeb)
eb856e
+		basic_machine=armeb-unknown
eb856e
+		;;
eb856e
+
eb856e
+	xscaleel)
eb856e
+		basic_machine=armel-unknown
eb856e
+		;;
eb856e
+
eb856e
 	# We use `pc' rather than `unknown'
eb856e
 	# because (1) that's what they normally are, and
eb856e
 	# (2) the word "unknown" tends to confuse beginning users.
eb856e
@@ -339,11 +367,13 @@
eb856e
 	# Recognize the basic CPU types with company name.
eb856e
 	580-* \
eb856e
 	| a29k-* \
eb856e
+	| aarch64-* | aarch64_be-* \
eb856e
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
eb856e
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
eb856e
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
eb856e
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
eb856e
 	| avr-* | avr32-* \
eb856e
+	| be32-* | be64-* \
eb856e
 	| bfin-* | bs2000-* \
eb856e
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
eb856e
 	| clipper-* | craynv-* | cydra-* \
eb856e
@@ -352,12 +382,15 @@
eb856e
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
eb856e
 	| h8300-* | h8500-* \
eb856e
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
eb856e
+	| hexagon-* \
eb856e
 	| i*86-* | i860-* | i960-* | ia64-* \
eb856e
 	| ip2k-* | iq2000-* \
eb856e
+	| le32-* | le64-* \
eb856e
 	| lm32-* \
eb856e
 	| m32c-* | m32r-* | m32rle-* \
eb856e
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
eb856e
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
eb856e
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
eb856e
+	| microblaze-* | microblazeel-* \
eb856e
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
eb856e
 	| mips16-* \
eb856e
 	| mips64-* | mips64el-* \
eb856e
@@ -382,24 +415,26 @@
eb856e
 	| nds32-* | nds32le-* | nds32be-* \
eb856e
 	| nios-* | nios2-* \
eb856e
 	| none-* | np1-* | ns16k-* | ns32k-* \
eb856e
+	| open8-* \
eb856e
 	| orion-* \
eb856e
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
eb856e
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
eb856e
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
eb856e
 	| pyramid-* \
eb856e
-	| romp-* | rs6000-* | rx-* \
eb856e
+	| rl78-* | romp-* | rs6000-* | rx-* \
eb856e
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
eb856e
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
eb856e
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
eb856e
 	| sparclite-* \
eb856e
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
eb856e
-	| tahoe-* | thumb-* \
eb856e
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
eb856e
+	| tahoe-* \
eb856e
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
eb856e
-	| tile-* | tilegx-* \
eb856e
+	| tile*-* \
eb856e
 	| tron-* \
eb856e
 	| ubicom32-* \
eb856e
-	| v850-* | v850e-* | vax-* \
eb856e
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
eb856e
+	| vax-* \
eb856e
 	| we32k-* \
eb856e
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
eb856e
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
eb856e
 	| xstormy16-* | xtensa*-* \
eb856e
 	| ymp-* \
eb856e
 	| z8k-* | z80-*)
eb856e
@@ -697,7 +732,6 @@
eb856e
 	i370-ibm* | ibm*)
eb856e
 		basic_machine=i370-ibm
eb856e
 		;;
eb856e
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
eb856e
 	i*86v32)
eb856e
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
eb856e
 		os=-sysv32
eb856e
@@ -755,9 +789,13 @@
eb856e
 		basic_machine=ns32k-utek
eb856e
 		os=-sysv
eb856e
 		;;
eb856e
-	microblaze)
eb856e
+	microblaze*)
eb856e
 		basic_machine=microblaze-xilinx
eb856e
 		;;
eb856e
+	mingw64)
eb856e
+		basic_machine=x86_64-pc
eb856e
+		os=-mingw64
eb856e
+		;;
eb856e
 	mingw32)
eb856e
 		basic_machine=i386-pc
eb856e
 		os=-mingw32
eb856e
@@ -794,10 +832,18 @@
eb856e
 	ms1-*)
eb856e
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
eb856e
 		;;
eb856e
+	msys)
eb856e
+		basic_machine=i386-pc
eb856e
+		os=-msys
eb856e
+		;;
eb856e
 	mvs)
eb856e
 		basic_machine=i370-ibm
eb856e
 		os=-mvs
eb856e
 		;;
eb856e
+	nacl)
eb856e
+		basic_machine=le32-unknown
eb856e
+		os=-nacl
eb856e
+		;;
eb856e
 	ncr3000)
eb856e
 		basic_machine=i486-ncr
eb856e
 		os=-sysv4
eb856e
@@ -950,9 +996,10 @@
eb856e
 		;;
eb856e
 	power)	basic_machine=power-ibm
eb856e
 		;;
eb856e
-	ppc)	basic_machine=powerpc-unknown
eb856e
+	ppc | ppcbe)	basic_machine=powerpc-unknown
eb856e
 		;;
eb856e
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
eb856e
+	ppc-* | ppcbe-*)
eb856e
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
eb856e
 		;;
eb856e
 	ppcle | powerpclittle | ppc-le | powerpc-little)
eb856e
 		basic_machine=powerpcle-unknown
eb856e
@@ -1046,6 +1093,9 @@
eb856e
 		basic_machine=i860-stratus
eb856e
 		os=-sysv4
eb856e
 		;;
eb856e
+	strongarm-* | thumb-*)
eb856e
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
eb856e
+		;;
eb856e
 	sun2)
eb856e
 		basic_machine=m68000-sun
eb856e
 		;;
eb856e
@@ -1102,13 +1152,8 @@
eb856e
 		basic_machine=t90-cray
eb856e
 		os=-unicos
eb856e
 		;;
eb856e
-	# This must be matched before tile*.
eb856e
-	tilegx*)
eb856e
-		basic_machine=tilegx-unknown
eb856e
-		os=-linux-gnu
eb856e
-		;;
eb856e
 	tile*)
eb856e
-		basic_machine=tile-unknown
eb856e
+		basic_machine=$basic_machine-unknown
eb856e
 		os=-linux-gnu
eb856e
 		;;
eb856e
 	tx39)
eb856e
@@ -1178,6 +1223,9 @@
eb856e
 	xps | xps100)
eb856e
 		basic_machine=xps100-honeywell
eb856e
 		;;
eb856e
+	xscale-* | xscalee[bl]-*)
eb856e
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
eb856e
+		;;
eb856e
 	ymp)
eb856e
 		basic_machine=ymp-cray
eb856e
 		os=-unicos
eb856e
@@ -1309,15 +1357,15 @@
eb856e
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
eb856e
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
eb856e
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
eb856e
-	      | -openbsd* | -solidbsd* \
eb856e
+	      | -bitrig* | -openbsd* | -solidbsd* \
eb856e
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
eb856e
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
eb856e
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
eb856e
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
eb856e
 	      | -chorusos* | -chorusrdb* | -cegcc* \
eb856e
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
eb856e
-	      | -mingw32* | -linux-gnu* | -linux-android* \
eb856e
-	      | -linux-newlib* | -linux-uclibc* \
eb856e
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
eb856e
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
eb856e
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
eb856e
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
eb856e
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
eb856e
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
eb856e
@@ -1500,6 +1548,9 @@
eb856e
 	c4x-* | tic4x-*)
eb856e
 		os=-coff
eb856e
 		;;
eb856e
+	hexagon-*)
eb856e
+		os=-elf
eb856e
+		;;
eb856e
 	tic54x-*)
eb856e
 		os=-coff
eb856e
 		;;
eb856e
@@ -1527,9 +1578,6 @@
eb856e
 		;;
eb856e
 	m68000-sun)
eb856e
 		os=-sunos3
eb856e
-		# This also exists in the configure program, but was not the
eb856e
-		# default.
eb856e
-		# os=-sunos4
eb856e
 		;;
eb856e
 	m68*-cisco)
eb856e
 		os=-aout