Commit 9674c842 by Richard Kenner Committed by Richard Kenner

integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS,…

integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.

	* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
	and not for LHS, clear RTX_UNCHANGING_P.

From-SVN: r48337
parent 0b264069
Thu Dec 27 20:39:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
and not for LHS, clear RTX_UNCHANGING_P.
2001-12-28 Philipp Thomas <pthomas@suse.de>
* cppfiles.c (stack_include_file): Don't translate <stdin>.
......
......@@ -2267,6 +2267,13 @@ copy_rtx_and_substitute (orig, map, for_lhs)
PUT_MODE (copy, mode);
XEXP (copy, 0) = copy_rtx_and_substitute (XEXP (orig, 0), map, 0);
MEM_COPY_ATTRIBUTES (copy, orig);
/* If inlining and this is not for the LHS, turn off RTX_UNCHANGING_P
since this may be an indirect reference to a parameter and the
actual may not be readonly. */
if (inlining && !for_lhs)
RTX_UNCHANGING_P (copy) = 0;
return copy;
default:
......
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