From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 45F073857BB2; Fri, 15 Jul 2022 08:05:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45F073857BB2 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106297] [12/13 Regression] stringop-overflow misbehaviour on atomic since r12-4725-g88b504b7a8c5affb Date: Fri, 15 Jul 2022 08:05:22 +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: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_status cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2022 08:05:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106297 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW CC| |marxin at gcc dot gnu.org Summary|stringop-overflow |[12/13 Regression] |misbehaviour on atomic |stringop-overflow | |misbehaviour on atomic | |since | |r12-4725-g88b504b7a8c5affb --- Comment #3 from Martin Li=C5=A1ka --- Started with r12-4725-g88b504b7a8c5affb. $ gcc haproxy.i -c -Wno-address-of-packed-member -O2 -Werror haproxy.i: In function =E2=80=98run_poll_loop=E2=80=99: haproxy.i:32760:11: error: =E2=80=98__atomic_load_8=E2=80=99 writing 8 byte= s into a region of size 0 overflows the destination [-Werror=3Dstringop-overflow=3D] 32760 | if ((__atomic_load_n(&ha_tgroup_ctx[i].stopping_threads, 0) & ha_tgroup_info[i].threads_enabled) !=3D | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ haproxy.i:11985:26: note: at offset 80 into destination object =E2=80=98ha_= tgroup_ctx=E2=80=99 of size 64 11985 | extern struct tgroup_ctx ha_tgroup_ctx[1]; | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors=