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: Aldy Hernandez <aldyh at redhat dot com>
- To: Hartmut Penner <HPENNER at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Alan Modra <amodra at bigpond dot net dot au>, dje at watson dot ibm dot com
- Date: Fri, 30 Jan 2004 08:40:32 -0400
- Subject: Re: [Patch] Altivec ABI as default for powerpc64 linux
- References: <OFD9F832EE.F6CB723A-ONC1256E2B.0035AC31-C1256E2B.003789DA@de.ibm.com>
On Fri, Jan 30, 2004 at 11:06:38AM +0100, Hartmut Penner wrote:
> Hello,
> I would propose to set ALTIVEC as the default ABI
> for ppc64 linux.
> This will not change anything for programs not having any
> vector types. But it will allow programs to work correctly
> which are using vector. This is also true for programs using
> vector types, but do not use the altivec instruction set
> (which is not set as default !).
> And, btw, without that default, we don't comply to the latest
> ppc64 Linux ABI...
If the _actual_ PPC64 Linux ABI needs this, I don't have a problem
with it. We did the same thing for Darwin.
BTW, where is the ppc64 linux ABI kept these days?
> + /* Set Altivec ABI as default for powerpc64 linux. */
> + if (TARGET_ELF && TARGET_64BIT)
> + {
> + rs6000_altivec_abi = 1;
> + rs6000_altivec_vrsave = 1;
> + }
> +
> /* Handle -mabi= options. */
> rs6000_parse_abi_options ();
You want to do this in SUBTARGET_OVERRIDE_OPTIONS (see how darwin.h
does it). Although for linux64.h you want
SUBSUBTARGET_OVERRIDE_OPTIONS.
Aldy