This is the mail archive of the gcc@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: 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.


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