http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50314
--- Comment #5 from NickParker at Eaton dot com 2011-09-07 21:16:02 UTC --- So if its not a bug, what is the solution to this problem? I tried wrapping up the code I wanted to time in a separate C function, but the compiler still optimised my problem back. Regards, Nick