http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52914
Bug #: 52914 Summary: ICE in simplify_const_unary_operation, at simplify-rtx.c:1464 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: reg...@cs.utah.edu CC: cheny...@cs.utah.edu [regehr@dyson r13]$ current-gcc -O1 -c small.c small.c: In function 'fn3': small.c:16:1: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1464 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [regehr@dyson r13]$ cat small.c int a, b, c, f, g, h, i; unsigned d; int e[0]; int fn1 () { return 0; } static char fn2 (); void fn3 () { for (; c; c += 1) fn2 (); } char fn2 () { int j = -3L; d = 0; for (;; d = 1) { if (e[d]) g = fn1 (); i = (b ^ 1) < 0 ? b : h; i || (a = 1) ? 0 : 0; if (0 >= f <= j) ; else return 0; } } [regehr@dyson r13]$ current-gcc -v Using built-in specs. COLLECT_GCC=current-gcc COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r186233-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.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-r186233-install --program-prefix=r186233- --enable-languages=c,c++ Thread model: posix gcc version 4.8.0 20120409 (experimental) (GCC)