re PR libgomp/35625 (schedule(guided) loops forever if ((end - start) % incr) != 0)
authorJakub Jelinek <jakub@redhat.com>
Tue, 18 Mar 2008 09:54:21 +0000 (10:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 18 Mar 2008 09:54:21 +0000 (10:54 +0100)
commit9e7759638ae59400bcd321db6404962c5f0ba29a
treed01dbe463d0b40bd2cac5bd2b07a86da47384d6c
parent483d8a4ab5b42d38d24deb698f7ac74780e953b6
re PR libgomp/35625 (schedule(guided) loops forever if ((end - start) % incr) != 0)

PR libgomp/35625
* iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
(gomp_iter_guided_next): Likewise.
* testsuite/libgomp.c/pr35625.c: New test.

From-SVN: r133306
libgomp/ChangeLog
libgomp/iter.c
libgomp/testsuite/libgomp.c/pr35625.c [new file with mode: 0644]