mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 15:57:47 +08:00
fold-const.c (fold, [...]): Always return tree of proper type.
* fold-const.c (fold, case CONVERT_EXPR): Always return tree of proper type. From-SVN: r37757
This commit is contained in:
parent
b21218ce2e
commit
72bd1f9e60
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2000-11-26 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
|
||||
|
@ -5103,7 +5103,7 @@ fold (expr)
|
||||
if (TYPE_MAIN_VARIANT (inside_type) == TYPE_MAIN_VARIANT (final_type)
|
||||
&& ((inter_int && final_int) || (inter_float && final_float))
|
||||
&& inter_prec >= final_prec)
|
||||
return TREE_OPERAND (TREE_OPERAND (t, 0), 0);
|
||||
return convert (final_type, TREE_OPERAND (TREE_OPERAND (t, 0), 0));
|
||||
|
||||
/* Likewise, if the intermediate and final types are either both
|
||||
float or both integer, we don't need the middle conversion if
|
||||
|
Loading…
Reference in New Issue
Block a user