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]

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


  > Yep, this was for a target-independent problem, not the HPUX-specific ones.
  > 
  > > I'll try to get you testcases for both these issues today.
OK.  Here's a testcase for the missing .import statements.

Compile the attached testcase with -O2 for hppa2.0-hp-hpux1.00 (you can 
probably
build a cross-cc1plus for this instead of messing with a native compiler).  
Note
this is with the 2002r1 branch from Red Hat's internal repository.  I have
not tried it in the mainline sources.

If you look at the assembly output, you'll find something like this:

        .word P%_ZTv0_n28_N18CdlUserVisibleBodyD0Ev

The problem is we need to explicitly import _ZTv0_n28_N18CdlUserVisibleBodyD0Ev
since it's defined in a different compilation unit.  Usually the lack of an
import is related to a missing assemble_external call.

jeff






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