diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-18 00:23:33 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-18 00:23:33 +0000 |
| commit | c27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87 (patch) | |
| tree | a8439ed8ecb8147de5b6aaf84ae391be7a85fa90 /gcc | |
| parent | f3d3363acc6a496c0c1ac1d8df1f814eb5ba8dab (diff) | |
| download | ppe42-gcc-c27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87.tar.gz ppe42-gcc-c27b7f40c9b4fb569570c1e334a2dd5ca8ea6c87.zip | |
* function.c (expand_function_start): Use hard_function_value to
compute the RTL to use for DECL_RESULT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33219 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/function.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d11d84a3c3..a3e285dba5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-04-17 Mark Mitchell <mark@codesourcery.com> + + * function.c (expand_function_start): Use hard_function_value to + compute the RTL to use for DECL_RESULT. + Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz> * i386.c (athlon_cost): Fix lea, divide and XFmode move costs. diff --git a/gcc/function.c b/gcc/function.c index 4b6f5ff1753..b502ab41f58 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6182,13 +6182,8 @@ expand_function_start (subr, parms_have_cleanups) else /* Scalar, returned in a register. */ { -#ifdef FUNCTION_OUTGOING_VALUE - DECL_RTL (DECL_RESULT (subr)) - = FUNCTION_OUTGOING_VALUE (TREE_TYPE (DECL_RESULT (subr)), subr); -#else DECL_RTL (DECL_RESULT (subr)) - = FUNCTION_VALUE (TREE_TYPE (DECL_RESULT (subr)), subr); -#endif + = hard_function_value (TREE_TYPE (DECL_RESULT (subr)), subr, 1); /* Mark this reg as the function's return value. */ if (GET_CODE (DECL_RTL (DECL_RESULT (subr))) == REG) |

