https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555
Bug ID: 111555
Summary: [AArch64] __ARM_FEATURE_UNALIGNED should be undefined
with -mstrict-align
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: lasse.collin at tukaani dot org
Target Milestone: ---
On 32-bit ARM, the macro __ARM_FEATURE_UNALIGNED is defined when using
-munaligned-access and not defined when using -mno-unaligned-access. On AArch64
the macro is always defined with both -mno-strict-align and -mstrict-align. I
think the macro shouldn't be defined with -mstrict-align on AArch64.
For comparison, with Clang on AArch64 the definition of __ARM_FEATURE_UNALIGNED
is omitted with -mstrict-align and -mno-unaligned-access.