summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-25 23:14:14 +0000
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-25 23:14:14 +0000
commitf0bc741131e098f6422cbb3680457419e4238003 (patch)
tree1d85f341e9733337f4c46eca42129f144c2d6acc /gcc/expmed.c
parent270558660638f13dd047b61733970e96d145e1f0 (diff)
downloadgcc-f0bc741131e098f6422cbb3680457419e4238003.tar.gz
Fix bootstrap failure.
* expmed.c (store_bit_field): Don't compare bitsize against modes with zero bit-size. (extract_bit_field): Likewise git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index da631c940d8..cb30ff35db6 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -335,6 +335,7 @@ store_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
+ (offset * UNITS_PER_WORD);
if (bitpos == 0
+ && GET_MODE_BITSIZE (fieldmode) != 0
&& bitsize >= GET_MODE_BITSIZE (fieldmode)
&& (GET_CODE (op0) != MEM
? ((GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD
@@ -1032,6 +1033,7 @@ extract_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
if (GET_CODE (op0) == REG
&& mode == GET_MODE (op0)
&& bitnum == 0
+ && GET_MODE_BITSIZE (GET_MODE (op0)) != 0
&& bitsize >= GET_MODE_BITSIZE (GET_MODE (op0)))
{
/* We're trying to extract a full register from itself.