From d64236b44d89d0641a87fbc2938368dfecaa8263 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 16 Feb 2001 02:30:37 +0000 Subject: [PATCH] function.c (assign_parms): Set RTX_UNCHANGING_P in pseudo when we do in memory. * function.c (assign_parms): Set RTX_UNCHANGING_P in pseudo when we do in memory. From-SVN: r39737 --- gcc/ChangeLog | 5 +++++ gcc/function.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c27b695ab7b..39401e110b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 15 21:30:26 2001 Richard Kenner + + * function.c (assign_parms): Set RTX_UNCHANGING_P in pseudo when we + do in memory. + 2001-02-15 Mark Mitchell * invoke.texi (--param): Document. diff --git a/gcc/function.c b/gcc/function.c index 259ccca4fb0..1c3ee315d6e 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4706,8 +4706,11 @@ assign_parms (fndecl) set_mem_attributes (DECL_RTL (parm), parm, 1); } else - DECL_RTL (parm) = parmreg; - + { + DECL_RTL (parm) = parmreg; + maybe_set_unchanging (DECL_RTL (parm), parm); + } + /* Copy the value into the register. */ if (nominal_mode != passed_mode || promoted_nominal_mode != promoted_mode)