RISC-V: Add custom RTEMS multilibs
commit46765867363869803dbdf55b941703dccf8f5a16
authorsh <sh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jun 2018 05:19:44 +0000 (15 05:19 +0000)
committersh <sh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jun 2018 05:19:44 +0000 (15 05:19 +0000)
tree0f0f220f70d0ba1b58a42e2b841a35879be87184
parent81238e255d8923bf2de3cade770cdbb1fa41052f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261619 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config.gcc
gcc/config/riscv/t-rtems [new file with mode: 0644]