From 05ed12966cc89118856a193a6dbb4bd90590bbf4 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 24 Mar 2002 13:37:40 -0800 Subject: [PATCH] * mips.c (mips_function_value): Only promote_mode for non-libcalls. From-SVN: r51276 --- gcc/ChangeLog | 4 ++++ gcc/config/mips/mips.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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; -- 2.30.2