From 0b87eff52480d8fea4628b95df61998ef0dab95c Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 May 2004 15:20:24 +0000 Subject: [PATCH] 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 * 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 --- gcc/ChangeLog | 5 +++++ gcc/convert.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 448626015a7..f657b17152e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-13 Andrew Pinski + + * 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 * gcc.c (default_compilers): Fill out initializers for new Fortran diff --git a/gcc/convert.c b/gcc/convert.c index 5f5d50e0f3b..ef0d1f568cf 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -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); -- 2.30.2