* [PATCH] RISC-V: Add support for riscv-*-*.
@ 2018-07-06 3:16 Jim Wilson
0 siblings, 0 replies; only message in thread
From: Jim Wilson @ 2018-07-06 3:16 UTC (permalink / raw)
To: gcc-patches; +Cc: Jim Wilson
Support for riscv-* was added to config.sub upstream, so we need to handle it
in gcc configure. Just one place needs to be fixed for now to make this work.
Tested with riscv{32,64}-{elf,linux} and riscv-elf cross builds.
Committed.
Jim
gcc/
* config.gcc (riscv*-*-*): When setting xlen, handle riscv-*.
---
gcc/config.gcc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-06 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-06 3:16 [PATCH] RISC-V: Add support for riscv-*-* Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).