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: ix86_data_alignment: bad defaults?


On Feb 22, 2007, at 5:20 PM, Ian Lance Taylor wrote:
So if ix86_data_alignment wants to return 256 for some variable,
then it seems to me that BIGGEST_ALIGNMENT should be 256.

What if the object format doesn't allow recording alignments that high? For example, DJGPP's coff format can only record alignments up to 2**4 (16) bytes, but 256 bits is 2**5 (32) bytes.

So BIGGEST_ALIGNMENT > MAX_OFILE_ALIGNMENT. That's a logical contradiction. Bummer.

min (256, MAX_OFILE_ALIGNMENT)?


For ELF, this would be 256, good. For pecoff, that would be smaller.


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