This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jun 2015 13:25:17 +0000
- Subject: [Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta
- Auto-submitted: auto-generated
- References: <bug-66705-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705
Richard Biener <rguenth at gcc dot gnu.org> 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 <rguenth at gcc dot gnu.org> ---
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?