Linux-PPC egcs-1.1b g++ still not thread safe
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Wed Sep 9 03:45:00 GMT 1998
> It crashes at 0x18211f4 with r11=0. The IOMGR_Select function is the last
> function in the source, and in this case is a 60 second delay for the
> current thread. This is from the Coda filesystem package, which uses it's
> own user level threads library.
Ahh! Of course, the thread-safe exception support requires knowledge
about the thread package being used. For example, the current
exception is stored in thread-local storage. Different packages
provide different APIs to access this storage, if they provide API at
all.
So in order to use it, you'd have to adapt egcs to that thread
package. Please look at gcc/gthr-posix.h how the POSIX threads
adaptation works. If you don't want to adapt it, you might be better
of using -fno-exceptions, indeed. Please note that you might need to
recompile all the libraries.
Regards,
Martin
More information about the Gcc-bugs
mailing list