From edace3e2295db80d32b1a77676a3697c5029d71b Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 6 Jul 2018 03:14:47 +0000 Subject: [PATCH] RISC-V: Add support for riscv-*-*. * config.gcc (riscv*-*-*): When setting xlen, handle riscv-*. From-SVN: r262463 --- gcc/ChangeLog | 4 ++++ gcc/config.gcc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ede47261a8..22991846d52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-07-05 Jim Wilson + + * config.gcc (riscv*-*-*): When setting xlen, handle riscv-*. + 2018-07-05 Indu Bhagat * config/aarch64/aarch64-simd.md: correct flags text for diff --git a/gcc/config.gcc b/gcc/config.gcc index 63162aab676..78e84c2b864 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4091,7 +4091,7 @@ case "${target}" in supported_defaults="abi arch tune" case "${target}" in - riscv32*) xlen=32 ;; + riscv-* | riscv32*) xlen=32 ;; riscv64*) xlen=64 ;; *) echo "Unsupported RISC-V target ${target}" 1>&2; exit 1 ;; esac -- 2.30.2