http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50472
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011-09-25 AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-25 11:52:49 UTC --- CCP optimizes the load from the static const foo via fold_stmt. I will have a look. Folding statement: D.2758_2 ={v} *bar_1; Folded into: D.2758_2 = 1;