Commit 1ec7a831 by James E Wilson Committed by Jim Wilson

Fix for problem with unnecessary volatile mems.

PR target/13132
* function.c (gen_mem_addressof): When no decl, explicitly clear flag
bits.

From-SVN: r74543
parent a9f4e3d2
2003-12-11 James E Wilson <wilson@specifixinc.com>
PR target/13132
* function.c (gen_mem_addressof): When no decl, explicitly clear flag
bits.
2003-12-12 Nick Clifton <nickc@redhat.com>
* config/m32r/m32r.c: Convert to ISO-C
......
......@@ -2868,7 +2868,17 @@ gen_mem_addressof (rtx reg, tree decl, int rescan)
fixup_var_refs (reg, GET_MODE (reg), TREE_UNSIGNED (type), reg, 0);
}
else if (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);
}
return reg;
}
......
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