aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-07-08 13:01:07 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-07-08 13:01:07 +0000
commit86cdf39313b1c1bd212037be84f9161eda0d4c7f (patch)
treed5780f4ad38c2371eec831aa78e778dd46d0209d /gcc
parent69660a709191cd559cfeb9170b1cad9c1e5daae4 (diff)
downloadgcc-86cdf39313b1c1bd212037be84f9161eda0d4c7f.zip
gcc-86cdf39313b1c1bd212037be84f9161eda0d4c7f.tar.gz
gcc-86cdf39313b1c1bd212037be84f9161eda0d4c7f.tar.bz2
rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against a bitsize.
* rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against a bitsize. From-SVN: r176039
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/rtlanal.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ff37cda..151211b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -13,6 +13,9 @@
* convert.c (convert_to_integer): Likewise.
* expmed.c (expand_shift_1): Likewise.
+ * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
+ a bitsize.
+
2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* Makefile.in (LIBGCOV): Remove.
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index ac9da15..76aa79a 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3993,7 +3993,7 @@ nonzero_bits1 (const_rtx x, enum machine_mode mode, const_rtx known_x,
nonzero = 1;
#endif
- if (GET_MODE_SIZE (GET_MODE (x)) < mode_width)
+ if (GET_MODE_PRECISION (GET_MODE (x)) < mode_width)
nonzero |= (GET_MODE_MASK (mode) & ~GET_MODE_MASK (GET_MODE (x)));
break;