diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-04-09 01:38:12 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-04-09 01:38:12 +0000 |
commit | 886733617a5414bf849d049b04df5ba6460295fe (patch) | |
tree | 06f7266f4df4a49e7aa5ea53c513e9fd1b4c020e /gcc/function.c | |
parent | 82a6a7583c61ea85cbe36170cab00b2bdab8cf03 (diff) | |
download | gcc-886733617a5414bf849d049b04df5ba6460295fe.zip gcc-886733617a5414bf849d049b04df5ba6460295fe.tar.gz gcc-886733617a5414bf849d049b04df5ba6460295fe.tar.bz2 |
function.c (gen_mem_addressof): When changing the RTX from a REG to a MEM...
* function.c (gen_mem_addressof): When changing the RTX from a REG
to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
From-SVN: r80540
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index 90de284..e030864 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2856,6 +2856,7 @@ gen_mem_addressof (rtx reg, tree decl, int rescan) RTX_UNCHANGING_P (XEXP (r, 0)) = RTX_UNCHANGING_P (reg); PUT_CODE (reg, MEM); + MEM_VOLATILE_P (reg) = 0; MEM_ATTRS (reg) = 0; XEXP (reg, 0) = r; @@ -2888,11 +2889,9 @@ gen_mem_addressof (rtx reg, tree decl, int rescan) { /* This can only happen during reload. Clear the same flag bits as reload. */ - MEM_VOLATILE_P (reg) = 0; RTX_UNCHANGING_P (reg) = 0; MEM_IN_STRUCT_P (reg) = 0; MEM_SCALAR_P (reg) = 0; - MEM_ATTRS (reg) = 0; fixup_var_refs (reg, GET_MODE (reg), 0, reg, 0); } |