make block numbers accross functions more deterministic
authorMatthias Braun <matze@braunis.de>
Thu, 30 Aug 2012 11:46:38 +0000 (13:46 +0200)
committerMatthias Braun <matze@braunis.de>
Thu, 30 Aug 2012 12:18:55 +0000 (14:18 +0200)
I aligning them to a multiple of 100 now, so that when code generated in
an earlier functions only changes lightly it is very likely that the
block numbers in later functions stay the same.

ir/be/begnuas.c

index 1182918..0d5195d 100644 (file)
@@ -592,7 +592,8 @@ void be_gas_emit_function_epilog(const ir_entity *entity)
        be_emit_char('\n');
        be_emit_write_line();
 
-       next_block_nr += 100;
+       next_block_nr += 199;
+       next_block_nr = next_block_nr/100*100;
 }
 
 /**