You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arch: arm: Ignore Wattributes warning in direct ISR
GCC 11 and above may report the following warning for the functions
declared with the `interrupt` attribute when compiling FPU-enabled
ARM targets:
warning: FP registers might be clobbered despite 'interrupt'
attribute: compile with '-mgeneral-regs-only' [-Wattributes]
This commit disables the above warning because:
* For M-profile architectures (Cortex-M), this warning does not apply
because the caller saved registers, including the FPU registers, are
automatically saved upon exception entry and the callee saved
registers are saved by the called functions as per the AAPCS (for
more details, see the GitHub issue #49631).
* For A- and R-profile architectures (Cortex-A/Cortex-R), this warning
is not very helpful either because the Zephyr ARM arch implementation
strictly adheres to the AAPCS and, when applicable, only the caller
saved registers need be saved upon exception entry.
Signed-off-by: Stephanos Ioannidis <[email protected]>
0 commit comments