diff options
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 6f03402..58b2ffc 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -9736,7 +9736,7 @@ c_parser_omp_clause_collapse (c_parser *parser, tree list) mark_exp_read (num); num = c_fully_fold (num, false, NULL); if (!INTEGRAL_TYPE_P (TREE_TYPE (num)) - || !host_integerp (num, 0) + || !tree_fits_shwi_p (num) || (n = tree_low_cst (num, 0)) <= 0 || (int) n != n) { |