diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1995-11-28 18:56:14 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1995-11-28 18:56:14 -0800 |
commit | 1417e9bdd0b26cc19de6fea5a15aad895f710240 (patch) | |
tree | 33d2a0e3cd6ccba1d11f1330e67caeb2dd244b69 | |
parent | 141b2e9f0543021ee1d868310e01c36b235b716d (diff) | |
download | gcc-1417e9bdd0b26cc19de6fea5a15aad895f710240.zip gcc-1417e9bdd0b26cc19de6fea5a15aad895f710240.tar.gz gcc-1417e9bdd0b26cc19de6fea5a15aad895f710240.tar.bz2 |
(mips_function_value): Add check for i > 0 when deciding
if structure should be return in FP registers.
From-SVN: r10617
-rw-r--r-- | gcc/config/mips/mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index a978c19..fc6279d 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -5564,7 +5564,8 @@ mips_function_value (valtype, func) break; } - if (! field) + /* Must check i, so that we reject structures with no elements. */ + if (! field && i > 0) reg = FP_RETURN; } |