public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* tree-ssa bug?
@ 2003-04-03 13:26 Eyal Lebedinsky
  2003-04-03 14:18 ` Eyal Lebedinsky
  2003-04-03 16:27 ` Diego Novillo
  0 siblings, 2 replies; 3+ messages in thread
From: Eyal Lebedinsky @ 2003-04-03 13:26 UTC (permalink / raw)
  To: list, gcc, Eigler, Frank Ch.

Built off CVS branch tree-ssa-20020619-branch.
Linux 2.4, i386

OK, here is another very strange result, took me a bit of time to track
this one down.
  -------------------------------------------
#!/bin/sh

cat >zz.c <<EOF
#include <stdio.h>

#define XXX 2147483647

int main ()
{
        unsigned long count = 8;

        if (count > XXX)
                fprintf (stderr, "wow!\n");

        return (0);
}
EOF

/usr/local/gcc-mudflap/bin/i686-pc-linux-gnu-gcc-3.5-tree-ssa -fmudflap
\
        -Wall -o zz zz.c
./zz
  -------------------------------------------
The reult is:
wow!

Looks like a bug to me. Same result when the constant is
	0x7fffffff
or
	0x7fffffffUL

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

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

end of thread, other threads:[~2003-04-03 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-03 13:26 tree-ssa bug? Eyal Lebedinsky
2003-04-03 14:18 ` Eyal Lebedinsky
2003-04-03 16:27 ` Diego Novillo

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