diff options
author | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-20 06:06:08 +0000 |
---|---|---|
committer | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-20 06:06:08 +0000 |
commit | 5cd4945143a66ce6dc6bdebbc42602656c750160 (patch) | |
tree | 3eade6a0b437a7c3b4647591cb803c4ae2b8c777 /gcc/function.c | |
parent | 0cbdc1d836605ccf348a82828ee99396f89a71d0 (diff) | |
download | gcc-5cd4945143a66ce6dc6bdebbc42602656c750160.tar.gz |
* function.c (assign_parms): Force
MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80882 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index e0308640335..56a3814e941 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5267,6 +5267,12 @@ assign_parms (tree fndecl) { SET_DECL_RTL (parm, DECL_RTL (fnargs)); set_decl_incoming_rtl (parm, DECL_INCOMING_RTL (fnargs)); + + /* Set MEM_EXPR to the original decl, i.e. to PARM, + instead of the copy of decl, i.e. FNARGS. */ + if (DECL_INCOMING_RTL (parm) + && GET_CODE (DECL_INCOMING_RTL (parm)) == MEM) + set_mem_expr (DECL_INCOMING_RTL (parm), parm); } fnargs = TREE_CHAIN (fnargs); } |