Re: decl_constant_value_for_broken_optimization

2008-02-27 Thread Ian Lance Taylor
Paolo Bonzini <[EMAIL PROTECTED]> writes: > > In the current compiler, it seems very likely that every call to > > decl_constant_value_for_broken_optimization can simply be removed. > > The constant propagation passes should implement the optimization. > > What abou

Re: decl_constant_value_for_broken_optimization

2008-02-27 Thread Paolo Bonzini
In the current compiler, it seems very likely that every call to decl_constant_value_for_broken_optimization can simply be removed. The constant propagation passes should implement the optimization. What about format checking for constant arrays? :-( That's the testcase that Joseph

decl_constant_value_for_broken_optimization

2008-02-26 Thread Ian Lance Taylor
I just spent a couple of hours looking into what turned out to be an issue with decl_constant_value_for_broken_optimization, and I wanted to record the notes. The function was introduced here: http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00649.html At the time Joseph added this comment