This is the mail archive of the gcc-bugs@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]

gcc AIX problem


It seems that I have a serious exception management problem with gcc 2.95.2
under AIX 4.2.

I made a very small program showing this problem. This program creates a
second thread that throws an exception. Both main and second threads are
catching the exception. In normal case, only the thread that caused the
exception should catch it. It works like this when I compile with IBM xlC_r
compiler.
When I compile with g++, the exception produced in the second thread is not
caught by the second thread but by the main thread!!!
I tried the same program under Solaris and Linux and everything is OK. The
problem only occurs with AIX. It seems that the exception catching is not
thread safe with g++ under AIX.

Is it a known problem? Is there any special options I should use? Are you
able to reproduce the problem?

I'm running an AIX 4.2.0. For sure, I compiled gcc with the --enable-threads
option.


Thank you if you can help me or if you know somebody that can help me on
this problem.
I really need to compile my AIX programs with g++ because the IBM xlC
compiler cannot work with the STL and I use the STL in my programs.

Pierre MARC
COMINFORMATIC
Switzerland

Makefile

testex.cpp


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