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: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: dje at watson dot ibm dot com
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 10 Apr 03 18:11:22 EDT
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_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.
Actually, it *isn't* setting DECL_USER_ALIGN for any objects and I
believe that's correct. It's stor-layout.c that is setting it from
TYPE_USER_ALIGN and that seems quite wrong: there is a difference
between specifying the alignment of a type and that of an object and
DECL_USER_ALIGN means the latter.