From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E4313857B82; Wed, 13 Mar 2024 14:01:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E4313857B82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710338518; bh=FhDw3Ud2a3k65JtYzHwP7qBYusK4cs1qpt2qhMs3ZxA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=snRM3Nk8a57wXlm9ovT7Ta16KtwXNa+VJYvZI1VSqgssUbkfARipOT5bd0D0mFTD0 pPhca3Z7G2s1NkcwVXA5iV3iAhAFuv3lawL4fo5TGcMyYTtN8fqXjXyyK3YsH7ALPc oZXTSXzraXre92pxTKwlEZNsTSaeA2huk++voYUg= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111523] Unexpected performance regression with -ftrivial-auto-var-init=zero for e.g. systemctl unmask Date: Wed, 13 Mar 2024 14:01:56 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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=3D111523 --- Comment #10 from qinzhao at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #9) > Anways systemd has now changed the buffer to 256 which is much much small= er > and for most calls enough in size before needing to reallocate the buffer > that it has now become fast. >=20 > Anyways -ftrivial-auto-var-init=3Dzero just exposed a performance (stack = size) > issue with already existing issue inside the systemd code. A good thing > really.=20 >=20 > So closing as moved. thanks a lot for the analysis and the solution of this performance issue. really appreciate.=