public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12654] New: Incorrect comparison code generated for Alpha
@ 2003-10-17  2:08 tg at swox dot com
  2003-10-17  9:52 ` [Bug c/12654] [3.3/3.4 regression] " falk at debian dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: tg at swox dot com @ 2003-10-17  2:08 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Incorrect comparison code generated for Alpha
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tg at swox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alpha-unknown-freebsd4.5
  GCC host triplet: alpha-unknown-freebsd4.5
GCC target triplet: alpha-unknown-freebsd4.5

No particular compiler options are needed.  Somebody hacking gcc these days
have some serious problems with understanding two's complement arithmetic...!

Test case:

foo (long x)
{
  if (x >= 1024)
    abort ();
}
main ()
{
  foo (~((unsigned long) (~0L) >> 1));
  foo (~((unsigned long) (~0L) >> 1) + 10000);
  exit (0);
}


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

end of thread, other threads:[~2003-10-27 22:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17  2:08 [Bug c/12654] New: Incorrect comparison code generated for Alpha tg at swox dot com
2003-10-17  9:52 ` [Bug c/12654] [3.3/3.4 regression] " falk at debian dot org
2003-10-17 15:25 ` tg at swox dot com
2003-10-17 15:58 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-17 21:01 ` falk at debian dot org
2003-10-17 22:01 ` [Bug target/12654] " pinskia at gcc dot gnu dot org
2003-10-17 23:29 ` tg at swox dot com
2003-10-18 14:23 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-18 14:31 ` tg at swox dot com
2003-10-18 15:20 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-19  7:08 ` tg at swox dot com
2003-10-20  8:05 ` cvs-commit at gcc dot gnu dot org
2003-10-20  8:35 ` falk at debian dot org
2003-10-23  0:23 ` wilson at specifixinc dot com
2003-10-27 20:56 ` cvs-commit at gcc dot gnu dot org
2003-10-27 22:04 ` tg at swox dot com
2003-10-27 23:12 ` falk dot hueffner at student dot uni-tuebingen dot de

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).