This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug lto/63546] ICE: Segmentation fault in lto_get_decl_name_mapping on ppc64
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Oct 2014 18:29:41 +0200
- Subject: Re: [Bug lto/63546] ICE: Segmentation fault in lto_get_decl_name_mapping on ppc64
- Authentication-results: sourceware.org; auth=none
- References: <bug-63546-4 at http dot gcc dot gnu dot org/bugzilla/> <bug-63546-4-pR4ZD55AyB at http dot gcc dot gnu dot org/bugzilla/>
Here we die because we do not have variable constructor in LTO stream because
the variable was optimized out at compile time already. Do we still need to
build RTL here? We can easily check for optimized out vars...
But if we need a placeholder RTL, I suppose most practical variant would be
to avoid get_variable_section from ICEing for those optimized out vars and
just assume something (it is all about decision whether the var will be in
rodata/rodata.rel or rodata.rel.local - definitely not relevant for dwarf2out)