diff options
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 2ae0218..0224339 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2040,7 +2040,7 @@ riscv*-*-linux*) # automatically detect that GAS supports it, yet we require it. gcc_cv_initfini_array=yes ;; -riscv*-*-elf*) +riscv*-*-elf* | riscv*-*-rtems*) tm_file="elfos.h newlib-stdint.h ${tm_file} riscv/elf.h" case "x${enable_multilib}" in xno) ;; @@ -2053,6 +2053,11 @@ riscv*-*-elf*) # Force .init_array support. The configure script cannot always # automatically detect that GAS supports it, yet we require it. gcc_cv_initfini_array=yes + case ${target} in + riscv*-*-rtems*) + tm_file="${tm_file} rtems.h riscv/rtems.h" + ;; + esac ;; mips*-*-netbsd*) # NetBSD/mips, either endian. target_cpu_default="MASK_ABICALLS" |