Patchwork Fix PR52786

login
register
mail settings
Submitter Richard Guenther
Date March 30, 2012, 9:18 a.m.
Message ID <Pine.LNX.4.64.1203301116400.25270@jbgna.fhfr.qr>
Download mbox | patch
Permalink /patch/149592/
State New
Headers show

Comments

Richard Guenther - March 30, 2012, 9:18 a.m.
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  <rguenther@suse.de>

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

Patch

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;