]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
authorRichard Sandiford <rsandifo@nildram.co.uk>
Sat, 5 Jan 2008 16:57:00 +0000 (16:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 5 Jan 2008 16:57:00 +0000 (16:57 +0000)
gcc/
* c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

From-SVN: r131340

gcc/ChangeLog
gcc/c-omp.c

index 570f269b625703047694e1129263430470cc129c..633c096e34377e110dbbdb5df94ef5c626dc130c 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 526b1f8424bf726b6538e16aa302abe81fd0f2d2..f170fbe73e6e38307ce7b44d0b0b9f8383299979 100644 (file)
@@ -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);