From: Richard Kenner Date: Mon, 6 May 1996 22:45:05 +0000 (-0400) Subject: (assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a00285d03514d4c4b2e627a1d4cb453afcdf3d43;p=gcc.git (assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is read-only. From-SVN: r11944 --- 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,