c-omp.c
13.7 KB
-
re PR c/39495 (OMP parallel loop w/ unsigned index var rejected) · ea1199ee
PR c/39495 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s minimum or maximum value. * parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL. (cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond. * gcc.dg/gomp/pr39495-1.c: New test. * gcc.dg/gomp/pr39495-2.c: New test. * g++.dg/gomp/pr39495-1.C: New test. * g++.dg/gomp/pr39495-2.C: New test. From-SVN: r144965
Jakub Jelinek committed