http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55193
Bug #: 55193 Summary: ICE in in simplify_const_unary_operation, at simplify-rtx.c:1659 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: martin.kronbich...@it.uu.se Created attachment 28603 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28603 Delta-reduced test case With gcc trunk (rev 193123) on x86-64 linux: $ g++-4.8 -v Using built-in specs. COLLECT_GCC=g++-4.8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-linux-gnu/4.8.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../gcc_trunk/configure --enable-languages=c,c++,fortran --prefix=/usr/local --program-suffix=-4.8 --enable-shared --enable-linker-build-id --with-system-zlib --without-included-gettext --enable-threads=posix --enable-nls --enable-libstdcxx-time=yes --disable-multilib --enable-plugin --disable-werror --with-tune=corei7-avx --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-isl=/usr/local --with-cloog=/usr/local Thread model: posix gcc version 4.8.0 20121103 (experimental) (GCC) I compile the attached test case with command line: $ g++-4.8 -g -Og testcase2.i -c which leads to the ICE below. The error only appears with both -Og and -g specified. testcase2.i: In function ‘void foo(FEValues&, Tensor&, vector<double>&)’: testcase2.i:49:7: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1659 } ^ 0x8a7063 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc_trunk/gcc/simplify-rtx.c:1659 0x89ddda simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc_trunk/gcc/simplify-rtx.c:783 0x698a50 cselib_expand_value_rtx_1 ../../gcc_trunk/gcc/cselib.c:1826 0x699d6e cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) ../../gcc_trunk/gcc/cselib.c:1534 0xa27488 vt_expand_var_loc_chain ../../gcc_trunk/gcc/var-tracking.c:8063 0xa27488 vt_expand_loc_callback ../../gcc_trunk/gcc/var-tracking.c:8225 0x69891f cselib_expand_value_rtx_1 ../../gcc_trunk/gcc/cselib.c:1687 0x699d6e cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) ../../gcc_trunk/gcc/cselib.c:1534 0xa27cb7 vt_expand_var_loc_chain ../../gcc_trunk/gcc/var-tracking.c:8063 0xa27cb7 vt_expand_1pvar ../../gcc_trunk/gcc/var-tracking.c:8340 0xa2832f emit_note_insn_var_location ../../gcc_trunk/gcc/var-tracking.c:8394 0xd1da97 htab_traverse_noresize ../../gcc_trunk/libiberty/hashtab.c:784 0xa28cd7 emit_notes_for_changes ../../gcc_trunk/gcc/var-tracking.c:8757 0xa290c1 emit_notes_in_bb ../../gcc_trunk/gcc/var-tracking.c:9187 0xa290c1 vt_emit_notes ../../gcc_trunk/gcc/var-tracking.c:9249 0xa29839 variable_tracking_main_1 ../../gcc_trunk/gcc/var-tracking.c:10068 0xa29839 variable_tracking_main() ../../gcc_trunk/gcc/var-tracking.c:10082