https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79912
--- Comment #18 from palmer at gcc dot gnu.org --- Author: palmer Date: Mon Mar 20 16:43:21 2017 New Revision: 246283 URL: https://gcc.gnu.org/viewcvs?rev=246283&root=gcc&view=rev Log: RISC-V: Don't prefer FP_REGS for integers On RISC-V we can't store integers in floating-point registers as this is forbidden by the ISA. We've always disallowed this, but we were setting the preferred mode to FP_REGS for some integer modes. This caused the LRA to blow up with some hard to read error messages. This patch removes the prefered mode hook, as the right thing to do here is nothing. Thanks to Kito for finding the bug, and mpf for the fix. See also <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79912>. PR target/79912 Modified: trunk/gcc/ChangeLog trunk/gcc/config/riscv/riscv.c