2003-02-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
Backport following patch:
2002-08-01 Richard Henderson <rth@redhat.com>
* integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
refers to a subroutine parameter.
From-SVN: r62342
+2003-02-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ Backport following patch:
+
+ 2002-08-01 Richard Henderson <rth@redhat.com>
+
+ * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
+ refers to a subroutine parameter.
+
2003-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* cfgcleanup.c (try_forward_edges): Check for null insn.
if (inlining && !for_lhs)
RTX_UNCHANGING_P (copy) = 0;
+ /* If inlining, squish aliasing data that references the subroutine's
+ parameter list, since that's no longer applicable. */
+ if (inlining && MEM_EXPR (copy)
+ && TREE_CODE (MEM_EXPR (copy)) == INDIRECT_REF
+ && TREE_CODE (TREE_OPERAND (MEM_EXPR (copy), 0)) == PARM_DECL)
+ set_mem_expr (copy, NULL_TREE);
+
return copy;
default: