diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-24 21:37:40 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-24 21:37:40 +0000 |
| commit | 9bb22e776b5094028a1e987a2ec488c10eaa7899 (patch) | |
| tree | 08ce9f99b2ba2614075a19e6ccef970c29a18727 | |
| parent | f4633fa18689359411df79716e80ee0eb28f61c9 (diff) | |
| download | ppe42-gcc-9bb22e776b5094028a1e987a2ec488c10eaa7899.tar.gz ppe42-gcc-9bb22e776b5094028a1e987a2ec488c10eaa7899.zip | |
* mips.c (mips_function_value): Only promote_mode for non-libcalls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51276 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | 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 <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 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; |

