Commit 3f1faac1 by Eric Botcazou Committed by Eric Botcazou

tree.c (build_range_type_1): Do not set TYPE_STRUCTURAL_EQUALITY_P because of…

tree.c (build_range_type_1): Do not set TYPE_STRUCTURAL_EQUALITY_P because of self-referential bounds.

	* tree.c (build_range_type_1): Do not set TYPE_STRUCTURAL_EQUALITY_P
	because of self-referential bounds.

From-SVN: r167297
parent 375a39e2
2010-11-30 Eric Botcazou <ebotcazou@adacore.com>
* tree.c (build_range_type_1): Do not set TYPE_STRUCTURAL_EQUALITY_P
because of self-referential bounds.
2010-11-30 Joseph Myers <joseph@codesourcery.com> 2010-11-30 Joseph Myers <joseph@codesourcery.com>
* diagnostic-core.h: Include bversion.h. * diagnostic-core.h: Include bversion.h.
...@@ -7110,9 +7110,11 @@ build_range_type_1 (tree type, tree lowval, tree highval, bool shared) ...@@ -7110,9 +7110,11 @@ build_range_type_1 (tree type, tree lowval, tree highval, bool shared)
TYPE_USER_ALIGN (itype) = TYPE_USER_ALIGN (type); TYPE_USER_ALIGN (itype) = TYPE_USER_ALIGN (type);
if ((TYPE_MIN_VALUE (itype) if ((TYPE_MIN_VALUE (itype)
&& TREE_CODE (TYPE_MIN_VALUE (itype)) != INTEGER_CST) && TREE_CODE (TYPE_MIN_VALUE (itype)) != INTEGER_CST
&& !CONTAINS_PLACEHOLDER_P (TYPE_MIN_VALUE (itype)))
|| (TYPE_MAX_VALUE (itype) || (TYPE_MAX_VALUE (itype)
&& TREE_CODE (TYPE_MAX_VALUE (itype)) != INTEGER_CST)) && TREE_CODE (TYPE_MAX_VALUE (itype)) != INTEGER_CST
&& !CONTAINS_PLACEHOLDER_P (TYPE_MAX_VALUE (itype))))
{ {
/* Since we cannot reliably merge this type, we need to compare it using /* Since we cannot reliably merge this type, we need to compare it using
structural equality checks. */ structural equality checks. */
......
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