gerryg400 wrote:Kortath, it is quite common here on this list (it's been discussed before) and where I work to specify that tests be done at various levels of optimisation to ensure that optimisation options are not having an effect on the operation of code.
Sometimes this is done as a side effect of the fact that debugging is done at one optimisation level and real operation at another.
Generally, if a test fails at any optimisation level it is considered to have failed and there is absolutely no way that the QA team would accept that "-Ofast" fixes something.
Please, for your own sake, remove the -Ofast option and find out what the problem was and fix it correctly.
Hmm, OK I'll look into that. The more I dig into this conversation the more I am now understanding why everyone is saying that -Ofast is wrong to use. Thanks for the explanation.
I have been going over all the details of what everyone on this thread has been saying. What bothers me is that the cross compiler might have compiled incorrectly. I'll go back over it and recompile it and see what comes of this.
EDIT UPDATE : Well turns out that GCC Cross Compiler version 4.8.1 ( Latest Version ) has failures all across the optimization switches : -O2 and -O3. No wonder they failed.. Here is just one of several links that I found :
http://gcc.gnu.org/ml/gcc-testresults/2 ... 01612.html
After a lot of searching I found that many many version of GCC has had optimization problems. This is a huge problem and thus makes GCC useless for OS Creation.
Sigh.. back to the drawing board and back on 32-Bit Windows 7 for OS creation. At least DJGPP works. Someone made the comment on another thread wondering why people keep using DJGPP, now I see why.
Might as well lock this thread as I see now why everyone is calling me ignorant since GCC is obviously so useless. I won't bother with GCC any longer. Thanks for the education guys.