Commit 32e9b960 by Richard Henderson Committed by Richard Henderson

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
parent 3450b8d0
2002-08-01 Richard Henderson <rth@redhat.com>
* integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
refers to a subroutine parameter.
2002-08-01 Jakub Jelinek <jakub@redhat.com> 2002-08-01 Jakub Jelinek <jakub@redhat.com>
* varasm.c (assemble_visibility): Strip name encoding. * varasm.c (assemble_visibility): Strip name encoding.
......
...@@ -2321,6 +2321,13 @@ copy_rtx_and_substitute (orig, map, for_lhs) ...@@ -2321,6 +2321,13 @@ copy_rtx_and_substitute (orig, map, for_lhs)
if (inlining && !for_lhs) if (inlining && !for_lhs)
RTX_UNCHANGING_P (copy) = 0; 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; return copy;
default: 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