[Bug middle-end/54862] [4.8 Regression] error: comparison between signed and unsigned integer expressions in simplify-rtx.c

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 9 11:54:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54862

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-10-09
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-09 11:53:57 UTC ---
Created attachment 28397
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28397
gcc48-pr54862.patch

Untested fix.  Guess you get the warning only for 32-bit HWI host/target
combinations.  We shouldn't try to optimize anything for negative shift counts,
so IMHO using UINTVAL is the right thing to do.



More information about the Gcc-bugs mailing list