aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-06-23 20:42:45 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-06-23 20:42:45 +0000
commit7c243eef3984dbd43b380a6cde2a1a03f381d50b (patch)
tree13b897bf5fc4c852bfc78e392f252406c5218f09 /gcc
parent33c94679bde917193e6af8644598cc85b3df1645 (diff)
downloadgcc-7c243eef3984dbd43b380a6cde2a1a03f381d50b.zip
gcc-7c243eef3984dbd43b380a6cde2a1a03f381d50b.tar.gz
gcc-7c243eef3984dbd43b380a6cde2a1a03f381d50b.tar.bz2
convert.c (strip_float_extension): Skip both NOP_EXPR and CONVERT_EXPR floating point extensions.
* convert.c (strip_float_extension): Skip both NOP_EXPR and CONVERT_EXPR floating point extensions. From-SVN: r83565
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/convert.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 320edb0..f946e55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-23 Roger Sayle <roger@eyesopen.com>
+
+ * convert.c (strip_float_extension): Skip both NOP_EXPR and
+ CONVERT_EXPR floating point extensions.
+
2004-06-23 Diego Novillo <dnovillo@redhat.com>
* Makefile.in (tree-vn.o): New.
diff --git a/gcc/convert.c b/gcc/convert.c
index ef0d1f5..5441bf1 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -99,7 +99,8 @@ strip_float_extensions (tree exp)
return build_real (type, real_value_truncate (TYPE_MODE (type), orig));
}
- if (TREE_CODE (exp) != NOP_EXPR)
+ if (TREE_CODE (exp) != NOP_EXPR
+ && TREE_CODE (exp) != CONVERT_EXPR)
return exp;
sub = TREE_OPERAND (exp, 0);