http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51590
--- Comment #2 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2011-12-18
13:13:36 UTC ---
gcc version 4.7.0 20111218 (experimental) [trunk revision 182459] (GCC)
Fedora 16/x64
$ cat c51590.c
#include <sys/time.h>
extern void baz(char *);
static
void
bar( struct timeval *sv)
{
char bt[8];
int i;
for(i=0; i < 8; i++)
bt[i] = sv->tv_sec >> ( ( 7 - i ) * 8 );
baz(bt);
}
void
foo(const char *s)
{
struct timeval sp_cur;
int i;
for(i=0; *s; s++)
i++;
if(i != 1)
return;
bar(&sp_cur);
}
$ LANG=C gcc -O3 -Wall -Wextra -c c51590.c
c51590.c: In function 'foo':
c51590.c:19:1: internal compiler error: in gsi_for_stmt, at
gimple-iterator.c:560