From 32e9b9606f88e84fc2ffe07a094ed70b60633693 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 1 Aug 2002 16:07:33 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/integrate.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5993d71..c65c89e 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 c7eb506..253d254 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: -- 2.7.4