From 7c243eef3984dbd43b380a6cde2a1a03f381d50b Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Wed, 23 Jun 2004 20:42:45 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/convert.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 320edb0020e..f946e555d2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-23 Roger Sayle + + * convert.c (strip_float_extension): Skip both NOP_EXPR and + CONVERT_EXPR floating point extensions. + 2004-06-23 Diego Novillo * Makefile.in (tree-vn.o): New. diff --git a/gcc/convert.c b/gcc/convert.c index ef0d1f568cf..5441bf173f4 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); -- 2.30.2