This is the mail archive of the gcc-patches@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: biggest alignment for sysv4.h altivec


>>>>> Geoff Keating writes:

| I would look at it the other way.  Why should BIGGEST_ALIGNMENT
| differ?  It doesn't change when we switch on -msoft-float, even though
| if we don't have hardware doubles then we don't need 64-bit alignment.

	The Altivec ABI is an extension to the SVR4 and Darwin/AIX ABIs.
It increases the biggest alignment to 128 bits.

	-msoft-float is not a new or extended ABI.  It is the original ABI
with FPRs disabled and floating point emulated in GPRs.  It is intended to
be compatible with the original ABI and the original ABI's alignment
rules. 

	The two issues are not similar enough to use as justification or
precedent for the other.

	  BIGGEST_ALIGNMENT needs to change because the Altivec ABI says
that it is different.  One cannot uniformly change BIGGEST_ALIGNMENT to
128 because that is not what the SVR4 ABI specifies.  One needs the
conditional as Aldy has proposed.

Thanks, David


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