* config/avr/avr.c (init_cumulative_args): Test fntype for zero.
authorDenis Chertykov <denisc@overta.ru>
Thu, 24 Oct 2002 20:07:21 +0000 (20:07 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Thu, 24 Oct 2002 20:07:21 +0000 (00:07 +0400)
From-SVN: r58503

gcc/ChangeLog
gcc/config/avr/avr.c

index 9b2cb93c7385d3b569ea2425e480de4a2be59b65..f53fd46a45652c9653ca136c32675c692d2366e0 100644 (file)
@@ -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
index 1a06ed12ef9179b1a9075c630953c406b5fcaa3e..5e4e42c5ace66d68198bed751ff0dfbcc8aea0de 100644 (file)
@@ -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)))