summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 23:07:33 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 23:07:33 +0000
commit52964258ce3d663d267b005bbf1b1ab28d56973f (patch)
tree0ed3eef910c4ff1f772a13d5d0dd5f66e4b60aa3 /gcc/integrate.c
parentfdce0b7e6b7ac9b10a8c8ffdeb8233845aff475f (diff)
downloadgcc-52964258ce3d663d267b005bbf1b1ab28d56973f.tar.gz
* integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
refers to a subroutine parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index c7eb5069b1c..253d25414eb 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -2321,6 +2321,13 @@ copy_rtx_and_substitute (orig, map, for_lhs)
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: