This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Regression due to tree loop opt / expand weirdness


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


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