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
5f4e9238
Commit
5f4e9238
authored
Mar 14, 2011
by
Matthias Braun
Browse files
don't emit .space with 0 bytes
parent
ad3f28f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
5f4e9238
...
...
@@ -1602,8 +1602,11 @@ static void emit_global(be_gas_decl_env_t *env, const ir_entity *entity)
}
if
(
entity_is_null
(
entity
))
{
be_emit_irprintf
(
"
\t
.space %u, 0
\n
"
,
get_type_size_bytes
(
type
));
be_emit_write_line
();
unsigned
size
=
get_type_size_bytes
(
type
);
if
(
size
>
0
)
{
be_emit_irprintf
(
"
\t
.space %u, 0
\n
"
,
get_type_size_bytes
(
type
));
be_emit_write_line
();
}
}
else
if
(
entity_has_compound_ent_values
(
entity
))
{
emit_compound_graph_init
(
env
,
entity
);
}
else
{
...
...
Write
Preview
Supports
Markdown
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