From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 463 invoked by alias); 5 Feb 2013 13:41:30 -0000 Received: (qmail 31151 invoked by uid 55); 5 Feb 2013 13:40:37 -0000 From: "amodra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/51376] libgomp taskwait failure Date: Tue, 05 Feb 2013 13:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Keywords: openmp, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: amodra at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: amodra at gmail dot com X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg00395.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51376 --- Comment #6 from Alan Modra 2013-02-05 13:40:35 UTC --- Author: amodra Date: Tue Feb 5 13:40:25 2013 New Revision: 195756 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195756 Log: PR libgomp/51376 PR libgomp/56073 * task.c (GOMP_task): Revert 2011-12-09 change. (GOMP_taskwait): Likewise. Instead use atomic load with acquire barrier to read task->children.. (gomp_barrier_handle_tasks): ..and matching atomic store with release barrier here when setting parent->children to NULL. Modified: branches/gcc-4_7-branch/libgomp/ChangeLog branches/gcc-4_7-branch/libgomp/task.c