This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libjava test suite keeps getting stuck
On Thu, Apr 19, 2001 at 10:24:28PM -0700, Zack Weinberg wrote:
> On Thu, Apr 19, 2001 at 11:05:03PM -0600, Tom Tromey wrote:
> > It would be worth experimenting on the trunk to see if we need
> > libsupc++ at all any more. It is possible we could arrange things so
> > that we don't need libsupc++ at all.
>
> Looks like a one-line edit to Makefile.am. I'll give it a whirl.
On the up side, it does stop libtool inserting -lgcc_s -lc -lgcc_s
before -lpthread.
On the down side:
./.libs/libgcj.so: undefined reference to `operator new[](unsigned)'
./.libs/libgcj.so: undefined reference to `operator delete(void*)'
./.libs/libgcj.so: undefined reference to `__gxx_personality_v0'
./.libs/libgcj.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
new and delete are used all over the place in the C++ sources of
libjava, but it would be trivial to slurp them over from libsupc++
with rules like
new_op.o: $(srcdir)/../libstdc++/libsupc++/new_op.cc
__gxx_personality_v0 is another can of worms entirely. It looks to be
referenced from all of the C++ source code. It's deeply involved with
the new exception handling scheme. I do not know whether it's
appropriate to keep using the C++ version or whether java should have
its own.
I wonder if it makes sense to rewrite all the C++ in C or Java...
zw