[clang] [clang][ARM] Fix warning for VFP function calls from interrupts. (PR #91870)

David Spickett via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 12 01:34:42 PDT 2024


================
@@ -336,9 +336,10 @@ 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<
+   "calling a VFP-enabled function from an interrupt could clobber the "
----------------
DavidSpickett wrote:

Unless "VFP-enabled" is some Arm defined, specific spelling, I would write it as "VFP enabled" without the "-".

https://github.com/llvm/llvm-project/pull/91870


More information about the cfe-commits mailing list