diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-05 06:17:22 +0000 |
---|---|---|
committer | Sebastian Huber <sh@gcc.gnu.org> | 2018-01-05 06:17:22 +0000 |
commit | 64b371b1b5a681e58c22c6decb1884e0811d6014 (patch) | |
tree | c9100e453f83ba4a923ad19a80a52fe91f75c26d /gcc/config.gcc | |
parent | e170de7c7f8f9ccfd26907e5c4c5730f623647e5 (diff) | |
download | gcc-64b371b1b5a681e58c22c6decb1884e0811d6014.zip gcc-64b371b1b5a681e58c22c6decb1884e0811d6014.tar.gz gcc-64b371b1b5a681e58c22c6decb1884e0811d6014.tar.bz2 |
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
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 16 |
1 files changed, 12 insertions, 4 deletions
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" ;; |