fold_convert question
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Mon Oct 18 21:15: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.
More information about the Gcc
mailing list