re PR middle-end/89002 (ICE in scan_omp_1_op, at omp-low.c:3166)
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Jan 2019 22:34:32 +0000 (23:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Jan 2019 22:34:32 +0000 (23:34 +0100)
commit52bfbb69e7e888d8692597e649e9cedc7436083c
tree597e518b85e9597fc31a0ee247b3ee49b7c876d0
parentbe3a87e7b5ff3d284a7663519826f2613dc46f69
re PR middle-end/89002 (ICE in scan_omp_1_op, at omp-low.c:3166)

PR middle-end/89002
* gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
for lastprivate/linear IV, push gimplify context around gimplify_assign
and, if it needed any temporaries, pop it into a gimple bind around the
sequence.

* testsuite/libgomp.c/pr89002.c: New test.

From-SVN: r268346
libgomp/testsuite/libgomp.c/pr89002.c