From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B4C03858C62; Mon, 20 May 2024 07:39:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B4C03858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716190775; bh=JSJLNNENj/eEVOR8tdlPii2TsUr53WBCrA6JaZBq6xU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JEBs6EKe8/c1Y1qciyLV8kpnnZQPJYEaXt8KxsEgNvCEn5HEwPZ1dd4tUq8V6/nyH RS1h+3t9tC0oujvH74pNC0rMCpfRYgVX6w4jt4EznP0Qv/Qm+k72qPsnU+XdOAJN4f PkNSbeRVc0J9EXvc+iPBhEppno+6gIom0S30Fcqw= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/115056] [14/15 regression] False positive -Wstringop-overflow and -Warray-bounds Date: Mon, 20 May 2024 07:39:33 +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: 14.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: blocked component keywords short_desc 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=3D115056 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |88443, 56456 Component|rtl-optimization |middle-end Keywords|wrong-code | Summary|[14/15 regression] |[14/15 regression] False |Miscompilation (also |positive |triggering |-Wstringop-overflow and |-Wstringop-overflow and |-Warray-bounds |-Warray-bounds warning) | |when -O2 or higher | --- Comment #11 from Sam James --- Coming back to this: have you actually seen unexpected results from runtime execution? (If so, please share what they were & what options you used to g= et them). The warning is a problem but it doesn't necessarily imply bad codegen. Some warnings have FPs based on the IR that gets generated. i.e. I think this is a FP warning bug instead. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56456 [Bug 56456] [meta-bug] bogus/missing -Warray-bounds https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D88443 [Bug 88443] [meta-bug] bogus/missing -Wstringop-overflow warnings=