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] fixes to consistency.vlad/vlad.exp


On Mon, Aug 26, 2002 at 01:53:06PM -0400, Phil Edwards wrote:
> 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 libstdc++.so | 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.

I wonder - should "gcc -x c++" use "-lsupc++" the way that a plain
"g++" would?


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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