Regression due to tree loop opt / expand weirdness

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Mon Oct 4 14:46:00 GMT 2004


Hello,

> >expander seems to expect that pointer is first casted to integer
> >of the same size, and then to the target type (at least this is the way
> >such a cast is translated by C frontend).  This intermediate cast seems
> >superfluous to me (and to folder, apparently); fixing expand so that
> >it does not have such a weird restriction is IMHO the right way
> >(although it of course would not be hard to persuade fold_convert to
> >produce the extra cast).
> 
> Surely makes sense, but this is not what your patch to expand_binop did.

it was one step in that direction.  There apparently are other problems
in expand not covered by that patch.

Zdenek



More information about the Gcc mailing list