From cd9c8b955fd368ac8a14d3b251e8f3462a3fe959 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 7 Feb 2007 17:13:24 +0000 Subject: [PATCH] fixed dump_compound_init again, still bitfield problems --- ir/be/ia32/ia32_gen_decls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/be/ia32/ia32_gen_decls.c b/ir/be/ia32/ia32_gen_decls.c index bfe6ff014..0fa4320ee 100644 --- a/ir/be/ia32/ia32_gen_decls.c +++ b/ir/be/ia32/ia32_gen_decls.c @@ -398,12 +398,13 @@ static void dump_compound_init(obstack_t *obst, ir_entity *ent) last_ofs = 0; for (i = 0; i < n; ++i) { int offset = get_compound_ent_value_offset_bytes(ent, i); + int bits_remainder = get_compound_ent_value_offset_bit_remainder(ent, i); const compound_graph_path *path = get_compound_ent_value_path(ent, i); int path_len = get_compound_graph_path_length(path); ir_entity *last_ent = get_compound_graph_path_node(path, path_len - 1); int value_len = get_type_size_bits(get_entity_type(last_ent)); - offset += (value_len + 7) >> 3; + offset += (value_len + bits_remainder + 7) >> 3; if (offset > last_ofs) { last_ofs = offset; -- 2.20.1