Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
6b77d422
Commit
6b77d422
authored
Sep 17, 2007
by
Christoph Mallon
Browse files
Assert that static initialiser data does not overlap.
[r15830]
parent
869a57a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
6b77d422
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment