aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2006-10-05 22:19:35 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2006-10-05 22:19:35 +0000
commitc671c14680fb507a81b39814427518271d84610e (patch)
tree76ac0bc757c7b86bb4f0d3017dcacc21825db27c /gcc/config/mips
parent2c3c88ec2001d4c086fc19e91ba210b359547cf1 (diff)
downloadgcc-c671c14680fb507a81b39814427518271d84610e.zip
gcc-c671c14680fb507a81b39814427518271d84610e.tar.gz
gcc-c671c14680fb507a81b39814427518271d84610e.tar.bz2
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
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 7110a2d..ef4a35e 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -7556,10 +7556,10 @@ mips_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
int size;
/* ??? How should SCmode be handled? */
- if (type == NULL_TREE || mode == DImode || mode == DFmode)
+ if (mode == DImode || mode == DFmode)
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;
}
else