omp-low.c (expand_omp_for_generic): If iter_type has different precision than type...
authorSteve Ellcey <sje@cup.hp.com>
Mon, 3 Nov 2008 21:47:44 +0000 (21:47 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Nov 2008 21:47:44 +0000 (22:47 +0100)
commitc6ff44935c8293728f660033a1d648caf9cd3770
tree1d03e93415ed3811152d3b5d8fc4317b7d1913cc
parentf9bd1a89667c1e7a88ad4c92f25535c6e9540a6c
omp-low.c (expand_omp_for_generic): If iter_type has different precision than type and type is a pointer type...

* omp-low.c (expand_omp_for_generic): If iter_type has different
precision than type and type is a pointer type, cast n1 and n2
first to an integer type with the same precision as pointers
and only afterwards to iter_type.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r141563
gcc/ChangeLog
gcc/omp-low.c