From eda764e6bb34a04ec1e4b5ec2bc1cba2ec6b6527 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 12 Dec 2006 10:21:21 +0000 Subject: [PATCH] C99 feature removed --- ir/be/ia32/ia32_gen_decls.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ir/be/ia32/ia32_gen_decls.c b/ir/be/ia32/ia32_gen_decls.c index 79db04425..d73dc8f17 100644 --- a/ir/be/ia32/ia32_gen_decls.c +++ b/ir/be/ia32/ia32_gen_decls.c @@ -384,7 +384,7 @@ static void dump_compound_init(obstack_t *obst, entity *ent) ir_type *ty = get_entity_type(ent); normal_or_bitfield *vals; int type_size; - int i; + int i, j; int res; res = compute_compound_ent_array_indices(ent); @@ -424,11 +424,11 @@ static void dump_compound_init(obstack_t *obst, entity *ent) get_entity_ld_name(ent)); } - for(int i = 0; i < 4 && value_len > 0; ++i) { - assert(offset + i < type_size); - assert(vals[offset + i].kind == BITFIELD || vals[offset + i].v.value == NULL); - vals[offset + i].kind = BITFIELD; - vals[offset + i].v.bf_val |= get_tarval_sub_bits(shifted, i); + for(j = 0; j < 4 && value_len > 0; ++j) { + assert(offset + j < type_size); + assert(vals[offset + j].kind == BITFIELD || vals[offset + j].v.value == NULL); + vals[offset + j].kind = BITFIELD; + vals[offset + j].v.bf_val |= get_tarval_sub_bits(shifted, j); value_len -= 8; } } else { -- 2.20.1