From 06892ee476a830b8a06a340859ecc5d0d8e5fc07 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 19 Nov 2007 02:36:36 +0000 Subject: [PATCH] 2007-11-19 Marc Gauthier * config.guess (xtensa*:Linux:*:*): Accept variants. * config.sub (xtensa*): Accept variants. * testsuite/config-sub.data: Add test case. --- ChangeLog | 6 ++++++ config.guess | 6 +++--- config.sub | 8 ++++++-- testsuite/config-sub.data | 1 + 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2bba73e..9717da8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-19 Marc Gauthier + + * config.guess (xtensa*:Linux:*:*): Accept variants. + * config.sub (xtensa*): Accept variants. + * testsuite/config-sub.data: Add test case. + 2007-07-25 Mike Frysinger * testsuite/config-guess.sh (run_config_guess): Do not prefix with diff --git a/config.guess b/config.guess index 278f9e9..7fef1a3 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. -timestamp='2007-07-22' +timestamp='2007-11-19' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -954,8 +954,8 @@ EOF x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; - xtensa:Linux:*:*) - echo xtensa-unknown-linux-gnu + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so diff --git a/config.sub b/config.sub index 1761d8b..5190461 100755 --- a/config.sub +++ b/config.sub @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. -timestamp='2007-06-28' +timestamp='2007-11-19' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -369,10 +369,14 @@ case $basic_machine in | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ - | xstormy16-* | xtensa-* \ + | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-*) ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index 0f2272a..2a5e1f1 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -109,6 +109,7 @@ fido-elf fido-unknown-elf fido fido-unknown-none xtensa-elf xtensa-unknown-elf xtensa-linux xtensa-unknown-linux-gnu +xtensa_dc232b-linux xtensa_dc232b-unknown-linux-gnu i386-drops1.0 i386-pc-drops1.0 mep mep-unknown-elf mep-elf mep-unknown-elf