[binutils-gdb/binutils-2_31-branch] RISC-V: Add riscv-*-* configure support, and minor cleanup.

Jim Wilson wilson@sourceware.org
Fri Jul 6 20:48:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55926930771225bdc7184573adcca8ae93a5136b

commit 55926930771225bdc7184573adcca8ae93a5136b
Author: Jim Wilson <jimw@sifive.com>
Date:   Thu Jul 5 17:49:11 2018 -0700

    RISC-V: Add riscv-*-* configure support, and minor cleanup.
    
    	bfd/
    	* config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
    	(riscv64*-*-*): Likewise.
    	(riscv-*-*): Add as an alias for riscv32*-*-*.
    
    	ld/
    	* configure.tgt (riscv-*-*): Add as an alias for riscv32*-*-*.
    
    (cherry picked from commit bb11866d6a635fadb9285d18e2fb819d2de2c28c)

Diff:
---
 bfd/ChangeLog    | 6 ++++++
 bfd/config.bfd   | 4 ++--
 ld/ChangeLog     | 4 ++++
 ld/configure.tgt | 3 ++-
 4 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a463352..96ddeb3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-05  Jim Wilson  <jimw@sifive.com>
+
+	* config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
+	(riscv64*-*-*): Likewise.
+	(riscv-*-*): Add as an alias for riscv32*-*-*.
+
 2018-07-05  Alan Modra  <amodra@gmail.com>
 
 	* elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index f8ca72b..6391f35 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1174,12 +1174,12 @@ case "${targ}" in
     ;;
 
 #ifdef BFD64
-  riscv32-*-*)
+  riscv-*-* | riscv32*-*-*)
     targ_defvec=riscv_elf32_vec
     targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
     want64=true
     ;;
-  riscv64-*-*)
+  riscv64*-*-*)
     targ_defvec=riscv_elf64_vec
     targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
     want64=true
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b00d4dc..0825f12 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-05  Jim Wilson  <jimw@sifive.com>
+
+	* configure.tgt (riscv-*-*): Add as an alias for riscv32*-*-*.
+
 2018-07-05  Alan Modra  <amodra@gmail.com>
 
 	* testsuite/ld-powerpc/attr-gnu-4-12.d: Update expected output.
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 3386c3d..fad8b2e 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -632,7 +632,8 @@ pru*-*-*)		targ_emul=pruelf ;;
 riscv32*-*-linux*)	targ_emul=elf32lriscv
 			targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64"
 			targ_extra_libpath=$targ_extra_emuls ;;
-riscv32*-*-*)		targ_emul=elf32lriscv
+riscv-*-* | riscv32*-*-*)
+			targ_emul=elf32lriscv
 			targ_extra_emuls="elf64lriscv"
 			targ_extra_libpath=$targ_extra_emuls ;;
 riscv64*-*-linux*)	targ_emul=elf64lriscv



More information about the Binutils-cvs mailing list