diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-19 08:12:30 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-19 08:12:30 +0000 |
commit | f4b5ce94a03f8292b0d275ed5bb45088a49cd026 (patch) | |
tree | 578267e265ab97310bb2da63879228b37578be7d /gcc/reg-stack.c | |
parent | 5d4875766049f30f67ef2c5b6eb55ecb442d6a01 (diff) | |
download | gcc-f4b5ce94a03f8292b0d275ed5bb45088a49cd026.tar.gz |
* reg-stack.c (stack_result): Aggregates are not returned in
stack registers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 0cbc5da2124..d1bceefe6c6 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1192,8 +1192,16 @@ static rtx stack_result (decl) tree decl; { - rtx result = DECL_RTL (DECL_RESULT (decl)); + rtx result; + /* 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)) |