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]

Re: Adding constants to LO_SUM


This clearly deserves a comment in the code...

On Mon, 9 Jul 2001, Richard Kenner wrote:

      I don't think STRICT_ALIGNMENT has anything to do with it.  
  
  Just to be clear, here's why it does:
  
  The only time my latest code goes inside a LO_SUM is when the MEM has
  non-BLKmode and the offset is less than the mode size of the mode.
  However, unless STRICT_ALIGNMENT is zero, we guarantee that an object
  of a mode is aligned to the mode boundary.  Hence an addition of less
  than the size of the object cannot overflow.
  
  Perhaps I should just put a test on STRICT_ALIGNMENT there?
  


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