public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/21862] New: strength reduction uses signed comparisons for pointers
@ 2005-06-01 13:10 jakub at gcc dot gnu dot org
  2005-06-01 13:11 ` [Bug middle-end/21862] " jakub at gcc dot gnu dot org
  2005-06-01 13:18 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-06-01 13:10 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-01 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-01 13:10 [Bug middle-end/21862] New: strength reduction uses signed comparisons for pointers jakub at gcc dot gnu dot org
2005-06-01 13:11 ` [Bug middle-end/21862] " jakub at gcc dot gnu dot org
2005-06-01 13:18 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).