From: Richard Henderson Date: Sun, 24 Mar 2002 21:37:40 +0000 (-0800) Subject: * mips.c (mips_function_value): Only promote_mode for non-libcalls. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05ed12966cc89118856a193a6dbb4bd90590bbf4;p=gcc.git * mips.c (mips_function_value): Only promote_mode for non-libcalls. From-SVN: r51276 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f8c4710d636..d8103b4162b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-03-24 Richard Henderson + + * mips.c (mips_function_value): Only promote_mode for non-libcalls. + 2002-03-24 Neil Booth preprocessor/3951 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 51cd562edf8..213090c7143 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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;