This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can I increase the default alignment of complex float?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Fri, 1 Apr 2011 11:49:06 +0000 (UTC)
- Subject: Re: How can I increase the default alignment of complex float?
- References: <AANLkTinQJz8gGXBbJGSWnjVOy=_9zCthtQY8rv=CF-Zw@mail.gmail.com>
On Thu, 31 Mar 2011, H.J. Lu wrote:
> Hi,
>
> I'd like to bump the default alignment of complex float from 4 byte
> to 8 byte. ADJUST_ALIGNMENT doesn't work since SC is a stand
> mode. Is that OK to update mode_base_align directly?
What do you mean by "default alignment"? You can't change the alignment
in ABI terms, or that returned by alignof; the alignment of complex types
is required to be the same as that of "an array type containing exactly
two elements of the corresponding real type".
--
Joseph S. Myers
joseph@codesourcery.com