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] Repair TYPE_REF_CAN_ALIAS_ALL machinery


    Gigi could create a union with the two pointed-to types for this case
    and expose the casted to pointer as a pointer to that union to the
    middle-end.

No, it can't since the type that the pointer is being converted from may
not be a pointer, so there's no second "pointed-to" type.  The most common
case of this is an unchechecked conversion from Address (an integer type)
to an access type.


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