summaryrefslogtreecommitdiff
path: root/contrib/gcc/reg-stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/reg-stack.c')
-rw-r--r--contrib/gcc/reg-stack.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/contrib/gcc/reg-stack.c b/contrib/gcc/reg-stack.c
index 42caefa0a42bb..dd4a87e697cda 100644
--- a/contrib/gcc/reg-stack.c
+++ b/contrib/gcc/reg-stack.c
@@ -1186,16 +1186,8 @@ static rtx
stack_result (decl)
tree decl;
{
- rtx result;
+ rtx result = DECL_RTL (DECL_RESULT (decl));
- /* If the value is supposed to be returned in memory, then clearly
- it is not returned in a stack register. */
- if (aggregate_value_p (DECL_RESULT (decl)))
- return 0;
-
- result = DECL_RTL (DECL_RESULT (decl));
- /* ?!? What is this code supposed to do? Can this code actually
- trigger if we kick out aggregates above? */
if (result != 0
&& ! (GET_CODE (result) == REG
&& REGNO (result) < FIRST_PSEUDO_REGISTER))