This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc AIX problem
- To: <bug-gcc at gnu dot org>
- Subject: gcc AIX problem
- From: "Pierre MARC" <pmarc at wanadoo dot fr>
- Date: Sat, 11 Mar 2000 08:32:57 +0100
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