the types themselves to discover type equivalence.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37354
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* Makefile.in (distclean): Remove a few extra leftovers.
handled below, if we are converting something to its own
type via an object of identical or wider precision, neither
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_prec >= final_prec)
return TREE_OPERAND (TREE_OPERAND (t, 0), 0);