rs6000.c (rs6000_frame_related): Avoid unwanted sharing of hard registers.
* rs6000.c (rs6000_frame_related): Avoid unwanted sharing of hard registers. From-SVN: r54615
This commit is contained in:
parent
556b821e7c
commit
e56c446321
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-06-13 Jeffrey Law <law@redhat.com>
|
||||
|
||||
* rs6000.c (rs6000_frame_related): Avoid unwanted sharing
|
||||
of hard registers.
|
||||
|
||||
2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* Makefile.in (libgcc.mk): Depend on specs.
|
||||
|
|
|
@ -8666,6 +8666,14 @@ rs6000_frame_related (insn, reg, val, reg2, rreg)
|
|||
{
|
||||
rtx real, temp;
|
||||
|
||||
/* copy_rtx will not make unique copies of registers, so we need to
|
||||
ensure we don't have unwanted sharing here. */
|
||||
if (reg == reg2)
|
||||
reg = gen_raw_REG (GET_MODE (reg), REGNO (reg));
|
||||
|
||||
if (reg == rreg)
|
||||
reg = gen_raw_REG (GET_MODE (reg), REGNO (reg));
|
||||
|
||||
real = copy_rtx (PATTERN (insn));
|
||||
|
||||
real = replace_rtx (real, reg,
|
||||
|
|
Loading…
Add table
Reference in a new issue