diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-03-03 10:21:20 +0100 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-03-03 10:23:44 +0100 |
commit | 1b9fb7c56e09983898efa350928665ac6b91620e (patch) | |
tree | e846d79232a8d4a044866f5530a4fcacfd82f2a8 | |
parent | 4ff8ffe7331cf174668cf5c729fd68ff327ab014 (diff) |
AVR: Fix a typo in avr.cc.
gcc/
* config/avr/avr.cc (avr_init_cumulative_args): Fix a typo
from r14-9273.
-rw-r--r-- | gcc/config/avr/avr.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index 5c71c7f8c0d..b86f4313fe2 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -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)) |