re PR middle-end/85594 (ICE during expand when compiling with -fwrapv -fopenmp)
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Dec 2018 19:17:13 +0000 (20:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Dec 2018 19:17:13 +0000 (20:17 +0100)
commitd1ffbd43e88b74563d8bdeb15451f9f0d96a328c
treee92f7fc2d860387d7fdd0add4dd5282e0ffe9e5f
parentffdcdc0b5a529a830cbde79e921960b27d69652e
re PR middle-end/85594 (ICE during expand when compiling with -fwrapv -fopenmp)

PR middle-end/85594
PR middle-end/88553
* omp-expand.c (extract_omp_for_update_vars): Regimplify the condition
if needed.
(expand_omp_for_generic): Don't clobber t temporary for ordered loops.

* gcc.dg/gomp/pr85594.c: New test.
* gcc.dg/gomp/pr88553.c: New test.

From-SVN: r267339
gcc/ChangeLog
gcc/omp-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr85594.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr88553.c [new file with mode: 0644]