diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-12-29 21:35:02 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-12-29 16:35:02 -0500 |
commit | c4e59f513be341b6616f6d1ed26dc7b7e32d932f (patch) | |
tree | 4b74e331666c431f6ed796be6e9e7e894fd44eb9 /gcc/varasm.c | |
parent | 44e3910ab7a6842e7435c1015d055c418761fa16 (diff) | |
download | gcc-c4e59f513be341b6616f6d1ed26dc7b7e32d932f.zip gcc-c4e59f513be341b6616f6d1ed26dc7b7e32d932f.tar.gz gcc-c4e59f513be341b6616f6d1ed26dc7b7e32d932f.tar.bz2 |
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/varasm.c')
-rw-r--r-- | gcc/varasm.c | 6 |
1 files changed, 2 insertions, 4 deletions
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. */ |