On Wed, 13 Nov 2013, Jakub Jelinek wrote: > Note, in many cases, removing optimizations from fold-const.c leads to > regressions on code assuming something is folded (especially in > initializers). Sure, that is all typically undocumented GNU extensions, > but we had several such problems in the past already.
That's what I said about distinguishing (c), (d) and (e) from (b), with distribution rebuilds as a way of testing whether there is an issue with removing some particular optimizations. (In the static initializer case there's the option of the front end generating GIMPLE code for the initializer and telling the middle end that it should (ped)warn if it ends up being optimized to a constant, error if it doesn't. But I rather hope that isn't needed.) -- Joseph S. Myers jos...@codesourcery.com