From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18789 invoked by alias); 13 Nov 2010 22:39:28 -0000 Received: (qmail 18596 invoked by uid 22791); 13 Nov 2010 22:39:26 -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; Sat, 13 Nov 2010 22:38:31 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46469] New: [4.6 Regression] ICE: verify_cgraph_node failed: inline clone is needed at -O X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: 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: Sat, 13 Nov 2010 22:42: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/msg01782.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46469 Summary: [4.6 Regression] ICE: verify_cgraph_node failed: inline clone is needed at -O Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 22387 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22387 reduced testcase Compiler output: $ gcc -O pr46469.C pr46469.C: In function 'int identifierByPthreadHandle()': pr46469.C:12:19: error: inline clone is needed int pthread_equal()/0(0) @0x7ff98720b000 (asm: pthread_equal) (inline copy in int identifierByPthreadHandle()/2) availability:available analyzed 2 time, 13 benefit 3 size, 5 benefit needed reachable body finalized always_inline called by: int identifierByPthreadHandle()/2 (1.00 per call) (inlined) calls: References: Refering this function: pr46469.C:12:19: internal compiler error: verify_cgraph_node failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Backtrace: (gdb) bt #0 error (gmsgid=0x12f7fa0 "inline clone is needed") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:747 #1 0x0000000000c11e6c in verify_cgraph_node (node=0x7ffff5d1c000) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:485 #2 0x0000000000c48ca5 in expand_call_inline (fn=0x7ffff5d0d300) at /mnt/svn/gcc-trunk/gcc/tree-inline.c:3831 #3 gimple_expand_calls_inline (fn=0x7ffff5d0d300) at /mnt/svn/gcc-trunk/gcc/tree-inline.c:4081 #4 optimize_inline_calls (fn=0x7ffff5d0d300) at /mnt/svn/gcc-trunk/gcc/tree-inline.c:4232 #5 0x0000000000c1ef07 in cgraph_early_inlining () at /mnt/svn/gcc-trunk/gcc/ipa-inline.c:1831 #6 0x000000000090723f in execute_one_pass (pass=0x177c880) at /mnt/svn/gcc-trunk/gcc/passes.c:1560 #7 0x0000000000907505 in execute_pass_list (pass=0x177c880) at /mnt/svn/gcc-trunk/gcc/passes.c:1615 #8 0x000000000090672c in do_per_function_toporder (callback=0x9074f0 , data=0x1779c00) at /mnt/svn/gcc-trunk/gcc/passes.c:1153 #9 0x00000000009079b6 in execute_ipa_pass_list (pass=0x1779d20) at /mnt/svn/gcc-trunk/gcc/passes.c:1932 #10 0x0000000000c154c8 in ipa_passes () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1694 #11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1763 #12 0x0000000000c1568a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1015 #13 0x0000000000585c1d in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:3973 #14 0x00000000009f3e86 in compile_file (argc=3, argv=0x7fffffffdf28) at /mnt/svn/gcc-trunk/gcc/toplev.c:885 #15 do_compile (argc=3, argv=0x7fffffffdf28) at /mnt/svn/gcc-trunk/gcc/toplev.c:2313 #16 toplev_main (argc=3, argv=0x7fffffffdf28) at /mnt/svn/gcc-trunk/gcc/toplev.c:2374 #17 0x00007ffff6579bbd in __libc_start_main () from /lib/libc.so.6 #18 0x00000000004cadf5 in _start () Tested revisions: r166703 - crash r165699 - OK 4.5 r166509 - OK