From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121881 invoked by alias); 30 Jun 2015 13:25:23 -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 Received: (qmail 121811 invoked by uid 48); 30 Jun 2015 13:25:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta Date: Tue, 30 Jun 2015 13:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg03387.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|UNCONFIRMED |NEW Last reconfirmed| |2015-06-30 Target Milestone|--- |5.2 Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- Confirmed. Breakpoint 1, fatal_error (loc=0, gmsgid=0x1783549 "%s: section %s is missing") at /space/rguenther/src/svn/gcc-5-branch/gcc/diagnostic.c:1203 1203 va_start (ap, gmsgid); Missing separate debuginfos, use: zypper install libgmp10-debuginfo-6.0.0-71.1.x86_64 libisl13-debuginfo-0.14-25.2.x86_64 libmpc3-debuginfo-1.0.2-38.2.x86_64 libmpfr4-debuginfo-3.1.2-3.1.2.x86_64 (gdb) up #1 0x0000000000fe0387 in varpool_node::get_constructor (this=0x7ffff6ac4000) at /space/rguenther/src/svn/gcc-5-branch/gcc/varpool.c:328 328 name); (gdb) l 323 data = lto_get_section_data (file_data, LTO_section_function_body, 324 name, &len); 325 if (!data) 326 fatal_error (input_location, "%s: section %s is missing", 327 file_data->file_name, 328 name); (gdb) up #2 0x0000000000eacc07 in create_variable_info_for (decl=0x7ffff68d7900, name=0x1763482 "NULL") at /space/rguenther/src/svn/gcc-5-branch/gcc/tree-ssa-structalias.c:5808 5808 if (vnode->get_constructor () (gdb) l 5803 if (!vnode->all_refs_explicit_p ()) 5804 make_copy_constraint (vi, nonlocal_id); 5805 5806 /* If this is a global variable with an initializer and we are in 5807 IPA mode generate constraints for it. */ 5808 if (vnode->get_constructor () 5809 && vnode->definition) so IPA PTA needs to guard ->get_constructor () somehow? That is, it doesn't return NULL_TREE when it cant' get its hands on it?