From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 113B13858404; Thu, 30 Mar 2023 22:04:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 113B13858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680213881; bh=wbu3xPBYj9GlY4tU3vCTlfpQWDFKnQiCjnKcrKE5ftA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JVXpBsS5n8m6E/RPErYaX7fr5ia06b2BlA5vcxs0IZd1pwx3N6d19blvY5scky1cf E1hBJ5LO4n+jLsee+ODmcOSSnIOC+gojixQ1ApH07WknDqk570htIvZutFlH08adu9 C7B0BcqFWKrsgs+V/D/itn1Cd+lhnC86sCNEe01g= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109334] tree-object-size: Improve size computation in arguments Date: Thu, 30 Mar 2023 22:04:40 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de 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: attachments.created 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=3D109334 --- Comment #1 from Martin Uecker --- Created attachment 54796 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54796&action=3Dedit partial fix Simply removing the condition based on internal_p would make it work for the most important cases as in the attached patch. The check for constant sizes already prevents the original ICE.=