This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: biggest alignment for sysv4.h altivec
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Geoff Keating <geoffk at geoffk dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 9 Mar 2002 10:27:15 +1100
- Subject: Re: biggest alignment for sysv4.h altivec
>> this is for the sysv4.h header file, not just for altivec.
>>
>> do you want me to change BIGGEST_ALIGNMENT to 128 for every
>> sysv4.h variant?
>
> 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.
BIGGEST_ALIGNMENT was already set to 64 in the eabi case, all i'm
doing it is enforcing it to 128 when eabi && altivec.
i can come up with a testcase that fails without the patch.
jeff johnston has some code for printf with vectors that either needs
this patch or needs -mstrict-align (or -mno-eabi :)).
cheers
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.