This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem when using optimization on aix 5.2 and gcc 4.1.1
- From: Robert Dewar <dewar at adacore dot com>
- To: Thomas Mittelstaedt <T dot Mittelstaedt at cadenas dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 21 May 2007 17:56:23 -0400
- Subject: Re: Problem when using optimization on aix 5.2 and gcc 4.1.1
- References: <op.tsoshl0c3gkkc3@cprog027>
Thomas Mittelstaedt wrote:
Hello,
We have a large app with a lot of static libraries in it (and I mean a
lot, about 20) and it compiles and links successfully. If I compile it
without optimiztion turned on
(-O2 or some more subtle with -O and others), the program also runs.
With optimizations, though, the program would crash.
Entailed is the gdb stacktrace. We use the native linker of aix and are
updated to the latest bos packages for 5.2.
You need to debug the program to find out where the bug is
(most likely the bug is in your code, optimization often shows
up bugs that do not appear at -O0).