From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CF0253875429; Tue, 14 May 2024 13:47:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF0253875429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715694476; bh=rtAI1DODWDJ2F5mmJOmJUs+5nnz+ijz8MX6QCHMQ6RM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gsKcfR2IcOSNQZDscyzMk+26ig+Zl0mffBSi7erU0uQtKSvzdHRoYjO31h64+mW8s /FLF2R396Fd3orDwXoxVcL1aKyfdV2cMsbJiVkWLMeJpzkBBX8skrtBixTFJ7K8BCT n6i2zyJSTMvU0r7Mo2X2jwj7f/JZE6X572x8Bfg4= From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109442] Dead local copy of std::vector not removed from function Date: Tue, 14 May 2024 13:47:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: REOPENED 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=3D109442 --- Comment #21 from Jan Hubicka --- This patch attempts to add __builtin_operator_new/delete. So far they are not optimized, which will need to be done by extra flag of BUILT_IN_ code. also the decl.cc code can be refactored to be less of cut&paste and I guess has_builtin hack to return proper value needs to be moved to C++ FE. However the immediate problem I run into is that libstdc++ testuiste fails due to lack of std::nothrow overrides. I wonder how to get that working?=