5 ms·
I know little about C compilers, but if -O3 resulted in segfaults while other settings did not, how is it not riskier? Are the different optimization levels ind
by callahad 17y ago
I know little about C compilers, but if -O3 resulted in segfaults while other settings did not, how is it not riskier? Are the different optimization levels independent such that this bug could have appeared anywhere, but just happened to be in one of the strategies used by -O3?
- tptacek 17y agoBecause, like a number of other people have pointed out upthread, it can make the impact of memory corruption problems more immediate.
- wingo 17y agoThere is also the possibility that if your program has an aliasing bug, the bug may only cause failure at -O2 but not at -O0 or -O1. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35653 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35653, for example.