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: geoffk at geoffk dot org
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 10 Apr 03 17:39:34 EDT
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
So, what you actually want to do is to set the alignment of the object
to be *more* aligned than its type?
Yes.
Or, to phrase it another way, you want the object to be of a type
which is more aligned than its declared type?
Not necessarily. We had this discussion before. I believe it should be
possible to have DECL_ALIGN > TYPE_ALIGN and likewise for DECL_SIZE.
If it's not, then why have them in the first place?