From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1C2C3858D28; Wed, 25 Jan 2023 21:43:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1C2C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674682980; bh=y7it2k64M4ci4jvSZPhdHODlHDJtob4InytBU2tQqos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ufCUrsdBQsCb1cxr/V9qO1HyN6N0Hde3JRq2PHsPBJcA5Ldkw5IIuJmWBQ+WNt6n6 FxgNJK4xc4+evGUPtxUb200WuHRRMAHCsCmk5mdMqz4p8/H8byEEbXrmj11+ApPjVp 3UVxCxps6/g5sQJGRLnGY+gy8PlvxgZ3Tcd2VsME= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107952] tree-object-size: inconsistent size for flexible arrays nested in structs Date: Wed, 25 Jan 2023 21:43:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: siddhesh 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=3D107952 --- Comment #17 from qinzhao at gcc dot gnu.org --- (In reply to Siddhesh Poyarekar from comment #16) > > We might add a new utility routine to determine whether a ref to a stru= ct or > > union have flexible array? >=20 > It will be useful for __bos/__bdos for sure. Yes, this new utility routine can be added and used by tree-object-size, th= en we can fix the PR 101832 separately. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101832=