(assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 6 May 1996 22:45:05 +0000 (18:45 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 6 May 1996 22:45:05 +0000 (18:45 -0400)
read-only.

From-SVN: r11944

gcc/function.c

index 4d0966f1158fe0d8863d79ee51d60b92d5efc30a..0af5a69d38cfa3657b394f4b12ed8f2d06c88dc0 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,