diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-31 21:33:36 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-31 21:33:36 +0000 |
commit | 950a71a0184cc582f057b6eb6881eaf19f5a7d36 (patch) | |
tree | cee06e75297d25e1f0121af4a80d33f1dffcfdb1 /gcc/final.c | |
parent | fd0d7f8c1b997249afb80ea8c293cf493d75e573 (diff) | |
download | gcc-950a71a0184cc582f057b6eb6881eaf19f5a7d36.tar.gz |
* final.c (alter_subreg): Assign REGNO after changing the rtx code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c index e875a7e8a7a..ffad9aef32c 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2754,8 +2754,9 @@ alter_subreg (xp) /* Simplify_subreg can't handle some REG cases, but we have to. */ else if (GET_CODE (y) == REG) { - REGNO (x) = subreg_hard_regno (x, 1); + unsigned int regno = subreg_hard_regno (x, 1); PUT_CODE (x, REG); + REGNO (x) = regno; ORIGINAL_REGNO (x) = ORIGINAL_REGNO (y); /* This field has a different meaning for REGs and SUBREGs. Make sure to clear it! */ |