summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-12-29 21:35:02 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-12-29 16:35:02 -0500
commitc4e59f513be341b6616f6d1ed26dc7b7e32d932f (patch)
tree4b74e331666c431f6ed796be6e9e7e894fd44eb9 /gcc/integrate.c
parent44e3910ab7a6842e7435c1015d055c418761fa16 (diff)
downloadgcc-c4e59f513be341b6616f6d1ed26dc7b7e32d932f.tar.gz
expr.c (store_field): Use adjust_address, not PUT_MODE.
* expr.c (store_field): Use adjust_address, not PUT_MODE. (expand_expr, case VIEW_CONVERT_EXPR): Likewise. * reload1.c (eliminate_regs, case SUBREG): Likewise, but use adjust_address_nv. * varasm.c (make_decl_rtl): Likewise. * integrate.c (copy_rtx_and_substitute, case MEM): Likewise, but use replace_equiv_address_nv. From-SVN: r48387
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index ea389815a28..47c4a4db135 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -2263,10 +2263,9 @@ copy_rtx_and_substitute (orig, map, for_lhs)
return validize_mem (force_const_mem (const_mode, constant));
}
- copy = rtx_alloc (MEM);
- PUT_MODE (copy, mode);
- XEXP (copy, 0) = copy_rtx_and_substitute (XEXP (orig, 0), map, 0);
- MEM_COPY_ATTRIBUTES (copy, orig);
+ copy = replace_equiv_address_nv (orig,
+ copy_rtx_and_substitute (XEXP (orig, 0),
+ map, 0));
/* If inlining and this is not for the LHS, turn off RTX_UNCHANGING_P
since this may be an indirect reference to a parameter and the