diff mbox

[RFA] Update config.sub to 2012-04-18 version.

Message ID 1334881642-24530-1-git-send-email-brobecker@adacore.com
State New
Headers show

Commit Message

Joel Brobecker April 20, 2012, 12:27 a.m. UTC
Hello everyone,

I wasn't sure if I needed approval for this patch or not, but better
be safe than sorry. I'll apply to both GCC and then src when I receive
confirmation that it's OK to apply.

I would like to update the config.sub script to the latest version
from the official config repo.  The bits that I need are just the
ones related to LynxOS, but I figured it'd be better be consistent
with the official version.  I can change the patch to just commit
the one hunk for LynxOS, if people prefer.  But I think we'd become
inconsistent.

ChangeLog:

        * config.sub: Update to 2012-04-18 version from official repo.

OK to apply?

---
 config.sub |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

Comments

Paolo Bonzini April 20, 2012, 10:03 a.m. UTC | #1
Il 20/04/2012 02:27, Joel Brobecker ha scritto:
> Hello everyone,
> 
> I wasn't sure if I needed approval for this patch or not, but better
> be safe than sorry. I'll apply to both GCC and then src when I receive
> confirmation that it's OK to apply.
> 
> I would like to update the config.sub script to the latest version
> from the official config repo.  The bits that I need are just the
> ones related to LynxOS, but I figured it'd be better be consistent
> with the official version.  I can change the patch to just commit
> the one hunk for LynxOS, if people prefer.  But I think we'd become
> inconsistent.
> 
> ChangeLog:
> 
>         * config.sub: Update to 2012-04-18 version from official repo.
> 
> OK to apply?
> 
> ---
>  config.sub |   42 +++++++++++++++++++++++++++---------------
>  1 files changed, 27 insertions(+), 15 deletions(-)
> 
> diff --git a/config.sub b/config.sub
> index 78176a4..59bb593 100755
> --- a/config.sub
> +++ b/config.sub
> @@ -2,9 +2,9 @@
>  # Configuration validation subroutine script.
>  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
>  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
> -#   2011 Free Software Foundation, Inc.
> +#   2011, 2012 Free Software Foundation, Inc.
>  
> -timestamp='2011-10-29'
> +timestamp='2012-04-18'
>  
>  # This file is (in principle) common to ALL GNU software.
>  # The presence of a machine in this file suggests that SOME GNU software
> @@ -21,9 +21,7 @@ timestamp='2011-10-29'
>  # GNU General Public License for more details.
>  #
>  # You should have received a copy of the GNU General Public License
> -# along with this program; if not, write to the Free Software
> -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
> -# 02110-1301, USA.
> +# along with this program; if not, see <http://www.gnu.org/licenses/>.
>  #
>  # As a special exception to the GNU General Public License, if you
>  # distribute this file as part of a program that contains a
> @@ -76,8 +74,8 @@ version="\
>  GNU config.sub ($timestamp)
>  
>  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
> -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
> -Software Foundation, Inc.
> +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
> +Free Software Foundation, Inc.
>  
>  This is free software; see the source for copying conditions.  There is NO
>  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
> @@ -132,6 +130,10 @@ case $maybe_os in
>      os=-$maybe_os
>      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
>      ;;
> +  android-linux)
> +    os=-linux-android
> +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
> +    ;;
>    *)
>      basic_machine=`echo $1 | sed 's/-[^-]*$//'`
>      if [ $basic_machine != $1 ]
> @@ -223,6 +225,12 @@ case $os in
>  	-isc*)
>  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
>  		;;
> +	-lynx*178)
> +		os=-lynxos178
> +		;;
> +	-lynx*5)
> +		os=-lynxos5
> +		;;
>  	-lynx*)
>  		os=-lynxos
>  		;;
> @@ -247,6 +255,7 @@ case $basic_machine in
>  	# Some are omitted here because they have special meanings below.
>  	1750a | 580 \
>  	| a29k \
> +	| aarch64 | aarch64_be \
>  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
>  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
>  	| am33_2.0 \
> @@ -319,8 +328,7 @@ case $basic_machine in
>  	c6x)
>  		basic_machine=tic6x-unknown
>  		;;
> -	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
> -		# Motorola 68HC11/12.
> +	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
>  		basic_machine=$basic_machine-unknown
>  		os=-none
>  		;;
> @@ -333,7 +341,10 @@ case $basic_machine in
>  	strongarm | thumb | xscale)
>  		basic_machine=arm-unknown
>  		;;
> -
> +	xgate)
> +		basic_machine=$basic_machine-unknown
> +		os=-none
> +		;;
>  	xscaleeb)
>  		basic_machine=armeb-unknown
>  		;;
> @@ -356,6 +367,7 @@ case $basic_machine in
>  	# Recognize the basic CPU types with company name.
>  	580-* \
>  	| a29k-* \
> +	| aarch64-* | aarch64_be-* \
>  	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
>  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
>  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
> @@ -719,7 +731,6 @@ case $basic_machine in
>  	i370-ibm* | ibm*)
>  		basic_machine=i370-ibm
>  		;;
> -# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
>  	i*86v32)
>  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
>  		os=-sysv32
> @@ -816,6 +827,10 @@ case $basic_machine in
>  	ms1-*)
>  		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
>  		;;
> +	msys)
> +		basic_machine=i386-pc
> +		os=-msys
> +		;;
>  	mvs)
>  		basic_machine=i370-ibm
>  		os=-mvs
> @@ -1343,7 +1358,7 @@ case $os in
>  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
>  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
>  	      | -chorusos* | -chorusrdb* | -cegcc* \
> -	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
> +	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
>  	      | -mingw32* | -linux-gnu* | -linux-android* \
>  	      | -linux-newlib* | -linux-uclibc* \
>  	      | -uxpv* | -beos* | -mpeix* | -udk* \
> @@ -1555,9 +1570,6 @@ case $basic_machine in
>  		;;
>  	m68000-sun)
>  		os=-sunos3
> -		# This also exists in the configure program, but was not the
> -		# default.
> -		# os=-sunos4
>  		;;
>  	m68*-cisco)
>  		os=-aout

ACK

Paolo
Richard Earnshaw April 20, 2012, 1:21 p.m. UTC | #2
On 20/04/12 01:27, Joel Brobecker wrote:
> Hello everyone,
> 
> I wasn't sure if I needed approval for this patch or not, but better
> be safe than sorry. I'll apply to both GCC and then src when I receive
> confirmation that it's OK to apply.
> 
> I would like to update the config.sub script to the latest version
> from the official config repo.  The bits that I need are just the
> ones related to LynxOS, but I figured it'd be better be consistent
> with the official version.  I can change the patch to just commit
> the one hunk for LynxOS, if people prefer.  But I think we'd become
> inconsistent.
> 
> ChangeLog:
> 
>         * config.sub: Update to 2012-04-18 version from official repo.
> 
> OK to apply?

This is OK from a GCC perspective.  If you don't receive objections from
the binutils/gdb folks in the next 24 I suggest you go ahead and check
it in.

R.

> 
> ---
>  config.sub |   42 +++++++++++++++++++++++++++---------------
>  1 files changed, 27 insertions(+), 15 deletions(-)
> 
> diff --git a/config.sub b/config.sub
> index 78176a4..59bb593 100755
> --- a/config.sub
> +++ b/config.sub
> @@ -2,9 +2,9 @@
>  # Configuration validation subroutine script.
>  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
>  #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
> -#   2011 Free Software Foundation, Inc.
> +#   2011, 2012 Free Software Foundation, Inc.
>  
> -timestamp='2011-10-29'
> +timestamp='2012-04-18'
>  
>  # This file is (in principle) common to ALL GNU software.
>  # The presence of a machine in this file suggests that SOME GNU software
> @@ -21,9 +21,7 @@ timestamp='2011-10-29'
>  # GNU General Public License for more details.
>  #
>  # You should have received a copy of the GNU General Public License
> -# along with this program; if not, write to the Free Software
> -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
> -# 02110-1301, USA.
> +# along with this program; if not, see <http://www.gnu.org/licenses/>.
>  #
>  # As a special exception to the GNU General Public License, if you
>  # distribute this file as part of a program that contains a
> @@ -76,8 +74,8 @@ version="\
>  GNU config.sub ($timestamp)
>  
>  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
> -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
> -Software Foundation, Inc.
> +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
> +Free Software Foundation, Inc.
>  
>  This is free software; see the source for copying conditions.  There is NO
>  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
> @@ -132,6 +130,10 @@ case $maybe_os in
>      os=-$maybe_os
>      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
>      ;;
> +  android-linux)
> +    os=-linux-android
> +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
> +    ;;
>    *)
>      basic_machine=`echo $1 | sed 's/-[^-]*$//'`
>      if [ $basic_machine != $1 ]
> @@ -223,6 +225,12 @@ case $os in
>  	-isc*)
>  		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
>  		;;
> +	-lynx*178)
> +		os=-lynxos178
> +		;;
> +	-lynx*5)
> +		os=-lynxos5
> +		;;
>  	-lynx*)
>  		os=-lynxos
>  		;;
> @@ -247,6 +255,7 @@ case $basic_machine in
>  	# Some are omitted here because they have special meanings below.
>  	1750a | 580 \
>  	| a29k \
> +	| aarch64 | aarch64_be \
>  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
>  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
>  	| am33_2.0 \
> @@ -319,8 +328,7 @@ case $basic_machine in
>  	c6x)
>  		basic_machine=tic6x-unknown
>  		;;
> -	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
> -		# Motorola 68HC11/12.
> +	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
>  		basic_machine=$basic_machine-unknown
>  		os=-none
>  		;;
> @@ -333,7 +341,10 @@ case $basic_machine in
>  	strongarm | thumb | xscale)
>  		basic_machine=arm-unknown
>  		;;
> -
> +	xgate)
> +		basic_machine=$basic_machine-unknown
> +		os=-none
> +		;;
>  	xscaleeb)
>  		basic_machine=armeb-unknown
>  		;;
> @@ -356,6 +367,7 @@ case $basic_machine in
>  	# Recognize the basic CPU types with company name.
>  	580-* \
>  	| a29k-* \
> +	| aarch64-* | aarch64_be-* \
>  	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
>  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
>  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
> @@ -719,7 +731,6 @@ case $basic_machine in
>  	i370-ibm* | ibm*)
>  		basic_machine=i370-ibm
>  		;;
> -# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
>  	i*86v32)
>  		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
>  		os=-sysv32
> @@ -816,6 +827,10 @@ case $basic_machine in
>  	ms1-*)
>  		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
>  		;;
> +	msys)
> +		basic_machine=i386-pc
> +		os=-msys
> +		;;
>  	mvs)
>  		basic_machine=i370-ibm
>  		os=-mvs
> @@ -1343,7 +1358,7 @@ case $os in
>  	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
>  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
>  	      | -chorusos* | -chorusrdb* | -cegcc* \
> -	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
> +	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
>  	      | -mingw32* | -linux-gnu* | -linux-android* \
>  	      | -linux-newlib* | -linux-uclibc* \
>  	      | -uxpv* | -beos* | -mpeix* | -udk* \
> @@ -1555,9 +1570,6 @@ case $basic_machine in
>  		;;
>  	m68000-sun)
>  		os=-sunos3
> -		# This also exists in the configure program, but was not the
> -		# default.
> -		# os=-sunos4
>  		;;
>  	m68*-cisco)
>  		os=-aout
Joel Brobecker April 25, 2012, 3:53 p.m. UTC | #3
> ChangeLog:
> 
>         * config.sub: Update to 2012-04-18 version from official repo.

Thanks to everyone who answered. This patch is no in, both GCC & src.
diff mbox

Patch

diff --git a/config.sub b/config.sub
index 78176a4..59bb593 100755
--- a/config.sub
+++ b/config.sub
@@ -2,9 +2,9 @@ 
 # Configuration validation subroutine script.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011 Free Software Foundation, Inc.
+#   2011, 2012 Free Software Foundation, Inc.
 
-timestamp='2011-10-29'
+timestamp='2012-04-18'
 
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
@@ -21,9 +21,7 @@  timestamp='2011-10-29'
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
 #
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
@@ -76,8 +74,8 @@  version="\
 GNU config.sub ($timestamp)
 
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
-Software Foundation, Inc.
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -132,6 +130,10 @@  case $maybe_os in
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;
+  android-linux)
+    os=-linux-android
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+    ;;
   *)
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
     if [ $basic_machine != $1 ]
@@ -223,6 +225,12 @@  case $os in
 	-isc*)
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 		;;
+	-lynx*178)
+		os=-lynxos178
+		;;
+	-lynx*5)
+		os=-lynxos5
+		;;
 	-lynx*)
 		os=-lynxos
 		;;
@@ -247,6 +255,7 @@  case $basic_machine in
 	# Some are omitted here because they have special meanings below.
 	1750a | 580 \
 	| a29k \
+	| aarch64 | aarch64_be \
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 	| am33_2.0 \
@@ -319,8 +328,7 @@  case $basic_machine in
 	c6x)
 		basic_machine=tic6x-unknown
 		;;
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
-		# Motorola 68HC11/12.
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
 		basic_machine=$basic_machine-unknown
 		os=-none
 		;;
@@ -333,7 +341,10 @@  case $basic_machine in
 	strongarm | thumb | xscale)
 		basic_machine=arm-unknown
 		;;
-
+	xgate)
+		basic_machine=$basic_machine-unknown
+		os=-none
+		;;
 	xscaleeb)
 		basic_machine=armeb-unknown
 		;;
@@ -356,6 +367,7 @@  case $basic_machine in
 	# Recognize the basic CPU types with company name.
 	580-* \
 	| a29k-* \
+	| aarch64-* | aarch64_be-* \
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
@@ -719,7 +731,6 @@  case $basic_machine in
 	i370-ibm* | ibm*)
 		basic_machine=i370-ibm
 		;;
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
 	i*86v32)
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
 		os=-sysv32
@@ -816,6 +827,10 @@  case $basic_machine in
 	ms1-*)
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 		;;
+	msys)
+		basic_machine=i386-pc
+		os=-msys
+		;;
 	mvs)
 		basic_machine=i370-ibm
 		os=-mvs
@@ -1343,7 +1358,7 @@  case $os in
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 	      | -chorusos* | -chorusrdb* | -cegcc* \
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 	      | -mingw32* | -linux-gnu* | -linux-android* \
 	      | -linux-newlib* | -linux-uclibc* \
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
@@ -1555,9 +1570,6 @@  case $basic_machine in
 		;;
 	m68000-sun)
 		os=-sunos3
-		# This also exists in the configure program, but was not the
-		# default.
-		# os=-sunos4
 		;;
 	m68*-cisco)
 		os=-aout