From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20431 invoked by alias); 21 Jan 2012 10:37:50 -0000 Received: (qmail 20421 invoked by uid 22791); 21 Jan 2012 10:37:49 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW 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, 21 Jan 2012 10:37:36 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/51929] New: ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone --param ipa-cp-eval-threshold=0 --param max-inline-insns-single=1 Date: Sat, 21 Jan 2012 11:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end 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 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: 2012-01/txt/msg02408.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51929 Bug #: 51929 Summary: ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone --param ipa-cp-eval-threshold=0 --param max-inline-insns-single=1 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 26401 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26401 reduced testcase Compiler output: $ g++ -O2 -fno-guess-branch-probability -fipa-cp-clone --param ipa-cp-eval-threshold=0 --param max-inline-insns-single=1 testcase.C testcase.C:35:19: error: edge points to wrong declaration: > QI size unit size align 8 symtab 0 alias set -1 canonical type 0x7f2b78da4f18 arg-types >> static autoinline decl_5 QI file testcase.C line 8 col 3 align 16 context initial abstract_origin result used ignored VOID file testcase.C line 11 col 3 align 8 context abstract_origin > full-name "basic_string< >::~basic_string() [with = void]" pending-inline-info 0x7f2b78d85a50 template-info 0x7f2b78d7e9c0 struct-function 0x7f2b78da3b40> Instead of: > QI size unit size align 8 symtab 0 alias set -1 canonical type 0x7f2b78d892a0 method basetype arg-types chain >> pointer_to_this > addressable used public static external autoinline decl_5 QI defer-output file testcase.C line 8 col 3 align 16 context initial abstract_origin arguments readonly unsigned DI size unit size align 64 symtab 0 alias set -1 canonical type 0x7f2b78d891f8> readonly used unsigned DI file testcase.C line 8 col 18 size unit size align 64 context abstract_origin arg-type > result ignored VOID file testcase.C line 11 col 3 align 8 context > full-name "basic_string< >::~basic_string() [with = void]" pending-inline-info 0x7f2b78d85b40 template-info 0x7f2b78d7e9c0 struct-function 0x7f2b78c11960> basic_stringbuf::basic_stringbuf()/9 @0x7f2b78d8f240 (asm: _ZN15basic_stringbufC2Ev.constprop.3) (inline copy in (static initializers for testcase.C)/16) availability:local analyzed reachable body local finalized called by: stringstream::stringstream()/3 (1.00 per call) (inlined) (can throw external) calls: void basic_stringbuf::_M_stringbuf_init()/20 (1.00 per call) (can throw external) basic_string< >::~basic_string() [with = void]/12 (1.00 per call) (can throw external) References: var:stringstream ss_01 (addr) var:stringstream ss_01 (addr) fn:/19 (addr) Refering this function: testcase.C:35:19: internal compiler error: verify_cgraph_node failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. (gdb) bt #0 0x00007ffff61e4790 in exit () from /lib64/libc.so.6 #1 0x0000000001350802 in diagnostic_action_after_output (context=0x1b01ea0, diagnostic=Unhandled dwarf expression opcode 0xfa ) at /mnt/svn/gcc-trunk/gcc/diagnostic.c:243 #2 0x000000000135096e in diagnostic_report_diagnostic (context=0x1b01ea0, diagnostic=0x7fffffffd3b0) at /mnt/svn/gcc-trunk/gcc/diagnostic.c:552 #3 0x0000000001351620 in internal_error (gmsgid=) at /mnt/svn/gcc-trunk/gcc/diagnostic.c:845 #4 0x000000000084027c in verify_cgraph_node (node=0x7ffff5c16240) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:795 #5 0x0000000000840ad8 in verify_cgraph () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:810 #6 verify_cgraph () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:802 #7 0x000000000084299e in cgraph_materialize_all_clones () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2607 #8 0x0000000000842b08 in cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2181 #9 0x000000000084374a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327 #10 0x000000000066199b in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4051 #11 0x0000000000b8109c in compile_file () at /mnt/svn/gcc-trunk/gcc/toplev.c:573 #12 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938 #13 toplev_main (argc=20, argv=0x7fffffffd778) at /mnt/svn/gcc-trunk/gcc/toplev.c:2014 #14 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6 #15 0x0000000000585bb1 in _start () Tested revisions: r183351 - crash 4.6 - invalid parameter 'ipa-cp-eval-threshold'