aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
-rw-r--r--gcc/ada/gcc-interface/misc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index 4b68227..cc9eeaa 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -656,14 +656,8 @@ gnat_type_max_size (const_tree gnu_type)
static void
gnat_get_subrange_bounds (const_tree gnu_type, tree *lowval, tree *highval)
{
- tree min = TYPE_MIN_VALUE (gnu_type);
- tree max = TYPE_MAX_VALUE (gnu_type);
- /* If the bounds aren't constant, use non-representable constant values
- to get the same effect on debug info without tree sharing issues. */
- *lowval
- = TREE_CONSTANT (min) ? min : build_int_cstu (integer_type_node, -1);
- *highval
- = TREE_CONSTANT (max) ? max : build_int_cstu (integer_type_node, -1);
+ *lowval = TYPE_MIN_VALUE (gnu_type);
+ *highval = TYPE_MAX_VALUE (gnu_type);
}
/* GNU_TYPE is a type. Determine if it should be passed by reference by