RISC-V: Add custom RTEMS multilibs
commita8ef8061e1ccbacff39065df65b5c17fbd01805a
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 15 Jun 2018 05:19:44 +0000 (15 05:19 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Fri, 15 Jun 2018 05:19:44 +0000 (15 05:19 +0000)
tree0f0f220f70d0ba1b58a42e2b841a35879be87184
parentcb4f9a8c05fd36d78faaddb4635b4bfb80bba457
RISC-V: Add custom RTEMS multilibs

Add multilib variants for -march=rv64imafd, e.g. to support the BOOMv2 core.

Add -mcmodel=medany as a variant of the 64-bit multilibs for RTEMS.  The
rationale for this change is that several existing RISC-V chips map the
RAM at 0x80000000.  In RTEMS, we do not use virtual memory, so
applications will run at this location which is outside the +-2GiB range
in a 64-bit configuration.

gcc/
* config.gcc (riscv*-*-elf* | riscv*-*-rtems*): Use custom
multilibs for *-*-rtems*.
* config/riscv/t-rtems: New file.

From-SVN: r261619
gcc/ChangeLog
gcc/config.gcc
gcc/config/riscv/t-rtems [new file with mode: 0644]