Commit c671c146 by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL.

gcc/
	* config/mips/mips.c (mips_pass_by_reference): Do not return false
	for EABI if type is NULL.  Use a size check based on GET_MODE_SIZE
	instead.

From-SVN: r117468
parent 2c3c88ec
2006-10-05 Richard Sandiford <richard@codesourcery.com>
* config/mips/mips.c (mips_pass_by_reference): Do not return false
for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
instead.
2006-10-05 Bernd Schmidt <bernd.schmidt@analog.com> 2006-10-05 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/bfin.md (subsi3): Lose expander, change previously * config/bfin/bfin.md (subsi3): Lose expander, change previously
......
...@@ -7556,10 +7556,10 @@ mips_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, ...@@ -7556,10 +7556,10 @@ mips_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
int size; int size;
/* ??? How should SCmode be handled? */ /* ??? How should SCmode be handled? */
if (type == NULL_TREE || mode == DImode || mode == DFmode) if (mode == DImode || mode == DFmode)
return 0; return 0;
size = int_size_in_bytes (type); size = type ? int_size_in_bytes (type) : GET_MODE_SIZE (mode);
return size == -1 || size > UNITS_PER_WORD; return size == -1 || size > UNITS_PER_WORD;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment