aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/avr/avr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9b2cb93..f53fd46 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-24 Denis Chertykov <denisc@overta.ru>
+
+ * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
+
2002-10-24 Steve Ellcey <sje@cup.hp.com>
* expr.c (convert_move): If unsignedp is less then zero there
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 1a06ed1..5e4e42c 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -1487,7 +1487,7 @@ init_cumulative_args (cum, fntype, libname, indirect)
{
cum->nregs = 18;
cum->regno = FIRST_CUM_REG;
- if (!libname)
+ if (!libname && fntype)
{
int stdarg = (TYPE_ARG_TYPES (fntype) != 0
&& (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))