------- Comment #22 from manu at gcc dot gnu dot org 2010-07-06 17:28 ------- The way Clang gets this right is to perform some very-fast bitmap common constant propagation in the FE. I personally think this would be helpful if implemented correctly, even if it slows down the FE a little. But do not wait for a fix soon because this is not trivial to fix and no one has both the desire and the free time to work on fixing this.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210