aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJosef Zlomek <zlomekj@suse.cz>2003-02-26 07:45:21 +0100
committerJosef Zlomek <zlomek@gcc.gnu.org>2003-02-26 06:45:21 +0000
commit1d14f99280bff65cab5a6a700d917151f0c7d403 (patch)
treed277069cce8d33a4b4b335a5d140c84345bfc085 /gcc/function.c
parentcec24319c61d616dc10f918187a72a9622180821 (diff)
downloadgcc-1d14f99280bff65cab5a6a700d917151f0c7d403.zip
gcc-1d14f99280bff65cab5a6a700d917151f0c7d403.tar.gz
gcc-1d14f99280bff65cab5a6a700d917151f0c7d403.tar.bz2
function.c (assign_parms): Set reg_attrs for parameters passed in registers.
* function.c (assign_parms): Set reg_attrs for parameters passed in registers. From-SVN: r63458
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index e6df55d..86a2017 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4454,6 +4454,10 @@ assign_parms (fndecl)
offset_rtx));
set_mem_attributes (stack_parm, parm, 1);
+
+ /* Set also REG_ATTRS if parameter was passed in a register. */
+ if (entry_parm)
+ set_reg_attrs_from_mem (entry_parm, stack_parm);
}
/* If this parameter was passed both in registers and in the stack,