Commit 6b77d422 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assert that static initialiser data does not overlap.

[r15830]
parent 869a57a3
......@@ -580,9 +580,13 @@ static void dump_compound_init(be_gas_decl_env_t *env, obstack_t *obst,
last_bits = curr_bits;
}
} else {
int i;
assert(offset < last_ofs);
assert(vals[offset].kind == NORMAL);
assert(vals[offset].v.value == NULL);
for (i = 1; i < value_len / 8; ++i) {
assert(vals[offset + i].v.value == NULL);
}
vals[offset].v.value = value;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment