From d07bec9503c4dbd14944d2ed6b04e000643450c7 Mon Sep 17 00:00:00 2001 From: Jeffrey Oldham Date: Tue, 2 Jan 2001 16:09:56 +0000 Subject: [PATCH] mips.c (function_arg): Don't pass NULL_TREE to host_integerp. 2001-01-02 Jeffrey Oldham * config/mips/mips.c (function_arg): Don't pass NULL_TREE to host_integerp. From-SVN: r38627 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f19601..3dece5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2001-01-02 Jeffrey Oldham + * config/mips/mips.c (function_arg): Don't pass NULL_TREE to + host_integerp. + +2001-01-02 Jeffrey Oldham + * tm.texi (FUNCTION_ARG): Document that @var{type} can be an incomplete type. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 2f66d2a..381001d 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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 -- 2.7.4