tree-ssa bug?

Eyal Lebedinsky eyal@eyal.emu.id.au
Thu Apr 3 13:26:00 GMT 2003


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/>



More information about the Gcc mailing list