This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR middle-end/17793


>     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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]