summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-10 10:37:48 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-10 10:37:48 +0000
commit0fe7e65892ff0d74245a1954e3362cea45367d2b (patch)
tree33b0effff85ecacb59052124fc74060179a3db2a /gcc/reload1.c
parent8e332e0eb157067efd0e3df6ac871742da1f077a (diff)
downloadgcc-0fe7e65892ff0d74245a1954e3362cea45367d2b.tar.gz
2006-12-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
* reload1.c (choose_reload_regs): Don't set byte offset when resolving subregs of hard regs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index fdab86cff87..454383581e8 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -5622,10 +5622,11 @@ choose_reload_regs (struct insn_chain *chain)
else if (GET_CODE (rld[r].in_reg) == SUBREG
&& REG_P (SUBREG_REG (rld[r].in_reg)))
{
- byte = SUBREG_BYTE (rld[r].in_reg);
regno = REGNO (SUBREG_REG (rld[r].in_reg));
if (regno < FIRST_PSEUDO_REGISTER)
regno = subreg_regno (rld[r].in_reg);
+ else
+ byte = SUBREG_BYTE (rld[r].in_reg);
mode = GET_MODE (rld[r].in_reg);
}
#ifdef AUTO_INC_DEC