This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: lno-branch vs ptr-to-member
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: rakdver at atrey dot karlin dot mff dot cuni dot cz (Zdenek Dvorak)
- Cc: pinskia at physics dot uc dot edu (Andrew Pinski), dalej at apple dot com (Dale Johannesen), sebastian dot pop at cri dot ensmp dot fr (Sebastian Pop), gcc at gcc dot gnu dot org (gcc_mailing_list List)
- Date: Tue, 8 Jun 2004 20:34:36 -0400 (EDT)
- Subject: Re: lno-branch vs ptr-to-member
> > Calling convert from the middle-end is asking for troubles.
>
> interesting; we do it moreorless everwhere (dom, sra, ccp, ...).
That is because they have not been changed yet as fold_convert used to
be only local to fold-const.c. I am testing a patch to change them into
fold_convert right now.
> > One it creates non-gimple,
>
> Why should this be a problem (as long as you know about it)?
True but there was an use in phiopt which I changed because the use
did not take that into account.
> > two it prints out error message which is bad for the middle.
>
> Yes, this seems worse.
>
> > I posted a patch to change all of the convert to fold_convert in tree-scalar-evolution.c
> > at <http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00460.html>.
>
> Feel free to install the patch. Thanks.
>
> Zdenek
Thanks,
Andrew Pinski