From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13911 invoked by alias); 22 Oct 2010 13:49:07 -0000 Received: (qmail 13898 invoked by uid 22791); 22 Oct 2010 13:49:06 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Oct 2010 13:48:58 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46130] [4.6 Regression] ICE: SIGSEGV in walk_stmt_load_store_addr_ops (gimple.c:4894) with -O2 -fno-tree-dce X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 22 Oct 2010 13:49:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg01894.txt.bz2 Message-ID: <20101022134900.ZhJTVjSWEMVnv3yu2UKKF_n6VCC8x2tet7bXWPlS4Gk@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46130 --- Comment #1 from Zdenek Sojka 2010-10-22 13:48:55 UTC --- Created attachment 22118 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22118 another testcase This testcase is shorter and doesn't take address of an function, but it needs -flto $ gcc -O2 -flto -fno-tree-dce pr46130-2.c ==30450== Invalid read of size 2 ==30450== at 0x6EA541: walk_stmt_load_store_addr_ops (gimple.c:4894) ==30450== by 0xAAB87A: rebuild_cgraph_edges (cgraphbuild.c:471) ==30450== by 0x796C5E: execute_one_pass (passes.c:1560) ==30450== by 0x796EF4: execute_pass_list (passes.c:1615) ==30450== by 0x79616B: do_per_function_toporder (passes.c:1153) ==30450== by 0x7973A5: execute_ipa_pass_list (passes.c:1932) ==30450== by 0xAB09D7: cgraph_optimize (cgraphunit.c:1696) ==30450== by 0xAB0B99: cgraph_finalize_compilation_unit (cgraphunit.c:1016) ==30450== by 0x4ABB8B: c_write_global_declarations (c-decl.c:9828) ==30450== by 0x88A553: toplev_main (toplev.c:931) ==30450== by 0x658ABBC: (below main) (in /lib64/libc-2.11.2.so) ==30450== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==30450== pr46130-2.c: In function 'foo': pr46130-2.c:8:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.