From b942e9e5727ec89e964aceffe77d4d01d1a4a957 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 6 Dec 2018 01:14:41 +0100 Subject: [PATCH] dwarf2out.c (field_byte_offset): Remove #ifdef PCC_BITFIELD_TYPE_MATTERS check. * dwarf2out.c (field_byte_offset): Remove #ifdef PCC_BITFIELD_TYPE_MATTERS check. From-SVN: r266834 --- gcc/ChangeLog | 7 ++++++- gcc/dwarf2out.c | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 639f5cfd984..05f9a6dc29b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ +2018-12-05 Uros Bizjak + + * dwarf2out.c (field_byte_offset): Remove + #ifdef PCC_BITFIELD_TYPE_MATTERS check. + 2018-12-05 Richard Biener - Martin Sebor + Martin Sebor PR c/87028 * calls.c (get_attr_nonstring_decl): Avoid setting *REF to diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8b64c8769cd..99ac40f0b9f 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -18985,7 +18985,6 @@ field_byte_offset (const_tree decl, struct vlr_context *ctx, if (TREE_CODE (DECL_FIELD_BIT_OFFSET (decl)) != INTEGER_CST) return NULL; -#ifdef PCC_BITFIELD_TYPE_MATTERS /* We used to handle only constant offsets in all cases. Now, we handle properly dynamic byte offsets only when PCC bitfield type doesn't matter. */ @@ -19100,7 +19099,6 @@ field_byte_offset (const_tree decl, struct vlr_context *ctx, tree_result = wide_int_to_tree (sizetype, object_offset_in_bytes); } else -#endif /* PCC_BITFIELD_TYPE_MATTERS */ tree_result = byte_position (decl); if (ctx->variant_part_offset != NULL_TREE) -- 2.30.2