On Wed, 13 Apr 2016, Jakub Jelinek wrote: > On Wed, Apr 13, 2016 at 09:50:29AM +0200, Richard Biener wrote: > > But I wonder why expansion doesn't simply "re-compute" TREE_STATIC > > here. That is, do we rely on TREE_STATIC constructors for correctness > > purposes as set by frontends? > > Clearly we do rely on it. If we did not rely on it, would the flag be > useful for anything?
Sure, if it is merely a hint that an optimization is possible. If so we can compute it where we perform that optimization (if that's in a single place). Richard.