[PLUG] Kernel 2.2.17 not compiling with gcc

Jonathan Sergent sergent@csociety.purdue.edu
Sun, 01 Oct 2000 01:35:43 -0500


> And not just that.. C++ exception handling code too.  ;(
> But GCC has always had problems with that anyway.

That's the exact opposite of my experience with GCC 2.95.x.

I use the compiler on some very non-trivial C++ code nearly every day
and have not found any bugs in GNU C++.

Our use of exceptions is not especially advanced but it is enough that
it has uncovered several bugs in other compilers.... in particular we
use exception-specifications a lot and have run into problems with those
with the other compilers... also with top-level try blocks in constructors
(for exceptions thrown in the initializer list).  Both of those things work
great in GNU C++ but have broken repeatedly for us with the other guys.

The only gripe I have is with the non-MT-safety of the iostreams
implementation in libstdc++-v2... note that it's not that you can't use
the same stream in two threads at once (which I would expect to break)
but that you can't even use unrelated streams at the same time, because
there is shared static data and no protection (although evidently if it
is built on top of GNU libc it works, but this does not help on Solaris).
Apparently this stuff is fixed in libstdc++-v3, but I don't have that up
and running yet.


--jss.