http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47948
Summary: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 23510 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23510 reduced testcase Compiler output: $ gcc -mno-sse2 testcase.c testcase.c: In function 'foo': testcase.c:5:3: internal compiler error: in emit_move_insn, at expr.c:3355 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) bt #0 fancy_abort (file=0x110b640 "/mnt/svn/gcc-trunk/gcc/expr.c", line=3355, function=0x110c9e5 "emit_move_insn") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892 #1 0x00000000006b0eb9 in emit_move_insn (x=0x7ffff7fc3ba0, y=0x7ffff7fc3b40) at /mnt/svn/gcc-trunk/gcc/expr.c:3354 #2 0x00000000008ca7d1 in expand_value_return (val=0x7ffff7fc3b40) at /mnt/svn/gcc-trunk/gcc/stmt.c:1631 #3 0x00000000008d066b in expand_return (retval=0x7ffff7ff9118) at /mnt/svn/gcc-trunk/gcc/stmt.c:1815 #4 0x00000000005e0e8b in expand_gimple_stmt_1 (stmt=0x7ffff7fbd510) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:1951 #5 expand_gimple_stmt (stmt=0x7ffff7fbd510) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2080 #6 0x00000000005e2f29 in expand_gimple_basic_block (bb=0x7ffff7fb81a0) at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:3609 #7 0x00000000005e81d9 in gimple_expand_cfg () at /mnt/svn/gcc-trunk/gcc/cfgexpand.c:4092 #8 0x00000000007f7056 in execute_one_pass (pass=0x1638ac0) at /mnt/svn/gcc-trunk/gcc/passes.c:1556 #9 0x00000000007f7355 in execute_pass_list (pass=0x1638ac0) at /mnt/svn/gcc-trunk/gcc/passes.c:1611 #10 0x000000000093a2b6 in tree_rest_of_compilation (fndecl=0x7ffff7fbac00) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 #11 0x0000000000b02312 in cgraph_expand_function (node=0x7ffff5b87000) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1576 #12 0x0000000000b04d4d in cgraph_output_in_order () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1733 #13 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1894 #14 0x0000000000b04fda in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1096 #15 0x00000000005097bc in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:9872 #16 0x00000000008e3248 in compile_file (argc=13, argv=0x7fffffffdba8) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 #17 do_compile (argc=13, argv=0x7fffffffdba8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1900 #18 toplev_main (argc=13, argv=0x7fffffffdba8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1963 #19 0x00007ffff6446bbd in __libc_start_main () from /lib/libc.so.6 #20 0x00000000004f036d in _start () It doesn't ICE with -m32. Tested revisions: r170594 - crash 4.5 r170013 - crash 4.4 r170013 - crash