Recognize riscv32be and riscv64be

Recently RISC-V community got patches big-endian support for binutils,
and we'd like to accept that, however before accepting that I think it
would be better to upstream config.sub and config.guess change here :)

It's my check result on Ubuntu 18.04:

 $ make check
 cd testsuite && bash config-guess.sh && rm uname
 PASS: config.guess checks (131 tests)
 cd testsuite && bash config-sub.sh
 PASS: config.sub checks (830 tests)
 PASS: config.sub idempotency checks (767 tests)
 PASS: config.sub canonicalise each config.guess testcase (131 tests)

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

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Kito Cheng
2020-12-31 15:27:52 +08:00
committed by Dmitry V. Levin
parent c8ddc8472f
commit 8e0c6ffd5c
6 changed files with 19 additions and 6 deletions

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-12-22)" "User Commands"
.TH CONFIG.GUESS "1" "December 2020" "GNU config.guess (2020-12-31)" "User Commands"
.SH NAME
config.guess \- guess the build system triplet
.SH SYNOPSIS