aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
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 2f8d96e..d9a98f1 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. */