This fixes PR52786 which I did not see in my testing (huh).  I suppose
hppa*-*-* has unsigned HOST_WIDE_INT == unsigned int and we suppress
the sign-compare warning for unsigned long >= (long) unsigned int

Committed as obvious.

Richard.

2012-03-30  Richard Guenther  <rguent...@suse.de>

        PR middle-end/52786
        * double-int.c (rshift_double): Remove not needed cast.

Index: gcc/double-int.c
===================================================================
--- gcc/double-int.c    (revision 185994)
+++ gcc/double-int.c    (working copy)
@@ -228,7 +228,7 @@ rshift_double (unsigned HOST_WIDE_INT l1
 
   /* Zero / sign extend all bits that are beyond the precision.  */
 
-  if (count >= (HOST_WIDE_INT)prec)
+  if (count >= prec)
     {
       *hv = signmask;
       *lv = signmask;

Reply via email to