re PR middle-end/29947 (OpenMP parallel for fails for reversed loop range)
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 Dec 2006 10:26:00 +0000 (11:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Dec 2006 10:26:00 +0000 (11:26 +0100)
commit22568cc62cabbea1eec20ef65e1da9b0caaa6f02
treef94786a4fcf50b6049962a9a01cc79e07e724e65
parentd3c673c74acfcc0202b0013677ef280e76fffb72
re PR middle-end/29947 (OpenMP parallel for fails for reversed loop range)

PR libgomp/29947
* omp-low.c (expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): Do all arithmetics in signed rather than
unsigned type.

* loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
start if there shouldn't be any loop iterations.
(gomp_loop_ordered_static_start): Remove start == end test.
* testsuite/libgomp.c/pr29947-1.c: New test.
* testsuite/libgomp.c/pr29947-2.c: New test.

From-SVN: r119485
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/loop.c
libgomp/testsuite/libgomp.c/pr29947-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr29947-2.c [new file with mode: 0644]