Commit fcce4d9b authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: Fix offset of stackparams in omit_fp mode

parent d200970e
......@@ -197,7 +197,7 @@ calling_convention_t *sparc_decide_calling_convention(ir_type *function_type,
reg_or_stackslot_t *params = XMALLOCNZ(reg_or_stackslot_t, n_params);
int n_param_regs = ARRAY_SIZE(param_regs);
unsigned stack_offset = SPARC_MIN_STACKSIZE;
unsigned stack_offset = !omit_fp ? SPARC_MIN_STACKSIZE : 0;
for (int i = 0; i < n_params; ++i) {
ir_type *param_type = get_method_param_type(function_type,i);
ir_mode *mode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment