public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9279] AVR: Fix a typo in avr.cc.
@ 2024-03-03 9:24 Georg-Johann Lay
0 siblings, 0 replies; only message in thread
From: Georg-Johann Lay @ 2024-03-03 9:24 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1b9fb7c56e09983898efa350928665ac6b91620e
commit r14-9279-g1b9fb7c56e09983898efa350928665ac6b91620e
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Sun Mar 3 10:21:20 2024 +0100
AVR: Fix a typo in avr.cc.
gcc/
* config/avr/avr.cc (avr_init_cumulative_args): Fix a typo
from r14-9273.
Diff:
---
gcc/config/avr/avr.cc | 5 +++--
1 file 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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-03 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 9:24 [gcc r14-9279] AVR: Fix a typo in avr.cc Georg-Johann Lay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).