This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33381] [4.2 regression] miscompilation casting signed long to void*
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2007 13:04:06 -0000
- Subject: [Bug target/33381] [4.2 regression] miscompilation casting signed long to void*
- References: <bug-33381-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-09-21 13:04 -------
Shorter testcase:
void x(void *data);
void test()
{
long i;
for (i = 0; i < 5; i++)
if (i > 0)
x((void *)(i - 1));
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33381