reg...@john-home:~/volatile/bugs/tmp319$ current-gcc -v Using built-in specs. COLLECT_GCC=current-gcc COLLECT_LTO_WRAPPER=/home/regehr/z/compiler-install/gcc-r161425-install/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../configure --with-libelf=/usr/local --enable-lto --prefix=/home/regehr/z/compiler-install/gcc-r161425-install --program-prefix=r161425- --enable-languages=c,c++ Thread model: posix gcc version 4.6.0 20100626 (experimental) (GCC)
reg...@john-home:~/volatile/bugs/tmp319$ current-gcc -O2 small.c -c small.c: In function int81: small.c:20:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5117 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. reg...@john-home:~/volatile/bugs/tmp319$ cat small.c typedef int int32_t; typedef unsigned char uint8_t; static uint8_t safe_div_func_uint8_t_u_u (uint8_t ui1, uint8_t ui2) { return ui2 ? : (ui1 / ui2); } int safe (int); int func_51 (int); void int81 (void) { int32_t l_219 = 8L; if (safe (safe_div_func_uint8_t_u_u (1 || 0, l_219 & func_51 (0)))) { } } -- Summary: ice in simplify_subreg, at simplify-rtx.c:5117 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: regehr at cs dot utah dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44695