From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F3C938493C0; Wed, 7 Dec 2022 11:25:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F3C938493C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670412354; bh=QqVrGOBrE4E6ZhcjrQiu+hTWuc4oeaDHLkRY/Jnp0pw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sCWwJoYOxfq2TchilVNAKpplipcgiT9RAaYzs459jJJ3x30XNVrWdTZp+IEce7nOZ NfZyFdDno0ncNnEMY5I5/pRm+L9EsXi0nltmZTl/hnXluBT+tPpsN+4xLCsOpMXYNQ CGnJP5fl0gV9sTaawQMU2BwXC0x5nWJN7LJArDmE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104475] [12/13 Regression] Wstringop-overflow + atomics incorrect warning on dynamic object Date: Wed, 07 Dec 2022 11:25:51 +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: 12.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_file_loc 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=3D104475 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://gcc.gnu.org/piperma | |il/gcc-patches/2022-Decembe | |r/608077.html --- Comment #24 from Richard Biener --- Here's a patch doing that (ADDR_NONZERO) which fixes the issue.=