summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-omp.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 570f269b625..633c096e343 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
+ * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
+
+2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
+
* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
2008-01-05 Jakub Jelinek <jakub@redhat.com>
diff --git a/gcc/c-omp.c b/gcc/c-omp.c
index 526b1f8424b..f170fbe73e6 100644
--- a/gcc/c-omp.c
+++ b/gcc/c-omp.c
@@ -172,6 +172,7 @@ check_omp_for_incr_expr (tree exp, tree decl)
switch (TREE_CODE (exp))
{
case NOP_EXPR:
+ case CONVERT_EXPR:
t = check_omp_for_incr_expr (TREE_OPERAND (exp, 0), decl);
if (t != error_mark_node)
return fold_convert (TREE_TYPE (exp), t);
OpenPOWER on IntegriCloud