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] Support for known unknown alignment


On 23 April 2012 14:30, Richard Guenther <rguenther@suse.de> wrote:
> Well, CCP simply tracks known-bits and derives the alignment
> value from that. ÂIf tem & -tem computes as zero that means
> val->mask.low is all zeros.

Doesn't that mean that all bits are known? So you could set:

  pi->align = 1 << 32; // or some suitably large power of two
  pi->misalign = val->value;

Jay.


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