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

Re: C++ to C compiler


jack andrews wrote:
> 
> Joe Buck writes:
> 
> >
> [snip]
> > > A collegue has reported a bug in GCC's object code generation on AIX.
> > > If you could flag GCC to produce ANSI C rather then object code, then
> > > we could work around this problem.
> >
> > Why not just send a bug report, so that the problem can be fixed for
> > everyone?
> 
> Yeah, we did that
> (http://egcs.cygnus.com/ml/gcc-bugs/1999-08/msg00586.html)

Unfortunately, you didn't say how you build an executable.
FYI, by default gcc on AIX isn't thread-safe. Adding -lpthreads
doesn't help, because you need to link with thread-safe versions
of libc, libstdc++ and libgcc. I hacked multilib generation on AIX,
so instead of cpu-specific libraries I build thread-safe ones.
So, on my system (AIX4.2.1 running gcc-2.91.57) your test
program compiled via `g++ -mthreads' runs just fine. Note,
that you probably may have more problems on AIX mixing
multithreading, exceptions and shared libraries.

Regards,
Andrey.


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