http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51122
Bug #: 51122 Summary: ICE in change_address_1, at emit-rtl.c:2001 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: greta.yo...@arm.com CC: ramana.radhakrish...@arm.com Target: arm-none-eabi Created attachment 25818 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25818 reduced test case ICE during IRA. Possibly related to a latent/unresolved bug reported here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48256 cc1 -mfloat-abi=softfp -mfpu=neon -marm -quiet -mcpu=cortex-a9 -O2 smith_crash_246671435.reduced.i csmith_crash_246671435.reduced.i: In function 'func_86': csmith_crash_246671435.reduced.i:39:1: internal compiler error: in change_address_1, at emit-rtl.c:2001 Backtrace: #0 fancy_abort (file=0x12e85c8 "/work/local-checkouts/main/gcc-fsf/gcc/emit-rtl.c", line=2001, function=0x12e9530 "change_address_1") at /work/local-checkouts/main/gcc-fsf/gcc/diagnostic.c:899 #1 0x0000000000733903 in change_address_1 (memref=0x7ffff76320f0, mode=HImode, addr=0x7ffff7632510, validate=1) at /work/local-checkouts/main/gcc-fsf/gcc/emit-rtl.c:2001 #2 0x00000000007345a5 in adjust_address_1 (memref=0x7ffff76320f0, mode=HImode, offset=0, validate=1, adjust=1) at /work/local-checkouts/main/gcc-fsf/gcc/emit-rtl.c:2101 #3 0x0000000000796903 in alter_subreg (xp=0x7ffff76324c0) at /work/local-checkouts/main/gcc-fsf/gcc/final.c:2885 #4 0x0000000000796623 in cleanup_subreg_operands (insn=0x7ffff762c630) at /work/local-checkouts/main/gcc-fsf/gcc/final.c:2832 #5 0x0000000000a72077 in reload (first=0x7ffff75b8880, global=1) at /work/local-checkouts/main/gcc-fsf/gcc/reload1.c:1247 #6 0x000000000096e4f5 in ira (f=0x0) at /work/local-checkouts/main/gcc-fsf/gcc/ira.c:3726 #7 0x000000000096e691 in rest_of_handle_ira () at /work/local-checkouts/main/gcc-fsf/gcc/ira.c:3799 #8 0x0000000000a1360c in execute_one_pass (pass=0x1887e60) at /work/local-checkouts/main/gcc-fsf/gcc/passes.c:2064 #9 0x0000000000a137fa in execute_pass_list (pass=0x1887e60) at /work/local-checkouts/main/gcc-fsf/gcc/passes.c:2119 #10 0x0000000000a1381b in execute_pass_list (pass=0x18884a0) at /work/local-checkouts/main/gcc-fsf/gcc/passes.c:2120 #11 0x0000000000bae1ef in tree_rest_of_compilation (fndecl=0x7ffff7589900) at /work/local-checkouts/main/gcc-fsf/gcc/tree-optimize.c:420 #12 0x0000000000691a67 in cgraph_expand_function (node=0x7ffff75afb40) at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1804 #13 0x0000000000691c32 in cgraph_expand_all_functions () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1871 #14 0x0000000000692547 in cgraph_optimize () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:2168 #15 0x000000000068f750 in cgraph_finalize_compilation_unit () at /work/local-checkouts/main/gcc-fsf/gcc/cgraphunit.c:1312 #16 0x00000000004cae22 in c_write_global_declarations () at /work/local-checkouts/main/gcc-fsf/gcc/c-decl.c:9940 #17 0x0000000000b0a47e in compile_file () at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:581 #18 0x0000000000b0c644 in do_compile () at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:1930 #19 0x0000000000b0c7bb in toplev_main (argc=8, argv=0x7fffffffe308) at /work/local-checkouts/main/gcc-fsf/gcc/toplev.c:2006 #20 0x00000000005c48b4 in main (argc=8, argv=0x7fffffffe308) at /work/local-checkouts/main/gcc-fsf/gcc/main.c:36 GCC trunk r181174 (Nov 8, 2011) Reproducible on arm-eabi target with gcc revision from October. Configured with: configure --target=arm-eabi --enable-checking=release --disable-gdbtk --disable-werror --disable-tui --disable-rda --disable-sid --disable-utils --disable-lto --with-cpu=cortex-a9 --with-float=softfp --with-fpu=neon --disable-lto --disable-werror --disable-shared --disable-nls --disable-threads --disable-tls --enable-checking=yes --with-newlib I am attaching a reduce test case. By the way, the original test case was generated by csmith compiler-testing tool: http://embed.cs.utah.edu/csmith/