From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128594 invoked by alias); 20 Aug 2015 23:27:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 128536 invoked by uid 48); 20 Aug 2015 23:27:43 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63672] xbegin/xend/xabort missing memory barriers Date: Thu, 20 Aug 2015 23:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01458.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63672 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bergner at gcc dot gnu.org --- Comment #1 from Peter Bergner --- Andi, did this bug ever get fixed? I ask, since we're hitting a similar issue on POWER with our __builtin_tbegin() builtin. I know we need a minimum of a memory barrier on our HTM builtins, but I also wonder whether a full optimization barrier is needed to stop even non loads and stores from being moved outside of the transaction body. The following shows a test case that seems to need a full optimization barrier: https://www.sourceware.org/ml/libc-alpha/2015-08/msg00880.html