This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fold_convert question
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc at gcc dot gnu dot org
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner),law at redhat dot com
- Date: Mon, 18 Oct 2004 22:56:29 +0200
- Subject: Re: fold_convert question
- References: <10410181943.AA07384@vlsi1.ultra.nyu.edu>
> 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