Commit a00285d0 by Richard Kenner

(assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is

read-only.

From-SVN: r11944
parent 462da2af
...@@ -3463,8 +3463,10 @@ assign_parms (fndecl, second_time) ...@@ -3463,8 +3463,10 @@ assign_parms (fndecl, second_time)
internal_arg_pointer, offset_rtx)); internal_arg_pointer, offset_rtx));
/* If this is a memory ref that contains aggregate components, /* 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; 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, /* If this parameter was passed both in registers and in the stack,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment