aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-omp.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2008-01-05 16:57:00 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2008-01-05 16:57:00 +0000
commit1a8a3a5ef49f58552a6af57caf22dc6ce5fbde32 (patch)
tree422bceaaca4fa0cce8013a1f70c23aad97e4fd15 /gcc/c-omp.c
parent2a4430a6f9c0339813e1ba3031e9d86257361ac9 (diff)
downloadgcc-1a8a3a5ef49f58552a6af57caf22dc6ce5fbde32.zip
gcc-1a8a3a5ef49f58552a6af57caf22dc6ce5fbde32.tar.gz
gcc-1a8a3a5ef49f58552a6af57caf22dc6ce5fbde32.tar.bz2
c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
gcc/ * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR. From-SVN: r131340
Diffstat (limited to 'gcc/c-omp.c')
-rw-r--r--gcc/c-omp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-omp.c b/gcc/c-omp.c
index 526b1f8..f170fbe 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);