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]

Re: MEM_COPY_ATTRIBUTES


>>>>> "Richard" == Richard Kenner <kenner@vlsi1.ultra.nyu.edu> writes:

    Richard> Is there a reason it doesn't copy MEM_ALIAS_SET?

Yes.  Look for places where MEM_COPY_ATTRIBUTES is used but
MEM_ALIAS_SET is not.  They should represent places where the
resulting memory doesn't have the same type as the original memory.
(For example, the new MEM might not point at the same location as the
old MEM, or might be wider.)

It's very important to be conservative in this respect, lest very hard
to find bugs appear.  So, I was.  If you find places where you think
the MEM_ALIAS_SET should be copied, you might be right -- but you
should be very careful.  For example, consider an alias set that
indicates a structure.  You have to consider alias subsets and
supersets as well.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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