This is the mail archive of the
gcc@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: aoliva at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 22 Apr 03 07:40:51 EDT
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
But the compiler can't tell whether, when you specify alignment for a
type, you mean for interface or for efficiency, so I think it
shouldn't make an assumption that it's to be used only for the former
case like you seem to believe it should do.
No, I don't believe that, but it's not relevant. Because it *might*
have been meant for interface, the compiler is not allowed to change
the alignment of types.