If the code is actually the same, has to be the compiler causing changes. Unlikely to be an issue with the GCC compiler, more likely to be a software bug being exposed by slightly different compilations. Regardless, going to be hard to diagnose without details.
"If you feel a post has answered your question, please click ""Accept as Solution""."