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

sparc: fix bug where calls with many parameters were broken

[r27997]
parent d51d2c9a
...@@ -1462,7 +1462,7 @@ static ir_node *gen_Call(ir_node *node) ...@@ -1462,7 +1462,7 @@ static ir_node *gen_Call(ir_node *node)
/* max inputs: memory, callee, register arguments */ /* max inputs: memory, callee, register arguments */
int max_inputs = 2 + n_param_regs; int max_inputs = 2 + n_param_regs;
ir_node **in = ALLOCAN(ir_node*, max_inputs); ir_node **in = ALLOCAN(ir_node*, max_inputs);
ir_node **sync_ins = ALLOCAN(ir_node*, max_inputs); ir_node **sync_ins = ALLOCAN(ir_node*, n_params);
struct obstack *obst = be_get_be_obst(irg); struct obstack *obst = be_get_be_obst(irg);
const arch_register_req_t **in_req const arch_register_req_t **in_req
= OALLOCNZ(obst, const arch_register_req_t*, max_inputs); = OALLOCNZ(obst, const arch_register_req_t*, max_inputs);
......
Supports Markdown
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