From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 119F13858C36; Tue, 27 Feb 2024 07:26:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 119F13858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709018785; bh=btEK3/jmLJfigth79HcXqhUniFxYTDwAtMMsi/M+xzo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LCJctKWc1eEiblr/uYp6BuFj0xjuXafCvrRDwBzXbTQFzdcIoK3G6FDDLr9c+CESU rh2HJ1zFH95Yu17qYMS+RFVZpoii7CCk807rUorI1x/NgmHpyvWEpdfXy1Yrwfq9vn pDjtBAxtpGyryo1XPZH97+i86vooC/jJeEt8vIH8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100799] Stackoverflow in optimized code on PPC Date: Tue, 27 Feb 2024 07:26:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jskumari 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=3D100799 --- Comment #30 from Jakub Jelinek --- Either tree parmdef =3D ssa_default_def (cfun, parm) is NULL, or has_zero_u= ses (parmdef). Not sure if has_zero_uses will work properly after some bbs are converted f= rom GIMPLE to RTL, but maybe it will, I think the expansion generally doesn't gsi_remove statements it expands nor calls update_stmt on them. One could always also just compute in generic code at the start of expansion the numb= er of unused DECL_HIDDEN_STRING_LENGTH PARM_DECLs at the end of the argument l= ist, save that as a flag in struct function or where and let the backends use it from there.=