This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree-ssa bug?
- From: Eyal Lebedinsky <eyal at eyal dot emu dot id dot au>
- To: "list, gcc" <gcc at gcc dot gnu dot org>, "Eigler, Frank Ch." <fche at redhat dot com>
- Date: Thu, 03 Apr 2003 22:28:06 +1000
- Subject: tree-ssa bug?
- Organization: Eyal at Home
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 at eyal dot emu dot id dot au) <http://samba.org/eyal/>