http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-11-22 20:56:43 UTC --- According my archived builds r165415 (20101013) gives the result you expect r165758 (20101021) does not. > Any option to tune the behavior ? -fno-tree-ds seems to do the trick: from the C manual http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options > -ftree-dce > Perform dead code elimination (DCE) on trees. This flag is enabled by default > at -O and higher.