From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A7823858C52; Thu, 21 Dec 2023 12:50:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A7823858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703163029; bh=7MXjf0E6tpJSvA61dVW2HTpdosmx6ZwTuDGptV6r8a8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S9o9lL68wnTPO9kPHu7ciC4TddC+56pJAUCuB41ee0Xlz5bG+fOvETEi/c/G9MSDj fiXYidHCd4ezdvk4UvOFn6+/wH/nixwatmkCVlvjgT6r8U6bxLvL7S1k7303UbQZ6k J4HCVaXhIiiKFi0tA0/YZoUW9VoDXJgA5fc9OXmA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113106] Missing CSE with cast to volatile Date: Thu, 21 Dec 2023 12:50:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: cc 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=3D113106 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- The situation with address-spaces isn't valid as we need to preserve the se= cond load because it's volatile. I think we simply refuse to combine volatile loads out of caution in the first case.=