http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52020
Bug #: 52020 Summary: ICE in immed_double_const, at emit-rtl.c:544 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassig...@gcc.gnu.org ReportedBy: greta.yo...@arm.com CC: m...@suse.de, ram...@gcc.gnu.org Target: arm-none-eabi Regression PASS->FAIL: gcc.target/arm/pr48183.c (internal compiler error) on arm-none-eabi. Revision that introduced the problem: r183566, patch described here: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg01387.html ./cc1 -quiet /work/local-checkouts/main/gcc-fsf/gcc/testsuite/gcc.target/arm/pr48183.c -O -o /work/tmp/pr48183.s -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon -iprefix /work/builds/a15-jan/install/lib/gcc/arm-none-eabi/4.7.0/ -g /work/local-checkouts/main/gcc-fsf/gcc/testsuite/gcc.target/arm/pr48183.c: In function 'move_16bit_to_32bit': /work/local-checkouts/main/gcc-fsf/gcc/testsuite/gcc.target/arm/pr48183.c:10:6: internal compiler error: in immed_double_const, at emit-rtl.c:544 (gdb) info stack #0 fancy_abort (file=0xe15150 "/work/local-checkouts/main/gcc-fsf/gcc/emit-rtl.c", line=544, function=0xe15ff0 "immed_double_const") at /work/local-checkouts/main/gcc-fsf/gcc/diagnostic.c:898 #1 0x0000000000648f5c in immed_double_const (i0=0, i1=<value optimised out>, mode=OImode) at /work/local-checkouts/main/gcc-fsf/gcc/emit-rtl.c:544 #2 0x000000000066d8cb in expand_expr_real_1 (exp=0x7ffff70d8fa0, target=0x0, tmode=<value optimised out>, modifier=<value optimised out>, alt_rtl=0x0) at /work/local-checkouts/main/gcc-fsf/gcc/expr.c:9118 #3 0x00000000005aa46d in expand_expr (exp=0x7ffff70d8fa0) at /work/local-checkouts/main/gcc-fsf/gcc/expr.h:442 #4 expand_debug_expr (exp=0x7ffff70d8fa0) at /work/local-checkouts/main/gcc-fsf/gcc/cfgexpand.c:2699 #5 0x00000000005b13ca in expand_debug_locations () at /work/local-checkouts/main/gcc-fsf/gcc/cfgexpand.c:3668 #6 gimple_expand_cfg () at /work/local-checkouts/main/gcc-fsf/gcc/cfgexpand.c:4528 #7 0x00000000007f0d29 in execute_one_pass (pass=0x130aa80) at /work/local-checkouts/main/gcc-fsf/gcc/passes.c:2081 #8 0x00000000007f1095 in execute_pass_list (pass=0x130aa80) at /work/local-checkouts/main/gcc-fsf/gcc/passes.c:2136 #9 0x0000000000907238 in tree_rest_of_compilation (fndecl=0x7ffff6c59100) at /work/local-checkouts/main/gcc-fsf/gcc/tree-optimize.c:420 #10 0x00000000005cec5a in cgraph_expand_function (node=0x7ffff6c565a0) at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1819 #11 0x00000000005d249a in cgraph_expand_all_functions () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1886 #12 cgraph_optimize () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:2200 #13 0x00000000005d29f5 in cgraph_finalize_compilation_unit () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1328 #14 0x00000000004aca88 in c_write_global_declarations () at /work/local-checkouts/main/gcc-fsf/gcc/c-decl.c:10030 #15 0x0000000000896f87 in compile_file () at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:573 #16 do_compile () at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:1938 #17 0x0000000000897664 in toplev_main (argc=16, argv=0x7fffffffe348) at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:2014 #18 0x00007ffff7874c4d in __libc_start_main () from /lib/libc.so.6 #19 0x000000000049a7a9 in _start ()