From 6b58915bc37090e2fb91ce7ba94b0a6d6b733a49 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 15 Nov 2013 14:52:23 +0000 Subject: dwarf2out.c (gen_enumeration_type_die): Remove unnecessary host_integerp test. gcc/ * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary host_integerp test. * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. Use TREE_INT_CST_LOW rather than tree_low_cst when reading the constant. * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst pair with a TREE_CODE test and TREE_INT_CST_LOW. * tree-vect-generic.c (expand_vector_divmod): Likewise. From-SVN: r204846 --- gcc/dwarf2out.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3822a65..24f405e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -17321,9 +17321,8 @@ gen_enumeration_type_die (tree type, dw_die_ref context_die) if (TREE_CODE (value) == CONST_DECL) value = DECL_INITIAL (value); - if (host_integerp (value, TYPE_UNSIGNED (TREE_TYPE (value))) - && (simple_type_size_in_bits (TREE_TYPE (value)) - <= HOST_BITS_PER_WIDE_INT || host_integerp (value, 0))) + if (simple_type_size_in_bits (TREE_TYPE (value)) + <= HOST_BITS_PER_WIDE_INT || host_integerp (value, 0)) /* DWARF2 does not provide a way of indicating whether or not enumeration constants are signed or unsigned. GDB always assumes the values are signed, so we output all -- cgit v1.1