From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 139593858D39; Thu, 19 Jan 2023 15:37:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 139593858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674142620; bh=1emRjshOoLbWHeAv1QGvBq28kkOiZq7/tfvauZ+wDEw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D8XOp3J3nLK+Hy6sDvoN+80xJJoe7lE3kdTK/LTn3idWai90FtKr4c9J4qVqoTtqt gtCx2wscvO62xkMzGN1ibltgJ00A7aG9CKAqQmFrI25/RmzdNULmfqI5/atA2YOhi2 YwpMa5NpH6XDLfV5iP8JBuEpVMQTdLvWujqoVMVE= From: "gavin at yzena dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy Date: Thu, 19 Jan 2023 15:36:59 +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: 11.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gavin at yzena dot com 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: --- 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=3D108448 --- Comment #9 from Gavin Howard --- > I suspect cmake didn't add -fno-strict-aliasing really. It did. I ran the build under `intercept-build` and looked at the `compile_commands.json` output. It had the `-fno-strict-aliasing` for every file. Anyway, I do not like your solution since it has a `void**`, the legality of which is dubious, but I tried it in `amal.c`, both with and without strict aliasing. (And I know it had `-fno-strict-aliasing` because I did the command-line by hand.) Both times still resulted in the failure. I even tried changing the `val_pt= r` argument to be a `y_uchar*`, since that aliases everything, and it still failed, with and without strict aliasing.=