This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fold_convert question
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: law at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Oct 04 15:43:53 EDT
- Subject: Re: fold_convert question
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.