This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Great example of why "everything is a tree" sucks


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
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]