summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-09-30 14:49:03 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-09-30 14:50:29 +0200
commita697cdf9e18cdde51102d6d93d67ac7a2f695ea8 (patch)
tree8710b0aaa3fa155b8a553cb7b58a573688db1f6d /ir/be/begnuas.c
parent39eb7f19ae075b612b4a2bc9b900660127ecc827 (diff)
be: Handle checking for a block label centrally in be_gas_begin_block().
This ensures that blocks with a label get their label printed. In particular this fixes computed goto on arm.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index 561a0ed..b7c8cbf 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -1340,7 +1340,7 @@ void be_gas_emit_block_name(const ir_node *block)
void be_gas_begin_block(const ir_node *block, bool needs_label)
{
- if (needs_label) {
+ if (needs_label || get_Block_entity(block)) {
be_gas_emit_block_name(block);
be_emit_char(':');
} else {