This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 10 Apr 2003 18:04:12 -0400
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
>>>>> Richard Kenner writes:
Richard> If only to objects, saying that an object is 1-byte aligned allows
Richard> *any* alignment.
Yes. 64-bit S/390 requires 2-byte alignment. The alignment can
be 2 or anything stricter than 2 for 64-bit S/390. GNU Ada currently is
setting USER_ALIGN to 1 for some objects, which is breaking GNU Ada on
64-bit S/390.
Richard> But I can't find a macro that specifies an minimum alignment. What is
Richard> it called?
This would be a new macro, or result of querying an existing macro
with a test alignment of 1 byte to examine what modification to that
alignment a GCC port currently produces.
David