This is the mail archive of the gcc-patches@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]

Re: More on the constant folding problems


On Wed, 15 Nov 2000, Mark Mitchell wrote:

> 
> Wouldn't it be cleaner to have `fold' itself set TREE_CONSTANT?  In
> the long term, fold might perform complex operations to simplify
> something to a constant (for example `false ? f() : 7' to `7') and
> then it's really `fold' that should know it produced a constant?

That could potentially be a very large change (I haven't looked closely).
It might make sense to move some of this logic further down into `build'.


Bernd


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