Recognize arc32

This is the 32-bit variant of ARCv3 ISA (which is not compatible with the
32-bit ARCv2 ISA)

| make check
| cd testsuite && bash config-guess.sh && rm uname
| PASS: config.guess checks (136 tests)
| cd testsuite && bash config-sub.sh
| PASS: config.sub checks (864 tests)
| PASS: config.sub idempotency checks (801 tests)
| PASS: config.sub canonicalise each config.guess testcase (136 tests)

* config.guess (arc32:Linux:*:*): Recognize.
* config.sub (arc32): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add a test case for arc32.
* testsuite/config-sub.data (arc32, arc*-elf): Add test cases.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Vineet Gupta 2021-06-03 21:01:25 -07:00 committed by Dmitry V. Levin
parent d921e50274
commit 45e181800a
6 changed files with 10 additions and 6 deletions

4
config.guess vendored
View File

@ -4,7 +4,7 @@
# shellcheck disable=SC2006,SC2268 # see below for rationale # shellcheck disable=SC2006,SC2268 # see below for rationale
timestamp='2021-05-24' timestamp='2021-06-03'
# This file is free software; you can redistribute it and/or modify it # 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 # under the terms of the GNU General Public License as published by
@ -987,7 +987,7 @@ EOF
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;; ;;
arc:Linux:*:* | arceb:Linux:*:* | arc64:Linux:*:*) arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;; ;;
arm*:Linux:*:*) arm*:Linux:*:*)

4
config.sub vendored
View File

@ -2,7 +2,7 @@
# Configuration validation subroutine script. # Configuration validation subroutine script.
# Copyright 1992-2021 Free Software Foundation, Inc. # Copyright 1992-2021 Free Software Foundation, Inc.
timestamp='2021-04-30' timestamp='2021-06-03'
# This file is free software; you can redistribute it and/or modify it # 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 # under the terms of the GNU General Public License as published by
@ -1165,7 +1165,7 @@ case $cpu-$vendor in
| alphapca5[67] | alpha64pca5[67] \ | alphapca5[67] | alpha64pca5[67] \
| am33_2.0 \ | am33_2.0 \
| amdgcn \ | amdgcn \
| arc | arceb | arc64 \ | arc | arceb | arc32 | arc64 \
| arm | arm[lb]e | arme[lb] | armv* \ | arm | arm[lb]e | arme[lb] | armv* \
| avr | avr32 \ | avr | avr32 \
| asmjs \ | asmjs \

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH CONFIG.GUESS "1" "May 2021" "GNU config.guess (2021-05-24)" "User Commands" .TH CONFIG.GUESS "1" "June 2021" "GNU config.guess (2021-06-03)" "User Commands"
.SH NAME .SH NAME
config.guess \- guess the build system triplet config.guess \- guess the build system triplet
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH CONFIG.SUB "1" "April 2021" "GNU config.sub (2021-04-30)" "User Commands" .TH CONFIG.SUB "1" "June 2021" "GNU config.sub (2021-06-03)" "User Commands"
.SH NAME .SH NAME
config.sub \- validate and canonicalize a configuration triplet config.sub \- validate and canonicalize a configuration triplet
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -34,6 +34,7 @@ amd64 | 7.0_BETA | NetBSD | ignored | x86_64 | x86_64-unknown-netbsd7.0
amd64 | 7.0_RC1 | NetBSD | ignored | x86_64 | x86_64-unknown-netbsd7.0 amd64 | 7.0_RC1 | NetBSD | ignored | x86_64 | x86_64-unknown-netbsd7.0
amd64 | 7.2.1 | Isilon OneFS | ignored | ignored | x86_64-unknown-onefs amd64 | 7.2.1 | Isilon OneFS | ignored | ignored | x86_64-unknown-onefs
arc | ignored | Linux | ignored | ignored | arc-unknown-linux-gnu arc | ignored | Linux | ignored | ignored | arc-unknown-linux-gnu
arc32 | ignored | Linux | ignored | ignored | arc32-unknown-linux-gnu
arc64 | ignored | Linux | ignored | ignored | arc64-unknown-linux-gnu arc64 | ignored | Linux | ignored | ignored | arc64-unknown-linux-gnu
arceb | ignored | Linux | ignored | ignored | arceb-unknown-linux-gnu arceb | ignored | Linux | ignored | ignored | arceb-unknown-linux-gnu
arm | 12.0 | FreeBSD | ignored | armv6 | armv6-unknown-freebsd12.0-gnueabihf arm | 12.0 | FreeBSD | ignored | armv6 | armv6-unknown-freebsd12.0-gnueabihf

View File

@ -61,6 +61,9 @@ apollo68bsd m68k-apollo-bsd
arc arc-unknown-none arc arc-unknown-none
arc-elf arc-unknown-elf arc-elf arc-unknown-elf
arc-linux arc-unknown-linux-gnu arc-linux arc-unknown-linux-gnu
arc32 arc32-unknown-none
arc32-elf arc32-unknown-elf
arc32-linux arc32-unknown-linux-gnu
arc64 arc64-unknown-none arc64 arc64-unknown-none
arc64-elf arc64-unknown-elf arc64-elf arc64-unknown-elf
arc64-linux arc64-unknown-linux-gnu arc64-linux arc64-unknown-linux-gnu