Skip to content
Snippets Groups Projects
Commit 3184f6a5 authored by Keith Packard's avatar Keith Packard Committed by Jeff Law
Browse files

lm32: Args with arg.named false still get passed in regs

	* config/lm32/lm32.cc (lm32_function_arg): Pass unnamed
	arguments in registers too, just like named arguments.
parent efd00e3a
No related branches found
No related tags found
No related merge requests found
......@@ -632,8 +632,7 @@ lm32_function_arg (cumulative_args_t cum_v, const function_arg_info &arg)
if (targetm.calls.must_pass_in_stack (arg))
return NULL_RTX;
if (!arg.named
|| *cum + LM32_NUM_REGS2 (arg.mode, arg.type) > LM32_NUM_ARG_REGS)
if (*cum + LM32_NUM_REGS2 (arg.mode, arg.type) > LM32_NUM_ARG_REGS)
return NULL_RTX;
return gen_rtx_REG (arg.mode, *cum + LM32_FIRST_ARG_REG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment