aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2001-11-02 22:17:11 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2001-11-02 22:17:11 +0000
commitbafe341a4fa148de96ed187c17fd6ff43d8dce1c (patch)
tree95dff97480990ef8cb75822c4c129c751c04cb4c /gcc/expr.c
parentbb33f166a569d867b1bdf207e183f63cfb634682 (diff)
downloadgcc-bafe341a4fa148de96ed187c17fd6ff43d8dce1c.zip
gcc-bafe341a4fa148de96ed187c17fd6ff43d8dce1c.tar.gz
gcc-bafe341a4fa148de96ed187c17fd6ff43d8dce1c.tar.bz2
expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory.
* expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory. From-SVN: r46722
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index bf7ec92..32b193a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -544,9 +544,9 @@ convert_move (to, from, unsignedp)
abort ();
if (VECTOR_MODE_P (to_mode))
- from = gen_rtx_SUBREG (to_mode, from, 0);
+ from = simplify_gen_subreg (to_mode, from, GET_MODE (from), 0);
else
- to = gen_rtx_SUBREG (from_mode, to, 0);
+ to = simplify_gen_subreg (from_mode, to, GET_MODE (to), 0);
emit_move_insn (to, from);
return;