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
This commit is contained in:
parent
2a4430a6f9
commit
1a8a3a5ef4
2 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue