aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-12-06 09:12:50 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-12-06 09:12:50 +0000
commit4564b2d2c65d09c392132e72c54355e294dd3575 (patch)
treee8a439a3e554623ff355b83d18f8a6c4bf072a2b /gcc/fold-const.c
parent1b004b58183dc0a606e5436d68562295cf3f0263 (diff)
downloadgcc-4564b2d2c65d09c392132e72c54355e294dd3575.zip
gcc-4564b2d2c65d09c392132e72c54355e294dd3575.tar.gz
gcc-4564b2d2c65d09c392132e72c54355e294dd3575.tar.bz2
fold-const.c (fold_convert): Do not build and fold CONVERT_EXPR, but always use NOP_EXPR.
2005-12-06 Richard Guenther <rguenther@suse.de> * fold-const.c (fold_convert): Do not build and fold CONVERT_EXPR, but always use NOP_EXPR. From-SVN: r108107
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index dfac2ed..fcb7add 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -2017,8 +2017,7 @@ fold_convert (tree type, tree arg)
return fold_build1 (FLOAT_EXPR, type, arg);
case REAL_TYPE:
- return fold_build1 (flag_float_store ? CONVERT_EXPR : NOP_EXPR,
- type, arg);
+ return fold_build1 (NOP_EXPR, type, arg);
case COMPLEX_TYPE:
tem = fold_build1 (REALPART_EXPR, TREE_TYPE (orig), arg);
@@ -2070,7 +2069,7 @@ fold_convert (tree type, tree arg)
return fold_build1 (VIEW_CONVERT_EXPR, type, arg);
case VOID_TYPE:
- return fold_build1 (CONVERT_EXPR, type, fold_ignored_result (arg));
+ return fold_build1 (NOP_EXPR, type, fold_ignored_result (arg));
default:
gcc_unreachable ();