summaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-23 20:44:18 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-23 20:44:18 +0000
commit41d261a4be7d8f046820baa60801db27086c639c (patch)
treed0cb552ee66fbcf479e2a8496db9068b80fd32a0 /gcc/regrename.c
parentbacfcc02fd330714fd67275ffb681a6071291e2d (diff)
downloadgcc-41d261a4be7d8f046820baa60801db27086c639c.tar.gz
* regrename.c (do_replace): Copy REG_POINTER value to new reg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140616 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index e70dae8d139..b01c2e6b15b 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -357,11 +357,13 @@ do_replace (struct du_chain *chain, int reg)
{
unsigned int regno = ORIGINAL_REGNO (*chain->loc);
struct reg_attrs * attr = REG_ATTRS (*chain->loc);
+ int reg_ptr = REG_POINTER (*chain->loc);
*chain->loc = gen_raw_REG (GET_MODE (*chain->loc), reg);
if (regno >= FIRST_PSEUDO_REGISTER)
ORIGINAL_REGNO (*chain->loc) = regno;
REG_ATTRS (*chain->loc) = attr;
+ REG_POINTER (*chain->loc) = reg_ptr;
df_insn_rescan (chain->insn);
chain = chain->next_use;
}