This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/42762] ICE in get_resolution() when compiling a C++ program with -flto -fuse-linker-plugin
- From: "espindola at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2010 04:45:33 -0000
- Subject: [Bug lto/42762] ICE in get_resolution() when compiling a C++ program with -flto -fuse-linker-plugin
- References: <bug-42762-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from espindola at gcc dot gnu dot org 2010-01-19 04:45 -------
The problem is coming from
DECL_FUNCTION_PERSONALITY (expr) = lto_input_tree (ib, data_in);
This reads in __gxx_personality_v0 as an external function and we try to add it
to the symbol table. If using the linker plugin this fails because there is no
reference to __gxx_personality_v0 in the symbol table.
Two options:
* There should be an undefined reference and we are missing it in
produce_symtab
* There should not be an undefined reference. In this case maybe
DECL_FUNCTION_PERSONALY should not be set or we should be ignoring it in this
case for some reason
I don't think there should be an undefined reference to the personality in this
test. The produced assembly never mentions a personality function...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42762