diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-29 17:35:57 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-29 17:35:57 +0000 |
commit | 22cf44bc1d44921146a9f3345a6e922ecfd0e889 (patch) | |
tree | 82c339206e63aab7b8cc6be35db94ce2f5dc014a /gcc/regrename.c | |
parent | a396ebb9d59ba8bb4cdb424e4def201c00c57f7e (diff) | |
download | gcc-22cf44bc1d44921146a9f3345a6e922ecfd0e889.tar.gz |
Introduce ORIGINAL_REGNO macro
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r-- | gcc/regrename.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c index bca986d24a4..bb45f3a2953 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -349,7 +349,9 @@ do_replace (chain, reg) { while (chain) { - *chain->loc = gen_rtx_REG (GET_MODE (*chain->loc), reg); + unsigned int regno = ORIGINAL_REGNO (*chain->loc); + *chain->loc = gen_raw_REG (GET_MODE (*chain->loc), reg); + ORIGINAL_REGNO (*chain->loc) = regno; chain = chain->next_use; } } |