From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3727 invoked by alias); 26 Nov 2010 00:05:28 -0000 Received: (qmail 3627 invoked by uid 22791); 26 Nov 2010 00:05:23 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CF 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, 26 Nov 2010 00:05:18 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46666] New: gcc.target/i386/funcspec-3.c ICEs in count_reg_usage (cse.c:6596) with -fno-early-inlining X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target 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: Message-ID: 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, 26 Nov 2010 00:40: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/msg03183.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46666 Summary: gcc.target/i386/funcspec-3.c ICEs in count_reg_usage (cse.c:6596) with -fno-early-inlining Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Target: x86_64-pc-linux-gnu Created attachment 22534 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22534 reduced testcase Compiler output: $ gcc -O -fno-early-inlining funcspec-3.i ==32143== Invalid read of size 4 ==32143== at 0xF80728: count_reg_usage (cse.c:6596) ==32143== by 0xF80714: count_reg_usage (cse.c:6694) ==32143== by 0xF80714: count_reg_usage (cse.c:6694) ==32143== by 0xF807A1: count_reg_usage (cse.c:6638) ==32143== by 0xF91561: delete_trivially_dead_insns (cse.c:6878) ==32143== by 0xF427BD: cleanup_cfg (cfgcleanup.c:2329) ==32143== by 0x5EB27A: into_cfg_layout_mode (cfglayout.c:349) ==32143== by 0x7EB8AE: execute_one_pass (passes.c:1564) ==32143== by 0x7EBB74: execute_pass_list (passes.c:1619) ==32143== by 0x7EBB86: execute_pass_list (passes.c:1620) ==32143== by 0x92BF05: tree_rest_of_compilation (tree-optimize.c:422) ==32143== by 0xAF0061: cgraph_expand_function (cgraphunit.c:1508) ==32143== Address 0x77b5844 is not stack'd, malloc'd or (recently) free'd ==32143== ==32143== Invalid read of size 2 ==32143== at 0x627127: df_ref_record (df-scan.c:2841) ==32143== by 0x6286DD: df_entry_block_defs_collect (df-scan.c:3818) ==32143== by 0x628755: df_record_entry_block_defs (df-scan.c:3835) ==32143== by 0x62DF3A: df_scan_blocks (df-scan.c:670) ==32143== by 0x61730A: rest_of_handle_df_initialize (df-core.c:738) ==32143== by 0x7EB8AE: execute_one_pass (passes.c:1564) ==32143== by 0x7EBB74: execute_pass_list (passes.c:1619) ==32143== by 0x7EBB86: execute_pass_list (passes.c:1620) ==32143== by 0x92BF05: tree_rest_of_compilation (tree-optimize.c:422) ==32143== by 0xAF0061: cgraph_expand_function (cgraphunit.c:1508) ==32143== by 0xAF2639: cgraph_optimize (cgraphunit.c:1567) ==32143== by 0xAF2BA9: cgraph_finalize_compilation_unit (cgraphunit.c:1031) ==32143== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==32143== /mnt/svn/gcc-trunk/gcc/testsuite/gcc.target/i386/funcspec-3.c: In function 'main': /mnt/svn/gcc-trunk/gcc/testsuite/gcc.target/i386/funcspec-3.c:60:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Reduced attached testcase fails in a different way: $ gcc -O -fno-early-inlining testcase.c ==27651== Invalid write of size 4 ==27651== at 0xFE82FC: decompose_multiword_subregs (lower-subreg.c:51) ==27651== by 0xFE9CE8: rest_of_handle_lower_subreg (lower-subreg.c:1346) ==27651== by 0x7EB8AE: execute_one_pass (passes.c:1564) ==27651== by 0x7EBB74: execute_pass_list (passes.c:1619) ==27651== by 0x7EBB86: execute_pass_list (passes.c:1620) ==27651== by 0x92BF05: tree_rest_of_compilation (tree-optimize.c:422) ==27651== by 0xAF0061: cgraph_expand_function (cgraphunit.c:1508) ==27651== by 0xAF2639: cgraph_optimize (cgraphunit.c:1567) ==27651== by 0xAF2BA9: cgraph_finalize_compilation_unit (cgraphunit.c:1031) ==27651== by 0x50873B: c_write_global_declarations (c-decl.c:9837) ==27651== by 0x8D5C6F: toplev_main (toplev.c:819) ==27651== by 0x6369BBC: (below main) (in /lib64/libc-2.11.2.so) ==27651== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==27651== testcase.c: In function 'foo': testcase.c:11:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.