This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Gimplification and simplification
- From: "S. Bosscher" <S dot Bosscher at student dot tudelft dot nl>
- To: 'Diego Novillo ' <dnovillo at redhat dot com>,'Jan Hubicka ' <jh at suse dot cz>
- Cc: "'gcc at gcc dot gnu dot org '" <gcc at gcc dot gnu dot org>,'Jeff Law ' <law at redhat dot com>
- Date: Wed, 5 Nov 2003 16:36:03 +0100
- Subject: RE: Gimplification and simplification
Diego Novillo wrote:
> > These may get constructed at gimplfication time via simplfying builtins.
> > Like if (strlen("")). We end up not folding this to constant at all.
> >
> This is not produced by CCP or DOM? The call to fold_stmt() typically
> takes care of these cases. I had started adding hooks into CCP to deal
> with some builtins. That may be a good place to start looking.
What are you hunting for with this builtin work?
Some of the string builtins are already fixed by Honza's
earlier strrchr()-patch already seems to fix a bunch of
string builtins.
> Or is this coming directly from the gimplifier?
Gimplifier.
Gr.
Steven