diff options
author | Ruslan Bukin <br@bsdpad.com> | 2018-04-06 13:04:17 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2018-04-06 13:04:17 -0700 |
commit | 4d47fe5a8f4a7d0275237c2fb45bad8f654467eb (patch) | |
tree | db60ed882482561a3235bdd6e0e2e761dc6531cb /gcc/config.gcc | |
parent | e889aa0a96c39b567b8d216d7ae73cd684c52b47 (diff) | |
download | gcc-4d47fe5a8f4a7d0275237c2fb45bad8f654467eb.zip gcc-4d47fe5a8f4a7d0275237c2fb45bad8f654467eb.tar.gz gcc-4d47fe5a8f4a7d0275237c2fb45bad8f654467eb.tar.bz2 |
RISC-V: Support for FreeBSD.
gcc/
* config.gcc (riscv*-*-freebsd*): Add RISC-V FreeBSD support.
* config/riscv/freebsd.h: New.
libgcc/
* config.host (riscv*-*-freebsd*): Add RISC-V FreeBSD support.
From-SVN: r259190
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 75d0ae8..ae19655 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2089,6 +2089,15 @@ riscv*-*-elf* | riscv*-*-rtems*) ;; esac ;; +riscv*-*-freebsd*) + tm_file="${tm_file} elfos.h ${fbsd_tm_file} riscv/freebsd.h" + tmake_file="${tmake_file} riscv/t-riscv" + gnu_ld=yes + gas=yes + # Force .init_array support. The configure script cannot always + # automatically detect that GAS supports it, yet we require it. + gcc_cv_initfini_array=yes + ;; mips*-*-netbsd*) # NetBSD/mips, either endian. target_cpu_default="MASK_ABICALLS" tm_file="elfos.h ${tm_file} mips/elf.h ${nbsd_tm_file} mips/netbsd.h" |