http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46130
Summary: [4.6 Regression] ICE: SIGSEGV in walk_stmt_load_store_addr_ops (gimple.c:4894) with -O2 -fno-tree-dce Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 22117 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22117 reduced testcase Compiler output: $ gcc -O2 -fno-tree-dce pr46130.c pr46130.c: In function 'foo': pr46130.c:15:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Related valgrind output: ==22348== Invalid read of size 2 ==22348== at 0x6EA541: walk_stmt_load_store_addr_ops (gimple.c:4894) ==22348== by 0xAAB87A: rebuild_cgraph_edges (cgraphbuild.c:471) ==22348== by 0x796C5E: execute_one_pass (passes.c:1560) ==22348== by 0x796EF4: execute_pass_list (passes.c:1615) ==22348== by 0x79616B: do_per_function_toporder (passes.c:1153) ==22348== by 0x7973A5: execute_ipa_pass_list (passes.c:1932) ==22348== by 0xAB09D7: cgraph_optimize (cgraphunit.c:1696) ==22348== by 0xAB0B99: cgraph_finalize_compilation_unit (cgraphunit.c:1016) ==22348== by 0x4ABB8B: c_write_global_declarations (c-decl.c:9828) ==22348== by 0x88A553: toplev_main (toplev.c:931) ==22348== by 0x658ABBC: (below main) (in /lib64/libc-2.11.2.so) ==22348== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==22348== testcase.c: In function 'foo': testcase.c:15:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r165822 - crash r161659 - crash r159696 - OK 4.5 r165781 - OK