projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
869a57a
)
Assert that static initialiser data does not overlap.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Sep 2007 12:47:24 +0000
(12:47 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Sep 2007 12:47:24 +0000
(12:47 +0000)
[r15830]
ir/be/begnuas.c
patch
|
blob
|
history
diff --git
a/ir/be/begnuas.c
b/ir/be/begnuas.c
index
4b58de2
..
6119ff6
100644
(file)
--- a/
ir/be/begnuas.c
+++ b/
ir/be/begnuas.c
@@
-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;
}
}