aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-22 17:40:00 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-22 17:40:00 -0500
commitc34d858fbb9ea44399eebbe00172d5c4fe330126 (patch)
treecd09819d7e8c1329c513de52603fbefb6487318a /gcc/config/pa/pa.c
parentc671684018a1b1a6029eb48fea018f2eaf90c2c2 (diff)
downloadgcc-c34d858fbb9ea44399eebbe00172d5c4fe330126.zip
gcc-c34d858fbb9ea44399eebbe00172d5c4fe330126.tar.gz
gcc-c34d858fbb9ea44399eebbe00172d5c4fe330126.tar.bz2
(emit_move_sequence): Don't try to set REGNO_POINTER_FLAG for a SUBREG.
From-SVN: r10834
Diffstat (limited to 'gcc/config/pa/pa.c')
-rw-r--r--gcc/config/pa/pa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index baee1c5..3b201cd 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -1033,7 +1033,8 @@ emit_move_sequence (operands, mode, scratch_reg)
safe to be used as the base in an indexed address.
Don't mark hard registers though. That loses. */
- if (REGNO (operand0) >= FIRST_PSEUDO_REGISTER)
+ if (GET_CODE (operand0) == REG
+ && REGNO (operand0) >= FIRST_PSEUDO_REGISTER)
REGNO_POINTER_FLAG (REGNO (operand0)) = 1;
if (REGNO (temp) >= FIRST_PSEUDO_REGISTER)
REGNO_POINTER_FLAG (REGNO (temp)) = 1;