aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-09-12 11:51:39 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-09-12 11:51:39 -0700
commit7a30f0c44e83a6562eafff4c3fd5290f98ae63f7 (patch)
tree34b93059b0df60fcfe4a294b4cce36ae118efd34 /gcc
parent179233208f2c7c4bda7ec6c3a2ea8ecd5a168bd9 (diff)
downloadgcc-7a30f0c44e83a6562eafff4c3fd5290f98ae63f7.zip
gcc-7a30f0c44e83a6562eafff4c3fd5290f98ae63f7.tar.gz
gcc-7a30f0c44e83a6562eafff4c3fd5290f98ae63f7.tar.bz2
(assign_parms): Set RTX_UNCHANGING_P on stack_parm
for const parameter before calling move_block_from_reg. From-SVN: r8075
Diffstat (limited to 'gcc')
-rw-r--r--gcc/function.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 7d2e433..1edd6a1 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3433,6 +3433,9 @@ assign_parms (fndecl, second_time)
else if (PARM_BOUNDARY % BITS_PER_WORD != 0)
abort ();
+ if (TREE_READONLY (parm))
+ RTX_UNCHANGING_P (stack_parm) = 1;
+
move_block_from_reg (REGNO (entry_parm),
validize_mem (stack_parm),
size_stored / UNITS_PER_WORD,