]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: Fix a typo in avr.cc.
authorGeorg-Johann Lay <avr@gjlay.de>
Sun, 3 Mar 2024 09:21:20 +0000 (10:21 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Sun, 3 Mar 2024 09:23:44 +0000 (10:23 +0100)
gcc/
* config/avr/avr.cc (avr_init_cumulative_args): Fix a typo
from  r14-9273.

gcc/config/avr/avr.cc

index 5c71c7f8c0d4a26de9d2c4774bbac3bd4900d781..b86f4313fe26eab6556b74c08adb2939b88c8a95 100644 (file)
@@ -170,7 +170,8 @@ static struct machine_function *avr_init_machine_status (void);
 static bool avr_rtx_costs (rtx, machine_mode, int, int, int *, bool);
 
 
-/* Allocate registers from r25 to r8 for parameters for function calls.  */
+/* Allocate registers from r25 to r8 for parameters for function calls
+   resp. r25 to r20 for reduced Tiny.  */
 #define FIRST_CUM_REG REG_26
 
 /* Last call saved register */
@@ -4150,7 +4151,7 @@ void
 avr_init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype, rtx libname,
                          tree fndecl ATTRIBUTE_UNUSED)
 {
-  cum->nregs = 1 + AVR_TINY ? REG_25 - REG_20 : REG_25 - REG_8;
+  cum->nregs = AVR_TINY ? 1 + REG_25 - REG_20 : 1 + REG_25 - REG_8;
   cum->regno = FIRST_CUM_REG;
   cum->has_stack_args = 0;
   if (!libname && stdarg_p (fntype))