* config/avr/avr.c (init_cumulative_args): Test fntype for zero.

From-SVN: r58503
This commit is contained in:
Denis Chertykov 2002-10-24 20:07:21 +00:00 committed by Denis Chertykov
parent 37d0b2542c
commit d074905352
2 changed files with 5 additions and 1 deletions

View 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

View 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)))