https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119644
--- Comment #3 from Geoff Wozniak <gcc-bugzilla at geoff dot wozniak.ca> --- > This should be an error while expanding into RTL and it is the backend > responsibility for that. Sorry. Wasn't exactly sure where to put it. > So don't use -mgeneral-regs-only if you need to use FP at all. This came up because of code to write wrapper functions for interrupts on Armv7-A since the compiler doesn't preserve FP registers for them. I agree that this should error out.