From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 980133858C66; Sat, 23 Sep 2023 17:42:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 980133858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695490931; bh=m9Jb7hE9ZaLZzNPmm6IxE+cbpYwIrymQKg6Q/uTZruo=; h=From:To:Subject:Date:From; b=DChNW+rNWOjq0ivJVRKeWyr4P71Cx83wT2zwWmxxifAYaWEZIByNzGHi67h2YAAjL LHacsFqkAsO6TuV/AQn1H+PEbA0/gAMoGKNI1rzA5B85JZPul6joo6TAmzOi5b6YBw YPgfY5vfzSz4T++qrX2ug/04L8SdUqjElhQbtLTc= From: "lasse.collin at tukaani dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111555] New: [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align Date: Sat, 23 Sep 2023 17:42:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lasse.collin at tukaani dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111555 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 AAr= ch64 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_UNALI= GNED is omitted with -mstrict-align and -mno-unaligned-access.=