From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8270 invoked by alias); 16 Nov 2010 00:53:56 -0000 Received: (qmail 8206 invoked by uid 22791); 16 Nov 2010 00:53:55 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 16 Nov 2010 00:52:54 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Message-ID: 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: Tue, 16 Nov 2010 01:05: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-11/txt/msg02004.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46130 --- Comment #6 from Zdenek Sojka 2010-11-16 00:52:52 UTC --- Created attachment 22414 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22414 another simple testcase This one needs -flto too: $ gcc -O2 -flto -fno-tree-dce testcase.c ==9353== Invalid read of size 2 ==9353== at 0x710735: walk_stmt_load_store_addr_ops (gimple.c:5024) ==9353== by 0xAC5C12: rebuild_cgraph_edges (cgraphbuild.c:474) ==9353== by 0x7BCA0E: execute_one_pass (passes.c:1560) ==9353== by 0x7BCCD4: execute_pass_list (passes.c:1615) ==9353== by 0x7BBEFB: do_per_function_toporder (passes.c:1153) ==9353== by 0x7BD185: execute_ipa_pass_list (passes.c:1932) ==9353== by 0xACAD67: cgraph_optimize (cgraphunit.c:1694) ==9353== by 0xACAF29: cgraph_finalize_compilation_unit (cgraphunit.c:1015) ==9353== by 0x4D7D8B: c_write_global_declarations (c-decl.c:9837) ==9353== by 0x8A9405: toplev_main (toplev.c:885) ==9353== by 0x6376BBC: (below main) (in /lib64/libc-2.11.2.so) ==9353== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==9353== testcase.c: In function 'foo': testcase.c:4:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.