OSDN Git Service

(assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 1996 22:45:05 +0000 (22:45 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 1996 22:45:05 +0000 (22:45 +0000)
read-only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11944 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/function.c

index 4d0966f..0af5a69 100644 (file)
@@ -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,