From b668394cdeadf9ed6c420a198bbbf7e67b31a3e2 Mon Sep 17 00:00:00 2001 From: kenner Date: Mon, 6 May 1996 22:45:05 +0000 Subject: [PATCH] (assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is read-only. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11944 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/function.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/function.c b/gcc/function.c index 4d0966f1158..0af5a69d38c 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3463,8 +3463,10 @@ assign_parms (fndecl, second_time) internal_arg_pointer, offset_rtx)); /* If this is a memory ref that contains aggregate components, - mark it as such for cse and loop optimize. */ + mark it as such for cse and loop optimize. Likewise if it + is readonly. */ MEM_IN_STRUCT_P (stack_parm) = aggregate; + RTX_UNCHANGING_P (stack_parm) = TREE_READONLY (parm); } /* If this parameter was passed both in registers and in the stack, -- 2.11.0