From 9152ce40327b76aceb36954996a945bf5e9ae7d8 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sun, 11 Sep 2016 09:59:56 +1000 Subject: [PATCH] * config.guess (riscv32:Linux:*:*, riscv64:Linux:*:*): New. * testsuite/config-guess.data: Add riscv32, riscv64. Signed-off-by: Ben Elliston --- ChangeLog | 5 +++++ config.guess | 5 ++++- testsuite/config-guess.data | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d20b910..017727a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-09-11 David Abdurachmanov + + * config.guess (riscv32:Linux:*:*, riscv64:Linux:*:*): New. + * testsuite/config-guess.data: Add riscv32, riscv64. + 2016-09-05 Ed Schouten * config.sub (cloudabi*-eabi*): Recognise. diff --git a/config.guess b/config.guess index c4bd827..bf5ad89 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2016 Free Software Foundation, Inc. -timestamp='2016-05-15' +timestamp='2016-09-11' # 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 @@ -1032,6 +1032,9 @@ EOF ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; + riscv32:Linux:*:* | riscv64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data index 72471ba..ff0106a 100644 --- a/testsuite/config-guess.data +++ b/testsuite/config-guess.data @@ -66,6 +66,8 @@ PowerPC 4.2 LynxOS ignored ignored powerpc-unknown-lynxos4.2 ppc 2.6.9-22 Linux ignored ignored powerpc-unknown-linux-gnu ppc64 2.6.9-22 Linux ignored ignored powerpc64-unknown-linux-gnu ppc64le 3.1.0 Linux ignored ignored powerpc64le-unknown-linux-gnu +riscv32 ignored Linux ignored ignored riscv32-unknown-linux-gnu +riscv64 ignored Linux ignored ignored riscv64-unknown-linux-gnu s390x 5.6 SunOS ignored ignored s390x-ibm-solaris2.6 SX-7 1.0 SUPER-UX ignored ignored sx7-nec-superux1.0 SX-8 1.0 SUPER-UX ignored ignored sx8-nec-superux1.0