diff --git a/config.guess b/config.guess index 699b3a1..7f74817 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2020 Free Software Foundation, Inc. -timestamp='2020-11-19' +timestamp='2020-12-22' # 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 @@ -996,6 +996,9 @@ EOF k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; diff --git a/config.sub b/config.sub index 19c9553..90bb8ae 100755 --- a/config.sub +++ b/config.sub @@ -2,7 +2,7 @@ # Configuration validation subroutine script. # Copyright 1992-2020 Free Software Foundation, Inc. -timestamp='2020-12-02' +timestamp='2020-12-22' # 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 @@ -1185,6 +1185,7 @@ case $cpu-$vendor in | k1om \ | le32 | le64 \ | lm32 \ + | loongarch32 | loongarch64 | loongarchx32 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ diff --git a/doc/config.guess.1 b/doc/config.guess.1 index 3047b23..cefa32b 100644 --- a/doc/config.guess.1 +++ b/doc/config.guess.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH CONFIG.GUESS "1" "December 2020" "GNU config.guess (2020-11-19)" "User Commands" +.TH CONFIG.GUESS "1" "December 2020" "GNU config.guess (2020-12-22)" "User Commands" .SH NAME config.guess \- guess the build system triplet .SH SYNOPSIS diff --git a/doc/config.sub.1 b/doc/config.sub.1 index 42218aa..6727b93 100644 --- a/doc/config.sub.1 +++ b/doc/config.sub.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH CONFIG.SUB "1" "November 2020" "GNU config.sub (2020-11-19)" "User Commands" +.TH CONFIG.SUB "1" "December 2020" "GNU config.sub (2020-12-22)" "User Commands" .SH NAME config.sub \- validate and canonicalize a configuration triplet .SH SYNOPSIS diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data index b720f76..7ea8766 100644 --- a/testsuite/config-guess.data +++ b/testsuite/config-guess.data @@ -83,6 +83,9 @@ i86pc | 5.6 | SunOS | ignored | ignored | i386-pc-solaris2.6 i86xen | 5.0 | AuroraUX | ignored | ignored | i386-pc-auroraux5.0 i86xen | 5.6 | SunOS | ignored | ignored | i386-pc-solaris2.6 k1om | 2.6.38 | Linux | ignored | ignored | k1om-unknown-linux-gnu +loongarch32 | ignored | Linux | ignored | ignored | loongarch32-unknown-linux-gnu +loongarch64 | ignored | Linux | ignored | ignored | loongarch64-unknown-linux-gnu +loongarchx32 | ignored | Linux | ignored | ignored | loongarchx32-unknown-linux-gnu m88k | 7.0 | CX/UX | ignored | ignored | m88k-harris-cxux7 macppc | 1.0 | MirBSD | ignored | ignored | powerpc-unknown-mirbsd1.0 mips | 1.0 | OSF1 | ignored | ignored | mips-dec-osf1 diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index de870d5..5dd9b8e 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -319,6 +319,18 @@ leon3-elf sparc-leon3-elf leon3-vxworks sparc-leon3-vxworks lm32 lm32-unknown-none lm32-elf lm32-unknown-elf +loongarch32 loongarch32-unknown-none +loongarch32-elf loongarch32-unknown-elf +loongarch32-linux loongarch32-unknown-linux-gnu +loongarch32-loongson-elf loongarch32-loongson-elf +loongarch64 loongarch64-unknown-none +loongarch64-elf loongarch64-unknown-elf +loongarch64-linux loongarch64-unknown-linux-gnu +loongarch64-loongson-elf loongarch64-loongson-elf +loongarchx32 loongarchx32-unknown-none +loongarchx32-elf loongarchx32-unknown-elf +loongarchx32-linux loongarchx32-unknown-linux-gnu +loongarchx32-loongson-elf loongarchx32-loongson-elf m3230 mips-mips-sysv m32c m32c-unknown-none m32c-elf m32c-unknown-elf