From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17417 invoked by alias); 6 Aug 2010 22:59:30 -0000 Received: (qmail 17379 invoked by uid 48); 6 Aug 2010 22:59:19 -0000 Date: Fri, 06 Aug 2010 22:59:00 -0000 Subject: [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zsojka at seznam dot cz" 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-08/txt/msg00471.txt.bz2 Command line: $ gcc -O2 -fprofile-generate testcase.c Valgrind output: ==8227== Invalid read of size 8 ==8227== at 0x60BB4B: dominated_by_p (dominance.c:973) ==8227== by 0x950317: dse_enter_block (tree-ssa-dse.c:198) ==8227== by 0xF18CC6: walk_dominator_tree (domwalk.c:188) ==8227== by 0x94F9F2: tree_ssa_dse (tree-ssa-dse.c:429) ==8227== by 0x7BD50B: execute_one_pass (passes.c:1564) ==8227== by 0x7BD7A4: execute_pass_list (passes.c:1619) ==8227== by 0x7BD7B6: execute_pass_list (passes.c:1620) ==8227== by 0x8FF355: tree_rest_of_compilation (tree-optimize.c:452) ==8227== by 0xAB6505: cgraph_expand_function (cgraphunit.c:1643) ==8227== by 0xAB9389: cgraph_optimize (cgraphunit.c:1722) ==8227== by 0xAB997A: cgraph_finalize_compilation_unit (cgraphunit.c:1185) ==8227== by 0x4DF88E: c_write_global_declarations (c-decl.c:9698) ==8227== Address 0x20 is not stack'd, malloc'd or (recently) free'd ==8227== testcase.c: In function 'foo': testcase.c:12:5: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Tested revisions: r162940 - crash r162456 - OK -- Summary: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219