summaryrefslogtreecommitdiffstats
path: root/gcc/final.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c
index bbdb59eb13e..0d9d2a3bb61 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3169,6 +3169,7 @@ alter_subreg (x)
#endif
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! */
x->used = 0;
OpenPOWER on IntegriCloud