This is the mail archive of the 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] fixes to consistency.vlad/vlad.exp

On Mon, Aug 26, 2002 at 07:15:56AM -0700, Janis Johnson wrote:
> On Fri, Aug 23, 2002 at 09:11:18PM -0400, Phil Edwards wrote:
> > On Fri, Aug 23, 2002 at 05:25:50PM -0700, Janis Johnson wrote:
> > > C++ tests were built
> > > using "gcc -x c++", which caused failures for tests with vtables, so now
> > > they are built with g++ instead.
> > 
> > That seems worrying.
> Tests class-*-and-virtual.cpp in consistency.vlad/layout all fail when
> built with "gcc -x c++" rather than with "g++".
> When built with gcc:
>   /tmp/ccGpUaWO.o(.gnu.linkonce.d._ZTI3sss+0x0): undefined reference to
>   `vtable for __cxxabiv1::__class_type_info'
> When built with g++:
>   laptop% nm a.out | fgrep class_type_info
>            U _ZTVN10__cxxabiv117__class_type_infoE
>   laptop% nm | fgrep _ZTVN10__cxxabiv117__class_type_infoE
>   0005fea0 W _ZTVN10__cxxabiv117__class_type_infoE

Ah, okay.  I thought you meant "vtables in general," not "vtables from
the support section of the standard library."  This makes sense.

> We apparently need a set of tests that check that basic C++ runtime
> support is available outside of libstdc++.

Either that, and link against libsupc++, or move these tests into the
library's testsuite.  Hmmmm, but that makes consistency.vlad more complex.

If we assume (or mandate) that the consistency tests aren't run unless the
c++ libraries have been built, can we "simply" teach consistency.vlad about
../../<target>/libstdc++/libsupc++/.libs/libsupc++.a ?


I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002

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