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]
Other format: [Raw text]

Re: Problem when using optimization on aix 5.2 and gcc 4.1.1


On Mon, May 21, 2007 at 07:06:47PM +0200, 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.

While compiler bugs are possible, it is much more likely that
it is a program bug.  Common causes are uninitialized memory or heap
corruption; the effects of this tend to change with optimization.


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