This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39106] [4.4 Regression] aliased to undefined symbol error with thunks
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2009 15:55:01 -0000
- Subject: [Bug c++/39106] [4.4 Regression] aliased to undefined symbol error with thunks
- References: <bug-39106-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2009-02-05 15:55 -------
Created an attachment (id=17248)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17248&action=view)
gcc44-pr39106.patch
Patch I'm going to bootstrap/regtest. The problem is that
cgraph_function_versioning copies the whole FUNCTION_DECL node, including
DECL_LANG_SPECIFIC etc. and then the original bar function doesn't need to be
emitted (so emit_associated_thunks langhook isn't called for it), but when
it is called on the versioned bar function, it will emit thunks for
non-existing
function. As emit_associated_thunks langhook does nothing if !DECL_VIRTUAL_P,
I think the easiest fix is to clear this bit.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39106