From c4e59f513be341b6616f6d1ed26dc7b7e32d932f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 29 Dec 2001 21:35:02 +0000 Subject: 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 --- gcc/varasm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index aabdd17..419791d 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -840,10 +840,8 @@ make_decl_rtl (decl, asmspec) { /* If the old RTL had the wrong mode, fix the mode. */ if (GET_MODE (DECL_RTL (decl)) != DECL_MODE (decl)) - { - rtx rtl = DECL_RTL (decl); - PUT_MODE (rtl, DECL_MODE (decl)); - } + SET_DECL_RTL (decl, adjust_address_nv (DECL_RTL (decl), + DECL_MODE (decl), 0)); /* ??? Another way to do this would be to do what halfpic.c does and maintain a hashed table of such critters. */ -- cgit v1.1