From 64b371b1b5a681e58c22c6decb1884e0811d6014 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 5 Jan 2018 06:17:22 +0000 Subject: RTEMS/EPIPHANY: Add RTEMS support gcc/ * config.gcc (epiphany-*-elf*): Add (epiphany-*-rtems*) configuration. * config/epiphany/rtems.h: New file. libgcc/ * config.host (epiphany-*-elf*): Add (epiphany-*-rtems*) configuration. From-SVN: r256273 --- gcc/config.gcc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index f19a469..4ef52ce 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1269,11 +1269,19 @@ crisv32-*-linux* | cris-*-linux*) ;; esac ;; -epiphany-*-elf ) - tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" - tmake_file="epiphany/t-epiphany" +epiphany-*-elf | epiphany-*-rtems*) + tm_file="${tm_file} dbxelf.h elfos.h" + tmake_file="${tmake_file} epiphany/t-epiphany" + case ${target} in + epiphany-*-rtems*) + tm_file="${tm_file} rtems.h epiphany/rtems.h newlib-stdint.h" + ;; + *) + tm_file="${tm_file} newlib-stdint.h" + ;; + esac extra_options="${extra_options} fused-madd.opt" - extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o" + extra_objs="${extra_objs} mode-switch-use.o resolve-sw-modes.o" tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}" extra_headers="epiphany_intrinsics.h" ;; -- cgit v1.1