From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F9B5385840A; Tue, 16 Jul 2024 11:18:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F9B5385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1721128683; bh=P2q4kdL7yL9XqB+e5N2RPCLUkK+oECKmhP1esZdat48=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rL0q+nXCsvOyvoQ5EmLe4tPYDBLPfPJQGvONsveny+Bjqf/CuHfQLGh8gf/AmkSqt cUm6GJHc5NJQt4VZnYlE4+qDIICKOo4FXvraT8bBAHLRWrSWypWhA5oPrV7hQ4jBgm IHYvr5OYMH/H2eV5bRRqm0NYz/CRRc7JUVHwh9rs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/115954] Alignment of _Atomic structs incompatible between GCC and LLVM Date: Tue, 16 Jul 2024 11:18:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.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: Message-ID: In-Reply-To: References: 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=3D115954 --- Comment #2 from Richard Biener --- (In reply to Richard Biener from comment #1) > Not sure what the x86 psABI says here (possibly nothing for aggregate > _Atomic). It doesn't consider _Atomic [influencing the ABI] at all. Note I think your test queries actual object alignment which a compiler can of course increase vs. what the ABI requires as minimum alignment, you should possibly cross-check with alignof/sizeof of the type. On x86 clang returns size 8 and align 8 for the atomic A7 type (GCC does no= t).=