This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/17793
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Wed, 20 Oct 2004 10:19:42 +0200
- Subject: Re: [PATCH] Fix PR middle-end/17793
- References: <10410192224.AA14365@vlsi1.ultra.nyu.edu>
> 2004-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
>
> PR middle-end/17793
> * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
> through the operand if it is itself a conversion.
>
> This makes no sense to me. The transformation I thought we were
> talking about was to commute an ADDR_EXPR and a conversion, including
> VIEW_CONVERT_EXPR.
What can I say except "please read the patch"? It turns
ADDR_EXPR <pointer_type <record_type>>
VIEW_CONVERT_EXPR <record_type>
NOP_EXPR <integer_type1>
ARRAY_REF <integer_type2>
into
NOP_EXPR <pointer_type <record_type>
NOP_EXPR <pointer_type <integer_type1>
ADDR_EXPR <pointer_type <integer_type2>>
ARRAY_REF <integer_type2>
as suggested by Jeff.
--
Eric Botcazou