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: Altivec + 16 byte alignment


    BIGGEST_ALIGNMENT is defined in the documentation as:

    `BIGGEST_ALIGNMENT'
         Biggest alignment that any data type can require on this machine,
         in bits.

Right.  That's what I mean that it's unclear.  Code acts like it means the
largest alignment that can be guaranteed, but the above is ambiguous at best.

    >   If so, how *do* you find the largest alignment you can guarantee?

    For error checking?  MAX_OFILE_ALIGNMENT is probably the value you
    want.

But that's even worse!  It's *larger* than STACK_BOUNDARY.

My question is this: suppose a user says "I need this variable or type
aligned to an N bit boundary".  How can you tell, as a function of N,
whether you can do that or not?


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