This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor bugfix in fold-const.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Minor bugfix in fold-const.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sun, 26 Nov 00 10:23:14 EST
Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* fold-const.c (fold, case CONVERT_EXPR): Always return tree of
proper type.
*** fold-const.c 2000/11/24 17:45:04 1.141
--- fold-const.c 2000/11/26 15:02:31
*************** fold (expr)
*** 5104,5108 ****
&& ((inter_int && final_int) || (inter_float && final_float))
&& inter_prec >= final_prec)
! return TREE_OPERAND (TREE_OPERAND (t, 0), 0);
/* Likewise, if the intermediate and final types are either both
--- 5104,5108 ----
&& ((inter_int && final_int) || (inter_float && final_float))
&& inter_prec >= final_prec)
! return convert (final_type, TREE_OPERAND (TREE_OPERAND (t, 0), 0));
/* Likewise, if the intermediate and final types are either both