Don't use consecutive numbers for basic blocks from different functions.
authorManuel Mohr <manuel.mohr@kit.edu>
Mon, 13 Aug 2012 12:44:00 +0000 (14:44 +0200)
committerManuel Mohr <manuel.mohr@kit.edu>
Mon, 13 Aug 2012 12:44:00 +0000 (14:44 +0200)
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

index 5a90acf..1182918 100644 (file)
@@ -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;
 }
 
 /**