Commit 1417e9bd by Jim Wilson

(mips_function_value): Add check for i > 0 when deciding

if structure should be return in FP registers.

From-SVN: r10617
parent 141b2e9f
...@@ -5564,7 +5564,8 @@ mips_function_value (valtype, func) ...@@ -5564,7 +5564,8 @@ mips_function_value (valtype, func)
break; break;
} }
if (! field) /* Must check i, so that we reject structures with no elements. */
if (! field && i > 0)
reg = FP_RETURN; reg = FP_RETURN;
} }
......
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