From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 33FBD3858D39; Wed, 8 Feb 2023 08:43:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33FBD3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675845839; bh=vCwCJ1Wbgggp+WkazsxRA9XmYyZTZTNzXg9owBd0JqA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RUdgMF8tP7z2spKwCQvQGlj+iijMj3El7Ygekd5DB2f99/p9JZZlfdy6BK0lOlwNa lXkNA7F5bxPRZlTkMgr+0pAfl5QLE02+fAV3XxMk6JSaiDZ6jAodlpltDWMk0zG+Rg urgpF4P8wA/KVDar8r4CG5I8MWQgL9yAdzysPvn0= From: "klaus.doldinger64 at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108712] Missing optimization with memory-barrier Date: Wed, 08 Feb 2023 08:43: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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: klaus.doldinger64 at googlemail dot com 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: 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=3D108712 --- Comment #1 from Wilhelm M --- And using __asm__ __volatile__ ("" : : : "memory");=20 there is no optimization at all.=