Fix PR52786

Submitted by Richard Guenther on March 30, 2012, 9:18 a.m.

Details

Message ID Pine.LNX.4.64.1203301116400.25270@jbgna.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;