X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fbearch_ia32.c;h=f7bbde804d260d12e8f70a9963e05c2005b7e9b9;hb=4b33054acaa27b6fca74713bb0e1e79e6af3d9c4;hp=e23482e7b226f56f9450a6a5605a32faf096ef67;hpb=065b6046ce92d06519712d94caefd9fb978b8150;p=libfirm diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index e23482e7b..f7bbde804 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -240,9 +240,9 @@ static void ia32_set_frame_offset(ir_node *irn, int bias) return; if (is_ia32_Pop(irn) || is_ia32_PopMem(irn)) { - ia32_code_gen_t *cg = ia32_current_cg; - int omit_fp = be_abi_omit_fp(be_get_irg_abi(cg->irg)); - if (omit_fp) { + ir_graph *irg = get_irn_irg(irn); + be_stack_layout_t *layout = be_get_irg_stack_layout(irg); + if (layout->sp_relative) { /* Pop nodes modify the stack pointer before calculating the * destination address, so fix this here */ @@ -1541,6 +1541,7 @@ static ia32_isa_t ia32_isa_template = { NULL, /* main environment */ 7, /* costs for a spill instruction */ 5, /* costs for a reload instruction */ + false, /* no custom abi handling */ }, NULL, /* 16bit register names */ NULL, /* 8bit register names */