RISC-V: Fix gas configure support for riscv*-*-*.

Message ID 20180727213853.10538-1-jimw@sifive.com
State New
Headers show
Series
  • RISC-V: Fix gas configure support for riscv*-*-*.
Related show

Commit Message

Jim Wilson July 27, 2018, 9:38 p.m.
This fixes an oversight with the earlier attempt to add riscv* as an alias for
riscv32*.  I only did a build test, and gas builds but doesn't work, so I
missed the fact I needed a gas configure change.

This was tested with a riscv-elf build and make check.  The results are
comparable to riscv32-elf.

Committed.

Jim

	gas/
	* configure.tgt (riscv*): Accept as alias for riscv32*.
---
 gas/configure.tgt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Patch

diff --git a/gas/configure.tgt b/gas/configure.tgt
index 3d0415c1aa..6df7dea31f 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -89,8 +89,8 @@  case ${cpu} in
   pj*)			cpu_type=pj endian=big ;;
   powerpc*le*)		cpu_type=ppc endian=little ;;
   powerpc*)		cpu_type=ppc endian=big ;;
-  riscv32*)		cpu_type=riscv endian=little arch=riscv32 ;;
   riscv64*)		cpu_type=riscv endian=little arch=riscv64 ;;
+  riscv32* | riscv*)	cpu_type=riscv endian=little arch=riscv32 ;;
   rs6000*)		cpu_type=ppc ;;
   rl78*)		cpu_type=rl78 ;;
   rx)			cpu_type=rx ;;