From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D5583858D37; Thu, 25 May 2023 05:30:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D5583858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684992634; bh=sCUVIkDp3BdNxFl5rZk1WKAFAUHXuk6ePUEb2Jo9lBc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WO06J0i6kued2OEhuXOLXXWRVb7Njx41cyNgqbd73j2/D6jvW5HUEvz6oSHsC2hpL myHyrUwYX8GPOP7CpB7MC7Yt+V0JkvlMYbYa/RXc5dFVV1J09BmXZPte/wp8WH0kE/ ThQyO9XochqBk8vSqqN1AgpFG92cnwQJH6KSvN7c= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109956] GCC reserves 9 bytes for struct s { int a; char b; char t[]; } x = {1, 2, 3}; Date: Thu, 25 May 2023 05:30:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: pinskia 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=3D109956 --- Comment #10 from Andrew Pinski --- (In reply to Alexander Monakov from comment #8) > I think the following testcase indicates that GCC assumes that tail paddi= ng > is accessible:=20 Well it aligned accesses are always accessable .... the alignment of `struct S` in this case is 4 byte aligned after all.=