[Bug middle-end/21862] New: strength reduction uses signed comparisons for pointers

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 13:10:00 GMT 2005


The attached testcase fails on i386-linux (as well as x86_64-linux -m32).
It computes the p + (MAP_LEN / 0x100) * 0x100 end pointer, but instead of
doing unsigned comparison on the pointers, it does a signed one,
which obviously doesn't work if the pointer has topmost bit set.

-- 
           Summary: strength reduction uses signed comparisons for pointers
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-linux


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



More information about the Gcc-bugs mailing list