Recognize loongarch32, loongarch64, and loongarchx32

* config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*,
loongarchx32:Linux:*:*): Recognize.
* config.sub (loongarch32, loongarch64, loongarchx32): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add test cases for loongarch32,
loongarch64, and loongarchx32.
* testsuite/config-sub.data (loongarch32, loongarch64, loongarchx32):
Add test cases.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Xiaotian Wu 2020-12-03 14:18:08 +08:00 committed by Dmitry V. Levin
parent 05734c3b30
commit c8ddc8472f
6 changed files with 23 additions and 4 deletions

5
config.guess vendored
View File

@ -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 ;;

3
config.sub vendored
View File

@ -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 \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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