This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Use special routine for folding rhs in gimplifier
Richard Henderson wrote:
> On Tue, May 17, 2005 at 01:58:59PM +0200, Richard Guenther wrote:
>>+ possible. This may only be applied to a rhs of an expression
>>+ that does not care about the resulting type of the simplification. */
> This comment makes me nervous. When is this *ever* true?
Maybe it's overexaggerated - it can happen you pass it something that
is "const char" and you get back a "char" - it is guaranteed that
the result type is compatible (per langhooks definition) to the type
pointed to of the tree you passed it. Looks I should re-word the
description to something like
This may only be applied to a rhs of an expression. Note that the
resulting type may be different from the type pointed to in the
sense that it is still compatible from the langhooks point of view. */