mips.c (function_arg): Don't pass NULL_TREE to host_integerp.
authorJeffrey Oldham <oldham@codesourcery.com>
Tue, 2 Jan 2001 16:09:56 +0000 (16:09 +0000)
committerJeffrey D. Oldham <oldham@gcc.gnu.org>
Tue, 2 Jan 2001 16:09:56 +0000 (16:09 +0000)
2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>

* config/mips/mips.c (function_arg): Don't pass NULL_TREE to
host_integerp.

From-SVN: r38627

gcc/ChangeLog
gcc/config/mips/mips.c

index 4f1960188d9de19538378e73510ff9038072b9be..3dece5f40139418d9398b0648def949697df3f91 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
+       host_integerp.
+
 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
 
        * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
index 2f66d2a00d90145e7cc8dcbbdf71113dbf1e4700..381001d66c57025df766cf04c2b9ff7bf33fd743 100644 (file)
@@ -1,6 +1,6 @@
 /* Subroutines for insn-output.c for MIPS
    Copyright (C) 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2001 Free Software Foundation, Inc.
    Contributed by A. Lichnewsky, lich@inria.inria.fr.
    Changes by Michael Meissner, meissner@osf.org.
    64 bit r4000 support by Ian Lance Taylor, ian@cygnus.com, and
@@ -4036,6 +4036,7 @@ function_arg (cum, mode, type, named)
 
       if (! type || TREE_CODE (type) != RECORD_TYPE || mips_abi == ABI_32
          || mips_abi == ABI_EABI || mips_abi == ABI_O64 || ! named
+         || ! TYPE_SIZE_UNIT (type)
          || ! host_integerp (TYPE_SIZE_UNIT (type), 1))
        ret = gen_rtx_REG (mode, regbase + *arg_words + bias);
       else