From: Earnie B. <ea...@us...> - 2009-11-24 13:51:52
|
Quoting Bob Rossi <bo...@br...>: > > Furthermore, if instead of passing -O1, -O2, or -O3, I instead > set the corresponding optimizations that are performed at those > levels from here, > > http://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Optimize-Options.html#Optimize-Options > the bug goes away completely. > Try adding a --verbose to the compile to see if there is a difference between the stated optimizations and what is actually used when using -O[123]. This might help pinpoint where the bug is. Usually though programs crashing because of different optimizations are a result of an invalid use of memory within the program and you avoid invalid memory with various levels of optimization. -- Earnie |