This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Patch config.gcc to accept --with-cpu=85xx for PowerPC
- From: Michael Eager <eager at mvista dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 13 May 2004 14:11:34 -0700
- Subject: Patch config.gcc to accept --with-cpu=85xx for PowerPC
- Organization: MontaVista Software
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.
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.
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"