diff options
| author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-22 19:42:34 +0000 |
|---|---|---|
| committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-22 19:42:34 +0000 |
| commit | 3f3bdc5d43502db1bd97dc70caba3b9510074305 (patch) | |
| tree | 42e76b40d6e089b13662bc396f693d76d4495d7c | |
| parent | fa28adb89d083c03ffc4b8638d1a24a0688997ee (diff) | |
| download | ppe42-gcc-3f3bdc5d43502db1bd97dc70caba3b9510074305.tar.gz ppe42-gcc-3f3bdc5d43502db1bd97dc70caba3b9510074305.zip | |
catch a SUBREG containing a constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31562 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/arm/arm.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a19dd4d2854..1b58f09af17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk> + + * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a + constant. + 2000-01-21 Jim Wilson <wilson@cygnus.com> * 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 aa4801e11c5..c3c5360923b 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); |

