Skip to content

Commit

Permalink
reload1.c (choose_reload_regs): Don't set byte offset when resolving …
Browse files Browse the repository at this point in the history
…subregs of hard regs.

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.

From-SVN: r119705
  • Loading branch information
Rask Ingemann Lambertsen authored and Richard Sandiford committed Dec 10, 2006
1 parent 566c618 commit 15447fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2006-12-10 Rask Ingemann Lambertsen <rask@sygehus.dk>

* reload1.c (choose_reload_regs): Don't set byte offset when
resolving subregs of hard regs.

2006-12-09 Zack Weinberg <zackw@panix.com>

* c-opts.c (c_common_parse_file): Unconditionally give a warning,
Expand Down
3 changes: 2 additions & 1 deletion gcc/reload1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15447fa

Please sign in to comment.