[Bug c/50996] segfault cross-compiling for lm32
rubini at gnudd dot com
gcc-bugzilla@gcc.gnu.org
Sat Nov 5 17:21:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50996
--- Comment #1 from Alessandro Rubini <rubini at gnudd dot com> 2011-11-05 17:20:41 UTC ---
I removed more stuff. What follows is the minimal file that triggers
the error. Swapping the && operands won't make it segfault
void
envz_entry(char *envz)
{
char *buf_ptr = (char *)envz;
while(1)
while(*buf_ptr && buf_ptr != envz)
buf_ptr--;
}
More information about the Gcc-bugs
mailing list