This is the mail archive of the gcc-patches@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]

Re: PATCH Re: c++/4122: undefined reference to `non-virtual thunk to ...'


> Thanks for the testcase; please give this a try.  The problem was that we
> had calculated the -4 offset for a lost primary, the primary base was
> regained in the constructor vtable, and so the calculated offset was
> wrong.
> 
> 2001-12-21  Jason Merrill  <jason@redhat.com>
> 
> 	* class.c (update_vtable_entry_for_fn): Set delta to zero for a
> 	lost primary.
> 
> 	* class.c (build_vtbl_initializer): Check for a lost primary
> 	before calculating the vtable entry to throw away.
Thanks.  

FWIW, I tried this on my testcases locally and it didn't make any noticable
difference (sid & ecosconfig).

There's still two distinct issues.

  1. Some thunks are being defined with local scope

  2. We are not calling assemble_external when we reference certain thunks.

I'll try to get you testcases for both these issues today.
jeff



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