fold_convert question

Eric Botcazou ebotcazou@libertysurf.fr
Tue Oct 19 07:16:00 GMT 2004


>     It seems to me we'd be best off turning:
>
>       ADDR_EXPR <pointer_type <record_type>>
>         VIEW_CONVERT_EXPR <record_type>
>           NOP_EXPR <integer_type1>
>             ARRAY_REF <integer_type2>
>
>     Into
>
>     NOP_EXPR <integer_type1>
>       ADDR_EXPR <pointer_type <integer_type2>>
>         ARRAY_REF <integer_type2>
>
> I assume you mean the NOP_EXPR's type to be a pointer to integer_type1.
> I thought we had code in gimplify.c to do that once, actually.  It
> shouldn't be hard and I agree that it makes the most sense.

OK, thanks to both of you for the tip.  I'll try in the next few days and see 
how that fares.

-- 
Eric Botcazou



More information about the Gcc mailing list