From: Richard Henderson Date: Thu, 1 Aug 2002 23:07:33 +0000 (-0700) Subject: integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it refers to a subroutine... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32e9b9606f88e84fc2ffe07a094ed70b60633693;p=gcc.git integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it refers to a subroutine parameter. * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it refers to a subroutine parameter. From-SVN: r55956 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5993d719694..c65c89e5703 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-01 Richard Henderson + + * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it + refers to a subroutine parameter. + 2002-08-01 Jakub Jelinek * varasm.c (assemble_visibility): Strip name encoding. 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: