This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How can I increase the default alignment of complex float?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]