From: nickc Date: Sat, 22 Jan 2000 19:42:34 +0000 (+0000) Subject: catch a SUBREG containing a constant. X-Git-Tag: upstream/4.9.2~103596 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f3bdc5d43502db1bd97dc70caba3b9510074305;p=platform%2Fupstream%2Flinaro-gcc.git catch a SUBREG containing a constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31562 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a19dd4d..1b58f09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-01-22 Bernd Schmidt + + * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a + constant. + 2000-01-21 Jim Wilson * fixinc/inclhack.tpl: Test for directory before trying to cd into it. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index aa4801e..c3c5360 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2307,6 +2307,9 @@ soft_df_operand (op, mode) if (mode != VOIDmode && GET_MODE (op) != mode) return FALSE; + if (GET_CODE (op) == SUBREG && CONSTANT_P (SUBREG_REG (op))) + return FALSE; + if (GET_CODE (op) == SUBREG) op = SUBREG_REG (op);