This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/33381] [4.2 regression] miscompilation casting signed long to void*



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]