https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62208
--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> --- (In reply to Richard Biener from comment #1) > Can't reproduce it. Richard, it still fails for me with r214255. The linker I use is GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 if that is relevant. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 5.0.0 20140821 (experimental) [trunk revision 214255] (GCC) $ $ ld -v GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 $ $ gcc-trunk -flto -m32 -O3 small.c small.c: In function ‘main’: small.c:21:1: internal compiler error: in trunc_int_for_mode, at explow.c:56 } ^ 0x627bd0 trunc_int_for_mode(long, machine_mode) ../../gcc-trunk/gcc/explow.c:56 0x616438 gen_int_mode(long, machine_mode) ../../gcc-trunk/gcc/emit-rtl.c:437 0x8d15cc simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:1735 0x8ceb9a simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:814 0x8cff40 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:387 0xe124be if_then_else_cond ../../gcc-trunk/gcc/combine.c:8615 0xe1d34e combine_simplify_rtx ../../gcc-trunk/gcc/combine.c:5262 0xe1fbca subst ../../gcc-trunk/gcc/combine.c:5199 0xe1f8e8 subst ../../gcc-trunk/gcc/combine.c:5144 0xe1f8e8 subst ../../gcc-trunk/gcc/combine.c:5144 0xe22144 try_combine ../../gcc-trunk/gcc/combine.c:3134 0xe27fad combine_instructions ../../gcc-trunk/gcc/combine.c:1280 0xe27fad rest_of_handle_combine ../../gcc-trunk/gcc/combine.c:13896 0xe27fad execute ../../gcc-trunk/gcc/combine.c:13939 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: gcc-trunk returned 1 exit status compilation terminated. /usr/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status $