[Bug target/87391] [RISCV] -march=rv32i -mabi=ilp32e is erroneously accepted

wilson at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 25 00:03:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87391

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #2 from Jim Wilson <wilson at gcc dot gnu.org> ---
One can specify an architecture with FP registers, and an ABI that does not use
the FP registers.  By the same token, it is reasonable to expect that one
should be able to specify an rv32i architecture and use an rv32e ABI with it. 
In both cases, the unused registers all become call clobbered (aka caller
saved).

If we go with this interpretation, then the issue here is that we have some
architecture checks for TARGET_RVE that should instead be ABI checks for
riscv_abi == ABI_ILP32E.


More information about the Gcc-bugs mailing list