From 5948bb17e17b6215a8d594c809d2474875a8ebd8 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 28 Aug 2018 09:46:35 +1000 Subject: [PATCH] * config.sub: Remove redundant patterns from second `case $basic_machine in`. The second case only needs to handle patterns of the form *-*. We can drop some patterns without a change in functionality. Signed-off-by: Ben Elliston --- ChangeLog | 7 +++++++ config.sub | 23 ++++------------------- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e91ede..5ce84c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-08-28 John Ericson + + * config.sub: Remove redundant patterns from second `case + $basic_machine in`. The second case only needs to handle patterns + of the form *-*. We can drop some patterns without a change in + functionality. + 2018-08-28 John Ericson * config.sub: Remove duplicates in the huge `case basic_machine diff --git a/config.sub b/config.sub index 8c655e9..197a719 100755 --- a/config.sub +++ b/config.sub @@ -1072,29 +1072,18 @@ case $basic_machine in amd64-*) basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; - cr16) - basic_machine=cr16-unknown - os=${os:-elf} - ;; cr16-*) os=${os:-elf} ;; - crisv32 | crisv32-* | etraxfs*) + crisv32-* | etraxfs*-*) basic_machine=crisv32-axis ;; - cris | cris-* | etrax*) + cris-* | etrax*-*) basic_machine=cris-axis ;; crx-*) os=${os:-elf} ;; - crx) - basic_machine=crx-unknown - os=${os:-elf} - ;; - m9s12z | m68hcs12z | hcs12z | s12z) - basic_machine=s12z-unknown - ;; m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; @@ -1113,19 +1102,15 @@ case $basic_machine in nsx-tandem) basic_machine=nsx-tandem ;; - s390 | s390-*) + s390-*) basic_machine=s390-ibm ;; - s390x | s390x-*) + s390x-*) basic_machine=s390x-ibm ;; tile*-*) os=${os:-linux-gnu} ;; - tile*) - basic_machine=$basic_machine-unknown - os=${os:-linux-gnu} - ;; # Recognize the cannonical CPU types that are allowed with any # company name.