fixed mode suffix emitter
[libfirm] / ir / be / ia32 / ia32_x87.c
index 68cb28d..0b5b47a 100644 (file)
@@ -86,7 +86,7 @@ typedef struct _x87_state {
 } x87_state;
 
 /** An empty state, used for blocks without fp instructions. */
-static const x87_state _empty = { { {0, NULL}, }, 0, 0 };
+static x87_state _empty = { { {0, NULL}, }, 0, 0 };
 static x87_state *empty = (x87_state *)&_empty;
 
 /** The type of an instruction simulator */
@@ -751,7 +751,6 @@ static unsigned vfp_liveness_end_of_block(x87_simulator *sim, const ir_node *bl)
 static unsigned vfp_liveness_nodes_live_at(x87_simulator *sim, const ir_node *pos)
 {
        const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
-       const arch_register_class_t *cls = &ia32_reg_classes[CLASS_ia32_vfp];
        ir_node *irn;
        unsigned live;
 
@@ -1821,6 +1820,7 @@ void x87_simulate_graph(const arch_env_t *env, ir_graph *irg, ir_node **blk_list
 
        /* start with the empty state */
        bl_state->begin = empty;
+       empty->sim      = ∼
 
        worklist = new_pdeq();