From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4D693858C56; Thu, 13 Oct 2022 15:55:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4D693858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665676545; bh=smxA7Hbsu1fgNxUJ36diQF28jHWi+LAFV/xWgwh5rvc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dUI+Gfn+IXclcPKoMV8j5h7QDajfeqhlNxxeg+K5Pec+WFtUXMpw3td9TbS52wZuC 6MdTrV1yRnCiBA8XtJXdiQfyyPt6p5ldcSW/7djUyeZJRwZmEFz37DDw/25KHGRk+k 97VRdJucMf7pPXcbqJGWL8cq3AjHXUKBDP0GoJjQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107252] False positive stringop-overflow, warning disappears if I remove unrelated code! Date: Thu, 13 Oct 2022 15:55:45 +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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: keywords component 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=3D107252 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Component|c++ |tree-optimization --- Comment #1 from Andrew Pinski --- I suspect inlining heuristics kick in differently when you remove unused co= de.=