[clang] [clang][ARM] Fix warning for using VFP from interrupts. (PR #91870)
David Spickett via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 26 05:10:34 PDT 2024
================
@@ -336,9 +336,12 @@ def warn_anyx86_excessive_regsave : Warning<
" with attribute 'no_caller_saved_registers'"
" or be compiled with '-mgeneral-regs-only'">,
InGroup<DiagGroup<"excessive-regsave">>;
-def warn_arm_interrupt_calling_convention : Warning<
- "call to function without interrupt attribute could clobber interruptee's VFP registers">,
- InGroup<Extra>;
+def warn_arm_interrupt_vfp_clobber : Warning<
+ "interrupt service routine with vfp enabled may clobber the "
+ "interruptee's vfp state">,
+ InGroup<DiagGroup<"arm-interrupt-vfp-clobber">>;
+def err_arm_interrupt_called : Error<
+ "interrupt service routine cannot be called directly">;
----------------
DavidSpickett wrote:
I don't see a test case for this error.
https://github.com/llvm/llvm-project/pull/91870
More information about the cfe-commits
mailing list