From e18f885674418c8525117a3e2805bc6a1e3f9b33 Mon Sep 17 00:00:00 2001 From: Manuel Mohr Date: Mon, 13 Aug 2012 14:44:00 +0200 Subject: [PATCH] Don't use consecutive numbers for basic blocks from different functions. Consecutive numbers can make it difficult to combine assembly output from different compiler runs, which is done by the check/checkfile scripts to find bugs in the SPEC suite. If the number of basic blocks of a function changed between compiler runs, the assembler will likely complain about duplicate labels. Leaving a bit more space, e.g. 100, is a pragmatic fix. --- ir/be/begnuas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 5a90acf51..118291890 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -591,6 +591,8 @@ void be_gas_emit_function_epilog(const ir_entity *entity) be_emit_char('\n'); be_emit_write_line(); + + next_block_nr += 100; } /** -- 2.20.1