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: [Patch] Altivec ABI as default for powerpc64 linux


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


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