OSDN Git Service

* convert.c (strip_float_extension): Skip both NOP_EXPR and
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 2004 20:42:45 +0000 (20:42 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 2004 20:42:45 +0000 (20:42 +0000)
CONVERT_EXPR floating point extensions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83565 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/convert.c

index 320edb0..f946e55 100644 (file)
@@ -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.
index ef0d1f5..5441bf1 100644 (file)
@@ -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);