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
This commit is contained in:
parent
82a6a7583c
commit
886733617a
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-04-08 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2004-04-08 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
PR target/14888
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue