Commit 05ed1296 by Richard Henderson Committed by Richard Henderson

* mips.c (mips_function_value): Only promote_mode for non-libcalls.

From-SVN: r51276
parent c9be3825
2002-03-24 Richard Henderson <rth@redhat.com>
* mips.c (mips_function_value): Only promote_mode for non-libcalls.
2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
preprocessor/3951
......
......@@ -7929,13 +7929,13 @@ mips_function_value (valtype, func, mode)
{
mode = TYPE_MODE (valtype);
unsignedp = TREE_UNSIGNED (valtype);
/* Since we define PROMOTE_FUNCTION_RETURN, we must promote
the mode just as PROMOTE_MODE does. */
mode = promote_mode (valtype, mode, &unsignedp, 1);
}
mclass = GET_MODE_CLASS (mode);
/* Since we define PROMOTE_FUNCTION_RETURN, we must promote the mode
just as PROMOTE_MODE does. */
mode = promote_mode (valtype, mode, &unsignedp, 1);
if (mclass == MODE_FLOAT && GET_MODE_SIZE (mode) <= UNITS_PER_FPVALUE)
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