This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51590] [4.7 Regression] ICE in gsi_for_stmt, at gimple-iterator.c:560
- From: "dimhen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Dec 2011 13:13:36 +0000
- Subject: [Bug middle-end/51590] [4.7 Regression] ICE in gsi_for_stmt, at gimple-iterator.c:560
- Auto-submitted: auto-generated
- References: <bug-51590-4@http.gcc.gnu.org/bugzilla/>
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