This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A problem with aligment attribute
- From: Robert Dewar <dewar at gnat dot com>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: "H. J. Lu" <hjl at lucon dot org>, gcc at gcc dot gnu dot org
- Date: Thu, 05 Feb 2004 05:47:31 -0500
- Subject: Re: A problem with aligment attribute
- References: <20040204205305.GA21138@lucon.org> <40221180.4000204@specifixinc.com>
Jim Wilson wrote:
We could perhaps emit a warning if someone tries to use an aligned type
in an argument list, and the aligned type requires greater alignment
than the ABI will give. I don't think we should be changing ABIs to
make this work.
This sounds too messed up to be workable. We really need to have a
clearer view of alignment throughout gcc. An ABI that does not support
a specifiable alignment means that either alignment specification is
broken, or the ABI is broken. One of them needs fixing. Note that it
does not violate an ABI to ensure greater alignment than the ABI
requires!