This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: More on the constant folding problems
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: More on the constant folding problems
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Wed, 15 Nov 2000 16:50:46 +0000 (GMT)
- cc: gcc-patches at gcc dot gnu dot org
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