On 1/22/2013 11:43 PM, Jacob Carlborg wrote:
I would say that if using the -O flag the code behaves differently from without using the flag it's always a bug.The -O flag should never change the semantic meaning of the code. It should only make it faster.
If your program has undefined behavior in it, the -O flag can definitely cause that behavior to change.
