http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36303 In reference to the above bug, gcc optimized some code under the -O2 option. If the assembly described in the bug is a standard behaviour of -O2 then one can close this bug. Can someone please confirm this to be a bug, or a valid -O2 optimization that won't be fixed. -Faraz.