PATCH Re: c++/4122: undefined reference to `non-virtual thunk to ...'
law@redhat.com
law@redhat.com
Sat Dec 22 16:06:00 GMT 2001
> 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
More information about the Gcc-bugs
mailing list