Commit 0b87eff5 by Andrew Pinski Committed by Andrew Pinski

convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a need to…

convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a need to generate code instead of a NOP_EXPR.

2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
        need to generate code instead of a NOP_EXPR.

From-SVN: r81787
parent 4b351c6e
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
need to generate code instead of a NOP_EXPR.
2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
* gcc.c (default_compilers): Fill out initializers for new Fortran
......
......@@ -665,7 +665,7 @@ convert_to_integer (tree type, tree expr)
break;
}
return build1 (NOP_EXPR, type, expr);
return build1 (CONVERT_EXPR, type, expr);
case REAL_TYPE:
return build1 (FIX_TRUNC_EXPR, type, expr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment