diff options
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 800e65e..61b93dd 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -9355,8 +9355,16 @@ gen_lowpart_for_combine (enum machine_mode omode, rtx x) if (GET_CODE (x) == SUBREG && MEM_P (SUBREG_REG (x))) { x = SUBREG_REG (x); - if (GET_MODE (x) == omode) + + /* For use in case we fall down into the address adjustments + further below, we need to adjust the known mode and size of + x; imode and isize, since we just adjusted x. */ + imode = GET_MODE (x); + + if (imode == omode) return x; + + isize = GET_MODE_SIZE (imode); } result = gen_lowpart_common (omode, x); |