Re: [C PATCH] Outside of initializers partially restore c_fully_fold 7.x behavior (PR c/83801)

2018-01-13 Thread Jeff Law
On 01/12/2018 09:03 AM, Jakub Jelinek wrote: > Hi! > > In 7.x and earlier, decl_constant_value_for_optimization punted if > the initializer has ARRAY_TYPE or BLKmode type, and the following patch > shows that is reasonable thing to do, otherwise we might grab very large > initializers out of const

[C PATCH] Outside of initializers partially restore c_fully_fold 7.x behavior (PR c/83801)

2018-01-12 Thread Jakub Jelinek
Hi! In 7.x and earlier, decl_constant_value_for_optimization punted if the initializer has ARRAY_TYPE or BLKmode type, and the following patch shows that is reasonable thing to do, otherwise we might grab very large initializers out of constant variable initializers and if e.g. ARRAY_REF on it doe