From: Vasili B. <vas...@gm...> - 2009-04-24 14:10:09
|
Hans Henrik Bergan wrote: > i have a problem with compiling a program with -O2 > when i do this, the program crash when started.. -O2 also enables strict aliasing. Try to set -fno-strict-aliasing to disable is or -Wstrict-aliasing to see strict aliasing warnings. Strict aliasing is very good for optimization, but if your program breaks it, incorrect code silently will be produced. |