aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-15 05:40:19 +0000
committerRichard Stallman <rms@gnu.org>1993-11-15 05:40:19 +0000
commitc110c53d6eac5abc1184407c6f05d9257eaee448 (patch)
treea507379770f0fbbcee8b0641f0a16e9c249ae0ff /gcc
parenta3579a47d1dc8e565bf000e98468066dfe8cf795 (diff)
downloadgcc-c110c53d6eac5abc1184407c6f05d9257eaee448.zip
gcc-c110c53d6eac5abc1184407c6f05d9257eaee448.tar.gz
gcc-c110c53d6eac5abc1184407c6f05d9257eaee448.tar.bz2
(assign_parms): Clear STACK_PARM when we have a
pass-by-pointer parm that we load into a pseudo. From-SVN: r6098
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 53918e9..9c2cf5f 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3412,6 +3412,9 @@ assign_parms (fndecl, second_time)
parmreg = gen_reg_rtx (TYPE_MODE (TREE_TYPE (parm)));
emit_move_insn (parmreg, DECL_RTL (parm));
DECL_RTL (parm) = parmreg;
+ /* STACK_PARM is the pointer, not the parm, and PARMREG is
+ now the parm. */
+ stack_parm = 0;
}
#ifdef FUNCTION_ARG_CALLEE_COPIES
/* If we are passed an arg by reference and it is our responsibility