This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch config.gcc to accept --with-cpu=85xx for PowerPC
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Michael Eager <eager at mvista dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 13 May 2004 14:20:05 -0700
- Subject: Re: Patch config.gcc to accept --with-cpu=85xx for PowerPC
- References: <40A3E486.4000304@mvista.com>
Michael Eager <eager@mvista.com> writes:
> The attached patch makes gcc configure correctly with
> --target=powerpc-unknown-linux and --with-cpu=8540. This is the
> same as --target=powerpc-unknown-linux-spe.
It's the same as using --target=powerpc-linux and then using
-mcpu=8540, which does not trigger the SPE ABI, and is therefore not
the same as powerpc-unknown-linux-spe. The patch is not OK.
> PowerPC seems to append model specific features to the target
> tuple (eg, altivec, spe). IMO, these features should be handled
> dynamically (as they often are) or at worst, by testing --with-cpu in
> configure.
These aren't "model specific features", they are ABI specifications.
> 2004-05-13 Michael Eager <eager@mvista.com>
>
> * config.gcc (powerpc-*-linux*): Accept --with-cpu=85*
> as equivalent to powerpc-*-linux-spe.
>
> --
> Michael Eager eager@mvista.com 408-328-8426
> MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085
> Index: gcc/config.gcc
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
> retrieving revision 1.457
> diff -u -r1.457 config.gcc
> --- gcc/config.gcc 3 May 2004 21:27:42 -0000 1.457
> +++ gcc/config.gcc 13 May 2004 20:51:54 -0000
> @@ -1569,6 +1580,10 @@
> powerpc-*-linux*)
> tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
> tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
> + case x$with_cpu in
> + x85*) tm_file="${tm_file} rs6000/linuxspe.h"
> + ;;
> + esac
> ;;
> powerpc-*-gnu-gnualtivec*)
> tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
--
- Geoffrey Keating <geoffk@geoffk.org>