http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49710
Summary: segfault Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: reg...@cs.utah.edu [regehr@gamow tmp037]$ current-gcc -v Using built-in specs. COLLECT_GCC=current-gcc COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r176182-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --with-libelf=/usr/local --enable-lto --prefix=/home/regehr/z/compiler-install/gcc-r176182-install --program-prefix=r176182- --enable-languages=c,c++ Thread model: posix gcc version 4.7.0 20110711 (experimental) (GCC) [regehr@gamow tmp037]$ current-gcc -Ofast -funroll-loops small.c small.c: In function 'func_62.constprop.0': small.c:24:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [regehr@gamow tmp037]$ cat small.c int safe_62 (int ui1, int ui2) { return ui1 + 1; } int g_3; int g_9; int g_21; int g_143; static int func_62 (int *p_66) { lbl_334: for (g_21 = 0;;) { if (*p_66) break; for (; g_9;) for (; g_21; g_21 = 0) ; for (g_143 = 18; g_143 != 18; g_143 = safe_62 (g_143, 0)) if (g_21) goto lbl_334; } return 0; } static const int *func_24 (void) { func_62 (0); func_62 (0); for (;;) ; } int func_1 (void) { for (; g_3;) return 0; func_24 (); return 0; } int main (void) { return 0; }