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 <nat...@codesourcery.com> Sandra Loosemore <san...@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 \