https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65330
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Priority|P1 |P3 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-03-06 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I was thinking of sth else first - make sure that points-to analysis processes initializers of readonly globals (when they bind to the current def). In your testcase the globals are not readonly - or did you mean to write int * const varptr = &var; int * const __restrict__ varptr2 = &var; ? Your testcase also misses a declaration of 'var'.