Re: [PATCH] Fix expansion with COMPOUND_LITERAL_EXPR (PR middle-end/64067)

2014-11-27 Thread Jakub Jelinek
On Thu, Nov 27, 2014 at 11:03:20AM +0100, Richard Biener wrote: > > The testcase shows that when expanding ARRAY_REF from a const static var > > with initializer that contains COMPOUND_LITERAL_EXPR, we can try to expand > > COMPOUND_LITERAL_EXPR even when modifier is not EXPAND_INITIALIZER (it is >

Re: [PATCH] Fix expansion with COMPOUND_LITERAL_EXPR (PR middle-end/64067)

2014-11-27 Thread Richard Biener
On Wed, 26 Nov 2014, Jakub Jelinek wrote: > Hi! > > The testcase shows that when expanding ARRAY_REF from a const static var > with initializer that contains COMPOUND_LITERAL_EXPR, we can try to expand > COMPOUND_LITERAL_EXPR even when modifier is not EXPAND_INITIALIZER (it is > EXPAND_SUM in tha

[PATCH] Fix expansion with COMPOUND_LITERAL_EXPR (PR middle-end/64067)

2014-11-26 Thread Jakub Jelinek
Hi! The testcase shows that when expanding ARRAY_REF from a const static var with initializer that contains COMPOUND_LITERAL_EXPR, we can try to expand COMPOUND_LITERAL_EXPR even when modifier is not EXPAND_INITIALIZER (it is EXPAND_SUM in that testcase, but could be many others). While gimplifica