From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32414 invoked by alias); 10 Jul 2009 10:43:50 -0000 Received: (qmail 32283 invoked by uid 48); 10 Jul 2009 10:43:34 -0000 Date: Fri, 10 Jul 2009 10:43:00 -0000 Message-ID: <20090710104334.32282.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgomp/40494] omp for loop with guided schedule fails to terminate in certain cases In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2009-07/txt/msg00858.txt.bz2 ------- Comment #1 from jakub at gcc dot gnu dot org 2009-07-10 10:43 ------- Sorry, can't reproduce this. extern void abort (void); int main (void) { int x, y = 0; #pragma omp parallel for schedule(guided) reduction(+:y) for (x = 3; x < 478; x += 2) y++; if (y != 238) abort (); return 0; } works just fine with current 4.4 or trunk, both x86_64-linux -m32 and -m64, OMP_NUM_THREADS={1,2,4,8,16,32,64}. Are you sure you were not testing everything against gcc 4.2 libgomp.so? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40494