aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog5
-rw-r--r--gcc/c/c-parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index f1b1a49..b2035df 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
+ throughout.
+
2013-11-15 Aldy Hernandez <aldyh@redhat.com>
* c-parser.c (c_parser_cilk_simd): New.
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)
{