This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/39106] [4.4 Regression] aliased to undefined symbol error with thunks



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]