This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, powerpc] allow --with-cpu=native when configuring gcc
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 May 2013 18:32:18 -0600
- Subject: [patch, powerpc] allow --with-cpu=native when configuring gcc
This is another orphan PowerPC patch from our backlog.
On native PowerPC, GCC supports -mcpu=native, to generate code for the
same processor flavor that GCC itself is running on. This patch makes
it also possible to configure GCC to default to that option.
Tested by building GCC with this configure option and
build=i686-pc-linux-gnu, host=target=powerpc-linux-gnu, and verifying
that the output of running the resulting gcc with --version --verbose
looked sane.
OK to commit?
-Sandra
2013-05-23 Nathan Sidwell <nathan@codesourcery.com>
Sandra Loosemore <sandra@codesourcery.com>
gcc/
* config.gcc (powerpc-*): Allow native for with-cpu.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 199270)
+++ gcc/config.gcc (working copy)
@@ -3535,7 +3535,7 @@ case "${target}" in
tm_defines="${tm_defines} CONFIG_PPC405CR"
eval "with_$which=405"
;;
- "" | common \
+ "" | common | native \
| power | power[2345678] | power6x | powerpc | powerpc64 \
| rios | rios1 | rios2 | rsc | rsc1 | rs64a \
| 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \