This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Altivec ABI as default for powerpc64 linux
- From: Hartmut Penner <HPENNER at de dot ibm dot com>
- To: Geoff Keating <geoffk at desire dot geoffk dot org>
- Cc: amodra at bigpond dot net dot au, dje at watson dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Feb 2004 11:28:01 +0100
- Subject: Re: [Patch] Altivec ABI as default for powerpc64 linux
> > We are not proposing enabling Altivec by default, but enabling
> > Altivec ABI by default. This ensures that stack alignment is correct
and
> > varargs are passed in the correct registers for Altivec applications to
> > interoperate seemlessly with non-Altivec libraries, etc.
> It also means you can't pass vector parameters, since they'd have to
> go in vector registers and your chip doesn't have any, correct?
The varargs implementation work without vector register, since unnamed args
are passed on the stack. For example, we have a vfprintf implementation for
glibc supporting vector types (%v), which is compiled with
-mabi=altivec only, therefore containing no altivec instruction.
regards, Hartmut