]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lm32: Args with arg.named false still get passed in regs
authorKeith Packard <keithp@keithp.com>
Thu, 16 Jan 2025 05:02:36 +0000 (22:02 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 16 Jan 2025 05:02:36 +0000 (22:02 -0700)
* config/lm32/lm32.cc (lm32_function_arg): Pass unnamed
arguments in registers too, just like named arguments.

gcc/config/lm32/lm32.cc

index 4445295fe2b6e32020616a1716f71cfa643fb106..d78efc59da5fceccf7b3d5d9b1ca20335acea530 100644 (file)
@@ -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);