From 7444c4f6f7881c4700f8c8cd4c87d3648f9c85a3 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Tue, 8 Mar 2016 23:25:19 -0800 Subject: remove big-endian target support --- gcc/dwarf2out.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0cbba10..21042b0 100755 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -393,16 +393,8 @@ static void dwarf2out_stack_adjust (rtx); #ifndef ASM_OUTPUT_DWARF_DATA8 #define ASM_OUTPUT_DWARF_DATA8(FILE,HIGH_VALUE,LOW_VALUE) \ do { \ - if (WORDS_BIG_ENDIAN) \ - { \ - fprintf ((FILE), "\t%s\t0x%lx\n", UNALIGNED_INT_ASM_OP, (HIGH_VALUE));\ - fprintf ((FILE), "\t%s\t0x%lx", UNALIGNED_INT_ASM_OP, (LOW_VALUE));\ - } \ - else \ - { \ fprintf ((FILE), "\t%s\t0x%lx\n", UNALIGNED_INT_ASM_OP, (LOW_VALUE)); \ fprintf ((FILE), "\t%s\t0x%lx", UNALIGNED_INT_ASM_OP, (HIGH_VALUE)); \ - } \ } while (0) #endif @@ -7064,8 +7056,7 @@ add_location_or_const_value_attribute (die, decl) all* cases where (rtl == NULL_RTX) just below. */ if (declared_type == passed_type) rtl = DECL_INCOMING_RTL (decl); - else if (! BYTES_BIG_ENDIAN - && TREE_CODE (declared_type) == INTEGER_TYPE + else if (TREE_CODE (declared_type) == INTEGER_TYPE && TYPE_SIZE (declared_type) <= TYPE_SIZE (passed_type)) rtl = DECL_INCOMING_RTL (decl); } @@ -7390,18 +7381,15 @@ add_bit_offset_attribute (die, decl) highest_order_object_bit_offset = object_offset_in_bytes * BITS_PER_UNIT; highest_order_field_bit_offset = bitpos_int; - if (! BYTES_BIG_ENDIAN) - { + highest_order_field_bit_offset += (unsigned) TREE_INT_CST_LOW (DECL_SIZE (decl)); highest_order_object_bit_offset += simple_type_size_in_bits (type); - } + bit_offset - = (! BYTES_BIG_ENDIAN - ? highest_order_object_bit_offset - highest_order_field_bit_offset - : highest_order_field_bit_offset - highest_order_object_bit_offset); + = highest_order_object_bit_offset - highest_order_field_bit_offset; add_AT_unsigned (die, DW_AT_bit_offset, bit_offset); } -- cgit v1.2.3