diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-05-06 18:45:05 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-05-06 18:45:05 -0400 |
commit | a00285d03514d4c4b2e627a1d4cb453afcdf3d43 (patch) | |
tree | 56c60ad8c33b0a980a0b300971a8bda9d46fb862 /gcc/function.c | |
parent | 462da2af3d07b8e67cbf296744326dd7ba49772b (diff) | |
download | gcc-a00285d03514d4c4b2e627a1d4cb453afcdf3d43.zip gcc-a00285d03514d4c4b2e627a1d4cb453afcdf3d43.tar.gz gcc-a00285d03514d4c4b2e627a1d4cb453afcdf3d43.tar.bz2 |
(assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm is
read-only.
From-SVN: r11944
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index 4d0966f..0af5a69 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, |