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: unassig...@gcc.gnu.org ReportedBy: zso...@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 <http://gcc.gnu.org/bugs.html> 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 <execute_pass_list>, 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