https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115263
Bug ID: 115263
Summary: ARM general-regs-only attribute does not exist?
Product: gcc
Version: 14.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at hazardy dot de
Target Milestone: ---
When I add the interrupt attribute to a function I get the warning:
"warning: FP registers might be clobbered despite 'interrupt' attribute:
compile with '-mgeneral-regs-only' [-Wattributes]
The documentation states that there is a general-regs-only attribute, but that
does not compile, converting it to general_regs_only doesn't help. Using
target("general-regs-only") may or may not work, but does not silence the
warning.
See https://gcc.godbolt.org/z/7Kf3zobWz