Commit 30355eaa by Richard Henderson Committed by Richard Henderson

fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than the types themselves to discover type...

        * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
        the types themselves to discover type equivalence.

From-SVN: r37354
parent 5fcee6f3
2000-11-09 Richard Henderson <rth@redhat.com>
* fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
the types themselves to discover type equivalence.
2000-11-09 Mike Stump <mrs@wrs.com> 2000-11-09 Mike Stump <mrs@wrs.com>
* Makefile.in (distclean): Remove a few extra leftovers. * Makefile.in (distclean): Remove a few extra leftovers.
......
...@@ -5099,7 +5099,7 @@ fold (expr) ...@@ -5099,7 +5099,7 @@ fold (expr)
handled below, if we are converting something to its own handled below, if we are converting something to its own
type via an object of identical or wider precision, neither type via an object of identical or wider precision, neither
conversion is needed. */ conversion is needed. */
if (inside_type == final_type if (TYPE_MAIN_VARIANT (inside_type) == TYPE_MAIN_VARIANT (final_type)
&& ((inter_int && final_int) || (inter_float && final_float)) && ((inter_int && final_int) || (inter_float && final_float))
&& inter_prec >= final_prec) && inter_prec >= final_prec)
return TREE_OPERAND (TREE_OPERAND (t, 0), 0); return TREE_OPERAND (TREE_OPERAND (t, 0), 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment