Re: [patch] Fix PR tree-optimization/54986

2012-11-05 Thread Jakub Jelinek
On Mon, Nov 05, 2012 at 10:16:31PM +0100, Eric Botcazou wrote: > Bootstrapped/regtested on x86_64-suse-linux, OK for mainline and 4.7 branch? > > > 2012-11-05 Eric Botcazou > > PR tree-optimization/54986 > * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op >

[patch] Fix PR tree-optimization/54986

2012-11-05 Thread Eric Botcazou
Hi, this is a regression present on the 4.7 branch and caused by my fix for another regression: http://gcc.gnu.org/ml/gcc-patches/2012-07/msg00825.html It turns out that canonicalize_constructor_val has side effects: on the 4.7 branch, it calls add_referenced_var on the base variable of an addr