summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-30 14:24:11 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-30 14:24:11 +0000
commit9c0515a25d2fb09435ed58556574d6ea2442e393 (patch)
tree7639bd81480a9751e8a38aca80f10e44584597bc /gcc/tree.c
parent3b3b9773b761079dd1e7a09b5e26a4c52d94d879 (diff)
downloadgcc-9c0515a25d2fb09435ed58556574d6ea2442e393.tar.gz
* tree.c (build_range_type_1): Do not set TYPE_STRUCTURAL_EQUALITY_P
because of self-referential bounds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2f8d96ef4a2..d9a98f11439 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -7110,9 +7110,11 @@ build_range_type_1 (tree type, tree lowval, tree highval, bool shared)
TYPE_USER_ALIGN (itype) = TYPE_USER_ALIGN (type);
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)
- && 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
structural equality checks. */